:root {
    --ink: #132126;
    --ink-2: #27444b;
    --muted: #687b82;
    --line: #d8e3e6;
    --line-strong: #b8c9ce;
    --surface: #ffffff;
    --surface-soft: #f7faf9;
    --surface-tint: #eef6f4;
    --nav: #101f24;
    --nav-2: #18333a;
    --accent: #d9f75f;
    --accent-2: #47c6a5;
    --sky: #3f7df6;
    --coral: #e46f56;
    --gold: #b98413;
    --green: #158765;
    --red: #b42318;
    --shadow-sm: 0 8px 24px rgba(19, 33, 38, 0.07);
    --shadow-md: 0 18px 50px rgba(19, 33, 38, 0.11);
    --shadow-lg: 0 32px 90px rgba(19, 33, 38, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background:
        linear-gradient(135deg, rgba(217, 247, 95, 0.11), transparent 28rem),
        linear-gradient(315deg, rgba(63, 125, 246, 0.08), transparent 24rem),
        #f3f7f6;
    margin: 0;
}

#blazor-error-ui {
    display: none;
}

::selection {
    background: rgba(217, 247, 95, 0.72);
    color: var(--ink);
}

a {
    color: var(--sky);
}

h1,
h2,
h3 {
    color: var(--ink);
    letter-spacing: 0;
}

h2 {
    font-size: 1.05rem;
    font-weight: 820;
    margin: 0 0 10px;
}

p,
li {
    line-height: 1.62;
}

.hero {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
    min-height: calc(100vh - 132px);
    padding: 22px 0 38px;
}

.hero > div:first-child {
    align-self: center;
}

.hero h1 {
    color: #101f24;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    font-weight: 880;
    letter-spacing: 0;
    line-height: 0.94;
    margin: 16px 0 24px;
    max-width: 920px;
}

.hero p {
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.75;
    max-width: 700px;
}

.hero-actions,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.stat-strip {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
    max-width: 720px;
}

.stat-strip div {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(184, 201, 206, 0.78);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 13px 14px;
}

.stat-strip strong {
    color: #102329;
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
}

.stat-strip span {
    color: var(--muted);
    display: block;
    font-size: 0.8rem;
    margin-top: 3px;
}

.button,
button.button {
    align-items: center;
    background: #14282e;
    border: 1px solid #14282e;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(20, 40, 46, 0.16);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 780;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
button.button:hover {
    background: #1b3941;
    border-color: #1b3941;
    box-shadow: 0 18px 36px rgba(20, 40, 46, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.88);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
}

.button.secondary:hover {
    background: #ffffff;
    border-color: var(--line-strong);
    color: var(--ink);
}

.button.ghost {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--ink);
}

.button.ghost:hover {
    background: rgba(255, 255, 255, 0.65);
    color: var(--ink);
}

.section-title {
    align-items: end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 0 20px;
}

.section-title h1,
.section-title h2 {
    color: #101f24;
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    font-weight: 860;
    line-height: 1.08;
    margin: 0;
}

.section-title p {
    color: var(--muted);
    margin: 7px 0 0;
    max-width: 760px;
}

.panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.93));
    border: 1px solid rgba(184, 201, 206, 0.82);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    position: relative;
}

.feature-grid .panel {
    min-height: 170px;
}

.feature-grid .panel h2 {
    font-size: 1.14rem;
}

.panel::before,
.metric::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--sky));
    border-radius: 8px 8px 0 0;
    content: "";
    height: 3px;
    left: -1px;
    opacity: 0.78;
    position: absolute;
    right: -1px;
    top: -1px;
}

.grid {
    display: grid;
    gap: 16px;
}

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

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

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

.metric {
    background:
        linear-gradient(180deg, #ffffff, #f8fbfb);
    border: 1px solid rgba(184, 201, 206, 0.8);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    min-height: 118px;
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.metric strong {
    color: #102329;
    display: block;
    font-size: 2rem;
    font-weight: 860;
    line-height: 1.05;
}

.metric span {
    color: var(--muted);
    display: block;
    font-size: 0.86rem;
    font-weight: 680;
    margin-top: 7px;
}

.metric-link {
    color: inherit;
    display: block;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.metric-link:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
    color: inherit;
    transform: translateY(-2px);
}

.command-center {
    align-items: center;
    background:
        linear-gradient(135deg, #102329, #173f43 58%, #20515c);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 16px;
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.command-center::after {
    background: linear-gradient(90deg, rgba(217, 247, 95, 0.2), rgba(71, 198, 165, 0.16), rgba(63, 125, 246, 0.16));
    bottom: 0;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
}

.command-center h2 {
    color: #ffffff;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    margin: 12px 0 6px;
}

.command-center p {
    color: #c6d8dc;
    margin: 0;
    max-width: 760px;
}

.command-score {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    min-width: 138px;
    padding: 16px;
    text-align: center;
}

.command-score strong {
    color: var(--accent);
    display: block;
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1;
}

.command-score span {
    color: #d8e5e8;
    display: block;
    font-size: 0.82rem;
    font-weight: 760;
    margin-top: 7px;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table th,
.table td {
    border-bottom: 1px solid var(--line);
    padding: 13px 11px;
    text-align: left;
    vertical-align: top;
}

.table th {
    background: #f6faf9;
    color: #61777e;
    font-size: 0.76rem;
    font-weight: 820;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table tbody tr {
    transition: background 160ms ease;
}

.table tbody tr:hover {
    background: #f8fbfb;
}

.pill {
    align-items: center;
    background: #eaf2f2;
    border: 1px solid rgba(184, 201, 206, 0.72);
    border-radius: 999px;
    color: var(--ink-2);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 820;
    min-height: 28px;
    padding: 5px 10px;
}

.pill.hot {
    background: #fff0ed;
    border-color: #ffd0c7;
    color: var(--red);
}

.pill.warm {
    background: #fff7df;
    border-color: #f2d58c;
    color: #7a5300;
}

.pill.good {
    background: #e6fbf1;
    border-color: #a6e5cc;
    color: var(--green);
}

.pill.warn {
    background: #fff7df;
    border-color: #f2d58c;
    color: #7a5300;
}

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

.field {
    display: grid;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    color: var(--ink-2);
    font-size: 0.81rem;
    font-weight: 780;
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #c8d8dd;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: var(--ink);
    font: inherit;
    min-height: 44px;
    outline: none;
    padding: 10px 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    background: #ffffff;
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(63, 125, 246, 0.11);
}

textarea {
    min-height: 118px;
    resize: vertical;
}

pre.output {
    background:
        linear-gradient(180deg, #10242a, #0b1a1f);
    border: 1px solid #24454d;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #e8f6f8;
    font-size: 0.84rem;
    line-height: 1.58;
    max-height: 460px;
    overflow: auto;
    padding: 16px;
    white-space: pre-wrap;
}

.chat-shell {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.chat-log {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 250, 0.97));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 540px;
    overflow: auto;
    padding: 18px;
}

.message {
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 5px 14px rgba(19, 33, 38, 0.07);
    max-width: min(80%, 720px);
    padding: 12px 14px;
}

.message.user {
    align-self: flex-end;
    background: #eaf1ff;
    border-color: #ceddff;
}

.message.agent {
    align-self: flex-start;
    background: #ffffff;
    border-color: var(--line);
}

.signal-map {
    align-self: stretch;
    background:
        linear-gradient(90deg, rgba(19, 33, 38, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(19, 33, 38, 0.06) 1px, transparent 1px),
        linear-gradient(145deg, #ffffff, #f1f8f5);
    background-size: 34px 34px, 34px 34px, auto;
    border: 1px solid rgba(184, 201, 206, 0.9);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-height: 540px;
    overflow: hidden;
    position: relative;
}

.auth-shell {
    align-items: start;
    margin: 18px auto 0;
    max-width: 1120px;
}

.auth-shell h1 {
    color: #101f24;
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 880;
    line-height: 0.98;
    margin: 16px 0;
    max-width: 620px;
}

.auth-shell > div:first-child {
    padding: 18px 0;
}

.signal-map::before {
    background: linear-gradient(90deg, rgba(217, 247, 95, 0.24), rgba(71, 198, 165, 0.18), rgba(63, 125, 246, 0.15));
    content: "";
    height: 88px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.signal-card {
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(184, 201, 206, 0.86);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    left: 38px;
    padding: 20px;
    position: absolute;
    top: 42px;
    width: calc(100% - 76px);
}

.signal-card h2 {
    color: #102329;
    font-size: 1.18rem;
    font-weight: 850;
    margin: 0 0 12px;
}

.signal-row {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 13px;
    padding: 14px 0;
}

.signal-row:first-of-type {
    border-top: 0;
}

.dot {
    background: var(--accent);
    border: 4px solid #eef8c5;
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(217, 247, 95, 0.2);
    flex: 0 0 auto;
    height: 18px;
    width: 18px;
}

.muted {
    color: var(--muted);
}

.notice-panel {
    margin-bottom: 16px;
}

.notice-panel p {
    margin: 12px 0 0;
}

.billing-hero {
    align-items: center;
    background: linear-gradient(135deg, #102329, #173f43 58%, #20515c);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 16px;
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.billing-hero h2 {
    color: #ffffff;
    font-size: clamp(1.45rem, 2.6vw, 2.35rem);
    margin: 12px 0 8px;
}

.billing-hero p {
    color: #c6d8dc;
    margin: 0;
}

.billing-total {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    min-width: 170px;
    padding: 16px;
    text-align: center;
}

.billing-total strong {
    color: var(--accent);
    display: block;
    font-size: 2.25rem;
    font-weight: 900;
}

.billing-total span {
    color: #d8e5e8;
    font-size: 0.84rem;
    font-weight: 760;
}

.usage-metric small {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    margin-top: 8px;
}

.usage-track {
    background: #e8f0f1;
    border-radius: 999px;
    height: 8px;
    margin-top: 15px;
    overflow: hidden;
}

.usage-track span {
    background: linear-gradient(90deg, var(--accent-2), var(--sky));
    display: block;
    height: 100%;
    margin: 0;
}

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

.plan-card {
    background: linear-gradient(180deg, #ffffff, #f8fbfb);
    border: 1px solid rgba(184, 201, 206, 0.82);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
    padding: 18px;
    position: relative;
}

.plan-card.current {
    border-color: rgba(71, 198, 165, 0.86);
    box-shadow: var(--shadow-md);
}

.plan-heading {
    align-items: start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.plan-heading h2 {
    margin: 0 0 4px;
}

.plan-heading p,
.plan-price span {
    color: var(--muted);
    margin: 0;
}

.plan-price strong {
    color: #102329;
    font-size: 2rem;
    font-weight: 900;
}

.plan-limits {
    display: grid;
    gap: 7px;
}

.plan-limits span {
    background: #f0f6f6;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 0.78rem;
    font-weight: 760;
    padding: 7px 9px;
}

.plan-card ul {
    color: var(--muted);
    margin: 0;
    padding-left: 18px;
}

.plan-card form {
    margin-top: auto;
}

.plan-card button {
    width: 100%;
}

.plan-card button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.active-addons-panel {
    margin-top: 16px;
}

.addon-stack {
    display: grid;
    gap: 10px;
}

.addon-row {
    align-items: center;
    background: #f7fbfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 14px;
}

.addon-row strong,
.addon-row span {
    display: block;
}

.addon-row span:not(.pill) {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 3px;
}

.addon-plans {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.addon-card.locked {
    background: #fbfbfa;
}

.addon-card .plan-price strong {
    font-size: 1.35rem;
}

.addon-payment-note {
    background: #f3f8f8;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0 0 4px;
    padding: 10px 12px;
}

.addon-checkout-form {
    display: grid;
    gap: 10px;
}

.addon-checkout-form label {
    color: var(--ink-2);
    display: grid;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 6px;
}

.addon-checkout-form input {
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    padding: 9px 10px;
    width: 100%;
}

@media (max-width: 1100px) {
    .hero,
    .chat-shell,
    .grid.two,
    .grid.three,
    .grid.four,
    .billing-plans {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .command-center {
        grid-template-columns: 1fr;
    }

    .billing-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        align-items: start;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.55rem;
    }

    .message {
        max-width: 94%;
    }

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

/* ============================================================================
   v2 production-hardening additions
   - Notification bell, notification list
   - Severity pills (info / success / warning / critical)
   - Plan & status pills, super-admin metrics, danger button, cancel panel
   ============================================================================ */

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #f4f7f8;
    color: #12343b;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.15s ease;
}

.notification-bell:hover {
    background: #e2ecf0;
}

.notification-bell.has-unread {
    background: #fff3e0;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #d24d3e;
    color: white;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

.nav-section {
    margin: 16px 14px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
}

/* Notification list */
.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    border: 1px solid #e3eaec;
    border-radius: 10px;
    padding: 14px 16px;
    background: white;
    transition: border-color 0.15s ease;
}

.notification.unread {
    border-left: 4px solid #12343b;
    background: #f8fbfc;
}

.notification.read {
    opacity: 0.85;
}

.notification.severity-warning {
    border-left-color: #c97a18;
}

.notification.severity-critical {
    border-left-color: #d24d3e;
}

.notification.severity-success {
    border-left-color: #2f8a3d;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 6px;
}

.notification h3 {
    margin: 4px 0 6px;
    font-size: 16px;
}

.notification p {
    margin: 0;
    color: #2c4046;
}

.link-button {
    border: 0;
    background: none;
    color: #12343b;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

/* Severity pills */
.pill.severity-info,
.severity-info {
    background: #e0ecf2;
    color: #12343b;
}

.pill.severity-success,
.severity-success {
    background: #dcefdf;
    color: #1f5b29;
}

.pill.severity-warning,
.severity-warning {
    background: #fce6c9;
    color: #8a4f0e;
}

.pill.severity-critical,
.severity-critical {
    background: #fadcd8;
    color: #8a2818;
}

/* Plan pills */
.pill.plan-free       { background: #e3eaec; color: #4a5b60; }
.pill.plan-starter    { background: #d2e6ea; color: #12343b; }
.pill.plan-professional { background: #c2e0c9; color: #1c5c2a; }
.pill.plan-agency     { background: #d6cef0; color: #3a2674; }
.pill.plan-enterprise { background: #f3d18a; color: #6a440b; }

/* Status pills */
.pill.status-active    { background: #dcefdf; color: #1f5b29; }
.pill.status-trial     { background: #e0ecf2; color: #12343b; }
.pill.status-pastdue   { background: #fce6c9; color: #8a4f0e; }
.pill.status-cancelled { background: #fadcd8; color: #8a2818; }
.pill.status-suspended { background: #f0d8d4; color: #6a2114; }

/* Super-admin metrics */
.metrics-grid .metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6a7d83;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #12343b;
}

/* Danger button */
.button.danger {
    background: #c2412e;
    color: white;
    border: 0;
}

.button.danger:hover {
    background: #a33523;
}

.button.danger:disabled {
    background: #d9a8a0;
    color: white;
    cursor: not-allowed;
}

/* Inline form spacing for super-admin compose forms */
.panel label {
    display: block;
    margin: 12px 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #2c4046;
}

.panel label input[type="text"],
.panel label input[type="datetime-local"],
.panel label input:not([type]),
.panel label select,
.panel label textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cbd8dc;
    border-radius: 8px;
    font: inherit;
    background: white;
    color: #1a2e34;
}

.panel label textarea {
    resize: vertical;
    min-height: 90px;
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 500 !important;
}

.checkbox-row input {
    width: auto !important;
    margin: 0 !important;
}

/* Cancel-subscription panel */
.cancel-panel {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    border-left: 4px solid #c97a18;
}

.cancel-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px) {
    .cancel-panel {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================================
   v3 — Modern admin UI: hero banners, stat cards, user grid, tab nav, auth
   ============================================================================ */

/* Empty layout (auth pages) */
.empty-layout {
    min-height: 100vh;
    background: linear-gradient(135deg, #f6f5ff 0%, #eef4ff 50%, #e9f8f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-page {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px 36px 28px;
    box-shadow: 0 20px 50px -12px rgba(20, 30, 60, 0.18), 0 0 0 1px rgba(20, 30, 60, 0.04);
}

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-mark-large {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #5b4fd9 0%, #7e6fee 100%);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 18px -8px rgba(91, 79, 217, 0.6);
}

.auth-brand h1 { margin: 0 0 6px; font-size: 24px; }
.auth-brand p { margin: 0; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .field { display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-size: 13px; font-weight: 600; color: #2c4046; display: flex; flex-direction: column; gap: 2px; }
.auth-form input {
    padding: 11px 13px;
    border: 1px solid #d2dadd;
    border-radius: 10px;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-form input:focus {
    outline: none;
    border-color: #5b4fd9;
    box-shadow: 0 0 0 3px rgba(91, 79, 217, 0.15);
}

.field-mfa input { letter-spacing: 0.4em; font-size: 18px; text-align: center; font-family: ui-monospace, "SF Mono", monospace; }

.muted-small {
    font-size: 11px;
    color: #6a7d83;
    font-weight: 400;
    text-transform: none;
}

.button-block { width: 100%; padding: 12px 20px; font-weight: 600; font-size: 15px; }

.button-primary {
    background: linear-gradient(135deg, #5b4fd9 0%, #7e6fee 100%);
    color: white;
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.05s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px -4px rgba(91, 79, 217, 0.5);
}
.button-primary:hover {
    box-shadow: 0 8px 20px -6px rgba(91, 79, 217, 0.6);
    transform: translateY(-1px);
}
.button-primary:active { transform: translateY(0); }

.auth-footer { margin-top: 20px; text-align: center; font-size: 14px; }
.auth-footer a { color: #5b4fd9; font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-footer-separator { color: #9aa8ad; margin: 0 8px; }

.auth-help { margin-top: 22px; padding-top: 18px; border-top: 1px solid #ecf0f2; }
.auth-help summary { cursor: pointer; color: #6a7d83; font-size: 13px; }
.demo-accounts { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #2c4046; }
.demo-accounts strong { display: inline-block; min-width: 100px; color: #5b4fd9; }

.auth-alert {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}
.auth-alert span { font-size: 18px; line-height: 1; }
.auth-alert-error { background: #fdecea; color: #8a2818; border: 1px solid #f5c6c0; }
.auth-alert-warning { background: #fff3e0; color: #8a4f0e; border: 1px solid #f5d6a0; }
.auth-alert-success { background: #e6f4ea; color: #1f5b29; border: 1px solid #b9dec1; }

/* ====== Admin hero (Practice Admin style) ====== */
.admin-hero {
    background: linear-gradient(135deg, #5b4fd9 0%, #7e6fee 100%);
    color: white;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 18px;
    box-shadow: 0 12px 28px -10px rgba(91, 79, 217, 0.45);
}
.admin-hero h1 { margin: 0 0 6px; color: white; font-size: 22px; }
.admin-hero p { margin: 0; color: rgba(255, 255, 255, 0.88); }
.admin-hero-body { display: flex; align-items: center; gap: 20px; }
.admin-hero-icon { font-size: 30px; }

/* ====== Stat cards ====== */
.stat-strip { gap: 14px; }
.stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-radius: 14px;
    border: 1px solid #ecf0f2;
    background: white;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(20, 30, 60, 0.15);
}
.stat-text { display: flex; flex-direction: column; gap: 4px; }
.stat-card .metric-label { font-size: 11px; }
.stat-card .metric-value { font-size: 28px; }

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.stat-icon-purple { background: #ede9ff; color: #5b4fd9; }
.stat-icon-orange { background: #fff1d8; color: #c97a18; }
.stat-icon-teal { background: #d4f3eb; color: #0d8b73; }
.stat-icon-green { background: #d6f0d3; color: #2f8a3d; }
.stat-icon-blue { background: #d8e9fb; color: #2168cf; }
.stat-icon-red { background: #fadcd8; color: #c2412e; }

/* ====== Invite panel ====== */
.invite-panel header { margin-bottom: 16px; }
.invite-panel h2 { margin: 0 0 4px; }

.invite-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.invite-field { display: flex; flex-direction: column; gap: 6px; }
.invite-field label { font-size: 11px; font-weight: 700; color: #6a7d83; text-transform: uppercase; letter-spacing: 0.06em; }

.invite-input {
    display: flex;
    border: 1px solid #d2dadd;
    border-radius: 10px;
    overflow: hidden;
}
.invite-input input {
    flex: 1;
    border: 0;
    padding: 10px 12px;
    font-family: ui-monospace, "SF Mono", monospace;
    font-size: 13px;
    background: #f8fafb;
    color: #1a2e34;
}
.invite-input input:focus { outline: none; }
.invite-input button {
    border: 0;
    border-left: 1px solid #d2dadd;
    background: white;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 600;
    color: #2c4046;
    transition: background-color 0.1s ease;
}
.invite-input button:hover { background: #f0f4f5; }

/* ====== User toolbar / search / filters ====== */
.user-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.search-input {
    flex: 1;
    min-width: 220px;
    position: relative;
    display: flex;
    align-items: center;
}
.search-input .search-icon {
    position: absolute;
    left: 12px;
    color: #6a7d83;
    pointer-events: none;
}
.search-input input {
    width: 100%;
    padding: 10px 12px 10px 34px;
    border: 1px solid #d2dadd;
    border-radius: 10px;
    font: inherit;
}
.search-input input:focus {
    outline: none;
    border-color: #5b4fd9;
    box-shadow: 0 0 0 3px rgba(91, 79, 217, 0.15);
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background: #f4f7f8;
    padding: 4px;
    border-radius: 10px;
    flex-wrap: wrap;
}
.filter-tab {
    border: 0;
    background: transparent;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #2c4046;
    transition: background-color 0.1s ease, color 0.1s ease;
}
.filter-tab:hover { color: #12343b; }
.filter-tab.active { background: white; color: #5b4fd9; box-shadow: 0 2px 4px -2px rgba(20, 30, 60, 0.1); }

.toolbar-actions { display: flex; gap: 8px; }

/* ====== User cards grid ====== */
.user-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.user-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(20, 30, 60, 0.12);
}

.user-card-head { display: flex; gap: 14px; align-items: flex-start; }
.user-card-name { flex: 1; min-width: 0; }
.user-card-name h3 {
    margin: 0 0 2px;
    font-size: 16px;
    color: #12343b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.user-card-name p { margin: 0 0 8px; font-size: 13px; }
.user-card-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.avatar-large { width: 48px; height: 48px; font-size: 16px; }

.avatar-purple { background: linear-gradient(135deg, #6f5fdc 0%, #9d8ff5 100%); }
.avatar-teal { background: linear-gradient(135deg, #16a3a3 0%, #34c4c4 100%); }
.avatar-orange { background: linear-gradient(135deg, #e6a13a 0%, #f0bc60 100%); }
.avatar-pink { background: linear-gradient(135deg, #e85a8e 0%, #f57aa5 100%); }
.avatar-blue { background: linear-gradient(135deg, #3a7bd5 0%, #5b9beb 100%); }
.avatar-green { background: linear-gradient(135deg, #38a169 0%, #5fc387 100%); }
.avatar-indigo { background: linear-gradient(135deg, #4338ca 0%, #6d63e0 100%); }

.role-pill { font-size: 11px; padding: 3px 10px; }
.role-pill.role-owneradmin, .role-pill.role-superadmin { background: #fff1d8; color: #8a4f0e; }
.role-pill.role-manager { background: #d4f3eb; color: #0d8b73; }
.role-pill.role-employee, .role-pill.role-marketingteammember, .role-pill.role-salesrep { background: #ede9ff; color: #5b4fd9; }
.role-pill.role-agencyadmin { background: #ddd6fe; color: #4338ca; }
.role-pill.role-readonlyuser { background: #e3eaec; color: #4a5b60; }

.status-pill { font-size: 11px; padding: 3px 10px; }
.status-active { background: #d6f0d3; color: #1f5b29; }
.status-pending { background: #fff3e0; color: #8a4f0e; }
.status-rejected { background: #fadcd8; color: #8a2818; }
.status-suspended { background: #f0d8d4; color: #6a2114; }

.you-pill { background: #ede9ff !important; color: #5b4fd9 !important; font-weight: 600; padding: 2px 8px; }
.you-marker { font-style: italic; }

.pill-soft { background: #f0f4f5; color: #2c4046; font-weight: 500; }

.user-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #ecf0f2;
}

.button-link-icon {
    border: 0;
    background: none;
    color: #2c4046;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.1s ease, color 0.1s ease;
}
.button-link-icon:hover { background: #f0f4f5; color: #12343b; }
.button-link-danger { color: #c2412e; }
.button-link-danger:hover { background: #fdecea; color: #8a2818; }
.button-link-success { color: #2f8a3d; }
.button-link-success:hover { background: #e6f4ea; color: #1f5b29; }

.button-link {
    color: #5b4fd9;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.button-link:hover { text-decoration: underline; }

/* ====== Modal ====== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 60, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}
.modal-card {
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 30px 60px -16px rgba(20, 30, 60, 0.35);
}
.modal-card h2 { margin-top: 0; }
.modal-actions { margin-top: 20px; display: flex; gap: 8px; justify-content: flex-end; }

/* ====== Super Admin tabs ====== */
.super-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid #ecf0f2;
    margin-bottom: 18px;
    overflow-x: auto;
}
.super-tab {
    padding: 12px 18px;
    border-bottom: 2px solid transparent;
    color: #4a5b60;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.1s ease, border-color 0.1s ease;
    white-space: nowrap;
}
.super-tab:hover { color: #12343b; }
.super-tab.active {
    color: #5b4fd9;
    border-bottom-color: #5b4fd9;
}

.grid.five-cols {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1180px) {
    .grid.five-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .grid.five-cols { grid-template-columns: 1fr; }
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.panel-head h2 { margin: 0; }

/* MRR strip */
.mrr-strip, .activity-strip {
    display: flex;
    gap: 24px;
    padding: 8px 4px;
    flex-wrap: wrap;
}
.mrr-cell, .activity-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 18px;
    background: #f8fafb;
    border-radius: 10px;
    min-width: 120px;
}
.mrr-cell strong, .activity-cell strong { font-size: 18px; color: #12343b; }

/* Cleaner table */
.table-clean { width: 100%; border-collapse: collapse; }
.table-clean th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6a7d83;
    border-bottom: 1px solid #ecf0f2;
    background: #f8fafb;
}
.table-clean td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f4f5;
    vertical-align: middle;
    font-size: 13px;
}
.table-clean tbody tr:hover { background: #fafcfd; }
.action-cell { display: flex; gap: 4px; flex-wrap: wrap; }
.inline-select {
    padding: 5px 8px;
    border: 1px solid #d2dadd;
    border-radius: 6px;
    font: inherit;
    font-size: 12px;
}

.notice-error { border-left: 4px solid #c2412e; background: #fdecea; }

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

/* Responsive */
@media (max-width: 768px) {
    .invite-fields { grid-template-columns: 1fr; }
    .user-toolbar { flex-direction: column; align-items: stretch; }
    .filter-tabs { overflow-x: auto; }
    .toolbar-actions { justify-content: stretch; }
    .toolbar-actions .button { flex: 1; }
    .admin-hero { padding: 22px; }
    .admin-hero-body { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================================
   AI visual refresh - AgentSignal
   Adds a more modern AI/SaaS look without changing backend logic.
   ============================================================================ */
:root {
    --ai-bg: #071018;
    --ai-bg-2: #0c1a28;
    --ai-panel: rgba(255, 255, 255, 0.84);
    --ai-cyan: #51f6ff;
    --ai-violet: #7c5cff;
    --ai-lime: #d9f75f;
    --ai-mint: #47f0b5;
    --ai-glow: 0 0 38px rgba(81, 246, 255, 0.24), 0 0 90px rgba(124, 92, 255, 0.16);
}

body {
    background:
        radial-gradient(circle at 12% 8%, rgba(81, 246, 255, 0.18), transparent 28rem),
        radial-gradient(circle at 86% 10%, rgba(124, 92, 255, 0.16), transparent 30rem),
        radial-gradient(circle at 55% 90%, rgba(217, 247, 95, 0.13), transparent 26rem),
        linear-gradient(135deg, #eef8ff 0%, #f8fbff 42%, #f1fff7 100%);
}

.page {
    background:
        radial-gradient(circle at 24% 0%, rgba(81, 246, 255, 0.18), transparent 26rem),
        radial-gradient(circle at 100% 12%, rgba(124, 92, 255, 0.14), transparent 28rem),
        linear-gradient(135deg, #f7fbff 0%, #f3fff9 100%);
}

.sidebar {
    background:
        radial-gradient(circle at 50% 0%, rgba(81, 246, 255, 0.16), transparent 15rem),
        linear-gradient(180deg, #071018, #0b1824 48%, #071018);
}

.brand-mark {
    background: linear-gradient(135deg, var(--ai-cyan), var(--ai-violet) 48%, var(--ai-lime));
    border-radius: 14px;
    box-shadow: var(--ai-glow);
}

.nav-link {
    border-radius: 14px;
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(81, 246, 255, 0.18), rgba(124, 92, 255, 0.14));
    border-color: rgba(81, 246, 255, 0.28);
    box-shadow: inset 3px 0 0 var(--ai-cyan), 0 0 24px rgba(81, 246, 255, 0.12);
}

.top-row {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px) saturate(1.2);
}

.ai-hero {
    position: relative;
}

.ai-hero::before {
    background:
        linear-gradient(90deg, rgba(7, 16, 24, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(7, 16, 24, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    border-radius: 30px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    mask-image: radial-gradient(circle at 35% 30%, black, transparent 72%);
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero h1 {
    background: linear-gradient(110deg, #071018 0%, #123b58 42%, #4b2ee8 72%, #071018 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.07em;
}

.glow-pill {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(81, 246, 255, 0.4);
    box-shadow: 0 0 24px rgba(81, 246, 255, 0.18);
    color: #0c4353;
}

.button {
    background: linear-gradient(135deg, #071018, #173c5a 52%, #4b2ee8);
    border: 1px solid rgba(81, 246, 255, 0.24);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(16, 42, 70, 0.22), 0 0 26px rgba(81, 246, 255, 0.13);
}

.button.secondary,
.button.ghost,
.panel,
.metric,
.plan-card,
.chat-log,
.signal-card {
    border-radius: 18px;
}

.panel,
.metric,
.plan-card,
.chat-log {
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,251,255,0.82));
    border-color: rgba(159, 204, 220, 0.68);
    backdrop-filter: blur(16px);
}

.panel:hover,
.metric-link:hover,
.plan-card:hover {
    box-shadow: var(--shadow-md), 0 0 36px rgba(81, 246, 255, 0.12);
}

.signal-map.ai-orbital {
    background:
        radial-gradient(circle at 50% 42%, rgba(81, 246, 255, 0.28), transparent 13rem),
        radial-gradient(circle at 72% 24%, rgba(124, 92, 255, 0.22), transparent 15rem),
        linear-gradient(135deg, #071018, #0c1a28 54%, #10243a);
    border-color: rgba(81, 246, 255, 0.26);
    border-radius: 26px;
    box-shadow: 0 34px 90px rgba(7, 16, 24, 0.28), var(--ai-glow);
}

.signal-map.ai-orbital::before {
    background: linear-gradient(90deg, rgba(81,246,255,0.2), rgba(124,92,255,0.22), rgba(217,247,95,0.16));
}

.orbital-ring {
    border: 1px solid rgba(81, 246, 255, 0.16);
    border-radius: 999px;
    inset: 74px 48px;
    position: absolute;
    transform: rotate(-16deg);
}

.ring-two {
    border-color: rgba(217, 247, 95, 0.12);
    inset: 130px 84px;
    transform: rotate(24deg);
}

.ai-node {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(81, 246, 255, 0.34);
    border-radius: 999px;
    box-shadow: 0 0 28px rgba(81, 246, 255, 0.16);
    color: #eaffff;
    display: flex;
    font-size: 0.76rem;
    font-weight: 900;
    height: 54px;
    justify-content: center;
    position: absolute;
    width: 54px;
}

.node-one { right: 54px; top: 94px; }
.node-two { bottom: 126px; left: 42px; }
.node-three { bottom: 54px; right: 96px; }

.ai-console {
    background: rgba(7, 16, 24, 0.74);
    border-color: rgba(81, 246, 255, 0.24);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,0.08);
    color: #e9fbff;
}

.ai-console h2,
.ai-console strong {
    color: #ffffff;
}

.ai-console .muted {
    color: #a9c7d1;
}

.console-header {
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 7px;
    margin: -4px 0 16px;
    padding-bottom: 12px;
}

.console-header span {
    background: var(--ai-cyan);
    border-radius: 999px;
    height: 9px;
    opacity: 0.72;
    width: 9px;
}

.console-header span:nth-child(2) { background: var(--ai-violet); }
.console-header span:nth-child(3) { background: var(--ai-lime); }
.console-header strong {
    color: #8edfe8;
    font-size: 0.78rem;
    margin-left: auto;
}

.console-output {
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(81, 246, 255, 0.14);
    border-radius: 14px;
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding: 13px;
}

.code-line {
    color: #b7fbff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
}

.pulse {
    animation: agentPulse 2.1s ease-in-out infinite;
}

@keyframes agentPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(81, 246, 255, 0.12), 0 0 0 0 rgba(81, 246, 255, 0.38); }
    50% { box-shadow: 0 0 0 7px rgba(81, 246, 255, 0.06), 0 0 0 14px rgba(81, 246, 255, 0); }
}

.ai-feature-grid {
    margin-bottom: 36px;
}

.feature-card {
    overflow: hidden;
}

.feature-icon {
    align-items: center;
    background: linear-gradient(135deg, rgba(81,246,255,0.16), rgba(124,92,255,0.14));
    border: 1px solid rgba(81, 246, 255, 0.24);
    border-radius: 12px;
    color: #164d60;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    margin-bottom: 16px;
    width: 42px;
}

.command-center,
.billing-hero {
    background:
        radial-gradient(circle at 85% 12%, rgba(81,246,255,0.2), transparent 16rem),
        linear-gradient(135deg, #071018, #0e2438 58%, #372092);
    border-radius: 22px;
}

@media (max-width: 640px) {
    .signal-map.ai-orbital {
        min-height: 620px;
    }

    .signal-card {
        left: 18px;
        width: calc(100% - 36px);
    }
}


/* Added conversion, demo, and AEO sections */
.demo-section,
.faq-section {
    margin: 42px 0;
}

.section-title.compact {
    align-items: flex-end;
    margin-bottom: 20px;
}

.section-title.compact h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    margin: 10px 0 8px;
}

.demo-grid {
    align-items: stretch;
}

.demo-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.demo-frame {
    background:
        radial-gradient(circle at 80% 10%, rgba(81,246,255,0.24), transparent 8rem),
        linear-gradient(145deg, rgba(7,16,24,0.96), rgba(16,36,58,0.95));
    border: 1px solid rgba(81,246,255,0.2);
    border-radius: 18px;
    color: #e9fbff;
    min-height: 188px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.demo-frame::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
    content: "";
    height: 100%;
    left: -70%;
    position: absolute;
    top: 0;
    transform: skewX(-18deg);
    width: 42%;
}

.demo-frame span {
    align-items: center;
    background: rgba(81,246,255,0.14);
    border: 1px solid rgba(81,246,255,0.28);
    border-radius: 999px;
    display: inline-flex;
    font-weight: 900;
    height: 40px;
    justify-content: center;
    margin-bottom: 28px;
    width: 40px;
}

.demo-frame strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.demo-frame p {
    color: #a9c7d1;
    margin: 0;
}

.video-placeholder {
    background:
        radial-gradient(circle at 50% 44%, rgba(217,247,95,0.18), transparent 8rem),
        linear-gradient(145deg, rgba(7,16,24,0.96), rgba(55,32,146,0.88));
}

.faq-section {
    padding: 28px;
}

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

.faq-grid article {
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(159,204,220,0.54);
    border-radius: 16px;
    padding: 18px;
}

.faq-grid h3 {
    margin-top: 0;
}

.faq-grid p {
    color: var(--muted);
    margin-bottom: 0;
}

.register-cta-panel,
.pricing-cta {
    background:
        radial-gradient(circle at 88% 10%, rgba(81,246,255,0.2), transparent 13rem),
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(244,249,255,0.9));
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.register-cta-panel h2,
.pricing-cta h2 {
    margin: 10px 0 8px;
}

.cta-checklist {
    display: grid;
    gap: 10px;
    min-width: 240px;
}

.cta-checklist span {
    background: rgba(81,246,255,0.1);
    border: 1px solid rgba(81,246,255,0.2);
    border-radius: 999px;
    color: #164d60;
    font-weight: 800;
    padding: 10px 12px;
}

.hero-actions.tight {
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .register-cta-panel,
    .pricing-cta {
        flex-direction: column;
    }

    .section-title.compact {
        align-items: flex-start;
    }
}


/* ============================================================================
   AgentSignal AI logo system
   ============================================================================ */
.brand-logo-link {
    display: block;
}

.brand-logo {
    display: block;
    height: auto;
    max-width: 100%;
    width: 232px;
    filter: drop-shadow(0 0 18px rgba(81, 246, 255, 0.22));
}

.brand-block {
    padding: 24px 18px 18px;
}

.auth-logo {
    display: block;
    height: auto;
    margin: 0 auto 18px;
    max-width: 315px;
    width: min(100%, 315px);
    filter: drop-shadow(0 12px 34px rgba(81, 246, 255, 0.22));
}

.brand-mark-large {
    background: linear-gradient(135deg, var(--ai-cyan), var(--ai-violet) 48%, var(--ai-lime));
    border-radius: 18px;
    box-shadow: var(--ai-glow);
    color: #071018;
}

@media (max-width: 860px) {
    .brand-logo {
        width: 250px;
    }

    .brand-block {
        padding-bottom: 12px;
    }
}

.legal-page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 34px;
}

.legal-page h1 {
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1;
    margin: 16px 0 8px;
}

.legal-page h2 {
    border-top: 1px solid rgba(184, 201, 206, 0.72);
    font-size: 1.15rem;
    margin: 26px 0 8px;
    padding-top: 18px;
}

.legal-page p {
    color: var(--ink-2);
    margin: 0 0 12px;
}

.legal-callout {
    background: linear-gradient(135deg, rgba(217, 247, 95, 0.18), rgba(71, 198, 165, 0.12));
    border: 1px solid rgba(71, 198, 165, 0.28);
    border-radius: 14px;
    color: #102329;
    font-weight: 760;
    margin-top: 28px;
    padding: 16px;
}

.auth-logo {
    border-radius: 16px;
    box-shadow: 0 0 32px rgba(71, 198, 165, 0.18);
    max-width: min(360px, 100%);
}

.auth-footer {
    align-items: center;
    color: #7b9096;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 24px auto 10px;
    max-width: 760px;
    padding: 12px;
    text-align: center;
}

.auth-footer a {
    color: #27444b;
    font-weight: 760;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #158765;
}

/* AI Agent workspace */
.ai-agent-hero {
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #eef8f7);
    border: 1px solid rgba(91, 151, 166, 0.26);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 20px;
}

.ai-agent-hero h1 {
    margin: 4px 0 6px;
}

.ai-agent-hero p {
    color: var(--muted);
    margin: 0;
    max-width: 780px;
}

.agent-hero-actions,
.agent-primary-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.agent-flow-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 18px;
}

.agent-flow-step {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: grid;
    gap: 3px;
    grid-template-columns: auto 1fr;
    min-height: 78px;
    padding: 12px 14px;
    text-align: left;
}

.agent-flow-step span {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    color: #2456b5;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 880;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.agent-flow-step strong,
.agent-flow-step small {
    display: block;
    grid-column: 2;
}

.agent-flow-step small {
    color: var(--muted);
    line-height: 1.25;
}

.agent-flow-step.active {
    border-color: var(--sky);
    box-shadow: 0 12px 28px rgba(63, 125, 246, 0.1);
}

.agent-flow-step.complete span {
    background: #e6fbf1;
    border-color: #a6e5cc;
    color: var(--green);
}

.ai-agent-alert {
    align-items: center;
    background: linear-gradient(135deg, #f0fbf5, #eef6ff);
    border: 1px solid rgba(63, 125, 246, 0.18);
    border-left: 4px solid var(--green);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 16px 0 18px;
    padding: 14px 16px;
}

.ai-agent-alert div {
    display: grid;
    gap: 3px;
}

.ai-agent-alert span {
    color: var(--muted);
}

.agent-quick-stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.agent-summary-card,
.review-grid article {
    align-items: flex-start;
    background: linear-gradient(180deg, #ffffff, #f7fbfa);
    border: 1px solid rgba(184, 201, 206, 0.84);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: block;
    min-height: 138px;
    padding: 16px;
}

.agent-summary-card span,
.review-grid span,
.step-kicker,
.agent-nav-header span,
.agent-next-box span {
    color: var(--muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 820;
    letter-spacing: 0.08em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.agent-summary-card strong,
.review-grid strong {
    color: var(--ink);
    display: block;
    font-size: 1.24rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.agent-summary-card small,
.review-grid p,
.agent-nav-footer small {
    color: var(--muted);
    line-height: 1.48;
}

.ai-agent-workspace {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: 292px minmax(0, 1fr);
}

.agent-nav {
    border-radius: 8px;
    position: sticky;
    top: 18px;
}

.agent-nav-header {
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.agent-nav-header strong {
    color: var(--ink);
    display: block;
    font-size: 1.15rem;
}

.agent-step {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    min-height: 76px;
    padding: 12px;
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    width: 100%;
}

.agent-step:hover,
.agent-step.active {
    background: #f8fcfb;
    border-color: var(--sky);
    box-shadow: 0 12px 28px rgba(63, 125, 246, 0.11);
    transform: translateY(-1px);
}

.agent-step.complete {
    border-color: rgba(21, 135, 101, 0.34);
}

.agent-step-index {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    color: #2456b5;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 0.78rem;
    font-weight: 860;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.agent-step.complete .agent-step-index {
    background: #e6fbf1;
    border-color: #a6e5cc;
    color: var(--green);
}

.agent-step strong,
.agent-step small {
    display: block;
}

.agent-step small {
    color: var(--muted);
    margin-top: 2px;
}

.agent-nav-footer {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 16px;
}

.agent-nav-footer strong {
    color: var(--ink);
    display: block;
    line-height: 1.4;
    margin-bottom: 10px;
}

.agent-progress {
    background: #e8f0f2;
    border-radius: 999px;
    height: 8px;
    margin: 4px 0 8px;
    overflow: hidden;
}

.agent-progress span {
    background: linear-gradient(90deg, var(--green), var(--sky));
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 6px;
}

.agent-main {
    min-width: 0;
}

.agent-panel,
.chat-card,
.agent-side-panel {
    border-radius: 8px;
    min-height: 500px;
}

.panel-heading-row {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-heading-row h2 {
    margin: 0 0 4px;
}

.agent-inline-status,
.agent-test-bar {
    align-items: center;
    background: #f5faf9;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
    padding: 10px 12px;
}

.toggle-grid,
.review-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.agent-empty-result,
.agent-result-summary {
    background: #f8fbfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 16px 0 18px;
    padding: 16px;
}

.agent-empty-result {
    align-items: flex-start;
    display: grid;
    gap: 8px;
}

.agent-empty-result p {
    color: var(--muted);
    margin: 0;
}

.agent-empty-result .button {
    justify-self: start;
}

.agent-result-summary {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr);
}

.agent-result-summary span {
    color: var(--muted);
    display: block;
    font-size: .72rem;
    font-weight: 820;
    letter-spacing: .08em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.agent-result-summary p {
    color: var(--ink);
    line-height: 1.55;
    margin: 0;
}

.agent-result-summary strong {
    color: var(--ink);
    display: block;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.agent-result-summary small {
    color: var(--muted);
    line-height: 1.4;
}

.agent-panel label.toggle-card,
.agent-panel .launch-checklist label {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 13px 14px;
}

.agent-panel label.toggle-card:hover,
.agent-panel .launch-checklist label:hover {
    border-color: var(--line-strong);
}

.agent-panel .toggle-card input,
.agent-panel .launch-checklist input {
    box-shadow: none;
    flex: 0 0 auto;
    height: 18px;
    margin: 3px 0 0;
    min-height: 0;
    padding: 0;
    width: 18px;
}

.toggle-card span {
    display: grid;
    gap: 3px;
}

.toggle-card strong {
    color: var(--ink);
    line-height: 1.25;
}

.toggle-card small {
    color: var(--muted);
    font-weight: 520;
    line-height: 1.42;
}

.lead-config-section {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 16px;
}

.lead-config-section h3,
.lead-verification h3 {
    font-size: .95rem;
    margin: 0 0 10px;
}

.lead-required-grid,
.lead-scoring-grid,
.lead-test-form {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lead-required-grid label {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 9px;
    margin: 0;
    padding: 11px 12px;
}

.lead-required-grid input {
    box-shadow: none;
    height: 18px;
    min-height: 0;
    padding: 0;
    width: 18px;
}

.lead-test-form {
    background: #f8fbfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 14px;
}

.lead-test-form .full {
    grid-column: 1 / -1;
}

.lead-verification {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 9px;
    margin-top: 16px;
    padding-top: 14px;
}

.review-verification {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 18px;
    padding: 14px;
}

.verification-row {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    padding: 10px 11px;
}

.verification-row > span {
    border-radius: 999px;
    color: #fff;
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
    min-width: 28px;
    padding: 6px 7px;
    text-align: center;
}

.verification-row.success > span { background: #0f8a5f; }
.verification-row.fail > span { background: #b42318; }
.verification-row.pending > span { background: #667085; }

.verification-row p {
    display: grid;
    gap: 2px;
    margin: 0;
}

.verification-row small {
    color: var(--muted);
    line-height: 1.35;
}

.agent-panel-actions,
.split-actions,
.agent-side-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.split-actions {
    justify-content: space-between;
}

.agent-test-grid {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.quick-prompts button {
    background: #f8fcfb;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 720;
    padding: 9px 13px;
}

.quick-prompts button:hover {
    border-color: var(--sky);
    color: #2456b5;
}

.upgraded-chat-log {
    height: auto;
    max-height: 460px;
    min-height: 320px;
    overflow: auto;
    padding-right: 6px;
}

.message .message-label {
    color: var(--muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 820;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.message p {
    margin: 0;
}

.chat-input-row {
    margin-top: 14px;
}

.chat-input-row input {
    flex: 1 1 260px;
}

.button:disabled,
button.button:disabled,
.chat-input-row input:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.agent-side-panel {
    display: flex;
    flex-direction: column;
}

.agent-context-list {
    display: grid;
    gap: 10px;
    margin: 8px 0 16px;
}

.agent-context-list div {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.agent-context-list dt {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 820;
    text-transform: uppercase;
}

.agent-context-list dd {
    color: var(--ink);
    font-weight: 760;
    margin: 3px 0 0;
}

.agent-next-box {
    background: #fffaf0;
    border: 1px solid #f2d58c;
    border-radius: 8px;
    margin-top: auto;
    padding: 13px;
}

.agent-next-box strong {
    color: #7a5300;
    display: block;
    line-height: 1.42;
}

.launch-checklist {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.save-status {
    background: #e6fbf1;
    border: 1px solid #a6e5cc;
    border-radius: 8px;
    color: var(--ink);
    margin: 14px 0 0;
    padding: 12px 14px;
}

@media (max-width: 1120px) {
    .agent-quick-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .agent-test-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .ai-agent-hero,
    .ai-agent-alert,
    .panel-heading-row {
        align-items: stretch;
        flex-direction: column;
    }

    .ai-agent-workspace,
    .toggle-grid,
    .agent-result-summary,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .agent-nav {
        position: static;
    }
}

@media (max-width: 620px) {
    .agent-quick-stats {
        grid-template-columns: 1fr;
    }

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

    .agent-panel-actions,
    .split-actions,
    .agent-primary-actions,
    .agent-hero-actions,
    .agent-side-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .agent-panel-actions .button,
    .split-actions .button,
    .agent-primary-actions .button,
    .agent-hero-actions .button,
    .agent-side-actions .button {
        width: 100%;
    }
}


/* AI Visibility product feature UI */
.visibility-hero {
    background: radial-gradient(circle at 15% 20%, rgba(124, 58, 237, .26), transparent 35%),
                radial-gradient(circle at 80% 10%, rgba(14, 165, 233, .22), transparent 35%),
                linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .92));
    border: 1px solid rgba(148, 163, 184, .22);
}
.big-score strong { font-size: clamp(3.5rem, 7vw, 6rem); }
.mini-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; margin-top:18px; }
.mini-grid span { border:1px solid rgba(148,163,184,.24); border-radius:16px; padding:10px 12px; background:rgba(255,255,255,.06); }
.feature-card label, .panel label { display:block; margin:.75rem 0 .35rem; font-weight:700; }
.input { width:100%; border-radius:14px; border:1px solid rgba(148,163,184,.35); padding:12px 14px; background:rgba(255,255,255,.9); color:#0f172a; }
.code-box { width:100%; min-height:260px; border-radius:16px; border:1px solid rgba(148,163,184,.3); padding:14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:.82rem; background:#0f172a; color:#dbeafe; white-space:pre; overflow:auto; }
.code-box.short { min-height:76px; margin-top:14px; }
.email-preview, .reply-box { border-radius:16px; border:1px solid rgba(124,58,237,.22); padding:14px; background:linear-gradient(135deg, rgba(124,58,237,.08), rgba(14,165,233,.07)); }
.review-card { border-top:1px solid rgba(148,163,184,.24); padding:16px 0; }
.check-row { display:flex!important; gap:10px; align-items:center; font-weight:600!important; }
.compact-grid { gap:12px; }
.widget-preview { margin-top:16px; min-height:210px; border-radius:22px; border:1px dashed rgba(148,163,184,.45); padding:18px; background:linear-gradient(135deg, rgba(15,23,42,.05), rgba(124,58,237,.08)); position:relative; }
.widget-bubble { position:absolute; right:22px; bottom:22px; width:58px; height:58px; border-radius:50%; display:grid; place-items:center; color:white; font-weight:900; background:var(--agent-color); box-shadow:0 20px 50px rgba(124,58,237,.35); }
.widget-card { max-width:340px; border-radius:20px; background:white; border:1px solid rgba(148,163,184,.28); padding:16px; box-shadow:0 20px 45px rgba(15,23,42,.12); }
.widget-card button { border:0; border-radius:999px; padding:9px 14px; color:white; background:var(--agent-color); font-weight:800; }
.roadmap-row { padding:12px 0; border-top:1px solid rgba(148,163,184,.2); }
.notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.24); font-weight: 700; }
@media (max-width: 760px) { .mini-grid { grid-template-columns:1fr; } }


/* Top navigation conversion pages */
.pricing-page-grid .pricing-card,
.setup-grid .panel,
.demo-request-grid .panel {
    overflow: hidden;
}

.price-line {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 12px 0;
}

.price-line span {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 760;
    letter-spacing: 0;
}

.featured-pricing-card {
    border-color: rgba(71, 198, 165, 0.55);
    box-shadow: 0 28px 80px rgba(37, 99, 235, 0.13);
    transform: translateY(-6px);
}

.check-list {
    color: var(--ink-2);
    list-style: none;
    margin: 18px 0 22px;
    padding: 0;
}

.check-list li {
    border-bottom: 1px solid rgba(216, 227, 230, 0.72);
    padding: 9px 0 9px 28px;
    position: relative;
}

.check-list li::before {
    color: var(--green);
    content: "✓";
    font-weight: 900;
    left: 0;
    position: absolute;
}

.pricing-note-panel {
    margin-top: 22px;
}

.setup-progress {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.setup-step {
    align-items: center;
    background: rgba(247, 250, 249, 0.86);
    border: 1px solid rgba(216, 227, 230, 0.86);
    border-radius: 12px;
    display: flex;
    gap: 10px;
    padding: 12px;
}

.setup-step strong {
    align-items: center;
    background: #132126;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.setup-step.active {
    background: linear-gradient(135deg, rgba(217,247,95,.22), rgba(71,198,165,.12));
    border-color: rgba(71,198,165,.45);
}

.launch-list {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.launch-list div {
    background: rgba(247, 250, 249, 0.86);
    border: 1px solid rgba(216, 227, 230, 0.76);
    border-radius: 12px;
    padding: 13px;
}

.launch-list strong,
.launch-list span {
    display: block;
}

.launch-list span {
    color: var(--muted);
    margin-top: 4px;
}

.disclaimer-line {
    border-top: 1px solid rgba(216, 227, 230, 0.82);
    margin-top: 18px;
    padding-top: 14px;
}

.demo-request-form textarea {
    resize: vertical;
}

.demo-value-card .button {
    margin-top: 4px;
}

@media (max-width: 860px) {
    .setup-progress {
        grid-template-columns: 1fr;
    }

    .featured-pricing-card {
        transform: none;
    }
}

/* Demo request CRM additions */
.demo-request-list {
    display: grid;
    gap: 1rem;
}

.demo-request-admin-card {
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 22px;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(14, 165, 233, 0.06));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.demo-request-admin-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding-bottom: .75rem;
    margin-bottom: .75rem;
}

.demo-request-admin-header h3 {
    margin: .35rem 0 .15rem;
}

.demo-request-notes {
    white-space: pre-wrap;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: .85rem;
}

.demo-request-update-grid {
    align-items: end;
}

.small-text {
    font-size: .85rem;
}

.inline-filter {
    min-width: 210px;
}

.alert.good {
    border: 1px solid rgba(34, 197, 94, .35);
    background: rgba(34, 197, 94, .08);
    color: #166534;
    border-radius: 16px;
    padding: .85rem 1rem;
    margin: 1rem 0;
}

.alert.danger {
    border: 1px solid rgba(239, 68, 68, .35);
    background: rgba(239, 68, 68, .08);
    color: #991b1b;
    border-radius: 16px;
    padding: .85rem 1rem;
    margin: 1rem 0;
}

.success-panel {
    max-width: 880px;
}

@media (max-width: 900px) {
    .demo-request-admin-header {
        flex-direction: column;
    }
}

/* Growth Platform - AI revenue moat feature set */
.growth-loading {
    margin-bottom: 18px;
}

.growth-hero {
    align-items: stretch;
    background: linear-gradient(135deg, #102329, #173f43 58%, #20515c);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.5fr) 360px;
    margin-bottom: 24px;
    padding: 28px;
}

.growth-hero h1 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.02;
    margin: 0 0 14px;
}

.growth-hero .lead {
    color: #d8e5e8;
    font-size: 1.05rem;
    max-width: 780px;
}

.eyebrow {
    color: #3f7df6;
    font-size: .75rem;
    font-weight: 820;
    letter-spacing: .14em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.growth-hero .eyebrow {
    color: var(--accent);
}

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

.primary-action,
.secondary-action {
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 820;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    text-decoration: none;
}

.primary-action {
    background: #d9f75f;
    border: 1px solid #d9f75f;
    color: #102329;
}

.secondary-action {
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.growth-hero .secondary-action {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
    color: #ffffff;
}

.primary-action:hover,
.secondary-action:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
}

.primary-action:disabled,
.secondary-action:disabled {
    cursor: not-allowed;
    opacity: .6;
    transform: none;
}

.growth-score-card {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
}

.growth-score-card span {
    color: #cbd5e1;
    font-weight: 760;
}

.growth-score-card strong {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
}

.growth-score-card p {
    color: #dbeafe;
    margin: 8px 0 0;
}

.growth-alert {
    border-radius: 8px;
    font-weight: 760;
    margin: 0 0 18px;
    padding: 12px 14px;
}

.growth-alert.success {
    background: #e6fbf1;
    border: 1px solid #a6e5cc;
    color: #166534;
}

.growth-alert.info {
    background: #eaf1ff;
    border: 1px solid #ceddff;
    color: #214177;
}

.growth-alert.warning {
    background: #fff7df;
    border: 1px solid #f2d58c;
    color: #7a5300;
}

.growth-alert.danger {
    background: #fff0ed;
    border: 1px solid #ffd0c7;
    color: #991b1b;
}

.growth-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.growth-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.growth-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.metric-card,
.feature-panel,
.tier-card {
    background: #ffffff;
    border: 1px solid rgba(184, 201, 206, .82);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    padding: 20px;
}

.metric-card span {
    color: #64748b;
    font-weight: 820;
}

.metric-card strong {
    color: #111827;
    display: block;
    font-size: 2.5rem;
}

.metric-card small,
.positive {
    color: #059669;
    font-weight: 820;
}

.negative {
    color: #b42318;
    font-weight: 820;
}

.meter {
    background: #e5e7eb;
    border-radius: 999px;
    height: 9px;
    margin-top: 12px;
    overflow: hidden;
}

.meter i {
    background: linear-gradient(90deg, var(--accent-2), var(--sky));
    border-radius: 999px;
    display: block;
    height: 100%;
}

.phase-health .feature-panel {
    min-height: 150px;
}

.growth-section {
    margin: 30px 0;
}

.section-heading {
    margin-bottom: 18px;
    max-width: 850px;
}

.section-heading h2 {
    color: #111827;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    margin: 0 0 8px;
}

.feature-panel h3,
.tier-card h3 {
    color: #111827;
    margin-top: 0;
}

.feature-panel p,
.tier-card p {
    color: #475569;
}

.feature-panel.wide {
    grid-column: 1 / -1;
}

.trend-bars {
    align-items: end;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    height: 190px;
    margin-top: 14px;
    padding: 16px;
}

.trend-bars div {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    justify-content: end;
}

.trend-bars i {
    background: linear-gradient(180deg, var(--sky), var(--accent-2));
    border-radius: 8px 8px 3px 3px;
    width: 100%;
}

.trend-bars span {
    color: #64748b;
    font-size: .8rem;
    font-weight: 760;
}

.growth-table-wrap {
    overflow-x: auto;
}

.growth-table {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

.growth-table th,
.growth-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.growth-table th {
    color: #64748b;
    font-size: .82rem;
    text-transform: uppercase;
}

.field-label {
    color: #64748b;
    display: block;
    font-size: .85rem;
    font-weight: 820;
    margin-top: 10px;
}

.growth-input {
    background: #ffffff;
    border: 1px solid #c8d8dd;
    border-radius: 8px;
    color: var(--ink);
    display: block;
    margin: 6px 0;
    padding: 11px 12px;
    width: 100%;
}

.prompt-input {
    min-height: 84px;
}

.inline-form {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin: 12px 0;
}

.recommendation-panel .panel-heading-row.compact {
    margin-bottom: 10px;
}

.recommendation-controls {
    grid-template-columns: minmax(180px, 1fr) auto;
}

.recommendation-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 4px;
}

.recommendation-examples button,
.query-list button {
    background: #f6faf9;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 760;
    padding: 8px 10px;
}

.query-list button.danger {
    background: #fff4f2;
    border-color: #f1b4aa;
    color: #9f2f20;
}

.recommendation-result {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 14px;
    padding: 14px;
}

.recommendation-result-header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.recommendation-result strong {
    color: #214177;
}

.recommendation-result h4 {
    color: #111827;
    font-size: .92rem;
    margin: 0 0 6px;
}

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

.query-list,
.moat-list {
    display: grid;
    gap: 10px;
}

.query-list span,
.query-item,
.moat-list span,
.alert-pill {
    background: #eef6f4;
    border: 1px solid rgba(184, 201, 206, .72);
    border-radius: 8px;
    color: #17333a;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
}

.query-list span,
.query-item {
    grid-template-columns: minmax(0, 1fr) auto;
}

.query-item.editing {
    background: #f8fafc;
    grid-template-columns: 1fr;
}

.query-item.recently-saved {
    background: #e6fbf1;
    border-color: #76d4b1;
    box-shadow: 0 0 0 2px rgba(118, 212, 177, .22);
}

.query-empty {
    background: #f8fafc;
    border: 1px dashed rgba(184, 201, 206, .82);
    border-radius: 8px;
    color: #64748b;
    font-weight: 720;
    padding: 12px;
}

.query-copy {
    min-width: 0;
}

.saved-pill {
    background: #c9f7df;
    border: 1px solid #76d4b1;
    border-radius: 999px;
    color: #166534;
    display: inline-flex;
    font-size: .72rem;
    font-style: normal;
    font-weight: 820;
    margin-left: 8px;
    padding: 2px 8px;
    vertical-align: middle;
}

.query-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.query-editor-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
}

.query-editor-form .growth-input {
    margin: 0;
}

.query-editor-form .growth-input:nth-child(1) {
    flex: 1 1 260px;
}

.query-editor-form .growth-input:nth-child(2) {
    flex: 1 1 170px;
}

.query-editor-form .growth-input:nth-child(3) {
    flex: 0 1 150px;
}

.query-editor-form .growth-input:nth-child(4) {
    flex: 0 0 110px;
}

.query-editor-form .query-active-toggle {
    flex: 0 0 auto;
    margin: 0;
}

.query-editor-form .secondary-action {
    flex: 0 0 auto;
    min-width: 118px;
    white-space: nowrap;
}

.query-edit-form {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 2fr) minmax(160px, 1fr) minmax(140px, .8fr) minmax(92px, .5fr) auto;
}

.query-active-toggle {
    align-items: center;
    color: #334155;
    display: flex;
    font-size: .9rem;
    font-weight: 780;
    gap: 7px;
    margin: 6px 0;
    white-space: nowrap;
}

.query-list small,
.moat-list small {
    color: #64748b;
    display: block;
    font-weight: 680;
}

.clean-list {
    color: #475569;
    padding-left: 18px;
}

.revenue-story {
    background: #102329;
    border-radius: 8px;
    color: #ffffff;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto;
    padding: 18px;
}

.revenue-story span {
    color: #cbd5e1;
}

.revenue-story strong {
    color: var(--accent);
    font-size: 1.35rem;
}

.benchmark-row {
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.benchmark-row.you {
    color: #158765;
    font-weight: 900;
}

.sov-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.sov-row {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
    padding: 12px;
}

.sov-row.you {
    background: #eef6f4;
    border-color: rgba(21, 135, 101, .32);
}

.sov-label {
    min-width: 0;
}

.sov-label strong,
.report-summary strong,
.location-stats strong,
.analytics-stats strong {
    color: #111827;
}

.sov-label small,
.report-summary small,
.location-stats small,
.analytics-stats small {
    color: #64748b;
    display: block;
    font-weight: 720;
}

.sov-meter span {
    color: #17333a;
    display: block;
    font-weight: 900;
    margin-bottom: 6px;
    text-align: right;
}

.location-stats,
.report-summary,
.analytics-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 14px 0;
}

.location-stats span,
.report-summary span,
.analytics-stats span {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.analytics-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-stats strong {
    display: block;
    font-size: 1.1rem;
    overflow-wrap: anywhere;
}

.analytics-score {
    align-items: baseline;
    background: #102329;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    gap: 6px;
    margin: 14px 0;
    padding: 16px;
}

.analytics-score strong {
    color: var(--accent);
    font-size: 2.8rem;
    line-height: 1;
}

.analytics-score span {
    color: #cbd5e1;
    font-weight: 820;
}

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

.insight-columns h4,
.feature-panel h4 {
    color: #111827;
    font-size: .95rem;
    margin: 0 0 8px;
}

.compact-table .growth-table {
    min-width: 560px;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.copilot-panel {
    background: linear-gradient(145deg, #f2fbf7, #ffffff 72%);
    border-color: rgba(21, 135, 101, .34);
}

.copilot-form {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.copilot-answer {
    background: #102329;
    border-radius: 8px;
    color: #ffffff;
    margin-top: 14px;
    padding: 16px;
}

.copilot-answer p,
.copilot-answer li {
    color: #e2e8f0;
}

.copilot-answer strong,
.copilot-answer summary {
    color: var(--accent);
}

.action-card {
    border-top: 4px solid var(--accent-2);
}

.action-feedback {
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 720;
    margin-top: 12px;
    padding: 11px 12px;
}

.action-feedback.info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.action-feedback.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #166534;
}

.action-feedback.danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.action-card ol {
    min-height: 96px;
}

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

.prediction-strip span {
    background: #eef6f4;
    border-radius: 8px;
    padding: 10px;
}

.prediction-strip strong,
.prediction-strip small {
    display: block;
}

.prediction-strip strong {
    color: #0f766e;
    font-size: 1.05rem;
}

.prediction-strip small {
    color: #64748b;
    font-size: .75rem;
    font-weight: 760;
}

.generated-asset,
.experiment-card {
    margin-top: 18px;
}

.generated-asset pre {
    max-height: 360px;
    overflow: auto;
    white-space: pre-wrap;
}

.experiment-card {
    background: linear-gradient(120deg, #102329, #173f43);
    border-color: #24545a;
    color: #ffffff;
}

.experiment-card h3,
.experiment-card p {
    color: #ffffff;
}

.experiment-card .eyebrow {
    color: var(--accent);
}

.compact-list {
    color: #475569;
    margin: 0;
    padding-left: 18px;
}

.compact-list li {
    margin: 4px 0;
}

.gap-value {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 900;
    min-width: 44px;
}

.report-sections {
    columns: 2;
    margin-top: 8px;
}

.product-hub-hero,
.product-detail-hero {
    background:
        linear-gradient(115deg, rgba(16, 35, 41, .94), rgba(18, 52, 59, .88)),
        url("/images/agentsignal-mark.svg") right 42px center / 240px auto no-repeat;
    border-radius: 8px;
    color: #ffffff;
    margin-bottom: 20px;
    min-height: 430px;
    padding: 58px;
}

.product-hub-hero > div,
.product-detail-hero > div {
    max-width: 880px;
}

.product-hub-hero h1,
.product-detail-hero h1 {
    color: #ffffff;
    font-size: 3rem;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 18px 0;
}

.product-hub-hero p,
.product-detail-hero p {
    color: #dbeafe;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 760px;
}

.product-detail-hero {
    background:
        linear-gradient(115deg, color-mix(in srgb, var(--product-color) 44%, #102329), rgba(16, 35, 41, .91)),
        url("/images/agentsignal-mark.svg") right 42px center / 230px auto no-repeat;
}

.product-breadcrumb {
    color: #d9f75f;
    display: inline-flex;
    font-weight: 820;
    margin-bottom: 16px;
    text-decoration: none;
}

.product-featured-strip,
.product-summary-strip {
    background: #ffffff;
    border: 1px solid rgba(184, 201, 206, .82);
    border-left: 6px solid var(--product-color, #12343b);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin: 0 0 30px;
    padding: 22px;
}

.product-hub-feature,
.product-summary-strip {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 72px minmax(0, 1fr);
}

.product-hub-feature img,
.product-summary-strip img {
    background: #eef6f4;
    border: 1px solid rgba(184, 201, 206, .82);
    border-radius: 8px;
    height: 72px;
    padding: 12px;
    width: 72px;
}

.product-hub-feature span,
.product-summary-strip span,
.product-list-card span {
    color: #64748b;
    display: block;
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-hub-feature h2 {
    color: #111827;
    margin: 2px 0 6px;
}

.product-hub-feature p {
    color: #475569;
    margin: 0 0 10px;
}

.product-hub-feature a,
.product-feature-card a,
.product-list-footer a {
    color: #102329;
    font-weight: 900;
    text-decoration: none;
}

.product-section {
    margin: 34px 0;
}

.product-feature-grid,
.product-list-grid,
.product-detail-grid,
.product-step-grid,
.product-metric-grid,
.product-workflow-grid {
    display: grid;
    gap: 18px;
}

.product-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-list-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-feature-card,
.product-list-card,
.product-detail-panel,
.product-workflow-grid article,
.product-step-grid article {
    background: #ffffff;
    border: 1px solid rgba(184, 201, 206, .82);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    padding: 20px;
}

.product-feature-card {
    display: grid;
    gap: 12px;
}

.product-card-visual {
    align-items: center;
    background: color-mix(in srgb, var(--product-color) 11%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--product-color) 30%, #dbe3e6);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    min-height: 86px;
    padding: 14px;
}

.product-card-visual img {
    height: 42px;
    width: 42px;
}

.product-card-visual span {
    color: color-mix(in srgb, var(--product-color) 78%, #102329);
    font-weight: 900;
}

.product-feature-card h3,
.product-list-card h3,
.product-detail-panel h2,
.product-workflow-grid strong {
    color: #111827;
    margin: 0;
}

.product-feature-card p,
.product-list-card p,
.product-detail-panel p,
.product-workflow-grid p,
.product-step-grid p {
    color: #475569;
    line-height: 1.6;
}

.product-list-card {
    border-top: 5px solid var(--product-color, #12343b);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 245px;
}

.product-list-footer {
    align-items: center;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 12px;
}

.product-list-footer small {
    color: #64748b;
    font-weight: 800;
}

.product-workflow-band {
    background: #eef6f4;
    border-radius: 8px;
    padding: 24px;
}

.product-workflow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.product-summary-strip strong {
    color: #111827;
    display: block;
    font-size: 1.35rem;
    line-height: 1.35;
}

.product-check-list {
    color: #475569;
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.product-check-list li {
    border-bottom: 1px solid #e5e7eb;
    padding: 0 0 10px 28px;
    position: relative;
}

.product-check-list li::before {
    color: #059669;
    content: ">";
    font-weight: 900;
    left: 0;
    position: absolute;
}

.product-step-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-step-grid article {
    border-left: 5px solid var(--accent-2);
}

.product-step-grid span {
    color: #64748b;
    display: block;
    font-weight: 900;
    margin-bottom: 10px;
}

.product-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-metric-grid span {
    background: #102329;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 900;
    padding: 16px;
}

.product-cta {
    align-items: center;
    background: #102329;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin: 34px 0;
    padding: 28px;
}

.product-cta h2 {
    color: #ffffff;
    margin: 0 0 6px;
}

.product-cta p {
    color: #dbeafe;
    margin: 0;
}

.product-missing {
    margin: 30px 0;
}

@media (max-width: 1000px) {
    .growth-hero,
    .growth-grid.four,
    .growth-grid.three,
    .growth-grid.two,
    .recommendation-controls,
    .recommendation-columns,
    .query-editor-form,
    .query-edit-form,
    .query-item,
    .sov-row,
    .location-stats,
    .report-summary,
    .analytics-stats,
    .prediction-strip,
    .copilot-form,
    .insight-columns,
    .product-feature-grid,
    .product-list-grid,
    .product-detail-grid,
    .product-step-grid,
    .product-metric-grid,
    .product-workflow-grid,
    .product-hub-feature,
    .product-summary-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-hub-hero,
    .product-detail-hero {
        background:
            linear-gradient(115deg, rgba(16, 35, 41, .94), rgba(18, 52, 59, .88)),
            url("/images/agentsignal-mark.svg") right 18px bottom 18px / 110px auto no-repeat;
        min-height: 0;
        padding: 30px 22px;
    }

    .product-detail-hero {
        background:
            linear-gradient(115deg, color-mix(in srgb, var(--product-color) 44%, #102329), rgba(16, 35, 41, .91)),
            url("/images/agentsignal-mark.svg") right 18px bottom 18px / 110px auto no-repeat;
    }

    .product-hub-hero h1,
    .product-detail-hero h1 {
        font-size: 2.15rem;
    }

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

    .sov-meter span {
        text-align: left;
    }

    .report-sections {
        columns: 1;
    }

    .query-actions {
        justify-content: flex-start;
    }

    .feature-panel.wide {
        grid-column: auto;
    }

    .growth-section,
    .growth-grid,
    .feature-panel,
    .metric-card,
    .growth-score-card,
    .recommendation-panel,
    .growth-table-wrap {
        max-width: 100%;
        min-width: 0;
    }

    .feature-panel {
        overflow: hidden;
    }

    .trend-bars {
        gap: 6px;
        overflow-x: auto;
        padding: 12px;
    }

    .trend-bars div {
        flex: 0 0 38px;
    }

    .growth-table-wrap {
        width: 100%;
    }

    .growth-table {
        width: max-content;
    }

    .query-editor-form .secondary-action {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media print {
    .sidebar,
    .top-row,
    .site-footer,
    .hero-actions,
    .panel-actions,
    .inline-form,
    .query-actions,
    .recommendation-examples,
    .growth-alert {
        display: none !important;
    }

    .page,
    main,
    .content {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .metric-card,
    .feature-panel,
    .growth-score-card {
        box-shadow: none !important;
        break-inside: avoid;
    }

    .growth-section,
    .growth-grid {
        break-inside: avoid;
    }
}
