/* =========================
   VARIABLES
========================= */

:root {
    --bg: #f6f2eb;
    --card: #ffffff;
    --text: #2a2a2a;
    --muted: #6f655d;
    --text-soft: #5f564f;
    --border: #e8e1d8;

    --accent: #b89a6a;        /* warm bronze */
    --accent-hover: #a7895c;
    --accent-soft: #f3ebe1;
    --accent-text: #7a5a2c;
    --accent-text-hover: #664a23;

    --green: #6b7a3a;           /* olive — calm, optimistic */
    --green-soft: rgba(107, 122, 58, 0.10);
    --green-text: #434e1c;
    --sport-blue: #7fa7c0;
    --sport-blue-soft: rgba(127, 167, 192, 0.18);
    --sport-ink: #2f3438;
    --sport-ink-soft: rgba(47, 52, 56, 0.12);
    --gt-red: #b73a2d;
    --gt-red-soft: rgba(183, 58, 45, 0.18);
    --cyber-cyan: #62d4e3;
    --cyber-cyan-soft: rgba(98, 212, 227, 0.2);
    --cyber-violet: #7b70d8;
    --cyber-violet-soft: rgba(123, 112, 216, 0.18);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 20px;
    --shadow-sm: 0 8px 24px rgba(42, 42, 42, 0.06);
    --shadow-md: 0 14px 34px rgba(42, 42, 42, 0.07);

    --fs-xs: 13px;
    --fs-sm: 14px;
    --fs-base: 16px;
    --fs-md: 17px;
    --fs-lg: 20px;
    --fs-xl: clamp(28px, 3vw, 38px);
    --fs-hero: clamp(36px, 5vw, 52px);

    --lh-tight: 1.15;
    --lh-snug: 1.3;
    --lh-body: 1.6;

    --icon-xs: 10px;
    --icon-sm: 12px;
    --icon-md: 13px;
    --icon-base: 14px;
}

/* =========================
   BASE
========================= */

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    background: transparent;
    color: var(--text);
    position: relative;
    overflow-x: clip;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 600px) {
    #bg-canvas {
        display: none;
    }
}

h1,
h2,
h3,
.topbar-logo,
.footer-logo {
    font-family: 'Manrope', sans-serif;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.icon {
    width: var(--icon-base);
    height: var(--icon-base);
    display: inline-block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

/* =========================
   LAYOUT
========================= */

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 20px 20px 70px;
}

.gate-only-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (max-width: 640px) {
    .gate-only-main {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 20px;
    }
}

/* =========================
   TOPBAR
========================= */

.topbar {
    position: sticky;
    top: 0;
    padding: 10px 0;
    background: linear-gradient(180deg, rgba(246, 242, 235, 0.82) 0%, rgba(246, 242, 235, 0.45) 100%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(232, 225, 216, 0.45);
    z-index: 40;
}

.topbar-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(120% 180% at 100% 0%, #fff2df 0%, rgba(255, 242, 223, 0) 62%),
        linear-gradient(180deg, #fffdf9 0%, #fffaf3 100%),
        var(--card);
    box-shadow: var(--shadow-md);
}

.topbar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-logo {
    color: black;
    font-size: clamp(30px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.2px;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.topbar-logo::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.topbar-logo:hover {
    color: var(--accent-text);
    text-decoration: none;
}

.topbar-logo:hover::after {
    width: 100%;
}

.topbar-logo-group {
    display: flex;
    align-items: center;
    gap: 7px;
}

.topbar-ai-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-text);
    border: none;
    padding: 0;
    background: none;
    line-height: 1;
    align-self: center;
    margin-bottom: 2px;
}

.footer-logo-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-ai-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent-text);
    border: 1px solid rgba(184, 154, 106, 0.4);
    border-radius: 5px;
    padding: 2px 5px;
    background: rgba(255, 247, 238, 0.6);
    line-height: 1;
    align-self: center;
}

.topbar-note {
    color: var(--text-soft);
    font-size: var(--fs-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

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

.topbar-user-link {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text-soft);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 10px;
    text-decoration: none;
    cursor: pointer;
}

.topbar-user-link:hover {
    border-color: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
}

.topbar-inline-form {
    margin: 0;
    padding: 0;
}

.topbar-inline-form .topbar-user-link {
    font-family: inherit;
}

.landing-page .topbar {
    background: linear-gradient(180deg, rgba(246, 242, 235, 0.68) 0%, rgba(246, 242, 235, 0.22) 100%);
    border-bottom: 0;
}

.landing-page .topbar-inner {
    max-width: 960px;
    background:
        radial-gradient(120% 180% at 100% 0%, rgba(255, 242, 223, 0.86) 0%, rgba(255, 242, 223, 0) 62%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.82) 0%, rgba(255, 250, 243, 0.74) 100%);
    border-color: transparent;
    box-shadow: none;
}

.landing-main {
    padding-top: 0;
    padding-bottom: 0;
}

/* homepage uses sl-* components at landing width */
.landing-main .sl-metrics {
    margin-top: 40px;
    margin-bottom: 0;
}

.landing-main .sl-section {
    margin-top: 52px;
    margin-bottom: 0;
}

.landing-main .mkt-saas-teaser {
    margin-top: 52px;
}

.landing-main .sl-cta-strip {
    margin-top: 52px;
    margin-bottom: 0;
    padding: 44px 48px 72px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(255, 247, 228, 0.9) 0%, rgba(255, 242, 215, 0) 60%),
        linear-gradient(180deg, rgba(255, 252, 245, 0.85) 0%, rgba(255, 245, 228, 0.7) 100%);
    border: 1px solid rgba(184, 154, 106, 0.18);
    border-bottom: none;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

/* ── homepage pricing teaser ── */
.mkt-pricing-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.mkt-plan-pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.mkt-plan-pill::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(122deg, rgba(184, 154, 106, 0.09) 0%, rgba(184, 154, 106, 0) 42%),
        linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.16) 49%, transparent 64%);
    background-size: 100% 100%, 220% 100%;
    background-position: 0 0, 120% 0;
    background-repeat: no-repeat;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mkt-plan-pill::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: calc(var(--radius-lg) - 5px);
    border: 1px solid rgba(184, 154, 106, 0.08);
    background:
        linear-gradient(135deg, transparent 0 82%, rgba(47, 52, 56, 0.16) 83% 85%, transparent 86% 100%) top right / 16px 16px no-repeat,
        linear-gradient(90deg, rgba(183, 58, 45, 0.26), transparent 40%) top left / 34px 2px no-repeat;
    pointer-events: none;
    transition: border-color 0.25s ease;
}

.mkt-plan-pill-name::after {
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    margin-top: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--sport-blue));
    opacity: 0.65;
}

.mkt-plan-pill:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 154, 106, 0.42);
    box-shadow: 0 10px 28px rgba(42, 34, 22, 0.08), 0 0 0 1px rgba(183, 58, 45, 0.12);
}

.mkt-plan-pill:hover::before {
    opacity: 1;
    transform: translateX(5px);
}

.mkt-plan-pill:hover::after {
    border-color: rgba(184, 154, 106, 0.16);
}

.mkt-plan-pill--featured {
    border-color: rgba(184,154,106,0.5);
    overflow: visible;
    background:
        radial-gradient(84% 110% at 0% 100%, rgba(127, 167, 192, 0.14) 0%, rgba(127, 167, 192, 0) 56%),
        linear-gradient(102deg, rgba(183, 58, 45, 0.1) 0%, rgba(183, 58, 45, 0) 28%),
        radial-gradient(120% 160% at 100% 0%, rgba(255,242,223,0.7) 0%, rgba(255,242,223,0) 60%),
        var(--card);
    box-shadow: inset 3px 0 0 rgba(183, 58, 45, 0.44);
}

.mkt-plan-pill--featured::before {
    animation: gt-sheen-pass 5.2s cubic-bezier(.25,.65,.25,1) infinite;
}

.mkt-plan-pill--featured:hover::before {
    animation-duration: 2.4s;
}

@keyframes gt-sheen-pass {
    0%, 16% {
        background-position: 0 0, 120% 0;
    }
    28% {
        background-position: 0 0, -35% 0;
    }
    100% {
        background-position: 0 0, -35% 0;
    }
}

.mkt-plan-pill-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f4ece2;
    background: linear-gradient(145deg, #2f3438, #3d4449);
    border: 1px solid rgba(127, 167, 192, 0.38);
    border-radius: 999px;
    padding: 2px 8px;
    box-shadow: 0 2px 10px rgba(47, 52, 56, 0.26);
}

.mkt-plan-pill-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    background: var(--gt-red);
    box-shadow: 0 0 0 3px rgba(183, 58, 45, 0.2);
    vertical-align: middle;
}

.mkt-plan-pill-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mkt-plan-pill-price {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    color: #1f1b16;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.mkt-plan-pill-mo {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft);
    letter-spacing: 0;
}

.mkt-plan-pill-desc {
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.4;
    margin-top: 2px;
}

@media (max-width: 720px) {
    .mkt-pricing-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 460px) {
    .mkt-pricing-row {
        grid-template-columns: 1fr;
    }
}

.landing-hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 20px;
    max-width: 980px;
}

.landing-hero-logo {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 3.2vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    background: linear-gradient(90deg, #1f1b16 0%, #1f1b16 35%, #c9a96e 50%, #1f1b16 65%, #1f1b16 100%);
    background-size: 300% 100%;
    background-position: 0% 0%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-hero-logo:hover {
    text-decoration: none;
    background-position: 100% 0%;
}

.landing-hero-logo span {
    margin-left: 2px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-text);
    -webkit-text-fill-color: var(--accent-text);
    border: none;
    padding: 0;
    vertical-align: super;
    font-weight: 700;
}

.landing-hero-login {
    border: 1px solid rgba(184, 154, 106, 0.44);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-text);
    background: rgba(255, 250, 242, 0.64);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.landing-hero-login:hover {
    text-decoration: none;
    background: rgba(255, 248, 236, 0.92);
    border-color: rgba(184, 154, 106, 0.65);
    transform: translateY(-1px);
}

/* =========================
   PUBLIC NAV
========================= */
.pub-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-left: calc(-50vw + 50% - 20px);
    margin-right: calc(-50vw + 50% - 20px);
    margin-bottom: 32px;
    padding: 14px max(calc((100vw - 880px) / 2 + 20px), 20px);
    width: 100vw;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.pub-nav.is-scrolled {
    background: rgba(246, 242, 235, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Desktop drawer is inline flex */
.pub-nav-drawer {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.pub-nav-logo {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    flex-shrink: 0;
    color: #1f1b16;
    display: flex;
    align-items: baseline;
    gap: 5px;
    transition: opacity 0.2s;
}

.pub-nav-logo:hover {
    text-decoration: none;
    opacity: 0.75;
}

.pub-nav-logo span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-text);
    font-family: inherit;
    line-height: 1;
}


.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pub-nav-item {
    position: relative;
}

.pub-nav-link,
.pub-nav-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #3d3228;
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}

.pub-nav-link:hover,
.pub-nav-btn:hover {
    background: rgba(184, 154, 106, 0.12);
    color: #1f1b16;
    text-decoration: none;
}

.pub-nav-btn svg {
    transition: transform 0.18s;
}

.pub-nav-item--dd:hover .pub-nav-btn svg,
.pub-nav-item--dd:focus-within .pub-nav-btn svg {
    transform: rotate(180deg);
}

/* Dropdown panel */
.pub-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #fff;
    border: 1px solid rgba(184, 154, 106, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(42, 34, 22, 0.11), 0 1px 4px rgba(42, 34, 22, 0.06);
    list-style: none;
    margin: 0;
    padding: 14px 6px 6px; /* top padding bridges the gap between button and panel */
    min-width: 188px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s 0.08s, transform 0.15s 0.08s; /* 80ms hide delay */
    z-index: 200;
}

.pub-nav-item--dd:hover .pub-nav-dropdown,
.pub-nav-item--dd:focus-within .pub-nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.12s, transform 0.12s; /* no delay on show */
}

.pub-nav-drop-link {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #3d3228;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}

.pub-nav-drop-link:hover {
    background: rgba(184, 154, 106, 0.1);
    color: #1f1b16;
    text-decoration: none;
}

.pub-nav-login {
    flex-shrink: 0;
    border: 1px solid rgba(184, 154, 106, 0.3);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #3d3228;
    background: none;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s, border-color 0.2s;
}

.pub-nav-login:hover {
    text-decoration: none;
    color: #1f1b16;
    border-color: rgba(184, 154, 106, 0.55);
}

/* ── Public nav: CTA button ── */
.pub-nav-cta {
    flex-shrink: 0;
    display: inline-block;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #3d3228;
    background: none;
    border: 1px solid rgba(184, 154, 106, 0.3);
    border-radius: 999px;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}
.pub-nav-cta:hover {
    color: #1f1b16;
    border-color: rgba(184, 154, 106, 0.55);
    text-decoration: none;
}

.pub-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 16px;
}

/* ── Hamburger button (hidden on desktop) ── */
/* Auth list items hidden on desktop (shown inside menu on mobile) */
.pub-nav-item--auth {
    display: none;
}

/* Close button hidden on desktop */
.pub-nav-close {
    display: none;
}

.pub-nav-hamburger {
    display: none;
}
.pub-nav-overlay {
    display: none;
}

/* Mobile panel nav: hidden on desktop */
.mnav { display: none; }

/* ── Mobile public nav ── */
@media (max-width: 768px) {

    /* Nav bar */
    .pub-nav {
        position: sticky;
        top: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        margin-top: 0;
        margin-bottom: 32px;
        padding: 0 20px 0 30px;
        height: 52px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border: none;
        justify-content: space-between;
        gap: 0;
    }
    .pub-nav-logo {
        margin-left: 0;
        order: 1;
    }
    .pub-nav.is-scrolled {
        background: rgba(255,252,247,0.80);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    }

    /* Hamburger */
    .pub-nav-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: none;
        border: none;
        cursor: pointer;
        order: 2;
        margin-left: auto;
        -webkit-tap-highlight-color: transparent;
    }
    .pub-ham-bar {
        display: block;
        width: 100%;
        height: 2px;
        background: #3d3228;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }
    .pub-nav-hamburger[aria-expanded="true"] .pub-ham-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .pub-nav-hamburger[aria-expanded="true"] .pub-ham-bar:nth-child(2) {
        opacity: 0;
    }
    .pub-nav-hamburger[aria-expanded="true"] .pub-ham-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Overlay */
    .pub-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.20);
        z-index: 899;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }
    .pub-nav-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    /* Drawer — full-screen, slides up from bottom */
    .pub-nav-drawer {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: 100dvh;
        min-height: 100dvh;
        background: #faf7f2;
        z-index: 901;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        transform: translateY(100%);
        transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        box-shadow: none;
    }
    .pub-nav-drawer.is-open {
        transform: translateY(0);
    }

    /* Desktop elements hidden on mobile */
    .pub-nav-links,
    .pub-nav-actions {
        display: none !important;
    }

    /* ─────────────────────────────────────────
       Mobile panel nav
    ───────────────────────────────────────── */
    .mnav {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 0%;
        min-height: 0;
        position: relative;
        overflow: hidden;
    }

    /* Each panel fills the full .mnav area */
    .mnav-panel {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        background: #faf7f2;
        transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    /* Main panel — visible by default */
    .mnav-panel--main {
        transform: translateX(0);
    }
    /* Main panel slides partially left when a sub-panel is open */
    .mnav-panel--main.is-pushed {
        transform: translateX(-28%);
    }

    /* Sub-panels — hidden to the right by default */
    .mnav-panel--sub {
        transform: translateX(100%);
    }
    .mnav-panel--sub.is-active {
        transform: translateX(0);
    }

    /* Panel header bar */
    .mnav-panel-head {
        display: flex;
        align-items: center;
        padding: 0 16px;
        height: 56px;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        position: relative;
    }
    .mnav-panel-head--main {
        justify-content: flex-end;
    }

    /* Close button (top-right of main panel) */
    .mnav-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(0,0,0,0.07);
        border: none;
        border-radius: 50%;
        color: #1d1d1f;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        flex-shrink: 0;
    }
    .mnav-close-btn:active {
        background: rgba(0,0,0,0.14);
    }

    /* Back button (top-left of sub-panels) */
    .mnav-back-btn {
        display: flex;
        align-items: center;
        gap: 5px;
        background: none;
        border: none;
        font-size: 16px;
        font-weight: 600;
        color: #b89a6a;
        cursor: pointer;
        padding: 8px 0;
        font-family: inherit;
        -webkit-tap-highlight-color: transparent;
        flex-shrink: 0;
    }
    .mnav-back-btn:active {
        opacity: 0.55;
    }

    /* Centred title in sub-panel header */
    .mnav-panel-title {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 17px;
        font-weight: 700;
        color: #1d1d1f;
        pointer-events: none;
        white-space: nowrap;
    }

    /* Scrollable list */
    .mnav-list {
        list-style: none;
        margin: 0;
        padding: 0;
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Each list row (link or button) */
    .mnav-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 20px 22px;
        font-size: 20px;
        font-weight: 600;
        color: #1d1d1f;
        background: none;
        border: none;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        text-decoration: none;
        cursor: pointer;
        font-family: inherit;
        line-height: 1.2;
        -webkit-tap-highlight-color: transparent;
        text-align: left;
        box-sizing: border-box;
    }
    .mnav-row:hover {
        background: none;
        color: #1d1d1f;
        text-decoration: none;
    }
    .mnav-row:active {
        background: rgba(0,0,0,0.04);
    }

    /* Right-arrow icon on parent items */
    .mnav-chevron {
        flex-shrink: 0;
        color: #1d1d1f;
        opacity: 0.28;
    }

    /* Footer CTAs inside main panel */
    .mnav-footer {
        flex-shrink: 0;
        padding: 20px 22px max(32px, env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        gap: 10px;
        border-top: 1px solid rgba(0,0,0,0.06);
    }
    .mnav-footer-login {
        display: block;
        padding: 14px 20px;
        border-radius: 12px;
        border: 1.5px solid rgba(184,154,106,0.35);
        color: #3d3228;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
    }
    .mnav-footer-login:active {
        background: rgba(0,0,0,0.04);
        text-decoration: none;
        color: #3d3228;
    }
    .mnav-footer-cta {
        display: block;
        padding: 14px 20px;
        border-radius: 12px;
        background: linear-gradient(135deg, #8b6030 0%, #7a5a2c 100%);
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
    }
    .mnav-footer-cta:hover {
        color: #fff;
        text-decoration: none;
    }
    .mnav-footer-cta:active {
        opacity: 0.82;
        color: #fff;
        text-decoration: none;
    }
}

/* Placeholder pages */
.placeholder-section {
    text-align: center;
    padding: 72px 24px;
}

.placeholder-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(184, 154, 106, 0.14);
    color: var(--accent-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.placeholder-cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.placeholder-link {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent-text);
    border: 1px solid rgba(184, 154, 106, 0.4);
    background: transparent;
    transition: background 0.15s, border-color 0.15s;
}

.placeholder-link:hover {
    background: rgba(184, 154, 106, 0.1);
    text-decoration: none;
}

.placeholder-link--primary {
    background: var(--accent-text);
    color: #fff;
    border-color: var(--accent-text);
}

.placeholder-link--primary:hover {
    background: var(--accent-text-hover);
    border-color: var(--accent-text-hover);
}

/* =========================
   HERO
========================= */

.hero {
    text-align: center;
}

.mkt-hero {
    position: relative;
    overflow: visible;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -80px;
    padding-top: 80px;
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.mkt-hero-clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.mkt-cloud {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        rgba(186, 218, 238, 0.52) 0%,
        rgba(186, 218, 238, 0.18) 45%,
        transparent 72%);
    filter: blur(28px);
}

.mkt-cloud--a {
    width: 520px;
    height: 200px;
    top: 8%;
    left: -4%;
    opacity: 0.72;
    animation: cloud-drift-a 28s ease-in-out infinite alternate;
}

.mkt-cloud--b {
    width: 640px;
    height: 240px;
    top: 22%;
    right: -8%;
    opacity: 0.58;
    animation: cloud-drift-b 36s ease-in-out infinite alternate;
}

.mkt-cloud--c {
    width: 380px;
    height: 160px;
    top: 48%;
    left: 22%;
    opacity: 0.44;
    animation: cloud-drift-c 24s ease-in-out infinite alternate;
}

.mkt-cloud--d {
    width: 460px;
    height: 180px;
    top: 62%;
    right: 12%;
    opacity: 0.36;
    animation: cloud-drift-a 32s ease-in-out 4s infinite alternate;
}

@keyframes cloud-drift-a {
    0%   { transform: translateX(0) translateY(0); }
    100% { transform: translateX(38px) translateY(-14px); }
}

@keyframes cloud-drift-b {
    0%   { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-48px) translateY(10px); }
}

@keyframes cloud-drift-c {
    0%   { transform: translateX(0) translateY(0); }
    100% { transform: translateX(28px) translateY(18px); }
}

.mkt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 110% at 50% -8%, rgba(255, 248, 236, 0.36) 0%, rgba(255, 248, 236, 0) 62%),
        radial-gradient(72% 64% at 16% 16%, rgba(98, 212, 227, 0.11) 0%, rgba(98, 212, 227, 0) 72%),
        radial-gradient(70% 62% at 84% 20%, rgba(123, 112, 216, 0.1) 0%, rgba(123, 112, 216, 0) 74%),
        radial-gradient(130% 90% at 50% 112%, rgba(47, 52, 56, 0.11) 0%, rgba(47, 52, 56, 0) 66%),
        repeating-linear-gradient(0deg,
            rgba(47, 52, 56, 0.022) 0 1px,
            rgba(47, 52, 56, 0) 1px 3px);
    mix-blend-mode: normal;
    opacity: 0.4;
}

.mkt-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

.mkt-reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    transition: opacity 0.72s ease, transform 0.82s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}

.mkt-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mkt-aurora {
    position: absolute;
    inset: -20% -10% auto -10%;
    z-index: 1;
    height: 480px;
    background:
        radial-gradient(42% 52% at 16% 30%, rgba(25, 24, 31, 0.2) 0%, rgba(25, 24, 31, 0) 70%),
        radial-gradient(50% 58% at 82% 22%, rgba(98, 212, 227, 0.18) 0%, rgba(98, 212, 227, 0) 68%),
        radial-gradient(34% 48% at 55% 64%, rgba(123, 112, 216, 0.16) 0%, rgba(123, 112, 216, 0) 74%),
        radial-gradient(32% 42% at 46% 28%, rgba(184, 154, 106, 0.14) 0%, rgba(184, 154, 106, 0) 74%);
    filter: blur(2px);
    animation: mkt-aurora-shift 12s ease-in-out infinite alternate;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 0%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 0%, transparent 100%);
}

.mkt-hero-scan {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    --scan-x: 8%;
    --scan-o: 0.24;
}

.mkt-hero-scan::before {
    content: '';
    position: absolute;
    top: 36%;
    left: 0;
    width: 42%;
    height: 2px;
    transform: translateX(var(--scan-x));
    opacity: var(--scan-o);
    background: linear-gradient(90deg,
        rgba(98, 212, 227, 0) 0%,
        rgba(98, 212, 227, 0.82) 35%,
        rgba(123, 112, 216, 0.9) 68%,
        rgba(123, 112, 216, 0) 100%);
    filter: blur(0.2px);
    box-shadow: 0 0 12px rgba(98, 212, 227, 0.28), 0 0 18px rgba(123, 112, 216, 0.2);
    animation: mkt-scan-fallback 9.8s linear infinite;
}

.mkt-hero-scan::after {
    content: '';
    position: absolute;
    top: calc(36% + 7px);
    left: 0;
    width: 26%;
    height: 1px;
    transform: translateX(calc(var(--scan-x) + 12%));
    opacity: calc(var(--scan-o) * 0.78);
    background: linear-gradient(90deg,
        rgba(184, 154, 106, 0) 0%,
        rgba(184, 154, 106, 0.74) 48%,
        rgba(184, 154, 106, 0) 100%);
    box-shadow: 0 0 8px rgba(184, 154, 106, 0.18);
    animation: mkt-scan-fallback 9.8s linear infinite;
}

.mkt-hero.is-js-scan .mkt-hero-scan::before,
.mkt-hero.is-js-scan .mkt-hero-scan::after {
    animation: none;
}

@keyframes mkt-scan-fallback {
    0% { transform: translateX(-30%); }
    100% { transform: translateX(130%); }
}
.mkt-hero-contours {
    display: none;
}

@keyframes mkt-aurora-shift {
    0% { transform: translate3d(-2%, 0, 0) scale(1); }
    100% { transform: translate3d(2%, -2%, 0) scale(1.06); }
}

.mkt-hero-inner {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding-top: 24px;
    padding-bottom: 10px;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    width: 100%;
}

.mkt-hero-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding-top: 10px;
}

.mkt-hero-signature {
    position: relative;
    width: min(240px, 56vw);
    height: 10px;
    margin: 0 0 16px;
    opacity: 0;
    animation: mkt-word-in 0.5s ease forwards 0.16s;
}

.mkt-hero-signature span {
    position: absolute;
    top: 50%;
    left: 50%;
    border-top: 1px solid rgba(184, 154, 106, 0.38);
    transform: translate(-50%, -50%);
    border-radius: 999px;
}

.mkt-hero-signature span:nth-child(1) {
    width: 100%;
}

.mkt-hero-signature span:nth-child(2),
.mkt-hero-signature span:nth-child(3) {
    display: none;
}

.mkt-rally-stripes {
    position: relative;
    width: min(640px, 92vw);
    height: 24px;
    margin: 0 0 12px;
    opacity: 0;
    animation: mkt-word-in 0.52s ease forwards 0.2s;
    filter: saturate(0.94) contrast(1.08);
}

.mkt-rally-stripe {
    position: absolute;
    left: 50%;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    opacity: 0.9;
    animation: mkt-rally-shift 8.8s ease-in-out infinite alternate;
}

.mkt-rally-stripe--a {
    top: 1px;
    width: 100%;
    background:
        linear-gradient(90deg,
            transparent 0%,
                rgba(47, 52, 56, 0.6) 16%,
                rgba(184, 154, 106, 0.82) 49%,
                rgba(47, 52, 56, 0.6) 82%,
            transparent 100%);
            box-shadow: 0 0 10px rgba(184, 154, 106, 0.18);
}

.mkt-rally-stripe--b {
    top: 9px;
    width: 74%;
    background: linear-gradient(90deg, transparent 0%, rgba(107, 122, 58, 0.62) 35%, rgba(107, 122, 58, 0.18) 100%);
    animation-delay: -1.4s;
}

.mkt-rally-stripe--c {
    top: 17px;
    width: 48%;
    background: linear-gradient(90deg, transparent 0%, rgba(184, 154, 106, 0.46) 32%, rgba(184, 154, 106, 0.14) 100%);
    animation-delay: -2.2s;
}

@keyframes mkt-rally-shift {
    0%,
    100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(calc(-50% + 4px)) translateY(0); }
}

/* ── Hero 2-col layout ───────────────────────────── */
/* ── Word fade animation ─────────────────────────── */
.mkt-w {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    animation: mkt-word-in 0.52s cubic-bezier(.2,.7,.2,1) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes mkt-word-in {
    to { opacity: 1; transform: none; }
}

/* shimmer field — sporadic star-like nodes */
.mkt-shimmer-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.mkt-node {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(184, 154, 106, 0.9);
    box-shadow: 0 0 6px 1px rgba(184, 154, 106, 0.5);
    opacity: 0;
    animation: mkt-star-shine var(--dur, 18s) ease-in-out var(--del, 0s) infinite;
}

@keyframes mkt-star-shine {
    0%,  5.9%, 100%   { opacity: 0; transform: translate(0, 0); }
    6%               { opacity: 0; transform: translate(0, 0); }
    7%               { opacity: 0.85; transform: translate(var(--sx, 0px), var(--sy, 0px)); }
    9%               { opacity: 0.18; }
    11%              { opacity: 0; }
}

.mkt-node--a { top: 18%; left: 8%;  --dur: 19s; --del: 0s;    --sx: 3px;  --sy: -2px; }
.mkt-node--b { top: 9%;  left: 38%; --dur: 23s; --del: 4.3s;  --sx: -2px; --sy: 1px;  }
.mkt-node--c { top: 22%; left: 72%; --dur: 17s; --del: 8.7s;  --sx: 4px;  --sy: -3px; }
.mkt-node--d { top: 55%; left: 14%; --dur: 21s; --del: 2.1s;  --sx: 2px;  --sy: -1px; }
.mkt-node--e { top: 42%; left: 58%; --dur: 26s; --del: 11.4s; --sx: -3px; --sy: -2px; }
.mkt-node--f { top: 70%; left: 82%; --dur: 20s; --del: 6.2s;  --sx: 2px;  --sy:  2px; }
.mkt-node--g { top: 78%; left: 33%; --dur: 15s; --del: 13.8s; --sx: -2px; --sy:  3px; }
.mkt-node--h { top: 35%; left: 91%; --dur: 22s; --del: 3.5s;  --sx: 3px;  --sy: -1px; }

.mkt-live-stats {
    margin: 28px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mkt-stat {
    border-radius: 16px;
    padding: 14px;
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(255, 242, 223, 0.6) 0%, rgba(255, 242, 223, 0) 58%),
        rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(184, 154, 106, 0.26);
    box-shadow: 0 10px 28px rgba(42, 42, 42, 0.08);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
}

.mkt-stat.is-visible {
    opacity: 1;
    transform: none;
}

.mkt-stat:nth-child(2) { transition-delay: 0.12s; }
.mkt-stat:nth-child(3) { transition-delay: 0.24s; }

.mkt-stat-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.mkt-stat-value {
    display: block;
    margin-top: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 3.8vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #1f1b16;
}

.mkt-stat-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}




.hero-inner {
    max-width: 620px;
    margin: 0 auto;
}

.mkt-hero-inner.hero-inner {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

    padding: 28px;
    border: 1px solid rgba(184, 154, 106, 0.34);
    border-radius: 22px;
    background:
        radial-gradient(120% 180% at 100% 0%, rgba(255, 242, 223, 0.92) 0%, rgba(255, 242, 223, 0) 62%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.94) 0%, rgba(255, 248, 240, 0.96) 100%);
    box-shadow: 0 24px 60px rgba(42, 42, 42, 0.08);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.beta-gate::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 154, 106, 0.06), transparent 42%);
    pointer-events: none;
}

.beta-gate > * {
    position: relative;
}

.beta-gate-kicker {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.beta-gate-copy,
.beta-gate-note {
    color: var(--text-soft);
    max-width: 54ch;
}

.beta-gate-copy {
    margin: 0 0 18px;
}

.beta-gate-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 12px;
}

.beta-gate-form input {
    flex: 1;
    min-width: 0;
    padding: 18px;
    font-size: 16px;
    border: 1px solid rgba(184, 154, 106, 0.3);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(42, 42, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.beta-gate-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 28px rgba(184, 154, 106, 0.18);
}

.beta-gate-form button {
    align-self: flex-start;
    padding: 18px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b6030 0%, #6b4520 100%);
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(107, 69, 32, 0.32);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.beta-gate-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(107, 69, 32, 0.42);
}

.beta-gate-error {
    margin: 0 0 10px;
    color: #8f2d21;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.beta-gate-note {
    margin: 0;
    font-size: var(--fs-sm);
}

.beta-gate-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(184, 154, 106, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-soft);
    font-size: var(--fs-sm);
    line-height: 1.55;
    cursor: pointer;
}

.beta-gate-agreement input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--accent);
    flex: 0 0 auto;
}

.beta-gate-agreement a {
    color: var(--accent-text);
    font-weight: 600;
}

.beta-gate-agreement a:hover {
    color: var(--accent-text-hover);
}

.logo {
    font-size: 46px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.6px;
    text-decoration: none;
}

/* hero badges */

.hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 10px;
    background: #fffcf8;
}

.hero-badge-ai {
    color: var(--accent-text);
    border-color: rgba(184, 154, 106, 0.45);
    background: #fff7ee;
}

.hero-badge-ai::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 5px rgba(184, 154, 106, 0.7);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* highlight (warm luxury) */

.highlight {
    background: var(--accent-text);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
}

/* headline */

.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(74, 95, 114, 0.65);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border-radius: 0;
    border: none;
    background: none;
    box-shadow: none;
    opacity: 0;
    animation: mkt-word-in 0.5s ease forwards 0.1s;
}

/* ── Romanian flag — subtle ── */
.ro-flag {
    display: inline-flex;
    width: 18px;
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0.55;
}
.ro-flag-s { flex: 1; }
.ro-flag-s--b { background: #002B7F; }
.ro-flag-s--y { background: #FCD116; }
.ro-flag-s--r { background: #CE1126; }

.hero-headline {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(32px, 4.8vw, 60px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
    color: #14151a;
    text-shadow: none;
    opacity: 0;
    animation: mkt-word-in 0.6s cubic-bezier(.2,.7,.2,1) forwards 0.22s;
}

.hero-sub {
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.66;
    color: #545d67;
    margin: 0 0 36px;
    max-width: 46ch;
    text-wrap: balance;
    opacity: 0;
    animation: mkt-word-in 0.6s ease forwards 0.42s;
}

.hero h1,
.hero-cycle {
    font-size: clamp(24px, 3.2vw, 36px);
    line-height: 1.28;
    min-height: 2.6em;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    max-width: 20ch;
}

.hero-phrase {
    display: block;
    background: linear-gradient(160deg, #1a1714 0%, #2d2822 50%, #8a5c28 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.42s ease, transform 0.42s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}

.hero-phrase.is-out {
    opacity: 0;
    transform: translateY(-10px);
}

.hero h1 .mkt-w {
    background: linear-gradient(160deg, #1a1714 0%, #2d2822 50%, #8a5c28 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mkt-search-form {
    margin-bottom: 6px;
}

/* ── Hero CTA block (guest) ── */
.hero-cta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: mkt-word-in 0.6s ease forwards 0.62s;
}

.hero-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #b89a6a 0%, #c9a96e 50%, #a07848 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 18px rgba(184, 154, 106, 0.36);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    animation: hero-btn-shine 6s ease 2s infinite;
}

.hero-cta-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
    transform: skewX(-18deg);
    animation: hero-btn-shine-sweep 6s ease 2s infinite;
    pointer-events: none;
}

@keyframes hero-btn-shine-sweep {
    0%   { left: -100%; opacity: 0; }
    4%   { opacity: 1; }
    30%  { left: 140%;  opacity: 1; }
    34%  { left: 140%;  opacity: 0; }
    100% { left: 140%;  opacity: 0; }
}

.hero-cta-btn:hover {
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(184, 154, 106, 0.46);
}

.hero-cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: rgba(120, 100, 70, 0.35);
    margin: 0;
    line-height: 1;
}
.hero-cta-note span {
    padding: 0 8px;
}
.hero-cta-note span + span {
    border-left: 1px solid rgba(184, 154, 106, 0.16);
}

.hero-cta-note svg {
    flex-shrink: 0;
    opacity: 0.65;
}

.mkt-orbit {
    margin: 26px auto 0;
    width: min(360px, 86vw);
    height: 180px;
    position: relative;
    border-radius: 999px;
}

.mkt-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid rgba(184, 154, 106, 0.35);
}

.mkt-orbit-ring--one {
    transform: rotate(-8deg);
}

.mkt-orbit-ring--two {
    inset: 20px 26px;
    border-color: rgba(95, 86, 79, 0.24);
    transform: rotate(11deg);
}

.mkt-orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b99155;
    box-shadow: 0 0 0 8px rgba(185, 145, 85, 0.16);
}

.mkt-orbit-dot--a {
    top: 28px;
    left: 42px;
    animation: mkt-float-a 3.4s ease-in-out infinite;
}

.mkt-orbit-dot--b {
    top: 84px;
    right: 54px;
    animation: mkt-float-b 4.2s ease-in-out infinite;
}

.mkt-orbit-dot--c {
    bottom: 18px;
    left: 52%;
    animation: mkt-float-c 3.8s ease-in-out infinite;
}

@keyframes mkt-float-a {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes mkt-float-b {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes mkt-float-c {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-12px); }
}

.mkt-strip {
    margin: 20px auto 0;
    max-width: 920px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mkt-strip-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: #fffdf9;
    display: grid;
    gap: 2px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mkt-strip-item:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 154, 106, 0.5);
    box-shadow: 0 14px 30px rgba(42, 42, 42, 0.08);
}

.mkt-strip-item strong {
    font-size: 13px;
    color: var(--text);
}

.mkt-strip-item span {
    font-size: 12px;
    color: var(--text-soft);
}

.mkt-dark {
    margin: 18px auto 0;
    max-width: 920px;
    border-radius: 18px;
    background: linear-gradient(180deg, #131416 0%, #0d0e10 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ece8df;
    box-shadow: 0 16px 36px rgba(10, 10, 12, 0.32);
}

.mkt-dark-inner {
    padding: 20px;
}

.mkt-kicker {
    margin: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c9a870;
}

.mkt-dark h2 {
    margin: 8px 0 8px;
    font-size: clamp(22px, 2.8vw, 32px);
    line-height: 1.15;
    color: #f4f1ea;
}

.mkt-dark p {
    margin: 0;
    color: rgba(236, 232, 223, 0.84);
}

.mkt-dark-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mkt-dark-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.mkt-dark-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 168, 112, 0.52);
    background: rgba(255, 255, 255, 0.05);
}

.mkt-dark-card h3 {
    margin: 0 0 4px;
    font-size: 14px;
    color: #f4f1ea;
}

.mkt-dark-card p {
    font-size: 13px;
}

.mkt-tiers {
    margin: 18px auto 0;
    max-width: 920px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mkt-tier {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.mkt-tier:hover {
    transform: translateY(-5px);
    border-color: rgba(184, 154, 106, 0.52);
    box-shadow: 0 18px 36px rgba(42, 42, 42, 0.1);
}

.mkt-tier h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.mkt-tier p {
    margin: 0;
    font-size: 13px;
    color: var(--text-soft);
}

.mkt-dark--cta .result-action {
    min-width: 188px;
}

.hero p,
.hero-lead {
    font-size: var(--fs-base);
    line-height: 1.55;
    color: var(--text-soft);
    margin-bottom: 24px;
    max-width: 52ch;
}

/* =========================
   SEARCH
========================= */

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-form input {
    flex: 1;
    padding: 15px 16px;
    font-size: 15px;

    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 28px rgba(184, 154, 106, 0.18);
}

/* button */

.search-form button {
    padding: 15px 20px;
    border-radius: 14px;
    border: none;

    background: linear-gradient(135deg, #c9a870 0%, #a07840 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;

    cursor: pointer;
    box-shadow: 0 4px 18px rgba(160, 120, 64, 0.32);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search-form button:hover {
    background: linear-gradient(135deg, #bd9660 0%, #8f6830 100%);
    box-shadow: 0 6px 24px rgba(160, 120, 64, 0.44);
    transform: translateY(-1px);
}

.search-form button:focus-visible,
a:focus-visible,
.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* =========================
   EXAMPLES
========================= */

.examples {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-soft);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.examples:hover {
    opacity: 1;
}

.examples span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.examples a {
    margin-left: 0;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(232, 225, 216, 0.7);
    background: transparent;
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    transition: color 0.15s, border-color 0.15s;
}

.examples a:hover {
    color: var(--accent-text);
    border-color: rgba(184, 154, 106, 0.5);
    text-decoration: none;
}

/* =========================
   BENEFITS
========================= */

.mkt-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 48px;
}

.mkt-benefit {
    padding: 26px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(110% 90% at 50% 0%, rgba(255, 247, 230, 0.95) 0%, transparent 68%),
        var(--card);
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.mkt-benefit:hover {
    border-color: rgba(184, 154, 106, 0.45);
    box-shadow: 0 6px 22px rgba(140, 100, 40, 0.08);
}

.mkt-benefit-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: rgba(184, 154, 106, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--accent-text);
}

.mkt-benefit h3 {
    margin: 0 0 8px;
    font-size: var(--fs-md);
    line-height: var(--lh-snug);
}

.mkt-benefit p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.62;
}

/* =========================
   SAAS TEASER
========================= */

.mkt-saas-teaser {
    margin-top: 52px;
    padding: 52px 0 40px;
    background: none;
    text-align: center;
}

.mkt-kicker--centered {
    text-align: center;
}

.mkt-teaser-title {
    margin: 8px 0 28px;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: var(--lh-tight);
}

.mkt-teaser-shell {
    position: relative;
    display: flex;
    max-width: 680px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    background: #1c1c23;
    overflow: hidden;
    min-height: 200px;
    box-shadow: 0 24px 56px rgba(10, 10, 14, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.mkt-teaser-sidebar {
    width: 148px;
    flex-shrink: 0;
    background: #1c1c23;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mkt-teaser-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 13px;
    user-select: none;
}

.mkt-teaser-item--active {
    background: rgba(184, 154, 106, 0.14);
    color: rgba(201, 168, 112, 0.9);
}

.mkt-teaser-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    padding: 1px 5px;
}

.mkt-teaser-content {
    flex: 1;
    padding: 14px 16px;
    background: #faf8f4;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mkt-teaser-result {
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e8e0d4;
}

.mkt-teaser-result-name {
    height: 10px;
    width: 62%;
    border-radius: 4px;
    background: #d8cfc3;
    margin-bottom: 7px;
}

.mkt-teaser-result-name--short { width: 42%; }

.mkt-teaser-result-meta {
    height: 8px;
    width: 80%;
    border-radius: 4px;
    background: #ece5db;
}

.mkt-teaser-result-meta--short { width: 56%; }

.mkt-teaser-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 25%, rgba(250, 248, 244, 0.88) 100%);
    pointer-events: none;
}

.mkt-teaser-cta {
    display: inline-block;
    margin-top: 28px;
    padding: 12px 28px;
    background: #4a6826;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 18px rgba(74, 104, 38, 0.40), 0 1px 4px rgba(60, 82, 30, 0.20);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mkt-teaser-cta:hover {
    text-decoration: none;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(74, 104, 38, 0.48), 0 2px 6px rgba(60, 82, 30, 0.22);
}

.mkt-free-cta {
    margin-top: 48px;
    padding: 52px 0 0;
    text-align: center;
    background: none;
}

.mkt-free-cta h2 {
    margin: 8px 0 14px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: var(--lh-tight);
}

.mkt-free-cta-lead {
    margin: 0 auto 28px;
    max-width: 480px;
    color: var(--text-soft);
    font-size: var(--fs-base);
    line-height: 1.65;
}

.mkt-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #4a6826;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 18px rgba(74, 104, 38, 0.40), 0 1px 4px rgba(60, 82, 30, 0.20);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    flex-shrink: 0;
}

.mkt-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(74, 104, 38, 0.48), 0 2px 6px rgba(60, 82, 30, 0.22);
    text-decoration: none;
    color: #fff;
}

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

.faq-collapsible {
    margin-top: 54px;
}

.faq-summary {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fffcf8;
    color: var(--text-soft);
    cursor: pointer;
    list-style: none;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.faq-summary-title {
    color: var(--text);
    font-size: var(--fs-base);
    font-weight: 600;
}

.faq-summary-subtitle {
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.faq-summary::after {
    content: "+";
    font-size: 20px;
    color: var(--text-soft);
    line-height: 1;
}

.faq-collapsible[open] .faq-summary {
    border-color: var(--accent);
    color: var(--text);
    background: #fff7ee;
}

.faq-collapsible[open] .faq-summary::after {
    content: "-";
    color: var(--accent-text);
}

.faq-collapsible .faq {
    margin-top: 12px;
}

.faq {
    margin-top: 28px;
    counter-reset: faq-step;
}

.faq-header {
    max-width: 600px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.faq-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-soft);
    text-transform: uppercase;
}

.faq h2 {
    margin: 0 0 6px;
    font-size: var(--fs-lg);
    line-height: var(--lh-tight);
}

.faq-intro {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.faq-item {
    border-top: 1px solid var(--border);
    background: none;
    transition: none;
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 16px 0;
    text-align: left;
    border: none;
    background: none;
    font-size: var(--fs-base);
    font-weight: 500;
    line-height: var(--lh-snug);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--accent-text);
}

.faq-question::before {
    counter-increment: faq-step;
    content: counter(faq-step, decimal-leading-zero);
    min-width: 26px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    opacity: 0.5;
}

.faq-question::after {
    content: "+";
    font-size: 18px;
    font-weight: 300;
    color: var(--text-soft);
    line-height: 1;
    flex-shrink: 0;
}

.faq-question.active {
    color: var(--accent-text);
}

.faq-question.active::after {
    content: "-";
    color: var(--accent-text);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.faq-question.active + .faq-answer {
    max-height: 800px;
    opacity: 1;
}

.faq-answer p {
    font-size: var(--fs-sm);
    color: var(--text-soft);
    margin: 0;
    padding: 0 32px 18px 30px;
    line-height: 1.65;
}

.faq-item:has(.faq-question.active) {
    border-color: var(--border);
    background: none;
    box-shadow: none;
}

.faq-item:has(.faq-question.active) .faq-question::before {
    opacity: 1;
    color: var(--accent-text);
}

.results-page {
    max-width: 760px;
    margin: 0 auto;
}

/* ── Team upgrade placeholder ────────────────────────────────────────────── */
.team-page {
    max-width: 760px;
    margin: 0 auto;
}

/* ── Gate (upgrade wall) ──────────────────────────────────────────────────── */
.team-gate {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.team-gate-inner {
    width: min(480px, 100%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 36px 40px;
    text-align: center;
    box-shadow: 0 4px 32px rgba(42,42,42,0.06);
}

.team-gate-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(184,154,106,0.14) 0%, rgba(184,154,106,0.06) 100%);
    border: 1px solid rgba(184,154,106,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-text);
}

.team-gate-icon svg {
    width: 30px;
    height: 30px;
}

.team-gate-kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.team-gate-title {
    margin: 0 0 12px;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.18;
}

.team-gate-lead {
    margin: 0 0 28px;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.team-gate-features {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-gate-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text);
}

.team-gate-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22a06b;
}

.team-gate-check svg {
    width: 12px;
    height: 12px;
}

.team-gate-btn {
    display: inline-block;
    padding: 13px 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 4px 14px rgba(184,154,106,0.35);
}

.team-gate-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(184,154,106,0.45);
    text-decoration: none;
    color: #fff;
}

.team-gate-link {
    display: block;
    margin-top: 14px;
    font-size: 0.81rem;
    color: var(--accent-text);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.team-gate-link:hover {
    opacity: 1;
    text-decoration: none;
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.team-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.team-header-title {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
}

.team-header-sub {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.team-role-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(184,154,106,0.15);
    color: var(--accent-text);
}

.team-role-badge--owner {
    background: rgba(184,154,106,0.18);
    color: var(--accent-text);
}

.team-role-badge--member {
    background: rgba(100,116,139,0.12);
    color: #475569;
}

/* ── Empty state (no team yet) ───────────────────────────────────────────── */
.team-empty-state {
    margin-top: 20px;
    padding: 52px 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 2px 16px rgba(42,42,42,0.04);
}

.team-empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    background: rgba(184,154,106,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-text);
}

.team-empty-icon svg {
    width: 26px;
    height: 26px;
}

.team-empty-state h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 800;
}

.team-empty-state p {
    margin: 0 0 24px;
    color: var(--text-soft);
    font-size: 0.9rem;
    max-width: 38ch;
    margin-left: auto;
    margin-right: auto;
}

.team-create-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 420px;
    margin: 0 auto;
}

.team-create-input {
    flex: 1;
    min-width: 200px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: #fafaf9;
    color: var(--text);
    transition: border-color 0.15s;
}

.team-create-input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.team-create-btn {
    padding: 11px 22px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s;
}

.team-create-btn:hover {
    background: var(--accent-hover);
}

/* ── Two-column grid ──────────────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.team-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 2px 12px rgba(42,42,42,0.04);
}

.team-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.team-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.team-card-title svg {
    width: 17px;
    height: 17px;
    color: var(--accent-text);
    flex-shrink: 0;
}

.team-count-badge {
    margin-left: auto;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(184,154,106,0.14);
    color: var(--accent-text);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-desc {
    margin: -6px 0 14px;
    font-size: 0.8rem;
    color: var(--text-soft);
    line-height: 1.5;
}

/* ── Member list ──────────────────────────────────────────────────────────── */
.team-member-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.team-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.team-member-row:last-child {
    border-bottom: none;
}

.team-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d3b789 0%, #b89a6a 58%, #98784b 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 800;
    flex-shrink: 0;
}

.team-member-info {
    flex: 1;
    min-width: 0;
}

.team-member-email {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-member-role {
    display: block;
    font-size: 0.72rem;
    color: var(--text-soft);
    text-transform: capitalize;
    margin-top: 1px;
}

.team-status-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.team-status-pill--active {
    background: rgba(52, 211, 153, 0.12);
    color: #14532d;
}

.team-status-pill--pending {
    background: rgba(245, 188, 53, 0.14);
    color: #854d0e;
}

.team-empty-text {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin: 4px 0 0;
}

.team-link {
    color: var(--accent-text);
    font-weight: 600;
    text-decoration: none;
}

.team-link:hover {
    text-decoration: underline;
}

/* ── Invite section ───────────────────────────────────────────────────────── */
.team-invite-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.team-invite-title {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
}

.team-invite-form {
    display: flex;
    gap: 8px;
}

.team-invite-input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: #fafaf9;
    color: var(--text);
    transition: border-color 0.15s;
}

.team-invite-input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.team-invite-btn {
    padding: 9px 16px;
    background: #0f0f1a;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.18s;
}

.team-invite-btn:hover {
    background: #1a1628;
}

.team-invite-note {
    margin: 7px 0 0;
    font-size: 0.75rem;
    color: var(--text-soft);
}

/* ── List sharing rows ────────────────────────────────────────────────────── */
.team-list-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.team-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.team-list-row:last-child {
    border-bottom: none;
}

.team-list-name {
    flex: 1;
    min-width: 0;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.team-share-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.team-share-pill--on {
    background: rgba(52, 211, 153, 0.12);
    color: #14532d;
}

.team-share-pill--off {
    background: rgba(100,116,139,0.1);
    color: #64748b;
}

.team-toggle-btn {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-soft);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.team-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent-text);
}

.team-toggle-btn--active {
    border-color: rgba(220,60,40,0.25);
    color: #b91c1c;
    background: rgba(220,60,40,0.04);
}

.team-toggle-btn--active:hover {
    border-color: rgba(220,60,40,0.5);
    background: rgba(220,60,40,0.08);
    color: #991b1b;
}

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

    .team-gate-inner {
        padding: 36px 20px 32px;
    }

    .team-invite-form {
        flex-direction: column;
    }

    .team-invite-btn {
        width: 100%;
    }
}
/* ─────────────────────────────────────────────────────────────────────────── */
.welcome-block {
    margin-top: 32px;
}

.welcome-header {
    margin-bottom: 24px;
}

.welcome-title {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.welcome-name {
    color: var(--accent-text);
}

.welcome-sub {
    margin: 0;
    font-size: 1rem;
    color: var(--text-soft);
}

.welcome-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.welcome-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    font-size: inherit;
    width: 100%;
}

.welcome-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 18px rgba(184, 154, 106, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text);
}

.welcome-card--primary {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1628 100%);
    border-color: rgba(255,255,255,0.08);
    color: #fff;
}

.welcome-card--primary:hover {
    border-color: rgba(184, 154, 106, 0.5);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    color: #fff;
}

.welcome-card--primary .welcome-card-body strong {
    color: #fff;
}

.welcome-card--primary .welcome-card-body p {
    color: rgba(255,255,255,0.55);
}

.welcome-card--primary .welcome-card-icon {
    background: rgba(255,255,255,0.1);
    color: #e7cfad;
}

.welcome-card--upgrade {
    border-style: dashed;
    border-color: rgba(184, 154, 106, 0.4);
    background: #fffdf9;
}

.welcome-card--upgrade:hover {
    border-style: dashed;
    border-color: var(--accent);
}

.welcome-card-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(184, 154, 106, 0.1);
    color: var(--accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-card-icon .icon {
    width: 18px;
    height: 18px;
}

.welcome-card-body {
    flex: 1;
    min-width: 0;
}

.welcome-card-body strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.welcome-card-body p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-soft);
    line-height: 1.4;
}

.welcome-card-arrow {
    flex-shrink: 0;
    align-self: center;
    font-size: 1rem;
    color: var(--accent-text);
    opacity: 0.6;
}

.welcome-suggestions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-soft);
}

.welcome-suggestions a {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--accent-text);
    text-decoration: none;
    background: #fffdf9;
    font-size: 0.8rem;
    transition: border-color 0.15s, background 0.15s;
}

.welcome-suggestions a:hover {
    border-color: var(--accent);
    background: rgba(184, 154, 106, 0.07);
    text-decoration: none;
}

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

    .welcome-title {
        font-size: 1.4rem;
    }

    .welcome-card {
        padding: 16px 14px;
    }
}
/* ─────────────────────────────────────────────────────────────────────────── */

.results-summary {
    margin-top: 24px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fffdf9;
}

.results-summary h1 {
    margin: 0;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.25;
    font-weight: 600;
}

.results-summary p {
    margin: 4px 0 0;
    color: var(--text-soft);
    font-size: 12px;
}

.results-hint {
    margin-top: 10px;
    font-size: var(--fs-sm);
}

.empty-state {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fffdf9;
    padding: 18px;
}

.empty-state h2 {
    margin: 0;
    font-size: 18px;
    line-height: var(--lh-snug);
}

.empty-state p {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 14px;
}

.empty-suggestions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.empty-suggestions a {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff7ee;
    color: var(--text);
    font-size: 13px;
}

.empty-suggestions a:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* =========================
   RECOMMEND
========================= */

.flash-global {
    margin-bottom: 16px;
}

.recommend-alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.recommend-alert--success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.recommend-alert--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.recommend-top-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-soft);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.recommend-top-btn:hover {
    border-color: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
}

.recommend-quiet {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.recommend-quiet--inline {
    margin-top: 28px;
    padding: 14px 0 0;
}

.recommend-quiet-text {
    margin: 0 0 8px;
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.recommend-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.recommend-form input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    background: #fff;
    color: var(--text);
}

.recommend-form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

.recommend-form button {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-soft);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.recommend-form button:hover {
    border-color: var(--accent);
    color: var(--accent-text);
}

/* =========================
   RESULTS
========================= */

.results-list {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.result-card {
    background: linear-gradient(175deg, #ffffff 0%, #fefcf9 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: 0 1px 4px rgba(42,42,42,0.05), 0 3px 14px rgba(42,42,42,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: visible;
}

.result-card--menu-open {
    z-index: 30;
}

.result-card:hover {
    border-color: rgba(184, 154, 106, 0.6);
    background: linear-gradient(175deg, #ffffff 0%, #fffbf4 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(184, 154, 106, 0.18), 0 2px 8px rgba(42,42,42,0.06);
}

.result-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.metrics-tab {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.0);
    white-space: nowrap;
    font-weight: 500;
    transition: color 0.22s ease;
}

.result-card:hover .metrics-tab {
    color: rgba(95, 86, 79, 0.65);
}

.metrics-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-text);
    letter-spacing: -0.01em;
    line-height: 1;
}

.metrics-label {
    font-size: 8px;
    color: rgba(0, 0, 0, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    line-height: 1;
    opacity: 1;
}

.metrics-sep {
    display: none;
}

.metric-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
}

.star-rating {
    font-size: 13px;
    letter-spacing: -1px;
    line-height: 1;
    color: #f5a623;
    font-weight: 700;
}

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

/* header */

.result-domain {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.result-domain span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.result-domain img {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    flex-shrink: 0;
}

.result-signals {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
}

.result-signals--stacked {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
}

.signal-pill {
    font-size: 11px;
    color: var(--text-soft);
    border: 1px solid rgba(232, 225, 216, 0.95);
    border-radius: 10px;
    padding: 7px 6px;
    background: #fffdf9;
    display: grid;
    grid-template-columns: 1fr 14px;
    grid-template-areas:
        "value icon"
        "label icon"
        "unit unit";
    align-items: start;
    gap: 3px 6px;
    min-width: 0;
    width: 100%;
    min-height: 82px;
    line-height: 1.05;
    box-shadow: 0 1px 0 rgba(255,255,255,0.95), inset 0 1px 0 rgba(255,255,255,0.9);
}

.signal-label {
    grid-area: label;
    line-height: 1.15;
    font-size: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(95, 86, 79, 0.8);
    justify-self: start;
    text-align: left;
}

.signal-value {
    grid-area: value;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-right: 4px;
}

.signal-unit {unit
    grid-area: metric;
    font-size: 8px;
    color: rgba(95, 86, 79, 0.7);
    font-weight: 600;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin-top: -1px;
}

.signal-pill.signal-relevance .signal-unit {
    display: none;
}

.signal-pill .icon {
    grid-area: icon;
    width: 10px;
    height: 10px;
    align-self: start;
    margin-top: 1px;
}

.signal-pill .signal-info-btn {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: end;
}

.result-signals--stacked .signal-pill {
    padding: 7px 6px;
}

.result-signals--stacked .signal-label {
    font-size: 8px;
}

.result-signals--stacked .signal-unit {
    font-size: 8px;
}

.result-signals--stacked .signal-pill .icon {
    width: 10px;
    height: 10px;
}

.signal-pill.signal-relevance {
    color: var(--accent-text);
    border-color: rgba(184, 154, 106, 0.45);
    background: linear-gradient(180deg, #fffaf1 0%, #fff3e4 100%);
}

.signal-pill.signal-relevance .signal-value {
    color: var(--accent-text);
}

.signal-pill:not(.signal-relevance) .signal-value {
    color: #6b4f28;
}

.signal-pill:not(.signal-relevance) {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
}

.signal-pill.has-tooltip:hover,
.signal-pill.has-tooltip:focus-within {
    border-color: rgba(184, 154, 106, 0.5);
    background: #fff9f1;
}

.signal-pill.has-tooltip {
    position: relative;
    cursor: help;
}

.signal-pill.has-tooltip:focus-within {
    border-color: var(--accent);
    background: #fff7ea;
}

.signal-info-btn {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.signal-info-btn .icon {
    width: var(--icon-xs);
    height: var(--icon-xs);
}

.signal-info-btn:hover {
    border-color: var(--accent);
    color: var(--accent-text);
}

.signal-info-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.signal-pill.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    width: 260px;
    max-width: min(260px, 78vw);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fffdf9;
    color: var(--text);
    font-size: 12px;
    line-height: 1.45;
    box-shadow: 0 12px 26px rgba(42, 42, 42, 0.12);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.signal-pill.has-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fffdf9;
    rotate: -45deg;
    opacity: 0;
    pointer-events: none;
    z-index: 19;
    transition: opacity 0.18s ease;
}

.signal-pill.has-tooltip:hover::after,
.signal-pill.has-tooltip:hover::before,
.signal-pill.has-tooltip:focus-visible::after,
.signal-pill.has-tooltip:focus-visible::before,
.signal-pill.has-tooltip:focus-within::after,
.signal-pill.has-tooltip:focus-within::before {
    opacity: 1;
}

.signal-pill.has-tooltip:hover::after,
.signal-pill.has-tooltip:focus-visible::after,
.signal-pill.has-tooltip:focus-within::after {
    transform: translateX(-50%) translateY(0);
}

.result-title {
    font-size: clamp(16px, 1.45vw, 19px);
    font-weight: 700;
    margin-top: 6px;
    margin-bottom: 6px;
    line-height: var(--lh-snug);
    letter-spacing: -0.015em;
    color: var(--text);
}

.result-description {
    font-size: 14px;
    color: var(--text-soft);
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.55;
}

.result-why {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
    color: var(--text-soft);
}

.result-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.result-contact-row,
.result-product-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.result-contact-row {
    margin-top: 12px;
}

.result-product-row {
    margin-top: 8px;
}

.result-product-row form {
    margin: 0;
    display: inline-flex;
    flex: 0 0 auto;
}

.result-product-row form .result-action {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 28px;
    margin: 0;
    border-style: solid;
    border-width: 1px;
    border-radius: 999px;
    box-shadow: none;
    white-space: nowrap;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.result-product-row form .result-action span {
    font-size: 12px;
}

.result-product-row form .result-action:disabled {
    opacity: 0.78;
    cursor: wait;
}

.favorite-remove-feedback {
    margin-top: 10px;
}

.favorite-list-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.favorite-list-title-wrap {
    min-width: 0;
    flex: 1 1 320px;
}

.favorite-list-title-wrap.is-editing {
    flex-basis: min(100%, 520px);
}

.favorite-list-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.favorite-list-inline-form[hidden] {
    display: none;
}

.favorite-list-inline-form input[type="text"] {
    min-width: 220px;
    flex: 1 1 240px;
    padding: 8px 12px;
    border: 1px solid rgba(184, 154, 106, 0.36);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
}

.favorite-list-inline-form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

.favorite-list-inline-save,
.favorite-list-inline-cancel,
.favorite-list-icon-button {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(232, 225, 216, 0.95);
    background: #fffdf9;
    color: var(--text-soft);
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.favorite-list-inline-save,
.favorite-list-inline-cancel {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
}

.favorite-list-inline-save:hover,
.favorite-list-inline-cancel:hover,
.favorite-list-icon-button:hover {
    border-color: rgba(184, 154, 106, 0.55);
    background: #fff8ef;
    color: var(--accent-text);
}

.favorite-list-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.favorite-list-delete-form {
    margin: 0;
    display: inline-flex;
    flex: 0 0 auto;
}

.favorite-list-icon-button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.favorite-list-icon-button .icon {
    width: 14px;
    height: 14px;
}

.favorite-list-icon-button--danger:hover {
    color: #9f3a2a;
    border-color: rgba(196, 76, 56, 0.35);
    background: #fff3f0;
}

.result-save-picker {
    position: relative;
}

.result-save-trigger {
    appearance: none;
    cursor: pointer;
    font: inherit;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.result-save-trigger .icon {
    fill: none;
    stroke: currentColor;
    transition: fill 0.35s ease, stroke 0.35s ease;
}

.result-save-picker:hover .result-save-trigger,
.result-save-picker:focus-within .result-save-trigger,
.result-save-picker.is-open .result-save-trigger {
    background: #fff8ef;
    border-color: rgba(184, 154, 106, 0.55);
    color: var(--accent-text);
}

.result-save-picker:hover .result-save-trigger .icon,
.result-save-picker:focus-within .result-save-trigger .icon,
.result-save-picker.is-open .result-save-trigger .icon {
    fill: #d9a449;
    stroke: #b37a1f;
}

.result-save-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 120;
    min-width: 180px;
    padding: 8px;
    border: 1px solid rgba(232, 225, 216, 0.95);
    border-radius: 12px;
    background: #fffdf9;
    box-shadow: 0 18px 32px rgba(42, 42, 42, 0.10);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-10px) scale(0.98);
    transform-origin: top left;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.result-save-picker:hover .result-save-menu,
.result-save-picker:focus-within .result-save-menu,
.result-save-picker.is-open .result-save-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.result-save-picker.is-closing .result-save-menu {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(8px) scale(0.98);
    transition-duration: 0.32s;
}

.result-save-menu form + form {
    margin-top: 4px;
}

.result-save-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.result-save-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.result-save-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(184, 154, 106, 0.5);
    color: var(--accent-text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.result-save-option:hover {
    background: #fff3e0;
    color: var(--accent-text);
}

.result-save-option.is-saved {
    background: #fff8ef;
    color: var(--accent-text);
    cursor: default;
}

.result-save-option.is-saved:hover {
    background: #fff8ef;
    color: var(--accent-text);
}

.result-save-option:disabled {
    opacity: 1;
}

.result-save-option.just-added {
    background: #fff1dc;
    color: var(--accent-text);
}

.result-save-status {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.result-action.locked {
    background: linear-gradient(180deg, #fffdf9 0%, #fff5e8 100%);
    border-style: dashed;
    color: var(--accent-text);
}

.result-action.locked:hover {
    background: #fff4e5;
    color: var(--accent-text-hover);
}

.result-action--wide {
    padding-left: 14px;
    padding-right: 14px;
}

.result-upsell-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 2px 7px;
    background: rgba(184, 154, 106, 0.18);
    color: var(--accent-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-4px);
    max-width: 0;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
    margin-left: -2px;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        max-width 0.18s ease,
        padding 0.18s ease,
        margin 0.18s ease,
        visibility 0.18s ease;
}

.result-action.locked:hover .result-upsell-badge,
.result-action.locked:focus-visible .result-upsell-badge,
.contact-pill--locked:hover .result-upsell-badge,
.contact-pill--locked:focus-visible .result-upsell-badge {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    max-width: 72px;
    padding-left: 7px;
    padding-right: 7px;
    margin-left: 2px;
}

.result-product-row .result-action,
.result-product-row .result-action:visited {
    padding: 5px 12px;
    font-size: 12px;
    gap: 5px;
    background: #fffdf9;
    border-color: rgba(232, 225, 216, 0.9);
    color: var(--text-soft);
}

.result-product-row .result-action span,
.result-contact-row .contact-pill span {
    min-width: 0;
}

@media (max-width: 900px) {
    .mkt-live-stats {
        grid-template-columns: 1fr;
    }

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

    .mkt-reveal {
        transform: translateY(18px) scale(0.99);
    }

    .mkt-dark-grid {
        grid-template-columns: 1fr;
    }

    .mkt-tiers {
        grid-template-columns: 1fr 1fr;
    }

    .result-card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .result-signals--stacked {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .result-signals--stacked .signal-pill {
        width: auto;
        min-width: 104px;
    }
}

@media (max-width: 700px) {
    .mkt-dark--cta .result-action {
        width: 100%;
        min-width: 0;
    }
}

.result-product-row .result-action .icon {
    width: 13px;
    height: 13px;
}

.result-product-row .result-action.primary,
.result-product-row .result-action.primary:visited {
    background: #fff3e0;
    border-color: rgba(184, 154, 106, 0.42);
    color: var(--accent-text);
}

.result-product-row .result-action:hover {
    background: #fff8ef;
    border-color: rgba(184, 154, 106, 0.55);
    color: var(--accent-text);
}

.result-product-row .result-action.primary:hover {
    background: #ffe9c9;
    color: var(--accent-text-hover);
}

.result-product-row .result-action.locked {
    background: #fffaf4;
    border-color: rgba(184, 154, 106, 0.24);
}

.result-contact-row .contact-pill {
    padding: 5px 11px;
    font-size: 12px;
    color: var(--text-soft);
    background: #fafaf8;
    border: 1px solid rgba(232, 225, 216, 0.85);
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.result-contact-row .contact-pill:hover {
    color: var(--accent-text);
    background: #fff8ef;
    border-color: rgba(184, 154, 106, 0.45);
    text-decoration: none;
}

.results-progress {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fffaf4;
}

.results-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.results-progress-head p,
.results-progress-head span {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.results-progress-head span {
    font-weight: 700;
    color: var(--accent-text);
}

.results-progress-track {
    width: 100%;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: #f2e8db;
    overflow: hidden;
    appearance: none;
}

.results-progress-track::-webkit-progress-bar {
    background: #f2e8db;
    border-radius: 999px;
}

.results-progress-track::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #c8a36f 0%, #a97d43 100%);
}

.results-progress-track::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #c8a36f 0%, #a97d43 100%);
}

.results-pagination {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.results-guest-gate {
    margin-top: 14px;
    padding: 24px 26px;
    border: 1px solid rgba(184, 154, 106, 0.45);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fdf6e8 0%, #f9edd6 50%, #f5e4c4 100%);
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    box-shadow: 0 2px 16px rgba(184, 154, 106, 0.18), inset 0 1px 0 rgba(255,255,255,0.8);
}

.guest-gate-lock {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(184, 154, 106, 0.2);
    border: 1px solid rgba(184, 154, 106, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a5e28;
}

.guest-gate-lock svg {
    width: 22px;
    height: 22px;
}

.guest-gate-body {
    flex: 1;
    min-width: 220px;
}

.guest-gate-title {
    margin: 0 0 5px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #5a3a10;
    letter-spacing: -0.01em;
}

.guest-gate-sub {
    margin: 0 0 14px;
    font-size: 0.85rem;
    color: #7a5a2c;
    line-height: 1.55;
    opacity: 0.85;
}

.guest-gate-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.guest-gate-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.guest-gate-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #7a4f1a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.guest-gate-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9a7040;
    font-weight: 600;
}

.guest-gate-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 4px 16px rgba(184, 154, 106, 0.35);
}

.guest-gate-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.18s;
}

.guest-gate-cta:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 22px rgba(184, 154, 106, 0.48);
    text-decoration: none;
    color: #fff;
}

.guest-gate-cta:hover svg {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .results-guest-gate {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .guest-gate-cta {
        width: 100%;
        justify-content: center;
    }
}

.sales-plan-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.sales-plan-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(232, 225, 216, 0.95);
    border-radius: 999px;
    padding: 7px 11px;
    background: #fffdf9;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.2;
}

.sales-plan-pill strong {
    color: var(--accent-text);
    margin-right: 4px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fffaf4;
    color: var(--text);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.pagination-link:hover {
    border-color: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
}

.pagination-link.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.pagination-link-nav {
    padding-left: 12px;
    padding-right: 12px;
}

.result-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: var(--fs-sm);
    color: var(--text);
    background: #fffaf4;
}

.result-action .icon {
    width: var(--icon-base);
    height: var(--icon-base);
}

.result-action.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.result-action:hover {
    text-decoration: none;
    border-color: var(--accent);
    color: var(--accent-text);
}

.result-action.primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.result-action.tertiary {
    background: #fff;
    color: var(--text-soft);
}

.result-action.tertiary:hover {
    color: var(--accent-text);
    background: #fff9f0;
}

.social-links {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-links a {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text);
    background: #fffaf4;
}

.social-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.domain-profile,
.domain-profile {
    margin-bottom: 18px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.domain-profile h1 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: clamp(30px, 3.4vw, 42px);
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.domain-kicker {
    margin: 0 0 6px;
    color: var(--accent-text);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.domain-title {
    margin: 0 0 6px;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: var(--lh-snug);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.domain-description {
    margin: 0;
    color: var(--text-soft);
    font-size: var(--fs-base);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.domain-context {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

.metric {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fffaf4;
    padding: 10px 12px;
    position: relative;
}

.metric-anchor {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.metric-anchor-arrow {
    display: inline-block;
    color: var(--text-soft);
    opacity: 0;
    margin-left: 4px;
    vertical-align: middle;
    transition: opacity 0.15s, transform 0.15s;
}

.metric:has(.metric-anchor):hover {
    border-color: rgba(120, 80, 200, 0.3);
    background: rgba(248, 246, 255, 0.8);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.metric:has(.metric-anchor):hover .metric-anchor-arrow {
    opacity: 0.6;
    transform: translateY(2px);
}

.metric span {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-soft);
}

.metric-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.metric-label .icon {
    width: var(--icon-sm);
    height: var(--icon-sm);
}

.metric strong {
    font-size: 22px;
}

.domain-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.domain-contact {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.domain-contact h2 {
    margin: 0 0 10px;
    font-size: var(--fs-lg);
}

.domain-contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: var(--fs-sm);
    color: var(--text);
    background: #fff7ee;
}

.contact-pill .icon {
    width: var(--icon-md);
    height: var(--icon-md);
}

.contact-pill:hover {
    border-color: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
}

.contact-pill--locked {
    background: linear-gradient(180deg, #fffdf9 0%, #fff5e8 100%);
    border-style: dashed;
    color: var(--accent-text);
    cursor: pointer;
}

.contact-pill--locked:hover {
    background: #fff4e5;
    color: var(--accent-text-hover);
    text-decoration: none;
}

.domain-contact-note {
    margin: 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
}

.domain-contact-note .icon {
    width: var(--icon-md);
    height: var(--icon-md);
    margin-top: 2px;
}

.domain-profile,
.domain-workspace-card,
.workspace-panel,
.similar-card-wrap,
.relation-card-wrap,
.domain-contact,
.domain-actions,
.metrics,
.metric,
.action-list,
.action-item,
.relation-card-head,
.relation-table-wrap,
.relation-pagination,
.similar-list,
.domain-note-head,
.domain-note-display,
.note-form,
.note-actions,
.domain-contact-grid {
    min-width: 0;
}

.domain-profile .content {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.domain-profile .content h2 {
    margin: 0 0 8px;
    font-size: var(--fs-lg);
}

.domain-profile .content p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.domain-note {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(184, 154, 106, 0.28);
    border-radius: 22px;
    background:
        radial-gradient(140% 160% at 100% 0%, rgba(255, 242, 220, 0.92) 0%, rgba(255, 242, 220, 0) 52%),
        linear-gradient(180deg, #fffdf9 0%, #fff7ee 100%);
    box-shadow:
        0 20px 44px rgba(128, 92, 44, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.domain-note--locked {
    background:
        radial-gradient(140% 160% at 100% 0%, rgba(245, 238, 230, 0.9) 0%, rgba(245, 238, 230, 0) 50%),
        linear-gradient(180deg, #fffdf9 0%, #f9f4ec 100%);
}

.domain-workspace-card {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.workspace-panel {
    padding: 24px;
    border-radius: 22px;
    border: 1px solid var(--border);
    box-shadow:
        0 2px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.workspace-panel + .workspace-panel {
    border-left: none;
    border-top: none;
}

.workspace-panel--note {
    background:
        radial-gradient(140% 160% at 100% 0%, rgba(255, 242, 220, 0.6) 0%, rgba(255, 242, 220, 0) 52%),
        linear-gradient(180deg, #fffdf9 0%, #fff7ee 100%);
}

.workspace-panel--todo {
    background:
        radial-gradient(140% 160% at 100% 0%, rgba(220, 228, 255, 0.5) 0%, rgba(220, 228, 255, 0) 52%),
        linear-gradient(180deg, #fafbff 0%, #f4f6ff 100%);
}

.workspace-panel--locked {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    padding: 20px 24px;
}

.workspace-content--blurred {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    max-height: 80px;
    overflow: hidden;
}

.workspace-locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(100, 120, 220, 0.1);
    transition: background 0.15s;
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.95);
}

.action-item--done .action-title {
    text-decoration: line-through;
    color: var(--text-soft);
    opacity: 0.6;
}

.action-toggle-form {
    margin: 0;
    flex-shrink: 0;
}

.action-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(100, 120, 220, 0.4);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.action-checkbox:hover {
    border-color: rgba(100, 120, 220, 0.8);
    background: rgba(100, 120, 220, 0.06);
}

.action-item--done .action-checkbox {
    background: rgba(100, 120, 220, 0.15);
    border-color: rgba(100, 120, 220, 0.5);
}

.action-checkbox-inner {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: transparent;
    transition: background 0.15s;
}

.action-item--done .action-checkbox-inner {
    background: rgba(80, 100, 200, 0.7);
}

.action-title {
    flex: 1;
    font-size: var(--fs-base);
    line-height: 1.4;
}

.action-due {
    font-size: 12px;
    color: var(--text-soft);
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(100, 120, 220, 0.08);
}

.action-due--overdue {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.08);
}

.action-delete-form {
    margin: 0;
    flex-shrink: 0;
}

.action-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 5px;
    border-radius: 6px;
    color: var(--text-soft);
    opacity: 0.3;
    display: flex;
    align-items: center;
    transition: color 0.15s, opacity 0.15s, background 0.15s;
}

.action-item:hover .action-delete {
    opacity: 0.7;
}

.action-delete:hover {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.08);
    opacity: 1;
}

.action-empty {
    font-size: var(--fs-sm);
    color: var(--text-soft);
    margin: 0 0 16px;
    font-style: italic;
}

.action-add-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.action-add-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.action-input {
    border: 1px solid rgba(100, 120, 220, 0.25);
    border-radius: 10px;
    padding: 9px 13px;
    font-size: var(--fs-base);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.action-input:focus {
    outline: none;
    border-color: rgba(100, 120, 220, 0.6);
    box-shadow: 0 0 0 3px rgba(100, 120, 220, 0.1);
}

.action-input::placeholder {
    color: var(--text-soft);
    -webkit-text-fill-color: var(--text-soft);
    opacity: 1;
}

.action-date-group {
    width: 100%;
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-date-label {
    display: inline-flex;
    align-items: center;
    color: rgba(194, 65, 12, 0.95);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.2;
}

.action-date-input {
    appearance: auto;
    -webkit-appearance: auto;
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 10px;
    padding: 9px 13px;
    min-height: 40px;
    font-size: var(--fs-base);
    background: rgba(255, 247, 237, 0.92);
    color: rgba(124, 45, 18, 0.96);
    -webkit-text-fill-color: rgba(124, 45, 18, 0.96);
    color-scheme: light;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.action-date-input::-webkit-calendar-picker-indicator {
    opacity: 1;
    cursor: pointer;
    padding: 3px;
    border-radius: 6px;
    background: rgba(249, 115, 22, 0.12);
}

.action-date-input::-webkit-datetime-edit,
.action-date-input::-webkit-datetime-edit-fields-wrapper {
    color: rgba(124, 45, 18, 0.96);
}

.action-date-input:focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
    background: rgba(255, 247, 237, 1);
}

.action-add-btn {
    white-space: nowrap;
    padding: 9px 18px;
    border-radius: 10px;
    border: none;
    background: rgba(100, 120, 220, 0.15);
    color: rgba(60, 80, 180, 0.9);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.action-add-btn:hover {
    background: rgba(100, 120, 220, 0.25);
    color: rgba(40, 60, 160, 1);
}

.action-share-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    cursor: pointer;
    user-select: none;
}

.domain-note-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.workspace-panel--locked .domain-note-head,
.relation-card-wrap--locked .domain-note-head,
.similar-card-wrap--locked .similar-card-head {
    margin-bottom: 6px;
}

.workspace-panel--locked .domain-note-head h2,
.relation-card-wrap--locked .domain-note-head h2,
.relation-card-wrap--locked .relation-card-head h2 {
    font-size: clamp(16px, 1.6vw, 20px);
    letter-spacing: -0.01em;
    color: var(--text-soft);
}

.domain-note-head h2 {
    margin: 4px 0 0;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.domain-note-kicker {
    margin: 0;
    color: var(--accent-text);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.domain-note-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(184, 154, 106, 0.32);
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent-text);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.domain-note-intro {
    margin: 0 0 14px;
    max-width: 64ch;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
}

.domain-note-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.domain-note-delete-form {
    margin: 0;
    display: inline-flex;
}

.domain-note-action-button {
    width: auto;
    min-height: 36px;
    padding: 0 12px;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

.domain-note-action-button .icon {
    width: 13px;
    height: 13px;
}

.domain-note-display {
    padding: 18px 20px;
    border: 1px solid rgba(184, 154, 106, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.domain-note-body,
.domain-note-empty {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.domain-note-empty {
    color: var(--text-soft);
}

.domain-note-add-inline {
    display: inline-flex;
}

.note-form {
    display: grid;
    gap: 14px;
}

.domain-note-inline-form[hidden] {
    display: none;
}

.note-textarea {
    width: 100%;
    min-height: 220px;
    padding: 18px 20px;
    border: 1px solid rgba(184, 154, 106, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 24px rgba(160, 120, 64, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.note-textarea::placeholder {
    color: rgba(75, 66, 57, 0.68);
}

.note-textarea:hover {
    background: rgba(255, 255, 255, 0.9);
}

.note-textarea:focus {
    outline: none;
    border-color: rgba(184, 154, 106, 0.9);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(184, 154, 106, 0.14),
        0 18px 34px rgba(160, 120, 64, 0.12);
}

.note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.note-all-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    color: var(--accent-text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.note-all-link:hover {
    color: var(--accent-text-hover);
    text-decoration: none;
}

.note-upsell {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
}

.feature-upsell-card {
    margin-top: 18px;
}

.feature-upsell-cta {
    display: inline-flex;
    margin-top: 12px;
}

.similar-card-wrap {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid rgba(100, 180, 140, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(140% 160% at 100% 0%, rgba(200, 240, 220, 0.5) 0%, rgba(200, 240, 220, 0) 52%),
        linear-gradient(180deg, #f9fffc 0%, #f2faf6 100%);
    box-shadow:
        0 20px 44px rgba(60, 140, 100, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.similar-card-wrap--locked {
    background:
        radial-gradient(140% 160% at 100% 0%, rgba(235, 245, 240, 0.9) 0%, rgba(235, 245, 240, 0) 50%),
        linear-gradient(180deg, #f9fffc 0%, #f2faf6 100%);
    position: relative;
    min-height: 120px;
    padding: 20px 24px;
}

.similar-list--blurred {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    max-height: 80px;
    overflow: hidden;
}

.similar-item--locked {
    color: var(--text-soft);
}

.similar-locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
}

.similar-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.similar-card-head h2 {
    margin: 4px 0 0;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.similar-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.similar-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    border: 1px solid rgba(100, 180, 140, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    color: inherit;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.similar-item:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(60, 160, 110, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(60, 140, 100, 0.1);
    text-decoration: none;
}

.similar-item-domain {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--text);
}

.similar-item-title {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 11px;
    color: rgba(50, 140, 90, 0.8);
    font-weight: 600;
}

.similar-score .icon {
    width: 11px;
    height: 11px;
}

.similar-empty {
    margin: 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
    font-style: italic;
}

/* ── Relation cards ─────────────────────────────────────────────────── */

.relation-card-wrap {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid rgba(120, 80, 200, 0.18);
    border-radius: 22px;
    background:
        radial-gradient(140% 160% at 100% 0%, rgba(220, 210, 255, 0.45) 0%, rgba(220, 210, 255, 0) 52%),
        linear-gradient(180deg, #fdfbff 0%, #f7f4ff 100%);
    box-shadow:
        0 20px 44px rgba(100, 60, 180, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.relation-card-wrap--locked {
    background:
        radial-gradient(140% 160% at 100% 0%, rgba(240, 238, 248, 0.9) 0%, rgba(240, 238, 248, 0) 50%),
        linear-gradient(180deg, #fdfbff 0%, #f7f4ff 100%);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    padding: 20px 24px;
}

.relation-table-wrap--blurred {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    max-height: 80px;
    overflow: hidden;
}

.relation-locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.relation-card-head {
    margin-bottom: 18px;
}

.relation-card-head h2 {
    margin: 4px 0 0;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.relation-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.relation-info-icon {
    color: var(--text-soft);
    opacity: 0.45;
    cursor: default;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.relation-tooltip-wrap:hover .relation-info-icon {
    opacity: 0.9;
}

.relation-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    background: #1e1a2e;
    color: #e8e4f8;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
    padding: 10px 13px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    pointer-events: none;
    z-index: 100;
    white-space: normal;
}

.relation-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e1a2e;
}

.relation-tooltip-wrap:hover .relation-tooltip {
    display: block;
}

.relation-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(120, 80, 200, 0.1);
    color: rgba(100, 60, 180, 0.85);
    font-size: 14px;
    font-weight: 700;
}

.relation-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(120, 80, 200, 0.12);
    background: rgba(255, 255, 255, 0.7);
}

.relation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    table-layout: fixed;
}

.relation-table thead th:first-child,
.relation-table td:first-child {
    width: auto;
}

.relation-table thead th:nth-child(2),
.relation-table td:nth-child(2) {
    width: 84px;
    text-align: right;
}

.relation-table thead th:last-child:nth-child(3),
.relation-table td:last-child:nth-child(3) {
    width: 54px;
    text-align: center;
}

.relation-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-soft);
    border-bottom: 1px solid rgba(120, 80, 200, 0.1);
    background: rgba(248, 246, 255, 0.8);
}

.relation-table tbody tr {
    border-bottom: 1px solid rgba(120, 80, 200, 0.07);
    transition: background 0.12s;
}

.relation-table tbody tr:last-child {
    border-bottom: none;
}

.relation-table tbody tr:hover {
    background: rgba(220, 210, 255, 0.15);
}

.relation-table td {
    padding: 10px 14px;
    vertical-align: middle;
}

.relation-domain-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
}

.relation-domain-link:hover {
    color: rgba(100, 60, 180, 0.9);
    text-decoration: none;
}

.relation-favicon {
    border-radius: 3px;
    flex-shrink: 0;
}

.relation-title-cell {
    color: var(--text-soft);
    max-width: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.relation-signal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(120, 80, 200, 0.08);
    color: rgba(100, 60, 180, 0.8);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.relation-save-form {
    margin: 0;
    display: flex;
}

.relation-save-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 6px;
    border-radius: 6px;
    color: var(--text-soft);
    opacity: 0.35;
    display: flex;
    align-items: center;
    transition: color 0.15s, opacity 0.15s, background 0.15s;
}

.relation-table tbody tr:hover .relation-save-btn {
    opacity: 0.7;
}

.relation-save-btn:hover {
    color: rgba(100, 60, 180, 0.9);
    background: rgba(120, 80, 200, 0.1);
    opacity: 1;
}

.relation-save-btn--saved {
    color: #22a06b;
    opacity: 1 !important;
}

.relation-save-btn--saved:hover {
    color: #1a8057;
    background: rgba(34, 160, 107, 0.12);
}

/* ── Favorite picker dropdown ── */

.fav-picker-wrap {
    position: relative;
    display: inline-flex;
}

.fav-picker-wrap--profile {
    display: inline-flex;
    position: relative;
}

.fav-picker-wrap--profile > .result-action {
    font-family: inherit;
    font-size: var(--fs-sm);
    cursor: pointer;
}

.fav-picker-wrap .result-action,
.fav-picker-wrap--profile .result-action {
    transition: background 0.22s cubic-bezier(.4,0,.2,1),
                color 0.22s cubic-bezier(.4,0,.2,1),
                border-color 0.22s cubic-bezier(.4,0,.2,1),
                box-shadow 0.22s cubic-bezier(.4,0,.2,1),
                transform 0.18s cubic-bezier(.4,0,.2,1);
}

.fav-picker-wrap .result-action:hover,
.fav-picker-wrap--profile .result-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(184,154,106,0.12);
}

.result-action--saved {
    background: rgba(34, 160, 107, 0.10) !important;
    border-color: rgba(34, 160, 107, 0.35) !important;
    color: #22a06b !important;
}

.result-action--saved:hover {
    background: rgba(34, 160, 107, 0.16) !important;
    border-color: #22a06b !important;
    box-shadow: 0 3px 14px rgba(34,160,107,0.14) !important;
}

/* dropdown panel */

.fav-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 120;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
    min-width: 190px;
    padding: 6px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px) scale(0.97);
    transition: opacity 0.2s cubic-bezier(.4,0,.2,1),
                transform 0.2s cubic-bezier(.4,0,.2,1);
}

.fav-dropdown--open,
.fav-picker-wrap:hover .fav-dropdown,
.fav-picker-wrap--profile:hover .fav-dropdown {
    display: block;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.fav-picker-wrap--profile .fav-dropdown {
    left: 0;
    right: auto;
}

/* dropdown items */

.fav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: var(--fs-sm);
    font-family: inherit;
    color: var(--text, #111);
    cursor: pointer;
    text-align: left;
    transition: background 0.16s cubic-bezier(.4,0,.2,1),
                color 0.16s cubic-bezier(.4,0,.2,1),
                transform 0.12s cubic-bezier(.4,0,.2,1);
}

.fav-dropdown-item:hover {
    background: rgba(0,0,0,0.04);
    transform: translateX(2px);
}

.fav-dropdown-item:active {
    transform: scale(0.98);
}

.fav-dropdown-item--checked {
    background: rgba(34,160,107,0.07);
    color: #1a8057;
    font-weight: 600;
}

.fav-dropdown-item--checked:hover {
    background: rgba(34,160,107,0.12);
}

.fav-dropdown-check {
    flex-shrink: 0;
    color: var(--text-soft, #999);
    opacity: 0.35;
    transition: color 0.2s cubic-bezier(.4,0,.2,1),
                opacity 0.2s cubic-bezier(.4,0,.2,1),
                transform 0.25s cubic-bezier(.2,1,.2,1);
}

.fav-dropdown-item--checked .fav-dropdown-check {
    color: #22a06b;
    opacity: 1;
}

/* green tick flash animation */
@keyframes fav-tick-pop {
    0%   { transform: scale(0.5) rotate(-8deg); opacity: 0.3; }
    50%  { transform: scale(1.3) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.fav-dropdown-item--just-added .fav-dropdown-check {
    animation: fav-tick-pop 0.35s cubic-bezier(.2,1,.2,1) both;
    color: #22a06b;
    opacity: 1;
}

@keyframes fav-tick-remove {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(0.6); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.35; }
}

.fav-dropdown-item--just-removed .fav-dropdown-check {
    animation: fav-tick-remove 0.3s cubic-bezier(.4,0,.2,1) both;
}

/* row flash feedback */
@keyframes fav-row-flash {
    0%   { background: rgba(34,160,107,0.18); }
    100% { background: rgba(34,160,107,0.07); }
}

.fav-dropdown-item--just-added {
    animation: fav-row-flash 0.5s cubic-bezier(.4,0,.2,1) both;
}

.fav-dropdown-empty {
    display: block;
    font-size: 0.82rem;
    color: var(--text-soft);
    padding: 8px 10px;
}

.fav-dropdown-empty a {
    color: rgba(100, 60, 180, 0.9);
}

.relation-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.relation-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(120, 80, 200, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-soft);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.relation-page-btn:hover:not(:disabled) {
    background: rgba(120, 80, 200, 0.1);
    border-color: rgba(120, 80, 200, 0.4);
    color: rgba(100, 60, 180, 0.9);
}

.relation-page-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.relation-page-info {
    font-size: var(--fs-sm);
    color: var(--text-soft);
    min-width: 50px;
    text-align: center;
}

.relation-empty {
    margin: 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
    font-style: italic;
}

.meta {
    font-size: 12px;
    margin-top: 8px;
    color: var(--muted);
}

/* =========================
   RELATIONSHIP INTELLIGENCE PAGE
========================= */

.ri-page .page-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ri-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: rgba(109, 40, 217, 0.8);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Summary stats row ── */
.ri-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 4px;
}

@media (max-width: 600px) {
    .ri-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ══════════════════════════════════════════════════════
   Relationship Intelligence — mobile (narrow viewports)
══════════════════════════════════════════════════════ */
@media (max-width: 640px) {

    .ri-page .page-header {
        align-items: center;
    }

    .ri-header-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .ri-card {
        padding: 16px;
        border-radius: 16px;
    }

    .ri-card-head h2 {
        font-size: clamp(16px, 5vw, 22px);
    }

    /* Reference input stacks vertically */
    .ri-ref-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ri-ref-input {
        min-width: 0;
        max-width: 100%;
    }

    /* Tables → card list */
    .ri-table-wrap {
        overflow-x: visible;
        border: none;
        background: transparent;
        border-radius: 0;
    }

    .ri-table {
        display: block;
    }

    .ri-table thead {
        display: none;
    }

    .ri-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .ri-table tbody tr {
        display: block;
        background: rgba(255,255,255,0.8);
        border: 1px solid rgba(120,80,200,0.12);
        border-radius: 12px;
        padding: 12px 14px;
        box-shadow: 0 1px 6px rgba(100,60,180,0.05);
    }

    .ri-card--authority .ri-table tbody tr {
        border-color: rgba(180,140,40,0.14);
        box-shadow: 0 1px 6px rgba(140,100,10,0.05);
    }

    .ri-card--opportunities .ri-table tbody tr {
        border-color: rgba(40,160,90,0.14);
        box-shadow: 0 1px 6px rgba(30,130,70,0.05);
    }

    .ri-table td {
        display: grid;
        grid-template-columns: 96px 1fr;
        align-items: baseline;
        gap: 6px;
        padding: 5px 0;
        border: none;
    }

    .ri-table td + td {
        border-top: 1px solid rgba(120,80,200,0.06);
    }

    .ri-card--authority .ri-table td + td { border-top-color: rgba(180,140,40,0.07); }
    .ri-card--opportunities .ri-table td + td { border-top-color: rgba(40,160,90,0.07); }

    .ri-table td::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--text-soft);
        padding-top: 2px;
    }

    .ri-table td[data-label=""] {
        grid-template-columns: 1fr;
    }

    .ri-table td[data-label=""]::before {
        display: none;
    }

    /* Rank cell: hide # label, show inline */
    .ri-rank-cell {
        grid-template-columns: 96px 1fr;
    }

    /* Sources cell: allow wrap */
    .ri-sources-cell {
        max-width: 100%;
        flex-wrap: wrap;
    }

    /* domain link: allow wrap on very narrow */
    .ri-domain-link {
        white-space: normal;
        word-break: break-all;
    }
}

.ri-stat {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(120, 80, 200, 0.14);
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(100, 60, 180, 0.05);
}

.ri-stat-value {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: rgba(85, 40, 180, 0.9);
    line-height: 1;
}

.ri-stat-label {
    font-size: 12px;
    color: var(--text-soft);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Cards ── */
.ri-card {
    margin-top: 20px;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(120, 80, 200, 0.15);
    box-shadow:
        0 20px 44px rgba(100, 60, 180, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ri-card--authority {
    background:
        radial-gradient(140% 160% at 5% 0%, rgba(255, 240, 180, 0.55) 0%, rgba(255, 240, 180, 0) 52%),
        linear-gradient(180deg, #fffdf5 0%, #fdf8e8 100%);
    border-color: rgba(180, 140, 40, 0.16);
}

.ri-card--opportunities {
    background:
        radial-gradient(140% 160% at 5% 0%, rgba(190, 240, 210, 0.55) 0%, rgba(190, 240, 210, 0) 52%),
        linear-gradient(180deg, #f6fdf8 0%, #ebf8f0 100%);
    border-color: rgba(40, 160, 90, 0.16);
}

.ri-card--shared {
    background:
        radial-gradient(140% 160% at 100% 0%, rgba(220, 210, 255, 0.45) 0%, rgba(220, 210, 255, 0) 52%),
        linear-gradient(180deg, #fdfbff 0%, #f7f4ff 100%);
    border-color: rgba(120, 80, 200, 0.18);
}

.ri-card--recommend {
    background:
        radial-gradient(140% 160% at 5% 100%, rgba(255, 235, 190, 0.5) 0%, rgba(255, 235, 190, 0) 52%),
        linear-gradient(180deg, #fffdf9 0%, #fff9f0 100%);
    border-color: rgba(184, 154, 106, 0.22);
}

.ri-card--import {
    margin-top: 18px;
    background:
        radial-gradient(120% 180% at 100% 0%, rgba(204, 233, 225, 0.32) 0%, rgba(204, 233, 225, 0) 46%),
        linear-gradient(180deg, #fbfefc 0%, #f5fbf8 100%);
    border-color: rgba(93, 145, 124, 0.18);
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ri-card--import.is-open {
    border-color: rgba(93, 145, 124, 0.32);
    box-shadow:
        0 18px 36px rgba(55, 110, 90, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ri-import-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(246, 252, 248, 0.92) 100%);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.ri-import-toggle:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 251, 246, 0.96) 100%);
}

.ri-import-toggle .ri-card-head {
    margin: 0;
}

.ri-import-toggle .ri-card-desc {
    max-width: 820px;
}

.ri-import-toggle-icon {
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(58, 95, 81, 0.82);
    border-bottom: 2px solid rgba(58, 95, 81, 0.82);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-right: 4px;
    transition: transform 0.2s ease;
}

.ri-card--import.is-open .ri-import-toggle-icon {
    transform: rotate(225deg);
}

#ri-import-collapsible {
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(93, 145, 124, 0.16);
    background: rgba(255, 255, 255, 0.5);
}

.ri-card--recommend .ri-card-kicker { color: rgba(140, 100, 20, 0.8); }

/* ── List-selector chips ── */
.ri-rec-picker-label {
    margin: 0 0 10px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-soft);
}

.ri-rec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ri-rec-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--text);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    user-select: none;
}

.ri-rec-chip:hover {
    border-color: rgba(184, 154, 106, 0.5);
    background: #fffaf3;
}

.ri-rec-chip:has(.ri-rec-chip-input:checked) {
    border-color: var(--accent);
    background: rgba(184, 154, 106, 0.1);
    color: var(--accent-text);
}

.ri-rec-chip-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.ri-rec-chip-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--border);
    background: #fff;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
    color: transparent;
}

.ri-rec-chip:has(.ri-rec-chip-input:checked) .ri-rec-chip-check {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.ri-rec-chip-name {
    font-weight: 600;
}

.ri-rec-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-soft);
}

.ri-rec-chip:has(.ri-rec-chip-input:checked) .ri-rec-chip-count {
    background: rgba(184, 154, 106, 0.2);
    color: var(--accent-text);
}

/* ── Generate button row ── */
.ri-rec-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ri-import-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ri-import-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(220px, 320px);
    gap: 14px;
}

.ri-import-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ri-import-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
}

.ri-import-field input[type="text"],
.ri-import-field input[type="file"],
.ri-import-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font: inherit;
    color: var(--text);
}

.ri-file-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(93, 145, 124, 0.22);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 253, 250, 0.95) 100%);
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.ri-file-picker:focus-within {
    border-color: rgba(93, 145, 124, 0.52);
    box-shadow: 0 0 0 4px rgba(93, 145, 124, 0.1);
}

.ri-file-picker.has-file {
    border-color: rgba(53, 123, 97, 0.4);
    background: linear-gradient(180deg, rgba(244, 252, 248, 0.98) 0%, rgba(239, 250, 245, 0.95) 100%);
}

.ri-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.ri-file-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(49, 112, 88, 0.35);
    background: linear-gradient(180deg, #3e8c69 0%, #2f7d5e 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(49, 112, 88, 0.22);
    transition: transform 0.15s, box-shadow 0.18s, filter 0.18s;
}

.ri-file-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(49, 112, 88, 0.28);
    filter: brightness(1.02);
}

.ri-file-name {
    min-width: 0;
    flex: 1;
    padding: 8px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(93, 145, 124, 0.16);
    font-size: 12px;
    color: #45635a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ri-import-field textarea {
    min-height: 176px;
    resize: vertical;
    line-height: 1.45;
}

.ri-import-field input[type="text"]:focus,
.ri-import-field input[type="file"]:focus,
.ri-import-field textarea:focus {
    outline: none;
    border-color: rgba(93, 145, 124, 0.55);
    box-shadow: 0 0 0 4px rgba(93, 145, 124, 0.09);
}

.ri-import-actions,
.ri-import-confirm {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ri-import-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: #2f7d5e;
    color: #fff;
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 10px rgba(47, 125, 94, 0.24);
    transition: background 0.18s, box-shadow 0.18s;
}

.ri-import-btn:hover:not(:disabled) {
    background: #27694f;
    box-shadow: 0 4px 16px rgba(47, 125, 94, 0.3);
}

.ri-import-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ri-import-btn--confirm {
    background: var(--accent);
    box-shadow: 0 2px 10px rgba(184, 154, 106, 0.24);
}

.ri-import-btn--confirm:hover:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(184, 154, 106, 0.32);
}

.ri-import-hint {
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.ri-import-preview {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(93, 145, 124, 0.16);
}

.ri-import-preview[hidden] {
    display: none;
}

.ri-import-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ri-import-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(93, 145, 124, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.ri-import-stat strong {
    font-size: 24px;
    line-height: 1;
    color: var(--text);
}

.ri-import-stat span {
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.ri-import-stat--good strong {
    color: #246849;
}

.ri-import-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.ri-import-col h3 {
    margin: 0 0 8px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
}

.ri-import-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow: auto;
    padding-right: 4px;
}

.ri-import-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.ri-import-item--plain {
    color: var(--text-soft);
}

.ri-import-item strong {
    font-size: var(--fs-sm);
    color: var(--text);
}

.ri-import-item-meta {
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.4;
}

.ri-import-empty {
    margin: 0;
    padding: 12px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--text-soft);
    font-size: var(--fs-sm);
    background: rgba(255, 255, 255, 0.6);
}

.ri-rec-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.ri-rec-range-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
}

.ri-rec-range input[type="range"] {
    width: 220px;
    accent-color: var(--accent);
    cursor: pointer;
}

.ri-rec-generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 10px rgba(184,154,106,0.3);
}

.ri-rec-generate-btn.is-loading,
.ri-import-btn.is-loading {
    animation: riButtonPulse 0.95s ease-in-out infinite;
}

.ri-rec-generate-btn.is-loading::after,
.ri-import-btn.is-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: riBtnSpin 0.75s linear infinite;
}

.ri-rec-generate-btn.is-loading .icon {
    opacity: 0.5;
}

@keyframes riBtnSpin {
    to { transform: rotate(360deg); }
}

@keyframes riButtonPulse {
    0% { box-shadow: 0 2px 10px rgba(184,154,106,0.28); }
    50% { box-shadow: 0 5px 16px rgba(184,154,106,0.42); }
    100% { box-shadow: 0 2px 10px rgba(184,154,106,0.28); }
}

.ri-rec-generate-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(184,154,106,0.4);
}

.ri-rec-generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ri-rec-generate-btn .icon {
    width: 15px;
    height: 15px;
}

.ri-rec-selection-hint {
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

/* ── Results area ── */
.ri-rec-results {
    margin-top: 16px;
}

.ri-rec-results[hidden] { display: none; }

.ri-rec-persona-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: rgba(184,154,106,0.06);
    border: 1px solid rgba(184,154,106,0.2);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
}

.ri-rec-persona-wrap[hidden] { display: none; }

.ri-rec-persona-label {
    font-weight: 700;
    color: var(--accent-text);
    white-space: nowrap;
}

.ri-rec-persona-text {
    color: var(--text-soft);
    line-height: 1.5;
    word-break: break-word;
}

.ri-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

/* ── Save trigger in rec card ── */
.ri-rec-save-trigger {
    font-family: inherit;
    cursor: pointer;
    font-size: 12px;
}

@media (max-width: 640px) {
    .ri-import-toggle {
        padding: 18px;
    }

    #ri-import-collapsible {
        padding: 14px 16px 18px;
    }

    .ri-rec-chips {
        gap: 6px;
    }

    .ri-import-row,
    .ri-import-summary,
    .ri-import-columns {
        grid-template-columns: 1fr;
    }

    .ri-file-picker {
        flex-direction: column;
        align-items: stretch;
    }

    .ri-file-trigger {
        justify-content: center;
    }

    .ri-rec-range,
    .ri-rec-range input[type="range"] {
        width: 100%;
    }

    .ri-rec-grid {
        grid-template-columns: 1fr;
    }

    .ri-rec-generate-btn {
        width: 100%;
        justify-content: center;
    }

    .ri-import-btn {
        width: 100%;
    }
}
    margin-bottom: 18px;
}

.ri-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.ri-card--authority .ri-card-kicker { color: rgba(140, 100, 10, 0.75); }
.ri-card--opportunities .ri-card-kicker { color: rgba(30, 130, 70, 0.75); }
.ri-card--shared .ri-card-kicker { color: rgba(100, 60, 180, 0.75); }

.ri-card-head h2 {
    margin: 4px 0 0;
    font-size: clamp(18px, 1.9vw, 26px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ri-card-desc {
    margin: 8px 0 0;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.55;
    max-width: 680px;
}

.ri-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.ri-card--authority .ri-count-badge {
    background: rgba(180, 140, 40, 0.1);
    color: rgba(140, 100, 10, 0.85);
}

.ri-card--opportunities .ri-count-badge {
    background: rgba(40, 160, 90, 0.1);
    color: rgba(30, 130, 70, 0.85);
}

.ri-card--shared .ri-count-badge {
    background: rgba(120, 80, 200, 0.1);
    color: rgba(100, 60, 180, 0.85);
}

/* Reference domain card */
.ri-card--reference {
    background:
        radial-gradient(140% 160% at 100% 100%, rgba(186, 230, 253, 0.45) 0%, rgba(186, 230, 253, 0) 52%),
        linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border-color: rgba(37, 99, 235, 0.14);
}

.ri-card--reference .ri-card-kicker {
    color: rgba(29, 78, 216, 0.7);
}

.ri-ref-form {
    margin-bottom: 14px;
}

.ri-ref-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ri-ref-input {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(255, 255, 255, 0.85);
    font-size: var(--fs-sm);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ri-ref-input:focus {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.ri-ref-btn {
    padding: 9px 18px;
    border-radius: 10px;
    border: none;
    background: rgba(37, 99, 235, 0.85);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.ri-ref-btn:hover {
    background: rgba(29, 78, 216, 0.95);
}

.ri-ref-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-soft);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.ri-ref-clear-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    color: rgba(185, 28, 28, 0.9);
    border-color: rgba(239, 68, 68, 0.2);
}

.ri-ref-active {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    margin-bottom: 16px;
    font-size: var(--fs-sm);
}

/* ── Direction toggle ───────────────────────────────────────────────────── */
.rd-dir-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.rd-dir-schema {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 11px;
    font-weight: 600;
    user-select: none;
}

.rd-schema-node {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(120, 80, 200, 0.12);
    background: rgba(120, 80, 200, 0.04);
    color: var(--text-soft);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.rd-schema-node--center {
    background: rgba(120, 80, 200, 0.10);
    border-color: rgba(120, 80, 200, 0.25);
    color: rgba(90, 50, 160, 0.9);
    font-weight: 700;
    gap: 5px;
}

.rd-schema-node--active {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.35);
    color: #b91c1c;
}

@keyframes rd-flow {
    from { stroke-dashoffset: 14; }
    to   { stroke-dashoffset: 0; }
}

.rd-schema-arrow {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 0 4px;
    color: rgba(120, 80, 200, 0.25);
    transition: color 0.2s;
}

.rd-schema-arrow svg {
    width: 40px;
    height: 12px;
    display: block;
}

.rd-schema-arrow span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: inherit;
}

.rd-schema-arrow--active {
    color: #dc2626;
}

.rd-schema-arrow--active svg line {
    stroke: #dc2626;
    stroke-dasharray: 5 3;
    animation: rd-flow 0.45s linear infinite;
}

.rd-schema-arrow--active svg polyline {
    stroke: #dc2626;
}

.rd-dir-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(120, 80, 200, 0.06);
    border: 1px solid rgba(120, 80, 200, 0.14);
    border-radius: 999px;
    padding: 3px;
    align-self: flex-start;
}

.rd-dir-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.rd-dir-btn:hover {
    color: var(--text);
    background: rgba(120, 80, 200, 0.08);
}

.rd-dir-btn--active {
    background: #fff;
    color: rgba(120, 80, 200, 0.9);
    box-shadow: 0 1px 4px rgba(42, 34, 22, 0.10);
}

.rd-dir-btn--active:hover {
    background: #fff;
    color: rgba(120, 80, 200, 0.9);
}


.ri-ref-active-domain {
    font-weight: 700;
    color: var(--text);
}

.ri-ref-active-title {
    color: var(--text-soft);
}

.ri-ref-active-meta {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-soft);
    white-space: nowrap;
}

.ri-card--reference .ri-table-wrap {
    border-color: rgba(37, 99, 235, 0.1);
}

.ri-card--reference .ri-table thead th {
    border-bottom-color: rgba(37, 99, 235, 0.08);
    background: rgba(239, 246, 255, 0.8);
}

.ri-card--reference .ri-table tbody tr {
    border-bottom-color: rgba(37, 99, 235, 0.06);
}

.ri-card--reference .ri-table tbody tr:hover {
    background: rgba(186, 230, 253, 0.15);
}

.ri-card--reference .ri-save-btn:hover {
    color: rgba(29, 78, 216, 0.9);
    background: rgba(37, 99, 235, 0.1);
}

/* =========================
   TO-DO PAGE
========================= */

.ri-card--todo {
    background:
        radial-gradient(140% 160% at 5% 0%, rgba(219, 234, 254, 0.6) 0%, rgba(219, 234, 254, 0) 52%),
        linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
    border-color: rgba(37, 99, 235, 0.14);
}

.ri-card--todo .ri-card-kicker {
    color: rgba(29, 78, 216, 0.7);
}

.ri-card--todo-done {
    background:
        radial-gradient(140% 160% at 5% 0%, rgba(187, 247, 208, 0.4) 0%, rgba(187, 247, 208, 0) 52%),
        linear-gradient(180deg, #f7fdf9 0%, #f0fdf4 100%);
    border-color: rgba(34, 197, 94, 0.14);
    margin-top: 20px;
}

.ri-card--todo-done .ri-card-kicker {
    color: rgba(21, 128, 61, 0.75);
}

.todo-summary {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

.todo-summary-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.todo-summary-pill--open {
    background: rgba(37, 99, 235, 0.08);
    color: rgba(29, 78, 216, 0.85);
}

.todo-summary-pill--done {
    background: rgba(34, 197, 94, 0.08);
    color: rgba(21, 128, 61, 0.85);
}

/* todo table overrides */
.todo-table .ri-table { font-size: var(--fs-sm); }

.todo-row--overdue {
    background: rgba(254, 226, 226, 0.25);
}

.todo-row--overdue:hover {
    background: rgba(254, 202, 202, 0.3) !important;
}

.todo-title-cell {
    font-weight: 500;
    color: var(--text);
    max-width: 360px;
}

.todo-title-cell--done {
    text-decoration: line-through;
    color: var(--text-soft);
    font-weight: 400;
}

.todo-due {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.07);
    color: rgba(29, 78, 216, 0.8);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.todo-due--overdue {
    background: rgba(239, 68, 68, 0.1);
    color: rgba(185, 28, 28, 0.9);
}

.todo-due-empty {
    color: var(--text-soft);
    font-size: 13px;
}

/* checkbox button */
.todo-check-form {
    margin: 0;
    display: flex;
    justify-content: center;
}

.todo-check-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.12s;
}

.todo-check-btn:hover {
    background: rgba(37, 99, 235, 0.07);
}

.todo-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid rgba(37, 99, 235, 0.35);
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.todo-check-btn:hover .todo-checkbox {
    border-color: rgba(37, 99, 235, 0.7);
    background: rgba(37, 99, 235, 0.05);
}

.todo-checkbox--done {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.1);
    color: rgba(21, 128, 61, 0.9);
}

.todo-check-btn--done:hover .todo-checkbox--done {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.06);
    color: rgba(185, 28, 28, 0.8);
}

/* delete button */
.todo-delete-form {
    margin: 0;
    display: flex;
    justify-content: center;
}

.todo-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 6px;
    border-radius: 6px;
    color: var(--text-soft);
    opacity: 0.3;
    display: flex;
    align-items: center;
    transition: color 0.15s, opacity 0.15s, background 0.15s;
}

.ri-table tbody tr:hover .todo-delete-btn {
    opacity: 0.65;
}

.todo-delete-btn:hover {
    color: rgba(185, 28, 28, 0.9);
    background: rgba(239, 68, 68, 0.08);
    opacity: 1;
}

/* ── Todo table: mobile card layout ── */
@media (max-width: 640px) {
    /* Reset the generic ri-table card conversion for todo */
    .todo-table.ri-table tbody {
        gap: 8px;
    }

    .todo-table.ri-table tbody tr {
        display: grid;
        grid-template-columns: 36px 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 4px;
        padding: 10px 12px;
        border-color: rgba(37, 99, 235, 0.12);
        box-shadow: 0 1px 5px rgba(29, 78, 216, 0.05);
    }

    .todo-row--overdue {
        border-color: rgba(239, 68, 68, 0.2) !important;
        background: rgba(254, 242, 242, 0.7) !important;
    }

    /* Override the generic 96px-label grid on each td */
    .todo-table.ri-table td {
        display: flex;
        align-items: center;
        padding: 0;
        border: none;
    }

    .todo-table.ri-table td::before {
        display: none;
    }

    .todo-table.ri-table td + td {
        border-top: none;
    }

    /* Col 1, rows 1–2: checkbox (vertically centered) */
    .todo-table.ri-table td:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / 3;
        justify-content: center;
        align-self: center;
    }

    /* Col 2, row 1: action title */
    .todo-table.ri-table td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        overflow-wrap: anywhere;
    }

    /* Col 2, row 2: company link */
    .todo-table.ri-table td:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    /* Col 3, row 2: due date / done date */
    .todo-table.ri-table td:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
        justify-content: flex-end;
        align-self: center;
    }

    /* Col 3, row 1: delete button */
    .todo-table.ri-table td:nth-child(5) {
        grid-column: 3;
        grid-row: 1;
        justify-content: center;
        align-self: center;
    }

    /* Always show delete on mobile (no hover required) */
    .todo-table.ri-table .todo-delete-btn {
        opacity: 0.5;
    }

    /* Wrap for the todo table on mobile */
    .ri-card--todo .ri-table-wrap,
    .ri-card--todo-done .ri-table-wrap {
        border: none;
        background: transparent;
        border-radius: 0;
        overflow-x: visible;
        padding: 0;
    }
}

/* ── Tables ── */
.ri-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(120, 80, 200, 0.1);
    background: rgba(255, 255, 255, 0.72);
}

.ri-card--authority .ri-table-wrap {
    border-color: rgba(180, 140, 40, 0.12);
}

.ri-card--opportunities .ri-table-wrap {
    border-color: rgba(40, 160, 90, 0.12);
}

.ri-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.ri-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-soft);
    border-bottom: 1px solid rgba(120, 80, 200, 0.08);
    background: rgba(248, 246, 255, 0.8);
    white-space: nowrap;
}

.ri-card--authority .ri-table thead th {
    border-bottom-color: rgba(180, 140, 40, 0.1);
    background: rgba(255, 252, 235, 0.8);
}

.ri-card--opportunities .ri-table thead th {
    border-bottom-color: rgba(40, 160, 90, 0.1);
    background: rgba(240, 252, 244, 0.8);
}

.ri-table tbody tr {
    border-bottom: 1px solid rgba(120, 80, 200, 0.06);
    transition: background 0.12s;
}

.ri-card--authority .ri-table tbody tr { border-bottom-color: rgba(180, 140, 40, 0.07); }
.ri-card--opportunities .ri-table tbody tr { border-bottom-color: rgba(40, 160, 90, 0.07); }

.ri-table tbody tr:last-child {
    border-bottom: none;
}

.ri-table tbody tr:hover {
    background: rgba(220, 210, 255, 0.12);
}

.ri-card--authority .ri-table tbody tr:hover { background: rgba(255, 240, 180, 0.2); }
.ri-card--opportunities .ri-table tbody tr:hover { background: rgba(190, 240, 210, 0.2); }

.ri-table td {
    padding: 10px 14px;
    vertical-align: middle;
}

.ri-rank-cell {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
    width: 30px;
    text-align: center;
}

.ri-domain-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.ri-domain-link:hover {
    color: rgba(100, 60, 180, 0.9);
}

.ri-favicon {
    border-radius: 3px;
    flex-shrink: 0;
}

.ri-title-cell {
    color: var(--text-soft);
    max-width: 300px;
}

.ri-list-cell {
    font-size: 12px;
    color: var(--text-soft);
    white-space: nowrap;
}

.ri-score {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ri-score--gold {
    background: rgba(200, 160, 20, 0.12);
    color: rgba(150, 110, 0, 0.9);
}

.ri-score--green {
    background: rgba(40, 160, 90, 0.1);
    color: rgba(30, 130, 70, 0.9);
}

.ri-score--purple {
    background: rgba(120, 80, 200, 0.1);
    color: rgba(100, 60, 180, 0.9);
}

.ri-signal {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(120, 80, 200, 0.07);
    color: rgba(100, 60, 180, 0.75);
    font-size: 12px;
    font-weight: 600;
}

/* Source chips for shared connections card */
.ri-sources-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 260px;
}

.ri-source-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(120, 80, 200, 0.07);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.ri-source-more {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(120, 80, 200, 0.04);
    color: var(--text-soft);
    font-size: 11px;
    font-style: italic;
}

/* Save button in opportunities table */
.ri-save-form {
    margin: 0;
    display: flex;
}

.ri-save-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 6px;
    border-radius: 6px;
    color: var(--text-soft);
    opacity: 0.35;
    display: flex;
    align-items: center;
    transition: color 0.15s, opacity 0.15s, background 0.15s;
}

.ri-table tbody tr:hover .ri-save-btn {
    opacity: 0.75;
}

.ri-save-btn:hover {
    color: rgba(30, 130, 70, 0.9);
    background: rgba(40, 160, 90, 0.1);
    opacity: 1;
}

.ri-save-btn--saved {
    color: #22a06b;
    opacity: 1 !important;
}

.ri-save-btn--saved:hover {
    color: #1a8057;
    background: rgba(34, 160, 107, 0.12);
}

.ri-empty {
    margin: 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
    font-style: italic;
}

/* =========================
   ANIMATION
========================= */

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

/* =========================
   LEGAL PAGES
========================= */

.legal-page {
    color: var(--text);
    line-height: 1.7;
}

html:has(body.legal-page) {
    background: linear-gradient(180deg, var(--bg) 0%, #fffdf9 100%);
}

.legal-page .page a,
.legal-page .app-main a {
    color: var(--accent-text);
    transition: color 0.2s ease;
}

.legal-page .page a:hover,
.legal-page .app-main a:hover {
    color: var(--accent-text-hover);
}

.legal-page .page {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 20px 72px;
    position: relative;
    isolation: isolate;
}

.legal-page .page::before,
.legal-page .page::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
    animation: legalDrift 14s ease-in-out infinite;
}

.legal-page .page::before {
    width: 340px;
    height: 340px;
    top: -120px;
    right: -90px;
    background: radial-gradient(circle at 35% 35%, rgba(184, 154, 106, 0.22), rgba(243, 235, 225, 0) 70%);
}

.legal-page .page::after {
    width: 300px;
    height: 300px;
    bottom: -140px;
    left: -100px;
    animation-delay: -5s;
    background: radial-gradient(circle at 65% 65%, rgba(167, 137, 92, 0.16), rgba(243, 235, 225, 0) 70%);
}

.legal-page .hero {
    margin-bottom: 28px;
    padding: 24px;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(42, 42, 42, 0.05);
    animation: legalFadeUp 0.55s ease both;
    position: relative;
    overflow: hidden;
}

.legal-page .hero > * {
    max-width: 72ch;
}

.legal-meta-bar {
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 160% at 100% 0%, #fff2df 0%, rgba(255, 242, 223, 0) 62%),
        linear-gradient(180deg, #fffdf9 0%, #fffaf3 100%);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.legal-meta-item {
    padding: 16px 18px;
    min-width: 0;
}

.legal-meta-item + .legal-meta-item {
    border-left: 1px solid var(--border);
}

.legal-meta-label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-soft);
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.legal-meta-item strong,
.legal-meta-item a {
    font-size: var(--fs-base);
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

.legal-meta-value {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legal-meta-value .icon {
    width: var(--icon-md);
    height: var(--icon-md);
    color: var(--text-soft);
}

.legal-meta-item a:hover {
    color: var(--accent-text);
    text-decoration: none;
}

.legal-page .app-main .eyebrow,
.legal-page .page .eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-text);
    background: var(--accent-soft);
    border-radius: 999px;
}

.legal-page .app-main h1,
.legal-page .page h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3.5vw, 40px);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.legal-page .app-main h2,
.legal-page .page h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: var(--lh-snug);
}

.legal-page .app-main h3,
.legal-page .page h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: var(--fs-md);
    line-height: var(--lh-snug);
}

.legal-page .app-main p,
.legal-page .app-main li,
.legal-page .page p,
.legal-page .page li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
}

.legal-page .muted {
    color: var(--text-soft);
}

.legal-page .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(42, 42, 42, 0.05);
    animation: legalFadeUp 0.55s ease 0.12s both;
    position: relative;
    overflow: hidden;
}

.legal-page .card > * {
    max-width: 72ch;
    margin-right: auto;
}

.legal-page .card > h2 {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.legal-page .card > h2:first-child {
    padding-top: 0;
    border-top: none;
}

.legal-page .card > h2 + p,
.legal-page .card > h2 + ul,
.legal-page .card > h3 + p,
.legal-page .card > h3 + ul {
    margin-top: 0;
}

.legal-page .card > p + p {
    margin-top: 12px;
}

.legal-page .meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 18px;
    max-width: none;
}

.legal-page .meta-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: #fffcf7;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.legal-page .meta-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: var(--fs-xs);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-page ul {
    padding-left: 20px;
    margin: 0;
    padding: 14px 16px 14px 34px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fffcf7;
}

.legal-page li + li {
    margin-top: 8px;
}

.legal-page .note {
    margin-top: 20px;
    padding: 16px 18px;
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 10px;
    max-width: 72ch;
}

.legal-table-wrap {
    max-width: 72ch;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: auto;
    background: #fff;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.legal-table th,
.legal-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.legal-table thead th {
    position: sticky;
    top: 0;
    background: #fff9f1;
    color: var(--text-soft);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.legal-table tbody tr:last-child td {
    border-bottom: none;
}

.legal-page .footer-space {
    height: 24px;
}

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

@keyframes legalDrift {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10px, -12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-page .page::before,
    .legal-page .page::after,
    .legal-page .hero,
    .legal-page .card {
        animation: none;
    }
}

/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: 0;
    padding-top: 72px;
    background:
        radial-gradient(55% 70% at 12% 100%, rgba(184, 154, 106, 0.20) 0%, transparent 68%),
        radial-gradient(45% 60% at 88% 90%, rgba(129, 92, 48, 0.15) 0%, transparent 65%),
        var(--bg);
    position: relative;
}

.footer-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 30px;
    align-items: start;
    padding: 26px 0;
}

.footer-kicker {
    margin: 0 0 6px;
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-text);
    font-weight: 700;
}

.footer-logo {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

.footer-copy {
    margin: 10px 0 0;
    max-width: 460px;
    color: var(--text-soft);
    font-size: var(--fs-base);
    line-height: 1.62;
}

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

.footer-column {
    display: grid;
    gap: 10px;
    justify-items: start;
    align-content: start;
}

.footer-title {
    margin: 0 0 2px;
    color: var(--text-soft);
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-column a {
    color: var(--text);
    text-decoration: none;
    font-size: var(--fs-base);
    border-bottom: 1px solid transparent;
}

.footer-column a:hover {
    color: var(--accent-text);
    border-bottom-color: var(--accent-soft);
    text-decoration: none;
}

.footer-bottom {
    padding: 14px 0 28px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: var(--fs-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: transparent;
}

.footer-meta {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-link-button {
    border: none;
    background: none;
    padding: 0;
    color: var(--text);
    font-size: var(--fs-base);
    font-family: inherit;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.footer-link-button:hover {
    color: var(--accent-text);
    border-bottom-color: var(--accent-soft);
}

.footer-social {
    margin-top: 14px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: color 0.18s;
}

.footer-social-link:hover {
    color: var(--accent-text);
    text-decoration: none;
}

.footer-social-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* =========================
   CONSENT
========================= */

.consent-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 10000;
    pointer-events: none;
}

.consent-banner-inner {
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid rgba(184, 154, 106, 0.45);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
    box-shadow: 0 24px 50px rgba(42, 42, 42, 0.18);
    padding: 16px 18px;
    pointer-events: auto;
}

.consent-title {
    margin: 0;
    font-weight: 700;
    font-size: var(--fs-md);
    color: var(--text);
}

.consent-copy {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
    max-width: 70ch;
}

.consent-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.consent-btn {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
}

.consent-btn-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.consent-btn-primary:hover {
    background: var(--accent-hover);
}

.consent-btn-secondary {
    background: #fff;
    color: var(--text-soft);
}

.consent-btn-secondary:hover {
    color: var(--accent-text);
    border-color: var(--accent);
}

.consent-btn-ghost {
    background: #fffaf4;
    color: var(--text);
}

.consent-btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-text);
}

.consent-links {
    margin: 10px 0 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.consent-links a {
    font-size: var(--fs-sm);
    color: var(--accent-text);
}

.consent-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 9, 0.5);
    display: grid;
    place-items: center;
    z-index: 10001;
    padding: 20px;
}

.consent-modal[hidden],
.consent-banner[hidden] {
    display: none !important;
}

.consent-modal-panel {
    width: min(680px, 100%);
    max-height: min(88vh, 760px);
    overflow: auto;
    background: #fffefb;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 26px 56px rgba(42, 42, 42, 0.22);
    padding: 20px;
}

.consent-modal-panel h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 30px);
    line-height: var(--lh-tight);
}

.consent-modal-copy {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

.consent-modal-hint {
    margin: 10px 0 0;
    font-size: var(--fs-sm);
    color: #5d4119;
    background: #fff7ea;
    border: 1px solid rgba(184, 154, 106, 0.35);
    border-radius: 10px;
    padding: 9px 10px;
}

.consent-option {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: #fffaf3;
}

.consent-option-title {
    margin: 0;
    font-weight: 700;
    color: var(--text);
}

.consent-option-copy {
    margin: 2px 0 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

.consent-option input[type="checkbox"] {
    cursor: pointer;
}

.consent-switch-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.consent-switch-state {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
    min-width: 48px;
    text-align: right;
}

.consent-switch-state.is-active {
    color: #1f7a43;
}

.consent-switch-state.is-inactive {
    color: #777777;
}

.consent-switch {
    appearance: none;
    -webkit-appearance: none;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(131, 116, 98, 0.4);
    background: #e8dfd2;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.consent-switch::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    box-shadow: 0 2px 7px rgba(42, 42, 42, 0.2);
    transition: transform 0.2s ease;
}

.consent-switch:checked {
    background: #b28f5a;
    border-color: #9a7846;
}

.consent-switch:checked::after {
    transform: translateX(20px);
}

.consent-switch:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.consent-switch:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.consent-option-fixed {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--accent-text);
    border: 1px solid rgba(184, 154, 106, 0.45);
    border-radius: 999px;
    padding: 4px 8px;
    background: #fff7ea;
}

.consent-gpc-note {
    margin: 10px 0 0;
    color: #5d4119;
    font-size: var(--fs-sm);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.consent-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .consent-banner {
        left: 0;
        right: 0;
        bottom: 0;
    }

    .consent-banner-inner {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 16px 14px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .consent-title {
        font-size: var(--fs-base);
    }

    .consent-copy {
        font-size: var(--fs-xs);
    }

    .consent-actions {
        flex-direction: column;
    }

    .consent-btn {
        width: 100%;
        text-align: center;
        padding: 12px 14px;
        min-height: 44px;
    }

    .consent-links {
        justify-content: center;
    }

    .consent-modal {
        padding: 0;
        align-items: flex-end;
    }

    .consent-modal-panel {
        width: 100%;
        max-height: 92vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 18px 14px;
    }

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

    .consent-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .consent-switch-wrap {
        align-self: flex-end;
    }
}

/* =========================
   ADMIN
========================= */

.admin-page .app-main {
    max-width: 1100px;
    padding: 28px 36px 72px;
}

.admin-auth-card,
.admin-table-card,
.admin-topbar,
.admin-stat-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fffdf9;
    box-shadow: var(--shadow-sm);
}

.admin-auth-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px;
}

.admin-kicker {
    margin: 0;
    color: var(--accent-text);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}

.admin-auth-card h1,
.admin-topbar h1,
.admin-table-card h2 {
    margin: 8px 0 0;
}

.admin-subtle {
    color: var(--text-soft);
    margin-top: 8px;
}

.admin-auth-form {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.admin-auth-form label {
    font-size: var(--fs-sm);
    color: var(--text-soft);
    font-weight: 600;
}

.admin-auth-form input {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    font-size: var(--fs-base);
    background: #fff;
}

.admin-auth-form button,
.admin-logout {
    margin-top: 8px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    padding: 10px 14px;
    font-weight: 700;
    font-size: var(--fs-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-auth-form button:hover,
.admin-logout:hover {
    background: var(--accent-hover);
    text-decoration: none;
}

.admin-note {
    margin-top: 14px;
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

/* =========================
   AUTH LAYOUT (magic link)
========================= */

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 64px;
    align-items: start;
    max-width: 760px;
    padding-top: 48px;
}

/* Card wrapper for auth sections */
.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
}

/* Mobile notice banner */
.auth-mobile-notice {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(184,154,106,0.07);
    border: 1px solid rgba(184,154,106,0.18);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    color: var(--text-soft);
    margin-bottom: 20px;
    line-height: 1.5;
}
.auth-mobile-notice svg {
    flex-shrink: 0;
    color: var(--accent-text);
}
.auth-mobile-notice strong {
    color: var(--text);
}

.auth-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.auth-back {
    display: inline-block;
    margin: 0 0 18px;
    font-size: 12px;
    color: var(--text);
    opacity: 0.35;
    text-decoration: none;
    transition: opacity 0.2s;
}
.auth-back:hover {
    opacity: 0.6;
}

.auth-title {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.8vw, 30px);
    line-height: var(--lh-tight);
}

.auth-lead {
    margin: 0 0 24px;
    color: var(--text-soft);
    font-size: var(--fs-base);
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 8px;
}

.auth-form label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-soft);
}

.auth-form input[type="email"] {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    font-size: var(--fs-base);
    background: #fff;
    font-family: inherit;
}

.auth-form input[type="email"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.auth-form button {
    margin-top: 4px;
    padding: 11px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-form button:hover {
    background: #a6884f;
}

.auth-explainer-heading {
    margin: 8px 0 16px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.auth-explainer-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.auth-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.auth-step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(184, 154, 106, 0.14);
    color: var(--accent-text);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.auth-step p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.55;
}

.auth-step p strong {
    color: var(--text);
}

.auth-explainer-note {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(184, 154, 106, 0.06);
    border: 1px solid rgba(184, 154, 106, 0.18);
}

.auth-explainer-note p {
    margin: 0;
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.6;
}

.auth-explainer-note strong {
    color: var(--text);
}

@media (max-width: 640px) {
    .auth-mobile-notice {
        display: flex;
        margin-bottom: 16px;
    }

    .auth-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 0;
        width: 100%;
        max-width: 100%;
    }

    .auth-card {
        padding: 24px 18px;
        border-radius: var(--radius-lg);
    }

    .auth-title {
        font-size: clamp(26px, 7vw, 34px);
    }

    .auth-lead {
        font-size: var(--fs-md);
    }

    .auth-form input[type="email"] {
        padding: 14px 14px;
        font-size: var(--fs-md);
        border-radius: var(--radius-md);
    }

    .auth-form button {
        padding: 14px 20px;
        font-size: var(--fs-md);
        border-radius: var(--radius-lg);
    }
}

.magic-explainer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.magic-explainer-title {
    margin: 0 0 8px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
}

.magic-explainer-list {
    margin: 0 0 10px;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.magic-explainer-list li {
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.55;
}

.magic-explainer-list strong {
    color: var(--text);
}

.magic-explainer-note {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.admin-error {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #f7b0a6;
    background: #fff1ef;
    color: #9a2d20;
    font-size: var(--fs-sm);
}

.admin-topbar {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.admin-period-switch {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-period-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-soft);
    background: #fff;
    text-decoration: none;
}

.admin-period-chip:hover {
    border-color: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
}

.admin-period-chip.is-active {
    border-color: var(--accent);
    background: #fff3e0;
    color: var(--accent-text);
}

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

.admin-stat-card {
    padding: 14px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.admin-stat-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

.admin-stat-card strong {
    margin-top: 4px;
    display: block;
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.1;
}

.admin-table-card {
    margin-top: 14px;
    padding: 18px;
}

.admin-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-export-link {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-soft);
    background: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.admin-export-link:hover {
    border-color: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
}

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

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

.admin-user-chart {
    margin-top: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
}

.admin-histo {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    padding: 10px 10px 8px;
}

.admin-histo-bars {
    width: 100%;
    height: 110px;
    display: grid;
    align-items: end;
    gap: 2px;
    border-bottom: 1px solid #d8d2c8;
}

.admin-histo-bar {
    display: block;
    width: 100%;
    background: #8fd3a8;
    border-radius: 2px 2px 0 0;
}

.admin-histo-labels {
    margin-top: 6px;
    display: grid;
    gap: 2px;
    font-size: 9px;
    color: var(--text-soft);
}

.admin-histo-label {
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.admin-chart-bars {
    height: 170px;
    display: grid;
    gap: 6px;
    align-items: end;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 8px;
    background: #fff;
}

.admin-chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.admin-chart-stack {
    width: 100%;
    height: 112px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 3px;
}

.admin-chart-stack .bar {
    width: 45%;
    border-radius: 5px 5px 2px 2px;
    min-height: 3px;
}

.admin-chart-stack .bar.unique {
    background: #b48a52;
}

.admin-chart-stack .bar.returning {
    background: #4a7f62;
}

.admin-chart-day {
    font-size: 10px;
    color: var(--text-soft);
}

.admin-chart-legend {
    margin-top: 8px;
    display: flex;
    gap: 10px;
    font-size: var(--fs-xs);
    color: var(--text-soft);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-item::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.legend-item.unique::before {
    background: #b48a52;
}

.legend-item.returning::before {
    background: #4a7f62;
}

.admin-table-card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table-card th,
.admin-table-card td {
    border-bottom: 1px solid var(--border);
    padding: 10px 8px;
    text-align: left;
}

.admin-table-card th {
    color: var(--text-soft);
    font-size: var(--fs-sm);
    font-weight: 700;
}

/* ── Admin live dashboard ──────────────────────────────────── */

:root {
    --ld-pink:   #c8185a;
    --ld-text:   #000;
    --ld-label:  #444;
    --ld-muted:  #888;
    --ld-border: #e4e4e4;
    --ld-bg:     #fff;
    --ld-bg2:    #fafafa;
    --ld-dark:   #0d0d0d;
}

/* tighter page padding for live dash */
.live-dash-body .app-main {
    padding-top: 14px;
    padding-bottom: 14px;
}

.live-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--ld-border);
}

.live-page-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ld-text);
    letter-spacing: -0.01em;
}

/* status pill in header */
.live-tick {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.live-tick--on      { background: var(--ld-pink); color: #fff; }
.live-tick--offline { background: #eee; color: #999; }

/* status badge inside panels */
.live-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.live-badge--on      { background: var(--ld-pink); color: #fff; }
.live-badge--offline { background: #eee; color: #999; }

/* ── stat cubes ─────────────────────────────────────────── */
.live-stat-cubes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.live-cube {
    background: var(--ld-bg);
    border: 1px solid var(--ld-border);
    border-radius: 8px;
    padding: 18px 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.live-cube-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--ld-pink);
}

.live-cube-value {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ld-text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.live-cube-bar {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}

.live-cube-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--ld-pink);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.live-cube--live .live-cube-value  { color: #16a34a; }
.live-cube--live .live-cube-label  { color: #16a34a; }

.live-cube--ram .live-cube-value   { color: #000; }
.live-cube--ram .live-cube-label   { color: var(--ld-pink); }
.live-cube--ram .live-cube-bar-fill { background: #000; }

.live-cube--ram-warn .live-cube-bar-fill { background: #d97706; }
.live-cube--ram-high .live-cube-bar-fill { background: #dc2626; }
.live-cube--ram-warn .live-cube-value    { color: #d97706; }
.live-cube--ram-high .live-cube-value    { color: #dc2626; }

@media (max-width: 640px) {
    .live-stat-cubes { grid-template-columns: 1fr; }
    .live-page-title { font-size: 22px; }
    .live-tick,
    .live-badge {
        font-size: 12px;
        padding: 4px 10px;
    }

    .live-cube {
        padding: 18px 16px;
    }

    .live-cube-label {
        font-size: 13px;
        letter-spacing: 0.04em;
    }

    .live-cube-value {
        font-size: 42px;
    }

    .live-panel {
        padding: 14px 12px;
    }

    .live-panel-head h2 {
        font-size: clamp(22px, 6vw, 30px);
        letter-spacing: 0.04em;
    }

    .live-kpi-table th {
        font-size: clamp(17px, 4.6vw, 24px);
        padding: 6px 4px;
    }

    .live-kpi-table td {
        font-size: clamp(24px, 7vw, 34px);
        padding: 6px 4px;
    }

    .live-kpi-table td:first-child {
        font-size: clamp(19px, 5.2vw, 28px);
    }

    .live-group-row td {
        font-size: clamp(17px, 4.6vw, 24px);
        padding-top: 10px;
    }

    .live-info-row dt {
        font-size: clamp(19px, 5.2vw, 28px);
    }

    .live-info-row dd {
        font-size: clamp(24px, 7vw, 34px);
    }

    .live-log-wrap {
        font-size: 13px;
        line-height: 1.7;
    }
}

/* 4-column grid — log is column 4, all panels same height */
.live-dash-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr 1.7fr;
    gap: 8px;
    align-items: stretch;
}

/* panel */
.live-panel {
    background: var(--ld-bg);
    border: 1px solid var(--ld-border);
    border-radius: 6px;
    padding: 9px 11px;
}

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

.live-panel-head h2 {
    margin: 0;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--ld-pink);
}

/* KPI table */
.live-kpi-table {
    width: 100%;
    border-collapse: collapse;
}

.live-kpi-table th {
    color: var(--ld-label);
    font-weight: 600;
    text-align: right;
    padding: 2px 4px;
    border-bottom: 1px solid var(--ld-border);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-kpi-table th:first-child { text-align: left; }

.live-kpi-table td {
    padding: 2px 4px;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #000;
    font-size: 11px;
    font-weight: 600;
}

.live-kpi-table td:first-child {
    text-align: left;
    color: var(--ld-label);
    font-size: 10.5px;
    font-weight: 400;
}

.live-group-row td {
    background: transparent;
    color: var(--ld-pink);
    font-weight: 900;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 4px 1px;
    text-align: left !important;
    border-bottom: none;
}

.live-group-row td strong {
    font-weight: 900;
}

/* info list */
.live-info-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.live-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 2px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 6px;
}

.live-info-row dt {
    color: var(--ld-label);
    font-size: 10.5px;
    flex-shrink: 0;
    font-weight: 400;
}

.live-info-row dd {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    margin: 0;
    color: #000;
    word-break: break-all;
}

.live-info-separator {
    border-bottom: 1px solid var(--ld-border);
    padding: 0;
    margin: 2px 0;
}

@media (max-width: 1100px) {
    .live-dash-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .live-log-panel { grid-column: 1 / -1; min-height: 220px; }
}

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

    .live-log-panel {
        order: -1;
    }

    /* Keep these at the end of the live section so cascade wins on mobile */
    .live-panel-head h2 {
        font-size: clamp(17px, 4.5vw, 23px);
        letter-spacing: 0.04em;
    }

    .live-kpi-table th {
        font-size: clamp(13px, 3.5vw, 18px);
        padding: 6px 4px;
    }

    .live-kpi-table td {
        font-size: clamp(18px, 5.25vw, 26px);
        padding: 6px 4px;
    }

    .live-kpi-table td:first-child {
        font-size: clamp(14px, 3.9vw, 21px);
    }

    .live-group-row td {
        font-size: clamp(13px, 3.5vw, 18px);
        padding-top: 10px;
    }

    .live-info-row dt {
        font-size: clamp(14px, 3.9vw, 21px);
    }

    .live-info-row dd {
        font-size: clamp(18px, 5.25vw, 26px);
    }
}

/* log panel — dark 4th column, flex-column to fill grid height */
.live-log-panel {
    background: var(--ld-dark);
    border-color: #222;
    display: flex;
    flex-direction: column;
}

.live-log-panel .live-panel-head h2  { color: var(--ld-pink); }
.live-log-panel .live-tick--on       { background: var(--ld-pink); color: #fff; }
.live-log-panel .live-tick--offline  { background: #222; color: #555; }

.live-log-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    font-family: ui-monospace, "Fira Mono", monospace;
    font-size: 10.5px;
    line-height: 1.6;
    scrollbar-width: thin;
    scrollbar-color: #333 #0d0d0d;
}

.live-log-wrap::-webkit-scrollbar       { width: 3px; }
.live-log-wrap::-webkit-scrollbar-track { background: #111; }
.live-log-wrap::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.live-log-line {
    white-space: pre-wrap;
    word-break: break-all;
    color: #ddd;
    padding: 1px 0;
    display: block;
}

.live-log-error { color: var(--ld-pink); font-weight: 600; }
.live-log-warn  { color: #906020; }

@media (prefers-contrast: more) {
    :root {
        --muted: #5b534c;
        --text-soft: #4d463f;
        --accent-text: #5d4119;
        --accent-text-hover: #4d3513;
    }

    .result-card,
    .faq-item,
    .domain-profile,
    .similar,
    .footer-shell,
    .topbar-inner,
    .results-summary,
    .empty-state {
        border-width: 2px;
    }
}

@media (max-width: 720px) {
    .container {
        padding: 44px 16px;
    }

    .topbar {
        padding: 8px 0;
    }

    .topbar-inner {
        padding: 10px 14px;
        border-radius: var(--radius-lg);
    }

    .landing-main {
        padding-top: 28px;
    }

    .landing-hero-nav {
        margin-bottom: 14px;
    }

    .landing-hero-logo {
        font-size: 30px;
    }

    .landing-hero-login {
        padding: 6px 12px;
        font-size: 11px;
    }

    .topbar-brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

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

    .topbar-logo {
        font-size: 28px;
    }

    .topbar-note {
        font-size: var(--fs-xs);
    }

    .hero h1 {
        font-size: clamp(30px, 9vw, 38px);
    }

    .mkt-hero-contours {
        inset: 34px 0 auto;
        height: 180px;
        opacity: 0.9;
    }

    .mkt-hero-signature {
        width: min(200px, 60vw);
        margin-bottom: 14px;
    }

    .mkt-rally-stripes {
        width: min(330px, 84vw);
        height: 20px;
        margin-bottom: 10px;
    }

    .mkt-rally-stripe--b {
        width: 78%;
    }

    .mkt-rally-stripe--c {
        width: 54%;
    }

    .note-table-card,
    .note-index-empty {
        padding: 18px;
        border-radius: 18px;
    }

    .domain-workspace-card {
        gap: 12px;
    }

    .workspace-panel + .workspace-panel {
        border-left: none;
    }

    .domain-note {
        padding: 18px;
        border-radius: 18px;
    }

    .domain-note-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .domain-note-head h2 {
        font-size: clamp(22px, 7vw, 28px);
    }

    .note-textarea {
        min-height: 190px;
        padding: 16px;
        border-radius: 16px;
    }

    .hero p,
    .hero-lead {
        font-size: var(--fs-base);
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .beta-gate {
        padding: 22px 18px;
    }

    .beta-gate-form {
        flex-direction: column;
        align-items: stretch;
    }

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

    .beta-gate-form button {
        width: 100%;
    }

    .result-top {
        flex-direction: column;
        gap: 8px;
    }

    .result-card {
        padding: 14px;
    }

    .metrics-tab {
        position: static;
        margin-bottom: 10px;
        flex-wrap: wrap;
        gap: 8px 10px;
        color: rgba(95, 86, 79, 0.75);
        white-space: normal;
    }

    .metric-item {
        padding: 4px 8px;
        border: 1px solid rgba(232, 225, 216, 0.95);
        border-radius: 999px;
        background: #fffaf4;
    }

    .results-progress-head,
    .results-pagination {
        align-items: center;
    }

    .results-pagination {
        padding: 0;
        justify-content: center;
    }

    .result-title {
        font-size: 20px;
    }

    .result-domain {
        align-items: flex-start;
    }

    .result-signals {
        justify-content: flex-start;
    }

    .result-contact-row,
    .result-product-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .result-contact-row .contact-pill,
    .result-product-row .result-action,
    .result-product-row form,
    .result-save-picker {
        width: 100%;
        min-width: 0;
    }

    .result-product-row form {
        display: flex;
    }

    .result-contact-row .contact-pill,
    .result-product-row .result-action {
        justify-content: center;
        white-space: normal;
        text-align: center;
        min-height: 40px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .result-save-menu {
        left: 0;
        right: 0;
        min-width: 0;
        width: max-content;
        max-width: min(280px, calc(100vw - 48px));
    }

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

    .domain-profile {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 20px 18px 22px;
        box-shadow: 0 1px 8px rgba(42,34,22,0.04);
        margin-bottom: 12px;
    }

    .faq {
        padding: 14px 12px 6px;
    }


@media (max-width: 520px) {
    .result-contact-row,
    .result-product-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mkt-rally-stripes,
    .mkt-rally-stripe {
        animation: none !important;
    }

    .mkt-hero-scan {
        --scan-x: 22%;
        --scan-o: 0.14;
    }

    .mkt-hero-scan::before,
    .mkt-hero-scan::after {
        animation: none !important;
    }
}

@media (max-width: 420px) {
    .results-page {
        max-width: 100%;
    }

    .results-summary,
    .results-progress,
    .empty-state,
    .result-card {
        padding-left: 12px;
        padding-right: 12px;
    }

    .results-summary h1,
    .results-summary p,
    .results-progress-head p,
    .result-title,
    .result-description {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .results-progress-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .recommend-top-btn {
        display: inline-flex;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .result-contact-row .contact-pill,
    .result-product-row .result-action {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 11px;
    }

    .result-product-row .result-action .icon,
    .result-contact-row .contact-pill .icon {
        flex: 0 0 auto;
    }
}
    .faq-summary {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .faq-summary::after {
        align-self: flex-end;
        margin-top: -30px;
    }

    .faq h2 {
        font-size: clamp(24px, 7vw, 30px);
    }

    .faq-question {
        padding: 13px 10px;
        font-size: var(--fs-sm);
    }

    .faq-answer p {
        padding: 0 10px 12px 10px;
    }

    .legal-page .page {
        padding: 24px 16px 56px;
    }

    .legal-page .hero,
    .legal-page .card {
        padding: 18px;
        border-radius: var(--radius-md);
    }

    .legal-meta-grid {
        grid-template-columns: 1fr;
    }

    .legal-meta-item + .legal-meta-item {
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .legal-page .card > h2 {
        padding-top: 18px;
    }

    .legal-page ul {
        padding: 12px 12px 12px 28px;
    }

    .legal-page h1 {
        font-size: clamp(28px, 8vw, 34px);
    }

    .legal-page h2 {
        font-size: clamp(21px, 6.6vw, 24px);
        margin-top: 24px;
    }

    .legal-page h3 {
        font-size: var(--fs-base);
        margin-top: 16px;
    }

    .legal-page p,
    .legal-page li {
        font-size: var(--fs-sm);
        line-height: 1.62;
    }

    .signal-pill.has-tooltip::after {
        left: 0;
        bottom: auto;
        top: calc(100% + 8px);
        transform: translateX(0) translateY(-2px);
        width: min(260px, 84vw);
    }

    .signal-pill.has-tooltip::before {
        left: 14px;
        bottom: auto;
        top: calc(100% + 2px);
        transform: translateX(0);
        rotate: 135deg;
    }

    .signal-pill.has-tooltip:hover::after,
    .signal-pill.has-tooltip:focus-visible::after,
    .signal-pill.has-tooltip:focus-within::after {
        transform: translateX(0) translateY(0);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 20px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        padding: 12px 16px 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .consent-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .consent-banner-inner {
        padding: 14px;
    }

    .consent-modal {
        padding: 12px;
        align-items: end;
    }

    .consent-modal-panel {
        max-height: 86vh;
        border-radius: 16px;
        padding: 16px;
    }

    .consent-actions {
        width: 100%;
    }

    .consent-btn {
        width: 100%;
        justify-content: center;
    }

    .consent-option {
        align-items: flex-start;
    }

    .consent-switch-wrap {
        width: 100%;
        justify-content: flex-end;
    }

    .admin-page .app-main {
        padding: 12px 12px 56px;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
        gap: 6px;
    }

    .admin-topbar h1 {
        font-size: clamp(18px, 5vw, 26px);
        margin: 0;
    }

    .admin-kicker {
        margin: 0;
    }

    .admin-subtle {
        margin: 0;
        font-size: 12px;
    }

    .admin-period-switch {
        margin-top: 6px;
        gap: 5px;
    }

    .admin-period-chip {
        padding: 3px 9px;
        font-size: 11px;
    }

    .admin-table-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .admin-stats-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 10px;
        width: 100%;
        min-width: 0;
    }

    .admin-stat-card {
        height: 84px;
        padding: 6px 4px;
        aspect-ratio: unset;
        min-height: 84px;
        flex: 1 1 0;
        min-width: 0;
    }

    .admin-stat-card p {
        font-size: 12px;
        line-height: 1.15;
    }

    .admin-stat-card strong {
        font-size: clamp(24px, 6vw, 34px);
        margin-top: 2px;
        line-height: 1;
    }

    .admin-table-card {
        padding: 12px 10px;
        margin-top: 10px;
    }

    .admin-table-card h2 {
        font-size: var(--fs-base);
    }

    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

    /* Tables → card-list rows on mobile */
    .admin-table-card thead {
        display: none;
    }

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

    .admin-table-card tbody tr {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 9px 0;
        border-bottom: 1px solid var(--border);
    }

    .admin-table-card tbody tr:last-child {
        border-bottom: none;
    }

    .admin-table-card td {
        padding: 0;
        border: none;
        background: none;
        font-size: var(--fs-sm);
        white-space: normal;
        word-break: break-word;
    }

    .admin-table-card td:last-child {
        font-weight: 700;
        flex-shrink: 0;
        color: var(--text);
    }

    .admin-chart-bars {
        gap: 4px;
        padding: 10px 6px;
    }

    .admin-histo-bars {
        height: 92px;
    }

    .admin-histo-labels {
        font-size: 8px;
    }

    .admin-period-switch {
        gap: 6px;
    }
}

@media (max-width: 420px) {
    .admin-page .app-main {
        padding: 8px 10px 56px;
    }

    .admin-stats-grid {
        gap: 6px;
    }

    .admin-stat-card {
        height: 78px;
        min-height: 78px;
        padding: 5px 3px;
    }

    .admin-stat-card p {
        font-size: 11px;
    }

    .admin-stat-card strong {
        font-size: clamp(22px, 6.3vw, 30px);
    }
}

@media (max-width: 380px) {
    .admin-stats-grid {
        flex-direction: column;
        gap: 8px;
    }

    .admin-stat-card {
        width: 100%;
        height: 74px;
        min-height: 74px;
    }
}
/* ── Admin preview bar ──────────────────────────────────────────────────── */
.beta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #0a2818;
    color: #7ee8a2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 5px 16px;
    font-size: 13px;
    font-family: monospace;
    border-top: 2px solid #2ecc71;
}

.beta-bar-label strong {
    color: #fff;
}

.has-beta-bar .sidebar-footer {
    padding-bottom: 58px;
}

.has-beta-bar .app-main {
    padding-bottom: 116px;
}

.admin-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a2e;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 6px 11px;
    font-size: 13px;
    font-family: monospace;
    border-top: 2px solid #e040fb;
}

.admin-bar-label {
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-bar-badge {
    background: #e040fb;
    color: #fff;
    border-radius: 4px;
    padding: 0 4px;
    font-size: 0.7rem;
    margin-left: 4px;
}

.admin-bar-form {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
}

.admin-bar-btn {
    background: #2d2d44;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: monospace;
    -webkit-tap-highlight-color: transparent;
}

.admin-bar-btn:hover {
    background: #3a3a58;
    color: #fff;
}

.admin-bar-btn--active {
    background: #e040fb;
    color: #fff;
    border-color: #e040fb;
}

.admin-bar-btn--danger {
    background: #fff0f0;
    color: #c0392b;
    border-color: #e57373;
}

.admin-bar-btn--danger:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.admin-bar-btn--reset {
    border-style: dashed;
    margin-left: 6px;
}

.admin-bar-link {
    margin-left: auto;
    color: #9fa8da;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.admin-bar-link:hover {
    color: #fff;
}

.admin-bar-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-left: auto;
}

.admin-bar-nav .admin-bar-btn {
    text-decoration: none;
}

@media (max-width: 640px) {
    .admin-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 12px 12px;
    }

    .admin-bar-form {
        width: 100%;
    }

    .admin-bar-nav {
        margin-left: 0;
        width: 100%;
    }

    .admin-bar-link {
        margin-left: 0;
    }
}

/* ── Admin invite page ───────────────────────────────────────────────────── */
.admin-invite-card {
    max-width: 560px;
}

.admin-invite-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 16px;
}

.admin-invite-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-invite-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-invite-select {
    background: #1e1e30;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-family: monospace;
    cursor: pointer;
}

.admin-invite-select:focus {
    outline: none;
    border-color: #e040fb;
}

.admin-invite-submit {
    padding: 5px 18px;
    font-size: 0.82rem;
}

.admin-invite-result {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.admin-invite-result-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
}

.admin-invite-link-box {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.admin-invite-link-input {
    flex: 1;
    min-width: 0;
    font-family: monospace;
    font-size: 0.8rem;
    padding: 7px 10px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #12121e;
    color: #e040fb;
}

.admin-invite-copy-btn {
    padding: 5px 16px;
    white-space: nowrap;
}

.admin-invite-meta {
    margin: 10px 0 0;
    font-size: 0.78rem;
    color: #888;
}

.admin-invite-send-wrap {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.admin-invite-send-label {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
}

.admin-invite-send-form {
    margin: 0;
}

.admin-invite-send-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-invite-email-input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fffdf9;
    font-size: var(--fs-sm);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}

.admin-invite-email-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(184,154,106,0.15);
}

/* ── App shell (sidebar layout) ─────────────────────────────────────────── */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    --sidebar-pad-x: 18px;
    --sidebar-indent: 44px;
    --sidebar-list-visible: 10;
    width: 220px;
    flex-shrink: 0;
    background: #0f0f1a;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    padding: 0;
    overflow: hidden;
}

.sidebar-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.24) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 8px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sidebar-scroll:hover::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 22px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff 0%, #fff 35%, #f0ddb4 50%, #fff 65%, #fff 100%);
    background-size: 300% 100%;
    background-position: 0% 0%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo:hover {
    text-decoration: none;
    background-position: 100% 0%;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 8px 0 6px;
    flex: 0 0 auto;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px var(--sidebar-pad-x);
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
    border-radius: 0;
}

.sidebar-link--summary {
    cursor: pointer;
    width: 100%;
}

.sidebar-link-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding-right: 18px;
}

.sidebar-accordion {
    width: 100%;
}

.sidebar-accordion summary {
    list-style: none;
}

.sidebar-accordion summary::-webkit-details-marker {
    display: none;
}

.sidebar-accordion-summary {
    position: relative;
}

.sidebar-accordion-summary::after {
    content: "▸";
    position: absolute;
    right: var(--sidebar-pad-x);
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.55);
    transition: transform 0.15s ease;
    font-size: 0.8rem;
    pointer-events: none;
}

.sidebar-accordion[open] .sidebar-accordion-summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.sidebar-accordion-panel {
    padding: 0 var(--sidebar-pad-x) 10px var(--sidebar-indent);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-12px);
    transition: max-height 0.30s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, transform 0.30s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-accordion[open] > .sidebar-accordion-panel {
    max-height: 560px;
    opacity: 1;
    transform: translateY(0);
}

.sidebar-accordion-panel--tight {
    padding-left: var(--sidebar-indent);
    padding-right: var(--sidebar-pad-x);
    gap: 6px;
}

.sidebar-list-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: min(calc(var(--sidebar-list-visible) * 34px), calc(100vh - 360px));
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.list-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.84);
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-pill-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-pill-count {
    flex: 0 0 auto;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.88);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.sidebar-list-empty {
    margin: 0;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.45);
}

.sidebar-list-create-form {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.sidebar-list-create-form input {
    min-width: 0;
    flex: 1;
    width: 0;
    font-size: 0.78rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 6px 8px;
}

.sidebar-list-create-form input::placeholder {
    color: rgba(255,255,255,0.46);
}

.icon-btn {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.55);
    border-radius: 0;
    padding: 0;
    font-size: 0.76rem;
    cursor: pointer;
}

.icon-btn .icon {
    width: 12px;
    height: 12px;
}

.icon-btn:hover {
    background: transparent;
    color: rgba(255,255,255,0.9);
}

.icon-btn--danger {
    color: rgba(248,113,113,0.75);
}

.icon-btn--danger:hover {
    background: transparent;
    color: rgba(252,165,165,1);
}

.sidebar-list-delete-form {
    margin: 0;
    flex: 0 0 auto;
}

.sidebar-link:hover {
    color: rgba(255,255,255,0.9);
    background: linear-gradient(90deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
}

.sidebar-link--active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 100%);
    box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-link--locked {
    opacity: 0.5;
    cursor: pointer;
}

.sidebar-link--locked:hover {
    opacity: 0.75;
}

.sidebar-plan-badge {
    margin-left: auto;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    padding: 2px 6px;
    border-radius: 999px;
}

.sidebar-count-badge {
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(184, 154, 106, 0.22);
    color: #f8e7cf;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.sidebar-link .icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.sidebar-section {
    padding: 4px 0 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-section .sidebar-accordion-panel,
.sidebar-section .sidebar-accordion-panel--tight {
    padding-left: var(--sidebar-pad-x);
    padding-right: var(--sidebar-pad-x);
}

.sidebar-section-title {
    margin: 0 0 8px;
    padding: 0 var(--sidebar-pad-x);
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    font-weight: 700;
}

.sidebar-feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    padding: 8px 0;
    background: transparent;
}

.sidebar-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.sidebar-feature-item.is-upgrade {
    cursor: pointer;
}

.sidebar-feature-item.is-upgrade:hover {
    color: rgba(231, 207, 173, 0.95);
}

.sidebar-feature-item.is-upgrade:hover .feature-dot {
    background: #c9ab79;
}

.sidebar-feature-item.is-enabled {
    color: rgba(255,255,255,0.88);
}

.sidebar-feature-item.is-disabled {
    color: rgba(255,255,255,0.36);
}

.feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    flex: 0 0 auto;
}

.sidebar-feature-item.is-enabled .feature-dot {
    background: #34d399;
}

.sidebar-feature-item.is-disabled .feature-dot {
    background: #6b7280;
}

.sidebar-upgrade-link {
    display: block;
    margin-top: 8px;
    padding: 6px 0;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(184, 154, 106, 0.72);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-upgrade-link:hover {
    color: rgba(231, 207, 173, 0.95);
    text-decoration: none;
}

.sidebar-upgrade-link.sidebar-link--active {
    background: transparent;
    box-shadow: none;
    color: rgba(231, 207, 173, 0.9);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 10px;
}

.sidebar-mini-link {
    color: rgba(255,255,255,0.62);
    font-size: 0.8rem;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-mini-link--active {
    color: #fff;
}

.sidebar-mini-link:hover {
    color: #fff;
    text-decoration: none;
}

.sidebar-legal {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 8px 0 6px;
}

.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 8px 0 10px;
    margin-bottom: 0;
    margin-top: auto;
}

/* Footer alignment: keep Legal and Profile on the same left grid */
.sidebar-legal .sidebar-link--summary {
    padding-left: var(--sidebar-pad-x);
    padding-right: var(--sidebar-pad-x);
}

.sidebar-legal .sidebar-accordion-summary::after {
    right: var(--sidebar-pad-x);
}

.sidebar-legal .sidebar-accordion-panel,
.sidebar-legal .sidebar-accordion-panel--tight {
    padding-left: var(--sidebar-pad-x);
    padding-right: var(--sidebar-pad-x);
}

.sidebar-logout-form {
    margin: 0;
    padding: 0;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.28);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    padding: 10px var(--sidebar-pad-x);
    cursor: pointer;
    text-align: left;
    letter-spacing: 0;
    transition: color 0.2s, background 0.2s;
}

.sidebar-logout-btn:hover {
    color: rgba(220, 80, 60, 0.8);
    background: linear-gradient(90deg, rgba(220, 60, 40, 0.07) 0%, rgba(220, 60, 40, 0.02) 100%);
}

.sidebar-logout-btn .icon {
    width: 16px;
    height: 16px;
    opacity: 0.38;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.sidebar-logout-btn:hover .icon {
    opacity: 0.75;
}

.sidebar-footer .sidebar-profile {
    width: 100%;
    border-radius: 0;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 0;
    padding: 10px var(--sidebar-pad-x);
    transition: background 0.2s;
}

.sidebar-profile:hover,
.sidebar-profile--active {
    background: linear-gradient(90deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
}

.sidebar-profile:hover .sidebar-avatar {
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), 0 4px 16px rgba(184, 154, 106, 0.45);
}

.sidebar-profile:hover .sidebar-profile-email {
    color: rgba(255,255,255,0.75);
}

.sidebar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d3b789 0%, #b89a6a 58%, #98784b 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.25), 0 4px 12px rgba(184, 154, 106, 0.28);
}

.sidebar-profile-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.sidebar-profile-email {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* Plan badge */
.plan-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    color: #ccc;
}
.plan-badge--basic  { background: #2563eb22; color: #60a5fa; }
.plan-badge--team   { background: rgba(184, 154, 106, 0.2); color: #e7cfad; }
.plan-badge--pro    { background: #d9770622; color: #fb923c; }

/* App content area (shifts right to leave room for sidebar) */
.app-content {
    margin-left: 220px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Mobile topbar (hamburger bar, hidden on desktop) ── */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #0f0f1a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    z-index: 101;
}

.mobile-topbar .sidebar-logo {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.sidebar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.07);
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Animated X when open */
body.sidebar-is-open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
body.sidebar-is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}
body.sidebar-is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Sidebar close button (X inside sidebar, mobile only) ── */
.sidebar-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.55);
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-close-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.sidebar-close-btn svg {
    width: 18px;
    height: 18px;
}

/* ── Sidebar overlay (mobile only) ── */
.sidebar-overlay {
    display: none;
}

.app-main {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 32px 40px 60px;
    max-width: 1100px;
}

.app-main > * {
    min-width: 0;
    max-width: 100%;
}

.has-admin-bar .sidebar-footer {
    padding-bottom: 58px;
}

.has-admin-bar .app-main {
    padding-bottom: 116px;
}

/* Generic app page header */
.app-page .page-header {
    margin-bottom: 24px;
}

.app-page .page-header h1 {
    margin: 0 0 4px;
}

.note-table-card {
    margin-top: 0;
}

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

/* ── Note table → cards on mobile ── */
@media (max-width: 640px) {
    .note-table-wrap {
        overflow-x: visible;
    }
    .note-table-card {
        border: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    .note-table-card table {
        display: block;
    }
    .note-table-card thead {
        display: none;
    }
    .note-table-card tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .note-table-card tbody tr {
        display: block;
        background:
            radial-gradient(130% 160% at 0% 0%, rgba(255,247,228,0.55) 0%, rgba(255,247,228,0) 52%),
            #fffdf9;
        border: 1px solid rgba(184,154,106,0.2);
        border-radius: var(--radius-lg);
        padding: 14px 16px 12px;
        box-shadow: 0 1px 8px rgba(42,34,22,0.06);
    }
    .note-table-card td {
        display: grid;
        grid-template-columns: 82px 1fr;
        align-items: baseline;
        gap: 6px;
        padding: 5px 0;
        border: none;
        font-size: var(--fs-sm);
    }
    .note-table-card td + td {
        border-top: 1px solid rgba(184,154,106,0.08);
    }
    .note-table-card td::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--text-soft);
        padding-top: 2px;
    }
    .note-table-card td[data-label="Șterge"] {
        grid-template-columns: 82px auto;
        align-items: center;
    }
}

.note-domain-link,
.note-open-link {
    color: var(--accent-text);
    font-weight: 700;
    text-decoration: none;
}

.note-domain-link:hover,
.note-open-link:hover {
    color: var(--accent-text-hover);
    text-decoration: none;
}

.note-open-link {
    white-space: nowrap;
}

.note-delete-cell {
    width: 36px;
    text-align: center;
}

.note-delete-form {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    transition: color 0.2s, background 0.2s;
}

tr:hover .note-delete-btn {
    color: var(--text-soft);
}

.note-delete-btn:hover {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.08);
    opacity: 1;
}

.note-index-empty {
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        radial-gradient(140% 150% at 100% 0%, rgba(255, 242, 220, 0.72) 0%, rgba(255, 242, 220, 0) 52%),
        linear-gradient(180deg, #fffdf9 0%, #fff8f0 100%);
    box-shadow: var(--shadow-sm);
    padding: 26px 22px;
}

.note-index-empty h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

/* Profile form */
.profile-plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background:
        radial-gradient(130% 160% at 100% 0%, rgba(255,247,228,0.7) 0%, rgba(255,247,228,0) 56%),
        var(--card);
    border: 1px solid rgba(184,154,106,0.22);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 8px rgba(42,34,22,0.05);
}

.profile-plan-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-plan-label {
    font-size: var(--fs-sm);
    color: var(--text-soft);
    font-weight: 500;
}

.profile-plan-name {
    font-size: var(--fs-sm);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.profile-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-label {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-input {
    background: #fffdf9;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 13px;
    color: var(--text);
    font-size: var(--fs-base);
    font-family: inherit;
    width: 100%;
    max-width: 420px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.profile-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184,154,106,0.13);
}

.profile-input option {
    background: #fffdf9;
    color: var(--text);
}

.profile-form-row--actions {
    margin-top: 4px;
}

.profile-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-sm);
    max-width: 420px;
}

.profile-meta:last-child {
    border-bottom: none;
}

/* ── Profile mobile ── */
@media (max-width: 640px) {
    .profile-plan-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }

    .profile-plan-card .result-action {
        width: 100%;
        text-align: center;
    }

    .profile-input {
        max-width: 100%;
    }

    .profile-meta {
        max-width: 100%;
    }
}

/* Responsive: collapse sidebar on small screens */
@media (max-width: 768px) {
    .mkt-aurora {
        height: 360px;
    }

    .mkt-orbit {
        height: 140px;
    }

    .mkt-dark-inner {
        padding: 16px;
    }

    .mkt-tiers {
        grid-template-columns: 1fr;
    }

    /* ── Mobile topbar ── */
    .mobile-topbar {
        display: flex;
    }

    /* ── Sidebar: 80% drawer, slides from left ── */
    .sidebar {
        width: min(300px, 82vw);
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                    visibility 0.28s;
        visibility: hidden;
    }

    .sidebar.sidebar--open {
        transform: translateX(0);
        visibility: visible;
    }

    /* Hide scrollbar on mobile — swipe scrolls naturally */
    .sidebar-scroll {
        scrollbar-width: none;
    }
    .sidebar-scroll::-webkit-scrollbar {
        display: none;
    }

    /* ── Overlay ── */
    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }

    .sidebar-overlay.sidebar-overlay--visible {
        opacity: 1;
        pointer-events: auto;
    }

    /* ── Close button inside sidebar-brand ── */
    .sidebar-close-btn {
        display: flex;
    }

    /* ── Brand header: compact on mobile ── */
    .sidebar-brand {
        padding: 14px 16px;
        min-height: 52px;
    }

    /* ── Nav links: 48px min touch target ── */
    .sidebar-link {
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 52px;
    }

    /* ── Accordion summary: same touch target ── */
    .sidebar-accordion-summary::after {
        font-size: 1rem;
        right: 20px;
    }

    .sidebar-link--summary {
        padding: 14px 20px;
        min-height: 52px;
    }

    /* ── Mini links (Legal section): bigger ── */
    .sidebar-mini-link {
        padding: 13px 0;
        font-size: 0.92rem;
    }

    /* ── Profile + logout: bigger ── */
    .sidebar-profile {
        padding: 14px 20px;
        min-height: 56px;
    }

    .sidebar-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .sidebar-profile-email {
        font-size: 0.85rem;
        max-width: 180px;
    }

    .sidebar-logout-btn {
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 52px;
    }

    /* ── Footer: safe area for notch/home-bar ── */
    .sidebar-footer {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    /* ── App content: shift down for topbar ── */
    .app-content {
        margin-left: 0;
        padding-top: 52px;
    }

    .app-main {
        padding: 20px 16px 60px;
        padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 40px));
    }

    .has-admin-bar .app-main {
        padding-bottom: 100px;
    }
}

/* =========================
   PRICING PAGE
========================= */

.pricing-hero {
    text-align: center;
    padding: 40px 0 28px;
}

.pricing-hero h1 {
    margin: 0;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pricing-hero p {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 15px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 36px;
}

.plan-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-card--featured {
    border-color: rgba(184, 154, 106, 0.5);
    background: #fffdf9;
    box-shadow: 0 4px 16px rgba(184, 154, 106, 0.12);
}

.plan-card--current {
    border-color: var(--accent);
    background: #fffbf4;
}

.plan-card-badge {
    position: absolute;
    top: -10px;
    left: 18px;
    background: linear-gradient(135deg, #c9a961 0%, #b8895a 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(184, 154, 106, 0.3);
}

.plan-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plan-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.plan-price {
    font-size: 13px;
    color: var(--text-soft);
}

.plan-price strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.plan-currency {
    font-size: 11px;
    color: var(--text-soft);
}

.plan-tagline {
    font-size: 12px;
    color: var(--text-soft);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.plan-cta {
    display: block;
    text-align: center;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    background: var(--accent);
    color: white;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: auto;
}

.plan-cta:hover {
    background: var(--accent-hover, #a07840);
    text-decoration: none;
    color: white;
}

.plan-cta--current {
    background: rgba(184, 154, 106, 0.15);
    color: var(--accent-text);
    pointer-events: none;
}

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

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pricing-table th,
.pricing-table td {
    padding: 6px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.pricing-table .feat-col {
    text-align: left;
    width: 45%;
}

.pricing-table td.feat-col,
.pricing-table tbody td:first-child {
    text-align: left;
    color: var(--text);
}

.pricing-table thead th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    padding-top: 10px;
    padding-bottom: 10px;
    background: #fffdf9;
    border-bottom: 2px solid var(--border);
}

.pricing-table thead th.col-current {
    color: var(--accent-text);
    background: #fff8ef;
    border-bottom-color: var(--accent);
}

.pricing-table .feat-group td {
    background: #fafaf9;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
    text-align: left;
    padding: 8px 12px 5px;
    border-bottom: 1px solid var(--border);
}

.pricing-table .check {
    color: var(--accent-text);
    font-size: 12px;
}

.pricing-table .no {
    color: rgba(0, 0, 0, 0.15);
    font-size: 12px;
}

.pricing-table tfoot td {
    font-weight: 700;
    font-size: 13px;
    padding: 10px 12px;
    background: #fffdf9;
    border-top: 2px solid var(--border);
}

.pricing-table tfoot .plan-price-cell {
    color: var(--accent-text);
}

.plan-vat {
    display: block;
    font-size: 10px;
    color: var(--text-soft);
    opacity: 0.7;
    margin-top: 1px;
    font-weight: 500;
}

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

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

/* =========================
   CHECKOUT PAGE
========================= */

.checkout-wrap {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 16px;
}

.checkout-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-back {
    font-size: 12px;
    color: var(--text-soft);
    text-decoration: none;
}

.checkout-back:hover {
    color: var(--accent-text);
    text-decoration: none;
}

.checkout-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.checkout-plan-summary {
    background: #fffdf9;
    border: 1px solid rgba(184, 154, 106, 0.3);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-plan-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-text);
}

.checkout-plan-price {
    font-size: 13px;
    color: var(--text-soft);
}

.checkout-plan-price strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.checkout-plan-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-soft);
}

.checkout-stripe-placeholder {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stripe-placeholder-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-soft);
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 10px;
    width: fit-content;
}

.stripe-placeholder-text {
    margin: 0;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.5;
    text-align: center;
    padding: 8px 0;
}

.stripe-placeholder-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0.4;
    pointer-events: none;
}

.stripe-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stripe-field-mock {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stripe-field-mock label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-soft);
}

.stripe-input-mock {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-soft);
    background: #fafaf9;
    letter-spacing: 0.05em;
}

.checkout-btn-mock {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: not-allowed;
    opacity: 0.5;
    text-align: center;
}

.stripe-powered {
    margin: 0;
    text-align: center;
    font-size: 11px;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    opacity: 0.6;
}

.checkout-beta-teaser {
    margin-top: 24px;
    padding: 24px 28px;
    border: 1px solid rgba(184, 154, 106, 0.18);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(140% 180% at 0% 0%, rgba(255, 247, 228, 0.6) 0%, rgba(255, 247, 228, 0) 50%),
        var(--card);
    box-shadow: 0 2px 12px rgba(42, 34, 22, 0.04);
    text-align: center;
}

.checkout-beta-title {
    margin: 8px 0 10px;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    color: var(--text);
}

.checkout-beta-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    opacity: 0.75;
    margin: 0;
}

.checkout-beta-text a {
    color: var(--accent-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkout-beta-text a:hover {
    opacity: 0.8;
}

/* ==============================================
   SALES PAGE  (inside .app-main)
=============================================== */

/* ── header ── */
.sl-header {
    padding: 32px 0 28px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
    background:
        radial-gradient(140% 200% at 100% 0%, rgba(255, 247, 224, 0.72) 0%, rgba(255, 247, 224, 0) 56%),
        transparent;
    border-radius: var(--radius-lg);
    padding: 28px 32px 26px;
    border: 1px solid rgba(184, 154, 106, 0.2);
    text-align: left;
}

.sl-header-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.sl-header-title {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.8vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.sl-header-lead {
    margin: 0 0 22px;
    max-width: 600px;
    font-size: var(--fs-base);
    color: var(--text-soft);
    line-height: 1.65;
}

.sl-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sl-link-cta {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-text);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(184, 154, 106, 0.35);
    padding-bottom: 1px;
    transition: color 0.18s, border-color 0.18s;
}

.sl-link-cta:hover {
    color: #7a5a2c;
    border-color: var(--accent);
    text-decoration: none;
}

/* Home articles preview: text-only cards for minimal payload */
.sl-articles-preview {
    margin-top: 8px;
}

.sl-articles-head {
    margin-bottom: 16px;
}

.sl-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.sl-article-card {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(184, 154, 106, 0.2);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(42, 42, 42, 0.05);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sl-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(42, 42, 42, 0.08);
    border-color: rgba(184, 154, 106, 0.34);
}

.sl-article-link {
    display: block;
    padding: 0 14px 14px;
    color: inherit;
    text-decoration: none;
}

.sl-article-link:hover {
    text-decoration: none;
}

.sl-article-date {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 6px;
}

.sl-article-thumb-wrap {
    margin: 0 -14px 10px;
    background: rgba(243, 235, 225, 0.75);
    aspect-ratio: 1.91 / 1;
    overflow: hidden;
}

.sl-article-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sl-article-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.28;
    color: #1f1b16;
    font-family: 'Manrope', sans-serif;
}

.sl-article-summary {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sl-article-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-text);
}

@media (max-width: 920px) {
    .sl-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ── metrics row ── */
.sl-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

.sl-metric {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid rgba(184, 154, 106, 0.22);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(255, 247, 228, 0.8) 0%, rgba(255, 247, 228, 0) 58%),
        var(--card);
    box-shadow: 0 2px 10px rgba(42, 34, 22, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sl-metric::before {
    content: "";
    position: absolute;
    inset: 10px 12px auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(184, 154, 106, 0.24), rgba(184, 154, 106, 0.08) 45%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sl-metric::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, rgba(184, 154, 106, 0.72) 0%, rgba(184, 154, 106, 0.18) 55%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sl-metric:nth-child(2)::after {
    background: linear-gradient(90deg, rgba(127, 167, 192, 0.72) 0%, rgba(127, 167, 192, 0.18) 55%, transparent 100%);
}

.sl-metric:nth-child(3)::after {
    background: linear-gradient(90deg, rgba(107, 122, 58, 0.65) 0%, rgba(107, 122, 58, 0.14) 55%, transparent 100%);
}

.sl-metric:nth-child(1)::after {
    background: linear-gradient(90deg, rgba(184, 154, 106, 0.72) 0%, rgba(184, 154, 106, 0.18) 55%, transparent 100%);
}

.sl-metric:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 154, 106, 0.36);
    box-shadow: 0 8px 22px rgba(42, 34, 22, 0.08);
}

.sl-metric:hover::before {
    opacity: 0;
}

.sl-metric:hover::after {
    opacity: 1;
}

.sl-metric-val {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1f1b16;
    line-height: 1;
    margin-bottom: 6px;
}

.sl-metric-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.sl-metric-today {
    display: block;
    font-size: 13px;
    color: #16a34a;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-top: 4px;
    margin-bottom: 4px;
}

.sl-teaser {
    position: relative;
    overflow: hidden;
    margin: 36px 0 0;
    padding: 28px 32px;
    border: 1px solid rgba(184, 154, 106, 0.18);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(140% 180% at 0% 0%, rgba(255, 247, 228, 0.6) 0%, rgba(255, 247, 228, 0) 50%),
        var(--card);
    box-shadow: 0 2px 12px rgba(42, 34, 22, 0.04);
    text-align: center;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.sl-teaser::before {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    top: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(184, 154, 106, 0.2) 28%, rgba(127, 167, 192, 0.16) 52%, rgba(107, 122, 58, 0.12) 70%, transparent 100%);
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sl-teaser::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: calc(var(--radius-lg) - 4px);
    border: 1px solid rgba(184, 154, 106, 0.08);
    pointer-events: none;
    transition: border-color 0.3s ease;
}

.sl-teaser:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 154, 106, 0.3);
    box-shadow: 0 10px 28px rgba(42, 34, 22, 0.08);
}

.sl-teaser:hover::before {
    transform: translateX(1.8%);
    opacity: 1;
}

.sl-teaser:hover::after {
    border-color: rgba(184, 154, 106, 0.14);
}

.sl-teaser-text {
    max-width: 620px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    opacity: 0.75;
    letter-spacing: 0.005em;
}

.sl-teaser-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}

.sl-teaser-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-text);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sl-teaser-link:hover {
    opacity: 1;
}

/* ── shared section layout ── */
.sl-section {
    margin-bottom: 48px;
}

.sl-section-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.sl-section-title {
    margin: 0 0 22px;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: var(--lh-tight);
}

/* ── before/after ── */
.sl-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sl-compare-col {
    position: relative;
    overflow: hidden;
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--card);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.sl-compare-col--after {
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.sl-compare-col::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(184, 154, 106, 0.22) 32%, rgba(47, 52, 56, 0.12) 52%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sl-compare-col:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 154, 106, 0.34);
    box-shadow: 0 8px 24px rgba(42, 34, 22, 0.08);
}

.sl-compare-col:hover::before {
    opacity: 1;
}

.sl-compare-col--after {
    background:
        radial-gradient(130% 170% at 110% 0%, rgba(218, 224, 188, 0.62) 0%, rgba(218, 224, 188, 0) 56%),
        var(--card);
    border-color: rgba(107, 122, 58, 0.28);
}

.sl-compare-label {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sl-compare-col--before .sl-compare-label { color: var(--text-soft); }
.sl-compare-col--after .sl-compare-label  { color: var(--green-text); }

.sl-compare-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sl-compare-list li {
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
}

.sl-compare-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.sl-compare-list--cons li::before { background: #d0c4b4; }

.sl-compare-list--pros li {
    color: var(--text);
    font-weight: 500;
}
.sl-compare-list--pros li::before { background: var(--green); }

/* ── benefits ── */
.sl-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.sl-benefit {
    position: relative;
    overflow: hidden;
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.96)),
        var(--card);
    transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}

.sl-benefit::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(96% 74% at 100% 0%, rgba(184, 154, 106, 0.1) 0%, rgba(184, 154, 106, 0) 64%),
        radial-gradient(58% 46% at 0% 100%, rgba(127, 167, 192, 0.12) 0%, rgba(127, 167, 192, 0) 72%);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.sl-benefit::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    height: 1px;
    background: linear-gradient(90deg, rgba(184, 154, 106, 0.14), transparent 74%);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sl-benefit:nth-child(2)::after {
    background: linear-gradient(90deg, rgba(127, 167, 192, 0.22), transparent 72%);
}

.sl-benefit:nth-child(3)::after {
    background: linear-gradient(90deg, rgba(107, 122, 58, 0.22), transparent 72%);
}

.sl-benefit:hover {
    border-color: rgba(184, 154, 106, 0.45);
    box-shadow: 0 8px 28px rgba(184, 154, 106, 0.14), 0 2px 8px rgba(42, 34, 22, 0.06);
    transform: translateY(-2px);
}

.sl-benefit:hover::before {
    opacity: 1;
    transform: translateY(-2px);
}

.sl-benefit:hover::after {
    opacity: 1;
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .mkt-plan-pill,
    .sl-metric,
    .sl-teaser,
    .sl-compare-col,
    .sl-benefit,
    .mkt-plan-pill::before,
    .mkt-plan-pill::after,
    .sl-metric::before,
    .sl-metric::after,
    .sl-teaser::before,
    .sl-teaser::after,
    .sl-compare-col::before,
    .sl-benefit::before,
    .sl-benefit::after {
        transition: none !important;
        animation: none !important;
    }

    .mkt-plan-pill:hover,
    .sl-metric:hover,
    .sl-teaser:hover,
    .sl-compare-col:hover,
    .sl-benefit:hover {
        transform: none;
    }
}

.sl-benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(184, 154, 106, 0.16), rgba(127, 167, 192, 0.14));
    border: 1px solid rgba(184, 154, 106, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--accent-text);
}

.sl-benefit:nth-child(2) .sl-benefit-icon {
    background: linear-gradient(145deg, rgba(127, 167, 192, 0.2), rgba(47, 52, 56, 0.12));
    border-color: rgba(127, 167, 192, 0.35);
    color: #4f6f85;
}

.sl-benefit:nth-child(3) .sl-benefit-icon {
    background: linear-gradient(145deg, rgba(107, 122, 58, 0.2), rgba(184, 154, 106, 0.12));
    border-color: rgba(107, 122, 58, 0.34);
    color: var(--green-text);
}

.sl-benefit h3 {
    position: relative;
    padding-right: 22px;
}

.sl-benefit h3::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0.55em;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sport-ink), transparent);
    opacity: 0.45;
}

.sl-benefit:nth-child(1) h3::after {
    background: linear-gradient(90deg, var(--gt-red), transparent);
}

.sl-benefit:nth-child(2) h3::after {
    background: linear-gradient(90deg, var(--sport-blue), transparent);
}

.sl-benefit:nth-child(3) h3::after {
    background: linear-gradient(90deg, var(--green), transparent);
}

.sl-benefit h3 {
    margin: 0 0 7px;
    font-size: var(--fs-md);
    line-height: var(--lh-snug);
}

.sl-benefit p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.6;
}

/* ── benefit icon color variants ── */
.sl-benefit-icon--slate {
    background: rgba(70, 100, 130, 0.11);
    color: #476482;
}

.sl-benefit-icon--sage {
    background: rgba(107, 122, 58, 0.13);
    color: var(--green-text);
}

/* ── stat strip ── */
.sl-stat-strip {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(to right,
        rgba(255, 247, 228, 0.65) 0%,
        #ffffff 38%,
        rgba(218, 224, 188, 0.45) 100%);
    margin-bottom: 40px;
}

.sl-stat-item {
    flex: 1;
    padding: 22px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.sl-stat-item:last-child {
    border-right: none;
}

.sl-stat-val {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent-text);
    line-height: 1;
}

.sl-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 5px;
    font-weight: 500;
}

/* ── step numbered badge ── */
.sl-step-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b89a6a 0%, #c9a96e 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(184, 154, 106, 0.32);
    font-family: 'Manrope', sans-serif;
}

.sl-step-badge--slate {
    background: linear-gradient(135deg, #5c7ea0 0%, #476482 100%);
    box-shadow: 0 2px 10px rgba(70, 100, 130, 0.28);
}

.sl-step-badge--sage {
    background: linear-gradient(135deg, #8a9650 0%, #6b7a3a 100%);
    box-shadow: 0 2px 10px rgba(107, 122, 58, 0.28);
}

/* ── section kicker accent bar ── */
.sl-section-kicker::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* ── how it works steps (modern 2x2 grid) ── */
.sl-step-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sl-step-card {
    padding: 30px 28px;
    background: var(--card);
    position: relative;
    overflow: hidden;
}

.sl-step-card:nth-child(1),
.sl-step-card:nth-child(2) {
    border-bottom: 1px solid var(--border);
}

.sl-step-card:nth-child(1),
.sl-step-card:nth-child(3) {
    border-right: 1px solid var(--border);
}

.sl-step-card--slate {
    background: rgba(70, 100, 130, 0.04);
}

.sl-step-card--sage {
    background: rgba(107, 122, 58, 0.055);
}

.sl-step-num {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(184, 154, 106, 0.28);
    margin-bottom: 16px;
    user-select: none;
}

.sl-step-card--slate .sl-step-num {
    -webkit-text-stroke-color: rgba(70, 100, 130, 0.28);
}

.sl-step-card--sage .sl-step-num {
    -webkit-text-stroke-color: rgba(107, 122, 58, 0.32);
}

.sl-step-card h3 {
    margin: 0 0 9px;
    font-size: var(--fs-md);
    font-weight: 600;
    line-height: var(--lh-snug);
}

.sl-step-card p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.65;
}

/* ── plan cards ── */
.sl-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sl-plan {
    padding: 20px 18px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    display: flex;
    flex-direction: column;
    position: relative;
}

.sl-plan--featured {
    background:
        radial-gradient(130% 160% at 100% 0%, rgba(255, 247, 228, 0.9) 0%, rgba(255, 247, 228, 0) 60%),
        var(--card);
    border-color: rgba(184, 154, 106, 0.4);
    box-shadow: 0 6px 22px rgba(184, 154, 106, 0.1);
}

.sl-plan-badge {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.sl-plan-name {
    margin: 0 0 3px;
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--text);
}

.sl-plan-price {
    margin: 0 0 5px;
}

.sl-plan-price strong {
    font-size: clamp(20px, 2.2vw, 26px);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1f1b16;
}

.sl-plan-price span {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

.sl-plan-tagline {
    margin: 0 0 12px;
    font-size: var(--fs-xs);
    color: var(--text-soft);
    line-height: 1.4;
}

.sl-plan-features {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.sl-plan-features li {
    font-size: 12px;
    color: var(--text-soft);
    padding-left: 15px;
    position: relative;
    line-height: 1.35;
}

.sl-plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 11px;
}

.sl-plan-cta {
    display: block;
    padding: 9px 12px;
    border: 1px solid rgba(184, 154, 106, 0.36);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--accent-text);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.16s, border-color 0.16s;
    margin-top: auto;
}

.sl-plan-cta:hover {
    background: rgba(184, 154, 106, 0.1);
    border-color: var(--accent);
    text-decoration: none;
    color: var(--accent-text);
}

.sl-plan-cta--featured {
    background: linear-gradient(135deg, #c9a870 0%, #a07840 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 16px rgba(160, 120, 64, 0.24);
}

.sl-plan-cta--featured:hover {
    background: linear-gradient(135deg, #b8966a 0%, #8f6832 100%);
    border-color: transparent;
    color: #fff;
}

.sl-plans-note {
    margin: 14px 0 0;
    font-size: var(--fs-xs);
    color: var(--muted);
}

/* Beta notice — standalone section (pricing page) */
.beta-notice {
    max-width: 760px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

/* Beta notice — inline at top of plans (all pages) */
.beta-notice-inline {
    margin: 0 0 20px;
}

/* Beta notice — full-width banner above page H1 (pricing page) */
.beta-notice--page-top {
    display: block;
    margin: 0;
    border-radius: 0;
    text-align: center;
}

.beta-notice,
.beta-notice-inline {
    background: #c2185b;
    border: none;
    border-radius: 12px;
    padding: 13px 18px;
    font-size: var(--fs-sm);
    color: #fff;
    line-height: 1.6;
    font-weight: 500;
}

.beta-notice-text {
    margin: 0;
}

.beta-notice strong,
.beta-notice-inline strong {
    color: #fff;
    font-weight: 700;
}

.beta-notice a,
.beta-notice-inline a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.beta-notice a:hover,
.beta-notice-inline a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* ── horizontal feature rows (Organizare) ── */
.sl-feature-rows {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.sl-feature-row {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 18px;
    padding: 22px 24px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.sl-feature-row:last-child { border-bottom: none; }
.sl-feature-row:nth-child(even) { background: rgba(107, 122, 58, 0.035); }
.sl-feature-row h3 { margin: 0 0 5px; font-size: var(--fs-md); font-weight: 600; line-height: var(--lh-snug); }
.sl-feature-row p { margin: 0; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.6; }

/* ── asymmetric benefits (1 tall left + 2 stacked right) ── */
.sl-benefits--asymm {
    grid-template-columns: 1fr 1fr;
}
.sl-benefits--asymm .sl-benefit:first-child {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

/* ── compact 2-col feature list (Platforma) ── */
.sl-feat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.sl-feat-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sl-feat-item:hover {
    border-color: rgba(184, 154, 106, 0.4);
    box-shadow: 0 4px 16px rgba(42, 34, 22, 0.06);
}
.sl-feat-item-body h3 { margin: 0 0 4px; font-size: var(--fs-sm); font-weight: 600; line-height: var(--lh-snug); }
.sl-feat-item-body p { margin: 0; font-size: 13px; color: var(--text-soft); line-height: 1.55; }

@media (max-width: 640px) {
    .sl-feat-list { grid-template-columns: 1fr; }
    .sl-benefits--asymm { grid-template-columns: 1fr; }
    .sl-benefits--asymm .sl-benefit:first-child { grid-row: auto; }
    .sl-feature-row { grid-template-columns: 40px 1fr; }
}

/* ── beta section ── */
.sl-beta-section {
    background:
        radial-gradient(140% 200% at 100% 0%, rgba(194, 24, 91, 0.08) 0%, rgba(194, 24, 91, 0) 55%),
        radial-gradient(120% 180% at 0% 100%, rgba(194, 24, 91, 0.05) 0%, rgba(194, 24, 91, 0) 50%),
        var(--card);
    border: 1px solid rgba(194, 24, 91, 0.22);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: 0 2px 18px rgba(194, 24, 91, 0.07);
}

.sl-beta-lead {
    margin: 0 0 28px;
    font-size: var(--fs-md);
    color: var(--text-soft);
    max-width: 600px;
    line-height: 1.65;
}

.sl-beta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.sl-beta-card {
    background: color-mix(in srgb, #c2185b 5%, var(--bg));
    border: 1px solid rgba(194, 24, 91, 0.18);
    border-top: 3px solid #c2185b;
    border-radius: var(--radius);
    padding: 20px 22px;
}

.sl-beta-card-title {
    margin: 0 0 8px;
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c2185b;
}

.sl-beta-card-body {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.6;
}

.mkt-cta-btn--outline {
    background: transparent;
    border: 2px solid #c2185b;
    color: #c2185b;
}

.mkt-cta-btn--outline:hover {
    background: #c2185b;
    color: #fff;
}

/* ── final cta strip ── */
.sl-cta-strip {
    margin-top: 8px;
    margin-bottom: 0;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(107, 122, 58, 0.18);
    background:
        radial-gradient(140% 220% at 0% 110%, rgba(218, 224, 188, 0.55) 0%, rgba(218, 224, 188, 0) 52%),
        radial-gradient(140% 220% at 100% 0%, rgba(255, 247, 228, 0.75) 0%, rgba(255, 247, 228, 0) 52%),
        var(--card);
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.sl-cta-strip-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
}

.sl-cta-title {
    margin: 0;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.2;
    flex: 1 1 220px;
}

.sl-cta-lead {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.5;
    flex: 2 1 280px;
}

/* ── responsive ── */
@media (max-width: 860px) {
    .sl-benefits,
    .sl-steps {
        grid-template-columns: 1fr 1fr;
    }

    .sl-plans-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .sl-compare,
    .sl-benefits,
    .sl-steps {
        grid-template-columns: 1fr;
    }

    .sl-plans-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .sl-header {
        padding: 20px 16px 18px;
    }

    .sl-teaser {
        padding: 20px 16px;
    }

    .sl-cta-strip {
        padding: 24px 16px;
    }

    .sl-beta-section {
        padding: 24px 16px;
    }

    .sl-beta-grid {
        grid-template-columns: 1fr;
    }

    .landing-main .sl-cta-strip {
        padding: 32px 20px 44px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .sl-cta-strip .mkt-cta-btn {
        width: 100%;
        text-align: center;
    }

    .sl-prose {
        padding: 20px 16px;
    }

    /* ── section cards on mobile ── */
    .sl-section {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 20px 18px 22px;
        box-shadow: 0 1px 8px rgba(42,34,22,0.04);
        margin-bottom: 12px;
    }
}

/* ── legal prose content ── */
.sl-prose {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(42,42,42,0.04);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 24px;
}

.sl-prose h2 {
    margin: 24px 0 10px;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: var(--lh-snug);
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.sl-prose h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.sl-prose h3 {
    margin: 16px 0 8px;
    font-size: var(--fs-md);
    line-height: var(--lh-snug);
}

.sl-prose p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    margin: 0 0 12px;
}

.sl-prose ul {
    padding-left: 20px;
    margin: 0 0 16px;
}

.sl-prose li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 6px;
}

.sl-prose a {
    color: var(--accent-text);
    text-decoration: underline;
    text-decoration-color: rgba(184, 154, 106, 0.4);
}

.sl-prose a:hover {
    color: #7a5a2c;
    text-decoration-color: var(--accent);
    text-decoration: underline;
}

.sl-prose .muted {
    color: var(--text-soft);
}

.sl-prose strong {
    font-weight: 700;
}

.sl-prose .note {
    margin: 16px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 10px;
}

/* ── FAQ native details/summary accordion ─────────────────────── */
/* ── FAQ ── */
.faqx-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 12px;
    margin-bottom: 8px;
}
.faqx-group {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card);
}
.faqx-group-title {
    margin: 0;
    padding: 16px 24px 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-text);
    background: var(--accent-soft);
    border-bottom: 1px solid rgba(184,154,106,0.18);
    display: flex;
    align-items: center;
    gap: 8px;
}
.faqx-group-title::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    flex-shrink: 0;
}
.faqx-item {
    border-bottom: 1px solid var(--border);
    position: relative;
    transition: background 0.18s;
}
.faqx-item:last-child {
    border-bottom: none;
}
details[open].faqx-item {
    background: rgba(255,251,245,0.7);
}
details[open].faqx-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}
.faqx-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
    line-height: 1.45;
    transition: color 0.16s;
}
.faqx-q::-webkit-details-marker { display: none; }
.faqx-q::after {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 4l3 3 3-3' stroke='%235f564f' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
    transition: transform 0.22s, border-color 0.18s;
}
details[open] > .faqx-q {
    color: var(--accent-text);
}
details[open] > .faqx-q::after {
    transform: rotate(180deg);
    border-color: rgba(184,154,106,0.45);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 4l3 3 3-3' stroke='%237a5a2c' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.faqx-a {
    padding: 0 24px 22px 24px;
    padding-left: 27px; /* offset for accent bar */
}
.faqx-a p {
    margin: 0 0 10px;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.7;
}
.faqx-a p:last-child { margin-bottom: 0; }
.faqx-a a {
    color: var(--accent-text);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(184,154,106,0.4);
}
.faqx-a a:hover { color: var(--accent-text-hover); text-decoration-color: var(--accent); }
.faqx-a em {
    font-style: normal;
    font-weight: 600;
    color: var(--text);
    background: var(--accent-soft);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 13px;
}

/* ── About page ── */
.sl-manifesto {
    margin: 0 0 40px;
    padding: 28px 32px;
    border-left: 3px solid var(--accent);
    background: linear-gradient(135deg, rgba(255,247,228,0.7) 0%, rgba(255,255,255,0) 70%);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.sl-manifesto p {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 500;
    line-height: 1.55;
    color: var(--text);
    letter-spacing: -0.01em;
}
.sl-manifesto p + p { margin-top: 14px; }

.sl-about-origin {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0 24px;
    margin-bottom: 40px;
}
.sl-about-origin-year {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-text);
    letter-spacing: 0.06em;
    padding-top: 3px;
    text-align: right;
    border-right: 2px solid rgba(184,154,106,0.25);
    padding-right: 20px;
}
.sl-about-origin-text p {
    margin: 0 0 12px;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.7;
}
.sl-about-origin-text p:last-child { margin-bottom: 0; }

.sl-beliefs {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.sl-belief {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--card);
    align-items: start;
    transition: background 0.18s;
}
.sl-belief:last-child { border-bottom: none; }
.sl-belief:hover { background: rgba(255,247,228,0.5); }
.sl-belief-num {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(184,154,106,0.35);
    line-height: 1;
    padding-top: 2px;
    user-select: none;
}
.sl-belief-body h3 {
    margin: 0 0 5px;
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: var(--lh-snug);
}
.sl-belief-body p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.65;
}

.sl-about-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}
.sl-about-tag {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    background: var(--card);
}
.sl-about-tag--accent {
    border-color: rgba(184,154,106,0.4);
    color: var(--accent-text);
    background: var(--accent-soft);
}

/* ── Persona page ── */
@keyframes persona-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.persona-intro {
    animation: persona-fade-in 0.3s ease-out both;
}
.persona-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.persona-anchor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    background: var(--card);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.persona-anchor .icon {
    width: 15px;
    height: 15px;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}
.persona-anchor--coral .icon  { stroke: #d4553a; }
.persona-anchor--blue .icon   { stroke: #3b6fd9; }
.persona-anchor--teal .icon   { stroke: #1a9a7a; }
.persona-anchor--amber .icon  { stroke: #b88a2a; }
.persona-anchor--violet .icon { stroke: #7c4dbd; }
.persona-anchor--indigo .icon { stroke: #4f5bd5; }
.persona-anchor--orange .icon { stroke: #d07020; }
.persona-anchor--green .icon  { stroke: #2e8b4a; }
.persona-anchor--rose .icon   { stroke: #c44a7a; }
.persona-anchor--coral:hover  { border-color: #d4553a; color: #d4553a; background: #fff0ed; box-shadow: 0 2px 8px rgba(212,85,58,0.12); }
.persona-anchor--blue:hover   { border-color: #3b6fd9; color: #3b6fd9; background: #edf3ff; box-shadow: 0 2px 8px rgba(59,111,217,0.12); }
.persona-anchor--teal:hover   { border-color: #1a9a7a; color: #1a9a7a; background: #e8faf5; box-shadow: 0 2px 8px rgba(26,154,122,0.12); }
.persona-anchor--amber:hover  { border-color: #b88a2a; color: #b88a2a; background: #fff7e6; box-shadow: 0 2px 8px rgba(184,138,42,0.12); }
.persona-anchor--violet:hover { border-color: #7c4dbd; color: #7c4dbd; background: #f3eeff; box-shadow: 0 2px 8px rgba(124,77,189,0.12); }
.persona-anchor--indigo:hover { border-color: #4f5bd5; color: #4f5bd5; background: #eef0ff; box-shadow: 0 2px 8px rgba(79,91,213,0.12); }
.persona-anchor--orange:hover { border-color: #d07020; color: #d07020; background: #fff3e8; box-shadow: 0 2px 8px rgba(208,112,32,0.12); }
.persona-anchor--green:hover  { border-color: #2e8b4a; color: #2e8b4a; background: #eaf7ee; box-shadow: 0 2px 8px rgba(46,139,74,0.12); }
.persona-anchor--rose:hover   { border-color: #c44a7a; color: #c44a7a; background: #fdeef4; box-shadow: 0 2px 8px rgba(196,74,122,0.12); }

.persona-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.persona-card {
    padding: 28px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fffefb 0%, #fffaf3 100%);
    box-shadow: 0 1px 3px rgba(42,34,22,0.04);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.persona-card:hover {
    box-shadow: 0 8px 28px rgba(42,34,22,0.09);
    transform: translateY(-2px);
}
.persona-card--coral:hover  { border-color: #d4553a; }
.persona-card--blue:hover   { border-color: #3b6fd9; }
.persona-card--teal:hover   { border-color: #1a9a7a; }
.persona-card--amber:hover  { border-color: #b88a2a; }
.persona-card--violet:hover { border-color: #7c4dbd; }
.persona-card--indigo:hover { border-color: #4f5bd5; }
.persona-card--orange:hover { border-color: #d07020; }
.persona-card--green:hover  { border-color: #2e8b4a; }
.persona-card--rose:hover   { border-color: #c44a7a; }

.persona-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.persona-title {
    margin: 0;
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text);
    scroll-margin-top: 80px;
}
.persona-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.persona-icon .icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    fill: none;
}
.persona-icon--coral  { background: #fff0ed; }
.persona-icon--coral .icon  { stroke: #d4553a; }
.persona-icon--blue   { background: #edf3ff; }
.persona-icon--blue .icon   { stroke: #3b6fd9; }
.persona-icon--teal   { background: #e8faf5; }
.persona-icon--teal .icon   { stroke: #1a9a7a; }
.persona-icon--amber  { background: #fff7e6; }
.persona-icon--amber .icon  { stroke: #b88a2a; }
.persona-icon--violet { background: #f3eeff; }
.persona-icon--violet .icon { stroke: #7c4dbd; }
.persona-icon--indigo { background: #eef0ff; }
.persona-icon--indigo .icon { stroke: #4f5bd5; }
.persona-icon--orange { background: #fff3e8; }
.persona-icon--orange .icon { stroke: #d07020; }
.persona-icon--green  { background: #eaf7ee; }
.persona-icon--green .icon  { stroke: #2e8b4a; }
.persona-icon--rose   { background: #fdeef4; }
.persona-icon--rose .icon   { stroke: #c44a7a; }

.persona-card--coral  { border-top: 3px solid #d4553a; }
.persona-card--blue   { border-top: 3px solid #3b6fd9; }
.persona-card--teal   { border-top: 3px solid #1a9a7a; }
.persona-card--amber  { border-top: 3px solid #b88a2a; }
.persona-card--violet { border-top: 3px solid #7c4dbd; }
.persona-card--indigo { border-top: 3px solid #4f5bd5; }
.persona-card--orange { border-top: 3px solid #d07020; }
.persona-card--green  { border-top: 3px solid #2e8b4a; }
.persona-card--rose   { border-top: 3px solid #c44a7a; }

.persona-need,
.persona-advantage {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 10px;
}
.persona-need {
    background: #faf8f4;
    border: 1px solid rgba(184,154,106,0.15);
}
.persona-advantage {
    background: #f7faf7;
    border: 1px solid rgba(46,139,74,0.12);
}
.persona-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin: 0 0 6px;
}
.persona-advantage .persona-label {
    color: #2e8b4a;
}
.persona-need p,
.persona-advantage p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.65;
}
.persona-advantage ul {
    margin: 4px 0 0;
    padding-left: 18px;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.75;
}
.persona-advantage li {
    margin-bottom: 3px;
}
.persona-advantage li::marker {
    color: #2e8b4a;
}

.persona-start {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(120, 100, 70, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}
.persona-start:hover {
    color: rgba(120, 100, 70, 0.7);
    text-decoration: none;
}

@media (max-width: 700px) {
    .persona-grid {
        grid-template-columns: 1fr;
    }
    .persona-summary {
        gap: 6px;
    }
    .persona-anchor {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ── Contact page ── */
.sl-contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}
.sl-contact-card {
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sl-contact-card:hover {
    border-color: rgba(184,154,106,0.4);
    box-shadow: 0 4px 18px rgba(42,34,22,0.07);
}
.sl-contact-card-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.sl-contact-card-label::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.sl-contact-card h3 {
    margin: 0 0 6px;
    font-size: var(--fs-md);
    font-weight: 600;
}
.sl-contact-card p {
    margin: 0 0 14px;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.6;
}
.sl-contact-card a.sl-contact-link {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--accent-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(184,154,106,0.35);
    padding-bottom: 1px;
}
.sl-contact-card a.sl-contact-link:hover {
    color: var(--accent-text-hover);
    border-color: var(--accent);
}
.sl-contact-legal {
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    margin-bottom: 32px;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.7;
}
.sl-contact-legal strong { color: var(--text); }

@media (max-width: 600px) {
    .sl-contact-cards { grid-template-columns: 1fr; }
    .sl-about-origin { grid-template-columns: 1fr; }
    .sl-about-origin-year { text-align: left; border-right: none; border-bottom: 2px solid rgba(184,154,106,0.25); padding-right: 0; padding-bottom: 8px; margin-bottom: 12px; }
}

/* ── Admin users table ───────────────────────────────────────────────────── */
.admin-users-table {
    max-width: none;
}
.admin-users-table .admin-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-users-table table {
    width: 100%;
    min-width: 1100px;
    white-space: nowrap;
}
.admin-users-table td,
.admin-users-table th {
    padding: 8px 10px;
    vertical-align: middle;
}
.admin-page:has(.admin-users-table) .app-main {
    max-width: 1400px;
}

.admin-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

.admin-plan-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--border);
    color: var(--text-soft);
}
.admin-plan-badge.admin-plan-pro   { background: #7c3aed; color: #fff; }
.admin-plan-badge.admin-plan-team  { background: #059669; color: #fff; }
.admin-plan-badge.admin-plan-basic { background: #d97706; color: #fff; }
.admin-plan-badge.admin-plan-free  { background: #e5e1db; color: #8a8278; }

.admin-inline-form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.admin-inline-form select,
.admin-inline-form input[type="date"],
.admin-inline-form input[type="text"] {
    font-size: 0.75rem;
    padding: 3px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
}
.admin-notes-input {
    width: 140px;
}
.admin-user-email-highlight {
    display: inline-block;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    background: #e040fb;
    border: 1px solid #e040fb;
    border-radius: 4px;
    padding: 2px 7px;
    word-break: break-all;
}
.admin-notes-cell {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-beta-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #e0f2fe;
    color: #0369a1;
    vertical-align: middle;
}

.admin-seeds-import-card,
.admin-seeds-preview-card {
    margin-top: 14px;
}

.admin-seeds-import-form,
.admin-seeds-confirm-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.admin-stream-limit-wrap {
    width: 100%;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
}

.admin-stream-limit-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-soft);
    margin: 0 0 6px 0;
}

.admin-stream-limit-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-stream-limit-opt {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.admin-stream-limit-opt:has(input:checked) {
    border-color: var(--accent, #0369a1);
    background: #e0f2fe;
    color: #0369a1;
}

.admin-stream-limit-opt input[type="radio"] {
    accent-color: var(--accent, #0369a1);
}

.admin-seeds-file-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
}

.admin-seeds-import-form input[type="file"] {
    min-width: 280px;
    max-width: 100%;
    padding: 7px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.admin-upload-progress {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: #fffdf9;
}

.admin-upload-stages {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.admin-upload-stage {
    border: 1px solid #efe8dc;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.admin-upload-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 6px;
}

.admin-upload-stage-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.admin-upload-stage-status--waiting {
    color: #6f6a62;
    background: #f4f0e7;
    border-color: #e8dfd0;
}

.admin-upload-stage-status--active {
    color: #8a6b28;
    background: #fdf7e8;
    border-color: #ecdab0;
}

.admin-upload-stage-status--done {
    color: #2c704f;
    background: #eef9f3;
    border-color: #cce7d8;
}

.admin-upload-stage-status--error {
    color: #8d4a4a;
    background: #fdf0f0;
    border-color: #eccdcd;
}

.admin-progress-fill--indeterminate {
    width: 100% !important;
    background: repeating-linear-gradient(
        120deg,
        rgba(195, 154, 76, 0.92) 0,
        rgba(195, 154, 76, 0.92) 20px,
        rgba(166, 127, 57, 0.92) 20px,
        rgba(166, 127, 57, 0.92) 40px
    );
    background-size: 120px 100%;
    animation: admin-progress-shift 1.2s linear infinite;
}

@keyframes admin-progress-shift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 120px 0;
    }
}

.admin-seed-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.admin-progress-stack {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-progress-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

.admin-progress-track {
    width: 100%;
    height: 10px;
    background: #ece8df;
    border-radius: 999px;
    overflow: hidden;
}

.admin-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    min-width: 2px;
}

.admin-progress-fill--found {
    background: linear-gradient(90deg, #3ca878 0%, #2f8b64 100%);
}

.admin-progress-fill--missing {
    background: linear-gradient(90deg, #d46b6b 0%, #b84f4f 100%);
}

.admin-progress-fill--add {
    background: linear-gradient(90deg, #c39a4c 0%, #a67f39 100%);
}

.admin-missing-domains {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.admin-seed-details-grid {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-seed-detail-box {
    margin-top: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: #fffcf7;
}

.admin-missing-domains summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-soft);
}

.admin-missing-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-missing-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid #e3c6c6;
    background: #fff5f5;
    color: #8b4a4a;
    font-size: 12px;
    text-decoration: none;
}

a.admin-missing-pill:hover {
    filter: brightness(0.93);
    cursor: pointer;
}

.admin-missing-pill--found {
    border-color: #b7dfcf;
    background: #effaf5;
    color: #28684e;
}

.admin-missing-pill--add {
    border-color: #e5d6b8;
    background: #fdf7ea;
    color: #7c6532;
}

.admin-missing-pill--already {
    border-color: #d8d2e6;
    background: #f5f2fb;
    color: #5f4e8d;
}

.admin-missing-pill--invalid {
    border-color: #e3c6c6;
    background: #fff2f2;
    color: #924f4f;
}

@media (max-width: 760px) {
    .admin-users-table .admin-table-scroll {
        overflow: visible;
    }

    .admin-users-table table {
        min-width: 0;
        white-space: normal;
        margin-top: 8px;
    }

    .admin-users-table thead {
        display: none;
    }

    .admin-users-table tbody {
        display: block;
    }

    .admin-users-table tbody tr {
        display: block;
        margin-bottom: 12px;
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: #fff;
    }

    .admin-users-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .admin-users-table td,
    .admin-users-table th {
        display: grid;
        grid-template-columns: 108px 1fr;
        gap: 8px;
        padding: 7px 0;
        border-bottom: 1px solid #f1ece4;
        align-items: start;
    }

    .admin-users-table td:last-child {
        border-bottom: none;
    }

    .admin-users-table td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-soft);
    }

    .admin-users-table td[data-label="Schimbă plan"],
    .admin-users-table td[data-label="Extinde acces"] {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .admin-inline-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .admin-notes-input {
        width: 100%;
    }

    .admin-users-table .admin-bar-btn {
        align-self: flex-start;
    }

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

    .admin-seed-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .admin-seed-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════
   Domain profile — mobile fixes (narrow viewports)
══════════════════════════════════════════════════════ */
@media (max-width: 640px) {

    /* Header */
    .domain-profile h1 {
        font-size: clamp(22px, 7vw, 32px);
    }

    /* Workspace panels */
    .workspace-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .workspace-panel + .workspace-panel {
        border-top: 1px solid var(--border);
    }

    .similar-card-wrap,
    .relation-card-wrap {
        padding: 16px;
        border-radius: 16px;
    }

    .similar-card-wrap--locked,
    .relation-card-wrap--locked {
        padding: 16px;
    }

    /* Domain-note display area */
    .domain-note-display {
        padding: 14px 14px;
        border-radius: 12px;
    }

    .domain-note-head h2 {
        font-size: clamp(20px, 6vw, 26px);
    }

    /* Similar list — single col on narrow phones */
    .similar-list {
        grid-template-columns: 1fr;
    }

    .relation-card-head h2 {
        font-size: clamp(18px, 5.6vw, 24px);
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .relation-tooltip {
        left: auto;
        right: 0;
        transform: none;
        width: min(260px, calc(100vw - 64px));
        max-width: calc(100vw - 64px);
    }

    .relation-tooltip::after {
        left: auto;
        right: 12px;
        transform: none;
    }

    .relation-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .relation-domain-link {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        align-items: flex-start;
    }

    .relation-title-cell {
        max-width: none;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .fav-picker-wrap,
    .fav-picker-wrap--profile {
        width: 100%;
        min-width: 0;
    }

    .fav-dropdown {
        right: 0;
        left: auto;
        min-width: 0;
        width: min(240px, calc(100vw - 64px));
        max-width: calc(100vw - 64px);
        white-space: normal;
    }

    .fav-picker-wrap--profile .fav-dropdown {
        left: 0;
        right: auto;
    }

    .fav-dropdown-item,
    .fav-dropdown-empty {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Action add row: stack vertically */
    .action-add-row {
        flex-wrap: wrap;
    }

    .action-input {
        width: 100%;
    }

    .action-date-group {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .action-date-label {
        font-size: 16px;
    }

    .action-date-input {
        min-height: 34px;
        padding: 7px 12px;
        font-size: 16px;
    }

    .action-add-btn {
        white-space: nowrap;
        font-size: 16px;
    }

    /* Metrics already 1fr at 720px, keep it */

    /* Domain actions buttons wrap */
    .domain-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .domain-actions .result-action,
    .domain-actions .result-save-picker {
        width: 100%;
        min-width: 0;
    }

    .domain-actions .result-action {
        justify-content: center;
    }

    .domain-contact-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .domain-contact-grid .contact-pill {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .domain-profile {
        margin-bottom: 14px;
    }

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

    .metric-anchor {
        display: grid;
        gap: 4px;
    }

    .metric-label {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .workspace-panel,
    .workspace-panel--locked,
    .similar-card-wrap,
    .relation-card-wrap,
    .similar-card-wrap--locked,
    .relation-card-wrap--locked {
        padding: 14px;
        border-radius: 14px;
    }

    .domain-note-head,
    .similar-card-head,
    .relation-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .domain-title,
    .domain-description,
    .domain-context,
    .domain-contact h2,
    .domain-contact-note {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .domain-note-head-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .domain-note-action-button,
    .domain-note-delete-form,
    .domain-note-head-actions .favorite-list-icon-button {
        width: 100%;
        min-width: 0;
    }

    .domain-note-head-actions .favorite-list-icon-button {
        justify-content: center;
    }

    .domain-note-badge {
        position: static;
        align-self: flex-start;
        margin-top: 2px;
    }

    .relation-table th,
    .relation-table td {
        padding-left: 10px;
        padding-right: 10px;
    }

    .relation-page-info {
        min-width: 0;
    }

    .domain-note-display,
    .note-textarea {
        padding: 14px;
        border-radius: 14px;
    }

    .note-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .note-actions .result-action,
    .domain-note-add-inline,
    .workspace-locked-overlay .result-action,
    .similar-locked-overlay .result-action,
    .relation-locked-overlay .result-action {
        width: 100%;
        min-width: 0;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .action-item {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr) auto;
        align-items: start;
        gap: 8px;
    }

    .action-title {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .action-due {
        white-space: normal;
        text-align: right;
        justify-self: end;
        max-width: 84px;
        overflow-wrap: anywhere;
    }

    .action-delete-form {
        grid-column: 3;
        justify-self: end;
    }

    .fav-dropdown {
        width: min(220px, calc(100vw - 40px));
        max-width: calc(100vw - 40px);
    }

    .action-add-row {
        flex-direction: column;
        align-items: stretch;
    }

    .action-input,
    .action-date-group,
    .action-date-input,
    .action-add-btn {
        width: 100%;
        min-width: 0;
    }

    .action-date-group {
        max-width: none;
    }

    .action-date-label {
        font-size: 16px;
    }

    .action-date-input {
        max-width: none;
        min-height: 34px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .action-add-btn {
        white-space: normal;
        font-size: 16px;
    }
}

/* ── Favorites table ──────────────────────────────────────── */

/* full-width override when viewing a list */
.fav-list-page .results-page {
    max-width: none;
}

.fav-table-wrap {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

/* ── Table meta bar (count + per-page selector) ── */
.fav-table-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.fav-table-meta-count {
    font-size: var(--fs-sm);
    color: var(--muted);
}

.fav-table-meta-count strong {
    color: var(--text);
    font-weight: 600;
}

.fav-table-per-page-form {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    color: var(--muted);
}

.fav-table-per-page-form label {
    font-weight: 500;
    color: var(--text);
}

.fav-table-per-page-form select {
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    font-size: var(--fs-sm);
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: border-color .15s;
}

.fav-table-per-page-form select:focus {
    border-color: var(--accent);
}

.fav-table-exports {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fav-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--muted);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}

.fav-export-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 2px 6px rgba(184,154,106,.18);
}

.fav-export-btn--excel {
    color: #2a7a4f;
    border-color: #b8dcc8;
    background: #f2fbf6;
}

.fav-export-btn--excel:hover {
    border-color: #1d6f42;
    color: #1d6f42;
    background: #e0f5eb;
    box-shadow: 0 2px 6px rgba(29,111,66,.14);
}

.fav-export-btn .icon {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

/* ── Pagination nav ── */
.fav-table-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.fav-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background .15s, color .15s;
    border: 1px solid transparent;
}

.fav-page-btn:hover {
    background: var(--accent-soft);
    border-color: var(--border);
}

.fav-page-btn--active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    pointer-events: none;
}

.fav-page-btn--disabled {
    color: var(--border);
    pointer-events: none;
    cursor: default;
}

.fav-page-ellipsis {
    color: var(--muted);
    font-size: var(--fs-sm);
    padding: 0 4px;
    line-height: 32px;
}

.fav-table-scroll {
    overflow-x: visible;
}

.fav-table-scroll::-webkit-scrollbar {
    display: none;
}

.fav-table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

/* Header */
.fav-table thead tr {
    background: var(--bg);
}

.fav-table thead th {
    border-bottom: 2px solid var(--border);
}

.fav-table th {
    padding: 11px 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

/* Rows */
.fav-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

/* ── Zone 1: identity (#, domain) ── */

/* # col — shrink to content */
.fav-table th:nth-child(1),
.fav-table td:nth-child(1) {
    width: 1px;
    text-align: right;
    padding-left: 16px;
    padding-right: 10px;
    color: var(--muted);
}

/* domain — capped so zone 2 has room */
.fav-table th:nth-child(2),
.fav-table td:nth-child(2) {
    width: 180px;
    max-width: 180px;
    padding-left: 4px;
    padding-right: 16px;
    text-align: left;
    vertical-align: middle;
}

/* ── Zone 2: icon links ── */

/* all icon cols — shrink to content, light tint */
.fav-table th:nth-child(n+3):nth-child(-n+8) {
    padding: 11px 2px;
}
.fav-table td:nth-child(n+3):nth-child(-n+8) {
    padding: 12px 2px;
}

/* First icon col — big left padding = zone 1→2 gap */
.fav-table th:nth-child(3),
.fav-table td:nth-child(3) {
    padding-left: 200px;
}

/* Last icon col — no extra padding, stays in cluster */
.fav-table th:nth-child(8),
.fav-table td:nth-child(8) {
    padding-right: 6px;
}

/* ── Zone 3: actions ── */
.fav-table th:nth-child(9) {
    width: 1px;
    padding: 11px 16px 11px 200px;
}
.fav-table td:nth-child(9) {
    width: 1px;
    padding: 12px 16px 12px 200px;
}

.fav-table tbody tr:last-child td {
    border-bottom: none;
}

.fav-table tbody tr {
    transition: background .12s;
}

.fav-table tbody tr:hover td {
    background: var(--accent-soft);
}

/* Number column */
.fav-table-num {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

/* Company cell — flex wrapper sits inside the td, not on the td itself */
.fav-table-company {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    height: 100%;
}

.fav-table-company span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.fav-table-favicon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* Icon links */
.fav-table-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    transition: background .15s, color .15s, box-shadow .15s;
}

.fav-table-icon:hover {
    background: var(--accent-soft);
    color: var(--accent-text);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.fav-table-icon--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #ccc;
    font-size: 13px;
    font-weight: 300;
}

/* Platform favicons */
.fav-table-platform-icon {
    width: 18px;
    height: 18px;
    display: block;
    border-radius: 4px;
    filter: grayscale(100%) brightness(1.1) opacity(0.45);
    transition: filter .15s;
}

.fav-table-platform-icon--lg {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

a.fav-table-icon:hover .fav-table-platform-icon {
    filter: grayscale(20%) brightness(1.0) opacity(0.85);
}

/* SVG icons in table */
.fav-table .icon {
    width: 18px;
    height: 18px;
    stroke-width: 1.6;
    color: var(--muted);
}

/* Actions cell */
.fav-table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.fav-table-action-form {
    display: contents;
}

.fav-table-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--muted);
    transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
    flex-shrink: 0;
}

.fav-table-btn:hover {
    color: var(--accent-text);
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.fav-table-btn--danger:hover {
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fff1f1;
    box-shadow: none;
}

.fav-table-move-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fav-table-select {
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    max-width: 140px;
    height: 32px;
    transition: border-color .15s, box-shadow .15s;
}

.fav-table-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Move hover dropdown */
.fav-move-wrap {
    position: relative;
    display: inline-flex;
}

.fav-move-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 160px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 6px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .15s, transform .15s;
}

.fav-move-wrap:hover .fav-move-dropdown,
.fav-move-wrap:focus-within .fav-move-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fav-move-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 4px 8px 6px;
    margin: 0;
}

.fav-move-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: var(--fs-sm);
    color: var(--text);
    cursor: pointer;
    transition: background .12s, color .12s;
}

.fav-move-item:hover {
    background: var(--accent-soft);
    color: var(--accent-text);
}

@media (max-width: 768px) {
    .fav-table-scroll {
        overflow-x: auto;
        scrollbar-width: none;
    }
}

/* ── List recommendations ────────────────────────────────────────────────── */

.fav-recommend-section {
    margin-top: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.fav-recommend-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fffdf9 0%, #fff9f2 100%);
}

.fav-recommend-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fav-recommend-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent-text);
    margin-top: 2px;
}

.fav-recommend-section h3 {
    margin: 0 0 3px;
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.fav-recommend-sub {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.fav-recommend-controls {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.fav-recommend-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.fav-recommend-range-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
}

.fav-recommend-range input[type="range"] {
    width: 220px;
    accent-color: var(--accent);
    cursor: pointer;
}

.fav-recommend-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 10px rgba(184,154,106,0.28);
    white-space: nowrap;
}

.fav-recommend-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(184,154,106,0.38);
}

.fav-recommend-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.fav-recommend-body {
    padding: 16px 20px 20px;
}

.fav-recommend-body[hidden] {
    display: none;
}

.fav-recommend-persona {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: rgba(184,154,106,0.06);
    border: 1px solid rgba(184,154,106,0.2);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
}

.fav-recommend-persona[hidden] {
    display: none;
}

.fav-recommend-persona-label {
    font-weight: 700;
    color: var(--accent-text);
    white-space: nowrap;
}

.fav-recommend-persona-text {
    color: var(--text-soft);
    line-height: 1.5;
    word-break: break-word;
}

.fav-recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

/* Individual recommendation card */
.fav-rc-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
}

.fav-rc-card:hover {
    border-color: rgba(184,154,106,0.5);
    box-shadow: 0 4px 16px rgba(184,154,106,0.1);
    transform: translateY(-1px);
}

.fav-rc-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fav-rc-favicon {
    border-radius: 4px;
    flex-shrink: 0;
}

.fav-rc-domain {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-rc-title {
    margin: 0;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fav-rc-desc {
    margin: 0;
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.fav-rc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.fav-rc-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fav-rc-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: var(--text-soft);
    border: 1px solid var(--border);
    background: #fafaf8;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.fav-rc-social:hover {
    color: var(--accent-text);
    border-color: rgba(184,154,106,0.5);
    background: #fff7ee;
}

.fav-rc-social .icon {
    width: 13px;
    height: 13px;
}

.fav-rc-save-btn {
    padding: 5px 12px;
    background: rgba(184,154,106,0.1);
    border: 1px solid rgba(184,154,106,0.35);
    border-radius: 999px;
    color: var(--accent-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.fav-rc-save-btn:hover:not(:disabled) {
    background: rgba(184,154,106,0.18);
    border-color: var(--accent);
}

.fav-rc-save-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.fav-rc-save-btn--saved {
    background: rgba(34,160,107,0.1) !important;
    border-color: rgba(34,160,107,0.4) !important;
    color: #1a8057 !important;
}

.fav-rc-loading {
    display: block;
    padding: 16px 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
    text-align: center;
    font-style: italic;
    grid-column: 1 / -1;
}

.fav-rc-error {
    margin: 0;
    padding: 12px 16px;
    background: rgba(243,235,225,0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-soft);
    font-size: var(--fs-sm);
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .fav-recommend-header {
        flex-direction: column;
    }

    .fav-recommend-controls {
        width: 100%;
    }

    .fav-recommend-range,
    .fav-recommend-range input[type="range"] {
        width: 100%;
    }

    .fav-recommend-btn {
        width: 100%;
        text-align: center;
    }

    .fav-recommend-grid {
        grid-template-columns: 1fr;
    }
}
