@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================================
   VIBRANT & RICH THEME PALETTES (DARK & LIGHT MODE)
   ========================================================================== */
:root, [data-theme="dark"] {
  --bg: #06090e;
  --bg-card: #0a1118;
  --bg-card-subtle: #0e1822;
  --bg-input: #070d13;
  --header-bg: rgba(8, 14, 22, 0.88);
  --border: #1a2a38;
  --border-light: #263d52;
  --text: #cbd5e1;
  --text-muted: #829cb0;
  --text-dim: #556e82;
  --text-heading: #f8fafc;
  --cyan: #38bdf8;
  --cyan-hover: #7dd3fc;
  --amber: #fbbf24;
  --red: #f87171;
  --green: #4ade80;
  --btn-primary-bg: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --btn-primary-border: #0284c7;
  --btn-primary-color: #ffffff;
  --btn-primary-shadow: 0 4px 18px rgba(6, 182, 212, 0.35);
  --btn-secondary-bg: #0c151e;
  --btn-secondary-border: #213545;
  --btn-secondary-color: #cbd5e1;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radial-glow-1: rgba(6, 182, 212, 0.15);
  --radial-glow-2: rgba(99, 102, 241, 0.12);
  --radial-glow-3: rgba(16, 185, 129, 0.08);
  --logo-box-bg: #0a1118;
  --logo-box-border: #1e3040;
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  --card-hover-shadow: 0 16px 36px rgba(6, 182, 212, 0.12);
  --search-bar-bg: #0a1118;
  --search-bar-border: #1e3040;
  --search-btn-bg: linear-gradient(135deg, #0f1c27 0%, #152635 100%);
  --search-btn-border: #294257;
  --search-btn-color: #ffffff;
  --case-row-hover: #0f1c27;
  --item-border-sep: #152330;
  --modal-backdrop: rgba(3, 7, 12, 0.85);
  --modal-bg: #0a1118;
  --modal-border: #25394a;
  --tag-bg: #0f1c27;
  --tag-border: #233748;
  --tag-color: #8fb0c7;
  --pill-pending-bg: #2e210a;
  --pill-pending-border: #694914;
  --pill-pending-color: #fbbf24;
  --pill-published-bg: #0c2738;
  --pill-published-border: #1b5375;
  --pill-published-color: #38bdf8;
  --pill-resolved-bg: #0d2b1f;
  --pill-resolved-border: #1b6144;
  --pill-resolved-color: #4ade80;
  --pill-rejected-bg: #301317;
  --pill-rejected-border: #69222c;
  --pill-rejected-color: #f87171;
  --theme-toggle-bg: #0c151e;
  --theme-toggle-border: #213545;
  --theme-toggle-color: #fbbf24;
  --hero-heading-gradient: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #a5b4fc 100%);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-input: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.90);
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --text: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-heading: #0f172a;
  --cyan: #0284c7;
  --cyan-hover: #0369a1;
  --amber: #d97706;
  --red: #dc2626;
  --green: #16a34a;
  --btn-primary-bg: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --btn-primary-border: #0284c7;
  --btn-primary-color: #ffffff;
  --btn-primary-shadow: 0 4px 14px rgba(2, 132, 199, 0.30);
  --btn-secondary-bg: #ffffff;
  --btn-secondary-border: #cbd5e1;
  --btn-secondary-color: #1e293b;
  --radial-glow-1: rgba(2, 132, 199, 0.12);
  --radial-glow-2: rgba(99, 102, 241, 0.10);
  --radial-glow-3: rgba(16, 185, 129, 0.08);
  --logo-box-bg: #ffffff;
  --logo-box-border: #e2e8f0;
  --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --card-hover-shadow: 0 20px 30px -10px rgba(2, 132, 199, 0.12);
  --search-bar-bg: #ffffff;
  --search-bar-border: #cbd5e1;
  --search-btn-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --search-btn-border: #0f172a;
  --search-btn-color: #ffffff;
  --case-row-hover: #f8fafc;
  --item-border-sep: #f1f5f9;
  --modal-backdrop: rgba(15, 23, 42, 0.60);
  --modal-bg: #ffffff;
  --modal-border: #cbd5e1;
  --tag-bg: #f1f5f9;
  --tag-border: #e2e8f0;
  --tag-color: #475569;
  --pill-pending-bg: #fef3c7;
  --pill-pending-border: #fde047;
  --pill-pending-color: #d97706;
  --pill-published-bg: #e0f2fe;
  --pill-published-border: #7dd3fc;
  --pill-published-color: #0284c7;
  --pill-resolved-bg: #dcfce7;
  --pill-resolved-border: #86efac;
  --pill-resolved-color: #16a34a;
  --pill-rejected-bg: #fee2e2;
  --pill-rejected-border: #fca5a5;
  --pill-rejected-color: #dc2626;
  --theme-toggle-bg: #ffffff;
  --theme-toggle-border: #cbd5e1;
  --theme-toggle-color: #0284c7;
  --hero-heading-gradient: linear-gradient(135deg, #0f172a 20%, #0369a1 60%, #4f46e5 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  margin: 0; 
  background: var(--bg); 
  background-image: 
    radial-gradient(circle at 10% 10%, var(--radial-glow-1) 0%, transparent 45%),
    radial-gradient(circle at 90% 20%, var(--radial-glow-2) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, var(--radial-glow-3) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text); 
  font-family: var(--font); 
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: var(--font); }

.container { 
  width: min(1320px, calc(100% - 48px)); 
  margin: auto; 
}

/* HEADER */
.header { 
  height: 72px; 
  border-bottom: 1px solid var(--border); 
  background: var(--header-bg); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky; 
  top: 0; 
  z-index: 100; 
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-left { display: flex; align-items: center; gap: 14px; }
.logo-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: none !important;
  text-decoration: none;
}
.logo-box:hover { 
  transform: translateY(-1px);
  opacity: 0.88;
  box-shadow: none !important;
}
.theme-logo {
  height: 38px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
  display: block;
}

:root .logo-dark,
[data-theme="dark"] .logo-dark {
  display: block !important;
}
:root .logo-light,
[data-theme="dark"] .logo-light {
  display: none !important;
}

[data-theme="light"] .logo-dark {
  display: none !important;
}
[data-theme="light"] .logo-light {
  display: block !important;
}

.logo-text { 
  font-size: 15px; 
  font-weight: 900; 
  letter-spacing: 0.8px; 
  color: var(--text-heading); 
}
.logo-sub { 
  font-size: 10px; 
  color: var(--text-muted); 
  font-weight: 600; 
  border-left: 1px solid var(--border); 
  padding-left: 10px; 
}

.navlinks { display: flex; align-items: center; gap: 18px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.navlinks a { transition: color 0.15s ease; }
.navlinks a:hover, .navlinks a.active { color: var(--cyan); }
.nav-logout-btn { background: none; border: 0; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; transition: color 0.15s; }
.nav-logout-btn:hover { color: var(--red); }

/* THEME TOGGLE BUTTON */
.theme-toggle-btn {
  background: var(--theme-toggle-bg);
  border: 1px solid var(--theme-toggle-border);
  color: var(--theme-toggle-color);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.theme-toggle-btn:hover {
  border-color: var(--cyan);
  transform: translateY(-2px) rotate(12deg);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.btn-submit-case {
  background: var(--btn-primary-bg);
  border: 1px solid var(--btn-primary-border);
  color: #ffffff !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: var(--btn-primary-shadow);
}
.btn-submit-case:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

/* BUTTONS */
.btn { 
  border: 1px solid var(--btn-primary-border); 
  background: var(--btn-primary-bg); 
  color: var(--btn-primary-color); 
  border-radius: 8px; 
  padding: 10px 20px; 
  font-size: 13px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--btn-primary-shadow);
}
.btn:hover { 
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn.secondary { 
  background: var(--btn-secondary-bg); 
  border-color: var(--btn-secondary-border); 
  color: var(--btn-secondary-color); 
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.btn.secondary:hover { 
  background: var(--bg-card-subtle); 
  border-color: var(--cyan); 
  color: var(--cyan); 
  transform: translateY(-1px);
}

/* HERO SECTION (2-COLUMNS) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 50px 0 20px;
}
.hero-left h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 16px;
  background: var(--hero-heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-left p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

/* CASE OVERVIEW CARD */
.case-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 26px;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
}
.case-overview-card:hover {
  box-shadow: var(--card-hover-shadow);
}
.case-overview-head {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--item-border-sep);
  padding-bottom: 10px;
}
.case-overview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--item-border-sep);
  font-size: 13px;
  color: var(--text);
}
.case-overview-row:last-child { border-bottom: 0; padding-bottom: 0; }
.case-overview-row .label { display: flex; align-items: center; gap: 8px; }
.case-overview-row .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.case-overview-row .num { font-weight: 800; color: var(--text-heading); font-size: 14px; }

/* SEARCH & FILTER BAR */
.search-filter-bar {
  background: var(--search-bar-bg);
  border: 1px solid var(--search-bar-border);
  border-radius: 10px;
  padding: 6px;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr auto;
  gap: 8px;
  margin: 24px 0 45px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease;
}
.search-filter-bar:focus-within {
  border-color: var(--cyan);
}
.search-filter-bar input, .search-filter-bar select {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 13px;
  padding: 10px 14px;
  border-right: 1px solid var(--item-border-sep);
}
.search-filter-bar select {
  background-color: var(--bg-card);
  cursor: pointer;
}
.search-filter-bar .btn-search {
  background: var(--search-btn-bg);
  border: 1px solid var(--search-btn-border);
  color: var(--search-btn-color);
  font-weight: 800;
  font-size: 12px;
  padding: 0 24px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.search-filter-bar .btn-search:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #ffffff;
  transform: translateY(-1px);
}

/* SECTION HEADERS */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.section-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-header h2 {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-heading);
  margin: 0;
}
.section-header .tag-badge {
  font-size: 11px;
  color: var(--tag-color);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 700;
}
.section-header .view-all-link {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.15s;
}
.section-header .view-all-link:hover { opacity: 0.8; }

/* 4-GRID FOR REPORTED COMPANIES & PLATFORMS (MORE READABLE & SPACIOUS) */
.companies-5grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 45px;
}
.company-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
}
.company-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}
.company-card-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.company-card-logo-box {
  height: 84px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.company-card-logo-box:hover, .company-card:hover .company-card-logo-box {
  border-color: var(--cyan);
  background: var(--case-row-hover);
}
.company-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.company-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.company-card-title a:hover {
  color: var(--cyan) !important;
}
.company-card-rating {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.company-card-unpaid-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--pill-rejected-color);
  background: var(--pill-rejected-bg);
  border: 1px solid var(--pill-rejected-border);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  margin-bottom: 14px;
  width: fit-content;
}
.company-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}
.company-card-meta div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.company-card-footer {
  border-top: 1px solid var(--item-border-sep);
  padding-top: 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.company-card-footer:hover { text-decoration: underline; }

/* TWO-COLUMNS SECTION: LATEST CASES & MOST REPORTED */
.two-col-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-bottom: 40px;
}
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}
.section-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--item-border-sep);
  padding-bottom: 12px;
}
.section-card-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-heading);
  margin: 0;
}

/* LATEST CASES ITEMS */
.latest-case-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid var(--item-border-sep);
  border-radius: 6px;
  transition: all 0.15s ease;
}
.latest-case-item:last-child { border-bottom: 0; }
.latest-case-item:hover { 
  background: var(--case-row-hover); 
  transform: translateX(3px);
}
.logo-mark-square {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--cyan);
}
.latest-case-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latest-case-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-meta-tag {
  font-size: 10px;
  background: var(--pill-rejected-bg);
  border: 1px solid var(--pill-rejected-border);
  color: var(--pill-rejected-color);
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: 800;
  white-space: nowrap;
  text-align: right;
}

/* MOST REPORTED ITEMS */
.most-reported-item {
  display: grid;
  grid-template-columns: 20px 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid var(--item-border-sep);
  border-radius: 6px;
  transition: all 0.15s ease;
}
.most-reported-item:last-child { border-bottom: 0; }
.most-reported-item:hover {
  background: var(--case-row-hover);
  transform: translateX(3px);
}
.rank-num { font-size: 13px; font-weight: 900; color: var(--text-muted); text-align: center; }
.cases-count-badge {
  font-size: 10px;
  font-weight: 800;
  background: var(--pill-rejected-bg);
  border: 1px solid var(--pill-rejected-border);
  color: var(--pill-rejected-color);
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.bottom-view-all {
  text-align: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--item-border-sep);
}
.bottom-view-all a {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.bottom-view-all a:hover { text-decoration: underline; }

/* BOTTOM STATS BAR (4 STAT BOXES) */
.bottom-stats-bar, .stat-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 0;
  margin-bottom: 50px;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
}
.bottom-stats-bar:hover, .stat-banner:hover {
  box-shadow: var(--card-hover-shadow);
}
.bottom-stat-box, .stat-banner-item {
  text-align: center;
  border-right: 1px solid var(--item-border-sep);
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bottom-stat-box:last-child, .stat-banner-item:last-child { border-right: 0; }
.bottom-stat-box .icon { font-size: 26px; margin-bottom: 6px; }
.bottom-stat-box .num, .stat-banner-num {
  font-size: 34px;
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.bottom-stat-box .lbl, .stat-banner-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

/* DATA TABLE (USER CASES & COMPANY PORTAL) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data-table th {
  padding: 14px 18px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--item-border-sep);
  color: var(--text);
  vertical-align: middle;
}
.data-table tr:hover td {
  background: var(--case-row-hover);
}

/* ==========================================================================
   DIRECTORY & LISTING PAGES (ALL REPORTED CASES, DIRECTORY)
   ========================================================================== */
.directory {
  padding: 40px 0 80px;
}
.directory-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.directory-head h1 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 6px 0 8px;
  background: var(--hero-heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.directory-head p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  max-width: 600px;
}

/* TOOLBAR (SEARCH & FILTERS) */
.toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.countline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.countline b {
  color: var(--text-heading);
}

/* CASE ROW (CASES LIST VIEW) */
.case-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 46px 1fr 140px 140px 130px;
  gap: 18px;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
}
.case-row:hover {
  border-color: var(--cyan);
  background: var(--case-row-hover);
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}
.case-row .mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--cyan);
}
.case-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.case-title a:hover { color: var(--cyan); }
.case-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.case-sub b {
  color: var(--text-heading);
}
.case-row .meta label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.case-row .meta b {
  font-size: 13px;
  color: var(--text-heading);
}
.case-link {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--cyan);
  text-align: right;
  white-space: nowrap;
}
.case-link:hover { text-decoration: underline; }

/* ==========================================================================
   CASE DETAIL PAGE (SHOW)
   ========================================================================== */
.case-page { padding: 30px 0 80px; }
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--text-heading); font-weight: 700; }

.case-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}
.case-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--item-border-sep);
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.case-id {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--cyan);
  margin-bottom: 4px;
}
.case-top h1 {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 6px;
  line-height: 1.2;
}
.case-company {
  font-size: 13px;
  color: var(--text-muted);
}
.case-company b { color: var(--text-heading); }

.case-hero .status {
  background: var(--pill-rejected-bg);
  border: 1px solid var(--pill-rejected-border);
  color: var(--pill-rejected-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.case-hero .status.resolved {
  background: var(--pill-resolved-bg);
  border-color: var(--pill-resolved-border);
  color: var(--pill-resolved-color);
}

.case-metas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}
.case-meta label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.case-meta b {
  font-size: 14px;
  color: var(--text-heading);
}

.case-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.case-layout .panel {
  margin-bottom: 24px;
}
.case-layout .panel h2 {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.case-layout .description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline > div {
  padding-left: 16px;
  border-left: 2px solid var(--cyan);
  display: flex;
  flex-direction: column;
}
.timeline b { font-size: 13px; color: var(--text-heading); }
.timeline span { font-size: 11px; color: var(--text-muted); }

/* ==========================================================================
   CARDS, PANELS, FORMS & DRAG & DROP
   ========================================================================== */
.card, .panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: var(--cyan);
}
.input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 13px;
  outline: 0;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* FORM GRID (SUBMIT CASE & PORTAL) */
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-muted);
}
.field label b { color: var(--red); }

/* EVIDENCE UPLOAD */
.evidence {
  margin-top: 10px;
}
.evidence-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.evidence-head b {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-muted);
}
.drop {
  border: 2px dashed var(--border);
  background: var(--bg-card-subtle);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.drop:hover {
  border-color: var(--cyan);
  color: var(--text);
  background: var(--case-row-hover);
}
.drop strong {
  display: block;
  font-size: 14px;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.files {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.file {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 12px;
}
.file span {
  font-weight: 800;
  color: var(--cyan);
}
.file strong {
  flex: 1;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file .file-size {
  color: var(--text-dim);
  font-size: 11px;
}
.file button {
  background: none;
  border: 0;
  color: var(--red);
  font-size: 16px;
  cursor: pointer;
}

/* PILLS */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.pill.pending { background: var(--pill-pending-bg); border: 1px solid var(--pill-pending-border); color: var(--pill-pending-color); }
.pill.published { background: var(--pill-published-bg); border: 1px solid var(--pill-published-border); color: var(--pill-published-color); }
.pill.resolved { background: var(--pill-resolved-bg); border: 1px solid var(--pill-resolved-border); color: var(--pill-resolved-color); }
.pill.rejected { background: var(--pill-rejected-bg); border: 1px solid var(--pill-rejected-border); color: var(--pill-rejected-color); }

/* AUTOCOMPLETE SUGGESTIONS */
.autocomplete-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.suggestion-item {
  padding: 11px 16px;
  border-bottom: 1px solid var(--item-border-sep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}
.suggestion-item:last-child {
  border-bottom: 0;
}
.suggestion-item:hover {
  background: var(--case-row-hover);
}
.suggestion-item strong {
  color: var(--text-heading);
  font-size: 13px;
}
.suggestion-item span {
  font-size: 11px;
  color: var(--text-muted);
}
.suggestion-empty {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.suggestion-empty b {
  color: var(--cyan);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* MODAL SYSTEM */
.modal-bg {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 20px;
}
.modal-bg.open { display: grid; }
.modal {
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  border-radius: 12px;
  width: min(600px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head .close {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-head .close:hover { color: var(--text); }
.modal-body {
  padding: 22px;
  overflow-y: auto;
}
.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* MOBILE NAV DRAWER */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.3);
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}
.mobile-nav-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav-close {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}
.mobile-nav-links {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
}
.mob-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--item-border-sep);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mob-link:hover, .mob-link.active {
  color: var(--cyan);
}
.mob-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.mob-user-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 6px;
}

.mobile-actions {
  display: none;
}

.mobile-menu-btn {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .companies-5grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .case-layout {
    grid-template-columns: 1fr;
  }
  .case-row {
    grid-template-columns: 44px 1fr auto;
  }
  .case-row .meta {
    display: none;
  }
}
/* =========================================================================
   MODERN HOME PAGE & SEO ENHANCEMENTS
========================================================================= */

.home-hero-section {
  padding: 40px 0 32px;
  position: relative;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.home-hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--text-heading);
  margin: 0 0 16px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 540px;
}

.home-hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-cta-btn {
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.hero-trust-bar {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* HERO METRICS CARD */
.home-hero-metrics-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.home-hero-metrics-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(39, 215, 232, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.metrics-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--item-border-sep);
}

.metrics-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--text-heading);
}

.metrics-live-pulse {
  font-size: 10px;
  font-weight: 800;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 211, 153, 0.1);
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.metrics-stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--item-border-sep);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.metric-row:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.metric-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.metric-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.metric-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-heading);
}

.metric-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.metric-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}

.metrics-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--item-border-sep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* HEADER SEARCH BUTTON */
.nav-search-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.nav-search-btn:hover {
  background: var(--border);
  color: var(--cyan);
  border-color: var(--cyan);
}

.search-kbd-shortcut {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  background: var(--item-border-sep);
  border-radius: 4px;
  color: var(--cyan);
  border: 1px solid var(--border);
  line-height: 1;
}

/* SEARCH & PILLS SECTION */
.home-search-section {
  margin-bottom: 40px;
}

.modern-search-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  min-width: 0;
  position: relative;
}

.home-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -8px;
  width: min(540px, 90vw);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(39, 215, 232, 0.2);
  max-height: 380px;
  overflow-y: auto;
  z-index: 800;
  padding: 8px;
}

.search-leading-icon {
  color: var(--cyan);
  font-size: 15px;
  flex-shrink: 0;
}

.modern-search-bar input {
  border: 0 !important;
  background: transparent !important;
  color: var(--text-heading);
  font-size: 14px;
  width: 100%;
  outline: none;
  padding: 8px 0;
}

.modern-search-bar select {
  background: var(--bg-card-subtle);
  border: 1px solid var(--item-border-sep);
  color: var(--text-heading);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  width: 100%;
  height: 42px;
}

.modern-search-bar .btn-search {
  background: var(--search-btn-bg, var(--btn-primary-bg));
  border: 1px solid var(--search-btn-border, var(--border));
  color: var(--search-btn-color, #ffffff);
  border-radius: 6px;
  padding: 0 20px;
  height: 42px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modern-search-bar .btn-search:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

/* GLOBAL SEARCH MODAL (CMD+K) */
.global-search-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 10, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.global-search-backdrop.open {
  display: block;
  opacity: 1;
}

.global-search-modal {
  display: none;
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -20px) scale(0.97);
  width: min(640px, calc(100% - 32px));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(39, 215, 232, 0.15);
  z-index: 10000;
  overflow: hidden;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-search-modal.open {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.global-search-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--item-border-sep);
  background: var(--bg-card);
}

.search-head-icon {
  font-size: 18px;
  color: var(--cyan);
  flex-shrink: 0;
}

.global-search-head input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text-heading);
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

.global-search-close {
  background: transparent;
  border: 0;
  cursor: pointer;
}

.esc-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  padding: 3px 6px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.global-search-body {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
}

.search-empty-state {
  padding: 40px 20px;
  text-align: center;
}

.search-group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  padding: 6px 10px 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.12s ease;
  border: 1px solid transparent;
}

.search-result-item:hover, .search-result-item:focus {
  background: var(--case-row-hover);
  border-color: var(--border-hover);
}

.search-result-logo {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.search-result-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  color: var(--cyan);
}

.global-search-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--item-border-sep);
}

.global-search-footer kbd {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-heading);
}

.category-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.pills-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-heading);
}

.category-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.category-pill:hover {
  background: var(--border);
  color: var(--cyan);
  border-color: var(--cyan);
}

.category-pill-all {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  text-decoration: none;
  margin-left: 4px;
}

/* HOW IT WORKS SECTION */
.how-it-works-section {
  padding: 48px 0 40px;
  border-top: 1px solid var(--item-border-sep);
  margin-bottom: 40px;
}

.section-title-center {
  text-align: center;
  margin-bottom: 36px;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  position: relative;
  transition: all 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.step-num-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 28px;
  font-weight: 900;
  color: var(--item-border-sep);
  opacity: 0.6;
  line-height: 1;
}

.step-icon-wrap {
  font-size: 28px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 8px;
}

.step-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* TRUST PILLARS SECTION */
.trust-pillars-section {
  padding: 40px 0;
  border-top: 1px solid var(--item-border-sep);
  margin-bottom: 48px;
}

.trust-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 18px;
  text-align: left;
}

.pillar-icon {
  font-size: 22px;
  color: var(--cyan);
  margin-bottom: 12px;
}

.pillar-card h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 6px;
}

.pillar-card p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* FAQ ACCORDION SECTION */
.home-faq-section {
  padding: 44px 0 36px;
  border-top: 1px solid var(--item-border-sep);
  margin-bottom: 48px;
}

.faq-accordion-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-hover);
  background: var(--bg-card-subtle);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-size: 12px;
  color: var(--cyan);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  border-top: 1px solid var(--item-border-sep);
  padding-top: 14px;
}

/* DUAL CTA SECTION */
.home-dual-cta-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.cta-banner-box {
  padding: 32px 28px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.cta-claimant {
  background: linear-gradient(135deg, #13222a 0%, #0a1317 100%);
  border: 1px solid #1e3a47;
}

.cta-corporate {
  background: linear-gradient(135deg, #171c26 0%, #0b0e14 100%);
  border: 1px solid #283446;
}

.cta-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(39, 215, 232, 0.12);
  border: 1px solid rgba(39, 215, 232, 0.3);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.cta-banner-box h3 {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 8px;
}

.cta-banner-box p {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 20px;
}

/* =========================================================================
   RESPONSIVE OVERRIDES FOR HOME PAGE & GRIDS
========================================================================= */
@media (max-width: 1200px) {
  .companies-5grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 992px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }
  .home-hero-title {
    font-size: 34px;
  }
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }
  .trust-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modern-search-bar {
    grid-template-columns: 1fr;
  }
  .home-dual-cta-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navlinks {
    display: none !important;
  }
  .mobile-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .toolbar {
    grid-template-columns: 1fr;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .companies-5grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  .trust-pillars-grid {
    grid-template-columns: 1fr;
  }
  .stat-banner, .bottom-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }
  .stat-banner-item:nth-child(2), .bottom-stat-box:nth-child(2) {
    border-right: 0;
  }
  .search-filter-bar {
    grid-template-columns: 1fr;
  }
  .search-filter-bar input, .search-filter-bar select {
    border-right: 0;
    border-bottom: 1px solid var(--item-border-sep);
  }
}

@media (max-width: 480px) {
  .companies-5grid {
    grid-template-columns: 1fr;
  }
  .stat-banner, .bottom-stats-bar {
    grid-template-columns: 1fr;
  }
  .stat-banner-item, .bottom-stat-box {
    border-right: 0 !important;
    border-bottom: 1px solid var(--item-border-sep);
    padding-bottom: 16px;
  }
  .stat-banner-item:last-child, .bottom-stat-box:last-child {
    border-bottom: 0;
  }
}

/* =========================================================================
   LARGE SCREENS & ULTRA-WIDE RESPONSIVE SYSTEM (1440px, 1680px, 1920px+)
   ========================================================================= */

/* 1. Large Laptops & Standard Desktops (1440px+) */
@media (min-width: 1440px) {
  .container {
    width: min(1440px, calc(100% - 64px));
  }
  body {
    font-size: 15.5px;
  }
  .header {
    height: 78px;
  }
  .home-hero-title, .hero-left h1 {
    font-size: 60px;
    letter-spacing: -1.6px;
  }
  .home-hero-sub {
    font-size: 17px;
    max-width: 660px;
  }
  .modern-search-bar {
    min-height: 58px;
  }
  .modern-search-bar input {
    font-size: 15.5px;
  }
  .modern-search-bar .btn-search {
    padding: 0 30px;
    font-size: 13.5px;
  }
  .companies-5grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .company-card {
    padding: 24px;
  }
  .company-card-title {
    font-size: 18px;
  }
  .company-card-meta {
    font-size: 13.5px;
  }
  .trust-pillars-grid {
    gap: 22px;
  }
  .how-it-works-grid {
    gap: 26px;
  }
  .case-detail-layout, .company-profile-layout {
    grid-template-columns: 1fr 400px;
    gap: 34px;
  }
  .case-row {
    grid-template-columns: 56px 1fr 170px 170px 150px;
    padding: 20px 26px;
    font-size: 15px;
  }
  .toolbar {
    gap: 16px;
  }
  .card, .admin-card {
    padding: 30px;
  }
  .case-overview-card {
    padding: 28px 32px;
  }
}

/* 2. Wide Desktops & 2K Displays (1680px+) */
@media (min-width: 1680px) {
  .container {
    width: min(1620px, calc(100% - 80px));
  }
  body {
    font-size: 16px;
  }
  .header {
    height: 82px;
  }
  .theme-logo {
    height: 42px;
    max-width: 215px;
  }
  .navlinks {
    gap: 26px;
    font-size: 14.5px;
  }
  .home-hero-title, .hero-left h1 {
    font-size: 66px;
    letter-spacing: -1.8px;
    line-height: 1.05;
  }
  .home-hero-sub {
    font-size: 18px;
    max-width: 740px;
    line-height: 1.7;
  }
  .modern-search-bar {
    min-height: 62px;
    border-radius: 12px;
    padding: 7px;
  }
  .modern-search-bar input {
    font-size: 16px;
  }
  .modern-search-bar select {
    font-size: 14.5px;
  }
  .modern-search-bar .btn-search {
    padding: 0 34px;
    font-size: 14px;
  }
  .companies-5grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
  .company-card {
    padding: 26px;
    border-radius: 14px;
  }
  .company-card-title {
    font-size: 19px;
  }
  .company-card-meta {
    font-size: 14px;
  }
  .company-card-logo-box {
    height: 90px;
  }
  .trust-pillars-grid {
    gap: 26px;
  }
  .how-it-works-grid {
    gap: 30px;
  }
  .case-detail-layout, .company-profile-layout {
    grid-template-columns: 1fr 440px;
    gap: 38px;
  }
  .case-row {
    grid-template-columns: 60px 1fr 190px 190px 160px;
    padding: 22px 30px;
    font-size: 15.5px;
  }
  .toolbar {
    gap: 18px;
  }
  .card, .admin-card {
    padding: 34px;
    border-radius: 14px;
  }
}

/* 3. Ultra-Wide, 4K & Retina Displays (1920px+) */
@media (min-width: 1920px) {
  .container {
    width: min(1780px, calc(100% - 96px));
  }
  body {
    font-size: 16.5px;
  }
  .header {
    height: 86px;
  }
  .theme-logo {
    height: 46px;
    max-width: 235px;
  }
  .home-hero-title, .hero-left h1 {
    font-size: 74px;
    letter-spacing: -2px;
  }
  .home-hero-sub {
    font-size: 19px;
    max-width: 800px;
  }
  .modern-search-bar {
    min-height: 66px;
    border-radius: 14px;
    padding: 8px;
  }
  .modern-search-bar input {
    font-size: 16.5px;
  }
  .modern-search-bar select {
    font-size: 15px;
  }
  .modern-search-bar .btn-search {
    padding: 0 38px;
    font-size: 14.5px;
  }
  .companies-5grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  .company-card {
    padding: 28px;
    border-radius: 16px;
  }
  .company-card-title {
    font-size: 20px;
  }
  .company-card-meta {
    font-size: 14.5px;
  }
  .company-card-logo-box {
    height: 96px;
  }
  .trust-pillars-grid {
    gap: 30px;
  }
  .how-it-works-grid {
    gap: 34px;
  }
  .case-detail-layout, .company-profile-layout {
    grid-template-columns: 1fr 480px;
    gap: 44px;
  }
  .case-row {
    grid-template-columns: 64px 1fr 210px 210px 170px;
    padding: 24px 34px;
    font-size: 16px;
  }
  .card, .admin-card {
    padding: 38px;
  }
}

/* ==========================================================================
   OWECASE MODERN PAGINATION COMPONENT (DARK & LIGHT THEME)
   ========================================================================== */
.owecase-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 36px 0 18px;
  width: 100%;
}

.owecase-pagination .pagination-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  flex-wrap: wrap;
  justify-content: center;
}

.owecase-pagination .pagination-pages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.owecase-pagination .pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.owecase-pagination .pagination-link:hover:not(.disabled) {
  color: var(--text-heading);
  background: var(--border);
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.owecase-pagination .pagination-link.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.owecase-pagination .pagination-link i {
  font-size: 11px;
}

.owecase-pagination .pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.owecase-pagination .pagination-page:hover:not(.active) {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-1px);
}

.owecase-pagination .pagination-page.active {
  color: #03070a;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 800;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
  cursor: default;
  transform: none;
}

[data-theme="light"] .owecase-pagination .pagination-page.active {
  color: #ffffff;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.owecase-pagination .pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 38px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  user-select: none;
}

.owecase-pagination .pagination-summary {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  text-align: center;
}

.owecase-pagination .pagination-summary span {
  font-weight: 800;
  color: var(--text-heading);
}

/* Fallback reset for any unstyled Laravel Tailwind Pagination SVG icons */
nav[role="navigation"] svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .owecase-pagination .pagination-inner {
    padding: 4px 6px;
    gap: 4px;
  }
  .owecase-pagination .pagination-page,
  .owecase-pagination .pagination-link {
    min-width: 34px;
    height: 34px;
    font-size: 12px;
    padding: 0 10px;
  }
  .owecase-pagination .pagination-text {
    display: none;
  }
}


