:root {
    /* Aliases onto the DealRadar tokens in dealradar-tokens.css.
       Kept so the 5,500 lines of existing rules below stay valid while the
       palette is owned in exactly one place. */
    --bg: var(--dr-midnight-900);
    --bg-elevated: var(--dr-navy-850);
    --bg-soft: var(--dr-navy-800);

    --border: var(--dr-line);
    --border-strong: var(--dr-line-strong);

    --text: var(--dr-text);
    --text-muted: var(--dr-text-muted);
    --text-soft: var(--dr-text-soft);

    --accent: var(--dr-green);
    --accent-hover: var(--dr-green-600);
    --accent-soft: var(--dr-green-wash);

    --positive: var(--dr-green-600);

    --container: var(--dr-container);

    --radius-sm: var(--dr-radius-sm);
    --radius-md: var(--dr-radius-md);
    --radius-lg: var(--dr-radius-lg);

    --shadow-lg: var(--dr-shadow-panel);
}


/* =========================================================
   Base
   ========================================================= */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            var(--dr-indigo-wash),
            transparent 34rem
        ),
        linear-gradient(
            180deg,
            var(--dr-midnight-900) 0%,
            var(--dr-midnight-950) 100%
        );

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

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

a:hover {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-container {
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
}


/* =========================================================
   Accessibility
   ========================================================= */

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;

    padding: 0.75rem 1rem;

    border: 2px solid #a78bfa;
    border-radius: 10px;

    background: #0f172a;
    color: #ffffff;

    font-weight: 700;
    text-decoration: none;

    transform: translateY(-200%);
    transition: transform 0.15s ease;
}

.skip-link:focus {
    color: #ffffff;
    transform: translateY(0);
}

.visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;
    border: 0 !important;
}

#main-content:focus {
    outline: none;
}

.button:focus-visible,
.site-brand:focus-visible,
.site-footer a:focus-visible,
.site-nav-links .nav-link:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 3px;
}


/* =========================================================
   Header / navigation
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    border-bottom: 1px solid var(--border);

    background: rgba(8, 16, 31, 0.82);

    backdrop-filter: blur(16px);
}

.site-nav {
    min-height: 76px;
}

.site-brand {
    display: inline-flex;
    align-items: center;

    gap: 0.7rem;

    color: var(--text);

    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-brand-mark {
    display: inline-flex;

    width: 2rem;
    height: 2rem;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 0.75rem;
}

.site-brand-mark img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.navbar-toggler {
    border-color: var(--border-strong);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.site-nav-links .nav-link {
    color: var(--text-muted);

    font-size: 0.95rem;
    font-weight: 500;

    transition:
        color 160ms ease,
        background-color 160ms ease;
}

.site-nav-links .nav-link:hover,
.site-nav-links .nav-link:focus {
    color: var(--text);
}

.site-nav-links .nav-link.active,
.site-nav-links .nav-link[aria-current="page"] {
    border-radius: 8px;

    background: rgba(124, 58, 237, 0.10);
    color: var(--text);
}

.site-main {
    min-height: calc(100vh - 190px);
}


/* =========================================================
   Hero
   ========================================================= */

.hero-section {
    padding: 7rem 0 5.5rem;
}

.hero-content {
    max-width: 880px;
}

.hero-title {
    max-width: 900px;

    margin: 0;

    color: var(--text);

    font-size: clamp(2.8rem, 6vw, 5.3rem);
    font-weight: 750;

    letter-spacing: -0.055em;
    line-height: 0.98;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-bottom: 1.25rem;

    padding: 0.45rem 0.8rem;

    border: 1px solid rgba(124, 58, 237, 0.45);
    border-radius: 999px;

    background: rgba(124, 58, 237, 0.08);
    color: #c4b5fd;

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-copy {
    max-width: 720px;

    margin-top: 1.6rem;

    color: var(--text-muted);

    font-size: clamp(1.05rem, 2vw, 1.24rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 0.8rem;

    margin-top: 1.75rem;
}

.hero-supporting-copy {
    margin: 1rem 0 0;

    color: var(--text-muted);

    font-size: 0.88rem;
    line-height: 1.6;
}

.hero-supporting-copy strong {
    color: var(--text-soft);
}


/* =========================================================
   Main button system
   ========================================================= */

.button {
    display: inline-flex;

    min-height: 46px;

    align-items: center;
    justify-content: center;

    padding: 0.75rem 1.1rem;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.button-primary {
    border-color: var(--dr-green);

    background: var(--dr-green);

    /* Signal Green is a bright surface: it carries dark text, never white. */
    color: var(--dr-midnight-950);
    font-weight: 600;
}

.button-primary:hover {
    background:
        linear-gradient(
            135deg,
            var(--dr-indigo),
            #5b52f0
        );

    color: #ffffff;
}

.button-secondary {
    border-color: var(--border);

    background: rgba(255, 255, 255, 0.025);

    color: var(--text);
}

.button-secondary:hover {
    border-color: rgba(139, 92, 246, 0.45);

    background: rgba(124, 58, 237, 0.08);

    color: var(--text);
}


/* =========================================================
   General pages
   ========================================================= */

.page-section {
    padding: 4rem 0;
}

.page-title {
    margin-bottom: 1rem;

    color: var(--text);

    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 720;

    letter-spacing: -0.04em;
}

.page-copy {
    max-width: 760px;

    color: var(--text-muted);

    font-size: 1.05rem;
}

.home-section {
    padding: 5.5rem 0;
}

.home-section-soft {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: rgba(255, 255, 255, 0.018);
}

.section-heading {
    max-width: 760px;

    margin-bottom: 2.5rem;
}

.section-kicker {
    margin-bottom: 0.65rem;

    color: #a78bfa;

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.section-heading h2,
.evidence-copy h2,
.final-cta h2 {
    margin: 0;

    color: var(--text);

    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 720;

    letter-spacing: -0.045em;
    line-height: 1.08;
}

.section-heading p,
.evidence-copy p,
.final-cta p {
    margin-top: 1rem;

    color: var(--text-muted);

    font-size: 1.04rem;
    line-height: 1.75;
}

.section-action,
.section-actions {
    margin-top: 2rem;
}


/* =========================================================
   Feature / step / preview cards
   ========================================================= */

.feature-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 1rem;
}

.feature-card,
.step-card,
.plan-card,
.faq-preview-item {
    border: 1px solid var(--border);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.018)
        );

    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.feature-card {
    min-height: 240px;

    padding: 1.5rem;

    border-radius: var(--radius-md);
}

.feature-icon {
    display: inline-grid;

    width: 38px;
    height: 38px;

    margin-bottom: 1.2rem;

    place-items: center;

    border: 1px solid rgba(124, 58, 237, 0.28);
    border-radius: 10px;

    background: var(--accent-soft);
    color: #c4b5fd;

    font-size: 0.75rem;
    font-weight: 700;
}

.feature-card h3,
.step-card h3,
.plan-card h3,
.faq-preview-item h3 {
    margin: 0;

    color: var(--text);

    font-size: 1.12rem;
    font-weight: 680;

    letter-spacing: -0.02em;
}

.feature-card p,
.step-card p,
.plan-card p,
.faq-preview-item p {
    margin: 0.85rem 0 0;

    color: var(--text-muted);

    line-height: 1.7;
}

.step-card {
    position: relative;

    min-height: 220px;

    padding: 1.5rem;

    border-radius: var(--radius-md);
}

.step-number {
    display: block;

    margin-bottom: 2rem;

    color: var(--dr-indigo);

    font-size: 0.82rem;
    font-weight: 800;
}


/* =========================================================
   Evidence
   ========================================================= */

.evidence-panel {
    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    gap: 3rem;

    padding: 2.25rem;

    border: 1px solid rgba(124, 58, 237, 0.22);
    border-radius: var(--radius-lg);

    background:
        radial-gradient(
            circle at top right,
            rgba(124, 58, 237, 0.12),
            transparent 24rem
        ),
        rgba(255, 255, 255, 0.025);

    box-shadow: var(--shadow-lg);
}

.evidence-list {
    display: grid;

    gap: 0.85rem;
}

.evidence-item {
    padding: 1.25rem;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(4, 10, 22, 0.46);
}

.evidence-item strong {
    display: block;

    margin-bottom: 0.35rem;

    color: var(--text);
}

.evidence-item span {
    color: var(--text-muted);

    line-height: 1.6;
}


/* =========================================================
   Plan cards
   ========================================================= */

.plan-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    align-items: stretch;

    gap: 1rem;
}

.plan-card {
    position: relative;

    display: flex;

    min-height: 420px;

    flex-direction: column;

    padding: 1.6rem;

    border-radius: var(--radius-md);
}

.plan-card-featured {
    border-color: rgba(124, 58, 237, 0.48);

    background:
        radial-gradient(
            circle at top,
            rgba(124, 58, 237, 0.13),
            transparent 17rem
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.02)
        );
}

.plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;

    padding: 0.32rem 0.55rem;

    border-radius: 999px;

    background: rgba(124, 58, 237, 0.16);

    color: #c4b5fd;

    font-size: var(--dr-text-xs);
    font-weight: 700;
}

.plan-label {
    margin-bottom: 1rem;

    color: #a78bfa;

    font-size: 0.82rem;
    font-weight: 750;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}

.plan-price {
    display: flex;

    align-items: baseline;

    gap: 0.45rem;

    margin: 1.1rem 0;
}

.plan-price-amount {
    color: var(--text);

    font-size: 2rem;
    font-weight: 750;

    letter-spacing: -0.04em;
}

.plan-price-period {
    color: var(--text-muted);

    font-size: 0.92rem;
}

.plan-list {
    display: grid;

    gap: 0.7rem;

    margin: 1.4rem 0 1.75rem;
    padding: 0;

    color: var(--text-soft);

    list-style: none;
}

.plan-list li {
    position: relative;

    padding-left: 1.25rem;
}

.plan-list li::before {
    position: absolute;
    left: 0;

    color: var(--positive);

    content: "•";
}

.plan-button {
    width: 100%;

    margin-top: auto;
}

.plan-price-placeholder {
    margin-top: auto;

    padding-top: 1.5rem;

    color: var(--text);

    font-size: 1.05rem;
    font-weight: 700;
}

.subscription-note {
    max-width: 760px;

    margin: 1.6rem auto 0;

    color: var(--text-muted);

    text-align: center;

    font-size: 0.92rem;
}


/* =========================================================
   Pricing comparison table
   ========================================================= */

.pricing-comparison-wrap {
    margin-top: 4rem;
}

.pricing-comparison-wrap > h2 {
    margin: 0 0 1.25rem;

    color: var(--text);

    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 720;

    letter-spacing: -0.035em;
}

.pricing-table-scroll {
    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.pricing-table-scroll:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 4px;
}

.pricing-table {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;

    background: rgba(255, 255, 255, 0.02);
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;

    border-bottom: 1px solid var(--border);

    color: var(--text-muted);

    text-align: left;
    vertical-align: top;
}

.pricing-table th {
    background: rgba(255, 255, 255, 0.035);

    color: var(--text);

    font-size: 0.9rem;
    font-weight: 700;
}

.pricing-table th[scope="row"] {
    color: var(--text-soft);

    font-weight: 600;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   Pricing feature guide
   ========================================================= */

.pricing-feature-guide {
    margin-top: 4rem;
}

.pricing-feature-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1rem;

    margin-top: 2rem;
}

.pricing-feature-card {
    padding: 1.35rem;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.02);
}

.pricing-feature-card h3 {
    margin: 0 0 0.65rem;

    color: var(--text);

    font-size: 1.05rem;
    font-weight: 700;
}

.pricing-feature-card p {
    margin: 0;

    color: var(--text-muted);

    line-height: 1.7;
}


/* =========================================================
   Billing notice
   ========================================================= */

.billing-notice {
    max-width: 820px;

    margin: 2.5rem auto 0;

    padding: 1.75rem;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.025);
}

.billing-notice h2 {
    margin: 0 0 0.9rem;

    color: var(--text);

    font-size: 1.35rem;
    font-weight: 700;
}

.billing-notice p {
    margin: 0.65rem 0 0;

    color: var(--text-muted);

    line-height: 1.7;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
    display: grid;

    max-width: 900px;

    gap: 1rem;
}

.faq-item {
    padding: 1.5rem;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.025);
}

.faq-item h2 {
    margin: 0;

    color: var(--text);

    font-size: 1.1rem;
    font-weight: 680;
}

.faq-item p {
    margin: 0.75rem 0 0;

    color: var(--text-muted);

    line-height: 1.75;
}

.faq-preview {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 1rem;
}

.faq-preview-item {
    padding: 1.5rem;

    border-radius: var(--radius-md);
}


/* =========================================================
   Contact
   ========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 1rem;
}

.contact-card {
    padding: 1.5rem;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.025);
}

.contact-card h2 {
    margin: 0;

    color: var(--text);

    font-size: 1.15rem;
}

.contact-card p {
    margin-top: 0.75rem;

    color: var(--text-muted);

    line-height: 1.7;
}

.contact-placeholder {
    margin-top: 1.4rem;

    padding: 0.9rem;

    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);

    color: var(--text-soft);

    font-size: 0.9rem;
}

.contact-action {
    width: 100%;

    margin-top: 1.25rem;
}

.contact-detail {
    margin-top: 0.9rem;

    color: var(--text-muted);

    font-size: 0.9rem;

    word-break: break-word;
}

.contact-help-text {
    margin-top: 1rem !important;

    font-size: 0.88rem;
}

.support-note {
    margin-top: 2rem;
}


/* =========================================================
   Legal pages
   ========================================================= */

.legal-page {
    max-width: 960px;
}

.legal-content {
    display: grid;

    gap: 1rem;
}

.legal-content section {
    padding: 1.6rem;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.022);
}

.legal-content h2 {
    margin: 0;

    color: var(--text);

    font-size: 1.14rem;
    font-weight: 700;

    letter-spacing: -0.015em;
}

.legal-content p {
    margin: 0.85rem 0 0;

    color: var(--text-muted);

    line-height: 1.78;
}

.legal-content a {
    color: #c4b5fd;

    text-decoration: underline;
    text-decoration-color: rgba(196, 181, 253, 0.35);
    text-underline-offset: 0.18rem;
}

.legal-content a:hover {
    color: #ddd6fe;
}


/* =========================================================
   Inline text links

   Every selector here excludes .button, and that exclusion is load-bearing
   rather than tidy. These are descendant selectors on container classes, so
   they also match a button that happens to sit inside one. Being one step
   more specific than .button, they win: the button is repainted link-lilac
   over its own fill and underlined.

   .billing-notice was fixed after it shipped that way. The How It Works
   Discord CTA was still doing it — measured in Chromium at #c4b5fd on
   #2CF76B, a contrast ratio of 1.29:1 where AA wants 4.5:1, versus 13.98:1
   once the button keeps its own colour.

   Nothing reads wrong in either file on its own; the bug is only in which
   rule wins, which is why it survived review twice. Excluding .button here
   means the next person to put one in any of these containers gets a
   working button rather than an invisible one.
   ========================================================= */

.faq-item a:not(.button),
.billing-notice a:not(.button),
.page-copy a:not(.button),
.product-showcase-copy a:not(.button),
.workflow-step-content a:not(.button) {
    color: #c4b5fd;

    text-decoration: underline;
    text-decoration-color: rgba(196, 181, 253, 0.38);
    text-underline-offset: 0.18rem;
}

.faq-item a:not(.button):hover,
.billing-notice a:not(.button):hover,
.page-copy a:not(.button):hover,
.product-showcase-copy a:not(.button):hover,
.workflow-step-content a:not(.button):hover {
    color: #ddd6fe;

    text-decoration-color: rgba(221, 214, 254, 0.7);
}

.faq-item a:not(.button):focus-visible,
.billing-notice a:not(.button):focus-visible,
.page-copy a:not(.button):focus-visible,
.product-showcase-copy a:not(.button):focus-visible,
.workflow-step-content a:not(.button):focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 3px;

    border-radius: 3px;
}


/* =========================================================
   Product screenshots
   ========================================================= */

.product-showcase-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1.5rem;

    margin-top: 2.5rem;
}

.product-showcase-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.015)
        );
}

.product-showcase-image-wrap {
    display: flex;

    min-height: 390px;

    align-items: center;
    justify-content: center;

    padding: 1rem;

    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            circle at top left,
            rgba(124, 58, 237, 0.12),
            transparent 45%
        ),
        rgba(0, 0, 0, 0.18);
}

.product-showcase-image {
    display: block;

    width: 100%;
    height: 360px;

    object-fit: contain;

    border-radius: 10px;
}

.product-showcase-copy {
    padding: 1.4rem;
}

.product-showcase-label {
    margin-bottom: 0.6rem;

    color: #a78bfa;

    font-size: 0.76rem;
    font-weight: 750;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.product-showcase-copy h3 {
    margin: 0 0 0.7rem;

    color: var(--text);

    font-size: 1.2rem;
    font-weight: 700;

    letter-spacing: -0.02em;
}

.product-showcase-copy p {
    margin: 0;

    color: var(--text-muted);

    line-height: 1.7;
}

.product-showcase-note {
    margin-top: 1.5rem;

    padding: 1rem 1.15rem;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.02);
}

.product-showcase-note p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.86rem;
    line-height: 1.6;
}


/* =========================================================
   How It Works workflow
   ========================================================= */

.workflow-steps {
    display: flex;
    flex-direction: column;

    gap: 1.5rem;

    margin-top: 3rem;
}

.workflow-step {
    display: grid;

    grid-template-columns: 56px minmax(0, 1fr);

    gap: 1.4rem;

    padding: 1.5rem;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.02);
}

.workflow-step-with-image {
    grid-template-columns:
        56px
        minmax(0, 0.9fr)
        minmax(320px, 1.1fr);

    align-items: center;
}

.workflow-step-number {
    display: inline-flex;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 12px;

    background: rgba(124, 58, 237, 0.12);

    color: #c4b5fd;

    font-weight: 800;
}

.workflow-step-content h2 {
    margin: 0.35rem 0 0.8rem;

    color: var(--text);

    font-size: clamp(1.5rem, 2.5vw, 2rem);

    letter-spacing: -0.03em;
}

.workflow-step-content p {
    margin: 0 0 0.9rem;

    color: var(--text-muted);

    line-height: 1.75;
}

.workflow-step-image {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0.8rem;

    border: 1px solid var(--border);
    border-radius: 14px;

    background:
        radial-gradient(
            circle at top left,
            rgba(124, 58, 237, 0.12),
            transparent 50%
        ),
        rgba(0, 0, 0, 0.14);
}

.workflow-step-image img {
    display: block;

    width: 100%;
    max-height: 520px;

    object-fit: contain;

    border-radius: 10px;
}


/* =========================================================
   Worked example
   ========================================================= */

.worked-example {
    margin-top: 4rem;
}

.worked-example-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 1rem;

    margin-top: 2rem;
}

.worked-example-card {
    display: flex;
    flex-direction: column;

    gap: 0.45rem;

    padding: 1.2rem;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.02);
}

.worked-example-card span {
    color: var(--text-muted);

    font-size: 0.85rem;
}

.worked-example-card strong {
    color: var(--text);

    font-size: 1.35rem;
}

.privacy-flow-section {
    margin-top: 4rem;
}


/* =========================================================
   Final CTA
   ========================================================= */

.final-cta-section {
    padding-bottom: 2rem;
}

.final-cta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 2.5rem;

    padding: 2.5rem;

    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-lg);

    background:
        radial-gradient(
            circle at left top,
            rgba(124, 58, 237, 0.16),
            transparent 24rem
        ),
        rgba(255, 255, 255, 0.025);

    box-shadow: var(--shadow-lg);
}

.final-cta > div:first-child {
    max-width: 720px;
}

.final-cta-actions {
    display: flex;

    flex-shrink: 0;
    flex-wrap: wrap;

    gap: 0.8rem;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    margin-top: 5rem;

    border-top: 1px solid var(--border);

    color: var(--text-muted);
}

.site-footer-main {
    display: grid;

    grid-template-columns: 2fr repeat(3, 1fr);

    gap: 3rem;

    padding: 3.5rem 0;
}

.site-footer-brand p {
    max-width: 360px;

    margin: 1rem 0 0;

    color: var(--text-muted);

    line-height: 1.7;
}

.site-footer-column {
    display: flex;
    flex-direction: column;

    gap: 0.65rem;
}

.site-footer-column strong {
    margin-bottom: 0.35rem;

    color: var(--text);

    font-size: 0.9rem;
}

.site-footer-column a {
    color: var(--text-muted);

    font-size: 0.9rem;
}

.site-footer-column a:hover {
    color: var(--text);
}

.site-footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 2rem;

    padding: 1.4rem 0;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 0.82rem;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991.98px) {
    .site-nav-links {
        padding: 1rem 0 1.25rem;
    }

    .site-nav-links .nav-link {
        padding-block: 0.6rem;
    }

    .feature-grid,
    .plan-grid,
    .faq-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .evidence-panel {
        grid-template-columns: 1fr;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 950px) {
    .workflow-step-with-image {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .workflow-step-image {
        grid-column: 2;
    }
}

@media (max-width: 900px) {
    .site-footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }

    .product-showcase-grid {
        grid-template-columns: 1fr;
    }

    .product-showcase-image-wrap {
        min-height: auto;
    }

    .product-showcase-image {
        height: auto;
        max-height: 620px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 5rem 0 3.75rem;
    }

    .hero-title {
        font-size: clamp(2.65rem, 13vw, 4.1rem);
    }

    .home-section {
        padding: 4rem 0;
    }

    .feature-grid,
.plan-grid,
.faq-preview{
        grid-template-columns: 1fr;
    }

    .feature-card,
    .step-card {
        min-height: auto;
    }

    .plan-card {
        min-height: 380px;
    }

    .evidence-panel,
    .final-cta {
        padding: 1.5rem;
    }

    .final-cta-actions {
        width: 100%;

        flex-direction: column;
    }

    .final-cta-actions a {
        width: 100%;
    }
}

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

@media (max-width: 700px) {
    .workflow-step,
    .workflow-step-with-image {
        grid-template-columns: 1fr;
    }

    .workflow-step-number {
        margin-bottom: 0.2rem;
    }

    .workflow-step-image {
        grid-column: 1;
    }

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

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button {
        width: 100%;
    }

    .product-showcase-grid {
        gap: 1rem;
    }

    .product-showcase-image-wrap {
        padding: 0.65rem;
    }

    .product-showcase-copy {
        padding: 1.1rem;
    }

    .site-footer-main {
        grid-template-columns: 1fr;

        gap: 2rem;
    }

    .site-footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .worked-example-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* =========================================================
   DealRadar Dashboard
   ========================================================= */

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );
    gap: 1rem;
    margin: 2rem 0;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;

    min-height: 145px;

    padding: 1.4rem;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 1rem;

    background:
        rgba(255, 255, 255, 0.035);
}

.dashboard-card strong {
    font-size: 1.15rem;
}

.dashboard-card span:not(.dashboard-label) {
    opacity: 0.72;
}

.dashboard-label {
    display: block;

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    opacity: 0.65;
}

.dashboard-search {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;

    margin: 2rem 0;

    padding: 1.25rem;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 1rem;

    background:
        rgba(255, 255, 255, 0.025);
}

.dashboard-search input {
    width: 100%;

    padding:
        0.9rem
        1rem;

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 0.75rem;

    background:
        rgba(0, 0, 0, 0.18);

    color: inherit;
}

.dashboard-search input:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.dashboard-search > span {
    font-size: 0.9rem;
    opacity: 0.65;
}

.dashboard-section-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px, 1fr)
        );

    gap: 1rem;

    margin-top: 2rem;
}

.dashboard-section-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;

    min-height: 210px;

    padding: 1.5rem;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 1rem;

    background:
        rgba(255, 255, 255, 0.035);
}

.dashboard-section-card h2 {
    margin:
        0.45rem
        0
        0.65rem;

    font-size: 1.25rem;
}

.dashboard-section-card p {
    margin: 0;
    opacity: 0.72;
}

.dashboard-coming-soon {
    align-self: flex-start;

    padding:
        0.4rem
        0.7rem;

    border-radius: 999px;

    background:
        rgba(88, 101, 242, 0.15);

    font-size: 0.8rem;
    font-weight: 700;
}

@media (max-width: 700px) {
    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-header form,
    .dashboard-header button {
        width: 100%;
    }
}
/* Dashboard V1 read-only pages */

.dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 2rem;
    padding: .45rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .9rem;
    background: rgba(255,255,255,.025);
}

.dashboard-nav a {
    padding: .65rem .85rem;
    border-radius: .65rem;
    color: inherit;
    text-decoration: none;
    opacity: .72;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: rgba(124,92,255,.16);
    opacity: 1;
}

.dashboard-link-card {
    color: inherit;
    text-decoration: none;
}

.dashboard-link-card:hover {
    border-color: rgba(124,92,255,.5);
}

.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.dashboard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .8rem;
    background: rgba(255,255,255,.025);
}

.dashboard-row-title {
    font-weight: 700;
}

.dashboard-row-meta,
.dashboard-row-details {
    opacity: .7;
}

.dashboard-row-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .8rem;
}

.dashboard-panel,
.dashboard-empty {
    margin-top: 1.5rem;
    padding: 1.4rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1rem;
    background: rgba(255,255,255,.025);
}

.dashboard-panel h2 {
    margin-top: 0;
}

.dashboard-note {
    margin-top: 1rem;
    opacity: .65;
}

.text-capitalize {
    text-transform: capitalize;
}

@media (max-width: 700px) {
    .dashboard-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-row-details {
        justify-content: flex-start;
    }
}

/* Dashboard V1 safe writes */

.dashboard-message {
    margin: 1rem 0;
    padding: .9rem 1rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .8rem;
    background: rgba(255,255,255,.035);
}

.dashboard-message-success {
    border-color: rgba(90,210,130,.35);
}

.dashboard-message-error {
    border-color: rgba(240,95,95,.4);
}

.dashboard-card-action {
    margin-top: 1rem;
}

.dashboard-setting-form {
    width: 100%;
}

.dashboard-setting-control {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.dashboard-input {
    min-width: 10rem;
    padding: .7rem .8rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: .65rem;
    background: rgba(0,0,0,.18);
    color: inherit;
}

.dashboard-input:disabled {
    opacity: .65;
}

@media (max-width: 700px) {
    .dashboard-setting-control {
        width: 100%;
    }

    .dashboard-input {
        width: 100%;
    }
}
/* Dashboard operator access */

.dashboard-operator-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: .45rem .7rem;
    border: 1px solid rgba(124,92,255,.45);
    border-radius: 999px;
    background: rgba(124,92,255,.14);
    font-size: .85rem;
    font-weight: 700;
}

/* =========================================================
   Dashboard Opportunities V1
   ========================================================= */

.opportunity-filters {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.4fr)
        minmax(180px, .9fr)
        minmax(180px, .9fr)
        auto;
    gap: .9rem;
    align-items: end;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1rem;
    background: rgba(255,255,255,.025);
}

.opportunity-filters label {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 650;
}

.opportunity-filters input,
.opportunity-filters select {
    min-height: 44px;
    padding: .7rem .8rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: .65rem;
    background: rgba(0,0,0,.18);
    color: inherit;
}

.opportunity-filter-actions {
    display: flex;
    gap: .55rem;
}

.opportunity-list {
    display: grid;
    gap: 1rem;
}

.opportunity-card {
    padding: 1.2rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1rem;
    background: rgba(255,255,255,.025);
}

.opportunity-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.opportunity-search-name {
    color: #a78bfa;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.opportunity-title {
    margin: .25rem 0 0;
    font-size: 1.15rem;
}

.opportunity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .4rem;
    color: var(--text-muted);
    font-size: .86rem;
}

.opportunity-status {
    flex-shrink: 0;
    padding: .4rem .65rem;
    border: 1px solid rgba(124,92,255,.35);
    border-radius: 999px;
    background: rgba(124,92,255,.12);
    color: var(--text-soft);
    font-size: .78rem;
    font-weight: 700;
}

.opportunity-metrics {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(125px, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.opportunity-metrics > div {
    padding: .8rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .75rem;
    background: rgba(0,0,0,.12);
}

.opportunity-metrics span {
    display: block;
    margin-bottom: .2rem;
    color: var(--text-muted);
    font-size: .78rem;
}

.opportunity-metrics strong {
    color: var(--text);
    font-size: 1rem;
}

.opportunity-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: .86rem;
}

@media (max-width: 900px) {
    .opportunity-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .opportunity-filters {
        grid-template-columns: 1fr;
    }

    .opportunity-filter-actions,
    .opportunity-filter-actions .button {
        width: 100%;
    }

    .opportunity-card-header,
    .opportunity-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   Dashboard Plan & Usage V1
   ========================================================= */

.plan-usage-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.plan-usage-heading p {
    margin: .35rem 0 0;
    color: var(--text-muted);
}

.plan-usage-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.plan-usage-meter {
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .9rem;
    background: rgba(0,0,0,.12);
}

.plan-usage-meter-limit {
    border-color: rgba(240,95,95,.42);
}

.plan-usage-meter-near {
    border-color: rgba(245,190,75,.38);
}

.plan-usage-meter-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.plan-usage-meter-header strong {
    color: var(--text);
}

.plan-usage-meter-header p {
    margin: .25rem 0 0;
    color: var(--text-muted);
    font-size: .84rem;
    line-height: 1.5;
}

.plan-usage-meter-value {
    flex-shrink: 0;
    color: var(--text-soft);
    font-weight: 700;
}

/* The usage bar is a <progress>: it carries its own value, so it needs no
   inline width. Its fill is a pseudo-element per engine, and those cannot
   share one selector list — an engine that does not recognise one of them
   drops the whole rule. */
.plan-usage-track {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: .65rem;
    margin-top: .9rem;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--dr-indigo);
}

.plan-usage-track::-webkit-progress-bar {
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

.plan-usage-track::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dr-indigo), #6366f1);
}

.plan-usage-track::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dr-indigo), #6366f1);
}

.plan-usage-meter-limit .plan-usage-track::-webkit-progress-value {
    background: #ef4444;
}

.plan-usage-meter-limit .plan-usage-track::-moz-progress-bar {
    background: #ef4444;
}

.plan-usage-meter-near .plan-usage-track::-webkit-progress-value {
    background: #d97706;
}

.plan-usage-meter-near .plan-usage-track::-moz-progress-bar {
    background: #d97706;
}

.plan-usage-meter-footer {
    margin-top: .65rem;
    color: var(--text-muted);
    font-size: .84rem;
}

.plan-usage-meter-footer strong {
    color: var(--text-soft);
}

.plan-usage-actions {
    margin-top: 1rem;
}

@media (max-width: 700px) {
    .plan-usage-heading,
    .plan-usage-meter-header {
        flex-direction: column;
    }

    .plan-usage-heading .button {
        width: 100%;
    }
}

/* =========================================================
   Dashboard Settings UX V2
   ========================================================= */

.settings-section {
    margin-top: 2rem;
}

.settings-section + .settings-section {
    margin-top: 2.5rem;
}

.settings-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-section-heading h2 {
    margin: .25rem 0 0;
    color: var(--text);
    font-size: 1.35rem;
}

.settings-section-heading p {
    margin: .45rem 0 0;
    color: var(--text-muted);
}

.settings-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.settings-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.2rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1rem;
    background: rgba(255,255,255,.025);
}

.settings-card-copy strong,
.settings-notification-card strong {
    color: var(--text);
    font-size: 1.02rem;
}

.settings-card-copy p,
.settings-notification-card p {
    margin: .45rem 0 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.settings-notification-card {
    min-height: auto;
    flex-direction: row;
    align-items: center;
}

.settings-current-value {
    margin-top: .75rem;
    color: var(--text-muted);
    font-size: .88rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .7rem;
}

.settings-value-control {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .5rem;
}

.settings-number-input {
    width: 100%;
    min-width: 0;
}

.settings-unit {
    flex-shrink: 0;
    color: var(--text-soft);
    font-weight: 700;
}

.settings-range {
    color: var(--text-muted);
    font-size: .78rem;
}

.settings-routing-note,
.settings-guidance {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .85rem;
    background: rgba(0,0,0,.12);
}

.settings-routing-note strong,
.settings-guidance strong {
    color: var(--text-soft);
}

.settings-routing-note p,
.settings-guidance p {
    margin: .35rem 0 0;
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.6;
}

.settings-readonly-badge {
    flex-shrink: 0;
    padding: .35rem .6rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 700;
}

@media (max-width: 700px) {
    .settings-section-heading,
    .settings-notification-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-notification-card form,
    .settings-notification-card .button,
    .settings-form .button {
        width: 100%;
    }
}

/* =========================================================
   Dashboard Searches V2B
   ========================================================= */

.searches-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: .85rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1rem;
    background: rgba(255,255,255,.02);
}

.searches-filter-query {
    flex: 1 1 320px;
}

.searches-filter-status {
    flex: 0 1 180px;
}

.searches-filter-query label,
.searches-filter-status label {
    display: block;
    margin-bottom: .35rem;
    color: var(--text-soft);
    font-size: .82rem;
    font-weight: 700;
}

.searches-filter-query input,
.searches-filter-status select {
    width: 100%;
}

.searches-filter-actions {
    display: flex;
    gap: .55rem;
}

.searches-list {
    display: grid;
    gap: 1rem;
}

.search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    padding: 1.2rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1rem;
    background: rgba(255,255,255,.025);
}

.search-card-main {
    min-width: 0;
}

.search-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.search-card-badges {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: .45rem;
}

.search-status-badge,
.search-mode-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 750;
}

.search-status-active {
    border: 1px solid rgba(34,197,94,.32);
    background: rgba(34,197,94,.09);
    color: #86efac;
}

.search-status-paused {
    border: 1px solid rgba(148,163,184,.25);
    background: rgba(148,163,184,.08);
    color: var(--text-soft);
}

.search-mode-badge {
    border: 1px solid rgba(124,58,237,.3);
    background: rgba(124,58,237,.09);
    color: #c4b5fd;
}

.search-card-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .8rem;
}

.search-card-filters > span {
    padding: .35rem .55rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: .55rem;
    color: var(--text-muted);
    font-size: .8rem;
}

.search-card-filters strong {
    margin-right: .25rem;
    color: var(--text-soft);
    font-weight: 700;
}

.search-card-activity {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.search-card-activity > div {
    display: flex;
    min-height: 82px;
    flex-direction: column;
    gap: .2rem;
    padding: .8rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: .75rem;
    background: rgba(0,0,0,.1);
}

.search-card-activity strong {
    color: var(--text);
}

.search-card-activity > div > span:last-child {
    color: var(--text-muted);
    font-size: .8rem;
}

.search-card-actions {
    display: flex;
    min-width: 115px;
    flex-direction: column;
    gap: .55rem;
}

.search-card-actions form,
.search-card-actions .button {
    width: 100%;
}

.search-edit-panel {
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(255,255,255,.07);
}

.search-edit-panel summary {
    width: fit-content;
    cursor: pointer;
    color: #c4b5fd;
    font-weight: 700;
}

.search-edit-form {
    margin-top: 1rem;
}

.search-edit-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: .9rem;
}

.search-edit-grid label {
    display: grid;
    gap: .35rem;
    color: var(--text-soft);
    font-size: .82rem;
    font-weight: 700;
}

.search-edit-grid input,
.search-edit-grid select {
    width: 100%;
}

@media (max-width: 800px) {
    .search-card {
        grid-template-columns: 1fr;
    }

    .search-card-actions {
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .search-card-actions form {
        width: auto;
        flex: 1 1 120px;
    }
}

@media (max-width: 700px) {
    .searches-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .searches-filter-status {
        flex-basis: auto;
    }

    .searches-filter-actions,
    .searches-filter-actions .button {
        width: 100%;
    }

    .search-card-heading {
        flex-direction: column;
    }

    .search-card-activity,
    .search-edit-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Dashboard Opportunities V1B
   ========================================================= */

.opportunity-filters-v1b {
    align-items: flex-end;
}

.opportunity-list-v1b {
    gap: 1rem;
}

.opportunity-card-v1b {
    overflow: hidden;
}

.opportunity-card-header-v1b {
    align-items: flex-start;
    gap: 1rem;
}

.opportunity-card-identity {
    min-width: 0;
}

.opportunity-secondary-badges {
    display: flex;
    flex-shrink: 0;
    align-items: flex-end;
    flex-direction: column;
    gap: .45rem;
}

.opportunity-confidence {
    display: inline-flex;
    padding: .25rem .5rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: .75rem;
    font-weight: 700;
}

.opportunity-marketplace {
    font-weight: 700;
}

.opportunity-economics {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1rem;
}

.opportunity-economics-primary {
    display: flex;
    min-height: 88px;
    flex-direction: column;
    justify-content: center;
    gap: .25rem;
    padding: .85rem;
    border: 1px solid rgba(124,58,237,.18);
    border-radius: .8rem;
    background: rgba(124,58,237,.055);
}

.opportunity-economics-primary span,
.opportunity-supporting-metrics span,
.opportunity-marketplace-id span {
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 650;
}

.opportunity-economics-primary strong {
    color: var(--text);
    font-size: 1.12rem;
}

.opportunity-supporting-metrics {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: .65rem;
    margin-top: .7rem;
}

.opportunity-supporting-metrics > div {
    display: flex;
    min-height: 64px;
    flex-direction: column;
    justify-content: center;
    gap: .18rem;
    padding: .7rem .8rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: .7rem;
    background: rgba(0,0,0,.1);
}

.opportunity-supporting-metrics strong {
    color: var(--text-soft);
}

.opportunity-card-footer-v1b {
    margin-top: 1rem;
}

.opportunity-marketplace-id {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .15rem;
}

.opportunity-marketplace-id code {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--text-soft);
}

.opportunity-history-note {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .85rem;
    background: rgba(0,0,0,.12);
}

.opportunity-history-note strong {
    color: var(--text-soft);
}

.opportunity-history-note p {
    margin: .3rem 0 0;
    color: var(--text-muted);
    font-size: .88rem;
}

@media (max-width: 850px) {
    .opportunity-economics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .opportunity-card-header-v1b {
        flex-direction: column;
    }

    .opportunity-secondary-badges {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .opportunity-economics,
    .opportunity-supporting-metrics {
        grid-template-columns: 1fr;
    }

    .opportunity-card-footer-v1b {
        align-items: flex-start;
        flex-direction: column;
    }

    .opportunity-card-footer-v1b .button {
        width: 100%;
    }
}

/* =========================================================
   Dashboard Overview V2
   ========================================================= */

.dashboard-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.overview-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.overview-summary-card {
    display: flex;
    min-height: 125px;
    flex-direction: column;
    gap: .35rem;
    padding: 1.15rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1rem;
    background: rgba(255,255,255,.025);
}

.overview-summary-card strong {
    color: var(--text);
    font-size: 1.2rem;
}

.overview-summary-card > span:last-child {
    color: var(--text-muted);
    font-size: .88rem;
}

.overview-attention {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(245,190,75,.35);
    border-radius: 1rem;
    background: rgba(217,119,6,.08);
}

.overview-attention p {
    margin: .3rem 0 0;
    color: var(--text-muted);
}

.overview-main-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.overview-panel,
.overview-secondary-panel {
    padding: 1.2rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1rem;
    background: rgba(255,255,255,.025);
}

.overview-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.overview-panel-heading h2 {
    margin: .2rem 0 0;
    color: var(--text);
    font-size: 1.25rem;
}

.overview-text-link {
    color: #c4b5fd;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}

.overview-text-link:hover {
    color: #ddd6fe;
    text-decoration: underline;
}

.overview-activity-list {
    display: grid;
    gap: .65rem;
}

.overview-activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: .8rem;
    background: rgba(0,0,0,.12);
}

.overview-activity-row strong {
    color: var(--text);
}

.overview-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .25rem;
    color: var(--text-muted);
    font-size: .78rem;
}

.overview-activity-value {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
}

.overview-activity-value span {
    color: var(--text-muted);
    font-size: .75rem;
}

.overview-empty {
    padding: 1rem;
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: .8rem;
}

.overview-empty p {
    margin: .35rem 0 0;
    color: var(--text-muted);
}

.overview-secondary-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1rem;
}

.overview-secondary-panel strong {
    display: block;
    margin-top: .25rem;
    color: var(--text);
}

.overview-secondary-panel p {
    max-width: 660px;
    margin: .35rem 0 0;
    color: var(--text-muted);
}

.overview-secondary-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: .6rem;
}

@media (max-width: 900px) {
    .overview-main-grid {
        grid-template-columns: 1fr;
    }

    .overview-secondary-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .dashboard-heading-row,
    .overview-attention,
    .overview-activity-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-heading-row form,
    .dashboard-heading-row .button,
    .overview-attention .button {
        width: 100%;
    }

    .overview-activity-value {
        align-items: flex-start;
    }

    .overview-secondary-actions,
    .overview-secondary-actions .button {
        width: 100%;
    }
}

/* =========================================================
   Dashboard Searches V2C Advanced Filters
   ========================================================= */

.searches-filter-shell {
    display: grid;
    gap: .9rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1rem;
    background: rgba(255,255,255,.02);
}

.searches-filter-quick label,
.searches-advanced-grid label {
    display: grid;
    gap: .35rem;
    color: var(--text-soft);
    font-size: .82rem;
    font-weight: 700;
}

.searches-filter-quick input,
.searches-advanced-grid input,
.searches-advanced-grid select {
    width: 100%;
    min-height: 44px;
    padding: .7rem .8rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: .65rem;
    background: rgba(0,0,0,.18);
    color: inherit;
}

.searches-advanced-filter {
    padding-top: .2rem;
}

.searches-advanced-filter summary {
    width: fit-content;
    cursor: pointer;
    color: #c4b5fd;
    font-size: .88rem;
    font-weight: 700;
}

.searches-advanced-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: .8rem;
    margin-top: .85rem;
}

.searches-filter-actions-v2c {
    justify-content: flex-end;
}

.searches-results-summary {
    margin: .8rem 0 1rem;
    color: var(--text-muted);
    font-size: .86rem;
}

.searches-results-summary strong {
    color: var(--text-soft);
}

@media (max-width: 1000px) {
    .searches-advanced-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .searches-advanced-grid {
        grid-template-columns: 1fr;
    }

    .searches-filter-actions-v2c {
        flex-direction: column;
    }
}


/* Roadmap 02 — Website search creation */

.searches-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.searches-page-heading .section-heading {
    margin-bottom: 0;
}

.search-create-panel {
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 1rem;
    background: var(--surface-card, rgba(255, 255, 255, 0.03));
}

.search-create-panel summary {
    cursor: pointer;
    font-weight: 700;
}

.search-create-form {
    display: grid;
    gap: 1.25rem;
    padding-top: 1.25rem;
}

.search-create-intro {
    display: grid;
    gap: 0.35rem;
}

.search-create-intro span,
.search-create-actions span {
    opacity: 0.78;
}

.search-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.search-create-grid label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
}

.search-create-grid input,
.search-create-grid select {
    width: 100%;
}

.search-create-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .searches-page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .searches-page-heading > .button {
        width: 100%;
    }

    .search-create-grid {
        grid-template-columns: 1fr;
    }

    .search-create-actions,
    .search-create-actions .button {
        width: 100%;
    }
}

/* Roadmap 03 — Saved Opportunities / Watchlist */

.opportunity-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.opportunity-card-actions form,
.watchlist-card-actions form {
    margin: 0;
}

.watchlist-usage {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-end;
    min-width: 8rem;
}

.watchlist-usage span {
    font-size: 0.82rem;
    opacity: 0.72;
}

.watchlist-grid {
    display: grid;
    gap: 1rem;
}

.watchlist-card {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.25rem;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 1rem;
    background: var(--surface-color, rgba(255, 255, 255, 0.03));
}

.watchlist-card-main {
    min-width: 0;
}

.watchlist-card h2 {
    margin: 0.35rem 0 0.7rem;
    font-size: 1.05rem;
}

.watchlist-card-kicker,
.watchlist-card-meta,
.watchlist-marketplace-id {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.watchlist-card-kicker,
.watchlist-marketplace-id {
    font-size: 0.82rem;
    opacity: 0.76;
}

.watchlist-card-meta {
    margin-bottom: 0.8rem;
}

.watchlist-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .watchlist-card {
        flex-direction: column;
    }

    .watchlist-card-actions,
    .opportunity-card-actions {
        justify-content: flex-start;
    }

    .watchlist-usage {
        align-items: flex-start;
    }
}

/* Phase 06 — Sourcing Assistant */
.sourcing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 1.5rem;
    align-items: start;
}

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

.sourcing-field {
    display: grid;
    gap: 0.45rem;
}

.sourcing-field-wide,
.sourcing-form-actions {
    grid-column: 1 / -1;
}

.sourcing-field label {
    font-weight: 700;
}

.sourcing-field input {
    width: 100%;
}

.sourcing-field small,
.sourcing-methodology,
.sourcing-empty-result p {
    opacity: 0.75;
}

.optional-label {
    font-weight: 400;
    opacity: 0.65;
}

.sourcing-money-input {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.sourcing-money-input > span {
    font-weight: 800;
}

.sourcing-check-button {
    width: 100%;
    min-height: 3rem;
}

.sourcing-result-card {
    display: grid;
    gap: 1.2rem;
}

.sourcing-decision {
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid currentColor;
}

.sourcing-decision span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
}

.sourcing-decision strong {
    display: block;
    margin-top: 0.2rem;
    font-size: clamp(2rem, 8vw, 3.2rem);
    line-height: 1;
}

.sourcing-decision p {
    margin: 0.75rem 0 0;
}

.sourcing-decision-buy {
    color: #1f8f5f;
}

.sourcing-decision-skip {
    color: #b54a4a;
}

.sourcing-decision-review {
    color: #9a741c;
}

.sourcing-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.sourcing-metrics > div {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem;
    border: 1px solid var(--border-color, rgba(127, 127, 127, 0.25));
    border-radius: 0.8rem;
}

.sourcing-metrics span {
    font-size: 0.8rem;
    opacity: 0.72;
}

.sourcing-metrics strong {
    font-size: 1.05rem;
}

.sourcing-detail-panel,
.sourcing-upgrade-note {
    padding: 1rem;
    border-radius: 0.8rem;
    background: rgba(127, 127, 127, 0.08);
}

.sourcing-detail-panel h2 {
    margin-top: 0;
    font-size: 1rem;
}

.sourcing-evidence-list {
    display: grid;
    gap: 0.5rem;
}

.sourcing-evidence-list a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
}

.sourcing-quota {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.sourcing-methodology {
    margin: 0;
    font-size: 0.78rem;
}

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

    .sourcing-form {
        grid-template-columns: 1fr;
    }

    .sourcing-field-wide,
    .sourcing-form-actions {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .sourcing-metrics {
        grid-template-columns: 1fr;
    }

    .sourcing-form-card,
    .sourcing-result-card {
        padding: 1rem;
    }
}

/* Phase 07 — Pricing & Market Intelligence */
.pricing-band-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pricing-band-grid > div {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
    border: 1px solid var(--border-color, rgba(127, 127, 127, 0.25));
    border-radius: 0.8rem;
}

.pricing-band-grid span {
    font-size: 0.8rem;
    opacity: 0.72;
}

.pricing-band-grid strong {
    font-size: 1.1rem;
}

.sourcing-turnover-note {
    display: grid;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.85rem;
    border: 1px solid var(--border-color, rgba(127, 127, 127, 0.25));
    border-radius: 0.8rem;
}

.sourcing-turnover-note span,
.sourcing-turnover-note small {
    opacity: 0.76;
}

@media (max-width: 620px) {
    .pricing-band-grid {
        grid-template-columns: 1fr;
    }
}


/* Phase 08 — Inventory & Profit Ledger */
.inventory-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.inventory-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 2fr);
    gap: 1.25rem;
    align-items: start;
}

/* A grid item keeps min-width: auto unless told otherwise, so it refuses to
   shrink below its own min-content width. Once the stock table renders, the
   right-hand panel's min-content is the table's — about 1180px — so the panel
   grew past its track and took the page with it, scrolling the whole layout
   sideways at tablet width instead of scrolling the table inside its wrapper.
   minmax(0, ...) above fixes the TRACK; this fixes the ITEM.
   Measured in Chromium at 768px: panel 1360px inside a 717px track before,
   717px after, with .inventory-table-wrap then scrolling the table as
   intended (client 653, scroll 1296). */
.inventory-layout > * {
    min-width: 0;
}

.inventory-form,
.inventory-form > div {
    display: grid;
    gap: 0.45rem;
}

.inventory-form {
    gap: 1rem;
}

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

.inventory-form input,
.inventory-form select {
    width: 100%;
}

.inventory-quota {
    display: block;
    margin-top: 1rem;
    opacity: 0.72;
}

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

.inventory-table {
    width: 100%;
    border-collapse: collapse;
}

.inventory-table th,
.inventory-table td {
    padding: 0.85rem 0.7rem;
    border-bottom: 1px solid rgba(127, 127, 127, 0.18);
    text-align: left;
    vertical-align: top;
}

.inventory-table td > span {
    display: block;
    margin-top: 0.2rem;
    opacity: 0.72;
}

.inventory-inline-form {
    display: grid;
    grid-template-columns: 105px repeat(4, 82px) auto;
    gap: 0.45rem;
    min-width: 575px;
}

.inventory-inline-form input,
.inventory-inline-form select {
    width: 100%;
}

.inventory-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    background: rgba(127, 127, 127, 0.12);
    font-size: 0.8rem;
    font-weight: 600;
}

.inventory-status-listed {
    background: rgba(90, 88, 246, 0.16);
}

.inventory-status-sold {
    background: rgba(31, 170, 109, 0.16);
}

@media (max-width: 1050px) {
    .inventory-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .inventory-summary-grid,
    .inventory-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Phase 08.1 — shared sticky dashboard navigation */
.dashboard-nav-sticky {
    position: sticky;
    top: 76px;
    z-index: 900;

    background: rgba(8, 16, 31, 0.96);

    backdrop-filter: blur(16px);
}

@media (max-width: 991px) {
    .dashboard-nav-sticky {
        top: 68px;
    }
}

/* Phase 09 — Reseller Analytics */
.analytics-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.analytics-bar-list {
    display: grid;
    gap: 0.8rem;
}

.analytics-bar-row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 90px;
    gap: 0.75rem;
    align-items: center;
}

.analytics-bar-track {
    height: 0.7rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(127, 127, 127, 0.14);
}

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

.analytics-table {
    width: 100%;
    border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid rgba(127, 127, 127, 0.18);
    text-align: left;
}

.analytics-upgrade-panel {
    margin-top: 1.25rem;
}

@media (max-width: 1050px) {
    .analytics-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .analytics-summary-grid {
        grid-template-columns: 1fr;
    }

    .analytics-bar-row {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .analytics-bar-row strong {
        grid-column: 2;
    }
}

/* Phase 10 — AI Listing Assistant */
.listing-assistant-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.4fr);
    gap: 1.25rem;
    align-items: start;
}

.listing-assistant-form {
    display: grid;
    gap: 1rem;
}

.listing-assistant-form > div {
    display: grid;
    gap: 0.45rem;
}

.listing-assistant-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.listing-assistant-form input,
.listing-assistant-form textarea {
    width: 100%;
}

.listing-assistant-form textarea,
.listing-output-field textarea {
    resize: vertical;
}

.listing-assistant-safety-note {
    margin-top: 1rem;
    opacity: 0.76;
}

.listing-output-panel {
    min-height: 430px;
}

.listing-output-field {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.listing-output-field > span,
.listing-output-field > label {
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0.72;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.listing-output-field textarea {
    width: 100%;
}

.listing-output-field ul {
    margin: 0;
    padding-left: 1.2rem;
}

.listing-output-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(127, 127, 127, 0.18);
    opacity: 0.72;
    font-size: 0.86rem;
}

@media (max-width: 950px) {
    .listing-assistant-layout {
        grid-template-columns: 1fr;
    }
}

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


/* Final Polish 01 — launch UX */
.inventory-inline-field,
.inventory-inline-save {
    display: grid;
    gap: 0.3rem;
    align-content: end;
}

.inventory-inline-field > span,
.inventory-inline-save > span {
    color: var(--text-muted);
    font-size: var(--dr-text-xs);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: uppercase;
}

.inventory-inline-save .button {
    width: 100%;
}

.sourcing-next-actions {
    display: grid;
    gap: 0.7rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.sourcing-next-actions > span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sourcing-next-actions > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.sourcing-next-actions small {
    color: var(--text-muted);
}

@media (max-width: 700px) {
    .dashboard-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .inventory-inline-form {
        min-width: 690px;
    }

    .sourcing-next-actions > div {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sourcing-next-actions .button {
        width: 100%;
    }
}

/* ROADMAP 11: OPPORTUNITIES 2.0 */
.opportunity-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
}

.opportunity-summary-card {
    border: 1px solid currentColor;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
}

.opportunity-summary-card span {
    display: block;
    opacity: 0.8;
}

.opportunity-summary-card strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.15rem;
}

.opportunity-signal {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-weight: 700;
}

.opportunity-signal-reason {
    margin: 0.85rem 0;
    line-height: 1.5;
}

.opportunity-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opportunity-checkbox input {
    width: auto;
}

@media (max-width: 900px) {
    .opportunity-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .opportunity-summary-grid {
        grid-template-columns: 1fr;
    }
}
/* END ROADMAP 11: OPPORTUNITIES 2.0 */

/* ROADMAP 12: OFFER FINDER */
.offer-finder-panel {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid currentColor;
    border-radius: 0.8rem;
}

.offer-finder-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.offer-finder-kicker,
.offer-finder-heading strong,
.offer-finder-range span,
.offer-finder-range strong {
    display: block;
}

.offer-finder-kicker {
    margin-bottom: 0.15rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.8;
}

.offer-finder-candidate {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.offer-finder-range {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.offer-finder-range > div {
    padding: 0.7rem;
    border: 1px solid currentColor;
    border-radius: 0.65rem;
}

.offer-finder-range strong {
    margin-top: 0.15rem;
}

.offer-finder-reason,
.offer-finder-disclaimer {
    margin: 0.8rem 0 0;
    line-height: 1.5;
}

.offer-finder-disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 700px) {
    .offer-finder-range {
        grid-template-columns: 1fr;
    }

    .offer-finder-heading {
        flex-direction: column;
    }
}
/* END ROADMAP 12: OFFER FINDER */

/* ROADMAP 13: SELLER INTELLIGENCE */
.seller-intelligence-panel { margin:1rem 0; padding:1rem; border:1px solid currentColor; border-radius:.8rem; }
.seller-intelligence-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.seller-intelligence-kicker { display:block; margin-bottom:.15rem; font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; opacity:.8; }
.seller-intelligence-signal { display:inline-flex; padding:.2rem .55rem; border:1px solid currentColor; border-radius:999px; font-size:.85rem; font-weight:700; }
.seller-intelligence-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; margin-top:.9rem; }
.seller-intelligence-grid > div { padding:.7rem; border:1px solid currentColor; border-radius:.65rem; }
.seller-intelligence-grid span,.seller-intelligence-grid strong { display:block; }
.seller-intelligence-reason,.seller-intelligence-disclaimer { margin:.8rem 0 0; line-height:1.5; }
.seller-intelligence-disclaimer { font-size:.9rem; opacity:.8; }
@media (max-width:700px) { .seller-intelligence-grid { grid-template-columns:1fr; } .seller-intelligence-heading { flex-direction:column; } }
/* END ROADMAP 13: SELLER INTELLIGENCE */
/* Roadmap 14 — explicit, user-owned Seller Watch display state. */
.opportunity-card-seller-watched {
    border-color: rgba(46, 204, 113, .7);
    box-shadow: 0 0 0 2px rgba(46, 204, 113, .12);
}

.seller-watch-badge {
    border: 1px solid rgba(46, 204, 113, .55);
    border-radius: 999px;
    color: #8ce8b3;
    font-size: .78rem;
    font-weight: 700;
    padding: .28rem .55rem;
}

.seller-watch-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: flex-end;
}

.seller-watch-actions form { margin: 0; }

.seller-watch-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.seller-watch-card {
    align-items: center;
    background: var(--surface, #151923);
    border: 1px solid var(--border, #303746);
    border-radius: 14px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
}

.seller-watch-card h2 { margin: .25rem 0; }
.seller-watch-card p { margin: 0; }

.seller-watch-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    margin: .8rem 0 0;
}

.seller-watch-meta div { min-width: 9rem; }
.seller-watch-meta dt { font-size: .78rem; opacity: .75; }
.seller-watch-meta dd { font-weight: 700; margin: .1rem 0 0; }

@media (max-width: 640px) {
    .seller-watch-card { align-items: stretch; flex-direction: column; }
    .seller-watch-actions { align-items: stretch; flex-direction: column; }
    .seller-watch-actions .button { width: 100%; }
}

/* ROADMAP 15: PRICING INTELLIGENCE 2.0 */
.pricing-intelligence-panel {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid currentColor;
    border-radius: .8rem;
}

.pricing-intelligence-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.pricing-intelligence-kicker {
    display: block;
    margin-bottom: .15rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .8;
}

.pricing-intelligence-scope {
    display: inline-flex;
    padding: .2rem .55rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
}

.pricing-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-top: .9rem;
}

.pricing-intelligence-grid article {
    min-width: 0;
    padding: .8rem;
    border: 1px solid currentColor;
    border-radius: .65rem;
}

.pricing-intelligence-grid h3 {
    margin: 0 0 .65rem;
    font-size: 1rem;
}

.pricing-intelligence-grid dl,
.pricing-intelligence-grid p {
    margin: 0;
}

.pricing-intelligence-grid dl > div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .25rem 0;
}

.pricing-intelligence-grid dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.pricing-intelligence-grid p {
    margin-top: .65rem;
    font-size: .85rem;
    line-height: 1.4;
    opacity: .82;
}

.pricing-intelligence-warning,
.pricing-intelligence-disclaimer {
    margin: .8rem 0 0;
    line-height: 1.5;
}

.pricing-intelligence-disclaimer {
    font-size: .9rem;
    opacity: .82;
}

@media (max-width: 800px) {
    .pricing-intelligence-grid {
        grid-template-columns: 1fr;
    }

    .pricing-intelligence-heading {
        flex-direction: column;
    }
}

@media (max-width: 800px) {
    .dealradar-score-heading {
        flex-direction: column;
    }

    .dealradar-score-meta {
        justify-content: flex-start;
    }

    .dealradar-score-components {
        grid-template-columns: 1fr;
    }
}
/* END ROADMAP 16: DEALRADAR SCORE */

/* ROADMAP 17: CONNECTED SOURCING LIFECYCLE */
.opportunity-purchase-flow {
    position: relative;
}

.opportunity-purchase-flow > summary {
    cursor: pointer;
    list-style: none;
}

.opportunity-purchase-flow > summary::-webkit-details-marker {
    display: none;
}

.opportunity-purchase-form {
    margin-top: .75rem;
    padding: .9rem;
    border: 1px solid currentColor;
    border-radius: .7rem;
    min-width: min(42rem, 86vw);
}

.opportunity-purchase-form > p {
    margin-top: 0;
    line-height: 1.45;
}

.opportunity-purchase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.opportunity-purchase-grid label,
.opportunity-purchase-confirm {
    display: grid;
    gap: .3rem;
}

.opportunity-purchase-condition {
    grid-column: 1 / -1;
}

.opportunity-purchase-confirm {
    grid-template-columns: auto 1fr;
    align-items: start;
    margin: .85rem 0;
    line-height: 1.4;
}

.inventory-source {
    display: grid;
    gap: .2rem;
    margin-top: .45rem;
    font-size: .85rem;
}

.inventory-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.inventory-draft-link {
    display: inline-block;
    margin-top: .45rem;
    font-weight: 700;
}

.listing-inventory-source {
    display: grid;
    gap: .25rem;
    margin-bottom: .9rem;
    padding: .75rem;
    border: 1px solid currentColor;
    border-radius: .65rem;
}

@media (max-width: 800px) {
    .opportunity-purchase-grid {
        grid-template-columns: 1fr;
    }

    .opportunity-purchase-condition {
        grid-column: auto;
    }
}
/* END ROADMAP 17: CONNECTED SOURCING LIFECYCLE */

/* ROADMAP 18: IMAGE STUDIO */
.image-studio-inventory-context,
.image-studio-safety {
    display: grid;
    gap: .3rem;
    margin-bottom: 1rem;
}

.image-studio-safety {
    padding: .9rem 1rem;
    border: 1px solid currentColor;
    border-radius: .75rem;
}

.image-studio-safety p,
.image-studio-review-note {
    margin: 0;
    line-height: 1.5;
}

.image-studio-layout {
    display: grid;
    grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.image-studio-controls {
    display: grid;
    gap: .85rem;
}

.image-studio-controls h2 {
    margin: .4rem 0 0;
}

.image-studio-controls label,
.image-studio-background-controls {
    display: grid;
    gap: .35rem;
}

.image-studio-controls input[type="range"],
.image-studio-controls select,
.image-studio-file input {
    width: 100%;
}

.image-studio-pan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.image-studio-background-controls {
    padding: .8rem;
    border: 1px solid currentColor;
    border-radius: .65rem;
}

.image-studio-check {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.image-studio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.image-studio-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.image-studio-compare figure {
    min-width: 0;
    margin: 0;
}

.image-studio-compare figcaption {
    margin-bottom: .5rem;
}

.image-studio-preview-frame {
    display: grid;
    place-items: center;
    min-height: 24rem;
    padding: .75rem;
    overflow: hidden;
    border: 1px solid currentColor;
    border-radius: .75rem;
}

.image-studio-preview-frame img,
.image-studio-preview-frame canvas {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.image-studio-preview-frame [hidden] {
    display: none;
}

.image-studio-review-note {
    margin-top: 1rem;
}

@media (max-width: 1000px) {
    .image-studio-layout,
    .image-studio-compare {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .image-studio-pan-grid {
        grid-template-columns: 1fr;
    }

    .image-studio-preview-frame {
        min-height: 18rem;
    }
}
/* END ROADMAP 18: IMAGE STUDIO */

/* ROADMAP 19: MARKET / NICHE EXPLORER */
.market-explorer-scope { display: grid; gap: .65rem; margin-bottom: 1rem; }
.market-explorer-window { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; }
.market-explorer-window label { width: 100%; font-weight: 700; }
.market-explorer-window select { min-width: 12rem; }
.market-explorer-section { margin-top: 1rem; }
.market-explorer-table-wrap { overflow-x: auto; }
.market-explorer-table { width: 100%; border-collapse: collapse; }
.market-explorer-table th, .market-explorer-table td { padding: .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid currentColor; }
.market-explorer-table td span { display: block; margin-top: .2rem; font-size: .85rem; }
@media (max-width: 720px) {
    .market-explorer-window { align-items: stretch; }
    .market-explorer-window select, .market-explorer-window .button { width: 100%; }
}
/* END ROADMAP 19: MARKET / NICHE EXPLORER */

/* The "DealRadar hero redesign v1" block was removed: none of its
   dr-hero__* markup exists any more, and its bare .dr-hero rules were
   silently applying a stale background, container width and padding to the
   current hero, which reuses that class name. */

/* Search controls: consistent sizing and dark-theme keyboard focus. */
.search-create-grid, .search-edit-grid { align-items: start; }
.search-create-grid > label, .search-edit-grid > label { align-content: start; min-width: 0; }
.search-create-grid input:not([type="checkbox"]), .search-create-grid select,
.search-edit-grid input:not([type="checkbox"]), .search-edit-grid select {
    box-sizing: border-box; width: 100%; min-height: 44px;
    padding: .65rem .8rem; border: 1px solid #46516a; border-radius: .5rem;
    background: #0b1423; color: #f1f5f9; font: inherit; color-scheme: dark;
}
.search-create-grid input::placeholder, .search-edit-grid input::placeholder { color: #aab6c9; }
.search-create-grid small, .search-edit-grid small { color: #bbc5d5; font-weight: 400; line-height: 1.5; }
.search-create-grid :is(input,select):focus-visible,
.search-edit-grid :is(input,select):focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
/* A wrapping secondary navigation must not cover the search form. */
.dashboard-nav-sticky { position: static; }
#new-search { scroll-margin-top: 10rem; }
