/* Omnalerge Reviews — Flagship Aurora & Glass Design System */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-hover: #f8fafc;
  --ink: #090d16;
  --ink-secondary: #1e293b;
  --muted: #475569;
  --subtle: #64748b;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --header-bg: rgba(255, 255, 255, 0.82);
  --btn-bg: #0f172a;
  --btn-fg: #ffffff;
  --btn-hover: #1e293b;
  --brand: #059669;
  --brand-2: #0d9488;
  --brand-3: #0284c7;
  --brand-soft: rgba(5, 150, 105, 0.1);
  --brand-border: rgba(5, 150, 105, 0.28);
  --star: #f59e0b;
  --warn: #d97706;
  --warn-bg: rgba(217, 119, 6, 0.12);
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.09);
  --code-bg: #0b1120;
  --code-fg: #e2e8f0;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 14px 34px -8px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 28px 64px -14px rgba(15, 23, 42, 0.18);
  --shadow-brand: 0 14px 32px -8px rgba(5, 150, 105, 0.35);
  --ring: 0 0 0 3px rgba(5, 150, 105, 0.22);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --max: 1160px;
}

[data-theme="dark"] {
  --bg: #07090f;
  --surface: #0f131d;
  --surface-alt: #161c2a;
  --surface-hover: #1c2436;
  --input-bg: #131926;
  --ink: #f8fafc;
  --ink-secondary: #e2e8f0;
  --muted: #94a3b8;
  --subtle: #64748b;
  --border: rgba(148, 163, 184, 0.13);
  --border-strong: rgba(148, 163, 184, 0.24);
  --header-bg: rgba(7, 9, 15, 0.82);
  --btn-bg: #f8fafc;
  --btn-fg: #090d16;
  --btn-hover: #e2e8f0;
  --brand: #34d399;
  --brand-2: #2dd4bf;
  --brand-3: #38bdf8;
  --brand-soft: rgba(52, 211, 153, 0.12);
  --brand-border: rgba(52, 211, 153, 0.3);
  --code-bg: #090d16;
  --code-fg: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 38px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 32px 70px -14px rgba(0, 0, 0, 0.8);
  --shadow-brand: 0 14px 36px -8px rgba(16, 185, 129, 0.32);
  --ring: 0 0 0 3px rgba(52, 211, 153, 0.26);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 460px at 12% -6%, rgba(16, 185, 129, 0.12), transparent 60%),
    radial-gradient(760px 420px at 92% 4%, rgba(14, 165, 233, 0.1), transparent 58%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
  transition: background-color 0.2s ease, color 0.2s ease;
}
[data-theme="dark"] body {
  background-image:
    radial-gradient(950px 520px at 10% -8%, rgba(16, 185, 129, 0.15), transparent 60%),
    radial-gradient(820px 480px at 92% 6%, rgba(56, 189, 248, 0.11), transparent 58%),
    radial-gradient(640px 400px at 50% 100%, rgba(139, 92, 246, 0.06), transparent 65%);
}
/* Prevent CSS Grid & Flex children from ever overflowing horizontally */
.grid > *, .docs-shell > *, .app-shell > *, .hero-grid > *, .card, .table-wrap, section, article, aside {
  min-width: 0;
  max-width: 100%;
}
pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
a { color: inherit; text-decoration: none; }
.tabular { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header & Navigation */
header.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  backdrop-filter: saturate(190%) blur(18px);
  -webkit-backdrop-filter: saturate(190%) blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}
header.site-header::before {
  content: ""; display: block; height: 2px; width: 100%;
  background: linear-gradient(90deg, #059669, #14b8a6, #0ea5e9, #10b981);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-weight: 800; font-size: 1.08rem; letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand-shield {
  width: 31px; height: 31px; border-radius: 9px;
  background: linear-gradient(135deg, #059669 0%, #10b981 55%, #0d9488 100%);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.brand-sub {
  font-weight: 700; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-border);
}
nav.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link {
  font-size: 0.875rem; font-weight: 550; color: var(--muted);
  padding: 7px 12px; border-radius: var(--radius-sm);
  transition: color 0.16s, background-color 0.16s;
}
.nav-link:hover { color: var(--ink); background: var(--surface-alt); }
.nav-divider { width: 1px; height: 18px; background: var(--border-strong); margin: 0 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 0.88rem;
  padding: 10px 18px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1); white-space: nowrap;
}
.btn-sm { padding: 7px 13px; font-size: 0.82rem; border-radius: 9px; }
.btn-primary {
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-primary:hover { background: var(--btn-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-brand {
  background: linear-gradient(135deg, #059669 0%, #10b981 55%, #0d9488 100%);
  color: #ffffff;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-brand:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(5, 150, 105, 0.45); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-border); background: var(--surface-alt); transform: translateY(-1px); }
.btn-danger { background: transparent; border-color: rgba(220, 38, 38, 0.32); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.theme-btn {
  width: 37px; height: 37px; border-radius: 11px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: all 0.16s ease; box-shadow: var(--shadow-sm);
}
.theme-btn:hover { border-color: var(--brand-border); background: var(--surface-alt); transform: rotate(12deg); }

/* Main & Typography */
main { padding: 40px 0 88px; min-height: calc(100vh - 280px); }
h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  letter-spacing: -0.032em; margin: 0; line-height: 1.14; color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 750; }
h3 { font-size: 1.06rem; font-weight: 700; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.01em;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-border);
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.08);
}
.lead { font-size: 1.06rem; color: var(--muted); max-width: 620px; margin: 14px 0 0; line-height: 1.68; }
.muted { color: var(--muted); font-size: 0.9rem; }
.subtle { color: var(--subtle); font-size: 0.8rem; }

/* Hero Section & Live Visual Preview */
.hero-box {
  position: relative; overflow: hidden;
  background:
    radial-gradient(740px circle at 95% 0%, rgba(16, 185, 129, 0.18), transparent 55%),
    radial-gradient(560px circle at 0% 100%, rgba(14, 165, 233, 0.12), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 48px 44px;
  box-shadow: var(--shadow-md);
}
.hero-box::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #059669, #14b8a6, #0ea5e9, transparent);
  opacity: 0.8;
}
.hero-box::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.32;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 85%);
}
.hero-box > * { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 36px; align-items: center;
}
.hero-preview {
  position: relative; display: flex; flex-direction: column; gap: 12px;
}
.preview-card {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 18px; padding: 20px;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.preview-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #059669, #34d399, #0ea5e9);
}
.preview-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.preview-score {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 10px;
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.28);
  font-weight: 800; font-size: 0.92rem; color: var(--ink);
}
.google-snippet {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.google-snippet .g-url { font-size: 0.74rem; color: var(--subtle); }
.google-snippet .g-title { font-size: 0.92rem; font-weight: 650; color: #2563eb; }
[data-theme="dark"] .google-snippet .g-title { color: #60a5fa; }
.google-snippet .g-stars { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gradient-text {
  background: linear-gradient(135deg, #059669 0%, #0d9488 45%, #0284c7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #34d399 0%, #2dd4bf 50%, #38bdf8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulseRing 2s infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Bento Feature Cards & Steps */
.feature-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px; display: flex; flex-direction: column; gap: 11px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--brand-border); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-soft), rgba(14, 165, 233, 0.1));
  border: 1px solid var(--brand-border); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800;
}
.step-num {
  width: 34px; height: 34px; border-radius: 999px;
  background: linear-gradient(135deg, #059669, #0d9488); color: #fff; font-weight: 800; font-size: 0.86rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.3);
}
.spotlight-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px;
}
.spotlight-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.spotlight-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.share-card-img {
  width: 100%; border-radius: 14px; border: 1px solid var(--border);
  display: block; box-shadow: var(--shadow-md);
}
.cta-banner {
  position: relative; overflow: hidden; margin-top: 56px;
  border-radius: 24px; padding: 44px 38px;
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 55%, #0c4a6e 100%);
  color: #f8fafc; border: 1px solid rgba(52, 211, 153, 0.28);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { color: #ffffff; font-size: clamp(1.45rem, 2.8vw, 2rem); }
.cta-banner p { color: #cbd5e1; margin: 8px 0 0; max-width: 560px; }

/* Company Hero Banner */
.company-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px circle at 92% 0%, rgba(16, 185, 129, 0.14), transparent 55%),
    var(--surface);
  border: 1px solid var(--border); border-radius: 22px; padding: 30px;
  box-shadow: var(--shadow-md);
}
.company-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #059669, #14b8a6, #0ea5e9);
}
.rating-showcase {
  padding: 16px 22px; border-radius: 16px;
  background: var(--surface-alt); border: 1px solid var(--border);
  text-align: center; min-width: 150px;
}

.search-bar {
  display: flex; gap: 10px; margin-top: 24px; max-width: 600px; position: relative;
}
.search-bar input {
  padding: 13px 16px; font-size: 0.95rem; border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.stats-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--border);
}
.stat-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--surface-alt); border: 1px solid var(--border);
}
.stat-num { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }

/* Sections & Cards */
.section-block { margin-top: 52px; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 14px; margin-bottom: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}
.card-soft { background: var(--surface-alt); box-shadow: none; }
.card-link {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  position: relative; overflow: hidden;
}
.card-link::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0; transition: opacity 0.2s ease;
}
.card-link:hover {
  border-color: var(--brand-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-link:hover::after { opacity: 1; }
.card-highlight {
  border-color: var(--brand);
  box-shadow: 0 16px 36px -10px rgba(5, 150, 105, 0.22);
  position: relative;
}
.card-highlight::before {
  content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 3px;
  background: linear-gradient(90deg, #059669, #14b8a6, #0ea5e9); border-radius: 0 0 4px 4px;
}

/* Grids */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }

/* Badges, Pills & Avatars */
.stars { color: var(--star); letter-spacing: 0.05em; font-size: 0.96rem; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface-alt); color: var(--muted);
}
.pill.active { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.pill-verified { color: var(--brand); border-color: var(--brand-border); background: var(--brand-soft); font-weight: 600; }
.pill-warn { color: var(--warn); border-color: rgba(217, 119, 6, 0.35); background: var(--warn-bg); font-weight: 600; }
.avatar {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-soft), rgba(14, 165, 233, 0.1));
  border: 1px solid var(--brand-border);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800; font-size: 0.94rem; color: var(--brand);
}
.avatar-sm { width: 32px; height: 32px; border-radius: 9px; font-size: 0.78rem; }

/* Omnalerge Verified Seal Box */
.seal-box {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: 16px 20px; border-radius: 12px;
  background: var(--brand-soft); border: 1px solid var(--brand-border);
  margin-top: 18px;
}
.seal-left { display: flex; align-items: center; gap: 12px; }
.seal-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Multi-Platform Rating Chips */
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.plat-chip {
  padding: 14px 16px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface-alt); display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.15s ease;
}
.plat-chip:hover { border-color: var(--border-strong); }

/* Rating Distribution Bars */
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; margin: 6px 0; font-variant-numeric: tabular-nums; }
.bar-track { flex: 1; height: 7px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #059669, #14b8a6); border-radius: 999px; }

/* Forms & Controls */
label { display: block; font-size: 0.82rem; font-weight: 550; color: var(--ink-secondary); margin: 13px 0 5px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 0.94rem;
  padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--input-bg, var(--surface)); color: var(--ink);
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none; appearance: none;
}
input[type="checkbox"] {
  width: 18px; height: 18px; padding: 0; border-radius: 5px;
  -webkit-appearance: auto; appearance: auto; accent-color: var(--brand); cursor: pointer;
}
.check-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 0.88rem; color: var(--ink-secondary); cursor: pointer; }
.menu-toggle {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center; font-size: 1.15rem; cursor: pointer;
}
.mobile-drawer {
  display: none; position: fixed; inset: 68px 0 0 0; z-index: 45;
  background: var(--bg); padding: 20px 24px 36px; overflow-y: auto;
  border-top: 1px solid var(--border);
  flex-direction: column; gap: 8px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer .nav-link { padding: 12px 14px; font-size: 1rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }
textarea { min-height: 92px; resize: vertical; }
input[type="range"] { padding: 0; border: 0; accent-color: var(--brand); box-shadow: none; }
.star-picker { display: inline-flex; gap: 6px; font-size: 1.75rem; cursor: pointer; user-select: none; }
.star-picker span { color: var(--border-strong); transition: color 0.12s, transform 0.12s; }
.star-picker span:hover { transform: scale(1.1); }
.star-picker span.on { color: var(--star); }

/* Tabs */
.tabs {
  display: inline-flex; gap: 4px; padding: 5px; border-radius: 12px;
  background: var(--surface-alt); border: 1px solid var(--border);
  margin-bottom: 24px; flex-wrap: wrap;
}
.tab-btn {
  background: transparent; border: 0; padding: 8px 14px; border-radius: 8px;
  font: inherit; font-size: 0.85rem; font-weight: 550; color: var(--muted); cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th {
  color: var(--subtle); font-weight: 600; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.05em; background: var(--surface-alt);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-hover); }

/* Code Blocks & Reply Box */
pre {
  background: var(--code-bg); color: var(--code-fg);
  padding: 15px 18px; border-radius: 11px;
  overflow-x: auto; font-size: 0.82rem; line-height: 1.55; margin: 10px 0 0;
  border: 1px solid var(--border);
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; }
.reply-box {
  margin-top: 14px; padding: 13px 16px; border-left: 3px solid var(--brand);
  background: var(--surface-alt); border-radius: 0 10px 10px 0; font-size: 0.89rem;
}

/* API Docs & Legal Layout */
.docs-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.docs-nav {
  position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px;
  padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.docs-nav-title {
  padding: 4px 10px 8px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--subtle);
}
.docs-nav a {
  padding: 7px 10px; border-radius: 8px; font-size: 0.86rem; color: var(--muted);
  transition: background-color 0.14s, color 0.14s;
}
.docs-nav a:hover, .docs-nav a.active { background: var(--surface-alt); color: var(--ink); font-weight: 550; }
.method {
  display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 8px;
  border-radius: 6px; margin-right: 8px; font-family: ui-monospace, monospace;
}
.m-get { background: rgba(16, 185, 129, 0.14); color: #059669; }
.m-post { background: rgba(59, 130, 246, 0.14); color: #2563eb; }
.m-patch { background: rgba(245, 158, 11, 0.16); color: #d97706; }
.m-del { background: rgba(239, 68, 68, 0.14); color: #dc2626; }
.ep-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.ep-row:last-of-type { border-bottom: 0; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.89rem; color: var(--muted); }
.feature-list li::before { content: "✓"; color: var(--brand); font-weight: 800; flex-shrink: 0; }

/* Modal Popup */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(9, 9, 11, 0.62);
  backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; padding: 26px;
  box-shadow: var(--shadow-lg); animation: modalPop 0.18s ease;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
@keyframes modalPop { from { opacity: 0; transform: scale(0.96) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* Toast Notifications */
#toastStack {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px; max-width: 360px;
}
.toast {
  background: var(--surface); color: var(--ink); border: 1px solid var(--border);
  padding: 13px 16px; border-radius: 11px; font-size: 0.86rem; font-weight: 550;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.2s ease;
}
.toast.success { border-left: 4px solid var(--brand); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--ink); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 34px;
  font-size: 0.84rem; color: var(--subtle);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col strong {
  color: var(--ink); font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 4px;
}
.footer-col a { color: var(--muted); transition: color 0.14s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* Dedicated Sidebar App Shell (User Workspace & Admin Console) */
.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100dvh;
  background: var(--bg);
}
.app-sidebar {
  position: sticky; top: 0; height: 100dvh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 18px 14px;
  overflow-y: auto;
  z-index: 35;
}
.sidebar-brand {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px 16px; border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.sidebar-group { margin-bottom: 16px; }
.sidebar-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--subtle); padding: 4px 10px 6px;
}
.side-item {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: transparent; border: 0; text-align: left; font: inherit;
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  padding: 9px 11px; border-radius: 9px; cursor: pointer;
  transition: background-color 0.14s, color 0.14s;
}
.side-item:hover { background: var(--surface-alt); color: var(--ink); }
.side-item.active {
  background: var(--brand-soft); color: var(--brand); font-weight: 650;
  box-shadow: inset 3px 0 0 var(--brand);
}
.side-badge {
  font-size: 0.72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  background: var(--surface-alt); color: var(--muted); font-variant-numeric: tabular-nums;
}
.side-badge.warn { background: var(--warn-bg); color: var(--warn); }
.sidebar-footer {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.app-main {
  min-width: 0; display: flex; flex-direction: column;
}
.app-topbar {
  position: sticky; top: 0; z-index: 25;
  height: 64px; padding: 0 28px;
  background: var(--header-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.app-content {
  padding: 28px; max-width: 1240px; width: 100%; margin: 0 auto;
}
.toolbar-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.toolbar-row input[type="search"] { max-width: 300px; }

/* Responsive: Tablet, Mobile, iOS & macOS Safe Areas */
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 270px;
    transform: translateX(-100%); transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
  }
  .app-sidebar.open { transform: translateX(0); }
  .app-topbar { padding: 0 16px; }
  .app-content { padding: 20px 16px 48px; }
}
@media (max-width: 900px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .hero-box { padding: 30px 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-banner { padding: 30px 22px; }
  nav.nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .wrap { padding: 0 16px; }
  main { padding: 28px 0 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .search-bar { flex-direction: column; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .btn { min-height: 44px; touch-action: manipulation; }
  .btn-sm { min-height: 38px; }
  input, select, textarea { font-size: 16px; } /* Prevents iOS Safari zoom on focus */
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tab-btn { white-space: nowrap; }
  #toastStack { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: none; }
}
/* Dramatic Dark-Emerald Hero Stage (Always Bold & Lush in Light & Dark Mode) */
.hero-stage {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 52px 44px 40px;
  background:
    radial-gradient(640px circle at 12% 10%, rgba(16, 185, 129, 0.34), transparent 55%),
    radial-gradient(620px circle at 88% 15%, rgba(14, 165, 233, 0.28), transparent 55%),
    radial-gradient(540px circle at 52% 100%, rgba(139, 92, 246, 0.22), transparent 58%),
    linear-gradient(145deg, #071318 0%, #0b192c 52%, #0e1428 100%);
  color: #f8fafc;
  border: 1px solid rgba(52, 211, 153, 0.25);
  box-shadow: 0 28px 70px -16px rgba(2, 6, 23, 0.45);
}
.hero-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.2;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 80%);
}
.hero-stage > * { position: relative; z-index: 1; }
.hero-stage h1 { color: #ffffff; }
.hero-stage .lead { color: #cbd5e1; }
.hero-stage .eyebrow {
  background: rgba(16, 185, 129, 0.16); color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.38);
}
.hero-stage .gradient-text {
  background: linear-gradient(120deg, #34d399 0%, #2dd4bf 48%, #38bdf8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stage .search-bar input {
  background: rgba(15, 23, 42, 0.72); color: #ffffff;
  border-color: rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(10px);
}
.hero-stage .search-bar input::placeholder { color: #94a3b8; }
.hero-stage .stats-strip { border-top-color: rgba(148, 163, 184, 0.18); }
.hero-stage .stat-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.hero-stage .stat-num { color: #ffffff; }
.hero-stage .subtle { color: #94a3b8; }
.hero-stage .preview-card {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(52, 211, 153, 0.32);
  backdrop-filter: blur(16px); color: #f8fafc;
}
.hero-stage .google-snippet {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.hero-stage .google-snippet .g-title { color: #60a5fa; }
.hero-stage .google-snippet .g-stars { color: #cbd5e1; }
.hero-stage .mini-glass {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(10px);
}

/* Ecosystem Trust Ribbon */
.trust-ribbon {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin-top: 24px; padding: 16px 20px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: var(--surface-alt); border: 1px solid var(--border); color: var(--ink-secondary);
}
.trust-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Asymmetric Colorful Bento Grid */
.bento-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.bento-card {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 28px;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bento-span-2 { grid-column: span 2; }
.bento-dark {
  background: linear-gradient(145deg, #0b1324 0%, #111c33 60%, #09262a 100%);
  color: #f8fafc; border-color: rgba(52, 211, 153, 0.28);
}
.bento-dark h3, .bento-dark strong { color: #ffffff; }
.bento-dark .muted { color: #cbd5e1; }
.bento-emerald {
  background: linear-gradient(145deg, rgba(5, 150, 105, 0.14), rgba(20, 184, 166, 0.08)), var(--surface);
  border-color: rgba(16, 185, 129, 0.34);
}
.bento-indigo {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.14), rgba(14, 165, 233, 0.08)), var(--surface);
  border-color: rgba(99, 102, 241, 0.3);
}
.bento-amber {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.15), rgba(249, 115, 22, 0.07)), var(--surface);
  border-color: rgba(245, 158, 11, 0.34);
}
.trust-meter { display: flex; flex-direction: column; gap: 8px; }
.trust-meter-row { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; }
.trust-meter-track { flex: 1; height: 7px; border-radius: 999px; background: rgba(148,163,184,0.2); overflow: hidden; }
.trust-meter-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #10b981, #38bdf8); }

/* Company Profile Hero Banner (Rich Midnight-Emerald) */
.company-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(640px circle at 92% 0%, rgba(16, 185, 129, 0.3), transparent 55%),
    radial-gradient(500px circle at 0% 100%, rgba(14, 165, 233, 0.22), transparent 55%),
    linear-gradient(145deg, #071318 0%, #0d1b2a 60%, #10192d 100%);
  color: #f8fafc;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 24px; padding: 34px 32px;
  box-shadow: 0 24px 60px -16px rgba(2, 6, 23, 0.45);
}
.company-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #10b981, #2dd4bf, #38bdf8);
}
.company-hero h1, .company-hero strong { color: #ffffff; }
.company-hero .lead, .company-hero .muted { color: #cbd5e1; }
.company-hero .subtle { color: #94a3b8; }
.company-hero .pill {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #e2e8f0;
}
.company-hero .pill-verified {
  background: rgba(16, 185, 129, 0.18); border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7;
}
.company-hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #ffffff;
}
.company-hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.company-hero .seal-box {
  background: rgba(16, 185, 129, 0.12); border-color: rgba(52, 211, 153, 0.32);
}

/* Deep Contrast Footer */
footer.site-footer {
  border-top: 1px solid rgba(52, 211, 153, 0.22);
  background: linear-gradient(180deg, #0b1120 0%, #070a12 100%);
  color: #94a3b8;
  padding: 56px 0 36px;
  font-size: 0.85rem;
}
footer.site-footer .brand { color: #ffffff; }
footer.site-footer .footer-col strong { color: #f8fafc; }
footer.site-footer .footer-col a { color: #94a3b8; }
footer.site-footer .footer-col a:hover { color: #34d399; }
footer.site-footer .footer-bottom { border-top-color: rgba(148, 163, 184, 0.16); color: #64748b; }

/* Deep Midnight Sidebar for Workspace & Admin Console */
.app-sidebar {
  background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}
.app-sidebar .brand { color: #ffffff; }
.app-sidebar .sidebar-brand { border-bottom-color: rgba(148, 163, 184, 0.16); }
.app-sidebar .sidebar-label { color: #64748b; }
.app-sidebar .side-item { color: #cbd5e1; }
.app-sidebar .side-item:hover { background: rgba(255, 255, 255, 0.07); color: #ffffff; }
.app-sidebar .side-item.active {
  background: rgba(16, 185, 129, 0.16); color: #34d399;
  box-shadow: inset 3px 0 0 #34d399;
}
.app-sidebar .side-badge { background: rgba(255, 255, 255, 0.1); color: #e2e8f0; }
.app-sidebar .sidebar-footer { border-top-color: rgba(148, 163, 184, 0.16); }
.app-sidebar .btn-ghost {
  background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #f8fafc;
}
.app-sidebar .btn-ghost:hover { background: rgba(255, 255, 255, 0.13); }
.app-sidebar select {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #ffffff;
}
.app-sidebar select option { background: #0f172a; color: #ffffff; }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-span-2 { grid-column: span 1; }
  .hero-stage { padding: 32px 22px 28px; }
  .company-hero { padding: 24px 20px; }
}
