/* ==========================================================================
   Valley Sparks CSS Design System - "Valley Nights" Premium Theme
   ========================================================================== */

/* Variables & Base Tokens */
:root {
    --bg-dark: #08090d;
    --bg-card: rgba(25, 27, 38, 0.65);
    --bg-panel: rgba(18, 19, 26, 0.95);
    
    --primary: #ffaa00; /* Warm Sunlit Gold */
    --primary-hover: #e09600;
    --accent: #ff477e; /* Rose Spark */
    --accent-hover: #e03265;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(255, 170, 0, 0.15);
    
    --success: #10b981;
    --danger: #ef4444;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
}

/* Reset & Scaffold */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base Form Inputs */
input, select, textarea {
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--glass-glow);
    background: rgba(255, 255, 255, 0.08);
}

select option {
    background-color: #12131a;
    color: var(--text-main);
}

label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #ff8800 100%);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #e01b5d 100%);
    color: #fff;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 71, 126, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
}

/* App Container Layout */
#app-container {
    width: 100vw;
    height: 100vh;
    max-width: 1200px; /* Expanded desktop responsive web app layout */
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

/* Header bar */
#app-header {
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.logo-subtext {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-top: -3px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-badge {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.2);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.wallet-badge:hover {
    background: rgba(255, 170, 0, 0.18);
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    cursor: pointer;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    background-size: cover;
    background-position: center;
}

.avatar-circle.small {
    width: 32px;
    height: 32px;
}

/* Navigation Menu */
#app-navbar {
    height: 72px;
    background: var(--bg-panel);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
    padding: 8px 16px;
}

.nav-item:hover {
    color: var(--text-main);
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 20px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Panel Containers */
#app-main {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.panel {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow-y: auto;
    padding: 20px;
}

.panel.active {
    display: flex;
    flex-direction: column;
}

/* 1. AUTH PANEL STYLING */
#panel-auth {
    justify-content: center;
    padding: 30px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 30px 24px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.main-spark-icon {
    font-size: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.auth-logo h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
}

.auth-logo p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.auth-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.auth-toggle-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
}

.auth-toggle-text span {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
}

.auth-toggle-text span:hover {
    text-decoration: underline;
}

.margin-top-sm {
    margin-top: 10px;
}

/* 2. DISCOVER PANEL STYLING */
#panel-discover {
    padding: 16px;
    justify-content: space-between;
}

.discover-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-stack-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.profile-card-container {
    width: 100%;
    max-width: 420px; /* Kept to a premium mobile-like format and centered */
    height: 100%;
    max-height: 480px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.card-image-box {
    flex: 1;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #d81b60 100%);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: none; /* dynamically visible */
}

.card-county-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.card-details-box {
    padding: 20px;
    background: rgba(10, 11, 16, 0.95);
    border-top: 1px solid var(--glass-border);
}

.name-age {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.city-distance {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-bio {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
}

.swipe-controls-box {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 10px 0;
}

.btn-round {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.btn-round:hover {
    transform: scale(1.1);
}

.btn-round.reject {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger);
    color: var(--danger);
}

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

.btn-round.like {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success);
    color: var(--success);
}

.btn-round.like:hover {
    background: var(--success);
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.large-icon {
    font-size: 50px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 280px;
}

.btn-boost {
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-boost:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
}

/* Swipe Left/Right Animations */
.swipe-left-anim {
    transform: translateX(-150%) rotate(-20deg);
    opacity: 0;
}

.swipe-right-anim {
    transform: translateX(150%) rotate(20deg);
    opacity: 0;
}

/* 3. SPARKS (CHAT) PANEL STYLING */
#panel-sparks {
    padding: 0;
}

.sparks-layout {
    display: flex;
    height: 100%;
    width: 100%;
}

.sparks-sidebar {
    width: 110px;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 16px 8px;
    background: rgba(10, 11, 16, 0.3);
    transition: width 0.3s ease;
}

.sparks-sidebar h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
    transition: text-align 0.3s ease;
}

#matches-list-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.match-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.match-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.match-item.active {
    background: rgba(255, 170, 0, 0.08);
    border: 1px solid rgba(255, 170, 0, 0.15);
}

.match-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 6px;
    border: 2px solid var(--glass-border);
    background: linear-gradient(135deg, #ccc, #777);
    transition: width 0.3s ease, height 0.3s ease;
}

.match-item.active .match-avatar {
    border-color: var(--primary);
}

.match-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: font-size 0.3s ease;
}

@media (min-width: 600px) {
    .sparks-sidebar {
        width: 220px;
        padding: 16px;
    }
    .sparks-sidebar h3 {
        text-align: left;
        padding-left: 6px;
    }
    .match-item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
    }
    .match-avatar {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
    }
    .match-name {
        font-size: 13px;
        text-align: left;
        max-width: 130px;
    }
}

.chat-console {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(10, 11, 16, 0.55);
}

.chat-header {
    height: 56px;
    border-bottom: 1px solid var(--glass-border);
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.15);
}

.chat-header-details h4 {
    font-size: 14px;
    font-weight: 600;
}

.chat-header-details p {
    font-size: 10px;
    color: var(--text-muted);
}

#btn-suggest-date-header {
    margin-left: auto;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-chat-state {
    margin: auto;
    text-align: center;
    padding: 20px;
}

.empty-chat-state p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 200px;
    margin: 8px auto 0;
}

/* Chat bubble styling */
.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: var(--border-radius-md);
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    animation: fadeInBubble 0.2s ease;
}

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

.chat-bubble.sent {
    background: linear-gradient(135deg, rgba(255,170,0,0.15) 0%, rgba(255,136,0,0.15) 100%);
    border: 1px solid rgba(255,170,0,0.25);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-bubble.received {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

/* Virtual Drink message inside chat */
.drink-message-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 10px;
    margin-bottom: 8px;
}

.drink-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 170, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.drink-card-content h5 {
    font-size: 12px;
    font-weight: 700;
}

.drink-card-content p {
    font-size: 10px;
    color: var(--text-muted);
}

.chat-input-console {
    border-top: 1px solid var(--glass-border);
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.chat-controls-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Extras Drawer (Virtual Drinks) */
.extras-drawer {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-bottom: none;
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 10;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
    display: none; /* toggled */
}

.extras-drawer.active {
    display: block;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}

.coin-context {
    font-size: 10px;
    color: var(--text-muted);
}

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

.drink-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.drink-item:hover {
    background: rgba(255, 170, 0, 0.08);
    border-color: var(--primary);
}

.drink-item i {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}

.drink-item-name {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drink-item-cost {
    font-size: 10px;
    color: var(--primary);
    margin-top: 4px;
    font-weight: 600;
}

/* 4. LOCAL VENUES STYLING */
.venues-layout {
    display: flex;
    flex-direction: column;
}

.venues-title-box {
    margin-bottom: 20px;
}

.venues-title-box h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    margin-bottom: 4px;
}

.venues-title-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.venues-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 20px;
}

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

@media (min-width: 900px) {
    .venues-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.venue-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
}

.venue-image-box {
    height: 100px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    position: relative;
}

.venue-county-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.venue-details-box {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.venue-details-box h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    margin-bottom: 4px;
}

.venue-details-box .address {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.venue-details-box .description {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.venue-action-row {
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.venue-action-row a.btn {
    text-decoration: none;
}

.venue-receipt-row {
    margin-top: 8px;
}

.venue-receipt-btn {
    width: 100%;
    font-size: 12px;
}

/* Nav button pulse animation for "suggest date" hint */
@keyframes navPulse {
    0%, 100% { color: var(--text-muted); }
    50% { color: var(--primary); transform: scale(1.15); }
}

.nav-pulse {
    animation: navPulse 0.5s ease-in-out 3;
}

/* 5. WALLET & PROFILE STYLING */
.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .profile-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }
}

.profile-settings-card, .wallet-settings-card, .vouchers-settings-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--shadow-premium);
}

@media (min-width: 768px) {
    .vouchers-settings-card {
        grid-column: 1 / -1;
    }
}

.profile-settings-card h3, .wallet-settings-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    margin-bottom: 16px;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.coins-total-box {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: var(--border-radius-md);
    padding: 8px 16px;
    text-align: center;
}

.coins-value {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.coins-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.boost-control-box {
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--border-radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.boost-control-box h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #a78bfa;
}

.boost-control-box p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.boost-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    font-size: 13px;
    font-weight: 500;
}

.inactive-badge {
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.active-badge {
    background: var(--success);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.coin-checkout-box h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.coin-checkout-box p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 16px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.package-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.package-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.package-card.active {
    background: rgba(255, 170, 0, 0.08);
    border-color: var(--primary);
}

.package-card h5 {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.package-card.active h5 {
    color: var(--primary);
}

.pkg-coins {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pkg-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.package-card.active .pkg-price {
    color: var(--text-main);
}

/* Secure Square Form Elements override styling */
.checkout-form {
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
}

.cc-form-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

#card-container {
    min-height: 80px; /* Square Card element size */
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 12px;
}

/* Payment Status messages */
.status-msg {
    margin-top: 10px;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
}

.status-msg.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.status-msg.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Toast Notifications Container */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 40px);
    max-width: 360px;
}

.toast {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-main);
    animation: slideDownToast 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.3s ease;
}

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

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

.toast-icon {
    font-size: 16px;
}
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--primary); }

/* Helpers */
.hidden {
    display: none !important;
}

.gold-icon {
    color: #ffaa00;
}

/* ==========================================================================
   Public Landing Page & Auth Modal Extensions
   ========================================================================== */

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

/* Landing Page Hero */
.landing-hero {
    text-align: center;
    padding: 36px 16px 24px;
    background: radial-gradient(circle at top, rgba(255, 170, 0, 0.08) 0%, transparent 60%);
}

.hero-spark {
    font-size: 44px;
    margin-bottom: 12px;
    animation: floatingSpark 3s ease-in-out infinite;
}

@keyframes floatingSpark {
    0% { transform: translateY(0px) scale(1); filter: drop-shadow(0 0 5px rgba(255,170,0,0.2)); }
    50% { transform: translateY(-8px) scale(1.05); filter: drop-shadow(0 0 15px rgba(255,71,126,0.4)); }
    100% { transform: translateY(0px) scale(1); filter: drop-shadow(0 0 5px rgba(255,170,0,0.2)); }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 32px;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto 24px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Showcase Sections */
.showcase-section {
    padding: 24px 0 12px;
    border-top: 1px solid var(--glass-border);
}

.showcase-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.section-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Blurred preview profiles grid */
.preview-singles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 600px) {
    .preview-singles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.preview-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    height: 190px;
    display: flex;
    flex-direction: column;
}

.preview-card-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px) brightness(0.65);
    transform: scale(1.1); /* Hides edge bleed from blur filter */
    transition: var(--transition-smooth);
}

.preview-card-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 40%, transparent 100%);
    text-align: center;
}

.preview-card-details h5 {
    font-size: 12px;
    color: var(--text-main);
}

.preview-card-details span {
    font-size: 9px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
}

.preview-card-overlay-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transition: var(--transition-fast);
}

.preview-card:hover .preview-card-overlay-btn {
    opacity: 1;
    background: rgba(0, 0, 0, 0.45);
}

.btn-unlock {
    background: var(--primary);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    border: none;
    font-weight: 600;
}

/* Landing Venues Grid */
.preview-venues-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.preview-venue-thumb {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.preview-venue-thumb:hover {
    border-color: var(--primary);
    background: rgba(255, 170, 0, 0.05);
}

.preview-venue-thumb i {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 6px;
}

.preview-venue-thumb h5 {
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-venue-thumb span {
    font-size: 8px;
    color: var(--text-muted);
}

/* Features List Bullet cards */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 600px) {
    .features-list {
        flex-direction: row;
    }
    .feature-bullet {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }
    .feature-bullet .f-icon {
        margin-bottom: 8px;
    }
}

.feature-bullet {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.f-icon {
    font-size: 20px;
    color: var(--primary);
    width: 36px;
    height: 36px;
    background: rgba(255, 170, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f-text h5 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.f-text p {
    font-size: 11px;
    color: var(--text-muted);
}

.padding-bottom-lg {
    padding-bottom: 40px !important;
}

/* ==========================================================================
   Overlay Modal (Auth) styling
   ========================================================================== */

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInOverlay 0.3s ease;
}

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

.auth-modal-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: var(--shadow-premium);
    animation: scaleInCard 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleInCard {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

/* ==========================================================================
   Avatar Photo upload preview components
   ========================================================================== */

.flex-avatar-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 8px 0;
}

.photo-preview-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Default photo preview state icon helper */
.photo-preview-circle::after {
    content: "\f030";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--text-dim);
    font-size: 20px;
}

/* When image loaded, hide placeholder icon */
.photo-preview-circle.has-image::after {
    display: none;
}

.upload-control {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.upload-control label {
    margin-bottom: 0;
}

.upload-tip {
    font-size: 10px;
    color: var(--text-dim);
}

/* Ensure discover profile pics render properly as cover images */
.card-image-box {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.match-avatar {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ==========================================================================
   Admin Control Center Panel Layout Styles
   ========================================================================== */
.admin-layout {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
    overflow-y: auto;
    height: 100%;
}

.admin-title-box {
    margin-bottom: 24px;
}

.admin-title-box h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.admin-title-box p {
    font-size: 12px;
    color: var(--text-dim);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.admin-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--shadow-premium);
}

.admin-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    color: var(--text-main);
}

.admin-inline-form {
    display: flex;
    gap: 10px;
}

.admin-inline-form input {
    flex: 1;
}

.admin-inline-form button {
    width: auto;
    white-space: nowrap;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.btn-small-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 4px 8px;
    font-size: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-small-danger:hover {
    background: #ef4444;
    color: #fff;
}

.btn-small-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 4px 8px;
    font-size: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-small-success:hover {
    background: #10b981;
    color: #fff;
}

.btn-small-dim {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 4px 8px;
    font-size: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-small-dim:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.badge-flagged {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.badge-dismissed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}
.badge-dot {
    position: absolute;
    top: 6px;
    left: calc(50% + 8px);
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent);
    z-index: 10;
}

/* Chat Venue Suggestion Card styling */
.venue-suggestion-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 12px;
    margin: 8px 10px;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.venue-suggestion-card.sent {
    align-self: flex-end;
    border-color: rgba(255, 170, 0, 0.25);
    background: rgba(255, 170, 0, 0.05);
}

.venue-suggestion-card.received {
    align-self: flex-start;
    border-color: rgba(255, 71, 126, 0.25);
    background: rgba(255, 71, 126, 0.05);
}

.suggestion-header h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 4px;
}

.spark-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 170, 0, 0.15);
    color: var(--primary);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    text-transform: uppercase;
    width: fit-content;
}

.suggestion-address {
    font-size: 11px;
    color: var(--text-muted);
}

.suggestion-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.suggestion-actions a.btn, .suggestion-actions button.btn {
    font-size: 11px;
    padding: 4px 8px;
    text-decoration: none;
}

/* ==========================================================================
   Onboarding Preferences Wizard Modal & Badges
   ========================================================================== */

.onboarding-card {
    max-width: 680px !important;
    max-height: 85vh;
    background: rgba(20, 20, 30, 0.96) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.onboarding-progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.onboarding-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.onboarding-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.onboarding-step-counter {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.onboarding-question-header {
    margin-bottom: 20px;
}

.onboarding-question-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.onboarding-question-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.onboarding-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    flex: 1;
    min-height: 0;
    max-height: 42vh;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 20px;
}

.onboarding-option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.onboarding-option-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.onboarding-option-card.selected {
    background: rgba(255, 71, 126, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 71, 126, 0.15);
}

.onboarding-option-icon {
    font-size: 18px;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.onboarding-option-card.selected .onboarding-option-icon {
    background: var(--primary);
    color: white;
}

.onboarding-option-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.onboarding-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.discover-tag-match-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}

.card-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.card-tag-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.card-tag-pill.match {
    background: rgba(255, 71, 126, 0.1);
    border-color: rgba(255, 71, 126, 0.3);
    color: var(--primary);
    font-weight: 600;
}

/* ==========================================================================
   Expanded Profile Overlay (Hinge-style full-screen profile view)
   ========================================================================== */
.profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.profile-overlay.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.profile-overlay-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1010;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.profile-overlay-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.profile-overlay-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Gallery Hero */
.profile-gallery-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 65vh;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

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

/* Gallery dot indicators */
.gallery-dots {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: var(--transition-fast);
    cursor: pointer;
}

.gallery-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* Gallery nav arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 5;
    opacity: 0;
}

.profile-gallery-hero:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

/* Gallery video indicator */
.gallery-video-indicator {
    position: absolute;
    bottom: 140px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Overlay video element */
.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* Profile content area */
.profile-overlay-content {
    padding: 0 24px 120px;
    position: relative;
    margin-top: -40px;
}

.profile-overlay-name-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.profile-overlay-name {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
}

.profile-overlay-age {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--text-muted);
}

.profile-overlay-location {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.profile-overlay-county-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.2);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.profile-overlay-bio-section {
    margin-bottom: 24px;
}

.profile-overlay-bio-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.profile-overlay-bio {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.7;
    white-space: pre-wrap;
}

.profile-overlay-tags-section {
    margin-bottom: 24px;
}

.profile-overlay-tags-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.profile-overlay-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-overlay-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.profile-overlay-tag.match {
    background: rgba(255, 71, 126, 0.1);
    border-color: rgba(255, 71, 126, 0.3);
    color: var(--primary);
    font-weight: 600;
}

/* Fixed bottom action bar */
.profile-overlay-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1010;
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px 24px 28px;
    background: linear-gradient(to top, var(--bg-dark) 60%, transparent);
}

/* Photo grid in profile edit */
.media-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.media-upload-slot {
    aspect-ratio: 3 / 4;
    border-radius: var(--border-radius-md);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.media-upload-slot:hover {
    border-color: var(--primary);
    background: rgba(255, 170, 0, 0.04);
}

.media-upload-slot.filled {
    border-style: solid;
    border-color: var(--glass-border);
}

.media-upload-slot .slot-preview {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-md);
}

.media-upload-slot .slot-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.media-upload-slot .slot-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 2;
}

.media-upload-slot:hover .slot-remove {
    opacity: 1;
}

.media-upload-slot .slot-label {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
}

.media-upload-slot .slot-icon {
    font-size: 20px;
    color: var(--text-dim);
}

.media-upload-slot .slot-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--primary);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Super Spark Button (Gold Star)
   ========================================================================== */
.btn-round.super-spark {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #1a1a2e;
    border: 2px solid rgba(255, 210, 0, 0.4);
    width: 52px;
    height: 52px;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(255, 210, 0, 0.3), 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.btn-round.super-spark:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(255, 210, 0, 0.5), 0 6px 20px rgba(0, 0, 0, 0.4);
}
.btn-round.super-spark:active {
    transform: scale(0.95);
}

/* Gold swipe animation for Super Spark */
.profile-card-container.swipe-super-anim {
    animation: swipeSuperSpark 0.4s ease-out forwards;
}
@keyframes swipeSuperSpark {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-120px) scale(1.05); opacity: 0; }
}

/* ==========================================================================
   Discover Boost Bar (always visible)
   ========================================================================== */
.discover-boost-bar {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
}
.btn-boost-inline {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
}
.btn-boost-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}
.boost-cost-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

/* ==========================================================================
   Personal Care Merchants Section
   ========================================================================== */
.merchants-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.merchants-title-box {
    text-align: center;
    margin-bottom: 20px;
}
.merchants-title-box h2 {
    font-size: 22px;
    margin-bottom: 6px;
}
.merchants-title-box p {
    color: var(--text-muted);
    font-size: 14px;
}
.merchant-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}
.category-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}
.category-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}
.category-pill.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #1a1a2e;
    border-color: transparent;
    font-weight: 700;
}
.merchants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.merchant-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}
.merchant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}
.merchant-card.featured {
    border-color: rgba(255, 210, 0, 0.25);
    box-shadow: 0 0 20px rgba(255, 210, 0, 0.08);
}
.merchant-image-box {
    height: 120px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 10px;
}
.merchant-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.merchant-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #1a1a2e;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
}
.merchant-details-box {
    padding: 14px 16px 16px;
}
.merchant-details-box h3 {
    font-size: 16px;
    margin-bottom: 4px;
}
.merchant-details-box .merchant-address {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.merchant-details-box .merchant-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}
.merchant-promo-box {
    background: rgba(255, 210, 0, 0.08);
    border: 1px solid rgba(255, 210, 0, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.merchant-promo-text {
    font-size: 12px;
    color: #ffd200;
    font-weight: 600;
}
.merchant-promo-code {
    font-size: 11px;
    font-weight: 800;
    color: #ffd200;
    background: rgba(255, 210, 0, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
    letter-spacing: 0.08em;
}
.merchant-actions {
    display: flex;
    gap: 8px;
}
.merchant-actions .btn {
    flex: 1;
    font-size: 12px;
    padding: 6px;
}

/* ==========================================================================
   DESKTOP APP SHELL (>= 1024px)
   Mobile keeps the bottom-nav column layout untouched. On desktop the app
   goes full-width with the navigation as a left sidebar — no more centered
   "fake phone" column.
   ========================================================================== */
@media (min-width: 1024px) {

    body {
        display: block; /* no need to center a full-width shell */
    }

    #app-container {
        max-width: none;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    /* Logged-in shell: grid with a persistent left sidebar.
       :has() scopes this to when the navbar is actually visible,
       so the logged-out landing page stays a simple full-width column. */
    #app-container:has(> #app-navbar:not(.hidden)) {
        display: grid;
        grid-template-columns: 240px 1fr;
        grid-template-rows: 64px 1fr;
        grid-template-areas:
            "nav header"
            "nav main";
    }

    #app-container:has(> #app-navbar:not(.hidden)) > #app-header {
        grid-area: header;
    }

    #app-container:has(> #app-navbar:not(.hidden)) > #app-main {
        grid-area: main;
    }

    /* Bottom bar -> left sidebar */
    #app-container:has(> #app-navbar:not(.hidden)) > #app-navbar {
        grid-area: nav;
        height: auto;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 6px;
        padding: 84px 14px 20px;
        border-top: none;
        border-right: 1px solid var(--glass-border);
    }

    /* Sidebar brand mark (pure CSS, mirrors the header logo) */
    #app-container:has(> #app-navbar:not(.hidden)) > #app-navbar::before {
        content: "Valley Sparks";
        font-family: 'Outfit', sans-serif;
        font-weight: 800;
        font-size: 20px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        position: absolute;
        top: 20px;
        left: 22px;
    }

    #app-container:has(> #app-navbar:not(.hidden)) > #app-navbar .nav-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 14px;
        width: 100%;
        padding: 12px 16px;
        border-radius: var(--border-radius-sm);
    }

    #app-container:has(> #app-navbar:not(.hidden)) > #app-navbar .nav-item span {
        font-size: 14px;
    }

    #app-container:has(> #app-navbar:not(.hidden)) > #app-navbar .nav-item.active {
        background: rgba(255, 170, 0, 0.1);
    }

    #app-container:has(> #app-navbar:not(.hidden)) > #app-navbar .nav-icon {
        font-size: 18px;
        width: 22px;
        text-align: center;
    }

    /* Hide the duplicate logo in the header once the sidebar carries the brand */
    #app-container:has(> #app-navbar:not(.hidden)) > #app-header .logo {
        visibility: hidden;
    }

    /* Panels: desktop breathing room + centered content columns */
    .panel {
        padding: 32px 40px;
    }

    .venues-layout,
    .profile-layout {
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
    }

    /* Discover: larger card, still centered (standard desktop dating UX) */
    .profile-card-container {
        max-width: 480px;
        max-height: 640px;
    }

    /* Chat panel already runs a two-pane layout; give it full height */
    #panel-sparks {
        padding: 0;
    }

    .sparks-sidebar {
        width: 280px;
    }

    /* Landing page: constrain readable width, scale hero typography */
    .landing-hero {
        padding: 72px 24px 40px;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 17px;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .showcase-section {
        width: 100%;
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    .preview-singles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .preview-venues-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

/* ==========================================================================
   AUTH PAGES (/login, /register) — full pages, not modals
   ========================================================================== */
.auth-page {
    position: fixed;
    inset: 0;
    z-index: 500;
    overflow-y: auto;
    background:
        radial-gradient(ellipse at top, rgba(255, 170, 0, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(255, 71, 126, 0.05) 0%, transparent 50%),
        var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px 48px;
}

.auth-page.hidden {
    display: none;
}

.auth-page .auth-page-card {
    max-width: 440px;
    margin-top: 24px;
    animation: none;          /* no modal pop-in — it is a page */
    max-height: none;          /* the page scrolls, not the card */
    overflow-y: visible;
    padding: 32px;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 16px;
    transition: var(--transition-fast);
}

.auth-back-link:hover {
    color: var(--primary);
}

@media (min-width: 1024px) {
    .auth-page {
        align-items: center;
        padding: 48px 24px;
    }
    .auth-page .auth-page-card {
        max-width: 480px;
        margin-top: 0;
        padding: 40px 44px;
    }
}
