﻿/*
 * ============================================================
 *  StrangerTalks — Unified Responsive Stylesheet
 *  Design: "Void Frequency" — dark, raw, electric
 *  Fonts: Syne (display) / DM Mono (accents) / Inter (body)
 * ============================================================
 */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    /* Color palette */
    --bg:            #09090f;
    --bg-mid:        #0d0d18;
    --surface:       rgba(14, 14, 30, 0.72);
    --surface-hi:    rgba(255, 255, 255, 0.04);
    --border:        rgba(255, 255, 255, 0.07);
    --border-hi:     rgba(255, 255, 255, 0.14);

    /* Brand accents */
    --primary:       #7c3aed;   /* vivid violet */
    --primary-dim:   rgba(124, 58, 237, 0.18);
    --primary-glow:  rgba(124, 58, 237, 0.45);
    --accent:        #22d3ee;   /* electric cyan */
    --accent-dim:    rgba(34, 211, 238, 0.14);
    --accent-glow:   rgba(34, 211, 238, 0.35);
    --danger:        #ef4444;
    --warn:          #f59e0b;
    --success:       #10b981;

    /* Typography */
    --text:          #f1f5f9;
    --text-muted:    #64748b;
    --text-dim:      #94a3b8;
    --font-display:  'Syne', system-ui, sans-serif;
    --font-mono:     'DM Mono', 'Fira Code', monospace;
    --font-body:     'Inter', system-ui, sans-serif;

    /* Spacing scale */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-8: 3rem;

    /* Radius */
    --r-sm:  8px;
    --r-md:  14px;
    --r-lg:  20px;
    --r-xl:  28px;
    --r-pill: 999px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast:   0.15s var(--ease);
    --t-normal: 0.25s var(--ease);
    --t-slow:   0.4s  var(--ease);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.5);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.6);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    /* Mobile browsers: fill available height */
    height: 100dvh;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--text); }
ul { list-style: none; }

/* ── 3D Background Canvas ─────────────────────────────────── */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── App Shell ────────────────────────────────────────────── */
#ui-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.08) 0%, transparent 70%);
}

/* ── Header ───────────────────────────────────────────────── */
.app-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-3) var(--sp-5);
    border-bottom: 1px solid var(--border);
    background: rgba(9, 9, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Logo */
.logo {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 2.5vw, 1.4rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.4em;
}

.logo-accent {
    color: var(--accent);
    text-shadow: 0 0 14px var(--accent-glow);
}

.logo-tagline {
    font-family: var(--font-mono);
    font-size: 0.55em;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    display: none; /* shown ≥ 768px */
}

@media (min-width: 600px) { .logo-tagline { display: inline; } }

/* Connection Status Badge */
.status {
    flex-shrink: 0;
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--r-pill);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    transition: all var(--t-normal);
}
.status.offline  { background: rgba(239,68,68,0.15); color: #fca5a5; border-color: rgba(239,68,68,0.3); }
.status.searching{ background: rgba(245,158,11,0.15); color: #fcd34d; border-color: rgba(245,158,11,0.3); animation: pulse-badge 2s infinite; }
.status.connected{ background: rgba(16,185,129,0.15); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* ══════════════════════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════════════════════ */
.landing-page {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-6);
    padding: var(--sp-8) var(--sp-5) var(--sp-8);
    /* Subtle animated noise grain for texture */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero-block {
    text-align: center;
    max-width: 640px;
    animation: fadeUp 0.6s var(--ease) both;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-4);
}

.gradient-text {
    background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Action Card ──────────────────────────────────────────── */
.action-card {
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-hi);
    border-radius: var(--r-xl);
    padding: var(--sp-6);
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(124,58,237,0.06);
    animation: fadeUp 0.7s var(--ease) 0.1s both;
}

/* Field label */
.field-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--sp-3);
}

/* ── Gender Selection ─────────────────────────────────────── */
.gender-section {
    transition: box-shadow var(--t-normal), border-radius var(--t-normal);
    border-radius: var(--r-md);
}

.gender-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
}

.gender-card { cursor: pointer; }
.gender-card input[type="radio"] { display: none; }

.gender-card .card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-3);
    border-radius: var(--r-md);
    background: var(--surface-hi);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--t-normal);
    user-select: none;
}

.gender-card:hover .card-content {
    background: rgba(255,255,255,0.07);
    border-color: var(--border-hi);
    color: var(--text);
    transform: translateY(-2px);
}

/* Checked states */
#gender-male:checked ~ .card-content {
    background: rgba(59,130,246,0.12);
    border-color: #3b82f6;
    color: #93c5fd;
    box-shadow: 0 0 18px rgba(59,130,246,0.25);
    transform: translateY(-2px);
}

#gender-female:checked ~ .card-content {
    background: rgba(236,72,153,0.12);
    border-color: #ec4899;
    color: #f9a8d4;
    box-shadow: 0 0 18px rgba(236,72,153,0.25);
    transform: translateY(-2px);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    border: none;
    outline: none;
    border-radius: var(--r-md);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--t-normal);
    padding: var(--sp-4) var(--sp-5);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #9333ea 100%);
    color: #fff;
    box-shadow: 0 8px 24px var(--primary-glow);
    width: 100%;
    flex-direction: column;
    padding: var(--sp-4) var(--sp-5);
}
.btn-primary small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.75;
    margin-top: 2px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px var(--primary-glow); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: var(--surface-hi);
    color: var(--text-muted);
    border: 1px solid var(--border);
    width: 100%;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--text); border-color: var(--border-hi); }

.mode-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

/* Next / Skip button in workspace */
.btn-next {
    background: var(--primary);
    color: #fff;
    border-radius: var(--r-sm);
    padding: 0 var(--sp-4);
    height: 44px;
    gap: var(--sp-2);
    flex-shrink: 0;
    font-size: 0.9rem;
}
.btn-next:hover { background: #6d28d9; }
.btn-next kbd {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 1px 5px;
}

/* ── Terms / Consent ──────────────────────────────────────── */
.terms-area { padding: 0; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-sm);
    transition: background var(--t-fast);
}
.checkbox-label:hover { background: var(--surface-hi); }
.checkbox-label input[type="checkbox"] { display: none; }

.custom-checkbox {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: var(--surface);
    border: 1.5px solid var(--border-hi);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-normal);
    margin-top: 1px;
}
.checkbox-label:hover .custom-checkbox { border-color: var(--primary); }
.checkbox-label input:checked + .custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}
.checkmark {
    width: 16px; height: 16px;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    transition: stroke-dashoffset 0.35s cubic-bezier(0.65,0,0.45,1);
}
.checkbox-label input:checked + .custom-checkbox .checkmark { stroke-dashoffset: 0; }
.checkbox-text { line-height: 1.5; }
.checkbox-text a { color: var(--accent); }
.checkbox-text a:hover { text-shadow: 0 0 8px var(--accent-glow); }

/* ── SEO Section ──────────────────────────────────────────── */
.seo-section {
    width: 100%;
    max-width: 800px;
    animation: fadeUp 0.8s var(--ease) 0.2s both;
}

.seo-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-6);
}

.seo-heading {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin-bottom: var(--sp-5);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-5);
    margin-bottom: var(--sp-5);
}

.seo-item h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--sp-2);
}

.seo-item p, .seo-body {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.seo-body {
    border-top: 1px solid var(--border);
    padding-top: var(--sp-5);
    text-align: center;
}

/* ── Footer ───────────────────────────────────────────────── */
.main-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2) var(--sp-3);
    padding: var(--sp-5) var(--sp-5);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.main-footer span { opacity: 0.35; }
.main-footer a { color: var(--text-muted); }
.main-footer a:hover { color: var(--accent); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
    40%, 60% { transform: translate3d(5px, 0, 0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.5); opacity: 0.5; }
}

/* Error states */
.shake     { animation: shake 0.45s cubic-bezier(.36,.07,.19,.97) both; }
.error-glow {
    box-shadow: 0 0 20px rgba(239,68,68,0.45) !important;
    border-color: rgba(239,68,68,0.7) !important;
    background: rgba(239,68,68,0.07) !important;
}

/* ══════════════════════════════════════════════════════════
   WORKSPACE (MAIN)  — activated after startGame()
   ══════════════════════════════════════════════════════════ */
#main-workspace {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    /* Default: Mobile stack (video on top, chat below) */
    display: flex;
    flex-direction: column;
}

/* ── Video Area ───────────────────────────────────────────── */
.video-area {
    position: relative;
    flex-shrink: 0;
    background: #04040a;
    overflow: hidden;
    /* Mobile: ~42% height */
    height: 42%;
}

/* Remote video fills the area */
.remote-video-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

/* "Searching…" label overlay */
.video-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
    pointer-events: none;
    background: rgba(4,4,10,0.3);
}

/* Report button */
.btn-report {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 20;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    transition: color var(--t-fast), background var(--t-fast);
}
.btn-report:hover { color: var(--danger); background: rgba(239,68,68,0.15); }

/* Local video — Picture-in-Picture */
.local-pip {
    position: absolute;
    top: 10px;
    right: 10px;
    width: clamp(80px, 20vw, 110px);
    aspect-ratio: 3 / 4;
    border-radius: var(--r-sm);
    overflow: visible;
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.local-pip video {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    border-radius: var(--r-sm);
    border: 1.5px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-md);
    background: #000;
}

.pip-label {
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.5);
    padding: 1px 6px;
    border-radius: 4px;
}

/* Cam/mic controls on PiP */
.pip-controls {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 30;
}

.ctrl-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.65);
    color: rgba(255,255,255,0.8);
    transition: all var(--t-fast);
}
.ctrl-btn:hover       { background: rgba(0,0,0,0.9); }
.ctrl-btn.active      { background: rgba(16,185,129,0.25); color: #6ee7b7; }
.ctrl-btn.muted       { background: rgba(239,68,68,0.35); color: #fca5a5; }

/* ── Chat Pane ────────────────────────────────────────────── */
.chat-pane {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

/* Chat header */
.chat-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: #f8f9fb;
    border-bottom: 1px solid #e8eaf0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: #1a1a2e;
}

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px rgba(16,185,129,0.6);
    animation: pulseDot 2s infinite;
}

/* Message list */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-4) var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    background: #fff;
}

/* Custom scrollbar */
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

/* Welcome box */
.welcome-box {
    color: #1a1a2e;
    line-height: 1.6;
}
.welcome-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--sp-2);
    color: #111;
}
.rules-highlight { color: #dc2626; font-size: 0.9rem; margin-bottom: var(--sp-2); }
.rules-list { padding: 0; }
.rules-list li { font-size: 0.88rem; color: #444; margin-bottom: 3px; }
.rules-list li::before { content: "·  "; color: var(--primary); font-weight: 700; }

/* Chat bubbles */
.msg {
    max-width: 82%;
    padding: 9px 14px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.45;
    animation: slideIn 0.25s var(--ease) forwards;
    opacity: 0;
}
.msg.self    { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.partner { align-self: flex-start; background: #f0f3f9; color: #1a1a2e; border-bottom-left-radius: 4px; }
.system-msg  { text-align: center; font-size: 0.75rem; color: #94a3b8; width: 100%; }

/* ── Chat Controls Bar ────────────────────────────────────── */
.chat-controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    /* Mobile: safe-area for home indicator */
    padding-bottom: max(var(--sp-2), env(safe-area-inset-bottom, var(--sp-2)));
    background: #f5f7fa;
    border-top: 1px solid #e8eaf0;
}

.input-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}

#chat-input {
    width: 100%;
    height: 40px;
    border-radius: var(--r-pill);
    border: 1px solid #e2e8f0;
    padding: 0 44px 0 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #1a1a2e;
    background: #fff;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
#chat-input:focus  { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
#chat-input:disabled { background: #f1f3f7; color: #94a3b8; cursor: not-allowed; }

.btn-send {
    position: absolute;
    right: 4px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t-normal);
    flex-shrink: 0;
}
.btn-send:hover:not(:disabled) { background: #6d28d9; transform: scale(1.08); }
.btn-send:disabled { background: #dde1ea; color: #9ca3af; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════
   TABLET  (≥ 640px)
   ══════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
    .landing-page { padding: var(--sp-8) var(--sp-6) var(--sp-8); }
    .mode-buttons { flex-direction: row; }
    .btn-primary, .btn-ghost { width: auto; flex: 1; }
    .btn-primary { flex-direction: row; }
    .btn-primary small { display: none; }
}

/* ══════════════════════════════════════════════════════════
   DESKTOP  (≥ 900px) — side-by-side workspace
   ══════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
    /* Workspace becomes two-column grid */
    #main-workspace {
        flex-direction: row;
    }

    /* Video column on the left */
    .video-area {
        /* Auto fill remaining width from chat pane */
        flex: 1;
        height: 100%;   /* full height instead of percentage */
        min-height: 0;
    }

    /* PiP larger on desktop */
    .local-pip {
        width: clamp(120px, 14vw, 180px);
        top: 16px;
        right: 16px;
    }

    /* Chat pane as right column, fixed width */
    .chat-pane {
        flex: 0 0 340px;
        border-left: 1px solid #e8eaf0;
    }

    /* Bigger Next button */
    .btn-next {
        height: 50px;
        font-size: 1rem;
    }
}

/* ══════════════════════════════════════════════════════════
   WIDE DESKTOP  (≥ 1280px)
   ══════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
    .chat-pane { flex-basis: 380px; }
}
