/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #ec4899;
    --pink-light: #f9a8d4;
    --pink-dark: #db2777;
    --lilac: #a855f7;
    --lilac-light: #c084fc;
    --lilac-dark: #9333ea;
    --blue: #3b82f6;
    --blue-light: #93c5fd;
    --blue-dark: #2563eb;
    --white: #ffffff;
    --ghost: #f8fafc;
    --gray-50: #f1f5f9;
    --gray-100: #e2e8f0;
    --gray-200: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gradient-main: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #3b82f6 100%);
    --gradient-card: linear-gradient(135deg, rgba(236,72,153,0.08) 0%, rgba(168,85,247,0.08) 50%, rgba(59,130,246,0.08) 100%);
    --gradient-glow: linear-gradient(135deg, #ec4899, #a855f7, #3b82f6);
    --shadow-sm: 0 2px 8px rgba(168,85,247,0.1);
    --shadow-md: 0 4px 20px rgba(168,85,247,0.15);
    --shadow-lg: 0 8px 40px rgba(168,85,247,0.2);
    --shadow-glow: 0 0 30px rgba(168,85,247,0.3);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --nav-height: 80px;
    --top-bar-height: 60px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-900);
    color: var(--white);
    min-height: 100dvh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== PARTICLES CANVAS ===== */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== SCREEN SYSTEM ===== */
.screen {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SPLASH SCREEN ===== */
#splashScreen {
    background: radial-gradient(ellipse at 30% 20%, rgba(236,72,153,0.25) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(59,130,246,0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(168,85,247,0.15) 0%, transparent 60%),
                var(--gray-900);
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
}

.splash-content {
    max-width: 380px;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.splash-logo {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.logo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.logo-emoji { font-size: 44px; }

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(168,85,247,0.4);
    animation: pulseRing 2s ease-out infinite;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(168,85,247,0.2);
    animation: pulseRing 2s ease-out infinite 0.5s;
}

@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.logo-text {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.logo-tagline {
    color: var(--gray-400);
    font-size: 15px;
    margin-top: 6px;
}

.splash-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 36px;
}

.feature-pill {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--gray-200);
    backdrop-filter: blur(10px);
}

.splash-note {
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-400);
}

.splash-note a {
    color: var(--lilac-light);
    text-decoration: none;
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--gradient-main);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-glow {
    box-shadow: 0 4px 25px rgba(168,85,247,0.4);
}

.btn-arrow {
    font-size: 20px;
    transition: transform 0.2s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.05);
    color: var(--gray-200);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
    font-family: inherit;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}

/* ===== ONBOARDING ===== */
#onboardingScreen {
    background: radial-gradient(ellipse at 20% 80%, rgba(236,72,153,0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.12) 0%, transparent 50%),
                var(--gray-900);
    justify-content: center;
    align-items: center;
    padding: 24px;
}

/* ===== GEOLOCATION SCREEN ===== */
#geoScreen {
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.geo-screen-wrap {
    max-width: 420px;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.geo-pulse {
    animation: geoPulse 2s ease-in-out infinite;
}
@keyframes geoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.geo-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    cursor: pointer;
    transition: all 0.25s;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
}
.geo-option:hover {
    background: rgba(168,85,247,0.1);
    border-color: rgba(168,85,247,0.3);
    transform: translateY(-2px);
}
.geo-option.loading {
    opacity: 0.6;
    pointer-events: none;
}
.geo-option.success {
    border-color: #4ade80;
    background: rgba(34,197,94,0.1);
}
.geo-option-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(168,85,247,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.geo-option-gps .geo-option-icon {
    background: rgba(59,130,246,0.12);
}
.geo-option-text {
    flex: 1;
}
.geo-option-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}
.geo-option-desc {
    font-size: 12px;
    color: var(--gray-400);
}
.geo-option-arrow {
    font-size: 18px;
    color: var(--gray-400);
    flex-shrink: 0;
}
.geo-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 13px;
    color: var(--gray-300);
    margin-bottom: 4px;
}
.geo-status-spinner {
    font-size: 18px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.geo-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0;
    color: var(--gray-500);
    font-size: 13px;
}
.geo-divider::before,
.geo-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}
.geo-city-picker {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 12px;
}
.geo-city-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.geo-city-chip {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.geo-city-chip:hover {
    background: rgba(168,85,247,0.12);
    border-color: rgba(168,85,247,0.3);
}
.geo-city-chip.selected {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}
.geo-skip-btn {
    margin-top: 16px;
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--gray-400);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
}
.geo-skip-btn:hover {
    color: var(--text);
}

.geo-skip-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-500);
    font-style: italic;
}

.onboarding-container {
    max-width: 420px;
    width: 100%;
    z-index: 2;
}

.onboarding-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background: var(--gradient-main);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 13px;
    color: var(--gray-400);
    white-space: nowrap;
}

.onboarding-step {
    display: none;
    text-align: center;
    animation: slideUp 0.4s ease;
}

.onboarding-step.active {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-emoji {
    font-size: 56px;
    margin-bottom: 12px;
}

.onboarding-step h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.step-subtitle {
    color: var(--gray-400);
    font-size: 15px;
    margin-bottom: 28px;
}

.gender-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}

.gender-card {
    flex: 1;
    max-width: 160px;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.gender-card:hover {
    border-color: rgba(168,85,247,0.3);
    background: rgba(168,85,247,0.08);
}

.gender-card.selected {
    border-color: var(--lilac);
    background: rgba(168,85,247,0.15);
    box-shadow: 0 0 20px rgba(168,85,247,0.2);
}

.gender-icon {
    font-size: 42px;
    margin-bottom: 8px;
}

.gender-card span {
    font-size: 15px;
    font-weight: 600;
}

/* Age selector */
.age-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.age-input-group {
    text-align: center;
}

.age-input-group label {
    display: block;
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.age-control {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 10px 16px;
}

.age-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
}

.age-btn:hover {
    background: rgba(168,85,247,0.2);
    border-color: var(--lilac);
}

.age-value {
    font-size: 32px;
    font-weight: 800;
    width: 50px;
    text-align: center;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.age-divider {
    font-size: 20px;
    color: var(--gray-400);
    margin-top: 22px;
}

/* City chips */
.city-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.city-chip {
    padding: 10px 18px;
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.city-chip:hover {
    border-color: rgba(168,85,247,0.4);
    background: rgba(168,85,247,0.08);
}

.city-chip.selected {
    border-color: var(--lilac);
    background: rgba(168,85,247,0.2);
    box-shadow: 0 0 15px rgba(168,85,247,0.15);
}

.onboarding-nav {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.onboarding-nav .btn-primary {
    flex: 1;
}

/* ===== MAIN SCREEN ===== */
#mainScreen {
    background: radial-gradient(ellipse at 20% 10%, rgba(236,72,153,0.08) 0%, transparent 40%),
                radial-gradient(ellipse at 80% 90%, rgba(59,130,246,0.06) 0%, transparent 40%),
                var(--gray-900);
}

/* Top bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    height: var(--top-bar-height);
    z-index: 10;
    backdrop-filter: blur(20px);
    background: rgba(15,23,42,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-name {
    font-size: 24px;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-badge { font-size: 16px; }

.top-bar-right {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--gray-200);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(168,85,247,0.15);
    border-color: rgba(168,85,247,0.3);
}

.notification-dot {
    position: relative;
}

.notification-dot::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink);
    border: 2px solid var(--gray-900);
    display: none;
}

.notification-dot.has-notif::after {
    display: block;
}

/* ===== TAB CONTENT ===== */
.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
    -webkit-overflow-scrolling: touch;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== REELS-STYLE FEED ===== */
.reels-viewport {
    position: relative;
    width: 100%;
    height: calc(100dvh - var(--top-bar-height) - var(--nav-height));
    overflow: hidden;
    touch-action: none;
    perspective: 1200px;
}

.reel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    user-select: none;
    padding: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.reel-slide.above { transform: translateY(-105%) scale(0.92); opacity: 0; }
.reel-slide.current { transform: translateY(0) scale(1); opacity: 1; }
.reel-slide.below { transform: translateY(105%) scale(0.92); opacity: 0; }
.reel-slide.swiping { transition: none !important; }

/* Swipe horizontal offset — card toss effect */
.reel-slide.swipe-right {
    transform: translateX(120%) rotate(18deg) scale(0.85);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.reel-slide.swipe-left {
    transform: translateX(-120%) rotate(-18deg) scale(0.85);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* Background decorations per slide */
.reel-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.reel-bg .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.25;
    animation: blobFloat 8s ease-in-out infinite alternate;
}

.reel-bg .blob-1 { width: 200px; height: 200px; background: var(--pink); top: 10%; left: -30px; animation-delay: 0s; }
.reel-bg .blob-2 { width: 250px; height: 250px; background: var(--lilac); bottom: 15%; right: -40px; animation-delay: 2s; }
.reel-bg .blob-3 { width: 150px; height: 150px; background: var(--blue); top: 50%; left: 50%; animation-delay: 4s; }

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.15); }
}

/* The circle itself */
.reel-circle-outer {
    position: relative;
    z-index: 2;
    width: min(75vw, 320px);
    height: min(75vw, 320px);
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-main);
    box-shadow: 0 0 40px rgba(168,85,247,0.35), 0 0 80px rgba(236,72,153,0.15);
    animation: borderRotate 4s linear infinite;
    flex-shrink: 0;
    cursor: pointer;
}

/* Timeline ring SVG overlay */
.timeline-ring {
    position: absolute;
    inset: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    z-index: 10;
    pointer-events: none;
    transform: rotate(-90deg);
}
.timeline-ring .timeline-bg {
    fill: none;
    stroke: rgba(255,255,255,0.08);
    stroke-width: 4;
}
.timeline-ring .timeline-fill {
    fill: none;
    stroke: url(#timelineGrad);
    stroke: #ec4899;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

/* Scrub knob on timeline ring */
.scrub-knob {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ec4899;
    box-shadow: 0 0 8px rgba(236,72,153,0.5), 0 2px 6px rgba(0,0,0,0.3);
    z-index: 20;
    cursor: grab;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    transition: left 0.12s cubic-bezier(0.25, 1, 0.5, 1), top 0.12s cubic-bezier(0.25, 1, 0.5, 1), transform 0.1s ease, box-shadow 0.15s ease;
    /* positioned via JS top/left */
    top: 0;
    left: 50%;
}
.scrub-knob:hover, .scrub-knob.dragging {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 14px rgba(236,72,153,0.7), 0 2px 10px rgba(0,0,0,0.4);
    cursor: grabbing;
}
.scrub-knob.dragging {
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.viewer-scrub-knob {
    width: 20px;
    height: 20px;
    border-width: 3px;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.reel-circle-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-avatar {
    font-size: 96px;
    animation: avatarPulse 3s ease-in-out infinite;
}
.reel-avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Info below circle */
.reel-info {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 20px;
}

.reel-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.reel-details {
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 4px;
}

.reel-bio {
    font-size: 14px;
    color: var(--gray-200);
    margin-top: 8px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.reel-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.reel-interest-tag {
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(168,85,247,0.15);
    border: 1px solid rgba(168,85,247,0.25);
    font-size: 11px;
    color: var(--lilac-light);
}

/* Side actions */
.reel-side-actions {
    position: absolute;
    right: 16px;
    bottom: 120px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.reel-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 22px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    color: white;
}

.reel-action-btn span {
    font-size: 10px;
    margin-top: 2px;
    font-weight: 600;
}

.reel-action-btn:hover {
    transform: scale(1.15);
    background: rgba(168,85,247,0.3);
}

.reel-action-btn.liked {
    background: rgba(236,72,153,0.4);
    box-shadow: 0 0 20px rgba(236,72,153,0.4);
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Online dot */
.reel-online {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(34,197,94,0.2);
    border: 1px solid rgba(34,197,94,0.4);
    font-size: 11px;
    font-weight: 600;
    color: #4ade80;
    z-index: 3;
}

.reel-new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--gradient-main);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

/* Swipe hint overlays */
.swipe-hint {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px 28px;
    border-radius: var(--radius-lg);
    font-size: 22px;
    font-weight: 800;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.swipe-hint.visible {
    opacity: 1;
}

.swipe-hint-like {
    right: 20px;
    background: rgba(236,72,153,0.2);
    border: 2px solid var(--pink);
    color: var(--pink-light);
}

.swipe-hint-nope {
    left: 20px;
    background: rgba(100,100,120,0.2);
    border: 2px solid var(--gray-400);
    color: var(--gray-200);
}

/* Scroll indicators */
.reel-scroll-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.5;
    animation: bounceUp 2s ease infinite;
}

.reel-scroll-hint svg {
    width: 20px;
    height: 20px;
    stroke: var(--gray-400);
}

.reel-scroll-hint span {
    font-size: 10px;
    color: var(--gray-400);
}

@keyframes bounceUp {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

/* ===== CHAT STYLES ===== */
.chat-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.2s;
}

.chat-item:hover {
    background: rgba(168,85,247,0.08);
    border-color: rgba(168,85,247,0.2);
}

.chat-item-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 2px solid rgba(168,85,247,0.3);
    flex-shrink: 0;
    overflow: hidden;
}
.chat-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chat-item-info {
    flex: 1;
    min-width: 0;
}

.chat-item-name {
    font-size: 15px;
    font-weight: 700;
}

.chat-item-last {
    font-size: 13px;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.chat-item-time {
    font-size: 11px;
    color: var(--gray-400);
}

.chat-item-unread {
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Chat window */
.chat-window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(15,23,42,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.chat-back-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    background: rgba(255,255,255,0.05);
    color: var(--gray-200);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.chat-back-btn:hover {
    background: rgba(255,255,255,0.1);
}

.chat-window-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-window-avatar {
    font-size: 24px;
    overflow: hidden;
}
.chat-header-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-window-name {
    font-weight: 700;
    font-size: 15px;
}

.chat-window-online {
    font-size: 11px;
    color: #4ade80;
}

/* Chat menu */
.chat-menu-wrap {
    margin-left: auto;
    position: relative;
}

.chat-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.2s;
}

.chat-menu-btn span {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
}

.chat-menu-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(168,85,247,0.3);
}

.chat-menu-btn:hover span {
    background: #fff;
}

.chat-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(20,15,35,0.96);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 6px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(168,85,247,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
}

.chat-menu-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
}

.chat-menu-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.chat-menu-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.chat-menu-item:hover svg {
    opacity: 1;
}

.chat-menu-block:hover {
    background: rgba(251,191,36,0.1);
    color: #fbbf24;
}

.chat-menu-block:hover svg {
    stroke: #fbbf24;
}

.chat-menu-report:hover {
    background: rgba(168,85,247,0.1);
    color: #c084fc;
}

.chat-menu-report:hover svg {
    stroke: #c084fc;
}

.chat-menu-delete:hover {
    background: rgba(248,113,113,0.1);
    color: #f87171;
}

.chat-menu-delete:hover svg {
    stroke: #f87171;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-msg {
    max-width: 75%;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    animation: msgIn 0.25s ease;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.incoming {
    align-self: flex-start;
    background: rgba(255,255,255,0.08);
    border-bottom-left-radius: 4px;
}

.chat-msg.outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(236,72,153,0.3));
    border-bottom-right-radius: 4px;
}

.chat-msg-time {
    font-size: 10px;
    color: var(--gray-400);
    margin-top: 4px;
}

.chat-input-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    padding-bottom: calc(12px + var(--nav-height) + var(--safe-bottom));
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.06);
    z-index: 5;
}

.chat-input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 100px;
    border: 1.5px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: white;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--lilac);
}

.chat-input::placeholder {
    color: var(--gray-600);
}

.chat-send-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-main);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(168,85,247,0.4);
}

#tabChatWindow {
    display: none;
    flex-direction: column;
    padding-bottom: 0;
}

#tabChatWindow.active {
    display: flex;
    height: calc(100dvh - var(--top-bar-height));
    overflow: hidden;
}

.chat-input-bar {
    flex-shrink: 0;
}

/* ===== RECORD BUTTON ===== */
.record-btn {
    position: fixed;
    bottom: calc(var(--nav-height) + 16px + var(--safe-bottom));
    right: 20px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.record-btn-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(168,85,247,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.record-btn:hover .record-btn-inner {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(168,85,247,0.5);
}

.record-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(168,85,247,0.4);
    animation: pulseRing 2s ease-out infinite;
}

.record-label {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 600;
}

/* ===== FAVORITES ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 12px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 800;
}

.section-count {
    padding: 2px 10px;
    border-radius: 100px;
    background: rgba(168,85,247,0.15);
    color: var(--lilac-light);
    font-size: 13px;
    font-weight: 700;
}

.favorites-grid {
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.fav-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.fav-card:hover {
    border-color: rgba(168,85,247,0.3);
    background: rgba(168,85,247,0.08);
    transform: translateY(-2px);
}

.fav-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 10px;
    border: 2px solid rgba(168,85,247,0.3);
}

.fav-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.fav-age-city {
    font-size: 12px;
    color: var(--gray-400);
}

.fav-remove {
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--gray-400);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.fav-remove:hover {
    background: rgba(236,72,153,0.15);
    border-color: rgba(236,72,153,0.3);
    color: var(--pink-light);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-emoji {
    font-size: 56px;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.empty-state span {
    font-size: 14px;
    color: var(--gray-400);
}

/* ===== PROFILE TAB ===== */
.profile-container {
    padding: 20px 16px;
    max-width: 480px;
    margin: 0 auto;
}

.profile-header-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 28px 20px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--gradient-main);
    opacity: 0.1;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-card);
    border: 3px solid var(--lilac);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    overflow: hidden;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--gray-900);
    background: var(--lilac);
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-name {
    font-size: 22px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.profile-location {
    color: var(--gray-400);
    font-size: 14px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-item-clickable {
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 14px;
    transition: background 0.2s, transform 0.15s;
}
.stat-item-clickable:hover {
    background: rgba(168,85,247,0.1);
    transform: translateY(-2px);
}
.stat-item-clickable:active {
    transform: scale(0.95);
}

.stat-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-400);
}

/* Glass card */
.glass-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    backdrop-filter: blur(10px);
}

.glass-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.profile-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

.profile-info-item:hover {
    background: rgba(255,255,255,0.06);
}

.info-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168,85,247,0.12);
    border-radius: 10px;
    flex-shrink: 0;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.info-label {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.profile-section-header h3 {
    margin-bottom: 0;
}

.profile-edit-toggle {
    background: rgba(168,85,247,0.15);
    border: 1px solid rgba(168,85,247,0.3);
    color: var(--purple-400);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-edit-toggle:active {
    transform: scale(0.96);
}

.profile-bio-display {
    font-size: 14px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 4px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.profile-cats-display {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-cats-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-cats-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-cat-tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(168,85,247,0.15));
    border: 1px solid rgba(168,85,247,0.2);
    color: var(--text-primary);
}

/* Account actions */
.profile-account-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-bottom: 100px;
}

.btn-logout {
    width: 100%;
    max-width: 340px;
    padding: 14px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(8px);
}

.btn-logout:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.btn-logout:active {
    transform: scale(0.97);
}

.btn-delete-account {
    padding: 8px 20px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: rgba(248,113,113,0.5);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn-delete-account:hover {
    color: #f87171;
    background: rgba(248,113,113,0.08);
}

.profile-circles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.profile-circle-item {
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.profile-circle-item:active {
    transform: scale(0.95);
}

.profile-circle-emoji {
    font-size: 28px;
}

.profile-circle-date {
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.circles-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    padding: 20px 0;
}

/* ===== GEO DETECT BUTTON IN FEED SETTINGS ===== */
.geo-detect-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    margin: 16px 0 8px;
    border-radius: 14px;
    border: 1.5px solid rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(139, 92, 246, 0.05));
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.geo-detect-btn:active {
    transform: scale(0.97);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.1));
}

.geo-detect-icon {
    font-size: 22px;
}

.geo-detect-text {
    flex: 1;
    text-align: left;
}

.geo-detect-status {
    font-size: 12px;
    color: var(--gray-400);
}

/* ===== CITY IN PROFILE ===== */
.profile-city-value {
    font-size: 15px;
    color: var(--gray-300);
}

.city-chips-edit {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.city-chip {
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: var(--gray-300);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.city-chip:active {
    transform: scale(0.95);
}

.city-chip.selected {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--lilac);
    color: white;
}

/* ===== PULL-TO-REFRESH ===== */
.pull-to-refresh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.pull-to-refresh.active {
    opacity: 1;
}

.pull-spinner {
    font-size: 20px;
    animation: pullSpin 0.8s linear infinite;
}

.pull-text {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
}

@keyframes pullSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.input-field:focus {
    border-color: var(--lilac);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}

.input-field::placeholder {
    color: var(--gray-600);
}

.textarea {
    min-height: 100px;
    resize: vertical;
}

.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-tag {
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.interest-tag:hover {
    border-color: rgba(168,85,247,0.3);
}

.interest-tag.selected {
    background: rgba(168,85,247,0.2);
    border-color: var(--lilac);
    color: var(--lilac-light);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    padding-bottom: var(--safe-bottom);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 20;
    background: rgba(15,23,42,0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    border: none;
    background: none;
    color: var(--gray-400);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--gradient-main);
    transition: transform 0.3s;
}

.nav-item.active {
    color: white;
}

.nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-item.active .nav-icon svg {
    stroke: url(#navGradient);
    filter: drop-shadow(0 0 8px rgba(168,85,247,0.5));
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--gray-900);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 28px 24px;
    position: relative;
    animation: slideUpModal 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--gray-400);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.modal-subtitle {
    color: var(--gray-400);
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 24px;
}

/* Profile modal */
.modal-profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-card);
    border: 3px solid var(--lilac);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 12px;
    overflow: hidden;
}
.modal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.modal-profile-bio {
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--gray-200);
    line-height: 1.5;
}

.modal-profile-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    justify-content: center;
}

.modal-interest {
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(168,85,247,0.12);
    border: 1px solid rgba(168,85,247,0.25);
    font-size: 12px;
    color: var(--lilac-light);
}

.modal-circles-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.modal-circle-thumb {
    min-width: 70px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-card);
    border: 2px solid rgba(168,85,247,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.modal-circle-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(168,85,247,0.4);
}

/* ===== FULLSCREEN CIRCLE VIEWER ===== */
.circle-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.circle-viewer.active {
    opacity: 1;
    pointer-events: auto;
}
.circle-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.circle-viewer-close:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.1);
}
.circle-viewer-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: circleViewerIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes circleViewerIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.circle-viewer-ring {
    position: relative;
    width: min(70vw, 300px);
    height: min(70vw, 300px);
}
.circle-viewer-progress {
    position: absolute;
    inset: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    transform: rotate(-90deg);
}
.circle-viewer-track {
    fill: none;
    stroke: rgba(255,255,255,0.08);
    stroke-width: 5;
}
.circle-viewer-fill {
    fill: none;
    stroke: #ec4899;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.15s linear;
}
.circle-viewer-avatar {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gray-900);
    border: 3px solid rgba(168,85,247,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: min(30vw, 120px);
    box-shadow: 0 0 60px rgba(168,85,247,0.3);
}
.circle-viewer-name {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}
.circle-viewer-counter {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.like-btn {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: white;
}

.like-btn:hover {
    box-shadow: 0 4px 20px rgba(236,72,153,0.4);
    transform: translateY(-2px);
}

.fav-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
}

.fav-btn:hover {
    background: rgba(168,85,247,0.15);
    border-color: rgba(168,85,247,0.3);
}

/* Recorder modal */
.recorder-modal-content {
    text-align: center;
}

.recorder-hint {
    color: var(--gray-400);
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 24px;
}

.recorder-preview {
    margin-bottom: 24px;
}

.recorder-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    border: 4px solid var(--lilac);
    position: relative;
    background: rgba(0,0,0,0.3);
}

.recorder-circle video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.recorder-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
}

.recorder-overlay span {
    font-size: 40px;
}

.recorder-overlay p {
    font-size: 12px;
    color: var(--gray-200);
    margin-top: 4px;
}

.recorder-overlay.hidden { display: none; }

.recorder-timer {
    margin-top: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--lilac-light);
}

.recorder-controls {
    display: flex;
    justify-content: center;
}

.recorder-start-btn {
    padding: 14px 32px;
    border-radius: 100px;
    border: none;
    background: var(--gradient-main);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-family: inherit;
}

.recorder-start-btn:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.rec-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
}

.recorder-start-btn.recording .rec-dot {
    animation: recPulse 1s ease infinite;
}

@keyframes recPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Recorder post section */
.recorder-post-section {
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.recorder-post-progress {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin-bottom: 12px;
}
.recorder-post-bar {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--pink-500), var(--purple-500));
    transition: width 0.15s linear;
    box-shadow: 0 0 10px rgba(168,85,247,0.4);
}
.recorder-post-text {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}
.recorder-post-btn {
    width: 100%;
    font-size: 16px;
    padding: 16px;
    animation: popIn 0.3s ease;
}

/* Categories modal */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.2s;
}

.category-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
}

.category-item input {
    display: none;
}

.category-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.category-item input:checked ~ .category-check {
    border-color: var(--lilac);
    background: var(--lilac);
}

.category-item input:checked ~ .category-check::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    font-weight: 700;
}

.category-emoji {
    font-size: 20px;
}

/* Distance filter */
.distance-filter {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
}
.distance-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-200);
}
.distance-control {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.distance-value {
    font-size: 28px;
    font-weight: 800;
    min-width: 50px;
    text-align: center;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.distance-unit {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 500;
}

/* ===== COMPOSE POPUP ===== */
.compose-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.compose-popup.active {
    opacity: 1;
    pointer-events: auto;
}
.compose-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.compose-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(30, 20, 50, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px 24px 0 0;
    padding: 12px 20px 28px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.compose-popup.active .compose-sheet {
    transform: translateY(0);
}
.compose-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    margin: 0 auto 16px;
}
.compose-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.compose-avatar {
    font-size: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: 50%;
}
.compose-name {
    flex: 1;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}
.compose-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
}
.compose-textarea {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 14px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    resize: none;
    outline: none;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}
.compose-textarea:focus {
    border-color: var(--pink);
}
.compose-textarea::placeholder { color: rgba(255,255,255,0.35); }
.compose-send {
    width: 100%;
}

.reel-write-btn {
    background: var(--gradient-main) !important;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: calc(var(--top-bar-height) + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    pointer-events: none;
    width: auto;
    max-width: 90vw;
}

.toast {
    padding: 12px 24px;
    border-radius: 100px;
    background: rgba(15,23,42,0.92);
    border: 1px solid rgba(168,85,247,0.25);
    backdrop-filter: blur(20px);
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    animation: toastIn 0.25s ease;
    pointer-events: auto;
    text-align: center;
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-14px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(168,85,247,0.3);
    border-radius: 4px;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .favorites-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reel-circle-outer {
        width: 360px;
        height: 360px;
    }
}

@media (min-width: 1024px) {
    .favorites-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 700px;
        margin: 0 auto;
    }

    .reel-circle-outer {
        width: 380px;
        height: 380px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-anim {
    animation: float 3s ease-in-out infinite;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== AUTH FORMS ===== */
.auth-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}
.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: rgba(255,255,255,0.45);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.auth-tab.active {
    background: linear-gradient(135deg, var(--pink-500), var(--purple-500));
    color: #fff;
    box-shadow: 0 4px 16px rgba(168,85,247,0.3);
}
.auth-form {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.auth-field {
    width: 100%;
}
.auth-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}
.auth-input::placeholder {
    color: rgba(255,255,255,0.3);
}
.auth-input:focus {
    border-color: var(--purple-500);
    background: rgba(255,255,255,0.08);
}
.auth-gender-select {
    display: flex;
    gap: 10px;
    width: 100%;
}
.auth-gender-btn {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}
.auth-gender-btn.selected {
    border-color: var(--purple-500);
    background: rgba(168,85,247,0.15);
    color: #fff;
    box-shadow: 0 0 20px rgba(168,85,247,0.2);
}
.auth-error {
    color: #f87171;
    font-size: 13px;
    min-height: 18px;
    text-align: center;
    width: 100%;
}
.auth-submit {
    margin-top: 8px;
    width: 100%;
}

/* PWA install button */
.pwa-install-btn {
    margin-top: 20px;
    padding: 14px 28px;
    border-radius: 50px;
    border: 1px solid rgba(168,85,247,0.3);
    background: rgba(168,85,247,0.1);
    color: #c084fc;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(8px);
}
.pwa-install-btn:hover {
    background: rgba(168,85,247,0.2);
    border-color: rgba(168,85,247,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168,85,247,0.2);
}

/* ===== CATEGORY SCREENS ===== */
.category-screen-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 24px 40px;
    text-align: center;
}
.category-screen-wrap h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}
.category-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 36px;
    max-width: 500px;
}
.cat-chip {
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}
.cat-chip:hover {
    background: rgba(255,255,255,0.08);
}
.cat-chip.selected {
    background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(236,72,153,0.2));
    border-color: var(--purple-500);
    color: #fff;
    box-shadow: 0 0 20px rgba(168,85,247,0.15);
    transform: scale(1.05);
}
.category-next-btn {
    min-width: 260px;
}

/* ===== STAT POPUP ===== */
.stat-popup {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.stat-popup.active {
    opacity: 1;
    pointer-events: auto;
}
.stat-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}
.stat-popup-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    height: 92vh;
    max-height: 92vh;
    background: linear-gradient(180deg, rgba(25,20,45,0.98) 0%, rgba(15,23,42,0.99) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-popup.active .stat-popup-content {
    transform: translateY(0);
}
.stat-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.stat-popup-header h2 {
    font-size: 18px;
    font-weight: 800;
}
.stat-popup-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.stat-popup-close:hover {
    background: rgba(255,255,255,0.12);
}
.stat-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px 24px;
    -webkit-overflow-scrolling: touch;
}

/* Stat list items */
.stat-user-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 16px;
    transition: background 0.2s;
}
.stat-user-item:hover {
    background: rgba(255,255,255,0.04);
}
.stat-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-card);
    border: 2px solid rgba(168,85,247,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    overflow: hidden;
}
.stat-user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.circle-viewer-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.stat-user-info {
    flex: 1;
    min-width: 0;
}
.stat-user-name {
    font-weight: 600;
    font-size: 15px;
}
.stat-user-detail {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 2px;
}
.stat-user-time {
    font-size: 11px;
    color: var(--gray-600);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Circles library grid */
.stat-circles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 8px 0;
}
.stat-circle-item {
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--gradient-card);
    border: 2px solid rgba(168,85,247,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.stat-circle-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(168,85,247,0.3);
}
.stat-circle-item:active {
    transform: scale(0.95);
}
.stat-circle-date {
    position: absolute;
    bottom: -6px;
    font-size: 10px;
    color: var(--gray-400);
    background: var(--gray-900);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
}

.stat-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}
.stat-empty-emoji {
    font-size: 48px;
    margin-bottom: 12px;
}

/* ===== NOTIFICATIONS POPUP ===== */
.notifications-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--gray-900);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}

.notifications-popup.active {
    transform: translateY(0);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    padding-top: calc(16px + var(--safe-top, 0px));
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.notifications-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.notifications-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-tabs {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.notif-tab {
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--gray-400);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.notif-tab.active {
    background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(168,85,247,0.2));
    border-color: rgba(168,85,247,0.4);
    color: var(--text-primary);
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.notif-item:active {
    background: rgba(255,255,255,0.04);
}

.notif-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(168,85,247,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.notif-time {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.notif-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
    font-size: 15px;
}

/* old btn-hero-download removed — now uses .btn-hero-app-download in landing.html */

/* ===== TUTORIAL OVERLAY ===== */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.tutorial-card {
    position: relative;
    background: var(--gray-900, #0f172a);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    padding: 40px 28px 28px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    animation: tutorialIn 0.4s ease;
}

@keyframes tutorialIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.tutorial-step {
    animation: tutorialFade 0.3s ease;
}

@keyframes tutorialFade {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.tutorial-emoji {
    font-size: 52px;
    margin-bottom: 16px;
}

.tutorial-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tutorial-card p {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.5;
}

.tutorial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 16px;
}

.tutorial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.3);
    transition: background 0.3s, transform 0.3s;
}

.tutorial-dot.active {
    background: var(--lilac);
    transform: scale(1.3);
}

.tutorial-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-skip {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
}

.tutorial-skip:hover {
    color: var(--gray-200);
}

.tutorial-next-btn {
    font-size: 14px;
    padding: 10px 24px;
}

/* ===== AGE RANGE in feed settings ===== */
.age-range-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

/* ===== AUTH LABEL ===== */
.auth-label {
    display: block;
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 6px;
    font-weight: 500;
}
