/* ======================================================
   InterviewShield · LOKS TECH
   Premium Enterprise SaaS Design System — v4.0
   Theme: Obsidian + Magenta/Violet (logo-aligned)
   All existing class names preserved for backend
   template compatibility.
====================================================== */

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

:root {
    /* ── Core obsidian stack ───────────────────── */
    --ink:           #08030f;
    --ink-2:         #100621;
    --ink-3:         #180a30;
    --ink-4:         #22103f;

    --bg:            #08030f;
    --bg-2:          #100621;
    --bg-3:          #180a30;

    /* ── Surfaces ──────────────────────────────── */
    --surface:       rgba(26, 12, 52, 0.74);
    --surface-2:     rgba(255,255,255,0.035);
    --surface-3:     rgba(255,255,255,0.065);
    --surface-glass: rgba(28, 14, 58, 0.58);

    /* ── Borders ───────────────────────────────── */
    --border:        rgba(216, 180, 254, 0.10);
    --border-2:      rgba(216, 180, 254, 0.18);
    --border-strong: rgba(216, 180, 254, 0.28);

    /* ── Text ──────────────────────────────────── */
    --text:          #f5f0fa;
    --text-2:        rgba(245,240,250,0.74);
    --muted:         rgba(245,240,250,0.48);
    --faint:         rgba(245,240,250,0.30);

    /* ── Brand "Shield" palette (logo-matched) ──── */
    --shield:        #d946ef; /* fuchsia-500 — primary  */
    --shield-bright: #e879f9; /* fuchsia-400 — highlight */
    --shield-deep:   #a21caf; /* fuchsia-700 — pressed  */
    --azure:         #a855f7; /* purple-500  — accent   */
    --azure-deep:    #7c3aed; /* violet-600             */
    --indigo-soft:   #8b5cf6; /* violet-500             */
    --teal:          #c026d3; /* fuchsia-600            */

    /* Legacy variable aliases (templates may reference these) */
    --cyan:          var(--shield-bright);
    --violet:        var(--azure);
    --purple:        var(--azure-deep);
    --pink:          var(--shield);
    --rose:          var(--shield-bright);
    --blue:          var(--azure);
    --indigo:        var(--indigo-soft);

    /* ── Semantic ──────────────────────────────── */
    --danger:        #ef4444;
    --danger-soft:   rgba(239,68,68,0.18);
    --warning:       #f59e0b;
    --warning-soft:  rgba(245,158,11,0.16);
    --success:       #10b981;
    --success-soft:  rgba(16,185,129,0.16);
    --info:          #c026d3;

    /* ── Brand gradients ───────────────────────── */
    --grad-brand:    linear-gradient(135deg, #d946ef 0%, #a855f7 100%);
    --grad-brand-soft: linear-gradient(135deg, rgba(217, 70, 239,0.16) 0%, rgba(168, 85, 247,0.16) 100%);
    --grad-shield:   linear-gradient(135deg, #e879f9 0%, #7c3aed 100%);
    --grad-hot:      linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --grad-cool:     linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
    --grad-danger:   linear-gradient(135deg, #ef4444, #dc2626);
    --grad-ambient:  radial-gradient(ellipse 70% 50% at 8% -10%, rgba(217, 70, 239,0.18) 0%, transparent 55%), radial-gradient(ellipse 70% 50% at 95% 100%, rgba(168, 85, 247,0.20) 0%, transparent 55%);

    /* ── Shadows ───────────────────────────────── */
    --shadow-sm:    0 4px 18px rgba(8, 3, 15, 0.45);
    --shadow:       0 14px 50px rgba(8, 3, 15, 0.50);
    --shadow-lg:    0 32px 90px rgba(8, 3, 15, 0.62);
    --shadow-cyan:  0 18px 50px rgba(217, 70, 239, 0.30); /* legacy alias */
    --shadow-blue:  0 18px 50px rgba(168, 85, 247, 0.28); /* legacy alias */
    --shadow-magenta: 0 18px 50px rgba(217, 70, 239, 0.30);
    --shadow-violet:  0 18px 50px rgba(168, 85, 247, 0.28);
    --shadow-glow:    0 0 60px rgba(217, 70, 239, 0.35);

    /* ── Geometry ──────────────────────────────── */
    --radius-xs:    8px;
    --radius-sm:    12px;
    --radius:       16px;
    --radius-lg:    22px;
    --radius-xl:    30px;

    /* ── Hex grid signature pattern (subtle) ──── */
    --shield-pattern:
        radial-gradient(circle at 1px 1px, rgba(232, 121, 249,0.045) 1px, transparent 1.5px);
}

/* ─────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--grad-ambient), var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

h1, h2, h3, h4 {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.022em;
    color: var(--text);
}

a { text-decoration: none !important; color: inherit; }
p { color: rgba(245, 240, 250, 0.93); margin-bottom: 0; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit !important; }

::selection { background: rgba(232, 121, 249,0.32); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(216, 180, 254,0.18); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(216, 180, 254,0.28); }

/* ─────────────────────────────────────────────────────
   APP CHROME (Navbar + Container)
───────────────────────────────────────────────────── */
.app-body {
    background: var(--grad-ambient), var(--bg);
    background-attachment: fixed;
}

.app-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: rgba(8, 3, 15,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
}

.brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(217, 70, 239,0.30));
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-product {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    background: var(--grad-shield);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-company {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-card-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-cyan);
}

.user-card-mini .mini-label {
    display: block;
    font-size: 0.62rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
}
.user-card-mini strong {
    font-size: 0.86rem;
    color: var(--text);
    font-weight: 600;
}

.app-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 36px 32px 80px;
}

/* ─────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────── */
.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--grad-brand);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 600;
    font-size: 0.94rem;
    cursor: pointer;
    box-shadow: var(--shadow-cyan);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    letter-spacing: -0.005em;
}
.btn-brand:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 22px 60px rgba(217, 70, 239,0.40);
}
.btn-brand:active { transform: translateY(0); }
.btn-brand.small { padding: 10px 18px; font-size: 0.86rem; }
.btn-brand.w-100 { width: 100%; }

.btn-outline-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.04);
    color: var(--text-2) !important;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.86rem;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}
.btn-outline-soft:hover {
    background: rgba(232, 121, 249,0.10);
    color: var(--text) !important;
    border-color: var(--shield-bright);
}

/* ─────────────────────────────────────────────────────
   HERO ROWS + KICKERS
───────────────────────────────────────────────────── */
.hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.hero-row.compact { padding-bottom: 18px; margin-bottom: 22px; }

.hero-row h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 700;
    margin: 6px 0 8px;
}
.hero-row p {
    color: rgba(245, 240, 250, 0.96);
    max-width: 640px;
    font-size: 0.95rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-family: 'Avenir Next', Avenir, sans-serif;

    font-size: 0.82rem;
    color: var(--shield-bright);

    text-transform: none;
    letter-spacing: 0.01em;

    font-weight: 600;
    line-height: 1.4;
}
.section-kicker::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--shield-bright);
    box-shadow: 0 0 12px var(--shield-bright);
}

/* ─────────────────────────────────────────────────────
   STAT GRID
───────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.stat-card {
    position: relative;
    padding: 22px 22px 20px;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--shield-pattern);
    background-size: 18px 18px;
    opacity: 0.7;
    pointer-events: none;
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}
.stat-card span {
    position: relative;
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin-bottom: 8px;
}
.stat-card strong {
    position: relative;
    font-family: 'Manrope', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

/* ─────────────────────────────────────────────────────
   PANEL / TABLE CARDS
───────────────────────────────────────────────────── */
.panel,
.form-panel,
.report-summary-card {
    position: relative;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 26px;
    margin-bottom: 22px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.panel-header h2 {
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0 0 4px;
}
.panel-header p {
    color: var(--text-2);
    font-size: 0.88rem;
    margin: 0;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(232, 121, 249,0.10);
    border: 1px solid rgba(232, 121, 249,0.30);
    color: var(--shield-bright);
    border-radius: 999px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(8, 3, 15,0.45);
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}
.app-table thead {
    background: rgba(24, 10, 48,0.85);
}
.app-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.app-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    font-size: 0.88rem;
    vertical-align: middle;
}
.app-table tbody tr {
    transition: background 0.15s ease;
}
.app-table tbody tr:hover {
    background: rgba(232, 121, 249,0.04);
}
.app-table tbody tr:last-child td { border-bottom: none; }

.title-cell {
    color: var(--text);
    font-weight: 600;
}
.muted-text { color: var(--muted); font-size: 0.82rem; }
.disabled-row { opacity: 0.5; }

/* Person cells with avatars */
.person-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.candidate-avatar,
.person-avatar {
    width: 34px; height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: var(--grad-cool);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(217, 70, 239,0.25);
    flex-shrink: 0;
    text-align: center;
}

.schedule-cell strong {
    display: block;
    color: var(--text);
    font-weight: 600;
    font-size: 0.86rem;
}
.schedule-cell span {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--shield-bright);
    font-size: 0.78rem;
    margin-top: 2px;
}

/* ─────────────────────────────────────────────────────
   STATUS + RISK PILLS
───────────────────────────────────────────────────── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px 11px;
    border-radius: 6px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: capitalize;
    background: rgba(216, 180, 254, 0.08);
    border: 1px solid rgba(216, 180, 254, 0.16);
    color: var(--text-2);
    line-height: 1.4;
}
.status-pill.completed { background: rgba(16, 185, 129, 0.10); border-color: rgba(16, 185, 129, 0.22); color: #86efac; }
.status-pill.progress  { background: rgba(232, 121, 249, 0.10); border-color: rgba(232, 121, 249, 0.22); color: #f0abfc; }
.status-pill.scheduled { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.22); color: #fcd34d; }

.risk-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 6px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid;
    white-space: nowrap;
    line-height: 1.4;
}
.risk-pill.low    { background: rgba(20, 184, 166, 0.10); border-color: rgba(20, 184, 166, 0.22); color: #5eead4; }
.risk-pill.medium { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.22); color: #fcd34d; }
.risk-pill.high   { background: rgba(239, 68, 68, 0.10); border-color: rgba(239, 68, 68, 0.22); color: #fca5a5; }

/* ─────────────────────────────────────────────────────
   TABLE ACTION BUTTONS
───────────────────────────────────────────────────── */
.link-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.table-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    background: rgba(255,255,255,0.05);
    color: var(--text-2);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
}
.table-btn:hover {
    background: rgba(232, 121, 249,0.10);
    border-color: var(--shield-bright);
    color: var(--text);
}
.open-btn,
.invite-btn,
.report-btn {
    background: rgba(232, 121, 249,0.10);
    border-color: rgba(232, 121, 249,0.30);
    color: var(--shield-bright);
}
.copy-btn { background: rgba(139, 92, 246,0.10); border-color: rgba(139, 92, 246,0.32); color: #c4b5fd; }
.panel-invite-btn { background: rgba(192, 38, 211,0.10); border-color: rgba(192, 38, 211,0.32); color: #f0abfc; }
.live-room-btn {
    background: var(--grad-brand);
    border: none;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(217, 70, 239,0.30);
}
.live-room-btn:hover { filter: brightness(1.1); color: #fff !important; }
.danger-btn {
    background: rgba(239,68,68,0.10);
    border-color: rgba(239,68,68,0.32);
    color: #fca5a5;
}
.danger-btn:hover { background: rgba(239,68,68,0.20); color: #fff; }

/* ─────────────────────────────────────────────────────
   EMPTY STATES
───────────────────────────────────────────────────── */
.empty-state {
    padding: 50px 24px;
    text-align: center;
    color: var(--text-2);
}
.empty-state h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.empty-state p { color: var(--muted); font-size: 0.88rem; }

/* ─────────────────────────────────────────────────────
   FORMS
───────────────────────────────────────────────────── */
.form-block,
.form-group-pro {
    margin-bottom: 16px;
}
.form-block label,
.form-group-pro label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control {
    width: 100%;
    padding: 12px 14px;
    background: rgba(8, 3, 15,0.7);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.94rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-control::placeholder { color: var(--faint); }
.form-control:focus {
    outline: none;
    border-color: var(--shield-bright);
    box-shadow: 0 0 0 4px rgba(232, 121, 249,0.16);
}
.form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 6px;
}

.action-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.notice-box {
    padding: 14px 16px;
    background: rgba(232, 121, 249,0.06);
    border: 1px solid rgba(232, 121, 249,0.22);
    border-radius: 12px;
    color: var(--text-2);
    font-size: 0.88rem;
    margin-bottom: 18px;
}
.notice-box strong { color: var(--text); }
.schedule-notice {
    background: rgba(192, 38, 211,0.07);
    border-color: rgba(192, 38, 211,0.28);
}

/* Panel selector cards */
.panel-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}
.panel-check-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-2);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.panel-check-card:hover {
    border-color: var(--shield-bright);
    background: rgba(232, 121, 249,0.06);
}
.panel-check-card input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--shield-bright);
    flex-shrink: 0;
}
.panel-check-card span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.panel-check-card strong { color: var(--text); font-size: 0.92rem; }
.panel-check-card small { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
.panel-check-card:has(input:checked) {
    border-color: var(--shield-bright);
    background: rgba(232, 121, 249,0.10);
    box-shadow: 0 0 0 1px var(--shield-bright);
}

/* ─────────────────────────────────────────────────────
   LOGIN / AUTH SHELL
───────────────────────────────────────────────────── */
.login-body {
    background: var(--grad-ambient), var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
}

.login-brand-side {
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 25% 25%, rgba(232, 121, 249,0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 75%, rgba(168, 85, 247,0.22) 0%, transparent 55%),
        linear-gradient(135deg, rgba(14, 5, 28,0.95), rgba(28, 14, 58,0.95));
    border-right: 1px solid var(--border);
}
.login-brand-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--shield-pattern);
    background-size: 22px 22px;
    opacity: 0.6;
    pointer-events: none;
}

.login-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 26px;
    filter: drop-shadow(0 6px 18px rgba(217, 70, 239,0.40));
    position: relative;
    z-index: 1;
}

.brand-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 7px 14px;
    background: rgba(232, 121, 249,0.12);
    border: 1px solid rgba(232, 121, 249,0.32);
    border-radius: 999px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--shield-bright);
    margin-bottom: 22px;
    font-weight: 600;
}
.brand-badge::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--shield-bright);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--shield-bright);
    animation: pulse-soft 2s infinite;
}
@keyframes pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.login-brand-side h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.login-brand-side p {
    position: relative;
    z-index: 1;
    color: var(--text-2);
    font-size: 1rem;
    max-width: 460px;
    margin-bottom: 28px;
}

.feature-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
}
.feature-list span {
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    color: var(--text-2);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-list span::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--shield-bright);
    border-radius: 2px;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: var(--bg);
    background-image: var(--shield-pattern);
    background-size: 24px 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 36px;
    background: var(--surface-glass);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}
.login-card h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.login-card > p {
    color: var(--text-2);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.forgot-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--shield-bright) !important;
    font-size: 0.86rem;
    font-weight: 500;
    transition: color 0.15s ease;
}
.forgot-link:hover { color: #fff !important; }

.security-note {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-align: center;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    border: 1px solid;
}
.alert-danger { background: var(--danger-soft); border-color: rgba(239,68,68,0.42); color: #fca5a5; }
.alert-success { background: var(--success-soft); border-color: rgba(16,185,129,0.42); color: #6ee7b7; }

.info-box-pro {
    padding: 14px 16px;
    background: rgba(232, 121, 249,0.06);
    border: 1px solid rgba(232, 121, 249,0.22);
    border-radius: 12px;
    color: var(--text-2);
    font-size: 0.88rem;
}

/* ─────────────────────────────────────────────────────
   CANDIDATE START PAGE
───────────────────────────────────────────────────── */
.candidate-body {
    background: var(--grad-ambient), var(--bg);
    min-height: 100vh;
}

.candidate-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.candidate-card {
    width: min(680px, 100%);
    padding: 42px;
    background: var(--surface-glass);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.candidate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--shield-pattern);
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}
.candidate-card > * { position: relative; z-index: 1; }

.candidate-logo {
    height: 44px;
    margin-bottom: 18px;
    filter: drop-shadow(0 6px 18px rgba(217, 70, 239,0.35));
}

.candidate-card h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 8px 0 6px;
}

.candidate-subtitle {
    color: var(--text-2);
    margin-bottom: 18px;
    font-size: 0.95rem;
}
.candidate-subtitle strong { color: var(--shield-bright); font-weight: 600; }

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin: 18px 0 20px;
}
.rules-grid div {
    padding: 11px 13px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-2);
    border-radius: 10px;
    color: var(--text-2);
    font-size: 0.84rem;
    display: flex;
    align-items: flex-start;
    gap: 9px;
}
.rules-grid div::before {
    content: '✓';
    color: var(--shield-bright);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    margin-bottom: 18px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-2);
}
.consent-check input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--shield-bright);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────
   SETTINGS PAGE
───────────────────────────────────────────────────── */
.settings-wrapper { max-width: 1320px; margin: 0 auto; }

.settings-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.settings-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 6px 0 6px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 22px;
}
.settings-card {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    backdrop-filter: blur(14px);
}
.settings-card-header {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.settings-card-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px;
}
.settings-card-header p { color: var(--text-2); font-size: 0.86rem; margin: 0; }

.settings-btn { margin-top: 6px; }

.settings-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    border: 1px solid;
}
.success-alert { background: var(--success-soft); border-color: rgba(16,185,129,0.42); color: #6ee7b7; }
.error-alert { background: var(--danger-soft); border-color: rgba(239,68,68,0.42); color: #fca5a5; }

/* ─────────────────────────────────────────────────────
   REPORT PAGE
───────────────────────────────────────────────────── */
.report-summary-card {
    background:
        radial-gradient(ellipse at 90% 0%, rgba(232, 121, 249,0.15) 0%, transparent 55%),
        var(--surface-glass);
    padding: 30px;
}
.report-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.report-title-row h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 6px;
}
.report-title-row p { color: var(--text-2); font-size: 0.92rem; margin: 0; }

.risk-score-card {
    padding: 16px 22px;
    background: var(--grad-brand);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-cyan);
    min-width: 140px;
}
.risk-score-card span {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}
.risk-score-card strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

.report-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.info-tile {
    padding: 14px 16px;
    background: rgba(8, 3, 15,0.55);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.info-tile span {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 6px;
}
.info-tile strong {
    display: block;
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 600;
    overflow-wrap: break-word;
    word-break: break-all;
    min-width: 0;
}
/* ─────────────────────────────────────────────────────
   CANDIDATE INTERVIEW ROOM (preserves IDs)
───────────────────────────────────────────────────── */
.room-body {
    margin: 0;
    background:
        radial-gradient(ellipse at top left, rgba(217, 70, 239,0.14), transparent 35%),
        radial-gradient(ellipse at bottom right, rgba(168, 85, 247,0.16), transparent 40%),
        #06020d;
    color: #fff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.room-layout {
    display: grid;
    grid-template-rows: 72px 1fr;
    min-height: 100vh;
}

.room-topbar {
    background: rgba(6, 2, 13,0.86);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 12;
}
.room-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.room-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(217, 70, 239,0.32));
}
.room-divider {
    width: 1px; height: 32px;
    background: var(--border-2);
}
.room-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    color: #fff;
}
.room-candidate {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
}
.room-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: rgba(239,68,68,0.14);
    border: 1px solid rgba(239,68,68,0.42);
    color: #fca5a5;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.10em;
}
.live-badge::before {
    content: '';
    width: 7px; height: 7px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
    animation: pulse-soft 1.2s infinite;
}

.btn-end-top {
    background: rgba(239,68,68,0.20);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.45);
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.18s ease;
}
.btn-end-top:hover { background: #dc2626; color: #fff; }

.room-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    padding: 18px 24px 110px;
    align-items: start;
}

.video-panel {
    position: relative;
    min-height: calc(100vh - 240px);
    background: #08030f;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.candidate-main-video {
    width: 100%; height: 100%;
    min-height: calc(100vh - 240px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #08030f;
}
#webcam {
    width: 100%; height: 100%;
    object-fit: cover;
    background: #08030f;
    transform: scaleX(-1);
}

.camera-label {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(6, 2, 13,0.78);
    border: 1px solid var(--border-2);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    backdrop-filter: blur(10px);
}
.red-dot {
    width: 8px; height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
    animation: pulse-soft 1.2s infinite;
}

.hr-remote-video-box {
    position: absolute;
    bottom: 22px;
    right: 22px;
    width: 270px;
    height: 200px;
    background: rgba(8, 3, 15,0.92);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    z-index: 4;
}
.hr-video-label {
    position: absolute;
    top: 10px; left: 10px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.62);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    z-index: 3;
}

.monitor-panel {
    position: sticky;
    top: 88px;
    background: var(--surface-glass);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-xl);
    padding: 22px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}
.monitor-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.monitor-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.84rem;
}
.status-active {
    color: var(--success);
    font-weight: 600;
}
.monitor-status > span:nth-child(2) {
    color: var(--text-2);
    font-size: 0.82rem;
}

/* Warnings list — kept in DOM (used by monitor.js) but visually condensed.
   The actual user-facing detections appear via toast popups (detection_toast.js). */
.warnings-box {
    display: none;
}
.warnings-title { display: none; }
#warningList { list-style: none; padding: 0; margin: 0; display: none; }

.monitor-footer {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.monitor-footer p {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 8px;
}

.btn-end {
    width: 100%;
    background: rgba(239,68,68,0.18);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.42);
    border-radius: 12px;
    padding: 11px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}
.btn-end:hover { background: #dc2626; color: #fff; }

/* ─────────────────────────────────────────────────────
   AI DETECTION TOAST SYSTEM (Google Meet-style)
   Single toast visible, fades in & out, queue-able.
───────────────────────────────────────────────────── */
.detect-toast-wrap {
    position: fixed;
    top: 86px;
    right: 22px;
    z-index: 80;
    pointer-events: none;
    max-width: 380px;
}
.detect-toast {
    background: rgba(16, 6, 33, 0.92);
    border: 1px solid rgba(239,68,68,0.45);
    border-left: 4px solid #ef4444;
    border-radius: 14px;
    padding: 14px 16px;
    color: #fff;
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 60px rgba(8, 3, 15,0.55);
    opacity: 0;
    transform: translateX(20px) scale(0.96);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 280px;
}
.detect-toast.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.detect-toast .toast-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(239,68,68,0.18);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fca5a5;
    font-size: 1.2rem;
}
.detect-toast .toast-body {
    flex: 1;
    min-width: 0;
}
.detect-toast .toast-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    margin: 0 0 3px;
}
.detect-toast .toast-message {
    font-size: 0.82rem;
    color: var(--text-2);
    margin: 0;
    line-height: 1.4;
}
.detect-toast .toast-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    color: var(--muted);
    margin-top: 6px;
    letter-spacing: 0.04em;
}
.detect-toast.warning {
    border-color: rgba(245,158,11,0.50);
    border-left-color: #f59e0b;
}
.detect-toast.warning .toast-icon {
    background: rgba(245,158,11,0.18);
    color: #fcd34d;
}

/* ─────────────────────────────────────────────────────
   LEGACY HR ROOM PANEL OVERRIDES
   (detections panel is no longer shown; toasts replace it)
───────────────────────────────────────────────────── */
.detections-card { display: none !important; }

/* ─────────────────────────────────────────────────────
   LANDING PAGE
───────────────────────────────────────────────────── */
.landing-body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(8, 3, 15,0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}
.landing-nav-links a {
    color: var(--text-2);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.18s ease;
}
.landing-nav-links a:hover { color: var(--text); }

.landing-hero {
    position: relative;
    min-height: 92vh;
    padding: 100px 40px 80px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(217, 70, 239,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 20% 70%, rgba(168, 85, 247,0.22) 0%, transparent 60%),
        var(--bg);
}
.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(232, 121, 249, 0.10) 18%,
            rgba(255, 255, 255, 0.18) 30%,
            rgba(168, 85, 247, 0.16) 44%,
            rgba(217, 70, 239, 0.24) 50%,
            rgba(168, 85, 247, 0.16) 56%,
            rgba(255, 255, 255, 0.16) 70%,
            rgba(232, 121, 249, 0.08) 84%,
            transparent 100%
        );

    
    filter: blur(90px);
    opacity: 0.42;
    animation: heroLightCurtain 8s ease-in-out infinite alternate;
}
.landing-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;

    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(232,121,249,0.22),
            transparent 25%
        ),
        radial-gradient(
            circle at 50% 75%,
            rgba(168,85,247,0.14),
            transparent 35%
        );

    filter: blur(45px);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(232, 121, 249,0.10);
    border: 1px solid rgba(232, 121, 249,0.32);
    border-radius: 999px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--shield-bright);
    margin-bottom: 26px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}
.hero-eyebrow svg { flex-shrink: 0; }

.hero-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.4rem, 5.6vw, 4.8rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
}
.hero-title .accent {
    background: var(--grad-shield);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    color: rgba(245, 240, 250, 0.96);
    max-width: 720px;
    margin: 0 auto 32px;
    line-height: 1.65;
    text-shadow: 0 1px 12px rgba(8, 3, 15, 0.55);
}

.hero-cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-2);
    color: var(--text) !important;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.94rem;
    transition: all 0.18s ease;
}
.btn-ghost:hover {
    background: rgba(232, 121, 249,0.10);
    border-color: var(--shield-bright);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
    flex-wrap: wrap;
}
.hero-stat {
    padding: 6px 32px;
    border-right: 1px solid var(--border);
    text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.hero-stat span {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(245, 240, 250, 0.96);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
}

/* Landing sections */
.landing-section {
    padding: 90px 40px;
    position: relative;
}
.landing-section.alt {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.landing-section-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.section-eyebrow {
    display: block;
    font-family: 'Avenir Next', Avenir, 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--shield-bright);
    margin-bottom: 14px;
    font-weight: 600;
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.1;
    margin-bottom: 16px;
    max-width: 760px;
}

.section-lede {
color: rgba(245, 240, 250, 0.96);
    font-size: 1.04rem;
    max-width: 680px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Problem cards */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.problem-card {
    padding: 26px;
    background: var(--surface-glass);
    border: 1px solid var(--border-2);
    border-left: 3px solid var(--danger);
    border-radius: 18px;
    backdrop-filter: blur(14px);
}
.problem-card h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}
.problem-card p {
    font-size: 0.92rem;
    color: rgba(245, 240, 250, 0.96);
    line-height: 1.55;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.feature-card {
    position: relative;
    padding: 28px;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: 22px;
    backdrop-filter: blur(14px);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 121, 249,0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 30px 70px rgba(8, 3, 15,0.55);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--grad-brand-soft);
    border: 1px solid rgba(232, 121, 249,0.30);
    display: grid;
    place-items: center;
    color: var(--shield-bright);
    margin-bottom: 18px;
    position: relative;
}
.feature-card h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 9px;
    color: #fff;
    position: relative;
}
.feature-card p {
    color: rgba(245, 240, 250, 0.93);
    font-size: 0.97rem;
    font-weight: 450;
    line-height: 1.65;
    position: relative;
}

/* How it works steps */
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    counter-reset: step;
}
.how-step {
    position: relative;
    padding: 24px;
    background: rgba(8, 3, 15,0.65);
    border: 1px solid var(--border-2);
    border-radius: 18px;
    counter-increment: step;
}
.how-step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 18px;
    right: 18px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--shield-bright);
    background: rgba(232, 121, 249,0.12);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(232, 121, 249,0.32);
    font-weight: 600;
    letter-spacing: 0.06em;
}
.how-step h5 {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 4px 0 8px;
    padding-right: 40px;
}
.how-step p {
    color: var(--text-2);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.trust-icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    background: rgba(192, 38, 211,0.14);
    border: 1px solid rgba(192, 38, 211,0.35);
    display: grid;
    place-items: center;
    color: #f0abfc;
    flex-shrink: 0;
}
.trust-item h6 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.03rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
}
.trust-item p {
    font-size: 0.90rem;
    color: rgba(245, 240, 250, 0.93);
    margin: 0;
    line-height: 1.6;
}
@media (max-width: 980px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .trust-grid { grid-template-columns: 1fr; }
}

/* CTA section */
.cta-section {
    padding: 90px 40px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(217, 70, 239,0.22) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--shield-pattern);
    background-size: 26px 26px;
    opacity: 0.6;
    pointer-events: none;
}
.cta-inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.cta-inner h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 18px;
}
.cta-inner p {
    color: rgba(245, 240, 250, 0.96);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 28px;
}

.landing-footer {
    padding: 30px 40px;
    background: var(--ink-2);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.84rem;
}
.landing-footer .brand-area {
    color: var(--text-2);
}
.landing-footer-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* ─────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand-side { padding: 40px 28px; border-right: none; border-bottom: 1px solid var(--border); }
    .login-form-side { padding: 40px 24px; }
    .app-container { padding: 24px 20px 80px; }
    .app-navbar { padding: 12px 20px; flex-wrap: wrap; gap: 12px; }
    .nav-actions { gap: 8px; }
    .user-card-mini { display: none; }
    .room-content { grid-template-columns: 1fr; }
    .monitor-panel { position: relative; top: auto; }
    .hr-remote-video-box { width: 180px; height: 130px; right: 12px; bottom: 12px; }
    .landing-section { padding: 60px 22px; }
    .landing-nav { padding: 14px 22px; }
    .landing-nav-links { display: none; }
    .cta-section { padding: 60px 22px; }
}

@media (max-width: 640px) {
    .hero-row { flex-direction: column; align-items: flex-start; }
    .panel-header { flex-direction: column; gap: 12px; }
    .candidate-card { padding: 28px 22px; }
    .stat-card { padding: 18px; }
    .hero-stats { flex-direction: column; gap: 14px; }
    .hero-stat { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
    .hero-stat:last-child { border-bottom: none; }
    .detect-toast-wrap { left: 10px; right: 10px; top: 78px; max-width: none; }
    .detect-toast { min-width: 0; }
}

/* Hide W3C bootstrap defaults overridden by our system */
.form-control { box-shadow: none !important; }

/* ======================================================
   InterviewShield — Premium UI rescue layer v4.0
   Purpose: make the uploaded premium build visibly animated,
   cleaner, and more enterprise/SaaS-ready while preserving
   backend, route, WebRTC, Socket.IO and email logic.
====================================================== */

html.premium-ui-ready { scroll-behavior: smooth; }
body::before, .landing-body::before, .app-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(circle at 12% 8%, rgba(232, 121, 249,.20), transparent 28%),
        radial-gradient(circle at 86% 14%, rgba(168, 85, 247,.18), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(192, 38, 211,.12), transparent 38%);
}
body::after, .landing-body::after, .app-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: .42;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 20%, black, transparent 72%);
}

/* Animated reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px) scale(.985);
    transition: opacity .72s cubic-bezier(.2,.8,.2,1), transform .72s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* Public landing: Talview-level original hero presentation */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(8, 3, 15,.76) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.landing-hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.landing-hero::before {
    content: "";
    position: absolute;
    inset: -25%;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 10%, rgba(217, 70, 239, 0.16) 35%, transparent 62%),
        linear-gradient(240deg, transparent 12%, rgba(168, 85, 247, 0.14) 42%, transparent 70%),
        radial-gradient(ellipse at 72% 28%, rgba(232, 121, 249, 0.14), transparent 42%);
    filter: blur(70px);
    opacity: 0.75;
    animation: auroraFlow 16s ease-in-out infinite alternate;
}

@keyframes auroraFlow {
    0% {
        transform: translate3d(-2%, 1%, 0) scale(1);
        opacity: 0.55;
    }
    50% {
        transform: translate3d(3%, -2%, 0) scale(1.08);
        opacity: 0.85;
    }
    100% {
        transform: translate3d(-1%, 3%, 0) scale(0.98);
        opacity: 0.65;
    }
}

.landing-hero::after {
    content: "LOKS TECH";
    position: absolute;
    right: 6vw;
    bottom: 10vh;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    letter-spacing: -.08em;
    color: rgba(255,255,255,.026);
    pointer-events: none;
}
@keyframes shieldOrbit { to { transform: rotate(360deg); } }
.hero-inner {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    position: relative;
    z-index: 1;
}
.hero-title { letter-spacing: -.055em; }
.hero-sub { max-width: 650px; }
.hero-cta-row { flex-wrap: wrap; }
.btn-brand, .btn-ghost, .btn-outline-soft, .table-btn {
    position: relative;
    overflow: hidden;
}
.btn-brand::after, .table-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.28) 45%, transparent 60%);
    transform: translateX(-120%);
    transition: transform .7s ease;
}
.btn-brand:hover::after, .table-btn:hover::after { transform: translateX(120%); }
.hero-product-visual {
    min-height: 520px;
    position: relative;
    display: grid;
    place-items: center;
    perspective: 1200px;
}
.product-shell {
    width: min(520px, 100%);
    border-radius: 30px;
    padding: 18px;
    background: linear-gradient(145deg, rgba(20, 8, 42,.92), rgba(10, 4, 20,.78));
    border: 1px solid rgba(216, 180, 254,.18);
    box-shadow: 0 34px 110px rgba(0,0,0,.62), 0 0 80px rgba(232, 121, 249,.10) inset;
    backdrop-filter: blur(26px);
    transform: rotateY(-7deg) rotateX(5deg);
    animation: productFloat 5.2s ease-in-out infinite;
    position: relative;
}
.product-shell::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(232, 121, 249,.55), transparent 36%, rgba(168, 85, 247,.48));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
@keyframes productFloat { 0%,100% { transform: rotateY(-7deg) rotateX(5deg) translateY(0); } 50% { transform: rotateY(-4deg) rotateX(4deg) translateY(-14px); } }
.product-shell-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.window-dots { display: flex; gap: 7px; }
.window-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.window-dots span:nth-child(1) { background: #ef4444; } .window-dots span:nth-child(2) { background: #f59e0b; } .window-dots span:nth-child(3) { background: #10b981; }
.secure-pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .68rem;
    color: #f0abfc;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(232, 121, 249,.10);
    border: 1px solid rgba(232, 121, 249,.24);
}
.product-grid-preview { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 14px; }
.candidate-preview {
    height: 300px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(145deg, rgba(232, 121, 249,.18), transparent 38%),
        radial-gradient(circle at 50% 34%, rgba(255,255,255,.18), transparent 12%),
        #0e0420;
    border: 1px solid rgba(232, 121, 249,.20);
}
.candidate-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 62%, rgba(0,0,0,.55));
}
.preview-scan {
    position: absolute;
    left: 8%; right: 8%; top: 16%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e879f9, transparent);
    box-shadow: 0 0 22px #e879f9;
    z-index: 2;
    animation: scanLine 2.4s ease-in-out infinite;
}
@keyframes scanLine { 0%,100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(180px); opacity: 1; } }
.face-frame {
    position: absolute;
    width: 132px;
    height: 150px;
    border: 2px solid rgba(232, 121, 249,.80);
    border-radius: 48% 48% 42% 42%;
    left: 50%; top: 43%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 28px rgba(232, 121, 249,.24);
}
.face-frame span { position: absolute; inset: 18px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); }
.preview-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(8, 3, 15, 0.85);
    color: #f5edff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.18);
    white-space: nowrap;
}
.side-preview { display: grid; gap: 12px; }
.mini-tile {
    border-radius: 18px;
    min-height: 92px;
    display: flex;
    align-items: end;
    padding: 12px;
    font-size: .75rem;
    font-weight: 900;
    color: #fff;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
    animation: tilePulse 3.8s ease-in-out infinite;
}
.panel-tile { animation-delay: .5s; } .panel-tile.delay { animation-delay: 1.1s; }
@keyframes tilePulse { 0%,100% { box-shadow: inset 0 0 0 1px rgba(232, 121, 249,.04); } 50% { box-shadow: inset 0 0 0 1px rgba(232, 121, 249,.20), 0 18px 34px rgba(232, 121, 249,.09); } }
.demo-toast-stack { position: absolute; left: -38px; bottom: 42px; width: 260px; pointer-events: none; }
.demo-alert {
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(22px) scale(.94);
    transition: opacity .34s ease, transform .34s ease;
    padding: 13px 14px;
    border-radius: 18px;
    background: rgba(16, 6, 33,.86);
    border: 1px solid rgba(239,68,68,.30);
    border-left: 4px solid #ef4444;
    box-shadow: 0 20px 60px rgba(0,0,0,.44);
    backdrop-filter: blur(18px);
}
.demo-alert.active { opacity: 1; transform: translateY(0) scale(1); }
.demo-alert strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 0.82rem;
    margin-bottom: 3px;
    white-space: nowrap;
}
.demo-alert span {
    font-family: 'Inter', sans-serif;
    color: rgba(241, 245, 251, 0.82);
    font-size: 0.73rem;
    line-height: 1.4;
    white-space: nowrap;
}
.orbit-ring { position:absolute; border-radius: 50%; border:1px solid rgba(232, 121, 249,.14); }
.ring-one { width: 560px; height: 560px; animation: slowSpin 30s linear infinite; }
.ring-two { width: 420px; height: 420px; border-color: rgba(168, 85, 247,.18); animation: slowSpin 22s linear infinite reverse; }
@keyframes slowSpin { to { transform: rotate(360deg); } }

/* App polish */
.app-navbar, .panel, .stat-card, .auth-card, .candidate-card, .form-panel, .settings-card, .users-panel, .report-card {
    backdrop-filter: blur(22px);
}
.app-navbar { box-shadow: 0 14px 50px rgba(0,0,0,.22); }
.brand-logo, .room-logo, .logo { filter: drop-shadow(0 10px 24px rgba(232, 121, 249,.12)); }
.hero-row, .panel-header { gap: 22px; }
.hero-row h1, .section-title, .login-title, .room-title { text-wrap: balance; }
.stats-grid { gap: 18px; }
.stat-card { position:relative; overflow:hidden; border-color: rgba(232, 121, 249,.14) !important; }
.stat-card::after {
    content:""; position:absolute; right:-30px; top:-30px; width:100px; height:100px; border-radius:50%; background:rgba(232, 121, 249,.08);
}
.table-wrap { border-radius: 22px; overflow: auto; }
.app-table { border-collapse: separate; border-spacing: 0 10px; }
.app-table thead th { padding: 14px 16px !important; color: rgba(241,245,251,.60) !important; white-space: nowrap; }
.app-table tbody tr { background: rgba(255,255,255,.028); box-shadow: 0 16px 34px rgba(0,0,0,.16); }
.app-table tbody td { padding: 16px !important; vertical-align: middle !important; border-top: 1px solid rgba(216, 180, 254,.08); border-bottom: 1px solid rgba(216, 180, 254,.08); }
.app-table tbody td:first-child { border-left: 1px solid rgba(216, 180, 254,.08); border-radius: 16px 0 0 16px; }
.app-table tbody td:last-child { border-right: 1px solid rgba(216, 180, 254,.08); border-radius: 0 16px 16px 0; }
.link-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-btn { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.form-control, .form-select, input, select, textarea { transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.form-control:focus, .form-select:focus, input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(232, 121, 249,.12) !important; border-color: rgba(232, 121, 249,.55) !important; }

/* Meeting room rescue: premium layout + visible toast-mode panel */
.room-body, .live-room { background-color: #030713 !important; }
.room-topbar, .topbar { border-bottom-color: rgba(232, 121, 249,.20) !important; }
.room-content, .meeting-board { position: relative; }
.video-panel, .panel-card, .main-admin-card, .candidate-card, .monitor-panel, .detections-card {
    border: 1px solid rgba(216, 180, 254,.12) !important;
    box-shadow: 0 28px 80px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.04) !important;
}
.video-box, .candidate-main-video, .candidate-preview { box-shadow: inset 0 0 0 1px rgba(232, 121, 249,.12); }
.video-box video, .candidate-main-video video, #webcam, #candidateVideo, #localVideo { background: #020617; }
.control-bar, .candidate-control-bar { animation: controlLift .55s ease both; }
@keyframes controlLift { from { opacity:0; transform: translate(-50%, 18px); } to { opacity:1; transform: translate(-50%, 0); } }
.meeting-control-btn, .candidate-control-btn {
    position: relative;
    isolation: isolate;
}
.meeting-control-btn::before, .candidate-control-btn::before {
    content:""; position:absolute; inset:-5px; border-radius:inherit; background:rgba(232, 121, 249,.18); filter:blur(10px); opacity:0; transition:opacity .2s ease; z-index:-1;
}
.meeting-control-btn:hover::before, .candidate-control-btn:hover::before { opacity:1; }
.record-control.recording { animation: recordPulse 1.2s ease-in-out infinite; }
@keyframes recordPulse { 0%,100% { box-shadow:0 0 0 0 rgba(239,68,68,.55); } 50% { box-shadow:0 0 0 12px rgba(239,68,68,0); } }

/* Detection toasts: bolder animation, queue-ready, no live list clutter */
.detect-toast-wrap {
    top: auto !important;
    right: auto !important;
    left: 50% !important;
    bottom: 112px !important;
    transform: translateX(-50%);
    z-index: 9999 !important;
    max-width: min(440px, calc(100vw - 28px)) !important;
}
.detect-toast {
    min-width: min(420px, calc(100vw - 28px)) !important;
    border-radius: 22px !important;
    padding: 16px 18px !important;
    background: linear-gradient(135deg, rgba(8,13,36,.90), rgba(10,20,52,.82)) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-left: 5px solid #ef4444 !important;
    box-shadow: 0 26px 80px rgba(0,0,0,.52), 0 0 60px rgba(239,68,68,.10) !important;
    transform: translateY(28px) scale(.94) !important;
    transition: opacity .34s cubic-bezier(.2,.8,.2,1), transform .34s cubic-bezier(.2,.8,.2,1) !important;
}
.detect-toast.is-visible { transform: translateY(0) scale(1) !important; }
.detect-toast .toast-icon { border-radius: 14px !important; background: rgba(239,68,68,.18) !important; }
.detect-toast.warning { border-left-color: #f59e0b !important; box-shadow: 0 26px 80px rgba(0,0,0,.52), 0 0 60px rgba(245,158,11,.09) !important; }
#warningList.hidden-detection-log, .hidden-detection-log { display: none !important; }
.warnings-box #warningList { display: none !important; }
.detections-card.toast-mode-panel { display: flex !important; flex-direction: column; gap: 16px; }
.toast-mode-card, .toast-mode-panel { background: linear-gradient(145deg, rgba(8,15,40,.82), rgba(10, 4, 20,.62)) !important; }
.toast-preview-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid rgba(232, 121, 249,.18);
    background: rgba(232, 121, 249,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.toast-preview-card.wide { padding: 16px; }
.toast-preview-icon {
    width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
    background: rgba(245,158,11,.16); color: #fcd34d; flex: 0 0 auto;
}
.toast-preview-card strong { color: #fff; display: block; margin-bottom: 4px; }
.toast-preview-card p { margin: 0; color: rgba(241,245,251,.66); line-height: 1.45; font-size: .85rem; }
.mini-policy-list { display:flex; flex-wrap:wrap; gap:8px; }
.mini-policy-list span { padding:7px 10px; border-radius:999px; background:rgba(255,255,255,.055); color:rgba(241,245,251,.72); font-size:.72rem; font-weight:700; border:1px solid rgba(255,255,255,.08); }

/* Room layout responsiveness */
@media (max-width: 1100px) {
    .hero-inner { grid-template-columns: 1fr; padding-top: 44px; }
    .hero-product-visual { min-height: 430px; }
    .product-shell { transform: none; animation: productFloatMobile 5s ease-in-out infinite; }
    @keyframes productFloatMobile { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
    .demo-toast-stack { left: 18px; bottom: 24px; }
}
@media (max-width: 760px) {
    .hero-inner { width: min(100% - 28px, 1220px); }
    .product-grid-preview { grid-template-columns: 1fr; }
    .side-preview { grid-template-columns: repeat(3, 1fr); }
    .mini-tile { min-height: 72px; }
    .candidate-preview { height: 240px; }
    .demo-toast-stack { position: relative; left: 0; bottom: auto; width: 100%; margin-top: 14px; }
    .demo-alert { position: relative; display: none; }
    .demo-alert.active { display: block; }
    .detect-toast-wrap { bottom: 92px !important; }
    .app-table { min-width: 980px; }
    .dashboard-table-wrap { -webkit-overflow-scrolling: touch; }
    .dashboard-table { min-width: 900px; }
    .dashboard-table th:nth-child(2),
    .dashboard-table td:nth-child(2) { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* ─── Interactive AI cursor companion for landing hero ─── */
.ai-orbit-companion {
    --ai-tilt-x: 0deg;
    --ai-tilt-y: 0deg;
    --ai-eye-x: 0px;
    --ai-eye-y: 0px;
    --ai-glow-x: 50%;
    --ai-glow-y: 50%;
    position: absolute;
    top: 34px;
    right: -10px;
    width: 184px;
    height: 214px;
    z-index: 5;
    display: grid;
    place-items: center;
    pointer-events: none;
    transform-style: preserve-3d;
    animation: aiCompanionFloat 5.8s ease-in-out infinite;
}
.ai-companion-glow {
    position: absolute;
    inset: 12px 8px 4px;
    border-radius: 42% 42% 48% 48%;
    background:
        radial-gradient(circle at var(--ai-glow-x) var(--ai-glow-y), rgba(103,232,249,.34), transparent 34%),
        radial-gradient(circle at 50% 80%, rgba(168, 85, 247,.30), transparent 54%);
    filter: blur(18px);
    opacity: .9;
    animation: aiGlowPulse 3.6s ease-in-out infinite;
}
.ai-companion-head {
    position: relative;
    width: 132px;
    height: 150px;
    border-radius: 42px 42px 52px 52px;
    background:
        linear-gradient(145deg, rgba(241,245,251,.16), rgba(232, 121, 249,.06) 36%, rgba(16, 6, 33,.92) 100%),
        radial-gradient(circle at 30% 22%, rgba(255,255,255,.22), transparent 18%);
    border: 1px solid rgba(216, 180, 254,.28);
    box-shadow:
        0 24px 70px rgba(0,0,0,.46),
        inset 0 1px 0 rgba(255,255,255,.22),
        inset 0 -18px 36px rgba(0,0,0,.28),
        0 0 34px rgba(232, 121, 249,.16);
    transform: perspective(600px) rotateX(var(--ai-tilt-y)) rotateY(var(--ai-tilt-x));
    transition: transform .12s ease-out;
    overflow: visible;
}
.ai-companion-head::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 34px 34px 44px 44px;
    border: 1px solid rgba(255,255,255,.055);
    background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 44%);
    pointer-events: none;
}
.ai-companion-antenna {
    position: absolute;
    left: 50%;
    top: -32px;
    width: 2px;
    height: 32px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, rgba(103,232,249,.72));
}
.ai-companion-antenna span {
    position: absolute;
    left: 50%;
    top: -8px;
    width: 16px;
    height: 16px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #f0abfc;
    box-shadow: 0 0 18px rgba(103,232,249,.95), 0 0 38px rgba(232, 121, 249,.45);
    animation: aiAntennaPing 1.9s ease-in-out infinite;
}
.ai-companion-face {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 38px;
    height: 74px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(232, 121, 249,.14), transparent 42%),
        rgba(3,7,22,.72);
    border: 1px solid rgba(103,232,249,.22);
    box-shadow: inset 0 0 26px rgba(232, 121, 249,.08);
    overflow: hidden;
}
.ai-companion-face::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg, rgba(103,232,249,.05) 0 1px, transparent 1px 7px);
    opacity: .45;
    animation: aiFaceScan 2.8s linear infinite;
}
.ai-companion-brow {
    position: absolute;
    left: 25px;
    right: 25px;
    top: 14px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(103,232,249,.92), transparent);
    box-shadow: 0 0 12px rgba(103,232,249,.48);
}
.ai-companion-eyes {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}
.ai-eye {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(103,232,249,.18), rgba(168, 85, 247,.08));
    border: 1px solid rgba(103,232,249,.34);
    box-shadow: inset 0 0 16px rgba(232, 121, 249,.14), 0 0 10px rgba(232, 121, 249,.18);
    animation: aiBlink 5.2s ease-in-out infinite;
}
.ai-eye i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e0fbff;
    box-shadow: 0 0 10px #f0abfc, 0 0 22px rgba(232, 121, 249,.58);
    transform: translate(var(--ai-eye-x), var(--ai-eye-y));
    transition: transform .09s ease-out;
}
.ai-companion-mouth {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 15px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(232, 121, 249,.22), rgba(103,232,249,.92), rgba(232, 121, 249,.22));
    box-shadow: 0 0 14px rgba(103,232,249,.42);
    animation: aiMouthPulse 2.4s ease-in-out infinite;
}
.ai-companion-chip {
    position: absolute;
    top: 66px;
    width: 12px;
    height: 36px;
    border-radius: 999px;
    background: rgba(232, 121, 249,.16);
    border: 1px solid rgba(103,232,249,.22);
    box-shadow: inset 0 0 14px rgba(232, 121, 249,.12);
}
.ai-companion-chip.left { left: -8px; }
.ai-companion-chip.right { right: -8px; }
.ai-companion-status {
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(8, 3, 15,.74);
    border: 1px solid rgba(103,232,249,.20);
    color: rgba(241,245,251,.76);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .02em;
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 34px rgba(0,0,0,.32);
}
.ai-companion-status .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34,197,94,.9);
}
@keyframes aiCompanionFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}
@keyframes aiGlowPulse {
    0%, 100% { opacity: .58; transform: scale(.96); }
    50% { opacity: 1; transform: scale(1.05); }
}
@keyframes aiAntennaPing {
    0%, 100% { transform: translateX(-50%) scale(.88); opacity: .78; }
    50% { transform: translateX(-50%) scale(1.18); opacity: 1; }
}
@keyframes aiFaceScan {
    to { transform: translateY(7px); }
}
@keyframes aiBlink {
    0%, 88%, 100% { transform: scaleY(1); }
    91%, 94% { transform: scaleY(.14); }
}
@keyframes aiMouthPulse {
    0%, 100% { width: auto; opacity: .66; }
    50% { opacity: 1; filter: brightness(1.25); }
}

@media (max-width: 1100px) {
    .ai-orbit-companion {
        top: 8px;
        right: 24px;
        transform: scale(.86);
        transform-origin: top right;
    }
}
@media (max-width: 760px) {
    .ai-orbit-companion {
        position: relative;
        top: auto;
        right: auto;
        margin: 0 auto 18px;
        width: 172px;
        height: 192px;
        transform: scale(.82);
        transform-origin: center;
    }
    .ai-companion-head { transition-duration: .28s; }
}

/* =================================================================
   PREMIUM ANIMATION LAYER  · v4.0
   Obsidian + Magenta theme — added on top of existing rules.
   All effects respect prefers-reduced-motion.
================================================================= */

/* Animated ambient mesh — slow drifting fuchsia/violet glow behind everything */
body::before {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 15% 20%, rgba(217, 70, 239, 0.16), transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 80%, rgba(168, 85, 247, 0.16), transparent 60%),
        radial-gradient(ellipse 40% 35% at 50% 50%, rgba(139, 92, 246, 0.10), transparent 60%);
    filter: blur(40px);
    animation: meshDrift 22s ease-in-out infinite alternate;
}

@keyframes meshDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1);    opacity: 0.85; }
    50%  { transform: translate3d(4%, -3%, 0) scale(1.08); opacity: 1; }
    100% { transform: translate3d(-3%, 4%, 0) scale(0.96); opacity: 0.78; }
}

/* Faint moving noise grain — gives the dark UI depth without distracting */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(232, 121, 249, 0.035) 1px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.6;
    animation: grainShift 18s linear infinite;
}

@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(24px, 24px); }
}

/* ── Logo: pulsing magenta aura + hover lift ────────────────── */
.brand-logo {
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1),
                filter 0.4s ease;
    animation: logoAura 3.6s ease-in-out infinite;
}

@keyframes logoAura {
    0%, 100% { filter: drop-shadow(0 4px 12px rgba(217, 70, 239, 0.30))
                       drop-shadow(0 0 18px rgba(168, 85, 247, 0.15)); }
    50%      { filter: drop-shadow(0 4px 16px rgba(232, 121, 249, 0.55))
                       drop-shadow(0 0 28px rgba(217, 70, 239, 0.30)); }
}

.brand-area:hover .brand-logo {
    transform: scale(1.06) rotate(-2deg);
}

/* ── Brand product text: shimmering gradient sweep ──────────── */
.brand-product {
    background: linear-gradient(110deg,
        #e879f9 0%,
        #f0abfc 25%,
        #ffffff 45%,
        #f0abfc 65%,
        #a855f7 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brandShimmer 6s ease-in-out infinite;
}

@keyframes brandShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ── Navbar: subtle slide-in on load ────────────────────────── */
.app-navbar,
.landing-nav {
    animation: navSlideIn 0.7s cubic-bezier(.2,.8,.2,1) both;
}

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

/* ── Main container: fade-up entrance after nav ─────────────── */
.app-container {
    animation: contentRise 0.85s cubic-bezier(.2,.8,.2,1) 0.15s both;
}

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

/* ── Buttons: shine sweep on hover ──────────────────────────── */
.btn-cta, .cta-primary, .btn-outline-soft, .panel-action-btn,
.copy-btn, .panel-invite-btn, .report-btn, .nav-cta {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1),
                box-shadow 0.25s ease,
                background 0.25s ease,
                border-color 0.25s ease,
                color 0.25s ease;
}

.btn-cta::after, .cta-primary::after, .btn-outline-soft::after,
.panel-action-btn::after, .report-btn::after, .nav-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 45%,
        rgba(232, 121, 249, 0.25) 55%,
        transparent 100%);
    transform: skewX(-22deg);
    pointer-events: none;
    transition: left 0.65s cubic-bezier(.2,.8,.2,1);
}

.btn-cta:hover::after, .cta-primary:hover::after, .btn-outline-soft:hover::after,
.panel-action-btn:hover::after, .report-btn:hover::after, .nav-cta:hover::after {
    left: 140%;
}

.btn-cta:hover, .cta-primary:hover, .nav-cta:hover, .report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(217, 70, 239, 0.42),
                0 0 0 1px rgba(232, 121, 249, 0.35) inset;
}

.btn-outline-soft:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 121, 249, 0.45);
    box-shadow: 0 8px 22px rgba(217, 70, 239, 0.25);
}

/* ── Card hover: lift + magenta edge glow ───────────────────── */
.feature-card, .problem-card, .stat-card, .metric-card,
.panel, .candidate-card, .auth-card, .how-step, .trust-item {
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1),
                box-shadow 0.35s ease,
                border-color 0.35s ease,
                background 0.35s ease;
    will-change: transform;
}

.feature-card:hover, .problem-card:hover, .stat-card:hover, .metric-card:hover,
.candidate-card:hover, .how-step:hover, .trust-item:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 121, 249, 0.32);
    box-shadow: 0 24px 60px rgba(8, 3, 15, 0.55),
                0 0 0 1px rgba(217, 70, 239, 0.22) inset,
                0 12px 40px rgba(217, 70, 239, 0.18);
}

/* ── Subtle gradient ring that rotates around cards on hover ─ */
.feature-card, .stat-card, .metric-card {
    position: relative;
}

.feature-card::before, .stat-card::before, .metric-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from 0deg,
        transparent 0deg,
        rgba(217, 70, 239, 0.45) 60deg,
        rgba(168, 85, 247, 0.45) 120deg,
        transparent 200deg,
        transparent 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    animation: ringSpin 6s linear infinite;
}

.feature-card:hover::before, .stat-card:hover::before, .metric-card:hover::before {
    opacity: 1;
}

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

/* ── Nav links: underline draw on hover ─────────────────────── */
.landing-nav-links a {
    position: relative;
    transition: color 0.25s ease;
}

.landing-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: linear-gradient(90deg, #d946ef, #a855f7);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
    border-radius: 2px;
}

.landing-nav-links a:hover::after {
    transform: scaleX(1);
}

/* ── Avatar pulse for active user chip ──────────────────────── */
.user-avatar {
    position: relative;
}

.user-avatar::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 1px solid rgba(232, 121, 249, 0.6);
    opacity: 0;
    animation: avatarRing 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes avatarRing {
    0%   { opacity: 0.6; transform: scale(0.92); }
    100% { opacity: 0;   transform: scale(1.35); }
}

/* ── Enhanced reveal-on-scroll: slight scale + glow flash ───── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    filter: blur(4px);
    transition: opacity 0.85s cubic-bezier(.2,.8,.2,1),
                transform 0.85s cubic-bezier(.2,.8,.2,1),
                filter 0.85s cubic-bezier(.2,.8,.2,1),
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* ── Form inputs: focus ring with violet glow ───────────────── */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(232, 121, 249, 0.55) !important;
    box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.18),
                0 8px 24px rgba(168, 85, 247, 0.22) !important;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

/* ── Pulsing magenta dot for "live" or status indicators ────── */
.live-dot, .recording-dot, .status-pulse {
    position: relative;
}

.live-dot::before, .recording-dot::before, .status-pulse::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(217, 70, 239, 0.55);
    animation: livePulse 1.6s ease-out infinite;
    z-index: -1;
}

@keyframes livePulse {
    0%   { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(2.2); opacity: 0;   }
}

/* ── Scrollbar: magenta themed ──────────────────────────────── */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(217, 70, 239, 0.4), rgba(168, 85, 247, 0.4)) !important;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(232, 121, 249, 0.6), rgba(168, 85, 247, 0.6)) !important;
}

::selection {
    background: rgba(217, 70, 239, 0.35);
    color: #fff;
}

/* ── Hero headline: subtle gradient text accent ─────────────── */
.hero-row h1, .hero-title {
    position: relative;
}

.hero-row h1::after, .hero-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 14px;
    border-radius: 99px;
    background: linear-gradient(90deg, #d946ef, #a855f7, transparent);
    animation: accentBar 2.2s ease-out 0.4s both;
}

@keyframes accentBar {
    from { width: 0;    opacity: 0; }
    to   { width: 64px; opacity: 1; }
}

/* ── Staggered fade for groups of items (used by Bootstrap rows) ── */
.row > [class*="col-"] {
    animation: colFade 0.6s cubic-bezier(.2,.8,.2,1) both;
}

.row > [class*="col-"]:nth-child(1) { animation-delay: 0.05s; }
.row > [class*="col-"]:nth-child(2) { animation-delay: 0.12s; }
.row > [class*="col-"]:nth-child(3) { animation-delay: 0.19s; }
.row > [class*="col-"]:nth-child(4) { animation-delay: 0.26s; }
.row > [class*="col-"]:nth-child(5) { animation-delay: 0.33s; }
.row > [class*="col-"]:nth-child(6) { animation-delay: 0.40s; }

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

/* ── Reduced-motion safety net ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .brand-logo,
    .brand-product,
    .app-navbar,
    .landing-nav,
    .app-container,
    .row > [class*="col-"],
    .user-avatar::after,
    .live-dot::before,
    .recording-dot::before,
    .status-pulse::before,
    .feature-card::before,
    .stat-card::before,
    .metric-card::before {
        animation: none !important;
    }
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}


/* SaaS signup + panel invite polish */
.auth-subtitle {
    color: var(--muted, #94a3b8);
    margin-bottom: 22px;
    line-height: 1.55;
}

.auth-card .settings-alert {
    margin-bottom: 16px;
}

.security-note {
    margin-top: 18px;
    color: var(--muted, #94a3b8);
    font-size: .82rem;
    text-align: center;
}

.disabled-row {
    opacity: .58;
}

.notice-box a {
    text-decoration: none;
    font-weight: 800;
}


/* Zig-zag workflow animation */
.how-zigzag-stage {
    position: relative;
    margin-top: 36px;
    min-height: 980px;
}

.how-zigzag-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.how-zigzag-track,
.how-zigzag-progress {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.how-zigzag-track {
    stroke: rgba(148, 163, 184, 0.14);
    stroke-width: 16;
}

.how-zigzag-progress {
    stroke: url(#howFlowGradient);
    stroke-width: 9;
    filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.18)) drop-shadow(0 0 28px rgba(236, 72, 153, 0.14));
    stroke-dasharray: 2200;
    stroke-dashoffset: 2200;
}

.how-zigzag-progress {
    stroke-dashoffset: var(--how-flow-offset, 2200);
    transition: stroke-dashoffset 80ms linear;
}

.how-zigzag-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(5, 170px);
    gap: 24px;
    min-height: 980px;
    counter-reset: none;
}

.zigzag-card {
    position: relative;
    max-width: 360px;
    padding: 24px 24px 22px;
    background: linear-gradient(180deg, rgba(14, 9, 24, 0.88), rgba(8, 6, 18, 0.82));
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: opacity .55s ease, transform .55s ease, border-color .35s ease, box-shadow .35s ease;
    overflow: hidden;
}

.zigzag-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 42%), radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.10), transparent 48%);
    pointer-events: none;
}

.zigzag-card::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22d3ee, #ec4899);
    box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.08), 0 0 26px rgba(34, 211, 238, 0.28);
    top: 50%;
    transform: translateY(-50%);
}

.step-left { grid-column: 1 / span 5; justify-self: start; }
.step-right { grid-column: 8 / span 5; justify-self: end; }
.step-center { grid-column: 4 / span 6; justify-self: center; }
.step-left::after { right: -35px; }
.step-right::after { left: -35px; }
.step-center::after { left: 50%; top: -22px; transform: translateX(-50%); }

.how-zigzag-grid .how-step:nth-child(1) { grid-row: 1; align-self: start; }
.how-zigzag-grid .how-step:nth-child(2) { grid-row: 2; align-self: center; }
.how-zigzag-grid .how-step:nth-child(3) { grid-row: 3; align-self: center; }
.how-zigzag-grid .how-step:nth-child(4) { grid-row: 4; align-self: center; }
.how-zigzag-grid .how-step:nth-child(5) { grid-row: 5; align-self: end; }

.how-step.is-active.zigzag-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.how-step.is-active.zigzag-card:hover {
    border-color: rgba(34, 211, 238, 0.34);
    box-shadow: 0 22px 56px rgba(2, 6, 23, 0.30);
    transform: translateY(-4px);
}

.zigzag-step-pill {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(232, 121, 249, 0.24);
    background: rgba(232, 121, 249, 0.10);
    color: #f5d0fe;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.zigzag-card h5,
.zigzag-card p {
    position: relative;
    z-index: 1;
}

.zigzag-card h5 {
    padding-right: 0;
    margin-top: 0;
    font-size: 1.04rem;
}

.zigzag-card p {
    font-size: 0.97rem;
    font-weight: 450;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .how-zigzag-stage {
        min-height: auto;
    }

    .how-zigzag-svg {
        display: none;
    }

    .how-zigzag-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: auto;
        gap: 16px;
    }

    .step-left,
    .step-right,
    .step-center {
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
        max-width: 100%;
    }

    .zigzag-card {
        opacity: 1;
        transform: none;
    }

    .zigzag-card::after {
        left: auto;
        right: 18px;
        top: 18px;
        transform: none;
        width: 10px;
        height: 10px;
        box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.08);
    }
}


/* Scroll-linked zig-zag workflow behavior */
.how-zigzag-stage.scroll-linked .how-zigzag-progress {
    stroke-dasharray: var(--how-flow-length, 2200);
    stroke-dashoffset: var(--how-flow-offset, 2200);
}

.how-zigzag-stage.scroll-linked .zigzag-card {
    opacity: calc(0.2 + (var(--step-visible, 0) * 0.8));
    transform: translateY(calc(30px - (var(--step-visible, 0) * 30px))) scale(calc(0.96 + (var(--step-visible, 0) * 0.04)));
    transition: opacity 90ms linear, transform 90ms linear, border-color .25s ease, box-shadow .25s ease;
}

.how-zigzag-stage.scroll-linked .zigzag-card.is-active {
    border-color: rgba(34, 211, 238, 0.34);
    box-shadow: 0 22px 56px rgba(2, 6, 23, 0.30), 0 0 22px rgba(34, 211, 238, 0.10);
}

@media (max-width: 900px) {
    .how-zigzag-stage.scroll-linked .zigzag-card {
        opacity: 1;
        transform: none;
    }
}


/* Demo video scroll reveal section */
.demo-video-section {
    overflow: visible;
}

.demo-scroll-stage {
    position: relative;
    min-height: 160vh;
    margin-top: 34px;
}

.demo-video-pin {
    position: sticky;
    top: 92px;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1300px;
}

.demo-video-browser {
    width: min(1040px, 92vw);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(7, 4, 16, 0.92);
    border: 1px solid rgba(232, 121, 249, 0.20);
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.52),
        0 0 80px rgba(168, 85, 247, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform:
        translateY(var(--demo-y, 70px))
        scale(var(--demo-scale, 0.72))
        rotateX(var(--demo-rotate, 10deg));
    opacity: var(--demo-opacity, 0.42);
    filter: blur(var(--demo-blur, 2px));
    transition: box-shadow .25s ease;
    will-change: transform, opacity, filter;
}

.demo-video-topbar {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 18px;
    background: linear-gradient(90deg, rgba(12, 8, 26, 0.96), rgba(35, 14, 58, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-video-url {
    flex: 1;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.demo-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 70% 15%, rgba(168, 85, 247, 0.22), transparent 38%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(8, 4, 18, 0.98));
}

.demo-showcase-video {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.demo-video-glow {
    position: absolute;
    inset: auto 8% -14% 8%;
    height: 120px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.26), transparent 70%);
    filter: blur(34px);
    pointer-events: none;
}

@media (max-width: 768px) {
    .demo-scroll-stage {
        min-height: 105vh;
    }

    .demo-video-pin {
        top: 84px;
        min-height: 70vh;
    }

    .demo-video-browser {
        width: 94vw;
        border-radius: 20px;
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: none;
    }

    .demo-video-topbar {
        height: 44px;
    }

    .demo-video-url {
        font-size: 0.72rem;
    }
}

/* Signup page alignment fix */
.signup-auth-body {
    min-height: 100vh;
    background: var(--grad-ambient), var(--bg);
    overflow-x: hidden;
}

.signup-auth-shell {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(360px, 0.85fr) minmax(420px, 1fr);
    align-items: center;
    justify-content: center;
    gap: 42px;
    padding: 48px clamp(22px, 5vw, 72px);
}

.signup-brand-panel,
.signup-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-brand-content {
    width: 100%;
    max-width: 560px;
    text-align: center;
}

.signup-logo {
    width: min(360px, 88%);
    height: auto;
    margin: 0 auto 26px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(217, 70, 239, 0.28));
}

.signup-kicker {
    justify-content: center;
    margin-bottom: 16px;
}

.signup-brand-content h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.08;
    margin: 0 0 16px;
    text-align: center;
}

.signup-brand-content p {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    font-size: 1rem;
    line-height: 1.65;
}

.signup-card {
    width: 100%;
    max-width: 520px;
    padding: 34px;
    background: var(--surface-glass);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.signup-card h2 {
    font-size: 1.6rem;
    margin: 8px 0 6px;
}

.signup-card .form-block {
    margin-bottom: 15px;
}

.signup-action-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.signup-submit-btn {
    width: auto;
    min-width: 240px;
    padding: 12px 24px;
    font-size: 0.92rem;
}

.signup-card .forgot-link {
    display: block;
    text-align: center;
    margin-top: 16px;
}

@media (max-width: 980px) {
    .signup-auth-shell {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 22px;
    }

    .signup-logo {
        width: min(300px, 82%);
        margin-bottom: 20px;
    }

    .signup-brand-content h1,
    .signup-brand-content p {
        text-align: center;
    }

    .signup-card {
        max-width: 560px;
    }
}

@media (max-width: 560px) {
    .signup-card {
        padding: 26px 20px;
    }

    .signup-submit-btn {
        width: 100%;
        min-width: 0;
    }
}


/* Dashboard structure and create interview time input fixes */
.dashboard-hero-row {
    align-items: center;
}

.dashboard-stats-grid {
    margin-bottom: 30px;
}

.dashboard-panel-section {
    overflow: hidden;
}

.completed-dashboard-section {
    margin-top: 28px;
}

.dashboard-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(8, 3, 15, 0.46);
}

.dashboard-table {
    min-width: 1200px;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 10px;
}

/* ── Column widths: must total ≤ min-width above ── */
.dashboard-table th:nth-child(1),
.dashboard-table td:nth-child(1) { width: 160px; }   /* Candidate */

.dashboard-table th:nth-child(2),
.dashboard-table td:nth-child(2) { width: 200px; }   /* Email */

.dashboard-table th:nth-child(3),
.dashboard-table td:nth-child(3) { width: 155px; }   /* Interview */

.dashboard-table th:nth-child(4),
.dashboard-table td:nth-child(4) { width: 120px; }   /* Schedule */

.dashboard-table th:nth-child(5),
.dashboard-table td:nth-child(5) { width: 115px; }   /* Status */

.dashboard-table th:nth-child(6),
.dashboard-table td:nth-child(6) { width: 105px; }   /* Risk */

.dashboard-table th:nth-child(7),
.dashboard-table td:nth-child(7) { width: 120px; }   /* Candidate link */

.dashboard-table th:nth-child(8),
.dashboard-table td:nth-child(8) { width: 110px; }   /* Invites */

.dashboard-table th:nth-child(9),
.dashboard-table td:nth-child(9) { width: 105px; }   /* Live room */

.dashboard-table th:nth-child(10),
.dashboard-table td:nth-child(10) { width: 90px; }   /* Report */

.dashboard-table th:nth-child(11),
.dashboard-table td:nth-child(11) { width: 80px; }   /* Delete (admin) */

/* ── Row base ── */
.dashboard-table tbody tr {
    background: rgba(255,255,255,0.028);
}

.dashboard-table tbody td {
    vertical-align: middle !important;
    padding: 14px 12px;
    overflow: hidden;           /* critical: clips content to fixed col width */
}

/* ── Candidate cell ── */
.dashboard-person-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;               /* allows flex children to shrink */
}

.dashboard-person-cell strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

/* ── Email cell: ellipsis without display:block ── */
.dashboard-email-cell {
    font-size: 0.86rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* display stays as table-cell — do NOT set display:block here */
}

/* ── Interview title cell ── */
.dashboard-title-cell {
    font-size: 0.92rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Schedule cell ── */
.dashboard-schedule-cell strong {
    display: block;
    font-size: 0.90rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.dashboard-schedule-cell span {
    display: block;
    font-size: 0.80rem;
    margin-top: 3px;
    white-space: nowrap;
}

/* ── Action buttons ── */
.dashboard-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.dashboard-actions .table-btn {
    min-width: 72px;
}

/* ── Pills ── */
.dashboard-table .status-pill,
.dashboard-table .risk-pill {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.time-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 10px;
    align-items: center;
}

.time-display-input {
    letter-spacing: 0.03em;
}

.time-period-select {
    text-align: center;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

.time-help-text {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.78rem;
}

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

    .dashboard-table {
        min-width: 1120px;
    }
}

/* ─────────────────────────────────────────────────────
   DASHBOARD TAB SWITCHER
───────────────────────────────────────────────────── */
.dash-tab-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(8, 3, 15, 0.55);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
}

.dash-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-2);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.dash-tab:hover {
    background: rgba(232, 121, 249, 0.08);
    color: var(--text);
}

.dash-tab.active {
    background: rgba(232, 121, 249, 0.16);
    color: var(--shield-bright);
    font-weight: 700;
    border: 1px solid rgba(232, 121, 249, 0.35);
}

.dash-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(232, 121, 249, 0.12);
    border: 1px solid rgba(232, 121, 249, 0.22);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--shield-bright);
    line-height: 1;
}

.dash-tab.active .dash-tab-count {
    background: rgba(232, 121, 249, 0.25);
    border-color: rgba(232, 121, 249, 0.50);
}

.dash-tab-panel {
    margin-top: 0;
}

/* Final dashboard/create/report alignment fixes */
.create-interview-panel {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.create-form-section {
    margin-bottom: 26px;
}

.create-interview-main-section {
    padding-top: 0;
    border-top: 0;
}

.create-form-section .section-kicker {
    margin-bottom: 14px;
}

.create-form-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: start;
    border-top: 1px solid var(--border);
    padding-top: 22px;
    margin-top: 22px;
}

.create-form-two-col .create-form-section {
    margin-bottom: 0;
}

.create-schedule-grid {
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr);
}

.time-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 10px;
    align-items: center;
}

.time-picker-input {
    min-height: 48px;
}

.time-period-select {
    min-height: 48px;
    text-align: center;
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
}

.time-help-text {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.create-action-row {
    margin-top: 28px;
}

.dashboard-table th:nth-child(4),
.dashboard-table td:nth-child(4) {
    width: 145px;
}

.dashboard-schedule-cell strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    font-size: 0.95rem;
    line-height: 1.25;
}

.dashboard-schedule-cell span {
    display: block;
    white-space: nowrap;
    font-size: 0.82rem;
    margin-top: 4px;
}

.dashboard-table .risk-pill {
    white-space: nowrap;
    min-width: 76px;
    max-width: 96px;
    padding-left: 10px;
    padding-right: 10px;
}

.dashboard-table .candidate-avatar,
.person-cell .candidate-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    line-height: 1;
    text-align: center;
}

.dashboard-person-cell {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
}

.dashboard-person-cell strong {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.35;
}

.dashboard-email-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-info-grid .info-tile,
.report-summary-card .info-tile {
    min-width: 0;
}

.report-info-grid .info-tile strong,
.report-summary-card .info-tile strong {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .create-form-two-col,
    .create-schedule-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .time-input-row {
        grid-template-columns: 1fr;
    }
}

/* Report page info-card one-line visibility fix */
.report-info-grid-fixed {
    display: grid;
    grid-template-columns:
        minmax(240px, 1.25fr)
        minmax(340px, 1.75fr)
        minmax(220px, 1.15fr)
        minmax(180px, 0.95fr)
        minmax(190px, 0.95fr)
        minmax(160px, 0.85fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.report-info-grid-fixed .info-tile {
    min-width: 0;
}

.report-info-grid-fixed .info-tile strong {
    display: block;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.45;
}

.report-candidate-tile strong,
.report-email-tile strong {
    font-size: 0.94rem;
}

.report-email-tile {
    min-width: 340px;
}

.report-candidate-tile {
    min-width: 240px;
}

.report-status-tile strong,
.report-risk-tile strong {
    display: flex !important;
    align-items: center;
}

.report-status-tile .status-pill,
.report-risk-tile .risk-pill {
    white-space: nowrap;
    width: 100%;
    justify-content: center;
}

@media (max-width: 1100px) {
    .report-info-grid-fixed {
        grid-template-columns:
            minmax(240px, 1fr)
            minmax(340px, 1.4fr)
            minmax(220px, 1fr)
            minmax(180px, 1fr)
            minmax(190px, 1fr)
            minmax(160px, 1fr);
    }
}
/* Dashboard + Create Interview small label readability fix */
.dashboard-table thead th,
.app-table thead th,
.form-block label,
.form-group-pro label,
.create-form-section .section-kicker,
.stats-grid .stat-card span,
.stat-card span {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
}

/* Dashboard table heading labels like Candidate, Email, Interview */
.dashboard-table thead th {
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
}

/* Dashboard stat labels like Total sessions, Scheduled, Completed */
.dashboard-stats-grid .stat-card span,
.stats-grid .stat-card span {
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
}

/* Create Interview form labels like Interview title, Interview date, Candidate name */
.create-interview-panel .form-block label,
.create-interview-panel .form-group-pro label {
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
}

/* Section headings like Interview, Candidate, Panel */
.create-interview-panel .section-kicker {
    color: #f0abfc !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
}

/* Input placeholder thoda readable */
.create-interview-panel .form-control::placeholder {
    color: rgba(255, 255, 255, 0.42) !important;
}

/* Landing pricing / plans section */
.pricing-section {
    background:
        radial-gradient(ellipse at 20% 10%, rgba(217, 70, 239, 0.12), transparent 48%),
        radial-gradient(ellipse at 85% 80%, rgba(168, 85, 247, 0.14), transparent 52%),
        var(--bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    padding: 28px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(28, 14, 58, 0.72), rgba(8, 3, 15, 0.78));
    border: 1px solid rgba(216, 180, 254, 0.16);
    box-shadow: 0 24px 70px rgba(8, 3, 15, 0.36);
    overflow: hidden;
    min-height: 430px;
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(232, 121, 249, 0.12), transparent 38%),
        var(--shield-pattern);
    background-size: auto, 22px 22px;
    opacity: 0.55;
    pointer-events: none;
}

.pricing-card > * {
    position: relative;
    z-index: 1;
}

.featured-pricing-card {
    border-color: rgba(232, 121, 249, 0.46);
    box-shadow:
        0 30px 90px rgba(8, 3, 15, 0.52),
        0 0 70px rgba(217, 70, 239, 0.16);
    transform: translateY(-8px);
}

.pricing-popular-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(232, 121, 249, 0.14);
    border: 1px solid rgba(232, 121, 249, 0.36);
    color: var(--shield-bright);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pricing-card-top {
    margin-bottom: 22px;
}

.pricing-plan-label {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--shield-bright);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.1rem, 3vw, 3.2rem);
    line-height: 1;
    margin: 0 0 8px;
    color: #fff;
    letter-spacing: -0.04em;
}

.pricing-card-top p {
    color: rgba(245, 240, 250, 0.70);
    font-weight: 700;
    font-size: 0.98rem;
}

.pricing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 13px;
    flex: 1;
}

.pricing-feature-list li {
    position: relative;
    padding-left: 26px;
    color: rgba(245, 240, 250, 0.78);
    font-size: 0.96rem;
    line-height: 1.48;
}

.pricing-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--shield-bright);
    font-weight: 900;
}

.pricing-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

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

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

/* ─────────────────────────────────────────────────────
   PLANS PAGE
───────────────────────────────────────────────────── */
.plans-page-section {
    padding: 0 0 60px;
}

.plans-page-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.plans-hero-row {
    padding-bottom: 32px;
}

.pricing-feature-list li.feature-not-included {
    opacity: 0.42;
    text-decoration: line-through;
}

.plans-compare-note {
    max-width: 700px;
    margin: 32px auto 0;
    text-align: center;
    color: var(--text-2);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Plan badge on signup page */
.signup-plan-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(232, 121, 249, 0.10);
    border: 1px solid rgba(232, 121, 249, 0.28);
}


/* Plan state UI additions */
.plans-current-alert,
.dashboard-plan-alert,
.plan-expired-alert {
    max-width: 1180px;
    margin: 18px auto;
}

.plans-current-alert {
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(216,180,254,.18);
    color: rgba(245,240,250,.82);
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

.expired-plan-alert {
    border-color: rgba(248,113,113,.38);
    background: rgba(239,68,68,.08);
}

.silver-pricing-card {
    border-color: rgba(232, 121, 249, 0.38);
    box-shadow:
        0 30px 90px rgba(8, 3, 15, 0.46),
        0 0 58px rgba(217, 70, 239, 0.12);
}

.locked-record-control {
    opacity: .72;
    text-decoration: none;
}


/* Google OAuth button */
.google-auth-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.92);
    color: #1f2937 !important;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    margin: 14px 0 12px;
    box-shadow: 0 16px 34px rgba(0,0,0,.20);
}

.google-auth-btn:hover {
    background: #fff;
    color: #111827 !important;
    transform: translateY(-1px);
}

.google-mark {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    background: #fff;
    color: #4285f4;
    border: 1px solid rgba(17,24,39,.12);
    font-family: Arial, sans-serif;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(245,240,250,.48);
    font-size: .75rem;
    font-weight: 800;
    margin: 10px 0 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255,255,255,.12);
}


/* =========================================================
   FINAL: Hero stats exact center fix only
   Content/backend untouched.
========================================================= */

/* Center the stats block in the visible hero area */
.landing-hero .hero-stats {
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: 520px !important;
    max-width: 90vw !important;

    margin-top: 92px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 36px 54px !important;

    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* Remove previous HUD/extra line/text pseudo effects near stats */
.landing-hero .hero-stats::before,
.landing-hero .hero-stats::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Stat item clean center */
.landing-hero .hero-stats > * {
    position: relative !important;
    text-align: center !important;
    padding: 0 24px !important;
    margin: 0 !important;
    min-width: 0 !important;
    border: 0 !important;
}

/* Remove unwanted item pseudo dividers */
.landing-hero .hero-stats > *::before,
.landing-hero .hero-stats > *::after {
    display: none !important;
    content: none !important;
}

/* Add clean middle dividers only between columns */
.landing-hero .hero-stats > *:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.14) !important;
}

/* Keep numbers/text readable */
.landing-hero .hero-stats h2,
.landing-hero .hero-stats h3,
.landing-hero .hero-stats strong,
.landing-hero .hero-stats .stat-number {
    display: block !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    margin: 0 0 10px 0 !important;
    color: #ffffff !important;
    text-align: center !important;
}

.landing-hero .hero-stats p,
.landing-hero .hero-stats span,
.landing-hero .hero-stats small,
.landing-hero .hero-stats .stat-label {
    display: block !important;
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.72) !important;
    text-align: center !important;
    margin: 0 !important;
}

/* On small screens keep same centered 2x2 look */
@media (max-width: 768px) {
    .landing-hero .hero-stats {
        width: 360px !important;
        max-width: 92vw !important;
        gap: 30px 34px !important;
        margin-top: 70px !important;
    }

    .landing-hero .hero-stats > * {
        padding: 0 14px !important;
    }

    .landing-hero .hero-stats h2,
    .landing-hero .hero-stats h3,
    .landing-hero .hero-stats strong,
    .landing-hero .hero-stats .stat-number {
        font-size: 1.72rem !important;
    }
}


/* =========================================================
   MOBILE RESPONSIVE FIX PACK
   Frontend CSS only. Backend/content untouched.
========================================================= */

html, body {
    max-width: 100%;
    overflow-x: hidden !important;
}

img, video, canvas, svg, iframe {
    max-width: 100%;
}

/* Prevent wide sections/cards from breaking mobile */
.container,
.landing-section-inner,
.hero-inner,
.dashboard-wrapper,
.dashboard-container,
.app-shell,
.page-wrap,
.panel,
.form-panel,
.auth-card,
.card-box {
    max-width: 100% !important;
}

/* Buttons wrap properly */
.btn,
.btn-brand,
.btn-ghost,
.btn-outline-soft,
.table-btn,
button,
a[class*="btn"] {
    white-space: normal !important;
}

/* Tables scroll instead of breaking layout */
.table-wrap,
.table-responsive,
.dashboard-table-wrap,
.reports-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

table,
.app-table,
.dashboard-table {
    min-width: 760px;
}

/* Tablet layout */
@media (max-width: 1100px) {
    .landing-hero,
    .hero-section {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .landing-hero .hero-inner,
    .hero-inner,
    .hero-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 36px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .landing-hero .hero-copy,
    .hero-copy,
    .hero-content {
        width: 100% !important;
        max-width: 760px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .landing-hero .hero-title,
    .hero-title,
    .landing-hero .hero-sub,
    .hero-sub {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .landing-hero .hero-cta-row,
    .hero-cta-row {
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    .hero-product-visual {
        width: min(620px, 100%) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        min-height: auto !important;
    }

    .product-shell {
        width: min(540px, 100%) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .problem-grid,
    .features-grid,
    .workflow-grid,
    .plans-grid,
    .pricing-grid,
    .stats-grid,
    .dashboard-stats-grid,
    .cards-grid,
    .report-grid,
    .users-grid,
    .settings-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 18px !important;
    }

    .landing-section,
    section {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .section-title,
    .section-lede,
    .section-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .app-navbar,
    .dashboard-nav,
    .topbar,
    .navbar {
        padding-left: 18px !important;
        padding-right: 18px !important;
        flex-wrap: wrap !important;
        gap: 14px !important;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    body {
        font-size: 15px !important;
    }

    .landing-hero {
        padding-top: 96px !important;
        padding-bottom: 64px !important;
    }

    .hero-title,
    .landing-hero .hero-title,
    .landing-hero h1 {
        font-size: clamp(2.15rem, 12vw, 3.65rem) !important;
        line-height: 0.98 !important;
        letter-spacing: -0.06em !important;
        text-align: center !important;
    }

    .hero-sub,
    .landing-hero .hero-sub {
        font-size: 0.98rem !important;
        line-height: 1.65 !important;
        text-align: center !important;
    }

    .hero-eyebrow,
    .section-eyebrow {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .hero-cta-row,
    .landing-hero .hero-cta-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: min(360px, 100%) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        gap: 12px !important;
    }

    .hero-cta-row .btn-brand,
    .hero-cta-row .btn-ghost,
    .hero-cta-row a,
    .hero-cta-row button {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero-product-visual {
        width: 100% !important;
        max-width: 430px !important;
        margin: 6px auto 0 !important;
        display: block !important;
        perspective: none !important;
        overflow: visible !important;
    }

    .product-shell {
        width: 100% !important;
        padding: 14px !important;
        border-radius: 24px !important;
        transform: none !important;
    }

    .product-grid-preview {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .candidate-preview,
    .hero-signal-board,
    .ai-signal-dashboard {
        height: 230px !important;
        min-height: 220px !important;
    }

    .side-preview {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important;
        gap: 10px !important;
    }

    .mini-tile {
        min-height: 78px !important;
        border-radius: 16px !important;
        font-size: 0.68rem !important;
        padding: 10px !important;
    }

    .demo-toast-stack {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        margin-top: 14px !important;
    }

    .demo-alert,
    .demo-alert strong,
    .demo-alert span {
        white-space: normal !important;
    }

    .demo-alert {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Stats centered in 2x2 mobile */
    .landing-hero .hero-stats {
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: min(360px, 92vw) !important;
        margin-top: 54px !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 28px 26px !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .landing-hero .hero-stats::before,
    .landing-hero .hero-stats::after {
        display: none !important;
        content: none !important;
    }

    .landing-hero .hero-stats > * {
        text-align: center !important;
        padding: 0 10px !important;
        margin: 0 !important;
        border: 0 !important;
    }

    .landing-hero .hero-stats > *:nth-child(odd) {
        border-right: 1px solid rgba(255,255,255,.12) !important;
    }

    .problem-grid,
    .features-grid,
    .workflow-grid,
    .plans-grid,
    .pricing-grid,
    .stats-grid,
    .dashboard-stats-grid,
    .cards-grid,
    .report-grid,
    .users-grid,
    .settings-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .problem-card,
    .feature-card,
    .workflow-card,
    .plan-card,
    .pricing-card,
    .stat-card,
    .report-card,
    .settings-card {
        width: 100% !important;
        max-width: 460px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .section-title,
    .landing-section h2 {
        font-size: clamp(1.9rem, 8vw, 2.65rem) !important;
        line-height: 1.08 !important;
    }

    .landing-section {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }

    .auth-card,
    .card-box,
    .form-panel {
        width: 100% !important;
        max-width: 460px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 24px !important;
    }

    input,
    textarea,
    select,
    .form-control {
        width: 100% !important;
        font-size: 16px !important;
    }

    .app-navbar,
    .dashboard-nav,
    .topbar,
    .navbar {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .brand,
    .dashboard-brand,
    .logo-wrap {
        justify-content: center !important;
        text-align: center !important;
    }

    .nav-links,
    .nav-actions,
    .navbar-actions {
        width: 100% !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .dashboard-container,
    .app-container,
    .page-container,
    main {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .page-header,
    .panel-header,
    .dashboard-header {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    .form-row,
    .form-grid,
    .create-form-grid,
    .interview-form-grid {
        grid-template-columns: 1fr !important;
    }

    .room-layout,
    .meeting-room-layout,
    .interview-room-grid,
    .candidate-room-grid,
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .video-card,
    .camera-card,
    .room-panel {
        width: 100% !important;
        max-width: 100% !important;
    }

    .video-card video,
    .camera-card video,
    video {
        width: 100% !important;
        height: auto !important;
        max-height: 52vh !important;
        object-fit: cover !important;
        border-radius: 18px !important;
    }

    .room-actions,
    .control-bar,
    .meeting-controls {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .room-actions button,
    .control-bar button,
    .meeting-controls button {
        flex: 1 1 140px !important;
        min-width: 130px !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .landing-hero {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .hero-title,
    .landing-hero .hero-title,
    .landing-hero h1 {
        font-size: clamp(2rem, 13vw, 3.15rem) !important;
    }

    .hero-sub,
    .landing-hero .hero-sub {
        font-size: .92rem !important;
    }

    .hero-product-visual {
        max-width: 100% !important;
    }

    .product-shell {
        padding: 12px !important;
        border-radius: 22px !important;
    }

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

    .mini-tile {
        min-height: 62px !important;
    }

    .landing-hero .hero-stats {
        width: min(330px, 94vw) !important;
        gap: 24px 20px !important;
    }

    .landing-hero .hero-stats h2,
    .landing-hero .hero-stats h3,
    .landing-hero .hero-stats strong,
    .landing-hero .hero-stats .stat-number {
        font-size: 1.55rem !important;
    }

    .landing-hero .hero-stats p,
    .landing-hero .hero-stats span,
    .landing-hero .hero-stats small,
    .landing-hero .hero-stats .stat-label {
        font-size: .62rem !important;
        letter-spacing: .06em !important;
    }

    .btn-brand,
    .btn-ghost,
    .btn-outline-soft,
    .table-btn {
        padding-left: 18px !important;
        padding-right: 18px !important;
        min-height: 46px !important;
    }

    .auth-card,
    .card-box,
    .form-panel {
        padding: 20px !important;
    }

    table,
    .app-table,
    .dashboard-table {
        min-width: 680px;
    }
}


/* =========================================================
   DEMO VIDEO SCROLL TOP-CUT EXACT FIX
   Fixes video/browser frame going too high while scrolling.
   Mobile-friendly. Backend/content untouched.
========================================================= */

.demo-video-section {
    overflow: visible !important;
    padding-top: clamp(90px, 9vw, 150px) !important;
    padding-bottom: clamp(90px, 9vw, 150px) !important;
}

.demo-video-section .landing-section-inner {
    overflow: visible !important;
}

/* Give sticky animation enough scroll room without pushing video too far */
.demo-scroll-stage {
    position: relative !important;
    min-height: 132vh !important;
    margin-top: 54px !important;
    overflow: visible !important;
}

/* Keep pinned browser safely below navbar/top edge */
.demo-video-pin {
    position: sticky !important;
    top: clamp(96px, 12vh, 128px) !important;
    min-height: auto !important;
    height: calc(100vh - clamp(118px, 16vh, 168px)) !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 12px !important;
    padding-bottom: 32px !important;
    overflow: visible !important;
    perspective: 1300px !important;
}

/* Main browser should never move above visible area */
.demo-video-browser {
    width: min(1040px, 92vw) !important;
    max-height: calc(100vh - 160px) !important;
    transform:
        translateY(var(--demo-y, 24px))
        scale(var(--demo-scale, 0.88))
        rotateX(var(--demo-rotate, 4deg)) !important;
    transform-origin: top center !important;
    opacity: var(--demo-opacity, 0.76) !important;
    filter: blur(var(--demo-blur, 0.8px)) !important;
    overflow: hidden !important;
    will-change: transform, opacity, filter !important;
}

/* Keep video frame inside available viewport */
.demo-video-frame {
    aspect-ratio: 16 / 9 !important;
    max-height: calc(100vh - 230px) !important;
    overflow: hidden !important;
}

.demo-showcase-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #06010d !important;
}

/* On laptop/smaller height screens reduce frame so top bar stays visible */
@media (max-height: 760px) {
    .demo-video-pin {
        top: 82px !important;
        height: calc(100vh - 104px) !important;
        padding-top: 8px !important;
    }

    .demo-video-browser {
        max-height: calc(100vh - 122px) !important;
    }

    .demo-video-frame {
        max-height: calc(100vh - 184px) !important;
    }
}

/* Tablet/mobile: no sticky scroll animation, always fully visible */
@media (max-width: 768px) {
    .demo-video-section {
        padding-top: 74px !important;
        padding-bottom: 82px !important;
    }

    .demo-scroll-stage {
        min-height: auto !important;
        margin-top: 34px !important;
    }

    .demo-video-pin {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
        display: block !important;
    }

    .demo-video-browser {
        width: 94vw !important;
        max-height: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        border-radius: 20px !important;
    }

    .demo-video-frame {
        max-height: none !important;
        aspect-ratio: 16 / 9 !important;
    }

    .demo-showcase-video {
        object-fit: contain !important;
    }
}


/* =========================================================
   FINAL EQUAL PRICING CARDS
   - Basic, Silver, Gold exact equal card height
   - Buttons locked to same bottom line
   - Light purple card theme + dark text
   - Mobile friendly
   Frontend only. Backend/plan logic untouched.
========================================================= */

.plans-page-section .plans-page-grid,
.plans-page-section .pricing-grid,
.pricing-grid.plans-page-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
    gap: 28px !important;
    align-items: stretch !important;
}

.plans-page-grid > .pricing-card {
    position: relative !important;
    height: 620px !important;
    min-height: 620px !important;
    max-height: 620px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    padding-bottom: 108px !important;
    background:
        radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.72), transparent 26%),
        radial-gradient(circle at 15% 100%, rgba(240, 171, 252, 0.42), transparent 38%),
        linear-gradient(145deg, #f7dcff 0%, #e9c5ff 42%, #c084fc 100%) !important;
    border: 1px solid rgba(126, 34, 206, 0.42) !important;
    color: #15051f !important;
    box-shadow:
        0 28px 80px rgba(126, 34, 206, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
    overflow: hidden !important;
}

.plans-page-grid > .pricing-card.featured-pricing-card,
.plans-page-grid > .pricing-card.silver-pricing-card {
    height: 620px !important;
    min-height: 620px !important;
    max-height: 620px !important;
    transform: none !important;
}

.plans-page-grid > .pricing-card,
.plans-page-grid > .pricing-card * {
    color: #15051f !important;
}

.plans-page-grid .pricing-card-top {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.plans-page-grid .pricing-plan-label {
    color: #4a044e !important;
    font-weight: 900 !important;
    letter-spacing: 0.16em !important;
}

.plans-page-grid .pricing-card h3 {
    color: #0f172a !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin-top: 22px !important;
    margin-bottom: 12px !important;
}

.plans-page-grid .pricing-card-top p {
    color: rgba(21, 5, 31, 0.78) !important;
    font-weight: 800 !important;
}

.plans-page-grid .pricing-feature-list {
    display: block !important;
    flex: 0 0 auto !important;
    margin: 34px 0 0 0 !important;
    padding: 0 !important;
}

.plans-page-grid .pricing-feature-list li {
    color: #1f1028 !important;
    font-weight: 800 !important;
    margin: 0 0 24px 0 !important;
    line-height: 1.35 !important;
}

.plans-page-grid .pricing-feature-list .feature-not-included,
.plans-page-grid .pricing-feature-list .disabled,
.plans-page-grid .pricing-feature-list del {
    color: rgba(21, 5, 31, 0.42) !important;
}

.plans-page-grid .pricing-popular-badge {
    color: #4a044e !important;
    background: rgba(255, 255, 255, 0.42) !important;
    border-color: rgba(74, 4, 78, 0.22) !important;
}

.plans-page-grid .pricing-card-action {
    position: absolute !important;
    left: 28px !important;
    right: 28px !important;
    bottom: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.plans-page-grid .pricing-btn {
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.plans-page-grid .btn-brand.pricing-btn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #d946ef, #8b5cf6) !important;
    border: none !important;
    box-shadow: 0 18px 42px rgba(126, 34, 206, 0.28) !important;
}

.plans-page-grid .btn-outline-soft.pricing-btn {
    color: #15051f !important;
    border: 1px solid rgba(74, 4, 78, 0.32) !important;
    background: rgba(255, 255, 255, 0.42) !important;
}

@media (max-width: 900px) {
    .plans-page-section .plans-page-grid,
    .plans-page-section .pricing-grid,
    .pricing-grid.plans-page-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .plans-page-grid > .pricing-card,
    .plans-page-grid > .pricing-card.featured-pricing-card,
    .plans-page-grid > .pricing-card.silver-pricing-card {
        width: 100% !important;
        max-width: 520px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        height: auto !important;
        min-height: 560px !important;
        max-height: none !important;
        padding-bottom: 108px !important;
    }

    .plans-page-grid .pricing-feature-list li {
        margin-bottom: 18px !important;
    }
}

@media (max-width: 520px) {
    .plans-page-grid > .pricing-card,
    .plans-page-grid > .pricing-card.featured-pricing-card,
    .plans-page-grid > .pricing-card.silver-pricing-card {
        min-height: 540px !important;
        padding: 24px 24px 104px 24px !important;
        border-radius: 24px !important;
    }

    .plans-page-grid .pricing-card-action {
        left: 24px !important;
        right: 24px !important;
        bottom: 24px !important;
    }

    .plans-page-grid .pricing-card h3 {
        font-size: clamp(2.4rem, 13vw, 3.2rem) !important;
    }
}


/* =========================================================
   CANDIDATE LIVE ROOM SIDE PANEL LAYOUT
   - Candidate large camera on left
   - Host + panel cameras only in right sidebar
   - No small Host+Panel PIP inside candidate camera
   - Mobile responsive
========================================================= */

body.room-body {
    overflow: hidden !important;
}

.room-content.candidate-room-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 39vw) !important;
    gap: 18px !important;
    padding: 18px 24px 108px !important;
    height: calc(100vh - 72px) !important;
    min-height: 0 !important;
    align-items: stretch !important;
}

.candidate-main-stage.video-panel {
    min-height: 0 !important;
    height: 100% !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background: #08030f !important;
    border: 1px solid rgba(168, 85, 247, 0.30) !important;
    box-shadow: 0 28px 80px rgba(5, 2, 12, 0.60) !important;
}

.candidate-main-stage .candidate-main-video {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    position: relative !important;
}

.candidate-main-stage #webcam {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    border-radius: 24px !important;
}

/* Remove the old in-video panel/PIP layout completely */
.candidate-main-stage .hr-remote-video-box,
.candidate-main-video .hr-remote-video-box,
.hr-remote-video-box.multi-admin-box {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Right participant rail */
.candidate-participant-rail {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(136px, 1fr) !important;
    gap: 12px !important;
    overflow: hidden !important;
}

/* Let adminTiles children become direct sidebar grid items */
.candidate-participant-rail #adminTiles.candidate-side-tiles {
    display: contents !important;
}

/* Common sidebar tile style */
.candidate-side-tile,
.candidate-side-placeholder,
.candidate-side-video-tile,
.candidate-participant-rail .admin-video-tile {
    position: relative !important;
    min-width: 0 !important;
    min-height: 136px !important;
    height: 100% !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 40% 20%, rgba(124, 58, 237, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(13, 7, 31, 0.98), rgba(7, 3, 18, 0.98)) !important;
    border: 1px solid rgba(139, 92, 246, 0.42) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 45px rgba(4, 2, 12, 0.35) !important;
}

/* Host Monitoring alert tile */
.candidate-host-alert-tile.monitor-panel {
    position: relative !important;
    top: auto !important;
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 45px rgba(4, 2, 12, 0.35) !important;
}

.candidate-host-alert-tile .candidate-side-tile-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 14px !important;
}

.candidate-host-alert-tile .monitor-header h2 {
    font-size: 1rem !important;
    margin: 0 0 12px !important;
    color: #ffffff !important;
}

.candidate-host-alert-tile .monitor-status {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    gap: 7px !important;
}

.candidate-host-alert-tile .monitor-footer {
    display: none !important;
}

.candidate-host-alert-tile .warnings-box {
    display: none !important;
}

/* Labels on video/placeholder tiles */
.candidate-participant-rail .tile-label,
.candidate-side-placeholder .tile-label,
.candidate-side-video-tile .tile-label {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-family: "Inter", "Manrope", sans-serif !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.70) !important;
}

.side-user-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    color: transparent !important;
    background: radial-gradient(circle, #ffffff 0 22%, #8b5cf6 25% 100%) !important;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.55) !important;
    flex: 0 0 auto !important;
}

/* Remote host/panel videos */
.candidate-participant-rail .admin-video-tile video,
.candidate-side-video-tile video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    background: #08030f !important;
    display: block !important;
}

/* Placeholder avatar */
.empty-side-avatar {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(199, 210, 254, 0.20) !important;
    font-size: 4.3rem !important;
    font-weight: 200 !important;
    line-height: 1 !important;
}

/* Better main camera label */
.candidate-main-stage .camera-label {
    top: 18px !important;
    left: 18px !important;
    color: #ffffff !important;
    background: rgba(8, 3, 15, 0.78) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.34) !important;
}

/* Controls stay centered below main camera */
.candidate-control-bar {
    z-index: 80 !important;
}

/* Tablet layout */
@media (max-width: 1100px) {
    body.room-body {
        overflow: auto !important;
    }

    .room-content.candidate-room-content {
        height: auto !important;
        min-height: calc(100vh - 72px) !important;
        grid-template-columns: 1fr !important;
        padding: 16px 16px 112px !important;
    }

    .candidate-main-stage.video-panel {
        height: min(62vh, 620px) !important;
        min-height: 420px !important;
    }

    .candidate-participant-rail {
        height: auto !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: 190px !important;
        overflow: visible !important;
    }
}

/* Mobile layout */
@media (max-width: 640px) {
    .room-topbar {
        height: auto !important;
        min-height: 72px !important;
        padding: 10px 14px !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    .room-actions {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .room-content.candidate-room-content {
        padding: 12px 12px 108px !important;
    }

    .candidate-main-stage.video-panel {
        height: 54vh !important;
        min-height: 360px !important;
        border-radius: 18px !important;
    }

    .candidate-main-stage #webcam {
        border-radius: 18px !important;
    }

    .candidate-participant-rail {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 160px !important;
        gap: 10px !important;
    }

    .candidate-host-alert-tile.monitor-panel {
        min-height: 150px !important;
    }

    .candidate-control-bar {
        bottom: 12px !important;
    }
}


/* =========================================================
   DYNAMIC CANDIDATE SIDE PANEL TILES
   - No fixed Panel 1-5 boxes
   - Host/panel camera tiles appear only when they join
   - Subscription limits can control how many panel members are allowed
========================================================= */

.candidate-participant-rail {
    overflow-y: auto !important;
    padding-right: 2px !important;
    align-content: start !important;
}

/* Host alert tile remains visible; joined host/panel camera tiles appear dynamically */
.candidate-participant-rail #adminTiles.candidate-side-tiles {
    display: contents !important;
}

/* Dynamic joined host/panel camera tiles only */
.candidate-participant-rail .admin-video-tile,
.candidate-side-video-tile {
    min-height: 150px !important;
    height: 100% !important;
}

/* Empty hint when no host/panel camera is connected */
.candidate-side-empty-state {
    min-height: 150px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 18px !important;
    border-radius: 18px !important;
    border: 1px dashed rgba(139, 92, 246, 0.28) !important;
    color: rgba(255, 255, 255, 0.58) !important;
    background: rgba(10, 4, 24, 0.42) !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

/* Side panel should grow based on real joined users, not fake fixed placeholders */
@media (min-width: 1101px) {
    .candidate-participant-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: 150px !important;
    }

    .candidate-host-alert-tile {
        min-height: 150px !important;
    }
}

@media (max-width: 1100px) {
    .candidate-participant-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: 180px !important;
    }
}

@media (max-width: 640px) {
    .candidate-participant-rail {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 160px !important;
    }
}


/* === InterviewShield v2.1 UX Update: logged-in landing, cookie consent, plan card === */
.landing-session-actions {
    align-items: center;
}

.landing-user-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 14px 32px rgba(0,0,0,.18);
}

.dashboard-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.current-plan-card {
    min-width: 220px;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
    display: grid;
    gap: 4px;
}

.current-plan-card span {
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-text, rgba(255,255,255,.62));
    font-weight: 800;
}

.current-plan-card strong {
    font-size: 1.35rem;
    color: var(--text, #fff);
    line-height: 1.1;
}

.current-plan-card small {
    color: var(--muted-text, rgba(255,255,255,.68));
    font-weight: 650;
}

.current-plan-card a {
    margin-top: 6px;
    color: var(--shield-bright, #8b5cf6);
    font-weight: 900;
    text-decoration: none;
}

.current-plan-card.expired {
    border-color: rgba(248,113,113,.42);
}





/* ─────────────────────────────────────────────────────
   LANDING NAV: LOGGED-IN STATE + MOBILE DRAWER
───────────────────────────────────────────────────── */

/* Logged-in avatar pill */
.nav-user-avatar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    border: 1px solid rgba(232, 121, 249, 0.28);
    background: rgba(232, 121, 249, 0.08);
    color: var(--text);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.nav-user-avatar:hover {
    background: rgba(232, 121, 249, 0.16);
    border-color: rgba(232, 121, 249, 0.50);
    color: #fff;
}

.nav-avatar-badge {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    line-height: 1;
}

.nav-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hide username text on small screens to save space */
@media (max-width: 820px) {
    .nav-user-name { display: none; }
}

/* Hamburger button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 8px 9px;
    cursor: pointer;
    margin-left: 8px;
}
.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(245,240,250,0.90);
    border-radius: 2px;
    transition: 0.2s;
}

@media (max-width: 768px) {
    .landing-nav-links { display: none; }
    .nav-hamburger { display: flex; }
}

/* Mobile nav overlay and drawer */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 3, 15, 0.70);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.22s ease;
}
.mobile-nav-overlay.open {
    display: flex;
    opacity: 1;
}

.mobile-nav-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100%;
    background: rgba(14, 6, 28, 0.98);
    border-left: 1px solid rgba(232, 121, 249, 0.18);
    padding: 24px 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.mobile-nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-bottom: 12px;
    border-radius: 6px;
}
.mobile-nav-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

.mobile-nav-link {
    padding: 12px 8px;
    color: rgba(245, 240, 250, 0.85);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.15s;
}
.mobile-nav-link:hover { color: #fff; }

.mobile-nav-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-nav-actions a {
    text-align: center;
}

/* ─────────────────────────────────────────────────────
   COOKIE CONSENT MODAL (enterprise / glassmorphism)
───────────────────────────────────────────────────── */

/* Body lock — disable scroll when modal is open */
.ck-body-lock {
    overflow: hidden !important;
}

/* Full-screen dark backdrop with blur */
.ck-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 1, 12, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.30s ease, backdrop-filter 0.30s ease, -webkit-backdrop-filter 0.30s ease;
}

.ck-overlay.ck-open {
    background: rgba(4, 1, 12, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ck-overlay.ck-closing {
    background: rgba(4, 1, 12, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

/* Modal card */
.ck-modal {
    width: 100%;
    max-width: 480px;
    background: rgba(16, 7, 34, 0.98);
    border: 1px solid rgba(232, 121, 249, 0.22);
    border-radius: 20px;
    padding: 36px 36px 28px;
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.60),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 60px rgba(168, 85, 247, 0.08);
    transform: scale(0.94) translateY(12px);
    opacity: 0;
    transition: transform 0.30s cubic-bezier(0.34, 1.48, 0.64, 1), opacity 0.25s ease;
}

.ck-overlay.ck-open .ck-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.ck-overlay.ck-closing .ck-modal {
    transform: scale(0.96) translateY(8px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Header */
.ck-modal-header {
    margin-bottom: 16px;
}

.ck-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.ck-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: #a78bfa;
    margin: 0;
}

/* Description */
.ck-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: rgba(245, 240, 250, 0.72);
    line-height: 1.65;
    margin: 0 0 26px;
}

/* Buttons */
.ck-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.ck-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
    letter-spacing: 0.01em;
}

.ck-btn:active {
    transform: scale(0.98);
}

.ck-btn-primary {
    background: rgba(168, 85, 247, 0.92);
    border-color: rgba(168, 85, 247, 0.92);
    color: #fff;
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.28);
}

.ck-btn-primary:hover {
    background: rgba(168, 85, 247, 1);
    border-color: rgba(168, 85, 247, 1);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.42);
}

.ck-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(232, 121, 249, 0.25);
    color: rgba(245, 240, 250, 0.80);
}

.ck-btn-secondary:hover {
    background: rgba(232, 121, 249, 0.10);
    border-color: rgba(232, 121, 249, 0.50);
    color: #fff;
}

/* Footer link */
.ck-footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
}

.ck-privacy-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: rgba(245, 240, 250, 0.42);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ck-privacy-link:hover {
    color: #f0abfc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Responsive — mobile */
@media (max-width: 520px) {
    .ck-modal {
        padding: 28px 22px 22px;
        border-radius: 16px;
        max-width: 100%;
    }

    .ck-actions {
        flex-direction: column;
    }

    .ck-btn {
        width: 100%;
    }
}

.checkout-page {
    min-height: 100vh;
    padding: 70px 6%;
    background:
        radial-gradient(circle at top left, rgba(168, 85, 247, .18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, .12), transparent 30%),
        #08030f;
}

.checkout-shell {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr .9fr;
    gap: 28px;
    align-items: start;
}

.checkout-left,
.checkout-summary {
    background: rgba(17, 10, 31, .78);
    border: 1px solid rgba(168, 85, 247, .22);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    backdrop-filter: blur(18px);
}

.checkout-left h1 {
    font-size: clamp(32px, 5vw, 58px);
    margin-bottom: 12px;
}

.checkout-left p {
    color: #c9bdd8;
    max-width: 650px;
    line-height: 1.7;
}

.checkout-form {
    margin-top: 28px;
}

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

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #fff;
    border-radius: 16px;
    padding: 15px 16px;
    outline: none;
    font-size: 15px;
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
    color: rgba(255,255,255,.55);
}

.checkout-form textarea {
    min-height: 120px;
    margin-top: 16px;
    resize: vertical;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: #c084fc;
    box-shadow: 0 0 0 4px rgba(192,132,252,.12);
}

.checkout-pay-btn {
    margin-top: 22px;
    width: 100%;
    padding: 16px 22px;
    font-size: 16px;
}

.summary-label {
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 800;
}

.checkout-summary h2 {
    margin-top: 12px;
    font-size: 34px;
}

.summary-price {
    font-size: 52px;
    font-weight: 900;
    margin: 18px 0 26px;
    color: #fff;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #c9bdd8;
}

.summary-line strong {
    color: #fff;
}

.summary-note {
    margin-top: 22px;
    color: #b8abc8;
    line-height: 1.6;
    font-size: 14px;
}

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

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

    .checkout-left,
    .checkout-summary {
        padding: 24px;
    }
}

/* ================================
   CONTACT SALES PAGE
================================ */

.contact-sales-page {
    min-height: 100vh;
    padding: 80px 6%;
}

.contact-sales-container {
    max-width: 1250px;
    margin: auto;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 35px;
    align-items: start;
}


/* LEFT SIDE */

.contact-sales-info {
    padding-top: 25px;
}

.contact-sales-info h1 {
    font-size: clamp(36px, 5vw, 62px);
    margin: 20px 0;

    font-family:
        'Avenir Next',
        Avenir,
        system-ui,
        sans-serif;
}

.contact-sales-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}


.sales-benefits {
    margin-top: 35px;

    display: flex;
    flex-direction: column;
    gap: 16px;
}


.sales-benefits div {

    padding: 16px 18px;

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

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

    border-radius: 18px;

    color: #ffffff;
    font-weight: 600;
}



.sales-contact-box {

    margin-top: 35px;

    padding: 24px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.02)
        );

    border:
        1px solid rgba(255,255,255,.12);
}



/* FORM CARD */


.contact-sales-card {

    padding: 35px;

    border-radius: 30px;

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

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

    backdrop-filter: blur(20px);

    box-shadow:
        0 30px 80px rgba(0,0,0,.35);
}


.contact-sales-card h2 {

    margin-bottom: 25px;

    font-size: 28px;

    font-family:
        'Avenir Next',
        Avenir,
        sans-serif;
}


.sales-form-grid {

    display:grid;

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

    gap:16px;

}


.contact-sales-card input,
.contact-sales-card select,
.contact-sales-card textarea {

    width:100%;

    padding:15px 16px;

    border-radius:15px;

    border:
        1px solid rgba(255,255,255,.14);

    background:
        rgba(255,255,255,.06);

    color:white;

    outline:none;

}


.contact-sales-card textarea {

    margin-top:16px;

    min-height:120px;

    resize:vertical;
}


.contact-sales-card input::placeholder,
.contact-sales-card textarea::placeholder {

    color:
    rgba(255,255,255,.55);
}



.contact-sales-card input:focus,
.contact-sales-card textarea:focus,
.contact-sales-card select:focus {

    border-color:
        var(--shield-bright);

}



.sales-submit-btn {

    margin-top:22px;

    width:100%;

    padding:16px;

}



/* MOBILE RESPONSIVE */


@media(max-width:900px){

    .contact-sales-container {

        grid-template-columns:1fr;

    }


    .sales-form-grid {

        grid-template-columns:1fr;

    }


    .contact-sales-card {

        padding:24px;

    }

}

.contact-sales-card select option {
    background: #160820;
    color: #ffffff;
}
@keyframes heroLightCurtain {

    0% {
        transform:
            translateY(-4%)
            scaleX(0.92);

        opacity: 0.45;
    }


    50% {
        transform:
            translateY(2%)
            scaleX(1.08);

        opacity: 0.85;
    }


    100% {
        transform:
            translateY(-1%)
            scaleX(1);

        opacity: 0.65;
    }

}

/* ===============================
   AI NETWORK HERO BACKGROUND
================================ */

.ai-network-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}


/* glowing AI nodes */

.ai-network-bg span {
    position: absolute;

    width: 8px;
    height: 8px;

    background: rgba(232, 121, 249, 0.9);

    border-radius: 50%;

    box-shadow:
        0 0 15px rgba(232,121,249,.8),
        0 0 40px rgba(168,85,247,.6);

    animation: aiNodeFloat 8s ease-in-out infinite;
}


/* node positions */
.ai-network-bg span:nth-child(1) {
    top: 28%;
    left: 62%;
}

.ai-network-bg span:nth-child(2) {
    top: 45%;
    left: 75%;
}

.ai-network-bg span:nth-child(3) {
    top: 60%;
    left: 55%;
}

.ai-network-bg span:nth-child(4) {
    top: 72%;
    left: 70%;
}

.ai-network-bg span:nth-child(5) {
    top: 38%;
    left: 88%;
}



@keyframes aiNodeFloat {

    0% {
        transform: translateY(0) scale(1);
        opacity: .4;
    }


    50% {
        transform: translateY(-30px) scale(1.4);
        opacity: 1;
    }


    100% {
        transform: translateY(0) scale(1);
        opacity: .4;
    }

}

.network-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(232, 121, 249, 0.45),
        rgba(168, 85, 247, 0.35),
        transparent
    );
    box-shadow: 0 0 18px rgba(232,121,249,.35);
    transform-origin: left center;
    animation: networkPulse 5s ease-in-out infinite;
}

.line-1 {
    width: 25%;
    top: 40%;
    left: 60%;
    transform: rotate(18deg);
}

.line-2 {
    width: 22%;
    top: 58%;
    left: 58%;
    transform: rotate(-25deg);
}

.line-3 {
    width: 20%;
    top: 50%;
    left: 72%;
    transform: rotate(80deg);
}

@keyframes networkPulse {
    0%, 100% {
        opacity: 0.15;
        filter: blur(0px);
    }

    50% {
        opacity: 0.75;
        filter: blur(1px);
    }
}

/* Smooth merge between hero and next section */
.landing-hero {
    margin-bottom: -1px !important;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(168, 85, 247, 0.20), transparent 42%),
        linear-gradient(180deg, #08030f 0%, #12061f 72%, #08030f 100%) !important;
}

.landing-section {
    background:
        linear-gradient(180deg, #08030f 0%, #100621 45%, #08030f 100%) !important;
}

.landing-section.alt {
    background:
        linear-gradient(180deg, #08030f 0%, #100621 55%, #08030f 100%) !important;
}

/* remove visible hard separators */
.landing-hero::after {
    opacity: 0.45 !important;
}

.landing-section,
.landing-section.alt {
    border-top: none !important;
}

/* Floating glass navbar like reference video */
.landing-nav {
    position: fixed !important;
    top: 18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: min(1180px, calc(100% - 48px)) !important;
    padding: 12px 18px !important;

    border-radius: 999px !important;
    background: rgba(12, 4, 24, 0.58) !important;
    border: 1px solid rgba(232, 121, 249, 0.20) !important;

    backdrop-filter: blur(22px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(140%) !important;

    box-shadow:
        0 22px 70px rgba(0,0,0,0.36),
        inset 0 1px 0 rgba(255,255,255,0.08) !important;

    z-index: 1000 !important;
}

.landing-hero {
    padding-top: 130px !important;
}

/* Center nav links inside pill */
.landing-nav-links {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .landing-nav {
        top: 12px !important;
        width: calc(100% - 24px) !important;
        border-radius: 24px !important;
        padding: 12px 14px !important;
    }

    .landing-nav-links {
        position: static !important;
        transform: none !important;
    }

    .landing-hero {
        padding-top: 120px !important;
    }
}

/* ===============================
   PLAN SELECT PILL FIX
================================ */

.selected-plan-pill,
.plan-selected-pill,
.signup-plan-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 14px !important;

    padding: 14px 22px !important;

    font-family: 'Avenir Next', Avenir, 'Inter', system-ui, sans-serif !important;

    letter-spacing: 0.02em !important;
    text-transform: none !important;

    font-weight: 600 !important;

    border-radius: 999px;
}


/* plan text */
.selected-plan-pill span,
.plan-selected-pill span,
.signup-plan-badge span {
    display: flex;
    align-items: center;

    font-size: 0.82rem;

    letter-spacing: normal !important;
}


/* change link */
.selected-plan-pill a,
.plan-selected-pill a,
.signup-plan-badge a {

    display: inline-flex !important;
    align-items: center !important;

    margin: 0 !important;

    font-size: 0.8rem;

    line-height: 1;

    opacity: .75;
}

/* ===============================
   SIGNUP PLAN BADGE FINAL FIX
================================ */

.signup-plan-badge {
    display: inline-flex !important;
    flex-direction: row !important;

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

    gap: 18px !important;

    padding: 16px 26px !important;

    min-height: 54px;

    font-family: 'Avenir Next', Avenir, 'Inter', sans-serif !important;

    border-radius: 999px !important;
}


/* BASIC PLAN TEXT */
.signup-plan-badge span {
    display: flex !important;
    align-items: center !important;

    font-size: 0.92rem !important;
    font-weight: 700 !important;

    letter-spacing: 0.03em !important;

    line-height: 1 !important;
}


/* CHANGE BUTTON */
.signup-plan-badge a {
    display: flex !important;
    align-items: center !important;

    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 0.85rem !important;
    font-weight: 600 !important;

    line-height: 1 !important;

    transform: translateY(0) !important;
}

.signup-plan-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 18px !important;
}


.signup-plan-text {
    font-family: 'Avenir Next', Avenir, 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
}


.change-plan-link {
    display: flex !important;
    align-items: center !important;

    font-family: 'Avenir Next', Avenir, 'Inter', sans-serif !important;

    font-size: 0.85rem !important;
    font-weight: 600 !important;

    color: var(--muted) !important;

    text-decoration: none;

    line-height: 1 !important;
}

.signup-plan-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 18px !important;
}

.signup-plan-text {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

.change-plan-link {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    position: relative !important;
    top: -4px !important;

}


/* ===============================
   DASHBOARD PLAN MINI CARD
================================ */

.plan-mini-card {
    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 28px;

    min-width: 240px;

    border-radius: 24px;
}


.plan-mini-card h3 {
    margin-bottom: 8px;
}


.plan-mini-card p {
    margin-bottom: 20px;
}


.plan-mini-card .btn-brand,
.plan-mini-card a {

    width: fit-content;

}
/* ===============================
   PLANS PAGE ENTERPRISE CTA
================================ */

.plans-compare-note {
    max-width: 850px;
    margin: 70px auto 0 !important;

    text-align: center !important;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 45px 28px;

    border-radius: 32px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.08),
            rgba(168,85,247,0.08)
        );

    border: 1px solid rgba(232,121,249,0.18);

    backdrop-filter: blur(18px);

    box-shadow:
        0 30px 80px rgba(168,85,247,0.12);
}


.plans-compare-note h2,
.plans-compare-note h3 {
    text-align: center;

    font-size: clamp(1.8rem, 4vw, 2.7rem);

    margin-bottom: 18px;
}


.plans-compare-note p {

    max-width: 700px;

    margin: 0 auto 25px;

    text-align: center;

    color: rgba(255,255,255,0.75);

    line-height: 1.7;
}


.plans-compare-note .btn-brand,
.plans-compare-note a {

    display: inline-flex;

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

    margin: auto;

}


/* MOBILE RESPONSIVE */

@media(max-width:768px){

    .plans-compare-note{

        margin-top:45px !important;

        padding:35px 20px;

        border-radius:24px;
    }


    .plans-compare-note h2,
    .plans-compare-note h3{

        font-size:1.7rem;

    }


    .plans-compare-note p{

        font-size:.95rem;

    }

}

.plans-sales-cta {
    max-width: 850px !important;
    margin: 70px auto 0 !important;
    padding: 45px 28px !important;

    text-align: center !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    border-radius: 32px !important;
    background: rgba(255,255,255,0.055) !important;
    border: 1px solid rgba(232,121,249,0.18) !important;
    backdrop-filter: blur(18px) !important;
}

.plans-sales-cta h3,
.plans-sales-cta p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.plans-sales-cta p {
    max-width: 680px !important;
    margin-bottom: 24px !important;
}

.plans-sales-cta .btn-brand {
    margin: 0 auto !important;
}


/* =====================================================
   CLEAN UNIFIED FOOTER
===================================================== */

.legal-site-footer.unified-footer {
    margin-top: 32px;
    padding: 18px 20px 14px;
    background: #080312;
    border-top: 1px solid rgba(192, 132, 252, 0.18);
}

.unified-footer-inner {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.unified-footer-links,
.unified-footer-contact,
.unified-footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 11px;
    color: rgba(233, 213, 255, 0.68);
    font-size: 0.72rem;
    line-height: 1.5;
}

.unified-footer-links a,
.unified-footer-contact a {
    color: rgba(233, 213, 255, 0.78);
    text-decoration: none;
}

.unified-footer-links a:hover,
.unified-footer-contact a:hover {
    color: #e879f9;
}

.unified-footer-links > span,
.unified-footer-contact > span {
    color: rgba(192, 132, 252, 0.45);
}

.unified-footer-contact > span:first-child {
    color: rgba(233, 213, 255, 0.68);
}

.unified-footer-copyright {
    margin-top: 2px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    color: rgba(233, 213, 255, 0.42);
}

@media (max-width: 640px) {
    .legal-site-footer.unified-footer {
        padding: 16px 14px 12px;
    }

    .unified-footer-links,
    .unified-footer-contact,
    .unified-footer-copyright {
        font-size: 0.68rem;
        gap: 6px 8px;
    }
}


/* =====================================================
   PURCHASE TERMS MODAL
===================================================== */

.purchase-terms-overlay[hidden] {
    display: none !important;
}

.purchase-terms-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 2, 12, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.purchase-terms-modal {
    position: relative;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border: 1px solid rgba(192, 132, 252, 0.28);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at top right,
            rgba(126, 34, 206, 0.18),
            transparent 36%
        ),
        #10071c;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.purchase-terms-modal h2 {
    margin: 8px 0 10px;
}

.purchase-terms-modal > p {
    margin-bottom: 18px;
    color: rgba(245, 240, 250, 0.68);
}

.purchase-terms-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(192, 132, 252, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.purchase-terms-close:hover {
    border-color: rgba(232, 121, 249, 0.7);
    background: rgba(232, 121, 249, 0.1);
}

.purchase-terms-summary {
    padding: 18px;
    border: 1px solid rgba(192, 132, 252, 0.16);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.025);
}

.purchase-terms-summary p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.purchase-terms-summary ul {
    margin: 0;
    padding-left: 20px;
    color: rgba(245, 240, 250, 0.68);
}

.purchase-terms-summary li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.purchase-policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 18px 0;
}

.purchase-policy-links a {
    color: #d8b4fe;
    font-size: 0.82rem;
    text-decoration: none;
}

.purchase-policy-links a:hover {
    color: #f0abfc;
    text-decoration: underline;
}

.purchase-acceptance-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(192, 132, 252, 0.18);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(245, 240, 250, 0.78);
    font-size: 0.82rem;
    line-height: 1.5;
    cursor: pointer;
}

.purchase-acceptance-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #a855f7;
    flex-shrink: 0;
}

.purchase-continue-btn {
    width: 100%;
    margin-top: 18px;
}

.purchase-continue-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    transform: none;
}

body.purchase-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .purchase-terms-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .purchase-terms-modal {
        width: 100%;
        max-height: 92vh;
        padding: 24px 18px 20px;
        border-radius: 20px 20px 14px 14px;
    }

    .purchase-policy-links {
        flex-direction: column;
        gap: 8px;
    }
}


/* =====================================================
   PROFESSIONAL LEGAL DOCUMENT PAGES
===================================================== */

.legal-document-page {
    padding: 56px 20px 72px;
}

.legal-document-container {
    width: min(920px, 100%);
    margin: 0 auto;
}

.legal-document-header {
    margin-bottom: 24px;
}

.legal-document-header h1 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.legal-document-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: rgba(245, 240, 250, 0.55);
    font-size: 0.82rem;
}

.legal-document-meta span {
    color: rgba(192, 132, 252, 0.55);
}

.legal-document-card {
    padding: 34px 38px;
    border: 1px solid rgba(192, 132, 252, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at top right,
            rgba(126, 34, 206, 0.09),
            transparent 34%
        ),
        rgba(12, 6, 22, 0.78);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.legal-document-section {
    padding: 0 0 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(192, 132, 252, 0.1);
}

.legal-document-section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.legal-document-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.18rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.legal-document-section h2 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 25px;
    padding: 0 7px;
    border: 1px solid rgba(192, 132, 252, 0.24);
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.08);
    color: #d8b4fe;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.legal-document-section p {
    margin: 0 0 10px;
    color: rgba(245, 240, 250, 0.68);
    font-size: 0.94rem;
    line-height: 1.75;
}

.legal-document-section p:last-child {
    margin-bottom: 0;
}

.legal-document-section a {
    color: #d8b4fe;
    text-decoration: none;
}

.legal-document-section a:hover {
    color: #f0abfc;
    text-decoration: underline;
}

.legal-contact-box {
    padding: 16px 18px;
    border: 1px solid rgba(192, 132, 252, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.legal-contact-box p {
    margin-bottom: 5px;
}

.legal-contact-box a {
    font-weight: 600;
}

@media (max-width: 700px) {
    .legal-document-page {
        padding: 38px 14px 54px;
    }

    .legal-document-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .legal-document-section {
        padding-bottom: 22px;
        margin-bottom: 22px;
    }

    .legal-document-section h2 {
        align-items: flex-start;
        font-size: 1.05rem;
    }

    .legal-document-section p {
        font-size: 0.88rem;
        line-height: 1.7;
    }
}

/* =====================================================
   COMPACT PROFESSIONAL PURCHASE MODAL
===================================================== */

.purchase-terms-overlay {
    height: 100dvh;
    padding: 18px;
    overflow: hidden;
}

.purchase-terms-modal {
    width: min(580px, 100%);
    max-height: none;
    overflow: visible;
    padding: 22px 24px 20px;
    border-radius: 20px;
    animation: purchaseModalPop 0.22s ease-out;
}

.purchase-terms-modal h2 {
    margin: 5px 0 7px;
    font-size: 1.65rem;
    line-height: 1.15;
}

.purchase-terms-modal > p {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.purchase-terms-close {
    top: 11px;
    right: 13px;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
}

.purchase-terms-summary {
    padding: 13px 15px;
    border-radius: 13px;
}

.purchase-terms-summary p {
    margin-bottom: 7px;
    font-size: 0.9rem;
}

.purchase-terms-summary ul {
    padding-left: 18px;
    font-size: 0.83rem;
}

.purchase-terms-summary li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.purchase-policy-links {
    margin: 11px 0;
    gap: 7px 14px;
}

.purchase-policy-links a {
    font-size: 0.76rem;
}

.purchase-acceptance-row {
    padding: 10px 12px;
    font-size: 0.76rem;
    line-height: 1.4;
}

.purchase-continue-btn {
    margin-top: 12px;
    min-height: 42px;
}

@keyframes purchaseModalPop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .purchase-terms-overlay {
        align-items: center;
        padding: 10px;
    }

    .purchase-terms-modal {
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
        padding: 20px 16px 16px;
        border-radius: 18px;
    }

    .purchase-terms-modal h2 {
        font-size: 1.35rem;
    }
}





/* =========================================================
   LANDING PAGE - MOBILE RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    /* Navbar */
    .landing-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        min-height: 64px;
    }

    .landing-nav .brand-area {
        min-width: 0;
        overflow: hidden;
        gap: 8px;
    }

    .landing-nav .brand-logo {
        width: clamp(72px, 22vw, 100px);
        height: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .landing-nav .brand-copy {
        display: none;
    }

    .landing-nav .nav-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        white-space: nowrap;
    }

    .landing-nav .nav-actions .btn-outline-soft,
    .landing-nav .nav-actions .btn-brand {
        padding: 8px clamp(10px, 2.8vw, 14px);
        font-size: clamp(0.72rem, 2.8vw, 0.8rem);
        white-space: nowrap;
    }

    /* Feature section */
    .landing-section {
        padding: 54px 16px;
    }

    .landing-section-inner {
        width: 100%;
    }

    .section-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.16em;
        margin-bottom: 10px;
    }

    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
        line-height: 1.05;
        margin-bottom: 14px;
    }

    .section-lede {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }

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

    .feature-card {
        padding: 16px;
        min-height: auto;
        border-radius: 16px;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 12px;
    }

    .feature-icon svg {
        width: 18px;
        height: 18px;
    }

    .feature-card h4 {
        font-size: 1rem;
        margin-bottom: 7px;
    }

    .feature-card p {
        font-size: 0.82rem;
        line-height: 1.5;
        margin: 0;
    }
}

/* Extra-small mobile */
@media (max-width: 380px) {
    .landing-nav {
        padding: 9px 10px;
        gap: 6px;
    }

    .landing-nav .brand-logo {
        width: 70px;
    }

    .landing-nav .nav-actions {
        gap: 5px;
    }

    .landing-nav .nav-actions .btn-outline-soft,
    .landing-nav .nav-actions .btn-brand {
        padding: 7px 9px;
        font-size: 0.7rem;
    }
}


/* =========================================================
   LANDING HERO VISUAL - MOBILE COMPACT
========================================================= */

@media (max-width: 768px) {
    .ai-companion {
        transform: scale(0.68);
        transform-origin: center top;
        margin-bottom: -38px;
    }

    .ai-companion-status {
        font-size: 0.62rem;
        padding: 6px 10px;
    }

    .product-shell {
        padding: 8px;
        border-radius: 18px;
        max-width: 100%;
    }

    .product-shell-top {
        min-height: 34px;
        padding: 0 4px 8px;
    }

    .secure-pill {
        font-size: 0.58rem;
        padding: 5px 9px;
    }

    .window-dots span {
        width: 7px;
        height: 7px;
    }

    .product-grid-preview {
        gap: 8px;
    }

    .candidate-preview {
        min-height: 145px;
        border-radius: 15px;
    }

    .face-frame {
        width: 72px;
        height: 72px;
    }

    .preview-label {
        left: 9px;
        bottom: 9px;
        font-size: 0.62rem;
        padding: 5px 8px;
    }

    .side-preview {
        gap: 8px;
    }

    .mini-tile {
        min-height: 34px;
        padding: 7px 9px;
        border-radius: 12px;
        font-size: 0.58rem;
    }

    .demo-toast-stack {
        gap: 8px;
        margin-top: 9px;
    }

    .demo-alert {
        min-height: auto;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .demo-alert strong {
        font-size: 0.62rem;
    }

    .demo-alert span {
        font-size: 0.56rem;
        margin-top: 3px;
    }
}

@media (max-width: 380px) {
    .ai-companion {
        transform: scale(0.7);
        margin-bottom: -28px;
    }

    .candidate-preview {
        min-height: 150px;
    }

    .face-frame {
        width: 78px;
        height: 78px;
    }

    .mini-tile {
        min-height: 38px;
    }
}


/* =========================================================
   DEMO VIDEO - STABLE RESPONSIVE FIT
========================================================= */

.demo-video-frame {
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #06010d;
    border-radius: 20px;
}

.demo-showcase-video {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: contain !important;
    object-position: center center;
    background: #06010d;
    border-radius: 0;
}

@media (max-width: 768px) {
    .demo-video-frame {
        width: 92% !important;
        margin-inline: auto !important;
        border-radius: 16px;
    }

    .demo-showcase-video {
        width: 100% !important;
        height: auto !important;
    }
}



/* =========================================================
   AUTH PAGES - MOBILE LAYOUT
========================================================= */

@media (max-width: 768px) {
    .auth-page,
    .auth-layout,
    .login-page {
        min-height: 100svh;
        display: block;
    }

    .auth-visual,
    .auth-left,
    .login-left {
        display: none !important;
    }

    .auth-form-side,
    .auth-right,
    .login-right {
        width: 100% !important;
        min-height: 100svh;
        padding: 24px 16px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .auth-card,
    .login-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 26px 20px;
        border-radius: 22px;
    }

    .auth-card h1,
    .login-card h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }

    .auth-card input,
    .login-card input {
        width: 100%;
        min-height: 48px;
    }

    .auth-card button,
    .login-card button,
    .auth-card .btn-brand,
    .login-card .btn-brand {
        width: 100%;
        min-height: 48px;
    }
}


/* =========================================================
   LOGIN PAGE - MOBILE RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    .login-body {
        min-height: 100svh;
        overflow-x: hidden;
    }

    .login-shell {
        min-height: 100svh;
        display: block;
    }

    .login-brand-side {
        display: none !important;
    }

    .login-form-side {
        width: 100% !important;
        min-height: 100svh;
        padding: 20px 14px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 26px 20px !important;
        border-radius: 22px;
    }

    .login-card h2 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 8px;
    }

    .login-card > p {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .google-auth-btn {
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .form-block {
        margin-bottom: 16px;
    }

    .form-block label {
        font-size: 0.75rem;
    }

    .login-card .form-control {
        width: 100%;
        min-height: 48px;
        font-size: 0.95rem;
    }

    .login-card .btn-brand {
        width: 100%;
        min-height: 48px;
    }

    .forgot-link {
        display: inline-block;
        margin-top: 12px;
        font-size: 0.84rem;
    }

    .security-note {
        font-size: 0.72rem;
        line-height: 1.5;
        text-align: center;
        margin-top: 22px;
    }
}


/* =========================================
   SIGNUP PAGE — MOBILE RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .signup-auth-body {
        min-height: 100svh;
        overflow-x: hidden;
    }

    .signup-auth-shell {
        width: 100%;
        min-height: 100svh;
        display: block;
        padding: 0;
    }

    /* Top introduction section */
    .signup-brand-panel {
        width: 100%;
        min-height: auto;
        padding: 28px 20px 18px;
        text-align: center;
    }

    .signup-brand-content {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
    }

    .signup-logo {
        width: 88px;
        height: auto;
        margin: 0 auto 14px;
    }

    .signup-kicker {
        margin-bottom: 10px;
        font-size: 0.72rem;
    }

    .signup-brand-content h1 {
        max-width: 330px;
        margin: 0 auto 12px;
        font-size: clamp(1.8rem, 8vw, 2.25rem);
        line-height: 1.04;
        letter-spacing: -0.04em;
    }

    .signup-brand-content p {
        max-width: 365px;
        margin: 0 auto;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    /* Form section */
    .signup-form-panel {
        width: 100%;
        min-height: auto;
        padding: 8px 14px 30px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .signup-card {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
        padding: 24px 18px;
        border-radius: 22px;
    }

    .signup-card h2 {
        margin: 8px 0 10px;
        font-size: 1.65rem;
        line-height: 1.1;
    }

    .signup-card .auth-subtitle {
        margin-bottom: 18px;
        font-size: 0.88rem;
        line-height: 1.5;
    }

    /* Selected plan badge */
    .signup-plan-badge {
        min-height: 58px;
        margin-bottom: 20px;
        padding: 12px 16px;
        gap: 12px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .signup-plan-text {
        flex: 1;
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .change-plan-link {
        flex-shrink: 0;
        font-size: 0.76rem;
    }

    /* Google button */
    .signup-card .google-auth-btn {
        width: 100%;
        min-height: 48px;
        margin-bottom: 16px;
        border-radius: 13px;
        font-size: 0.9rem;
    }

    .signup-card .auth-divider {
        margin: 16px 0;
    }

    /* Form fields */
    .signup-card .form-block {
        margin-bottom: 15px;
    }

    .signup-card .form-block label {
        margin-bottom: 7px;
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }

    .signup-card .form-control {
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .signup-action-row {
        margin-top: 6px;
    }

    .signup-submit-btn {
        width: 100%;
        min-height: 50px;
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 13px;
    }

    .signup-card .forgot-link {
        display: block;
        margin-top: 17px;
        text-align: center;
        font-size: 0.82rem;
    }

    .signup-card .security-note {
        margin-top: 20px;
        padding-top: 16px;
        text-align: center;
        font-size: 0.68rem;
        line-height: 1.5;
    }
}

/* Extra-small phones */
@media (max-width: 380px) {

    .signup-brand-panel {
        padding: 22px 16px 14px;
    }

    .signup-brand-content h1 {
        font-size: 1.7rem;
    }

    .signup-brand-content p {
        font-size: 0.84rem;
    }

    .signup-form-panel {
        padding-inline: 10px;
    }

    .signup-card {
        padding: 22px 15px;
    }

    .signup-plan-badge {
        padding-inline: 14px;
    }

    .signup-plan-text {
        font-size: 0.72rem;
    }
}



@media (max-width: 768px) {

    .signup-brand-panel {
        padding-top: 18px;
        padding-bottom: 10px;
    }

    .signup-logo {
        width: 74px;
        margin-bottom: 8px;
    }

    .signup-kicker {
        margin-bottom: 7px;
    }

    .signup-brand-content h1 {
        margin-bottom: 8px;
        font-size: clamp(1.7rem, 7.6vw, 2rem);
    }

    .signup-brand-content p {
        font-size: 0.84rem;
        line-height: 1.42;
    }

    .signup-form-panel {
        padding-top: 0;
    }

    .signup-card {
        margin-top: 0;
    }

    .signup-plan-badge {
        min-height: 64px;
        border-radius: 22px;
    }

    .signup-plan-text {
        max-width: 180px;
        font-size: 0.76rem;
        line-height: 1.15;
    }
}


/* =========================================
   HR DASHBOARD — MOBILE RESPONSIVE FIX
========================================= */

@media (max-width: 768px) {

    /* Main spacing */
    .dashboard-hero-row,
    .dashboard-stats-grid,
    .dashboard-panel-section {
        width: 100%;
        max-width: 100%;
    }

    /* Hero section */
    .dashboard-hero-row {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 22px 14px 18px;
        text-align: center;
    }

    .dashboard-hero-row > div:first-child {
        width: 100%;
    }

    .dashboard-hero-row .section-kicker {
        margin-bottom: 8px;
        font-size: 0.68rem;
    }

    .dashboard-hero-row h1 {
        margin: 0 0 10px;
        font-size: 1.8rem;
        line-height: 1.08;
        letter-spacing: -0.04em;
    }

    .dashboard-hero-row p {
        max-width: 360px;
        margin: 0 auto;
        font-size: 0.86rem;
        line-height: 1.5;
    }

    /* Plan and button */
    .dashboard-hero-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: stretch;
    }

    .current-plan-card {
        width: 100%;
        min-height: auto;
        padding: 16px;
        border-radius: 18px;
        text-align: center;
    }

    .current-plan-card span {
        font-size: 0.65rem;
    }

    .current-plan-card strong {
        margin: 4px 0;
        font-size: 1.2rem;
    }

    .current-plan-card small {
        font-size: 0.72rem;
    }

    .current-plan-card a {
        display: inline-block;
        margin-top: 8px;
        font-size: 0.78rem;
    }

    .dashboard-hero-actions > .btn-brand {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        border-radius: 14px;
        font-size: 0.9rem;
    }

    /* Stats grid */
    .dashboard-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0 14px 20px;
    }

    .dashboard-stats-grid .stat-card {
        min-height: 104px;
        padding: 16px;
        border-radius: 18px;
    }

    .dashboard-stats-grid .stat-card span {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .dashboard-stats-grid .stat-card strong {
        margin-top: 8px;
        font-size: 1.7rem;
    }

    /* Main panel */
    .dashboard-panel-section {
        margin: 0;
        padding: 16px 14px 24px;
        border-radius: 0;
        overflow: hidden;
    }

    .dashboard-panel-section .panel-header {
        margin-bottom: 16px;
    }

    /* Tabs */
    .dash-tab-switcher {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 5px;
        border-radius: 16px;
    }

    .dash-tab {
        width: 100%;
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 0.78rem;
        justify-content: center;
    }

    .dash-tab-count {
        min-width: 20px;
        height: 20px;
        font-size: 0.66rem;
    }

    /* Table becomes horizontal scroll */
    .dashboard-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .dashboard-table {
        width: max-content;
        min-width: 1050px;
        table-layout: auto;
    }

    .dashboard-table th,
    .dashboard-table td {
        white-space: nowrap;
        padding: 12px 14px;
        font-size: 0.76rem;
        vertical-align: middle;
    }

    .dashboard-table th {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }

    /* Keep first column visible */
    .dashboard-table th:first-child,
    .dashboard-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        min-width: 150px;
        background: #14051f;
    }

    .dashboard-table th:first-child {
        z-index: 4;
    }

    .dashboard-person-cell {
        min-width: 130px;
        gap: 9px;
    }

    .dashboard-person-cell strong {
        display: block;
        max-width: 95px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .candidate-avatar {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.72rem;
    }

    .dashboard-email-cell {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-title-cell {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-schedule-cell strong,
    .dashboard-schedule-cell span {
        display: block;
    }

    /* Buttons */
    .dashboard-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .dashboard-table .table-btn {
        min-height: 34px;
        padding: 7px 10px;
        border-radius: 9px;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .status-pill,
    .risk-pill {
        font-size: 0.68rem;
        padding: 6px 9px;
    }

    /* Empty state */
    .dashboard-table .empty-state {
        min-width: 300px;
        padding: 38px 18px;
        text-align: center;
    }

    .dashboard-table .empty-state h3 {
        font-size: 1rem;
    }

    .dashboard-table .empty-state p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    /* Plan alert */
    .dashboard-plan-alert {
        margin: 12px 14px;
        padding: 12px 14px;
        font-size: 0.8rem;
        line-height: 1.45;
        border-radius: 13px;
    }
}

/* Small phones */
@media (max-width: 380px) {

    .dashboard-hero-row {
        padding-inline: 11px;
    }

    .dashboard-stats-grid {
        gap: 9px;
        padding-inline: 11px;
    }

    .dashboard-stats-grid .stat-card {
        min-height: 96px;
        padding: 14px;
    }

    .dashboard-panel-section {
        padding-inline: 10px;
    }

    .dashboard-hero-row h1 {
        font-size: 1.65rem;
    }

    .dashboard-hero-row p {
        font-size: 0.81rem;
    }
}




@media (max-width: 768px) {

    .dashboard-hero-row {
        gap: 15px;
        padding: 16px 12px 14px;
    }

    .dashboard-hero-row h1 {
        font-size: 1.55rem;
        margin-bottom: 7px;
    }

    .dashboard-hero-row p {
        max-width: 330px;
        font-size: 0.76rem;
        line-height: 1.42;
    }

    .current-plan-card {
        padding: 13px 14px;
        border-radius: 15px;
    }

    .current-plan-card span {
        font-size: 0.58rem;
    }

    .current-plan-card strong {
        margin: 3px 0;
        font-size: 1.05rem;
    }

    .current-plan-card small {
        font-size: 0.65rem;
    }

    .current-plan-card a {
        margin-top: 6px;
        font-size: 0.7rem;
    }

    .dashboard-hero-actions > .btn-brand {
        min-height: 42px;
        font-size: 0.78rem;
        border-radius: 12px;
    }

    .dashboard-stats-grid {
        gap: 9px;
        padding: 0 12px 16px;
    }

    .dashboard-stats-grid .stat-card {
        min-height: 82px;
        padding: 13px 14px;
        border-radius: 15px;
    }

    .dashboard-stats-grid .stat-card span {
        font-size: 0.56rem;
    }

    .dashboard-stats-grid .stat-card strong {
        margin-top: 5px;
        font-size: 1.35rem;
    }
}


/* =========================================
   CREATE INTERVIEW — COMPACT MOBILE
========================================= */

@media (max-width: 768px) {

    .hero-row.compact {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 18px 12px 14px;
        text-align: center;
    }

    .hero-row.compact .section-kicker {
        margin-bottom: 6px;
        font-size: 0.62rem;
    }

    .hero-row.compact h1 {
        margin: 0 0 8px;
        font-size: 1.55rem;
        line-height: 1.08;
    }

    .hero-row.compact p {
        max-width: 340px;
        margin: 0 auto;
        font-size: 0.76rem;
        line-height: 1.42;
    }

    .hero-row.compact > .btn-outline-soft {
        width: 100%;
        min-height: 40px;
        padding: 9px 14px;
        border-radius: 12px;
        justify-content: center;
        font-size: 0.74rem;
    }

    .create-interview-panel {
        width: 100%;
        margin: 0;
        padding: 14px 12px 24px;
        border-radius: 0;
    }

    .create-interview-panel .notice-box {
        margin-bottom: 14px;
        padding: 12px;
        border-radius: 12px;
        font-size: 0.76rem;
        line-height: 1.42;
    }

    .create-form-section {
        padding: 14px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .create-form-section .section-kicker {
        margin-bottom: 12px;
        font-size: 0.62rem;
    }

    .create-form-two-col {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .create-schedule-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .create-interview-panel .form-block {
        margin-bottom: 13px;
    }

    .create-interview-panel .form-block:last-child {
        margin-bottom: 0;
    }

    .create-interview-panel .form-block label {
        margin-bottom: 6px;
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }

    .create-interview-panel .form-control {
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 11px;
        font-size: 0.8rem;
    }

    .time-help-text,
    #panelLimitMessage {
        margin-top: 6px !important;
        font-size: 0.66rem !important;
        line-height: 1.4;
    }

    .panel-select-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .panel-check-card {
        min-height: 58px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .panel-check-card strong {
        font-size: 0.78rem;
    }

    .panel-check-card small {
        font-size: 0.66rem;
        line-height: 1.35;
    }

    .create-action-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 14px;
    }

    .create-action-row .btn-brand,
    .create-action-row .btn-outline-soft {
        width: 100%;
        min-height: 42px;
        padding: 10px 14px;
        border-radius: 12px;
        justify-content: center;
        font-size: 0.76rem;
    }

    .plan-expired-alert {
        margin-bottom: 12px;
        padding: 11px 12px;
        font-size: 0.74rem;
        line-height: 1.4;
        border-radius: 12px;
    }
}

@media (max-width: 380px) {

    .hero-row.compact {
        padding-inline: 10px;
    }

    .hero-row.compact h1 {
        font-size: 1.45rem;
    }

    .hero-row.compact p {
        font-size: 0.72rem;
    }

    .create-interview-panel {
        padding-inline: 10px;
    }

    .create-form-section {
        padding: 12px;
    }
}


/* Cookie consent — square modal */
.cookie-consent-modal,
.cookie-modal,
.cookie-consent-box {
    border-radius: 14px !important;
}

.cookie-consent-modal .btn-brand,
.cookie-consent-modal .btn-outline-soft,
.cookie-modal .btn-brand,
.cookie-modal .btn-outline-soft,
.cookie-consent-box .btn-brand,
.cookie-consent-box .btn-outline-soft {
    border-radius: 10px !important;
}

/* Candidate consent checkbox mobile overflow fix */
.candidate-body .consent-check {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    width: 100% !important;
    overflow: hidden !important;
}

.candidate-body .consent-check input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
}

.candidate-body .consent-check span {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

/* =========================================================
   CANDIDATE ROOM — MOBILE SAME-SCREEN VIDEO LAYOUT
   Candidate + Host/Panel visible without page scrolling
========================================================= */

/* Mobile portrait */
@media (max-width: 640px) and (orientation: portrait) {
    body.room-body {
        width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden !important;
    }

    .room-layout {
        height: 100dvh !important;
        min-height: 100dvh !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        overflow: hidden !important;
    }

    .room-topbar {
        min-height: 64px !important;
        padding: 8px 12px !important;
        flex-wrap: nowrap !important;
    }

    .room-logo {
        height: 30px !important;
    }

    .room-divider {
        height: 28px !important;
    }

    .room-title {
        max-width: 150px !important;
        font-size: 0.82rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .room-candidate {
        max-width: 150px !important;
        font-size: 0.68rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .room-actions {
        width: auto !important;
        flex: 0 0 auto !important;
        gap: 6px !important;
    }

    .live-badge {
        padding: 5px 8px !important;
        font-size: 0.60rem !important;
    }

    .btn-end-top {
        display: none !important;
    }

    .room-content.candidate-room-content {
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;

        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows:
            minmax(0, 1.6fr)
            minmax(125px, 0.75fr) !important;

        gap: 8px !important;
        padding: 8px 8px 82px !important;
    }

    .candidate-main-stage.video-panel {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        border-radius: 16px !important;
    }

    .candidate-main-stage .candidate-main-video {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    .candidate-main-stage #webcam {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: cover !important;
        border-radius: 16px !important;
    }

    .candidate-main-stage .camera-label {
        top: 9px !important;
        left: 9px !important;
        padding: 5px 8px !important;
        font-size: 0.62rem !important;
    }

    .candidate-participant-rail {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;

        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 0 3px !important;
        scroll-snap-type: x proximity;
    }

    .candidate-participant-rail #adminTiles.candidate-side-tiles {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: max-content !important;
        min-width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
    }

    .candidate-participant-rail .admin-video-tile,
    .candidate-side-empty-state {
        flex: 0 0 calc(50vw - 12px) !important;
        width: calc(50vw - 12px) !important;
        min-width: calc(50vw - 12px) !important;
        height: 100% !important;
        min-height: 0 !important;
        border-radius: 14px !important;
        scroll-snap-align: start;
    }

    .candidate-participant-rail .admin-video-tile video {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        border-radius: 14px !important;
    }

    .candidate-participant-rail .tile-label {
        top: 7px !important;
        left: 7px !important;
        font-size: 0.66rem !important;
    }

    .candidate-side-empty-state {
        padding: 10px !important;
        font-size: 0.72rem !important;
    }

    .candidate-control-bar {
        left: 50% !important;
        bottom: max(8px, env(safe-area-inset-bottom)) !important;
        transform: translateX(-50%) !important;
        padding: 7px 11px !important;
        gap: 10px !important;
    }

    .candidate-control-btn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        padding: 0 !important;
        flex: 0 0 46px !important;
        font-size: 1.05rem !important;
    }
}

/* Mobile landscape */
@media (max-height: 520px) and (orientation: landscape) {
    body.room-body {
        width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden !important;
    }

    .room-layout {
        height: 100dvh !important;
        min-height: 100dvh !important;
        grid-template-rows: 54px minmax(0, 1fr) !important;
        overflow: hidden !important;
    }

    .room-topbar {
        height: 54px !important;
        min-height: 54px !important;
        padding: 5px 12px !important;
        flex-wrap: nowrap !important;
    }

    .room-logo {
        height: 28px !important;
    }

    .room-title {
        max-width: 240px !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .room-candidate {
        font-size: 0.64rem !important;
    }

    .btn-end-top {
        display: none !important;
    }

    .room-content.candidate-room-content {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;

        display: grid !important;
        grid-template-columns: minmax(0, 1.55fr) minmax(210px, 0.75fr) !important;
        grid-template-rows: 1fr !important;

        gap: 8px !important;
        padding: 7px 8px 68px !important;
    }

    .candidate-main-stage.video-panel,
    .candidate-main-stage .candidate-main-video {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        border-radius: 14px !important;
    }

    .candidate-main-stage #webcam {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: cover !important;
        border-radius: 14px !important;
    }

    .candidate-main-stage .camera-label {
        top: 7px !important;
        left: 7px !important;
        padding: 4px 7px !important;
        font-size: 0.58rem !important;
    }

    .candidate-participant-rail {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;

        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-rows: minmax(0, 1fr) !important;
        gap: 7px !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 0 2px 0 0 !important;
    }

    .candidate-participant-rail #adminTiles.candidate-side-tiles {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-rows: minmax(135px, 1fr) !important;
        gap: 7px !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
    }

    .candidate-participant-rail .admin-video-tile,
    .candidate-side-empty-state {
        width: 100% !important;
        height: 100% !important;
        min-height: 135px !important;
        border-radius: 13px !important;
    }

    .candidate-participant-rail .admin-video-tile video {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        border-radius: 13px !important;
    }

    .candidate-control-bar {
        bottom: 6px !important;
        padding: 6px 10px !important;
        gap: 9px !important;
    }

    .candidate-control-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        flex: 0 0 42px !important;
        font-size: 0.98rem !important;
    }
}