/* ===============================================================
   Reachy Mini Remote — mobile-first telepresence UI
   =============================================================== */

:root {
    --pollen-coral: #FF6B35;
    --pollen-coral-light: #FF8A5C;
    --pollen-coral-dark: #E55A2B;
    --pollen-dark: #1A1A2E;
    --pollen-darker: #0F0F1A;
    --pollen-card: #16213E;
    --pollen-card-light: #1E2A4A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --text-muted: #718096;
    --success: #48BB78;
    --warning: #ECC94B;
    --danger: #F56565;

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bot: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--pollen-darker);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

button {
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

button:disabled { cursor: not-allowed; }

input, textarea { font-family: inherit; }

.hidden { display: none !important; }

.muted-label {
    color: var(--text-muted);
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =======================================================
   LOGIN VIEW
======================================================= */

.login-view {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bot));
    background:
        radial-gradient(circle at 30% 20%, rgba(255,107,53,0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(50,100,200,0.18) 0%, transparent 45%),
        var(--pollen-darker);
}

.login-card {
    background: var(--pollen-card);
    padding: 36px 28px;
    border-radius: 18px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.login-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    border-radius: 16px;
}

.login-card h1 {
    color: var(--pollen-coral);
    margin-bottom: 6px;
    font-size: 1.5em;
    font-weight: 700;
}

.login-card .tagline {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.92em;
}

.login-hint {
    color: var(--text-muted);
    margin-top: 14px;
    font-size: 0.75em;
}

.btn-hf {
    background: #FFD21E;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-hf:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,210,30,0.3); }
.btn-hf:active { transform: translateY(0); }

/* =======================================================
   MAIN APP
======================================================= */

.app {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

/* === STAGE (fullscreen video area) === */
.stage {
    position: absolute;
    inset: 0;
    background: var(--pollen-darker);
    overflow: hidden;
}

.stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    transition: transform 0.2s;
}

.stage.mirror video { transform: scaleX(-1); }

.stage-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: linear-gradient(135deg, #0a0a15 0%, #1a1a2e 100%);
    z-index: 1;
}

.stage-placeholder.hidden { display: none; }

.stage-placeholder-inner {
    text-align: center;
    padding: 24px;
}

.stage-placeholder-inner img {
    width: 80px;
    height: 80px;
    opacity: 0.6;
    margin-bottom: 16px;
    border-radius: 16px;
}

.stage-placeholder-title {
    color: var(--text-secondary);
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 6px;
}

.stage-placeholder-sub {
    color: var(--text-muted);
    font-size: 0.9em;
}

.stage-placeholder-sub b { color: var(--pollen-coral); }

/* === LOOK LAYER === */
/* Touch layer on top of the video used to control head pan/tilt. */
.look-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    touch-action: none;
    cursor: crosshair;
}

.look-layer.disabled { pointer-events: none; cursor: default; }

.look-crosshair {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    pointer-events: none;
    transition: opacity 0.2s;
    opacity: 0.45;
}

.look-crosshair::before,
.look-crosshair::after {
    content: "";
    position: absolute;
    background: rgba(255,255,255,0.35);
}

.look-crosshair::before {
    top: 50%;
    left: -6px;
    right: -6px;
    height: 1px;
    transform: translateY(-50%);
}

.look-crosshair::after {
    left: 50%;
    top: -6px;
    bottom: -6px;
    width: 1px;
    transform: translateX(-50%);
}

.look-target {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid var(--pollen-coral);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    box-shadow: 0 0 16px rgba(255,107,53,0.6);
    background: rgba(255,107,53,0.2);
}

.look-target.active {
    opacity: 1;
}

.look-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 18px 20px 14px;
    background: rgba(22, 33, 62, 0.88);
    border: 1px solid rgba(255,107,53,0.25);
    border-radius: 16px;
    color: rgba(255,255,255,0.95);
    /* Card is a passthrough — only the dismiss button blocks pointer events,
       so a drag that starts on the video underneath still reaches the look
       layer and the hint auto-hides on first drag. */
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.5);
    max-width: min(88vw, 360px);
    z-index: 3;
}

.look-hint.fade {
    opacity: 0;
}

.look-hint-title {
    color: var(--pollen-coral);
    font-weight: 700;
    font-size: 0.95em;
    margin-bottom: 12px;
    text-align: center;
}

.look-hint-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.look-hint-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82em;
    line-height: 1.35;
    color: rgba(255,255,255,0.85);
}

.look-hint-list li b {
    color: white;
    font-weight: 600;
}

.look-hint-icon {
    flex-shrink: 0;
    min-width: 42px;
    text-align: center;
    font-size: 1.05em;
    color: var(--pollen-coral);
    font-weight: 600;
}

.look-hint-dismiss {
    /* Sole pointer-events: auto child — see .look-hint comment. */
    pointer-events: auto;
    width: 100%;
    padding: 9px 14px;
    background: var(--pollen-coral);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85em;
    transition: transform 0.1s, filter 0.15s;
}

.look-hint-dismiss:active { transform: scale(0.97); filter: brightness(0.95); }

/* === TOP HUD === */
.hud {
    position: absolute;
    left: 0;
    right: 0;
    padding: calc(10px + var(--safe-top)) calc(12px + var(--safe-right)) 10px calc(12px + var(--safe-left));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.hud-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
}

.hud > * { pointer-events: auto; }
.hud-left, .hud-right { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.status-pill, .robot-pill, .latency-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 0.78em;
    font-weight: 500;
    color: white;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 6px var(--danger);
}

.status-dot.connected { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.connecting { background: var(--warning); animation: blink 0.8s infinite; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.robot-pill {
    color: var(--pollen-coral);
    font-weight: 600;
}

.latency-pill {
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', monospace;
    color: var(--text-secondary);
    font-size: 0.72em;
    padding: 5px 10px;
}

.latency-pill.good { color: var(--success); }
.latency-pill.ok { color: var(--warning); }
.latency-pill.bad { color: var(--danger); }

/* Icon buttons (HUD) */
.icon-btn {
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
}

.icon-btn svg { width: 20px; height: 20px; }

.icon-btn:hover:not(:disabled) { background: rgba(255,255,255,0.15); }
.icon-btn:active:not(:disabled) { transform: scale(0.94); }
.icon-btn:disabled { opacity: 0.35; }

/* Menu */
.menu-wrap { position: relative; }
.menu {
    position: absolute;
    top: 46px;
    right: 0;
    min-width: 200px;
    background: var(--pollen-card);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    padding: 8px;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.05);
}

.menu-user {
    padding: 8px 12px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 6px;
}

.username-big {
    color: var(--pollen-coral);
    font-weight: 600;
    font-size: 0.95em;
    margin-top: 2px;
}

.daemon-version {
    margin-top: 6px;
    font-size: 0.7em;
    color: var(--text-muted);
    font-family: monospace;
    letter-spacing: 0.02em;
}

.menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    background: transparent;
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 0.88em;
}

.menu-item:hover:not(:disabled) { background: var(--pollen-card-light); }
.menu-item:disabled { opacity: 0.4; cursor: not-allowed; }

.menu-action { display: flex; align-items: center; gap: 10px; }
.menu-emoji { font-size: 1.05em; }

.menu-sep {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 6px 4px;
}

/* === SIDE RAILS (base rotation) === */
.side-rail {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    pointer-events: none;
}

.side-rail-left { left: calc(10px + var(--safe-left)); }
.side-rail-right { right: calc(10px + var(--safe-right)); }

.rail-btn {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: transform 0.08s, background 0.15s;
}

.rail-btn svg { width: 28px; height: 28px; }
.rail-btn .rail-label {
    font-size: 0.58em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.rail-btn:active:not(:disabled) {
    transform: scale(0.92);
    background: rgba(255,107,53,0.25);
    border-color: var(--pollen-coral);
}

.rail-btn.active {
    background: rgba(255,107,53,0.25);
    border-color: var(--pollen-coral);
}

.rail-btn:disabled { opacity: 0.4; }

/* === BOTTOM CALL BAR === */
.call-bar {
    position: absolute;
    bottom: calc(14px + var(--safe-bot));
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px calc(14px + var(--safe-right)) 8px calc(14px + var(--safe-left));
    z-index: 10;
    pointer-events: none;
}

.call-btn {
    pointer-events: auto;
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.08s, background 0.15s;
    color: white;
    flex-shrink: 0;
}

.call-btn svg { width: 22px; height: 22px; }

.call-btn-secondary {
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
}

.call-btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,0.22); }
.call-btn-secondary.muted {
    background: var(--danger);
    border-color: var(--danger);
}

.call-btn:active:not(:disabled) { transform: scale(0.92); }
.call-btn:disabled { opacity: 0.3; }

.call-btn-primary {
    background: var(--success);
    width: auto;
    min-width: 100px;
    padding: 0 18px;
    border-radius: 28px;
    height: 54px;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9em;
}

.call-btn-primary.danger { background: var(--danger); }
.call-btn-primary.connecting { background: var(--warning); color: #000; }

#primaryLabel { white-space: nowrap; }

/* =======================================================
   ROBOT PICKER MODAL
======================================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-inner {
    background: var(--pollen-card);
    border-radius: 18px;
    max-width: 420px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-header h3 {
    font-size: 1.05em;
    font-weight: 600;
}

.modal-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: flex-end;
}

.modal-header .icon-btn,
.sheet-header .icon-btn {
    background: transparent;
    width: 32px;
    height: 32px;
}

.robot-list {
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.robot-card {
    padding: 12px 14px;
    background: var(--pollen-darker);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.robot-card:hover { background: var(--pollen-card-light); }
.robot-card.selected { border-color: var(--pollen-coral); }

.robot-card .name { font-weight: 600; font-size: 0.95em; }
.robot-card .id { font-size: 0.75em; color: var(--text-muted); font-family: monospace; margin-top: 3px; }

/* =======================================================
   SHEETS (sound + drawer)
======================================================= */
.sheet, .drawer {
    position: fixed;
    inset: 0;
    z-index: 150;
    pointer-events: none;
}

.sheet.hidden, .drawer.hidden { display: none !important; }

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: auto;
    animation: fadeIn 0.2s;
}

.sheet {
    display: flex;
    align-items: flex-end;
    pointer-events: auto;
    background: rgba(0,0,0,0.35);
    animation: fadeIn 0.2s;
}

.drawer-panel, .sheet > * {
    pointer-events: auto;
}

.sheet > div:not(.sheet-body):not(.sheet-header):not(.sheet-handle) {
    flex: 1;
}

.sheet {
    /* for the sound sheet which is a bottom sheet; attach body-like appearance */
}

.sheet .sheet-handle,
.drawer-panel .sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 10px auto 0;
}

.drawer-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pollen-card);
    border-radius: 18px 18px 0 0;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.25s ease-out;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
    padding-bottom: var(--safe-bot);
}

/* Sound sheet specifically - bottom sheet */
#soundSheet {
    top: auto;
    bottom: 0;
    background: var(--pollen-card);
    border-radius: 18px 18px 0 0;
    max-height: 60vh;
    animation: slideUp 0.25s ease-out;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
    padding-bottom: var(--safe-bot);
    display: flex;
    flex-direction: column;
    z-index: 160;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sheet-header {
    padding: 8px 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sheet-header h3 {
    font-size: 1em;
    font-weight: 600;
}

.sheet-body {
    overflow-y: auto;
    padding: 0 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =======================================================
   SOUND UI
======================================================= */
.sound-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 14px;
    background: var(--pollen-darker);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 0.8em;
    transition: border-color 0.15s, color 0.15s;
}

.chip:hover {
    border-color: var(--pollen-coral);
    color: var(--pollen-coral);
}

.sound-row {
    display: flex;
    gap: 8px;
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 2px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 8px;
}

.volume-icon {
    display: flex;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.volume-icon svg { width: 20px; height: 20px; }

.volume-row .slider { flex: 1; }
.volume-row .slider-value {
    min-width: 44px;
}

.sound-input {
    flex: 1;
    padding: 10px 12px;
    background: var(--pollen-darker);
    border: 1px solid var(--pollen-card-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9em;
}

.sound-input:focus {
    outline: none;
    border-color: var(--pollen-coral);
}

.btn-inline-primary {
    background: var(--pollen-coral);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88em;
}

.btn-inline-secondary {
    background: var(--pollen-card-light);
    color: var(--text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85em;
}

/* =======================================================
   PANELS (inside drawer)
======================================================= */
.panel {
    background: var(--pollen-darker);
    border-radius: 12px;
    overflow: hidden;
}

.panel-header {
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    font-weight: 600;
    font-size: 0.82em;
    color: var(--pollen-coral);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-content { padding: 12px 14px; }

.btn-mini {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.72em;
    transition: color 0.15s, border-color 0.15s;
}

.btn-mini:hover {
    color: var(--pollen-coral);
    border-color: var(--pollen-coral);
}

/* Robot actions (Wake / Sleep) */
.action-row {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border-radius: 12px;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.92em;
    transition: transform 0.1s, box-shadow 0.15s, filter 0.15s;
}

.action-btn:active:not(:disabled) { transform: scale(0.97); }

.action-btn-wake {
    background: linear-gradient(135deg, #F6AD55 0%, #ED8936 100%);
    box-shadow: 0 4px 14px rgba(246,173,85,0.25);
}

.action-btn-sleep {
    background: linear-gradient(135deg, #5A67D8 0%, #434190 100%);
    box-shadow: 0 4px 14px rgba(90,103,216,0.25);
}

.action-btn-full {
    width: 100%;
    margin-top: 10px;
}

.action-btn-torque {
    background: linear-gradient(135deg, #48BB78 0%, #2F855A 100%);
    box-shadow: 0 4px 14px rgba(72,187,120,0.22);
}

.action-btn-torque.action-btn-torque-off {
    background: linear-gradient(135deg, #718096 0%, #4A5568 100%);
    box-shadow: 0 4px 14px rgba(113,128,150,0.22);
}

.action-btn:disabled {
    filter: grayscale(0.5);
    opacity: 0.45;
}

.action-emoji { font-size: 1.2em; }

/* Sliders */
.slider-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.slider-row:last-child { margin-bottom: 0; }

.slider-label {
    font-size: 0.8em;
    color: var(--text-secondary);
    min-width: 56px;
}

.slider {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--pollen-card-light);
    border-radius: 4px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: var(--pollen-coral);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255,107,53,0.4);
}

.slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--pollen-coral);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(255,107,53,0.4);
}

.slider-value {
    font-family: monospace;
    font-size: 0.82em;
    color: var(--pollen-coral);
    min-width: 54px;
    text-align: right;
}

/* Preferences */
.pref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9em;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.pref-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 42px;
    height: 24px;
    background: var(--pollen-card-light);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.15s;
}

.pref-row input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.15s;
}

.pref-row input[type="checkbox"]:checked {
    background: var(--pollen-coral);
}

.pref-row input[type="checkbox"]:checked::before {
    transform: translateX(18px);
}

/* =======================================================
   RESPONSIVE — landscape phone / small screens
======================================================= */

@media (max-height: 500px) {
    .rail-btn { width: 48px; height: 48px; }
    .rail-btn svg { width: 24px; height: 24px; }

    .call-btn { width: 46px; height: 46px; }
    .call-btn svg { width: 20px; height: 20px; }
    .call-btn-primary { height: 46px; min-width: 90px; padding: 0 14px; }
}

/* On very wide screens, let the video show uncropped */
@media (min-width: 900px) {
    .stage video { object-fit: contain; }
}
