:root {
    --ink-980: #09182a;
    --ink-950: #0e2238;
    --ink-900: #14314e;
    --ink-850: #1c3f61;
    --ink-700: #355676;
    --ink-500: #6b87a2;
    --mist-100: #f4f7fb;
    --mist-200: #e7edf5;
    --mist-300: #d5e0ec;
    --mist-400: #bfd0e1;
    --sand-400: #d5b170;
    --sand-500: #be9048;
    --sand-200: #f1debb;
    --mint-500: #2f8f83;
    --mint-300: #8dd0c8;
    --rose-500: #a64d4d;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.84);
    --glass-strong: rgba(255, 255, 255, 0.94);
    --shadow-xl: 0 30px 80px rgba(9, 24, 42, 0.18);
    --shadow-lg: 0 24px 60px rgba(14, 34, 56, 0.16);
    --shadow-md: 0 14px 34px rgba(14, 34, 56, 0.12);
    --shadow-sm: 0 8px 18px rgba(14, 34, 56, 0.08);
    --shadow-hero: 0 36px 90px rgba(9, 24, 42, 0.24);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
    color: var(--ink-950);
    background:
        radial-gradient(circle at top left, rgba(190, 144, 72, 0.24), transparent 23%),
        radial-gradient(circle at 85% 10%, rgba(47, 143, 131, 0.22), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(20, 49, 78, 0.1), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fa 42%, #e7eef6 100%);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.18;
    mix-blend-mode: soft-light;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: clip;
}

.shell::before,
.shell::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(10px);
}

.shell::before {
    width: 360px;
    height: 360px;
    top: 88px;
    right: -110px;
    background: radial-gradient(circle, rgba(141, 208, 200, 0.36), transparent 70%);
}

.shell::after {
    width: 300px;
    height: 300px;
    left: -80px;
    bottom: 70px;
    background: radial-gradient(circle, rgba(213, 177, 112, 0.26), transparent 70%);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background:
        linear-gradient(180deg, rgba(11, 29, 53, 0.94), rgba(17, 39, 68, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(9, 24, 42, 0.16);
    overflow: hidden;
}

.topbar::before {
    content: "";
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: -46px;
    height: 88px;
    background: radial-gradient(circle at center, rgba(190, 144, 72, 0.18), transparent 55%);
    pointer-events: none;
}

.topbar-inner,
.container {
    width: min(1540px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0 18px;
    position: relative;
}

.topbar-inner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 215, 167, 0.34), rgba(108, 230, 216, 0.3), transparent);
    pointer-events: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
}

.brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.34), transparent 26%),
        radial-gradient(circle at 78% 16%, rgba(108, 230, 216, 0.22), transparent 24%),
        linear-gradient(145deg, #173a58, #0e2541 58%, #071729);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 16px 30px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.brand-mark-svg {
    width: 56px;
    height: 56px;
    display: block;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 320px;
    position: relative;
}

.brand-eyebrow {
    display: inline-flex;
    align-items: center;
    color: rgba(242, 214, 168, 0.88);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-copy h1,
.brand-copy p,
.hero-copy h2,
.section-heading h3,
.auth-panel h2,
.report-card h3,
.detail-hero h2 {
    margin: 0;
}

.brand-copy h1,
.hero-copy h2,
.section-heading h3,
.auth-panel h2,
.report-card h3,
.detail-hero h2 {
    font-family: "Cormorant Garamond", Georgia, "Palatino Linotype", serif;
}

.brand-copy h1 {
    font-size: 2.45rem;
    line-height: 0.88;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 10px 24px rgba(9, 24, 42, 0.26);
}

.brand-copy p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.64);
    letter-spacing: 0.015em;
    max-width: 52ch;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    letter-spacing: 0.015em;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.button,
button.button {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}

.button:hover,
button.button:hover {
    transform: translateY(-2px);
    filter: saturate(1.03);
}

.button:disabled,
button.button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    filter: none;
    box-shadow: none;
}

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--ink-980), var(--ink-850));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        var(--shadow-md);
}

.button-accent {
    color: var(--ink-950);
    background: linear-gradient(135deg, #f6e5c7, var(--sand-500));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        var(--shadow-sm);
}

.button-ghost {
    color: var(--ink-900);
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(20, 49, 78, 0.1);
    backdrop-filter: blur(12px);
}

.button-danger {
    color: var(--white);
    background: var(--rose-500);
}

.page {
    flex: 1;
    padding: 48px 0 88px;
}

.hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 30px;
    align-items: stretch;
}

.hero-copy,
.hero-card,
.panel,
.auth-panel,
.report-card,
.detail-panel {
    background: var(--glass);
    border: 1px solid rgba(20, 49, 78, 0.08);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-xl);
    position: relative;
    backdrop-filter: blur(18px);
}

.hero-copy::before,
.panel::before,
.auth-panel::before,
.detail-panel::before,
.report-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(191, 208, 225, 0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-copy {
    padding: 52px 52px 46px;
    background:
        radial-gradient(circle at top right, rgba(190, 144, 72, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.92));
    box-shadow: var(--shadow-hero);
}

.hero-kicker,
.section-kicker {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(190, 144, 72, 0.16), rgba(47, 143, 131, 0.1));
    color: #8e6a2e;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(190, 144, 72, 0.18);
}

.hero-copy h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 0.98;
    margin-bottom: 20px;
    max-width: 12ch;
}

.hero-copy p,
.hero-list li,
.field-help,
.muted,
.stat-label,
.table-subtext {
    color: var(--ink-700);
}

.hero-copy p {
    font-size: 1.08rem;
    line-height: 1.78;
    max-width: 62ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.hero-list {
    margin: 24px 0 0;
    padding-left: 18px;
    line-height: 1.9;
}

.hero-card {
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(141, 208, 200, 0.22), transparent 32%),
        radial-gradient(circle at bottom left, rgba(190, 144, 72, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(18, 40, 71, 0.98), rgba(11, 28, 51, 0.98));
    color: var(--white);
    overflow: hidden;
}

.hero-card::after,
.market-shell::after,
.insight-shell::after,
.detail-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
    pointer-events: none;
}

.hero-card h3,
.metric-value {
    font-family: Georgia, "Palatino Linotype", serif;
}

.hero-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.metric-grid,
.dashboard-grid,
.detail-grid {
    display: grid;
    gap: 20px;
}

.metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
}

.metric {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    min-height: 112px;
}

.metric-value {
    font-size: 1.65rem;
    margin-bottom: 6px;
}

.section {
    margin-top: 40px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h3 {
    font-size: 1.95rem;
    margin-top: 10px;
    line-height: 1.08;
}

.section-heading p {
    max-width: 88ch;
    line-height: 1.72;
}

.dashboard-hero-shell {
    position: relative;
    margin-bottom: 30px;
    padding: 34px 34px 30px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(82, 167, 230, 0.16), transparent 26%),
        radial-gradient(circle at left center, rgba(190, 144, 72, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 251, 255, 0.54));
    border: 1px solid rgba(20, 49, 78, 0.08);
    box-shadow: var(--shadow-hero);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.dashboard-hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(191, 208, 225, 0.18));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.dashboard-hero-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.dashboard-hero-heading h3 {
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: 0.94;
    letter-spacing: -0.035em;
    max-width: 14ch;
    color: var(--ink-980);
}

.dashboard-hero-heading p {
    font-size: 1.03rem;
    line-height: 1.82;
    max-width: 76ch;
}

.report-history-heading {
    margin-bottom: 22px;
}

.report-history-heading h3 {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 8px 24px rgba(6, 18, 30, 0.34);
}

.report-history-heading .muted,
.report-history-heading p {
    color: rgba(228, 241, 252, 0.78);
}

.dashboard-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(20, 49, 78, 0.08);
    box-shadow: var(--shadow-sm);
    color: var(--ink-900);
    font-weight: 700;
    font-size: 0.9rem;
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.summary-card {
    position: relative;
    padding: 22px 20px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.9));
    border: 1px solid rgba(20, 49, 78, 0.08);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(14, 34, 56, 0.15);
    border-color: rgba(20, 49, 78, 0.14);
}

.summary-card::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--ink-900), var(--sand-500));
}

.summary-card::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.46), transparent 70%);
    pointer-events: none;
}

.summary-label,
.summary-note {
    display: block;
}

.summary-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-700);
}

.summary-value {
    display: block;
    margin: 12px 0 8px;
    font-size: 2.4rem;
    line-height: 0.94;
    color: var(--ink-900);
    font-family: "Cormorant Garamond", Georgia, "Palatino Linotype", serif;
}

.summary-note {
    font-size: 0.86rem;
    color: var(--ink-700);
    line-height: 1.45;
}

.summary-card:nth-child(1)::before {
    background: linear-gradient(90deg, #2e5a96, #7da9ff);
}

.summary-card:nth-child(2)::before {
    background: linear-gradient(90deg, #1f6c66, #54c7b8);
}

.summary-card:nth-child(3)::before {
    background: linear-gradient(90deg, #8a6330, #e1bf84);
}

.summary-card:nth-child(4)::before {
    background: linear-gradient(90deg, #3d5f7d, #8fc4ef);
}

.summary-card:nth-child(5)::before {
    background: linear-gradient(90deg, #355c1f, #7abf55);
}

.summary-card:nth-child(1) .summary-value {
    color: #17385f;
}

.summary-card:nth-child(2) .summary-value {
    color: #1c726b;
}

.summary-card:nth-child(3) .summary-value {
    color: #8a6330;
}

.summary-card:nth-child(4) .summary-value {
    color: #2d587d;
}

.summary-card:nth-child(5) .summary-value {
    color: #2f5f2d;
}

.dashboard-grid {
    grid-template-columns: 420px 1fr;
    align-items: start;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1.38fr) 390px;
    gap: 28px;
    align-items: start;
}

.panel,
.auth-panel,
.detail-panel {
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 251, 253, 0.92));
}

.panel h3,
.auth-panel h2,
.detail-panel h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.panel-heading {
    margin-bottom: 18px;
}

.field-group {
    margin-bottom: 16px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    border: 1px solid rgba(20, 49, 78, 0.16);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    padding: 14px 15px;
    font: inherit;
    color: var(--ink-950);
    box-shadow:
        inset 0 1px 3px rgba(20, 49, 78, 0.03),
        0 6px 16px rgba(20, 49, 78, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: rgba(47, 143, 131, 0.55);
    box-shadow:
        0 0 0 4px rgba(47, 143, 131, 0.1),
        inset 0 1px 3px rgba(20, 49, 78, 0.03),
        0 10px 24px rgba(47, 143, 131, 0.1);
    transform: translateY(-1px);
}

.field-group textarea {
    min-height: 168px;
    resize: vertical;
}

.field-help {
    display: block;
    margin-top: 8px;
    font-size: 0.92rem;
}

.field-error {
    margin-top: 8px;
    color: var(--rose-500);
    font-size: 0.92rem;
    font-weight: 700;
}

.flash,
.error-summary {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
}

.flash {
    background: rgba(47, 143, 131, 0.12);
    border: 1px solid rgba(47, 143, 131, 0.2);
    color: #165f58;
    box-shadow: var(--shadow-sm);
}

.error-summary {
    background: rgba(166, 77, 77, 0.1);
    border: 1px solid rgba(166, 77, 77, 0.2);
    color: #7e3232;
    box-shadow: var(--shadow-sm);
}

.error-summary ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.mail-mode-note {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(192, 135, 44, 0.12);
    border: 1px solid rgba(192, 135, 44, 0.24);
    color: #754f14;
    line-height: 1.6;
    box-shadow: var(--shadow-sm);
}

.mail-mode-note code {
    color: #0d263f;
    font-weight: 800;
}

.report-card {
    padding: 24px;
    margin-bottom: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

.report-card:hover,
.panel:hover,
.detail-panel:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.report-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--sand-500), var(--mint-500));
    opacity: 0.94;
}

.report-header,
.report-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.report-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.report-meta,
.detail-meta {
    margin-top: 16px;
    color: var(--ink-700);
    font-size: 0.95rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.status-queued,
.status-running {
    color: #895d14;
    background: rgba(190, 144, 72, 0.16);
}

.status-complete {
    color: #165f58;
    background: rgba(47, 143, 131, 0.14);
}

.status-error {
    color: #7e3232;
    background: rgba(166, 77, 77, 0.14);
}

.status-badge:not(.status-queued):not(.status-running):not(.status-complete):not(.status-error) {
    color: var(--ink-900);
    background: rgba(20, 49, 78, 0.1);
}

.pagination-shell {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.auth-wrap {
    width: min(540px, calc(100% - 32px));
    margin: 56px auto 0;
}

.auth-panel {
    padding: 40px;
    box-shadow: var(--shadow-hero);
}

.auth-links {
    margin-top: 18px;
    color: var(--ink-700);
    line-height: 1.7;
}

.detail-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 390px;
    gap: 28px;
    align-items: start;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
}

.detail-stat {
    padding: 18px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 247, 251, 0.92));
    border: 1px solid rgba(20, 49, 78, 0.08);
}

.stat-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-value {
    font-weight: 800;
    font-size: 1.1rem;
}

.footer {
    padding: 26px 0 34px;
    color: var(--ink-700);
    font-size: 0.92rem;
    border-top: 1px solid rgba(20, 49, 78, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.38));
    backdrop-filter: blur(10px);
}

.filter-panel {
    position: sticky;
    top: 104px;
    background:
        radial-gradient(circle at top right, rgba(141, 208, 200, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(17, 38, 67, 0.98), rgba(12, 30, 53, 0.98));
    color: var(--white);
    box-shadow: var(--shadow-hero);
}

.filter-checklist {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.toggle-stack {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.visual-mode-tags {
    justify-content: flex-end;
}

.toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-card strong {
    display: block;
    margin-bottom: 4px;
}

.toggle-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.toggle-switch {
    position: relative;
    width: 64px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.toggle-switch.is-active {
    background: linear-gradient(135deg, rgba(47, 143, 131, 0.7), rgba(82, 167, 230, 0.62));
    border-color: rgba(255, 255, 255, 0.2);
}

.toggle-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(9, 24, 42, 0.24);
    transition: transform 0.18s ease;
}

.toggle-switch.is-active .toggle-knob {
    transform: translateX(28px);
}

.mini-toggle-group,
.analysis-toggle-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-toggle,
.analysis-toggle {
    border: 0;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mini-toggle:hover,
.analysis-toggle:hover {
    transform: translateY(-1px);
}

.mini-toggle.is-active,
.analysis-toggle.is-active {
    background: linear-gradient(135deg, rgba(190, 144, 72, 0.26), rgba(47, 143, 131, 0.22));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.analysis-toggle-row {
    padding: 12px 16px 0;
}

.analysis-toggle {
    background: rgba(20, 49, 78, 0.06);
    color: var(--ink-850);
}

.coverage-shell {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.coverage-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    font-weight: 700;
}

.coverage-bar {
    height: 12px;
    margin: 14px 0 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
}

.coverage-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mint-500), #52a7e6);
}

.coverage-copy {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.74);
}

.check-card,
.compact-panel {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.check-card p,
.compact-panel p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.market-shell {
    overflow: hidden;
    position: relative;
    align-self: start;
}

.insight-shell {
    overflow: hidden;
    position: sticky;
    top: 104px;
    align-self: start;
}

.market-shell::before,
.insight-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(246, 215, 167, 0.12), transparent 26%),
        radial-gradient(circle at bottom left, rgba(108, 230, 216, 0.08), transparent 24%);
    pointer-events: none;
}

.market-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.map-toolbar-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.map-toolbar-meta span {
    font-size: 0.8rem;
    color: var(--ink-700);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(20, 49, 78, 0.08), rgba(190, 144, 72, 0.12));
    color: var(--ink-900);
    font-weight: 700;
    font-size: 0.86rem;
    box-shadow: var(--shadow-sm);
}

.map-stage {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(20, 49, 78, 0.05), rgba(20, 49, 78, 0.02));
    border: 1px solid rgba(20, 49, 78, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 16px 36px rgba(14, 34, 56, 0.08);
}

.map-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 16%, transparent 84%, rgba(9, 24, 42, 0.05));
    pointer-events: none;
}

.map-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(20, 49, 78, 0.1), rgba(47, 143, 131, 0.12), rgba(190, 144, 72, 0.12));
    color: var(--ink-900);
    font-weight: 700;
    border-bottom: 1px solid rgba(20, 49, 78, 0.08);
}

.map-live-surface {
    position: relative;
}

/* ---- OSM map popup extras ---- */
.map-popup {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.82rem;
    min-width: 160px;
}

.map-popup strong {
    font-weight: 700;
    color: #14314e;
    font-size: 0.86rem;
}

.map-popup span {
    color: #355676;
}

.map-popup-zone {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2f8f83;
    background: rgba(47, 143, 131, 0.1);
    border-radius: 4px;
    padding: 1px 5px;
    margin-bottom: 1px;
}

.analysis-stage {
    position: relative;
}

.analysis-pane {
    display: none;
}

.analysis-pane.is-active {
    display: block;
}

.map-surface {
    position: relative;
    min-height: 320px;
    background:
        radial-gradient(circle at 60% 45%, rgba(47, 143, 131, 0.12), transparent 28%),
        radial-gradient(circle at 24% 18%, rgba(190, 144, 72, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(47, 143, 131, 0.08), rgba(20, 49, 78, 0.03)),
        repeating-linear-gradient(0deg, rgba(20, 49, 78, 0.05), rgba(20, 49, 78, 0.05) 1px, transparent 1px, transparent 38px),
        repeating-linear-gradient(90deg, rgba(20, 49, 78, 0.05), rgba(20, 49, 78, 0.05) 1px, transparent 1px, transparent 38px);
}

.map-canvas {
    min-height: 360px;
    width: 100%;
}

.map-surface::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(20, 49, 78, 0.1);
    pointer-events: none;
}

.map-live-surface::before {
    display: none;
}

.map-empty-state {
    position: absolute;
    inset: 24px;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 251, 0.86));
    border: 1px dashed rgba(20, 49, 78, 0.16);
    color: var(--ink-700);
}

.map-empty-state h4 {
    margin: 0 0 10px;
    color: var(--ink-900);
    font-family: Georgia, "Palatino Linotype", serif;
}

.map-empty-state.is-hidden {
    display: none;
}

.positioning-shell {
    min-height: 360px;
    padding: 18px;
    background:
        radial-gradient(circle at top right, rgba(82, 167, 230, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 252, 0.92));
}

.positioning-copy {
    margin: 14px 2px 0;
    color: var(--ink-700);
    line-height: 1.6;
}

.trend-position-panel {
    margin-top: 20px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(20, 49, 78, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94));
    box-shadow: var(--shadow-md);
    position: relative;
}

.trend-position-header {
    padding: 14px 20px;
    background: linear-gradient(135deg, #183453, #224d73 54%, #1f6c66);
    color: #fff;
}

.trend-position-header h4 {
    margin: 0;
    font-size: 1.28rem;
    font-family: Georgia, "Palatino Linotype", serif;
}

.trend-position-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 20px 20px 12px;
}

.chart-card-flat {
    margin-top: 0;
    box-shadow: none;
    background: transparent;
    border: 0;
}

.compact-empty {
    min-height: 240px;
}

.trend-position-copy {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--ink-700);
    line-height: 1.7;
    max-width: 88ch;
}

.map-point {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.16),
        0 12px 22px rgba(14, 34, 56, 0.16);
    animation: pulsePoint 3.8s ease-in-out infinite;
}

.map-point-1 { background: #2f8f83; }
.map-point-2 { background: #f0b429; }
.map-point-3 { background: #d55d4c; }
.map-point-4 { background: #52a7e6; }

.map-callout {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 220px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(14, 34, 56, 0.94), rgba(20, 49, 78, 0.94));
    color: var(--white);
    box-shadow: 0 24px 44px rgba(10, 22, 40, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-callout strong {
    font-size: 1.25rem;
}

.legend-row,
.module-strip,
.mix-list,
.callout-list {
    display: grid;
    gap: 12px;
}

.legend-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 14px 18px 18px;
    font-size: 0.9rem;
    color: var(--ink-700);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(247, 250, 252, 0.9));
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 999px;
}

.legend-dot-1 { background: #2f8f83; }
.legend-dot-2 { background: #f0b429; }
.legend-dot-3 { background: #d55d4c; }
.legend-dot-4 { background: #52a7e6; }

.module-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.module-pill {
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.9));
    border: 1px solid rgba(20, 49, 78, 0.08);
    font-weight: 700;
    color: var(--ink-900);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
}

.module-pill::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(190, 144, 72, 0.08), transparent 45%, rgba(47, 143, 131, 0.08));
    pointer-events: none;
}

.module-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.kpi-card,
.chart-card,
.table-card {
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94));
    border: 1px solid rgba(20, 49, 78, 0.08);
    box-shadow: var(--shadow-md);
    position: relative;
}

.table-card {
    overflow: hidden;
}

.table-card::before,
.chart-card::before,
.kpi-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(246, 215, 167, 0.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(108, 230, 216, 0.08), transparent 22%);
    pointer-events: none;
}

.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(20, 49, 78, 0.07), rgba(190, 144, 72, 0.12), rgba(82, 167, 230, 0.08));
    border-bottom: 1px solid rgba(20, 49, 78, 0.08);
}

.table-card-header strong,
.table-card-header span {
    display: block;
}

.table-card-header strong {
    font-size: 0.96rem;
    color: var(--ink-900);
}

.table-card-header span {
    margin-top: 4px;
    font-size: 0.86rem;
    color: var(--ink-700);
}

.table-scroll {
    overflow-x: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 247, 251, 0.88));
}

.kpi-card {
    padding: 18px;
    overflow: hidden;
}

.kpi-card p,
.chart-card p {
    margin-bottom: 0;
    color: var(--ink-700);
}

.chart-card {
    padding: 18px;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}

.chart-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.chart-grid-2 .chart-card {
    margin-top: 0;
}

.chart-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(191, 144, 72, 0.1), transparent 70%);
    pointer-events: none;
}

.chart-card h4,
.callout-list h4 {
    margin: 0 0 12px;
    font-family: Georgia, "Palatino Linotype", serif;
}

.chart-canvas-shell {
    position: relative;
    height: 210px;
}

.chart-canvas-shell-compact {
    height: 200px;
}

.chart-canvas-shell-donut {
    height: 230px;
}

.chart-canvas-shell-positioning {
    height: 260px;
}

.chart-canvas {
    width: 100% !important;
    max-height: 100%;
}

.mini-bars {
    display: flex;
    align-items: end;
    gap: 12px;
    min-height: 170px;
}

.mini-bar-wrap {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mini-bar {
    width: 100%;
    min-height: 14px;
    border-radius: 999px 999px 10px 10px;
    background: linear-gradient(180deg, var(--mint-500), #8bc8bf);
}

.mini-bar-alt {
    background: linear-gradient(180deg, var(--sand-500), #ecd1a1);
}

.mini-bar-wrap span {
    font-size: 0.8rem;
    color: var(--ink-700);
    text-align: center;
}

.mix-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 251, 0.92));
    border: 1px solid rgba(20, 49, 78, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.callout-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 251, 0.92));
    border: 1px solid rgba(20, 49, 78, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mix-row:hover,
.callout-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.gm-marker-wrap {
    background: transparent;
    border: 0;
}

.gm-marker {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.18),
        0 10px 18px rgba(14, 34, 56, 0.18);
}

.map-popup {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

.map-popup strong {
    color: var(--ink-950);
    font-size: 0.92rem;
}

.map-popup span {
    color: var(--ink-700);
    font-size: 0.82rem;
}

.insight-bullets {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.insight-bullet {
    position: relative;
    padding-left: 18px;
    color: var(--ink-700);
    font-size: 0.92rem;
}

.insight-bullet::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sand-500), var(--mint-500));
}

.data-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(20, 49, 78, 0.08);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: linear-gradient(180deg, var(--ink-900), var(--ink-850));
    color: var(--white);
    font-size: 0.77rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table th:first-child {
    border-top-left-radius: 18px;
}

.data-table th:last-child {
    border-top-right-radius: 18px;
}

.data-table tr:nth-child(even) td {
    background: rgba(244, 247, 251, 0.72);
}

.data-table tbody tr {
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.data-table tbody tr:hover td {
    background: rgba(215, 224, 236, 0.32);
}

.data-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(20, 49, 78, 0.04);
}

.row-soft-hidden {
    opacity: 0.42;
}

.data-table td {
    color: var(--ink-900);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.col-address {
    min-width: 250px;
}

.address-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.address-primary {
    display: block;
    font-size: 0.98rem;
    line-height: 1.42;
    color: var(--ink-950);
    font-weight: 800;
}

.address-meta {
    font-size: 0.84rem;
    color: var(--ink-700);
    line-height: 1.4;
}

.numeric-cell {
    text-align: right !important;
}

.value-chip,
.zone-chip,
.city-pill,
.date-pill,
.rank-badge,
.flag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.value-chip {
    background: linear-gradient(135deg, rgba(20, 49, 78, 0.08), rgba(255, 255, 255, 0.92));
    color: var(--ink-950);
    border: 1px solid rgba(20, 49, 78, 0.08);
}

.value-chip-muted {
    background: linear-gradient(135deg, rgba(213, 224, 236, 0.62), rgba(255, 255, 255, 0.92));
}

.value-chip-alt {
    background: linear-gradient(135deg, rgba(47, 143, 131, 0.16), rgba(255, 255, 255, 0.92));
    color: #175f57;
}

.zone-chip {
    background: linear-gradient(135deg, rgba(190, 144, 72, 0.16), rgba(255, 255, 255, 0.94));
    color: #7b5922;
    border: 1px solid rgba(190, 144, 72, 0.14);
}

.city-pill,
.date-pill {
    background: rgba(20, 49, 78, 0.06);
    color: var(--ink-850);
    border: 1px solid rgba(20, 49, 78, 0.07);
}

.rank-badge {
    min-width: 40px;
    padding-inline: 10px;
    background: linear-gradient(135deg, var(--ink-900), var(--ink-850));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.flag-chip {
    justify-content: flex-start;
    background: linear-gradient(135deg, rgba(166, 77, 77, 0.08), rgba(255, 255, 255, 0.94));
    color: var(--ink-850);
    border: 1px solid rgba(166, 77, 77, 0.1);
    max-width: 240px;
    white-space: normal;
    line-height: 1.35;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.empty-visual {
    padding: 34px;
    text-align: center;
    background:
        radial-gradient(circle at top center, rgba(246, 215, 167, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 252, 0.94));
    border-radius: 18px;
    border: 1px dashed rgba(20, 49, 78, 0.12);
}

.section-heading-table {
    margin-top: 22px;
}

.section-heading-table-title {
    font-size: 1.45rem;
}

.payload-view {
    margin: 0;
    padding: 16px;
    border-radius: 18px;
    background: #0e2238;
    color: #f4f7fb;
    overflow: auto;
    font-size: 0.86rem;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulsePoint {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 6px rgba(255, 255, 255, 0.16),
            0 12px 22px rgba(14, 34, 56, 0.16);
    }
    50% {
        transform: scale(1.08);
        box-shadow:
            0 0 0 10px rgba(255, 255, 255, 0.12),
            0 16px 30px rgba(14, 34, 56, 0.18);
    }
}

.hero-copy,
.hero-card,
.panel,
.detail-panel,
.report-card {
    animation: floatIn 0.42s ease both;
}

@media (max-width: 980px) {
    .hero,
    .dashboard-grid,
    .detail-grid,
    .analytics-grid,
    .detail-layout,
    .roadmap-grid,
    .summary-strip {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links,
    .nav-actions {
        flex-wrap: wrap;
    }

    .filter-panel,
    .insight-shell {
        position: static;
    }

    .legend-row,
    .module-strip,
    .chart-grid-2,
    .trend-position-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-copy h2 {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .chart-grid-2,
    .legend-row,
    .module-strip,
    .trend-position-grid {
        grid-template-columns: 1fr;
    }

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

    .map-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-toolbar-meta {
        align-items: flex-start;
    }

    .map-canvas {
        min-height: 300px;
    }

    .toggle-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.landing-cinema {
    position: relative;
    padding-top: 10px;
}

.landing-cinema::before {
    content: "";
    position: absolute;
    inset: -40px 0 auto;
    height: 620px;
    border-radius: 42px;
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 218, 171, 0.5), transparent 18%),
        radial-gradient(circle at 84% 16%, rgba(113, 181, 225, 0.32), transparent 22%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12));
    filter: blur(12px);
    z-index: -1;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: center;
}

.landing-narrative {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.landing-pill {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(244, 226, 196, 0.88), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(190, 144, 72, 0.22);
    box-shadow: var(--shadow-sm);
    color: #8b6230;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.landing-narrative h2,
.landing-cta-band h3,
.landing-section-heading h3,
.landing-mosaic-card h4,
.landing-process-card h4,
.scene-primary-panel h3 {
    font-family: "Cormorant Garamond", Georgia, "Palatino Linotype", serif;
    margin: 0;
}

.landing-narrative h2 {
    margin-top: 18px;
    font-size: clamp(3.1rem, 5.6vw, 5.8rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
    max-width: 11ch;
    color: #112745;
}

.landing-lead {
    margin: 22px 0 0;
    max-width: 60ch;
    font-size: 1.08rem;
    line-height: 1.86;
    color: var(--ink-700);
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.landing-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.landing-proof-card,
.landing-signal-card,
.landing-mosaic-card,
.landing-process-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(20, 49, 78, 0.08);
    box-shadow: var(--shadow-md);
}

.landing-proof-card {
    min-height: 176px;
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(141, 208, 200, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.78));
    backdrop-filter: blur(14px);
}

.landing-proof-card strong,
.landing-signal-card strong,
.landing-mosaic-card h4,
.landing-process-card h4 {
    display: block;
    color: var(--ink-950);
}

.landing-proof-card strong {
    margin-top: 8px;
    font-size: 1.08rem;
}

.landing-proof-card p,
.landing-signal-card p,
.landing-mosaic-card p,
.landing-process-card p {
    margin: 10px 0 0;
    color: var(--ink-700);
    line-height: 1.72;
}

.proof-label,
.landing-signal-kicker,
.mosaic-kicker,
.process-step,
.floating-label,
.scene-card-label,
.scene-mini-kicker,
.scene-command-label {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
}

.proof-label {
    color: #8c6730;
}

.landing-visual-shell {
    position: relative;
    min-width: 0;
}

.landing-visual {
    position: relative;
    min-height: 780px;
    padding: 32px;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 16%, rgba(255, 219, 178, 0.82), transparent 15%),
        radial-gradient(circle at 76% 22%, rgba(255, 162, 116, 0.34), transparent 18%),
        radial-gradient(circle at 50% 66%, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #211e37 0%, #564766 22%, #c98666 52%, #f4c9a3 68%, #13253e 100%);
    box-shadow: 0 40px 110px rgba(9, 24, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.landing-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 110px 110px;
    opacity: 0.2;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.scene-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 44%, rgba(255, 233, 210, 0.4), transparent 20%),
        radial-gradient(circle at 54% 60%, rgba(255, 255, 255, 0.14), transparent 28%);
    pointer-events: none;
}

.scene-ridge {
    position: absolute;
    left: -4%;
    right: -4%;
    bottom: 0;
    border-radius: 50% 50% 0 0 / 14% 14% 0 0;
    filter: drop-shadow(0 18px 40px rgba(9, 24, 42, 0.2));
}

.ridge-back {
    height: 42%;
    bottom: 18%;
    background:
        linear-gradient(180deg, rgba(56, 63, 91, 0.2), rgba(37, 39, 66, 0.92)),
        linear-gradient(90deg, rgba(255, 198, 146, 0.1), transparent 30%);
    clip-path: polygon(0 72%, 11% 58%, 20% 63%, 32% 38%, 45% 60%, 58% 28%, 71% 64%, 82% 46%, 100% 72%, 100% 100%, 0 100%);
}

.ridge-mid {
    height: 36%;
    bottom: 10%;
    background:
        linear-gradient(180deg, rgba(25, 35, 59, 0.1), rgba(19, 31, 52, 0.96)),
        linear-gradient(90deg, rgba(255, 186, 128, 0.16), transparent 36%);
    clip-path: polygon(0 70%, 14% 50%, 26% 61%, 38% 36%, 49% 58%, 62% 31%, 73% 62%, 84% 44%, 100% 70%, 100% 100%, 0 100%);
}

.ridge-front {
    height: 28%;
    background:
        linear-gradient(180deg, rgba(13, 24, 43, 0.12), rgba(10, 20, 35, 1)),
        linear-gradient(90deg, rgba(217, 134, 88, 0.18), transparent 34%);
    clip-path: polygon(0 62%, 10% 48%, 20% 56%, 33% 34%, 48% 61%, 63% 30%, 76% 54%, 89% 40%, 100% 60%, 100% 100%, 0 100%);
}

.scene-fog {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20%;
    height: 28%;
    background:
        radial-gradient(circle at 25% 48%, rgba(255, 247, 240, 0.28), transparent 24%),
        radial-gradient(circle at 52% 60%, rgba(255, 245, 236, 0.32), transparent 30%),
        radial-gradient(circle at 77% 42%, rgba(255, 246, 240, 0.18), transparent 20%);
    filter: blur(18px);
    opacity: 0.95;
    pointer-events: none;
}

.scene-command,
.scene-primary-panel,
.floating-card {
    position: absolute;
    z-index: 2;
    backdrop-filter: blur(16px);
}

.scene-command {
    top: 28px;
    left: 28px;
    right: 28px;
    padding: 18px 22px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 248, 242, 0.82), rgba(253, 239, 227, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 18px 36px rgba(18, 31, 49, 0.12);
}

.scene-command-label {
    color: rgba(113, 78, 44, 0.9);
}

.scene-command-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.scene-command-row span,
.scene-chip,
.floating-pill-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
}

.scene-command-row span {
    background: rgba(17, 39, 69, 0.08);
    color: var(--ink-900);
    font-size: 0.85rem;
    font-weight: 700;
}

.scene-primary-panel {
    left: 32px;
    right: 210px;
    top: 148px;
    padding: 24px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(19, 31, 50, 0.68), rgba(15, 24, 41, 0.52)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 22px 55px rgba(9, 24, 42, 0.22);
    color: var(--white);
}

.scene-panel-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.scene-mini-kicker,
.scene-card-label,
.floating-label {
    color: rgba(255, 236, 206, 0.78);
}

.scene-primary-panel h3 {
    margin-top: 10px;
    font-size: 2rem;
    line-height: 0.98;
    max-width: 11ch;
}

.scene-chip-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 180px;
    justify-content: flex-end;
}

.scene-chip {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.8rem;
    font-weight: 700;
}

.scene-graph-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    margin-top: 26px;
}

.scene-graph-card {
    min-height: 208px;
    padding: 16px 18px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scene-line-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    height: 132px;
    margin-top: 18px;
}

.scene-line-chart span,
.floating-bars span {
    position: relative;
    display: block;
    border-radius: 999px 999px 10px 10px;
    background: linear-gradient(180deg, rgba(255, 212, 165, 0.96), rgba(255, 145, 110, 0.66));
    box-shadow: 0 10px 20px rgba(255, 154, 110, 0.18);
}

.scene-line-chart span::before {
    content: "";
    position: absolute;
    inset: auto 18% -14px;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.scene-graph-donut {
    display: flex;
    flex-direction: column;
}

.scene-donut-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    min-height: 140px;
}

.scene-donut {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(14, 22, 38, 0.94) 0 36%, transparent 37%),
        conic-gradient(#f4c485 0 34%, #8dd0c8 34% 72%, #80a8de 72% 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.scene-donut-meta strong {
    display: block;
    font-size: 1.9rem;
    color: var(--white);
}

.scene-donut-meta span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.floating-card {
    width: 230px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 250, 246, 0.84), rgba(245, 232, 220, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow: 0 22px 44px rgba(17, 34, 56, 0.18);
}

.floating-card strong {
    display: block;
    margin-top: 8px;
    font-family: "Cormorant Garamond", Georgia, "Palatino Linotype", serif;
    font-size: 1.8rem;
    line-height: 0.94;
    color: var(--ink-980);
}

.floating-card p {
    margin: 10px 0 0;
    color: var(--ink-700);
    line-height: 1.55;
}

.floating-card-top {
    top: 116px;
    right: 28px;
}

.floating-card-right {
    top: 330px;
    right: 28px;
}

.floating-card-bottom {
    left: 60px;
    bottom: 30px;
    width: 280px;
    background:
        linear-gradient(180deg, rgba(19, 33, 55, 0.88), rgba(15, 25, 41, 0.8));
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.floating-card-bottom strong,
.floating-card-bottom p {
    color: var(--white);
}

.floating-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.floating-pill-row span {
    background: rgba(17, 39, 69, 0.08);
    color: var(--ink-850);
    font-size: 0.78rem;
    font-weight: 700;
}

.floating-bars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    height: 92px;
    margin-top: 18px;
}

.floating-bars span {
    background: linear-gradient(180deg, rgba(244, 196, 133, 0.94), rgba(92, 165, 192, 0.72));
}

.landing-signal-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.landing-signal-card {
    padding: 24px 24px 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 224, 184, 0.22), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 255, 0.9));
}

.landing-signal-kicker,
.mosaic-kicker {
    color: var(--sand-500);
}

.landing-signal-card strong {
    margin-top: 10px;
    font-size: 1.14rem;
}

.landing-section-block {
    position: relative;
    margin-top: 38px;
    padding: 34px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(141, 208, 200, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 255, 0.88));
    border: 1px solid rgba(20, 49, 78, 0.08);
    box-shadow: 0 26px 64px rgba(9, 24, 42, 0.16);
    backdrop-filter: blur(16px);
}

.landing-section-block::before,
.landing-cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(191, 208, 225, 0.18));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.landing-section-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
}

.landing-section-heading h3 {
    margin-top: 12px;
    font-size: clamp(2.1rem, 3.2vw, 3.2rem);
    line-height: 0.96;
    max-width: 15ch;
    color: var(--ink-980);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.36);
}

.landing-mosaic-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 18px;
    margin-top: 28px;
}

.landing-mosaic-card {
    min-height: 220px;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 254, 0.9));
}

.landing-mosaic-card-large {
    grid-row: span 2;
    min-height: 458px;
    background:
        radial-gradient(circle at top right, rgba(141, 208, 200, 0.16), transparent 22%),
        radial-gradient(circle at bottom left, rgba(255, 216, 173, 0.2), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.86));
}

.landing-mosaic-card h4,
.landing-process-card h4 {
    margin-top: 12px;
    font-size: 1.8rem;
    line-height: 0.98;
}

.mosaic-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.mosaic-mini-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(18, 39, 68, 0.05);
    border: 1px solid rgba(20, 49, 78, 0.08);
}

.mosaic-mini-card strong {
    display: block;
    color: var(--ink-900);
}

.mosaic-mini-card span {
    display: block;
    margin-top: 8px;
    color: var(--ink-700);
    line-height: 1.55;
}

.landing-process-section {
    background:
        radial-gradient(circle at 14% 10%, rgba(255, 223, 184, 0.14), transparent 18%),
        linear-gradient(180deg, rgba(17, 38, 67, 0.98), rgba(12, 30, 53, 0.98));
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.landing-process-section .section-kicker {
    color: #f3d9a8;
    background: linear-gradient(135deg, rgba(255, 213, 152, 0.18), rgba(141, 208, 200, 0.12));
    border-color: rgba(255, 255, 255, 0.12);
}

.landing-process-section .landing-section-heading h3,
.landing-process-card h4 {
    color: var(--white);
}

.landing-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.landing-process-card {
    padding: 24px;
    min-height: 216px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.18);
}

.process-step {
    color: #f3d9a8;
}

.landing-process-card p {
    color: rgba(255, 255, 255, 0.72);
}

.landing-cta-band {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 38px;
    padding: 28px 32px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(141, 208, 200, 0.18), transparent 18%),
        linear-gradient(135deg, rgba(255, 251, 247, 0.96), rgba(246, 237, 228, 0.88));
    border: 1px solid rgba(20, 49, 78, 0.08);
    box-shadow: var(--shadow-lg);
}

.landing-cta-band h3 {
    margin-top: 10px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.96;
    max-width: 12ch;
    color: var(--ink-980);
}

@media (max-width: 1320px) {
    .landing-hero-grid {
        grid-template-columns: 1fr;
    }

    .landing-visual {
        min-height: 720px;
    }
}

@media (max-width: 1120px) {
    .landing-proof-grid,
    .landing-signal-strip,
    .landing-mosaic-grid,
    .landing-process-grid {
        grid-template-columns: 1fr 1fr;
    }

    .landing-mosaic-card-large {
        grid-row: auto;
        min-height: 360px;
        grid-column: 1 / -1;
    }
}

@media (max-width: 920px) {
    .landing-proof-grid,
    .landing-signal-strip,
    .landing-mosaic-grid,
    .landing-process-grid,
    .mosaic-mini-grid {
        grid-template-columns: 1fr;
    }

    .landing-visual {
        min-height: 760px;
        padding: 22px;
    }

    .scene-command {
        left: 22px;
        right: 22px;
    }

    .scene-primary-panel {
        position: relative;
        inset: auto;
        margin-top: 118px;
        left: auto;
        right: auto;
    }

    .floating-card {
        position: relative;
        inset: auto;
        width: 100%;
        margin-top: 14px;
    }

    .landing-cta-band {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .landing-visual {
        min-height: auto;
        padding-bottom: 24px;
    }

    .scene-command {
        position: relative;
        inset: auto;
    }

    .scene-primary-panel {
        margin-top: 18px;
        padding: 18px;
    }

    .scene-panel-top,
    .landing-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .scene-graph-grid {
        grid-template-columns: 1fr;
    }

    .landing-section-block,
    .landing-cta-band {
        padding: 24px;
    }
}

body.body-landing {
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 220, 172, 0.28), transparent 18%),
        radial-gradient(circle at 84% 10%, rgba(111, 200, 255, 0.18), transparent 18%),
        radial-gradient(circle at 72% 84%, rgba(67, 182, 210, 0.12), transparent 18%),
        linear-gradient(180deg, #f6fbff 0%, #edf4fa 42%, #e7eef7 100%);
}

body.body-landing::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.16;
    mix-blend-mode: soft-light;
}

body.body-auth,
body.body-dashboard,
body.body-detail {
    background:
        radial-gradient(circle at 8% 16%, rgba(34, 215, 224, 0.16), transparent 18%),
        radial-gradient(circle at 88% 10%, rgba(18, 214, 187, 0.12), transparent 16%),
        radial-gradient(circle at 76% 82%, rgba(29, 135, 184, 0.16), transparent 18%),
        linear-gradient(180deg, #071726 0%, #0a2336 36%, #102f44 100%);
}

body.body-auth::before,
body.body-dashboard::before,
body.body-detail::before {
    background:
        radial-gradient(circle, rgba(30, 229, 211, 0.18) 1.5px, transparent 2px),
        linear-gradient(rgba(59, 210, 226, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 210, 226, 0.06) 1px, transparent 1px);
    background-size: 38px 38px, 120px 120px, 120px 120px;
    opacity: 0.24;
    mix-blend-mode: screen;
}

body.body-auth .page,
body.body-dashboard .page,
body.body-detail .page {
    position: relative;
}

body.body-landing .page {
    position: relative;
}

.page-ambient {
    position: relative;
}

.page-ambient-grid {
    position: absolute;
    inset: -18px -10px auto;
    height: 540px;
    border-radius: 34px;
    background:
        linear-gradient(rgba(53, 204, 213, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53, 204, 213, 0.06) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), transparent 92%);
    pointer-events: none;
}

.page-ambient-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(16px);
    pointer-events: none;
}

.page-ambient-orb-a {
    top: 36px;
    right: 4%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(41, 233, 213, 0.2), transparent 70%);
}

.page-ambient-orb-b {
    top: 280px;
    left: -50px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(57, 167, 255, 0.16), transparent 70%);
}

.page-ambient-orb-c {
    top: 140px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(95, 246, 214, 0.18), transparent 70%);
}

.auth-wrap {
    position: relative;
}

.auth-stage {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(420px, 1fr);
    gap: 28px;
    align-items: stretch;
}

.auth-stage-centered {
    align-items: center;
}

.auth-secondary-action {
    margin-top: 14px;
}

body.body-auth .auth-wrap {
    width: min(1380px, calc(100% - 32px));
    margin: 56px auto 0;
}

.auth-panel,
.auth-showcase,
.dashboard-hero-shell,
.panel,
.detail-panel,
.detail-heading-shell {
    position: relative;
    min-width: 0;
}

.auth-panel {
    background:
        radial-gradient(circle at top right, rgba(41, 233, 213, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 252, 255, 0.82));
}

.auth-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 14%, rgba(190, 144, 72, 0.08), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(95, 246, 214, 0.08), transparent 22%);
    pointer-events: none;
    border-radius: inherit;
}

.auth-panel > * {
    position: relative;
    z-index: 1;
}

.auth-showcase {
    padding: 34px;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 24%, rgba(54, 236, 217, 0.28), transparent 20%),
        radial-gradient(circle at 20% 72%, rgba(75, 171, 255, 0.18), transparent 18%),
        linear-gradient(180deg, rgba(9, 29, 46, 0.98), rgba(8, 23, 36, 0.98));
    border: 1px solid rgba(122, 231, 233, 0.16);
    box-shadow: var(--shadow-hero);
    color: var(--white);
}

.auth-showcase h3 {
    margin: 12px 0 0;
    font-family: "Cormorant Garamond", Georgia, "Palatino Linotype", serif;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.96;
    color: var(--white);
    max-width: 14ch;
}

.auth-showcase p {
    max-width: 52ch;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.76;
}

.auth-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

.auth-trust-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 34, 56, 0.05), rgba(47, 143, 131, 0.08));
    border: 1px solid rgba(20, 49, 78, 0.08);
    box-shadow: 0 10px 22px rgba(12, 31, 51, 0.05);
    color: var(--ink-900);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-submit {
    min-width: 210px;
    margin-top: 8px;
}

.auth-links a {
    color: var(--ink-900);
}

.auth-links strong {
    color: #155e68;
}

.auth-showcase-orbit {
    position: relative;
    min-height: 420px;
    margin-top: 26px;
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(58, 230, 219, 0.12), transparent 30%),
        linear-gradient(rgba(58, 230, 219, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 230, 219, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    background-size: auto, 34px 34px, 34px 34px, auto;
    border: 1px solid rgba(95, 242, 227, 0.12);
}

.auth-showcase-orbit::before,
.auth-showcase-orbit::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(82, 244, 226, 0.16);
}

.auth-showcase-orbit::before {
    inset: 72px 90px 92px;
}

.auth-showcase-orbit::after {
    inset: 104px 130px 118px;
}

.auth-orbit-globe {
    position: absolute;
    top: 74px;
    right: 54px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(80, 245, 227, 0.16), rgba(80, 245, 227, 0.04) 46%, transparent 47%),
        repeating-radial-gradient(circle at center, rgba(80, 245, 227, 0.14) 0 2px, transparent 2px 16px),
        linear-gradient(180deg, rgba(69, 227, 211, 0.18), rgba(69, 227, 211, 0.04));
    box-shadow:
        inset 0 0 36px rgba(64, 235, 219, 0.24),
        0 0 48px rgba(64, 235, 219, 0.18);
}

.auth-orbit-globe::before,
.auth-orbit-globe::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(76, 242, 224, 0.2);
}

.auth-orbit-globe::before {
    transform: rotate(28deg);
}

.auth-orbit-globe::after {
    transform: rotate(-28deg);
}

.auth-orbit-card {
    position: absolute;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
}

.auth-orbit-card span {
    display: block;
    color: rgba(141, 242, 228, 0.82);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-orbit-card strong {
    display: block;
    margin-top: 8px;
    font-family: "Cormorant Garamond", Georgia, "Palatino Linotype", serif;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--white);
    max-width: 12ch;
}

.auth-orbit-card-top {
    top: 56px;
    left: 24px;
}

.auth-orbit-card-bottom {
    bottom: 28px;
    left: 54px;
}

.detail-heading-shell {
    margin-bottom: 22px;
    padding: 26px 28px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(49, 230, 219, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 251, 255, 0.72));
    border: 1px solid rgba(95, 219, 223, 0.08);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.body-dashboard .dashboard-hero-shell,
.body-detail .detail-panel {
    background:
        radial-gradient(circle at top right, rgba(41, 233, 213, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(249, 252, 255, 0.74));
}

.body-dashboard .summary-card,
.body-detail .kpi-card,
.body-detail .chart-card,
.body-detail .table-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 255, 0.78));
    border: 1px solid rgba(95, 219, 223, 0.08);
    box-shadow: var(--shadow-md);
}

.body-dashboard .section-heading h3,
.body-detail .section-heading h3,
.body-auth .auth-panel h2 {
    overflow-wrap: anywhere;
}

.body-dashboard .summary-card::before,
.body-detail .kpi-card::before {
    box-shadow: 0 0 0 1px rgba(87, 233, 225, 0.08);
}

@media (max-width: 1280px) {
    .auth-stage {
        grid-template-columns: 1fr;
    }

    .auth-panel,
    .auth-showcase {
        max-width: 920px;
    }
}

@media (max-width: 720px) {
    .auth-showcase {
        padding: 24px;
    }

    .auth-showcase-orbit {
        min-height: 320px;
    }

    .auth-orbit-globe {
        width: 180px;
        height: 180px;
        top: 84px;
        right: 24px;
    }

    .detail-heading-shell {
        padding: 22px;
    }
}

@media (max-width: 640px) {
    body.body-auth .auth-wrap {
        margin-top: 20px;
        width: calc(100% - 24px);
    }

    .auth-stage {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-showcase {
        display: none;
    }
}

/* ============================================================
   DESIGN ENHANCEMENTS — animations, depth, premium micro-polish
   ============================================================ */

/* ---- Entrance animations ---- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

.anim-fade-up  { animation: fadeSlideUp 0.65s cubic-bezier(.22,.68,0,1.18) both; }
.anim-fade-in  { animation: fadeIn      0.55s ease both; }
.anim-scale-in { animation: scaleIn     0.6s  cubic-bezier(.22,.68,0,1.18) both; }

.delay-1  { animation-delay: 0.07s; }
.delay-2  { animation-delay: 0.15s; }
.delay-3  { animation-delay: 0.23s; }
.delay-4  { animation-delay: 0.31s; }
.delay-5  { animation-delay: 0.39s; }
.delay-6  { animation-delay: 0.47s; }

/* ---- Gradient text utility ---- */
.gradient-text {
    background: linear-gradient(135deg, var(--ink-980) 10%, var(--mint-500) 58%, var(--sand-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---- Pulsing live indicator dot ---- */
@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(47, 143, 131, 0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(47, 143, 131, 0); }
}
.pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2f8f83;
    margin-right: 8px;
    vertical-align: middle;
    animation: pulse-ring 2s ease infinite;
}

/* ---- Shimmer for queued / running badges ---- */
@keyframes badgeShimmer {
    0%   { background-position: -300% center; }
    100% { background-position: 300% center; }
}
.status-queued,
.status-running {
    background: linear-gradient(
        90deg,
        rgba(190, 144, 72, 0.10) 25%,
        rgba(190, 144, 72, 0.28) 50%,
        rgba(190, 144, 72, 0.10) 75%
    );
    background-size: 300% auto;
    animation: badgeShimmer 2.2s linear infinite;
    color: #895d14;
}

/* ---- Card entrance stagger ---- */
.summary-card,
.kpi-card {
    animation: fadeSlideUp 0.55s cubic-bezier(.22,.68,0,1.18) both;
}
.summary-card:nth-child(1), .kpi-card:nth-child(1) { animation-delay: 0.04s; }
.summary-card:nth-child(2), .kpi-card:nth-child(2) { animation-delay: 0.11s; }
.summary-card:nth-child(3), .kpi-card:nth-child(3) { animation-delay: 0.18s; }
.summary-card:nth-child(4), .kpi-card:nth-child(4) { animation-delay: 0.25s; }
.summary-card:nth-child(5), .kpi-card:nth-child(5) { animation-delay: 0.32s; }

.report-card {
    animation: fadeSlideUp 0.5s cubic-bezier(.22,.68,0,1.18) both;
}
.report-card:nth-child(1)  { animation-delay: 0.04s; }
.report-card:nth-child(2)  { animation-delay: 0.10s; }
.report-card:nth-child(3)  { animation-delay: 0.16s; }
.report-card:nth-child(4)  { animation-delay: 0.22s; }
.report-card:nth-child(5)  { animation-delay: 0.28s; }
.report-card:nth-child(6)  { animation-delay: 0.34s; }

/* ---- Landing card hover glow ---- */
.landing-proof-card,
.landing-signal-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.landing-proof-card:hover,
.landing-signal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 64px rgba(14, 34, 56, 0.18), 0 0 0 1px rgba(47, 143, 131, 0.2);
    border-color: rgba(47, 143, 131, 0.18);
}
.landing-proof-card:hover .proof-icon,
.landing-signal-card:hover .signal-icon {
    transform: scale(1.1) rotate(-3deg);
    background: linear-gradient(135deg, rgba(47, 143, 131, 0.2), rgba(190, 144, 72, 0.16));
}

/* ---- Proof / signal card icons ---- */
.proof-icon,
.signal-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    transition: transform 0.22s ease, background 0.22s ease;
    flex-shrink: 0;
}
.proof-icon {
    background: linear-gradient(135deg, rgba(47, 143, 131, 0.13), rgba(190, 144, 72, 0.1));
    border: 1px solid rgba(47, 143, 131, 0.16);
    color: #2f8f83;
}
.signal-icon {
    background: linear-gradient(135deg, rgba(20, 49, 78, 0.1), rgba(47, 143, 131, 0.08));
    border: 1px solid rgba(20, 49, 78, 0.1);
    color: var(--ink-700);
}

/* ---- Stats strip (landing) ---- */
.landing-stats-strip {
    display: flex;
    align-items: center;
    margin-top: 32px;
    padding: 20px 26px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.78));
    border: 1px solid rgba(20, 49, 78, 0.08);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    gap: 0;
    position: relative;
    overflow: hidden;
}

.landing-stats-strip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(190, 144, 72, 0.08), transparent 24%, transparent 76%, rgba(47, 143, 131, 0.08));
    pointer-events: none;
}
.landing-stat {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 4px 0;
}
.landing-stat + .landing-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(20, 49, 78, 0.1);
}
.landing-stat-num {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    font-family: "Cormorant Garamond", Georgia, serif;
    color: var(--ink-980);
    line-height: 1;
    letter-spacing: -0.03em;
}
.landing-stat-label {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-700);
}

/* ---- How it works / Process section ---- */
.landing-process-section {
    margin-top: 72px;
}
.landing-process-heading {
    text-align: center;
    margin-bottom: 42px;
}
.landing-process-heading h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    color: #ffffff;
}
.landing-process-heading p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    max-width: 56ch;
    margin: 0 auto;
    line-height: 1.78;
}
.landing-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    position: relative;
}
.landing-process-grid::before {
    content: "";
    position: absolute;
    top: 38px;
    left: 13%;
    right: 13%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(47, 143, 131, 0.3) 20%,
        rgba(47, 143, 131, 0.3) 80%,
        transparent);
    pointer-events: none;
    z-index: 0;
}
.landing-process-card {
    padding: 28px 22px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.88));
    backdrop-filter: blur(16px);
    text-align: center;
    position: relative;
    z-index: 1;
    border-radius: 22px;
    border: 1px solid rgba(20, 49, 78, 0.08);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.landing-process-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(191, 208, 225, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.landing-process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}
.process-step-num {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    font-size: 1.35rem;
    font-weight: 800;
    font-family: "Cormorant Garamond", Georgia, serif;
    background: linear-gradient(135deg, var(--ink-900), var(--mint-500));
    color: #fff;
    box-shadow: 0 8px 24px rgba(20, 49, 78, 0.24);
    position: relative;
    z-index: 1;
}
.landing-process-card h4 {
    font-size: 1.06rem;
    margin: 0 0 10px;
    color: var(--ink-980);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.18rem;
}
.landing-process-card p {
    font-size: 0.92rem;
    color: var(--ink-700);
    line-height: 1.72;
    margin: 0;
}

/* ---- CTA band — full dark cinematic version ---- */
.landing-cta-band {
    margin-top: 64px;
    padding: 64px 56px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 6% 50%, rgba(190, 144, 72, 0.22), transparent 24%),
        radial-gradient(circle at 90% 28%, rgba(82, 167, 230, 0.18), transparent 26%),
        linear-gradient(145deg, #0d2242 0%, #14325a 40%, #11293e 70%, #0a1c2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 44px 110px rgba(9, 24, 42, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
}
.landing-cta-band::before {
    content: "";
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: -50px;
    height: 180px;
    background: radial-gradient(ellipse at center, rgba(190, 144, 72, 0.14), transparent 55%);
    pointer-events: none;
}
.landing-cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 88px 88px;
    opacity: 0.16;
    pointer-events: none;
}
.landing-cta-band > div {
    position: relative;
    z-index: 1;
}
.landing-cta-band .section-kicker {
    background: linear-gradient(135deg, rgba(190, 144, 72, 0.22), rgba(47, 143, 131, 0.14));
    color: rgba(242, 214, 168, 0.9);
    border-color: rgba(190, 144, 72, 0.28);
}
.landing-cta-band h3 {
    font-size: clamp(1.85rem, 3.5vw, 3rem);
    line-height: 1.05;
    color: rgba(255, 255, 255, 0.97);
    margin: 12px 0 0;
    max-width: 20ch;
}
.landing-cta-band .landing-actions {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.landing-cta-band .button-primary {
    background: linear-gradient(135deg, #f8eccf, var(--sand-500));
    color: var(--ink-980);
    box-shadow: 0 8px 26px rgba(190, 144, 72, 0.3);
}
.landing-cta-band .button-ghost {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.88);
}

/* ---- Report history dark section ---- */
.report-history-section {
    margin-top: 52px;
    padding: 44px 44px 52px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 8% 30%, rgba(47, 143, 131, 0.12), transparent 22%),
        radial-gradient(circle at 92% 70%, rgba(190, 144, 72, 0.1), transparent 20%),
        linear-gradient(180deg, #0e2238, #0b1c2e);
    box-shadow: 0 36px 90px rgba(9, 24, 42, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}
.report-history-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.2;
    pointer-events: none;
}
.report-history-section > * {
    position: relative;
    z-index: 1;
}

/* ---- Dashboard hero gradient heading ---- */
.dashboard-hero-heading h3 {
    background: linear-gradient(135deg, var(--ink-980) 10%, #1a6e66 60%, var(--sand-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---- Signal strip icons + glow ---- */
.landing-signal-strip {
    margin-top: 52px;
}

/* ---- Landing section smooth scroll ---- */
html { scroll-behavior: smooth; }

/* ---- Noise grain overlay for premium depth ---- */
.landing-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.28;
    mix-blend-mode: overlay;
    pointer-events: none;
    border-radius: inherit;
}

/* ---- Responsive: process grid ---- */
@media (max-width: 900px) {
    .landing-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .landing-process-grid::before { display: none; }
    .landing-cta-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 44px 32px;
    }
    .landing-stats-strip {
        flex-wrap: wrap;
        gap: 16px;
    }
    .landing-stat + .landing-stat::before { display: none; }
}
@media (max-width: 600px) {
    .landing-process-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   VISUAL ENHANCEMENT PASS 2 — premium micro-polish & animations
   ============================================================ */

/* --- Landing floating cards bobbing --- */
@keyframes floatY {
    0%, 100% { transform: translateY(0px);   }
    50%       { transform: translateY(-10px); }
}
.floating-card-top    { animation: floatY 4.4s ease-in-out infinite; }
.floating-card-right  { animation: floatY 5.3s ease-in-out infinite 1.1s; }
.floating-card-bottom { animation: floatY 3.9s ease-in-out infinite 0.55s; }

/* --- Landing hero scene glow pulse --- */
@keyframes sceneGlowPulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 0.95; }
}
.scene-glow { animation: sceneGlowPulse 5.5s ease-in-out infinite; }

/* --- Auth orbit card float + globe glow pulse --- */
@keyframes orbitFloat {
    0%, 100% { transform: translateY(0px);   }
    50%       { transform: translateY(-10px); }
}
@keyframes globePulse {
    0%, 100% { box-shadow: inset 0 0 36px rgba(64,235,219,.24), 0 0 48px rgba(64,235,219,.18); }
    50%       { box-shadow: inset 0 0 56px rgba(64,235,219,.40), 0 0 80px rgba(64,235,219,.32); }
}
.auth-orbit-card-top    { animation: orbitFloat 4.8s ease-in-out infinite; }
.auth-orbit-card-bottom { animation: orbitFloat 5.6s ease-in-out infinite 1.2s; }
.auth-orbit-globe       { animation: globePulse 4s ease-in-out infinite; }

/* --- Button active press micro-interaction --- */
.button:active,
button.button:active {
    transform: translateY(0) scale(0.97) !important;
    filter: saturate(0.88) !important;
}

/* --- Custom slim scrollbar --- */
::-webkit-scrollbar            { width: 5px; height: 5px; }
::-webkit-scrollbar-track      { background: transparent; }
::-webkit-scrollbar-thumb      { background: rgba(14,34,56,.2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover{ background: rgba(14,34,56,.36); }

/* --- KPI card top accent bar + gradient metric value --- */
.kpi-card { overflow: hidden; position: relative; }
.kpi-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mint-500), var(--sand-400));
    border-radius: 4px 4px 0 0;
}
.kpi-card .metric-value {
    background: linear-gradient(135deg, var(--ink-980) 10%, #1a6e66 65%, var(--sand-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Summary card value gradient --- */
.summary-card .summary-value {
    background: linear-gradient(135deg, var(--ink-980) 20%, #1a6e66 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Landing stats strip number gradient --- */
.landing-stat-num {
    background: linear-gradient(135deg, var(--ink-980) 10%, #1a6e66 55%, var(--sand-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Hero meta pills hover lift --- */
.hero-meta-pill {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: default;
}
.hero-meta-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(47,143,131,.16);
    border-color: rgba(47,143,131,.24);
}

/* --- Coverage bar entrance animation --- */
@keyframes coverageFill {
    from { width: 0; }
}
.coverage-fill { animation: coverageFill 1.1s cubic-bezier(.34,1.56,.64,1) .5s both; }

/* --- Empty state polish --- */
.empty-visual { text-align: center; padding: 56px 32px 48px; }
.empty-visual h4 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.55rem;
    color: var(--ink-900);
    margin-bottom: 12px;
}
.empty-visual p {
    color: var(--ink-700);
    font-size: .97rem;
    max-width: 42ch;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- Report history dark section: card text visibility --- */
.report-history-section .report-card {
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.055));
    border-color: rgba(255,255,255,.10);
}
.report-history-section .report-card h3 { color: rgba(255,255,255,.96); }
.report-history-section .report-card .table-subtext,
.report-history-section .report-meta   { color: rgba(215,232,248,.72); }
.report-history-section .button-ghost  {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.16);
    color: rgba(255,255,255,.88);
}
.report-history-section .pagination-shell { color: rgba(215,232,248,.72); }
.report-history-section .panel {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.08);
    color: rgba(215,232,248,.72);
}
.report-history-section .panel h3 { color: rgba(255,255,255,.9); }

/* --- Section kicker on dark backgrounds --- */
.report-history-section .section-kicker {
    background: linear-gradient(135deg, rgba(190,144,72,.22), rgba(47,143,131,.14));
    color: rgba(242,214,168,.9);
    border-color: rgba(190,144,72,.28);
}

/* --- Footer redesign --- */
.footer {
    padding: 60px 0 32px;
    background: #f4f8fc !important;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 52px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(20,49,78,.08);
}
.footer-brand-mark {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #173a58, #0e2541 58%, #071729);
    box-shadow: 0 8px 22px rgba(9,24,42,.22);
    border: 1px solid rgba(255,255,255,.08);
    margin-bottom: 16px;
}
.footer-brand-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.72rem;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--ink-980);
    margin: 0 0 12px;
}
.footer-brand-col p {
    color: var(--ink-700);
    font-size: .93rem;
    line-height: 1.82;
    max-width: 36ch;
    margin: 0;
}
.footer-col-heading {
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-700);
    margin-bottom: 20px;
}
.footer-links-col { display: flex; flex-direction: column; gap: 4px; }
.footer-links-col a {
    display: inline-block;
    padding: 7px 0;
    color: var(--ink-900);
    font-weight: 600;
    font-size: .95rem;
    transition: color .16s ease, transform .16s ease;
}
.footer-links-col a:hover { color: var(--mint-500); transform: translateX(4px); }
.footer-tech-col { display: flex; flex-direction: column; }
.footer-tech-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tech-pill {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    background: linear-gradient(135deg, rgba(20,49,78,.07), rgba(47,143,131,.08));
    border: 1px solid rgba(20,49,78,.1);
    color: var(--ink-700);
    transition: background .16s, border-color .16s, color .16s;
}
.footer-tech-pill:hover {
    background: linear-gradient(135deg, rgba(47,143,131,.14), rgba(190,144,72,.10));
    border-color: rgba(47,143,131,.22);
    color: #1a6e66;
}
.footer-base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 26px;
    font-size: .88rem;
    color: var(--ink-700);
}
.footer-base-right { font-style: italic; opacity: .64; }

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-base { flex-direction: column; align-items: flex-start; gap: 6px; }
}

.billing-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    margin-top: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(10,32,56,.92), rgba(18,73,92,.82));
    border: 1px solid rgba(108,230,216,.16);
    box-shadow: 0 22px 52px rgba(8,23,38,.18);
}
.billing-banner strong,
.billing-banner p,
.billing-banner span { color: #f5fbff; }
.billing-banner p { margin: 6px 0 0; color: rgba(245,251,255,.8); max-width: 46ch; }
.billing-banner-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #f0c680;
}
.billing-banner-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: .9rem;
    color: rgba(245,251,255,.8);
}
.billing-portal-button {
    margin-top: 4px;
    background: rgba(255,255,255,.16);
    color: #f5fbff;
    border-color: rgba(255,255,255,.14);
}
.billing-readiness-panel {
    margin-top: 22px;
    padding: 22px 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(244,248,253,.88));
    border: 1px solid rgba(20,49,78,.08);
    box-shadow: 0 18px 42px rgba(12,31,51,.08);
}
.billing-readiness-panel h4 {
    margin: 10px 0 8px;
    font-size: 1.3rem;
    color: var(--ink-980);
}
.billing-readiness-panel p {
    margin: 0;
    max-width: 62ch;
    line-height: 1.7;
}
.billing-mini-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}
.billing-mini-card strong { display: block; font-size: 1.15rem; color: #fff; }
.mini-label {
    display: block;
    margin-bottom: 6px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.58);
}
.billing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 6px 0 42px;
}
.billing-plan-card {
    position: relative;
    padding: 28px 26px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,246,252,.93));
    border: 1px solid rgba(20,49,78,.08);
    box-shadow: 0 24px 55px rgba(12,31,51,.12);
    overflow: hidden;
}

.billing-plan-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(246, 215, 167, 0.2), transparent 26%),
        radial-gradient(circle at bottom left, rgba(108, 230, 216, 0.12), transparent 24%);
    pointer-events: none;
}

.billing-plan-card::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #1a6e66, #8fc4ef, #f0c680);
    opacity: 0.95;
}

.billing-plan-card > * {
    position: relative;
    z-index: 1;
}
.billing-plan-card.is-active {
    border-color: rgba(47,143,131,.3);
    box-shadow: 0 26px 65px rgba(18,74,92,.18);
}
.billing-plan-kicker {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9c6a20;
    background: rgba(240,198,128,.18);
}

.billing-plan-audience {
    display: block;
    margin-top: 14px;
    color: var(--ink-700);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.billing-plan-card h4 {
    margin: 18px 0 2px;
    font-size: 2.7rem;
    line-height: .95;
    color: var(--ink-980);
}
.billing-plan-subtitle {
    margin: 0 0 22px;
    color: var(--ink-700);
}
.billing-plan-figure {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
}
.billing-plan-figure strong {
    font-size: 2.1rem;
    color: #165d69;
}
.billing-plan-figure span {
    font-size: .95rem;
    color: var(--ink-700);
}
.billing-plan-copy {
    min-height: 48px;
    color: var(--ink-760);
    line-height: 1.75;
}
.billing-plan-points {
    list-style: none;
    margin: 16px 0 24px;
    padding: 0;
    display: grid;
    gap: 10px;
}
.billing-plan-points li {
    position: relative;
    padding-left: 18px;
    color: var(--ink-820);
}
.billing-plan-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .6em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f8f83, #be9048);
}
.billing-plan-badge {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #165d69;
    background: rgba(47,143,131,.12);
}

.billing-plan-card form {
    margin-top: 6px;
}

.billing-plan-card .button-primary {
    width: 100%;
    min-height: 48px;
    box-shadow: 0 18px 34px rgba(13, 34, 66, 0.14);
}

@media (max-width: 1100px) {
    .billing-grid { grid-template-columns: 1fr; }
    .billing-banner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   COVERAGE PAGE
   ============================================================ */

.coverage-state-section {
    margin-bottom: 52px;
}

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

.coverage-card {
    padding: 24px 22px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,246,252,.9));
    border: 1px solid rgba(20,49,78,.08);
    box-shadow: 0 8px 28px rgba(12,31,51,.07);
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
}

.coverage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(12,31,51,.12);
}

.coverage-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(190, 144, 72, 0.16), transparent 70%);
    pointer-events: none;
}

.coverage-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.coverage-card-head h4 {
    margin: 6px 0 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.28rem;
    color: var(--ink-980);
    line-height: 1.2;
}

.coverage-state-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(47,143,131,.14), rgba(20,49,78,.08));
    color: #1a6e66;
    border: 1px solid rgba(47,143,131,.2);
}

.coverage-note {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .82rem;
    color: var(--ink-700);
    line-height: 1.7;
    background: rgba(20,49,78,.04);
    border-left: 3px solid rgba(47,143,131,.3);
}

/* How-it-works strip on coverage page */
.coverage-how-strip {
    margin: 56px 0 0;
    padding: 52px 44px 56px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 80% 20%, rgba(47,143,131,.1), transparent 32%),
        linear-gradient(135deg, var(--navy-950), #0d2238);
}

.coverage-how-strip .section-kicker {
    color: rgba(246,215,167,.88);
    background: linear-gradient(135deg, rgba(255,213,152,.18), rgba(141,208,200,.12));
    border-color: rgba(246,215,167,.22);
}

.coverage-how-strip h3 {
    color: #fff;
}

.coverage-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.coverage-step {
    padding: 22px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
}

.coverage-step-num {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(190,144,72,.3), rgba(47,143,131,.25));
    color: rgba(246,215,167,.95);
    margin-bottom: 14px;
}

.coverage-step strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.coverage-step p {
    font-size: .88rem;
    color: rgba(215,232,248,.72);
    line-height: 1.72;
    margin: 0;
}

@media (max-width: 1100px) {
    .coverage-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coverage-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .coverage-card-grid { grid-template-columns: 1fr; }
    .coverage-steps { grid-template-columns: 1fr; }
    .coverage-how-strip { padding: 36px 22px 40px; }
}
