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

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.6);
    --bg-card: var(--surface);
    --text: #0f172a;
    --muted: #64748b;
    --text-muted: var(--muted);
    --border: rgba(148, 163, 184, 0.15);
    --border-strong: rgba(148, 163, 184, 0.3);
    --blue: #3b82f6;
    --violet: #6366f1;
    --green: #10b981;
    --amber: #f59e0b;
    --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.03);
    --shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
input, select, textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    padding: 11px 16px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
textarea { min-height: 110px; resize: vertical; }
button {
    border: 0;
    border-radius: 12px;
    min-height: 46px;
    padding: 0 18px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    cursor: pointer;
}
.muted { color: var(--muted); line-height: 1.65; }
.badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    background: #e2e8f0;
    color: #334155;
}
.badge.blue { background: #dbeafe; color: #1d4ed8; }
.badge.violet { background: #ede9fe; color: #6d28d9; }
.badge.green { background: #dcfce7; color: #15803d; }
.badge.amber { background: #fef3c7; color: #b45309; }
.badge.red { background: #ffe4e6; color: #be123c; }

/* Public website */
.public-body { background: #fff; }
.public-body main > .grid,
.public-body main > .audit-page-grid,
.public-body main > .audit-report-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 54px;
}
.site {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 5%, rgba(37, 99, 235, .10), transparent 32%),
        radial-gradient(circle at 88% 10%, rgba(124, 58, 237, .12), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #fff 42%, #f7f9fc 100%);
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 0 clamp(20px, 4vw, 64px);
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255, 255, 255, .92);
}
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: -1;
}
.site-brand, .admin-brand, .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    flex-shrink: 0;
}
.site-brand small, .admin-brand small, .brand small {
    display: block;
    color: var(--muted);
    font-weight: 750;
    margin-top: 2px;
}
.brand-mark, .auth-logo.text-logo {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 12px 28px rgba(37, 99, 235, .20);
}
.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}
.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 4px;
    min-width: 0;
}
.site-nav a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-height: 38px;
    border-radius: 999px;
    padding: 0 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.15s, background 0.15s;
}
.site-nav a.active, .site-nav a:hover {
    color: var(--blue);
    background: #eff6ff;
}
.site-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-login { font-weight: 900; }
.nav-cta, .primary-cta, .button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 22px;
    color: white;
    font-weight: 900;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    box-shadow: 0 16px 36px rgba(37, 99, 235, .22);
}
.secondary-cta, .secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 22px;
    color: var(--text);
    font-weight: 900;
    background: #fff;
}
.whatsapp-link { background: linear-gradient(90deg, #16a34a, #059669); }
.google-link {
    color: #1f2937;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: none;
}
.google-link:before {
    content: "G";
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 50%;
    background: #4285f4;
    color: white;
    font-weight: 800;
}
.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .88fr);
    gap: clamp(34px, 6vw, 82px);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(54px, 8vw, 96px) 24px 34px;
}
.hero-copy h1 {
    max-width: 790px;
    margin: 16px 0 18px;
    font-size: clamp(44px, 6.4vw, 78px);
    line-height: .98;
    letter-spacing: -0.035em;
}
.hero-copy p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.72;
}
.eyebrow {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 12px;
    background: #eaf2ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.landing-actions.center { justify-content: center; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust-row span, .logo-strip span {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    padding: 8px 11px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.hero-visual {
    display: grid;
    gap: 18px;
    align-content: start;
}
.hero-visual > img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: var(--shadow);
}
.audit-panel {
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: 22px;
    padding: 28px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 26px 80px rgba(15, 23, 42, .12);
}
.floating-audit {
    position: static;
}
.audit-panel h2 { margin: 0 0 8px; font-size: 28px; }
.audit-panel p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }
.audit-panel input { min-height: 52px; margin-bottom: 12px; }
.audit-panel button { width: 100%; min-height: 52px; border-radius: 999px; }
.audit-result {
    min-height: 118px;
    display: grid;
    place-items: center;
    margin-top: 14px;
    border: 1px dashed var(--border);
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
    padding: 18px;
    background: #f8fafc;
}
.audit-result:has(.audit-report),
.empty-panel:has(.audit-report) {
    display: block;
    place-items: unset;
    text-align: left;
    border-style: solid;
    background: #fff;
}
.audit-loading,
.audit-error {
    text-align: center;
}
.audit-error strong { color: #be123c; }
.audit-report {
    display: grid;
    gap: 16px;
}
.audit-score-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border-radius: 18px;
    padding: 16px;
    background: #eff6ff;
}
.audit-score-card.green { background: #ecfdf5; }
.audit-score-card.blue { background: #eff6ff; }
.audit-score-card.amber { background: #fffbeb; }
.audit-score-card.red { background: #fff1f2; }
.score-ring {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 18px 38px rgba(37, 99, 235, .22);
}
.score-ring strong { display: block; font-size: 30px; line-height: 1; }
.score-ring span { margin-top: -14px; font-size: 12px; font-weight: 900; opacity: .86; }
.audit-score-card h3 {
    margin: 8px 0 4px;
    font-size: 22px;
}
.audit-score-card p {
    margin: 0;
    color: var(--muted);
}
.audit-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.audit-summary-grid div {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
}
.audit-summary-grid strong {
    display: block;
    color: var(--text);
    font-size: 22px;
}
.audit-summary-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.audit-report-section h4 {
    margin: 0 0 10px;
    font-size: 15px;
}
.audit-check-list,
.audit-bullets {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.audit-check-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    background: #fff;
}
.audit-check-list li > span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}
.audit-check-list li.pass > span {
    color: #15803d;
    background: #dcfce7;
}
.audit-check-list li.fail > span {
    color: #be123c;
    background: #ffe4e6;
}
.audit-check-list small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    line-height: 1.45;
}
.audit-bullets li {
    border-left: 3px solid var(--blue);
    padding: 8px 0 8px 10px;
    color: var(--muted);
    line-height: 1.45;
}
.audit-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.audit-report-actions .button-link,
.audit-report-actions .secondary-cta {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
}
.audit-ready-mini {
    display: grid;
    gap: 6px;
    text-align: left;
}
.audit-ready-mini strong {
    color: var(--text);
    font-size: 18px;
}
.audit-ready-mini p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.audit-ready-mini a {
    color: var(--blue);
    font-weight: 900;
}
.audit-loading.premium {
    display: grid;
    gap: 12px;
    width: 100%;
    text-align: left;
}
.audit-loading.premium p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.audit-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}
.audit-progress span {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    animation: auditProgress 1.2s ease-in-out infinite alternate;
}
.audit-loading.premium ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.audit-loading.premium li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.audit-loading.premium li span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
}
@keyframes auditProgress {
    from { transform: translateX(-20%); }
    to { transform: translateX(38%); }
}
.audit-report-shell {
    max-width: 1200px;
    margin: 0 auto 34px;
    padding: 0 24px;
}
.audit-report-shell[hidden] { display: none; }
.audit-report-pro {
    display: grid;
    gap: 22px;
}
.audit-report-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 30px;
    padding: clamp(26px, 5vw, 46px);
    background:
        radial-gradient(circle at top right, rgba(124,58,237,.22), transparent 36%),
        linear-gradient(135deg, #f8fbff, #eef4ff);
    box-shadow: var(--shadow);
}
.audit-report-hero.green {
    background:
        radial-gradient(circle at top right, rgba(22,163,74,.18), transparent 34%),
        linear-gradient(135deg, #f8fbff, #ecfdf5);
}
.audit-report-hero.amber {
    background:
        radial-gradient(circle at top right, rgba(217,119,6,.18), transparent 34%),
        linear-gradient(135deg, #f8fbff, #fffbeb);
}
.audit-report-hero.red {
    background:
        radial-gradient(circle at top right, rgba(225,29,72,.18), transparent 34%),
        linear-gradient(135deg, #f8fbff, #fff1f2);
}
.audit-report-hero h2 {
    margin: 12px 0 10px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.035em;
}
.audit-report-hero p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}
.audit-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.audit-meta-row span {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 11px;
    background: rgba(255,255,255,.72);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.audit-score-panel {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-width: 150px;
}
.audit-score-panel .score-ring {
    width: 132px;
    height: 132px;
}
.audit-score-panel .score-ring strong {
    font-size: 44px;
}
.audit-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.audit-category-grid article,
.audit-priority-card,
.audit-tabs,
.audit-fix-cta {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .07);
}
.audit-category-grid article {
    padding: 18px;
}
.audit-category-grid article > div {
    display: flex;
    align-items: end;
    gap: 3px;
    color: var(--blue);
}
.audit-category-grid strong {
    font-size: 32px;
    line-height: 1;
}
.audit-category-grid h3,
.audit-priority-card h3 {
    margin: 14px 0 8px;
    font-size: 18px;
}
.audit-category-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}
.audit-priority-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.audit-priority-card,
.audit-tabs,
.audit-fix-cta {
    padding: 22px;
}
.audit-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.audit-tab-buttons button {
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--muted);
    background: #fff;
    box-shadow: none;
}
.audit-tab-buttons button.active {
    color: white;
    border-color: transparent;
    background: linear-gradient(90deg, var(--blue), var(--violet));
}
.audit-tab-panel { display: none; }
.audit-tab-panel.active { display: block; }
.audit-content-preview {
    display: grid;
    gap: 10px;
}
.audit-content-preview h3 {
    margin: 0;
    font-size: 15px;
}
.audit-content-preview p {
    margin: 0 0 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    color: var(--muted);
    background: #f8fafc;
}
.audit-fix-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    color: white;
    border: 0;
    background:
        radial-gradient(circle at top right, rgba(124,58,237,.52), transparent 36%),
        linear-gradient(135deg, #0f172a, #1e1b4b);
}
.audit-fix-cta h2 {
    margin: 10px 0;
    font-size: clamp(28px, 4vw, 42px);
}
.audit-fix-cta p,
.audit-fix-cta .audit-bullets li {
    color: #cbd5e1;
}
.audit-fix-cta .audit-bullets li {
    border-color: #818cf8;
}
.audit-fix-cta .audit-report-actions {
    display: grid;
    min-width: 220px;
}
.audit-fix-cta .secondary-cta {
    color: white;
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
}
.mobile-fix-bar {
    display: none;
}
.logo-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1050px;
    margin: 0 auto;
    padding: 20px 24px 4px;
}
.landing-section, .split-section, .media-split, .final-cta, .pricing-grid, .page-header {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.landing-section { padding: 56px 24px; }
.landing-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.landing-section-head span { color: var(--blue); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.landing-section-head h2, .media-copy h2 {
    max-width: 760px;
    margin: 6px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.blog-grid, .faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1200px; margin: 0 auto; padding: 0 24px 54px; }
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
.feature-card, .blog-card, .faq-card, .price-panel, .process-panel, .admin-card, .card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    transition: all 0.25s ease;
}
.card:hover, .admin-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}
.feature-card, .blog-card, .faq-card { padding: 24px; }
.feature-card h3, .blog-card h3, .faq-card h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.18; }
.feature-card p, .blog-card p, .faq-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.blog-card a { display: inline-flex; margin-top: 18px; color: var(--blue); font-weight: 900; }
.media-split {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 32px;
    align-items: center;
    padding: 56px 24px;
}
.media-split img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.media-copy p { color: var(--muted); font-size: 18px; line-height: 1.72; }
.split-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; padding: 56px 24px; }
.price-panel, .process-panel { padding: 30px; }
.featured-price { max-width: 520px; margin: 0 auto; }
.pricing-grid { padding: 20px 24px 64px; }
.price-panel h2, .process-panel h2 { margin: 14px 0 12px; font-size: 32px; }
.price { font-size: 40px; font-weight: 800; margin: 8px 0; }
.feature-list { display: grid; gap: 10px; padding: 0; margin: 18px 0; list-style: none; }
.feature-list li:before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 9px; }
.process-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.process-step:last-child { border-bottom: 0; }
.process-step span {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    font-weight: 800;
}
.process-step p { margin: 5px 0 0; color: var(--muted); font-weight: 750; }
.final-cta {
    margin-top: 36px;
    margin-bottom: 54px;
    padding: 56px 24px;
    border-radius: 28px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #0f172a, #312e81);
}
.final-cta h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 48px); }
.final-cta p { max-width: 620px; margin: 0 auto; color: #cbd5e1; line-height: 1.7; }
.page-header { padding: 48px 24px 18px; }
.page-header span { color: var(--blue); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.page-header h1 { margin: 6px 0 8px; font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.025em; }
.page-header p { max-width: 780px; color: var(--muted); line-height: 1.7; }
.site-footer {
    margin-top: 56px;
    color: #cbd5e1;
    background:
        radial-gradient(circle at top right, rgba(124,58,237,.28), transparent 34%),
        linear-gradient(135deg, #0f172a, #111827 64%, #1e1b4b);
}
.site-footer-inner {
    display: grid;
    grid-template-columns: 1.5fr .75fr .75fr 1fr;
    gap: 34px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}
.site-footer .site-brand { min-height: auto; padding: 0; border: 0; color: white; }
.site-footer .site-brand small,
.site-footer p,
.footer-about small { color: #94a3b8; }
.site-footer p { line-height: 1.7; }
.site-footer h3 {
    margin: 0 0 14px;
    color: #94a3b8;
    font-size: 15px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.footer-links { display: grid; gap: 10px; font-weight: 700; }
.footer-links a,
.site-footer .nav-login { color: #cbd5e1; }
.footer-links a:hover,
.site-footer .nav-login:hover { color: white; }
.footer-action { display: grid; align-content: start; gap: 12px; }
.footer-action p { margin: 0; }
.footer-action .nav-cta { width: fit-content; }
.site-footer-bottom {
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
}
.site-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
}
.site-footer-bottom small {
    color: #94a3b8;
}
/* Auth */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at top, #dbeafe, transparent 38%), var(--bg); }
.auth-card { width: min(100%, 460px); text-align: center; }
.auth-logo { width: 58px; height: 58px; margin: 0 auto 14px; font-size: 24px; }
.auth-card h1 { margin: 0; background: linear-gradient(90deg, var(--blue), var(--violet)); -webkit-background-clip: text; color: transparent; }
.auth-card > p, .switch, .forgot p { color: var(--muted); }
.form { display: grid; gap: 14px; }
.forgot { text-align: left; border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--surface-soft); }
.auth-disabled {
    cursor: not-allowed;
    opacity: .68;
}
.success-panel,
.warning-panel {
    border-radius: 14px;
    padding: 14px;
}
.success-panel {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}
.warning-panel {
    border: 1px solid #fed7aa;
    background: #fff7ed;
}
.success-panel strong { color: #15803d; }
.warning-panel strong { color: #c2410c; }
.success-panel p,
.warning-panel p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

/* Client dashboard */
.app { height: 100vh; display: flex; background: #f8fafc; overflow: hidden; }
.sidebar {
    width: 260px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    z-index: 50;
    overflow-y: auto;
    flex-shrink: 0;
}
.brand { min-height: 64px; padding: 0 24px; border-bottom: 1px solid #e2e8f0; }
.project-switcher {
    margin: 16px 12px 0;
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.project-switcher:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.project-switcher:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.switcher-icon {
    position: absolute;
    left: 10px;
    display: grid;
    place-items: center;
    color: #64748b;
    pointer-events: none;
}
.switcher-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 10px 30px 10px 32px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}
.switcher-chevron {
    position: absolute;
    right: 10px;
    color: #94a3b8;
    pointer-events: none;
}
nav { padding: 16px 12px; display: grid; gap: 4px; overflow: auto; }
nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}
nav a.active, nav a:hover { 
    background: #f1f5f9; 
    color: #0f172a;
}
nav a.active {
    font-weight: 600;
}
nav a svg {
    color: #64748b;
    transition: all 0.15s ease;
}
nav a.active svg, nav a:hover svg {
    color: #0f172a;
}
.sidebar-note { margin: auto 16px 16px; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 8px; padding: 16px; font-size: 13px; line-height: 1.5; color: #475569; }
.main { min-width: 0; flex: 1; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 64px;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 0 32px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}
.search-container { position: relative; max-width: 560px; flex: 1; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search { padding-left: 42px; width: 100%; background: rgba(255,255,255,0.8); border-radius: 999px; }
.search:focus { background: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: transparent; border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: all 0.2s; padding: 0; }
.icon-btn:hover { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.user-btn { display: flex; align-items: center; gap: 8px; min-height: 40px; border-radius: 999px; padding: 0 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 700; cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow-soft); }
.user-btn:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.content { max-width: 1280px; margin: 0 auto; padding: 34px 40px; }
.grid { display: grid; gap: 18px; }
.grid > *, .card, .admin-card, .feature-card, .blog-card, .faq-card, .price-panel, .process-panel {
    min-width: 0;
}
.stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.two { grid-template-columns: 2fr 1fr; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 22px; }
.card h2, .card h3 { margin-top: 0; }
.stat strong { display: block; font-size: 34px; margin: 10px 0 4px; }
.table-wrap { overflow: auto; border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-soft); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
th { background: #f8fafc; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; text-align: left; border-bottom: 1px solid var(--border-strong); padding: 14px 18px; font-weight: 700; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(248, 250, 252, 0.5); }
.empty-state { text-align: center; color: var(--muted); padding: 34px !important; }
.empty-panel { min-height: 260px; display: grid; place-items: center; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 14px; background: rgba(255,255,255,0.4); padding: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: span 2; }
.work-row, .admin-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 10px; background: rgba(255,255,255,0.7); }
.legal { max-width: 900px; line-height: 1.75; }

/* GSC Metrics */
.gsc-metric {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 8px;
}
.gsc-metric.blue { border-bottom: 4px solid var(--blue); background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(239, 246, 255, 0.8) 100%); }
.gsc-metric.violet { border-bottom: 4px solid var(--violet); background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(237,233,254,0.5) 100%); }
.gsc-metric.green { border-bottom: 4px solid var(--green); background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(220, 252, 231, 0.6) 100%); }
.gsc-metric.amber { border-bottom: 4px solid var(--amber); background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(254, 243, 199, 0.6) 100%); }
.gsc-metric span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gsc-metric strong {
    display: block;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    color: var(--text);
}
.gsc-metric small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
}
.gsc-metric small.up { color: var(--green); }
.gsc-metric small.down { color: var(--amber); }

/* Super admin */
.admin-app { min-height: 100vh; display: grid; grid-template-columns: 290px minmax(0, 1fr); background: #f5f7fb; }
.admin-sidebar { background: #0f172a; color: white; padding: 18px; }
.admin-brand { min-height: 58px; color: white; }
.admin-brand small { color: #94a3b8; }
.admin-nav { display: grid; gap: 6px; margin-top: 24px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    padding: 12px;
    color: #cbd5e1;
    font-weight: 700;
}
.admin-nav a.active, .admin-nav a:hover { background: rgba(255,255,255,.12); color: white; }
.admin-main { min-width: 0; }
.admin-topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 28px;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.admin-topbar strong { display: block; font-size: 18px; }
.admin-topbar small { color: var(--muted); }
.admin-content { padding: 28px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.admin-grid-two { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 18px; }
.admin-card { padding: 22px; }
.admin-card h2 { margin: 0 0 16px; }
.admin-stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.admin-stat strong { display: block; font-size: 34px; margin-top: 8px; }
.admin-stat p { margin: 4px 0 0; color: var(--muted); }
.admin-row small { display: block; color: var(--muted); margin-top: 4px; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.admin-mini-chart { height: 180px; display: flex; align-items: end; gap: 14px; padding: 18px; border-radius: 14px; background: #f8fafc; }
.admin-mini-chart span { flex: 1; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, var(--blue), var(--violet)); }

/* ═══════════════════════════════════════════════════
   SUPER ADMIN v4 DESIGN SYSTEM (.sa-* prefix)
   ═══════════════════════════════════════════════════ */

/* ── Layout ── */
.sa-app {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.sa-sidebar {
    background: linear-gradient(180deg, #0c1222 0%, #131836 100%);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sa-sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px 18px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sa-sidebar-brand strong {
    display: block;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.sa-sidebar-brand small {
    display: block;
    color: #6366f1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 1px;
}

.sa-nav-section {
    padding: 0 10px;
}

.sa-nav-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a5578;
    padding-left: 14px;
    margin-top: 20px;
    margin-bottom: 6px;
}

.sa-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding: 10px 14px;
    color: #8892b0;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin-bottom: 2px;
}
.sa-nav-link span {
    display: inline-flex;
    flex-shrink: 0;
}
.sa-nav-link:hover {
    color: #e2e8f0;
    background: rgba(99, 102, 241, 0.06);
}
.sa-nav-link.active {
    color: #e2e8f0;
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, #6366f1, #8b5cf6) 1;
}

.sa-sidebar nav {
    flex: 1;
    padding: 6px 0;
    display: block;
}

.sa-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}
.sa-sidebar-footer a {
    color: #5a6484;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.sa-sidebar-footer a:hover {
    color: #a5b4fc;
}

/* ── Main Area ── */
.sa-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sa-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: 64px;
    padding: 0 32px;
    background: #fff;
    border-bottom: 1px solid #e5e7ed;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.sa-topbar strong {
    display: block;
    font-size: 16px;
    color: #0f172a;
}
.sa-topbar small {
    color: #64748b;
    font-size: 12.5px;
    font-weight: 500;
}

.sa-content {
    flex: 1;
    background: #f0f2f8;
    padding: 32px;
}

/* ── Stats Grid ── */
.sa-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.sa-stat-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.03);
    border-left: 4px solid #e5e7ed;
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s ease;
}
.sa-stat-card:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.sa-stat-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    background: #f0f2f8;
    color: #64748b;
}

.sa-stat-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.sa-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.sa-stat-sub {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}

/* Accent border colors */
.sa-accent-blue { border-left-color: #3b82f6; }
.sa-accent-blue .sa-stat-icon { background: #eff6ff; color: #3b82f6; }
.sa-accent-green { border-left-color: #22c55e; }
.sa-accent-green .sa-stat-icon { background: #f0fdf4; color: #22c55e; }
.sa-accent-violet { border-left-color: #8b5cf6; }
.sa-accent-violet .sa-stat-icon { background: #f5f3ff; color: #8b5cf6; }
.sa-accent-amber { border-left-color: #f59e0b; }
.sa-accent-amber .sa-stat-icon { background: #fffbeb; color: #f59e0b; }
.sa-accent-red { border-left-color: #ef4444; }
.sa-accent-red .sa-stat-icon { background: #fef2f2; color: #ef4444; }

/* ── Cards ── */
.sa-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7ed;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    padding: 24px;
    transition: all 0.2s ease;
}
.sa-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.sa-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.sa-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.sa-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.sa-split-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.sa-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* ── Tables ── */
.sa-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
}

.sa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.sa-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fb;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7ed;
    white-space: nowrap;
}
.sa-table td {
    padding: 12px 16px;
    color: #334155;
    border-bottom: 1px solid #f0f2f8;
    font-size: 13.5px;
}
.sa-table tbody tr {
    transition: all 0.2s ease;
}
.sa-table tbody tr:nth-child(even) {
    background: #f8f9fb;
}
.sa-table tbody tr:hover {
    background: #f0f2f8;
}

/* ── Forms ── */
.sa-form-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7ed;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    padding: 28px;
}

.sa-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.sa-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.sa-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sa-input,
.sa-select,
.sa-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    min-height: 42px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sa-textarea {
    min-height: 100px;
    resize: vertical;
}
.sa-input:focus,
.sa-select:focus,
.sa-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.sa-input::placeholder,
.sa-textarea::placeholder {
    color: #9ca3af;
}

/* ── Buttons ── */
.sa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
    min-height: 40px;
}

.sa-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.sa-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.sa-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.sa-btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

.sa-btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.sa-btn-danger:hover {
    background: #fecaca;
}

.sa-btn-ghost {
    background: transparent;
    color: #475569;
    border: 1px solid #d1d5db;
}
.sa-btn-ghost:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.sa-btn-sm {
    padding: 6px 14px;
    font-size: 12.5px;
    min-height: 34px;
    border-radius: 7px;
}

/* ── Misc Components ── */
.sa-filter-bar {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fb;
    border-radius: 10px;
    border: 1px solid #e5e7ed;
}

.sa-filter-bar form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.sa-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.sa-filter-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sa-filter-input.sa-input {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}

.sa-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 38px;
}

.sa-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
    font-size: 14px;
}
.sa-empty-state svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.sa-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sa-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f8;
    font-size: 13.5px;
    color: #334155;
}
.sa-activity-item:last-child {
    border-bottom: 0;
}
.sa-activity-item small {
    color: #94a3b8;
    font-size: 12px;
    white-space: nowrap;
}

.sa-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sa-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.sa-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    background: #e2e8f0;
    color: #334155;
}

/* ═══════════════════════════════════════════════════
   END SUPER ADMIN v4 DESIGN SYSTEM
   ═══════════════════════════════════════════════════ */

.mobile-only, .overlay { display: none; }
/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: var(--bg);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 1050px) {
    .site-header { padding: 16px clamp(16px, 4vw, 40px); }
    .site-nav { gap: 4px; }
    .site-nav a { padding: 0 10px; font-size: 13px; }
    .landing-hero, .media-split, .split-section { grid-template-columns: 1fr; }
    .hero-visual { min-height: auto; }
    .floating-audit { position: static; margin-top: 18px; }
    .audit-report-hero,
    .audit-fix-cta {
        grid-template-columns: 1fr;
    }
    .audit-score-panel {
        justify-items: start;
    }
    .audit-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .audit-priority-grid {
        grid-template-columns: 1fr;
    }
    .feature-grid, .blog-grid, .faq-grid, .admin-stat-grid, .admin-grid-two, .stats, .two, .three, .four, .form-grid { grid-template-columns: 1fr; }
    .admin-app { grid-template-columns: 1fr; }
    .admin-sidebar { 
        position: fixed; 
        left: -320px; 
        top: 0; 
        bottom: 0; 
        z-index: 50; 
        transition: transform 0.3s ease; 
    }
    .admin-sidebar.open {
        transform: translateX(320px);
    }
    /* Super Admin v4 responsive */
    .sa-app { grid-template-columns: 1fr; }
    .sa-sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 50;
        height: 100vh;
        transition: transform 0.3s ease;
    }
    .sa-sidebar.open {
        transform: translateX(300px);
    }
    .sa-stats-grid { grid-template-columns: 1fr; }
    .sa-grid-2 { grid-template-columns: 1fr; }
    .sa-grid-3 { grid-template-columns: 1fr; }
    .sa-form-row { grid-template-columns: 1fr; }
    .sa-topbar { padding: 0 16px; height: 56px; }
    .sa-content { padding: 18px; }
    .sa-split-layout { grid-template-columns: 1fr; }
    .app { display: block; }
    .sidebar { 
        position: fixed; 
        left: -320px; 
        top: 0; 
        bottom: 0; 
        width: 290px;
        min-height: 100vh;
        z-index: 50;
        transition: transform 0.3s ease;
    }
    .sidebar.open {
        transform: translateX(320px);
    }
    .overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        z-index: 40;
        backdrop-filter: blur(4px);
    }
    nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .span-2 { grid-column: auto; }
    .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .site-header {
        padding: 14px 18px;
        min-height: auto;
        justify-content: space-between;
    }

    .nav-cta {
        min-height: 40px;
        padding: 0 15px;
        font-size: 13px;
    }

    .landing-hero {
        padding: 28px 18px 18px;
        gap: 14px;
    }

    .hero-copy h1 {
        margin: 12px 0;
        font-size: clamp(31px, 9.2vw, 42px);
        line-height: 1.03;
        letter-spacing: -0.03em;
    }

    .hero-copy p {
        font-size: 15px;
        line-height: 1.55;
    }

    .landing-actions {
        margin-top: 16px;
        gap: 10px;
    }

    .primary-cta,
    .secondary-cta,
    .button-link {
        min-height: 44px;
        padding: 0 17px;
        font-size: 14px;
    }

    .trust-row {
        margin-top: 14px;
        gap: 8px;
    }

    .trust-row span,
    .logo-strip span {
        padding: 7px 10px;
        font-size: 12px;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-visual > img {
        height: 150px;
        border-radius: 18px;
    }

    .floating-audit {
        margin-top: 0;
        width: 100%;
    }

    .audit-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .audit-panel h2 {
        font-size: 20px;
    }

    .audit-panel p {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .audit-panel input,
    .audit-panel button {
        min-height: 44px;
    }

    .audit-result {
        min-height: 58px;
        padding: 10px;
        font-size: 13px;
    }

    .audit-score-card,
    .audit-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-report-shell {
        padding: 0 18px;
    }

    .audit-report-hero {
        border-radius: 22px;
        padding: 22px;
    }

    .audit-report-hero h2 {
        font-size: clamp(30px, 9vw, 42px);
        word-break: break-word;
    }

    .audit-report-hero p {
        font-size: 15px;
    }

    .audit-score-card .score-ring {
        width: 76px;
        height: 76px;
    }

    .audit-score-panel .score-ring {
        width: 104px;
        height: 104px;
    }

    .audit-score-panel .score-ring strong {
        font-size: 36px;
    }

    .audit-category-grid {
        grid-template-columns: 1fr;
    }

    .audit-priority-card,
    .audit-tabs,
    .audit-fix-cta {
        border-radius: 18px;
        padding: 18px;
    }

    .audit-summary-grid {
        grid-template-columns: 1fr;
    }

    .audit-summary-grid strong {
        word-break: break-word;
    }

    .audit-tab-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .audit-tab-buttons::-webkit-scrollbar {
        display: none;
    }

    .audit-tab-buttons button {
        flex: 0 0 auto;
    }

    .mobile-fix-bar {
        position: sticky;
        bottom: 12px;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border: 1px solid rgba(255,255,255,.20);
        border-radius: 999px;
        padding: 10px 12px 10px 16px;
        color: white;
        background: rgba(15, 23, 42, .94);
        box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
    }

    .mobile-fix-bar a {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        border-radius: 999px;
        padding: 0 14px;
        background: linear-gradient(90deg, var(--blue), var(--violet));
        font-weight: 800;
    }

    .logo-strip {
        justify-content: flex-start;
        padding: 18px 18px 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .landing-section,
    .media-split,
    .split-section {
        padding: 34px 18px;
    }

    .landing-section-head {
        margin-bottom: 16px;
    }

    .landing-section-head h2,
    .media-copy h2 {
        font-size: clamp(26px, 8vw, 34px);
    }

    .media-split img {
        height: 230px;
        border-radius: 18px;
    }

    .feature-card,
    .blog-card,
    .faq-card,
    .price-panel,
    .process-panel,
    .card {
        border-radius: 16px;
        padding: 18px;
    }

    .feature-card h3,
    .blog-card h3,
    .faq-card h3 {
        font-size: 20px;
    }

    .blog-grid,
    .faq-grid {
        padding: 0 18px 34px;
    }

    .final-cta {
        margin: 18px 18px 0;
        padding: 34px 18px;
        border-radius: 20px;
    }

    .site-footer {
        margin-top: 28px;
        background: #0f172a;
        color: #cbd5e1;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 18px;
    }

    .site-footer .site-brand strong {
        color: #fff;
    }

    .site-footer .site-brand small,
    .site-footer p {
        color: #94a3b8;
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* ── Mobile slide-out nav ── */
    .site-nav.open .mobile-only {
        display: flex !important;
    }

    .site-nav.open .mobile-menu-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 16px !important;
        padding-bottom: 16px !important;
        border-bottom: 1px solid var(--border) !important;
    }
    .mobile-menu-header strong {
        font-size: 16px;
        color: var(--text);
    }
    .mobile-menu-header .icon-btn {
        background: transparent !important;
        color: #ffffff !important;
        border: 1px solid var(--border) !important;
    }

    .site-nav.open .mobile-nav-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        margin-top: 20px !important;
        padding-top: 20px !important;
        border-top: 1px solid var(--border) !important;
    }
    .nav-login-mob {
        display: block;
        text-align: center;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 10px;
        font-weight: 600;
        text-decoration: none;
        color: var(--text);
        transition: background 0.2s;
    }
    .nav-login-mob:hover {
        background: var(--bg);
    }
    .nav-cta-mob {
        display: block;
        text-align: center;
        padding: 12px;
        background: linear-gradient(90deg, var(--blue), var(--violet));
        color: #ffffff !important;
        border-radius: 10px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
    }
}

/* ── Antigravity Mobile Menu, Dark Mode & Responsive Overhaul ── */

body.dark-mode, html.dark {
    --bg: #090d16;
    --surface: #121824;
    --surface-soft: rgba(18, 24, 36, 0.6);
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
}

.public-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.public-menu-btn:hover {
    background: var(--surface);
    color: var(--text);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-soft);
}
.filters input, .filters select {
    flex: 1;
    min-width: 180px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.filters input:focus, .filters select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 24px 64px;
}

@media (max-width: 1050px) {
    .admin-sidebar .mobile-only,
    .sa-sidebar .mobile-only,
    .app .mobile-only {
        display: grid !important;
    }
    .sidebar nav {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 720px) {
    .desktop-only-actions {
        display: none !important;
    }
    .public-menu-btn {
        display: grid !important;
    }
    .site-nav {
        display: none !important;
    }
    .site-nav.open {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 290px !important;
        background: var(--surface) !important;
        border-left: 1px solid var(--border-strong) !important;
        z-index: 100 !important;
        padding: 24px !important;
        gap: 6px !important;
        box-shadow: -4px 0 24px rgba(15, 23, 42, 0.15) !important;
        overflow-y: auto !important;
        animation: slideInRight 0.25s ease-out forwards;
    }
    .site-nav.open a {
        justify-content: flex-start !important;
        text-align: left !important;
        margin: 0 !important;
        width: 100%;
        border-radius: 10px;
        padding: 12px 14px;
        font-size: 15px;
    }
    .overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        z-index: 90;
        backdrop-filter: blur(4px);
    }
    
    @keyframes slideInRight {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }
    
    .filters {
        flex-direction: column;
    }
    .filters input, .filters select {
        width: 100%;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Unified premium client workspace */
body.app-luxury {
    --bg: #070b18;
    --surface: #0f172a;
    --surface-soft: rgba(15, 23, 42, 0.74);
    --bg-card: #0f172a;
    --text: #f8fafc;
    --muted: #94a3b8;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);
    --blue: #4f8cff;
    --violet: #7c5cff;
    --green: #19c995;
    --amber: #f6b94c;
    --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.16);
    --shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
    background: var(--bg);
}

.app-luxury .app {
    color: var(--text);
    background:
        radial-gradient(circle at 72% 0%, rgba(79, 70, 229, 0.14), transparent 32rem),
        var(--bg);
}

.app-luxury .sidebar {
    color: var(--text);
    border-color: var(--border);
    background: rgba(7, 11, 24, 0.96);
    box-shadow: 18px 0 60px rgba(0, 0, 0, 0.18);
}

.app-luxury .brand {
    color: var(--text);
    border-color: var(--border);
}

.app-luxury .brand small {
    color: var(--muted);
}

.app-luxury .brand-mark {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
}

.app-luxury .project-switcher {
    border-color: var(--border-strong);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: none;
}

.app-luxury .project-switcher:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(30, 41, 59, 0.9);
}

.app-luxury .switcher-select,
.app-luxury .switcher-icon {
    color: var(--text);
}

.app-luxury nav a {
    color: var(--muted);
}

.app-luxury nav a svg {
    color: #64748b;
}

.app-luxury nav a.active,
.app-luxury nav a:hover {
    color: #fff;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.18));
}

.app-luxury nav a.active {
    box-shadow: inset 3px 0 #06b6d4;
}

.app-luxury nav a.active svg,
.app-luxury nav a:hover svg {
    color: #67e8f9;
}

.app-luxury .sidebar-note {
    color: var(--muted);
    border-color: var(--border);
    background: rgba(15, 23, 42, 0.72);
}

.app-luxury .sidebar-note strong {
    color: var(--text);
}

.app-luxury .topbar {
    border-color: var(--border);
    background: rgba(7, 11, 24, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.app-luxury .search,
.app-luxury input,
.app-luxury select,
.app-luxury textarea {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(15, 23, 42, 0.76);
    box-shadow: none;
}

.app-luxury input::placeholder,
.app-luxury textarea::placeholder {
    color: #64748b;
}

.app-luxury input:focus,
.app-luxury select:focus,
.app-luxury textarea:focus {
    border-color: #06b6d4;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.app-luxury .icon-btn,
.app-luxury .user-btn {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: none;
}

.app-luxury .content {
    width: 100%;
}

.app-luxury .page-header {
    max-width: none;
    padding: 12px 0 28px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.app-luxury .page-header span {
    color: #22d3ee;
}

.app-luxury .page-header h1 {
    margin: 8px 0;
    color: var(--text);
    font-size: clamp(30px, 4vw, 48px);
}

.app-luxury .page-header p {
    color: var(--muted);
}

.app-luxury .card,
.app-luxury .admin-card,
.app-luxury .gsc-metric,
.app-luxury .filters,
.app-luxury .modal-content {
    color: var(--text);
    border-color: var(--border);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.app-luxury .card:hover,
.app-luxury .admin-card:hover {
    border-color: rgba(99, 102, 241, 0.38);
    box-shadow: var(--shadow);
}

.app-luxury .gsc-metric.blue,
.app-luxury .gsc-metric.violet,
.app-luxury .gsc-metric.green,
.app-luxury .gsc-metric.amber {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.72));
}

.app-luxury .gsc-metric strong,
.app-luxury .stat strong,
.app-luxury .card h2,
.app-luxury .card h3 {
    color: var(--text);
}

.app-luxury .table-wrap {
    border-color: var(--border-strong);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: none;
}

.app-luxury table {
    color: var(--text);
}

.app-luxury th {
    color: var(--muted);
    border-color: var(--border);
    background: rgba(2, 6, 23, 0.7);
}

.app-luxury td {
    border-color: var(--border);
}

.app-luxury tr:hover td {
    background: rgba(79, 70, 229, 0.08);
}

.app-luxury .empty-panel,
.app-luxury .work-row,
.app-luxury .admin-row,
.app-luxury .forgot,
.app-luxury .success-panel,
.app-luxury .warning-panel {
    color: var(--muted);
    border-color: var(--border-strong);
    background: rgba(2, 6, 23, 0.42);
}

.app-luxury .success-panel strong {
    color: #34d399;
}

.app-luxury .warning-panel strong {
    color: #fbbf24;
}

.app-luxury .badge {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
}

.app-luxury .badge.blue { color: #67e8f9; background: rgba(6, 182, 212, 0.12); }
.app-luxury .badge.violet { color: #c4b5fd; background: rgba(139, 92, 246, 0.14); }
.app-luxury .badge.green { color: #6ee7b7; background: rgba(16, 185, 129, 0.12); }
.app-luxury .badge.amber { color: #fcd34d; background: rgba(245, 158, 11, 0.12); }
.app-luxury .badge.red { color: #fda4af; background: rgba(244, 63, 94, 0.12); }

.app-luxury .gsc-app-wrapper {
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow-soft);
}

.app-luxury .gsc-header h2,
.app-luxury .gsc-metric-value,
.app-luxury .gsc-tab.active,
.app-luxury .gsc-table td {
    color: var(--text);
}

.app-luxury .gsc-export,
.app-luxury .gsc-metric label,
.app-luxury .gsc-tab,
.app-luxury .gsc-table th {
    color: var(--muted);
}

.app-luxury .gsc-filter-group,
.app-luxury .gsc-filter-single,
.app-luxury .gsc-metrics-container,
.app-luxury .gsc-tabs,
.app-luxury .gsc-table th,
.app-luxury .gsc-table td {
    border-color: var(--border-strong);
}

.app-luxury .gsc-filter-btn,
.app-luxury .gsc-filter-single {
    color: #cbd5e1;
    border-color: var(--border-strong);
    background: rgba(2, 6, 23, 0.48);
}

.app-luxury .gsc-filter-btn.active {
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.1);
}

.app-luxury .gsc-metrics-container {
    background: rgba(2, 6, 23, 0.38);
}

.app-luxury .gsc-metrics-container .gsc-metric {
    border-color: var(--border-strong);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.app-luxury .gsc-metric-blue.active {
    background: #2563eb;
}

.app-luxury .gsc-metric-purple.active {
    background: #7c3aed;
}

.app-luxury .gsc-tab.active {
    border-color: #22d3ee;
}

.app-luxury .gsc-table tr:hover td {
    background: rgba(79, 70, 229, 0.08);
}

/* Unified premium super-admin workspace */
body.admin-luxury {
    --bg: #070b18;
    --surface: #0f172a;
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);
    background: var(--bg);
}

.admin-luxury .sa-app {
    color: var(--text);
    background:
        radial-gradient(circle at 80% 0%, rgba(79, 70, 229, 0.14), transparent 34rem),
        var(--bg);
}

.admin-luxury .sa-sidebar {
    border-right: 1px solid var(--border);
    background: rgba(7, 11, 24, 0.98);
    box-shadow: 18px 0 60px rgba(0, 0, 0, 0.2);
}

.admin-luxury .sa-sidebar-brand {
    border-color: var(--border);
}

.admin-luxury .sa-sidebar-brand small,
.admin-luxury .sa-nav-link.active svg,
.admin-luxury .sa-nav-link:hover svg {
    color: #22d3ee;
}

.admin-luxury .sa-nav-label {
    color: #526078;
}

.admin-luxury .sa-nav-link.active {
    color: #fff;
    border-image: none;
    border-left-color: #22d3ee;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.17), rgba(124, 58, 237, 0.12));
}

.admin-luxury .sa-topbar {
    border-color: var(--border);
    background: rgba(7, 11, 24, 0.82);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.admin-luxury .sa-topbar strong,
.admin-luxury .sa-card-title,
.admin-luxury .sa-stat-value {
    color: var(--text);
}

.admin-luxury .sa-topbar small,
.admin-luxury .sa-stat-label,
.admin-luxury .sa-stat-sub,
.admin-luxury .sa-form-group label,
.admin-luxury .sa-filter-label {
    color: var(--muted);
}

.admin-luxury .sa-content {
    background: transparent;
}

.admin-luxury .sa-card,
.admin-luxury .sa-stat-card,
.admin-luxury .sa-form-card,
.admin-luxury .sa-filter-bar {
    color: var(--text);
    border-color: var(--border);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px);
}

.admin-luxury .sa-stat-card {
    border-left-width: 3px;
}

.admin-luxury .sa-stat-icon {
    background: rgba(255, 255, 255, 0.05);
}

.admin-luxury .sa-input,
.admin-luxury .sa-select,
.admin-luxury .sa-textarea {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(2, 6, 23, 0.56);
    box-shadow: none;
}

.admin-luxury .sa-input:focus,
.admin-luxury .sa-select:focus,
.admin-luxury .sa-textarea:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.admin-luxury .sa-table th {
    color: var(--muted);
    border-color: var(--border);
    background: rgba(2, 6, 23, 0.72);
}

.admin-luxury .sa-table td {
    color: #cbd5e1;
    border-color: var(--border);
}

.admin-luxury .sa-table tbody tr:nth-child(even),
.admin-luxury .sa-table tbody tr:hover {
    background: rgba(79, 70, 229, 0.07);
}

.admin-luxury .sa-activity-item {
    color: #cbd5e1;
    border-color: var(--border);
}

.admin-luxury .sa-chip,
.admin-luxury .sa-badge,
.admin-luxury .sa-btn-secondary,
.admin-luxury .sa-btn-ghost {
    color: #cbd5e1;
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1050px) {
    .app-luxury .content {
        padding: 26px 20px;
    }

    .app-luxury .sidebar,
    .admin-luxury .sa-sidebar {
        box-shadow: 24px 0 60px rgba(0, 0, 0, 0.42);
    }

    .app-luxury .sidebar.open,
    .admin-luxury .sa-sidebar.open {
        z-index: 100;
    }
}

@media (max-width: 720px) {
    .app-luxury .topbar {
        min-height: 58px;
        padding: 0 14px;
    }

    .app-luxury .search-container {
        display: none;
    }

    .app-luxury .content,
    .admin-luxury .sa-content {
        padding: 18px 14px;
    }

    .app-luxury .page-header {
        padding: 6px 0 20px;
    }

    .app-luxury .page-header h1 {
        font-size: 30px;
    }

    .app-luxury .card,
    .app-luxury .admin-card,
    .admin-luxury .sa-card,
    .admin-luxury .sa-form-card,
    .admin-luxury .sa-stat-card {
        border-radius: 12px;
        padding: 18px;
    }

    .app-luxury .gsc-app-wrapper {
        padding: 14px;
    }

    .app-luxury .gsc-metrics-container,
    .app-luxury .gsc-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .app-luxury .gsc-filters {
        flex-wrap: wrap;
    }

    .app-luxury .gsc-metric {
        min-width: 170px;
    }
}

.app-luxury .gsc-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-family: 'Roboto', 'Inter', sans-serif;
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.app-luxury .gsc-segmented-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    background: transparent;
}
.app-luxury .gsc-segment {
    padding: 6px 16px;
    font-size: 14px;
    color: #cbd5e1;
    text-decoration: none;
    border-right: 1px solid var(--border-strong);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}
.app-luxury .gsc-segment:last-child {
    border-right: none;
}
.app-luxury .gsc-segment:hover {
    background: rgba(255, 255, 255, 0.05);
}
.app-luxury .gsc-segment.active {
    background: rgba(138, 180, 248, 0.15);
    color: #8ab4f8;
}
.app-luxury .gsc-filter-separator {
    width: 1px;
    height: 24px;
    background: var(--border-strong);
    margin: 0 4px;
}
.app-luxury .gsc-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 6px 14px;
    color: #cbd5e1;
    font-size: 14px;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.app-luxury .gsc-filter-pill:hover {
    background: rgba(255, 255, 255, 0.05);
}
.app-luxury .gsc-dropdown-container {
    position: relative;
    display: inline-block;
}
.app-luxury .gsc-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #1e293b;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1000;
    min-width: 160px;
    padding: 8px 0;
}
.app-luxury .gsc-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.app-luxury .gsc-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.app-luxury .active-filter {
    background: rgba(138, 180, 248, 0.15);
    color: #8ab4f8;
    border-color: rgba(138, 180, 248, 0.3);
}
.app-luxury .gsc-filter-magic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #0b57d0;
    color: #fff;
    border: none;
    cursor: pointer;
}
.app-luxury .gsc-filter-magic:hover {
    background: #0842a0;
}
.app-luxury .gsc-reset-text {
    color: #8ab4f8;
    font-size: 14px;
    text-decoration: none;
    margin-left: 4px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}
.app-luxury .gsc-reset-text:hover {
    color: #aecbfa;
}
.app-luxury .gsc-last-update {
    margin-left: auto;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

/* Global Loader */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #3b82f6; /* WaveINO primary blue */
    z-index: 99999;
    transition: width 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 10px #3b82f6, 0 0 5px #3b82f6;
}
.global-loader.loading {
    opacity: 1;
    width: 30%;
    animation: loader-pulse 2s infinite ease-in-out;
}
.global-loader.finish {
    width: 100%;
    opacity: 0;
}
@keyframes loader-pulse {
    0% { width: 30%; }
    50% { width: 70%; }
    100% { width: 30%; }
}



/* ── Tool Suite Theming ── */
body.theme-keyfinder {
    --blue: #f59e0b; /* Amber/Orange */
    --violet: #d97706;
}
body.theme-linkexplorer {
    --blue: #8b5cf6; /* Violet */
    --violet: #6d28d9;
}
body.theme-contentplanner {
    --blue: #10b981; /* Emerald */
    --violet: #059669;
}
body.theme-waveinspect {
    --blue: #f43f5e; /* Rose */
    --violet: #e11d48;
}
body.theme-tasktracker {
    --blue: #14b8a6; /* Teal */
    --violet: #0f766e;
}
body.theme-waveinsights {
    /* Uses default blue */
}

/* ── Sidebar Nav Groups ── */
.nav-group-title, .nav-group-title-mobile {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 16px 14px 6px;
}
.nav-group-title-mobile {
    margin: 16px 0 6px;
}

/* PageSpeed Insights Official Clone */
.psi-dashboard {
    background: #fff;
    color: #333;
    padding: 32px;
    border-radius: 0 0 20px 20px;
}
.public-body.dark-luxury .psi-dashboard {
    background: transparent;
    color: #e2e8f0;
}
.psi-gauges-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.psi-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.psi-gauge span {
    font-size: 13px;
    font-weight: 500;
}
.circular-chart {
    display: block;
    width: 60px;
    height: 60px;
}
.psi-gauge.large .circular-chart {
    width: 120px;
    height: 120px;
}
.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 2.5;
}
.public-body.dark-luxury .circle-bg {
    stroke: rgba(255,255,255,0.1);
}
.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}
.circular-chart.good .circle { stroke: #0cce6b; }
.circular-chart.avg .circle { stroke: #ffa400; }
.circular-chart.poor .circle { stroke: #ff4e42; }

.percentage {
    fill: #333;
    font-family: sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-anchor: middle;
}
.public-body.dark-luxury .percentage { fill: #fff; }

.circular-chart.good .percentage { fill: #0cce6b; }
.circular-chart.avg .percentage { fill: #ffa400; }
.circular-chart.poor .percentage { fill: #ff4e42; }

.psi-main-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.psi-performance-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.psi-calc-info {
    font-size: 12px;
    color: #666;
    margin: 16px 0;
    line-height: 1.5;
    max-width: 280px;
}
.public-body.dark-luxury .psi-calc-info { color: #94a3b8; }
.psi-legend {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #666;
}
.public-body.dark-luxury .psi-legend { color: #94a3b8; }
.psi-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.psi-icon {
    display: inline-block;
}
.psi-icon.poor {
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid #ff4e42;
}
.psi-icon.avg {
    width: 10px; height: 10px;
    background: #ffa400;
}
.psi-icon.good {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #0cce6b;
}

.psi-screenshot {
    display: flex;
    justify-content: center;
    align-items: center;
}
.psi-screenshot img {
    max-height: 300px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.psi-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.public-body.dark-luxury .psi-section-title { color: #94a3b8; }

.psi-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.psi-metric {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.psi-metric-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.psi-metric-label {
    font-size: 13px;
}
.psi-metric-val {
    font-size: 20px;
    font-weight: 500;
}
.poor-text { color: #ff4e42; }
.avg-text { color: #ffa400; }
.good-text { color: #0cce6b; }

@media (max-width: 768px) {
    .psi-main-row, .psi-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Audit Page Widget ── */
.audit-page-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}
.audit-input-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 32px;
}
.audit-input-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}
.audit-sub {
    color: #94A3B8;
    font-size: 14px;
    margin: 0 0 24px;
}
.audit-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}
.audit-input-wrap {
    position: relative;
    flex: 1;
}
.audit-input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
}
.audit-input-wrap input {
    width: 100%;
    padding: 13px 14px 13px 40px;
    background: #050816;
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.audit-input-wrap input::placeholder { color: #64748b; }
.audit-input-wrap input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.audit-run-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.1s;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.audit-run-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.audit-run-btn:active { transform: translateY(0); }
.audit-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border-radius: 14px;
    border: 1.5px dashed rgba(255,255,255,0.1);
    color: #64748b;
    font-size: 14px;
    text-align: center;
    background: #050816;
}
.audit-checks-card {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px !important;
    padding: 28px !important;
}
.audit-checks-card h2 { color: #fff; margin: 0 0 4px; }
.audit-checks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.audit-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #e2e8f0;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(5, 8, 22, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
}
.audit-check-item svg { flex-shrink: 0; }
@media (max-width: 900px) {
    .audit-page-grid { grid-template-columns: 1fr; }
    .audit-input-row { flex-direction: column; }
    .audit-run-btn { width: 100%; justify-content: center; }
}

/* =========================================================================
   COMPREHENSIVE MOBILE OPTIMIZATIONS (DASHBOARDS, AUDITS, ALL PAGES)
   ========================================================================= */
@media (max-width: 768px) {
    /* Global Typography & Spacing */
    body { font-size: 14px; }
    h1 { font-size: 32px !important; line-height: 1.2 !important; }
    h2 { font-size: 24px !important; line-height: 1.3 !important; }
    h3 { font-size: 20px !important; }
    p { font-size: 14px !important; }

    /* Force Grid Collapses for ALL layouts */
    .grid.two, .grid.three, .grid.four, .grid.stats, 
    .admin-stat-grid, .admin-grid-two, .feature-grid, 
    .blog-grid, .faq-grid, .form-grid, .sa-stats-grid, 
    .sa-grid-2, .sa-grid-3, .sa-form-row, .sa-split-layout,
    .audit-summary-grid, .audit-report-hero, .audit-fix-cta {
        grid-template-columns: 1fr !important;
    }

    /* Cards and Content Padding */
    .card, .admin-card, .price-panel, .process-panel, .feature-card, .audit-panel {
        padding: 16px !important;
    }
    .content, .sa-content, .public-body main > .audit-page-grid, .public-body main > .audit-report-shell {
        padding: 12px !important;
    }

    /* Tables: Force Horizontal Scrolling on Small Screens */
    .table-wrap, .sa-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    table {
        min-width: 700px; /* Forces tables to remain legible instead of squishing */
    }
    th, td {
        padding: 10px !important;
        font-size: 13px !important;
    }

    /* Dashboard Sidebar Toggles & App UI */
    .topbar, .sa-topbar { padding: 0 16px !important; height: 60px !important; }
    .sidebar, .sa-sidebar { width: 280px !important; left: -280px; }
    .sidebar.open, .sa-sidebar.open { transform: translateX(280px) !important; }
    .app-header h1 { font-size: 20px !important; }

    /* Audits Specifics */
    .audit-score-panel {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .audit-category-grid { grid-template-columns: 1fr !important; }
    .audit-check-item { flex-direction: column; align-items: flex-start; text-align: left; }
    
    /* Hero Sections & Landing Page */
    .landing-hero { padding: 32px 16px 16px !important; text-align: center; }
    .landing-hero .hero-actions { 
        flex-direction: column; 
        gap: 12px; 
    }
    .hero-actions button, .hero-actions .primary-cta { 
        width: 100%; 
        justify-content: center; 
    }
    .site-brand img { height: 44px !important; margin-left: 0 !important; }
    .media-split, .split-section { gap: 32px !important; padding: 32px 16px !important; }
    
    /* Auth Cards */
    .auth-card { padding: 24px 16px !important; }
    .auth-shell { padding: 16px !important; }
}

/* === Dashboard 3D Tech Enhancements === */
.app-luxury { position: relative; }
.app-luxury .app { position: relative; z-index: 1; }
.app-luxury .sidebar { 
    background: rgba(10, 17, 40, 0.95) !important; 
    backdrop-filter: blur(20px);
    border-right-color: rgba(99, 102, 241, 0.1) !important;
}
.app-luxury .topbar { 
    background: rgba(10, 17, 40, 0.9) !important; 
    backdrop-filter: blur(16px);
}
.app-luxury .card {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(99, 102, 241, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.app-luxury .card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.05);
}

/* ── Full Site Audit (fsa-*) ── */
.fsa-report { margin-top: 12px; }

.fsa-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.fsa-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
    text-align: center;
}
.fsa-stat-value {
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
}
.fsa-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Color-coded text helpers */
.green-text { color: #15803d; }
.blue-text { color: #2563eb; }
.amber-text { color: #b45309; }
.red-text { color: #be123c; }

.fsa-table-wrap {
    overflow: auto;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    background: #fff;
}
.fsa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.fsa-table th {
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    border-bottom: 1px solid var(--border-strong);
    padding: 14px 18px;
    font-weight: 700;
    white-space: nowrap;
}
.fsa-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.fsa-table tbody tr:last-child td { border-bottom: none; }
.fsa-table tbody tr:hover { background: rgba(99, 102, 241, 0.04); }
.fsa-url-cell a {
    color: var(--blue);
    font-weight: 600;
    font-size: 13px;
    word-break: break-all;
}
.fsa-url-cell a:hover { text-decoration: underline; }
.fsa-title-cell {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 13px;
}
.fsa-issues-cell {
    max-width: 260px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

/* Dark mode overrides */
body.dark-mode .fsa-stat-card,
html.dark .fsa-stat-card {
    background: var(--surface);
    border-color: var(--border);
}
body.dark-mode .fsa-table-wrap,
html.dark .fsa-table-wrap {
    background: var(--surface);
    border-color: var(--border-strong);
}
body.dark-mode .fsa-table th,
html.dark .fsa-table th {
    background: rgba(15, 23, 42, 0.6);
    border-color: var(--border-strong);
}
body.dark-mode .fsa-table td,
html.dark .fsa-table td {
    border-color: var(--border);
}
body.dark-mode .fsa-table tbody tr:hover,
html.dark .fsa-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.08);
}
body.dark-mode .green-text, html.dark .green-text { color: #34d399; }
body.dark-mode .blue-text, html.dark .blue-text { color: #60a5fa; }
body.dark-mode .amber-text, html.dark .amber-text { color: #fbbf24; }
body.dark-mode .red-text, html.dark .red-text { color: #fb7185; }

body.app-luxury .fsa-stat-card {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(99, 102, 241, 0.08);
}
body.app-luxury .fsa-table-wrap {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(99, 102, 241, 0.08);
}
body.app-luxury .fsa-table th {
    background: rgba(7, 11, 24, 0.6);
    border-color: var(--border-strong);
}
body.app-luxury .fsa-table td {
    border-color: var(--border);
}
body.app-luxury .green-text { color: #34d399; }
body.app-luxury .blue-text { color: #60a5fa; }
body.app-luxury .amber-text { color: #fbbf24; }
body.app-luxury .red-text { color: #fb7185; }

/* Responsive: full-site audit */
@media (max-width: 900px) {
    .fsa-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .fsa-stats-grid {
        grid-template-columns: 1fr;
    }
    .fsa-table {
        font-size: 12px;
    }
    .fsa-table th, .fsa-table td {
        padding: 10px 12px;
    }
    .fsa-title-cell { max-width: 140px; }
    .fsa-issues-cell { max-width: 160px; }
}