/* ===== Icebreaker — Mobile-First PWA Styles ===== */

:root {
    --primary: #e94560;
    --primary-dark: #c73e54;
    --bg: #1a1a2e;
    --bg-card: #16213e;
    --bg-input: #0f3460;
    --text: #eee;
    --text-muted: #8892a4;
    --text-dim: #5a6478;
    --accent: #e94560;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* ===== SCREENS ===== */

.screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

/* ===== LANDING PAGE ===== */

.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.landing-logo { margin-bottom: 2rem; }
.logo-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.landing-logo h1 { font-size: 2rem; font-weight: 700; }
.tagline { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

.landing-features { margin: 2rem 0; text-align: left; max-width: 320px; }
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.feature-icon { font-size: 1.2rem; flex-shrink: 0; }

.landing-actions { margin-top: 1rem; }
.landing-subtext { margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.install-prompt {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-align: center;
}
.install-prompt p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }

/* ===== BUTTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--bg-input); color: var(--text); }
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn-icon {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.3rem;
}

/* ===== AUTH ===== */

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2rem;
}
.auth-container h1 { margin: 0.5rem 0 1.5rem; }
.auth-form {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.auth-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--bg-input);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-size: 1rem;
}
.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}
.auth-error { color: var(--danger); font-size: 0.85rem; min-height: 1.2em; }
.auth-switch { margin-top: 1rem; color: var(--text-muted); font-size: 0.9rem; }
.auth-switch a { color: var(--primary); text-decoration: none; }

/* Social login divider + buttons */
.social-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.75rem;
    width: 100%;
    max-width: 320px;
}
.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--bg-input);
}
.social-divider span {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
}
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 320px;
}
.btn-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--bg-input);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.btn-social:hover {
    background: var(--bg-input);
    border-color: var(--text-muted);
}
.btn-social .social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.btn-social-youtube { border-left: 3px solid #FF0000; }
.btn-social-discord { border-left: 3px solid #5865F2; }
.btn-social-github  { border-left: 3px solid #8b949e; }
.btn-social-spotify { border-left: 3px solid #1DB954; }

/* ===== APP HEADER ===== */

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.header-title { font-weight: 700; font-size: 1.1rem; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.status-open { background: var(--success); }
.status-quiet { background: var(--warning); }
.status-busy { background: var(--danger); }

/* ===== APP CONTENT ===== */

.app-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Ensure content can scroll past bottom browser chrome on mobile */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.tab-panel {
    padding: 0;
    /* Extra bottom padding so content scrolls above mobile browser chrome */
    padding-bottom: 2rem;
}

/* ===== TAB BAR ===== */

.tab-bar {
    display: flex;
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.75rem;
    transition: color 0.2s;
}
.tab-btn.active { color: var(--primary); }
.tab-icon { font-size: 1.3rem; margin-bottom: 0.15rem; }
.tab-label { font-size: 0.7rem; }

/* ===== MAP ===== */

.map-container {
    height: 45vh;
    width: 100%;
    background: #0a0a1a;
}

.nearby-list {
    padding: 1rem;
}

/* ===== EVENTS ===== */

.events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}
.events-header h2 { font-size: 1.2rem; }

.event-list { padding: 0 1rem 1rem; }

.event-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.event-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.event-name { font-weight: 600; }
.event-card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.event-type-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.type-social { background: #7c3aed; }
.type-gaming { background: #2563eb; }
.type-professional { background: #059669; }
.type-family { background: #d97706; }
.type-other { background: #6b7280; }

.event-detail-content { padding: 1rem; flex: 1; overflow-y: auto; }
.event-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.event-code {
    font-family: monospace;
    background: var(--bg-input);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}
.event-members-count { color: var(--text-muted); font-size: 0.9rem; }

/* ===== MODAL ===== */

.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: env(safe-area-inset-top, 1rem);
    padding-bottom: env(safe-area-inset-bottom, 1rem);
}
.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    margin: auto 0;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    flex-shrink: 0;
}
.modal-content h3 { margin-bottom: 1rem; }
.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--bg-input);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--primary);
}
.form-hint { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.75rem; }
.form-actions { display: flex; gap: 0.75rem; justify-content: flex-end; padding-bottom: 0.5rem; }

/* ===== PROFILE ===== */

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 1rem;
}
.profile-photo-wrapper { position: relative; margin-bottom: 0.75rem; }
.profile-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}
.photo-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
}
.photo-prompt {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px dashed var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(233, 69, 96, 0.08);
    transition: background 0.2s;
}
.photo-prompt:hover, .photo-prompt:active {
    background: rgba(233, 69, 96, 0.18);
}
.photo-prompt-icon { font-size: 1.5rem; }
.photo-prompt-text {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    padding: 0 0.4rem;
    margin-top: 0.15rem;
}
.profile-bio { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

.profile-section {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.profile-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.profile-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--bg-input);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    resize: vertical;
}
.profile-input:focus { outline: none; border-color: var(--primary); }

/* Status selector */
.status-selector { display: flex; gap: 0.5rem; }
.status-btn {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid var(--bg-input);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.status-btn.active { border-color: var(--primary); color: var(--text); }
.status-btn[data-status="open"].active { border-color: var(--success); color: var(--success); }
.status-btn[data-status="quiet"].active { border-color: var(--warning); color: var(--warning); }
.status-btn[data-status="busy"].active { border-color: var(--danger); color: var(--danger); }

/* ===== INTERESTS ===== */

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.interest-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--bg-input);
}
.badge-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0.1rem;
}
.badge-remove:hover { color: var(--danger); }

.interest-add {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}
.interest-add input {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--bg-input);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.9rem;
}
.interest-add input:focus { outline: none; border-color: var(--primary); }
.interest-add select {
    padding: 0.5rem;
    border: 1px solid var(--bg-input);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.85rem;
}
.empty-hint { color: var(--text-dim); font-size: 0.85rem; }

/* Category colors */
.cat-gaming { background: #2563eb33; color: #60a5fa; }
.cat-music { background: #7c3aed33; color: #a78bfa; }
.cat-sports { background: #05966933; color: #34d399; }
.cat-tech { background: #0891b233; color: #22d3ee; }
.cat-cooking { background: #d9770633; color: #fbbf24; }
.cat-outdoors { background: #16a34a33; color: #4ade80; }
.cat-arts { background: #db277733; color: #f472b6; }
.cat-reading { background: #92400e33; color: #d97706; }
.cat-filmtv { background: #4f46e533; color: #818cf8; }
.cat-fitness { background: #dc262633; color: #f87171; }
.cat-travel { background: #0d948833; color: #2dd4bf; }
.cat-pets { background: #a1623433; color: #fb923c; }
.cat-science { background: #1d4ed833; color: #3b82f6; }
.cat-politics { background: #64748b33; color: #94a3b8; }
.cat-crafts { background: #a21caf33; color: #e879f9; }
.cat-comedy { background: #ea580c33; color: #fb923c; }
.cat-podcasts { background: #7c3aed33; color: #c084fc; }
.cat-cars { background: #57534e33; color: #a8a29e; }
.cat-fashion { background: #be185d33; color: #fb7185; }
.cat-photography { background: #4338ca33; color: #a5b4fc; }

/* ===== PEOPLE LIST ===== */

.people-list { padding: 0 1rem; }

.person-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.person-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.person-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.person-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    font-size: 1.5rem;
}
.person-info { flex: 1; }
.person-name { font-weight: 600; display: block; }
.person-status { font-size: 0.75rem; text-transform: uppercase; }

.match-score {
    background: var(--primary);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.shared-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
}
.shared-badge {
    background: rgba(233, 69, 96, 0.2);
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.person-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.interest-badge-small {
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* ===== EMPTY STATE ===== */

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-dim);
}

/* ===== PERSON ACTIONS ===== */

.person-actions {
    margin-top: 0.6rem;
    display: flex;
    justify-content: flex-end;
}

.person-busy-label {
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== JOIN BY CODE ===== */

.join-by-code {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem 0.75rem;
}
.join-by-code input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--bg-input);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.9rem;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.join-by-code input:focus { outline: none; border-color: var(--primary); }
.join-by-code input::placeholder { text-transform: none; letter-spacing: normal; }

/* ===== APPROACH MODAL ===== */

.approach-modal { text-align: center; }
.approach-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.approach-shared {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.approach-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== REVEAL PROFILE ===== */

.reveal-profile {
    text-align: center;
    margin: 1rem 0;
}
.reveal-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 0.5rem;
}
.reveal-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}
.reveal-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
    margin-top: 0.75rem;
}

/* ===== TOAST ===== */

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    color: var(--text);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 200;
    max-width: 90%;
    text-align: center;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== GPS ERROR BANNER ===== */

.gps-banner {
    background: var(--danger);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.gps-settings-btn {
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-input); border-radius: 2px; }

/* ===== PROFILE MODES ===== */

.profile-modes {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: var(--bg);
    border: 2px solid var(--bg-input);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.mode-btn.active {
    border-color: var(--primary);
    color: var(--text);
    background: rgba(233, 69, 96, 0.1);
}

.profile-modes.switching .mode-btn {
    opacity: 0.5;
}

.mode-icon { font-size: 1.5rem; }
.mode-label { font-size: 0.75rem; font-weight: 600; }
.mode-sub { font-size: 0.65rem; color: var(--text-dim); font-weight: 400; }

.mode-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.mode-tag {
    background: var(--primary);
    color: #fff;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ===== TALKING POINTS ===== */

.section-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.talking-points { margin-bottom: 0.5rem; }

.talking-point {
    margin-bottom: 0.75rem;
}

.talking-point label {
    display: block;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

/* ===== SOCIAL LINKS ===== */

.social-links { margin-bottom: 0.5rem; }

.social-link-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.link-type-select {
    width: 120px;
    padding: 0.5rem;
    border: 1px solid var(--bg-input);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.85rem;
}

.link-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--bg-input);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.9rem;
}

.link-input:focus, .link-type-select:focus {
    outline: none;
    border-color: var(--primary);
}

.link-label {
    width: 80px;
    min-width: 80px;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    display: flex;
    align-items: center;
}

.btn-connect {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-connect:hover {
    background: var(--primary);
    color: #fff;
}

.btn-connect.connected {
    border-color: var(--success, #4caf50);
    color: var(--success, #4caf50);
    pointer-events: none;
}

/* ===== GAMES ===== */

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.game-card {
    background: var(--bg);
    border: 1px solid var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.game-card.game-active {
    border-color: var(--success);
    background: rgba(74, 222, 128, 0.05);
}

.game-card.game-configured {
    border-color: var(--warning);
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.game-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.game-category {
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.game-category.funny { background: #ea580c33; color: #fb923c; }
.game-category.casual { background: #0891b233; color: #22d3ee; }
.game-category.deep { background: #7c3aed33; color: #a78bfa; }

.game-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.game-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

/* Game Modal */
.game-modal { max-width: 450px; }
.game-modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.game-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--bg-input);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
}

.game-input:focus {
    outline: none;
    border-color: var(--primary);
}

.prompt-group {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.prompt-group label {
    font-style: italic;
}

/* User's games display */
.user-games {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-games h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.user-game-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.game-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.game-responses {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.response-item {
    font-size: 0.85rem;
}

.response-label {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.response-value {
    color: var(--text);
    margin-left: 0.25rem;
}

.response-prompt {
    display: block;
    font-style: italic;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.response-answer {
    display: block;
    color: var(--text);
}

/* ===== TWO TRUTHS AND A LIE ===== */

.ttt-game {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ttt-prompt {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    margin: 0 0 0.25rem 0;
}

.ttt-statement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
}

.ttt-statement:not(.ttt-locked):active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

.ttt-number {
    font-weight: 700;
    color: var(--primary);
    min-width: 1.2rem;
}

.ttt-text {
    flex: 1;
}

.ttt-locked {
    cursor: default;
    opacity: 0.6;
}

.ttt-picked {
    opacity: 1 !important;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.ttt-badge {
    font-size: 0.7rem;
    background: var(--primary);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    white-space: nowrap;
}

.ttt-hint {
    font-size: 0.8rem;
    color: var(--accent);
    margin: 0.25rem 0 0 0;
    font-weight: 500;
}

/* ===== MATCH BANNER ===== */

.match-banner {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.15), rgba(15, 52, 96, 0.25));
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.banner-main {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.banner-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.banner-cta {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ===== INSTAGRAM ON CARD ===== */

.card-ig-handle {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: auto;
}

.social-link-ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    color: #fff !important;
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
}

.social-link-ig:hover {
    opacity: 0.85;
}

/* ===== EVENT SHARE SECTION ===== */

.event-share-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.event-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.code-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.event-code-large {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: var(--bg);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.copy-btn {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.copy-btn:hover { opacity: 1; }

.qr-toggle {
    margin-bottom: 0.75rem;
}

.qr-container {
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.qr-container canvas {
    display: block;
}

.qr-hint {
    color: var(--bg);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.people-header {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* ===== PERSON MODAL ===== */

.person-modal {
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover { color: var(--text); }

.person-modal .person-header {
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.person-modal .person-photo {
    width: 64px;
    height: 64px;
}

.person-match {
    margin-bottom: 0.75rem;
}

.person-talking-points {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.person-talking-points h5 {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.talking-point-item {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.talking-point-item strong {
    color: var(--text-dim);
    font-weight: normal;
}

.person-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
}

.social-link:hover {
    background: var(--primary);
}

.social-icon { font-size: 1rem; }

.person-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.person-actions .btn { flex: 1; }

/* ===== TOAST TYPES ===== */

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--accent); }

/* ===== PERSON CARD EXTRAS ===== */

.person-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.4rem;
}

.game-badge {
    font-size: 0.9rem;
    margin-left: 0.3rem;
    cursor: help;
}

.match-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* Person card clickable */
.person-card {
    cursor: pointer;
    transition: border-color 0.2s;
}

.person-card:hover {
    border-color: var(--primary);
}

/* ===== INCOGNITO TOGGLE ===== */

.incognito-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.incognito-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.incognito-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.incognito-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-input);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.incognito-slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--text);
    border-radius: 50%;
    transition: transform 0.2s;
}

.incognito-toggle input:checked + .incognito-slider {
    background: var(--primary);
}

.incognito-toggle input:checked + .incognito-slider:before {
    transform: translateX(24px);
}

/* ===== INTEREST IMPORT ===== */

.interest-import-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.import-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-import {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-import:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.import-icon {
    font-size: 1rem;
}

.connected-services {
    margin-top: 0.75rem;
}

.connected-service {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--success);
}

.connected-icon {
    color: var(--success);
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.btn-link:hover {
    color: var(--text);
}

.btn-disconnect {
    color: var(--danger);
}

.interest-manual-section {
    margin-top: 1rem;
}

.badge-source {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    opacity: 0.7;
}

/* ===== IMPORT REVIEW MODAL ===== */

.import-review-modal {
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.import-review-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0 1rem;
}

.import-source-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

#importSourceName {
    font-weight: 600;
    color: var(--primary);
}

#importFoundCount {
    color: var(--text-muted);
}

.import-review-list {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
    margin-bottom: 1rem;
}

.import-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.2s, background 0.2s;
    cursor: pointer;
}

.import-item.selected {
    opacity: 1;
    background: var(--bg-input);
}

.import-details {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.import-name-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.import-cat-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.import-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.import-checkbox input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.import-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--bg);
    border: 2px solid var(--text-muted);
    border-radius: 4px;
}

.import-checkbox input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.import-checkbox .checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.import-checkbox input:checked + .checkmark:after {
    display: block;
}

/* import-name-label and import-cat-tag styled above in .import-details */

.import-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.import-actions .btn {
    flex: 1;
    font-size: 0.85rem;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer .btn {
    flex: 1;
}

/* ===== ONBOARDING ===== */

.onboarding-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.onboarding-header {
    text-align: center;
    padding: 1.5rem 1.5rem 1rem;
    flex-shrink: 0;
    background: var(--bg);
}

.onboarding-header .logo-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.onboarding-header h1 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.onboarding-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

.onboarding-grid {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.onboarding-category {
    margin-bottom: 1rem;
}

.onboarding-cat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.onboarding-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.onboarding-chip {
    padding: 0.35rem 0.75rem;
    background: var(--bg-card);
    border: 1.5px solid var(--bg-input);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.onboarding-chip.selected {
    background: rgba(233, 69, 96, 0.15);
    border-color: var(--primary);
    color: var(--text);
}

.onboarding-chip:active {
    transform: scale(0.95);
}

.onboarding-footer {
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    background: var(--bg);
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.onboarding-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.onboarding-skip {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.25rem;
}

.onboarding-skip:hover {
    color: var(--text-muted);
}

#onboardingDoneBtn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ===== UPSELL SCREEN ===== */

.upsell-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.upsell-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.upsell-header .logo-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upsell-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.upsell-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.upsell-summary strong {
    color: var(--text);
}

.upsell-pitch {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.4;
}

.upsell-services {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    margin-bottom: 1.5rem;
}

.upsell-service-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 1rem;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
}

.upsell-service-btn:hover {
    border-color: var(--primary);
    background: rgba(233,69,96,0.08);
}

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

.upsell-service-btn.connecting {
    opacity: 0.6;
    pointer-events: none;
}

.upsell-service-btn.connected {
    border-color: var(--success);
    background: rgba(74,222,128,0.08);
}

.upsell-service-btn.connected .upsell-arrow {
    color: var(--success);
    font-weight: bold;
}

.upsell-icon {
    font-size: 1.75rem;
    width: 2.5rem;
    text-align: center;
    flex-shrink: 0;
}

.upsell-service-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.upsell-service-info strong {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.upsell-service-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.upsell-arrow {
    font-size: 1.2rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

.upsell-footer {
    text-align: center;
}

.upsell-note {
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

.upsell-photo-step {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.upsell-photo-prompt {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.upsell-photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.photo-uploaded {
    border-color: var(--accent);
    cursor: default;
}

.photo-uploaded .photo-prompt-text {
    color: var(--accent);
}


/* ===== APPROACH SYSTEM ===== */

/* --- Slide-in Banner (incoming approach, accepted toast, reminder, now-open) --- */

.approach-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    padding: 0.75rem;
}

.approach-banner.visible {
    transform: translateY(0);
}

.approach-banner-content {
    background: var(--bg-card);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.approach-banner.accepted .approach-banner-content {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--bg-card), rgba(74, 222, 128, 0.08));
}

.approach-banner.now-open .approach-banner-content {
    border-color: var(--warning);
    background: linear-gradient(135deg, var(--bg-card), rgba(251, 191, 36, 0.08));
}

.approach-banner.reminder .approach-banner-content {
    border-color: var(--text-muted);
}

.approach-banner-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.approach-banner-shared {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.approach-banner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.approach-banner-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.approach-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.approach-banner-actions .btn {
    flex: 1;
    min-width: 0;
}

/* --- Reveal mini (accepted toast with name/photo) --- */

.approach-reveal-mini {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.5rem 0;
}

.approach-reveal-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--success);
}

/* --- Reveal modal (receiver accepted — full profile) --- */

.approach-modal {
    text-align: center;
}

.reveal-profile {
    padding: 1.5rem 0;
}

.reveal-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 3px solid var(--accent);
}

.reveal-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* --- Card overlays (shown on person cards for sent requests) --- */

.approach-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0 0 var(--radius) var(--radius);
}

.overlay-waiting {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
    border-top: 1px solid rgba(251, 191, 36, 0.3);
}

.overlay-accepted {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
    border-top: 1px solid rgba(74, 222, 128, 0.3);
}

.overlay-passed {
    background: rgba(138, 146, 164, 0.15);
    color: var(--text-muted);
    border-top: 1px solid rgba(138, 146, 164, 0.2);
}

/* --- Btn-link (inline text button) --- */

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    padding: 0;
}

.btn-link:disabled {
    color: var(--text-muted);
    text-decoration: none;
    cursor: default;
}

/* --- Busy label --- */

.person-busy-label {
    font-size: 0.8rem;
    color: var(--warning);
    font-weight: 600;
}
