@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    /* DEFAULT: Premium Light Theme */
    --bg-main: #f4f5f8;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-hover: rgba(250, 250, 250, 0.85);
    --bg-input: #f1f5f9;
    
    --primary: #f59e0b; /* Amber/Yellow signature */
    --primary-solid: #d97706; 
    --primary-glow: rgba(217, 119, 6, 0.08);
    
    --secondary: #3b82f6; /* Blue balance */
    --secondary-solid: #2563eb;
    --secondary-glow: rgba(37, 99, 235, 0.08);
    
    --accent: #e11d48; 
    --accent-glow: rgba(225, 29, 72, 0.08);
    
    --gold: #d97706; 
    --gold-glow: rgba(217, 119, 6, 0.08);
    
    --text-main: #334155; 
    --text-muted: #64748b; 
    --text-dark: #0f172a;
    
    --border-color: #e2e8f0; 
    --border-hover: #cbd5e1;
    
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    
    --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* TOGGLED: Sleek Dark Mode */
body.dark-theme {
    --bg-main: #07080c; /* Deeper black canvas backdrop */
    --bg-card: rgba(17, 18, 26, 0.72);
    --bg-card-hover: rgba(24, 26, 38, 0.88);
    --bg-input: rgba(28, 30, 44, 0.85);
    
    --primary: #facc15; /* Vibrant Gold-Yellow signature */
    --primary-solid: #eab308; 
    --primary-glow: rgba(250, 204, 21, 0.2);
    
    --secondary: #06b6d4; /* Cyan accent balance */
    --secondary-solid: #0891b2;
    --secondary-glow: rgba(6, 182, 212, 0.2);
    
    --accent: #f43f5e; 
    --accent-glow: rgba(244, 63, 94, 0.2);
    
    --gold: #f59e0b; 
    --gold-glow: rgba(245, 158, 11, 0.25);
    
    --text-main: #cbd5e1; 
    --text-muted: #94a3b8; 
    --text-dark: #f8fafc;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-solid) transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-glow);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-solid);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-inter);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Glowing Bubbles */
body::before, body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.45;
    pointer-events: none;
    transition: all 0.5s ease;
    animation: floatGlow 22s infinite alternate ease-in-out;
}

body::before {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

body.dark-theme::before {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
}

body::after {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -8s;
}

body.dark-theme::after {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(90px, 70px) scale(1.15); }
}

/* Header & Navigation */
header {
    width: 100%;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

body.dark-theme header {
    background: rgba(12, 13, 18, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-outfit);
    font-size: 1.55rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-solid) 30%, var(--secondary-solid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-solid);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-solid), var(--secondary-solid));
    transition: var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle Button */
.btn-theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-theme-toggle:hover {
    border-color: var(--border-hover);
    transform: rotate(15deg);
    background: var(--bg-input);
}

/* Premium Gem Widget */
.gem-badge {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.18);
    color: var(--gold);
    padding: 0.45rem 0.85rem;
    border-radius: 12px;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.gem-badge:hover {
    background: rgba(217, 119, 6, 0.12);
    transform: translateY(-1px);
}

.gem-badge i {
    animation: gemShimmer 2.2s infinite ease-in-out;
}

@keyframes gemShimmer {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12) rotate(12deg); }
}

/* Premium VIP Widget */
.vip-badge {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(249, 115, 22, 0.12));
    border: 1px solid rgba(234, 179, 8, 0.25);
    color: #ca8a04;
    padding: 0.45rem 0.85rem;
    border-radius: 12px;
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.1);
    animation: vipGlow 2s infinite alternate ease-in-out;
    transition: var(--transition-fast);
}

.vip-badge:hover {
    transform: translateY(-1px);
}

.vip-badge.bronze {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(120, 113, 108, 0.12));
    border-color: rgba(217, 119, 6, 0.25);
    color: #b45309;
    animation: none;
    box-shadow: none;
}

.vip-badge.gold {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(249, 115, 22, 0.18));
    border-color: rgba(234, 179, 8, 0.35);
    color: #ca8a04;
}

@keyframes vipGlow {
    0% { box-shadow: 0 0 5px rgba(234, 179, 8, 0.1); }
    100% { box-shadow: 0 0 15px rgba(234, 179, 8, 0.25); }
}

/* Buttons */
.btn {
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-outfit);
}

.btn-outline {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--border-hover);
    background: var(--bg-input);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-solid), var(--primary));
    color: #fff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ff5c77);
    color: #fff;
    box-shadow: 0 3px 10px rgba(225, 29, 72, 0.18);
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(225, 29, 72, 0.35);
}

/* Screens Layout */
.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 5%;
}

.hidden {
    display: none !important;
}

/* LANDING SCREEN */
#landing-screen {
    justify-content: center;
    gap: 3rem;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    padding: 2rem 0;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    max-width: 760px;
    width: 100%;
}

.badge {
    align-self: center;
    padding: 0.45rem 1.15rem;
    border-radius: 99px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: var(--primary-solid);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge i {
    animation: activePulse 1.8s infinite ease-in-out;
}

@keyframes activePulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-title {
    font-family: var(--font-outfit);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-solid), var(--secondary-solid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 600px;
}

.hero-illustration-wrapper {
    margin: 1.5rem 0;
    max-width: 480px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.12);
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    transition: var(--transition-smooth);
}

.hero-illustration-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.18);
    border-color: var(--primary);
}

.hero-illustration {
    width: 100%;
    height: auto;
    display: block;
}

.trust-stats-row {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    margin-top: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

.trust-stats-row div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-stats-row h2 {
    font-family: var(--font-outfit);
    color: var(--primary-solid);
    font-size: 2.2rem;
    font-weight: 800;
}

.trust-stats-row p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Match Configuration Panel */
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.centered-match-card {
    max-width: 680px;
    margin: 0 auto;
}

/* Global Matchmaking Radar Section */
.radar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.radar-container-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
}

.radar-container {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.03) 0%, rgba(15, 23, 42, 0.25) 100%);
    border: 2px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

body.dark-theme .radar-container {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.03) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-color: rgba(6, 182, 212, 0.2);
}

/* Concentric rings */
.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    pointer-events: none;
}
body.dark-theme .radar-ring {
    border-color: rgba(6, 182, 212, 0.2);
}

.ring-1 { width: 30%; height: 30%; }
.ring-2 { width: 60%; height: 60%; }
.ring-3 {
    width: 90%;
    height: 90%;
    border-style: solid;
    animation: radar-pulse 3s infinite linear;
}

@keyframes radar-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0;
    }
}

/* Sweep effect */
.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.35) 0%, transparent 100%);
    transform-origin: 0% 100%;
    border-left: 2px solid rgba(37, 99, 235, 0.5);
    animation: radar-sweep-rotation 4s infinite linear;
    pointer-events: none;
    border-radius: 0 100% 0 0;
    margin-top: -50%;
}
body.dark-theme .radar-sweep {
    background: linear-gradient(45deg, rgba(6, 182, 212, 0.25) 0%, transparent 100%);
    border-left-color: rgba(6, 182, 212, 0.5);
}

@keyframes radar-sweep-rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Center Core */
.radar-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 2px solid var(--secondary-solid);
    color: var(--secondary-solid);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
    z-index: 10;
}
body.dark-theme .radar-core {
    background: #0f172a;
    box-shadow: 0 0 20px var(--secondary-glow);
}

.core-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--secondary-solid);
    opacity: 0.4;
    animation: core-ping-pulse 2s infinite ease-out;
}

@keyframes core-ping-pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* User nodes on the radar */
.radar-user-node {
    position: absolute;
    width: 32px;
    height: 32px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--dist)) rotate(calc(-1 * var(--angle)));
    z-index: 5;
    cursor: pointer;
    animation: float-node 4s infinite ease-in-out alternate;
    animation-delay: var(--delay);
}

@keyframes float-node {
    0% {
        margin-top: -3px;
        margin-left: -3px;
    }
    100% {
        margin-top: 3px;
        margin-left: 3px;
    }
}

.node-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
    position: relative;
}

/* Pulse indicator on the node */
.node-avatar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
}
body.dark-theme .node-avatar::after {
    border-color: #0f172a;
}

.radar-user-node:hover .node-avatar {
    transform: scale(1.2);
    border-color: var(--primary-solid);
}

/* Dynamic tooltip/badge */
.node-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #0f172a;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    z-index: 12;
}

.radar-user-node:hover .node-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Stats section styling */
.radar-stats {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    flex-wrap: wrap;
}

.radar-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-family: var(--font-inter);
}

.radar-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.radar-stat-dot.active {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: stat-pulse 1.5s infinite alternate;
}

@keyframes stat-pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.radar-stat-label {
    color: var(--text-muted);
}

.radar-stat-val {
    font-family: var(--font-outfit);
    font-weight: 700;
    color: var(--text-main);
}

.match-card:hover {
    border-color: var(--primary-solid);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.05);
}

.match-card h3 {
    font-family: var(--font-outfit);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
}

.interest-tag-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.interest-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tags-input-wrapper {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.6rem 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    transition: var(--transition-fast);
}

.tags-input-wrapper:focus-within {
    border-color: var(--primary-solid);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tag-chip {
    background: linear-gradient(135deg, var(--primary), var(--primary-solid));
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tag-chip i {
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.8;
}

.tag-chip i:hover { opacity: 1; }

.tags-input-wrapper input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-dark);
    flex: 1;
    min-width: 120px;
    font-family: inherit;
    font-size: 0.95rem;
}

/* Match Filter Dropdowns */
.filters-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.filter-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-select:focus {
    border-color: var(--primary-solid);
    background: var(--bg-card);
}

/* Match Mode Options */
.match-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.match-opt-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 14px;
    padding: 1.1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-fast);
    font-family: var(--font-outfit);
}

.match-opt-btn i {
    font-size: 1.6rem;
    color: var(--text-muted);
}

.match-opt-btn span {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.match-opt-btn.active {
    background: rgba(37, 99, 235, 0.06);
    border-color: var(--primary-solid);
    color: var(--primary-solid);
}

.match-opt-btn.active i {
    color: var(--primary-solid);
}

.match-opt-btn:hover:not(.active) {
    border-color: var(--border-hover);
    color: var(--text-main);
}

.match-card .btn-start {
    margin-top: 0.5rem;
    padding: 1.15rem;
    font-size: 1.1rem;
    justify-content: center;
}

/* Features Grid */
.features-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header h2 {
    font-family: var(--font-outfit);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-solid);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.feature-item.purple-theme .feature-icon {
    background: rgba(14, 165, 233, 0.08);
    color: var(--secondary-solid);
}

.feature-item.purple-theme:hover {
    border-color: var(--secondary-solid);
}

.feature-item h4 {
    font-family: var(--font-outfit);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

#safety.match-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* --- CHAT CLIENT CENTERED LAYOUT --- */
#chat-screen {
    display: flex;
    flex-direction: column;
    padding: 0;
    max-height: none;
    align-items: stretch;
    height: calc(100vh - 65px);
    overflow: hidden;
}

.chat-container {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    background: #000000;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.partner-video-container {
    flex: 1;
    position: relative;
    height: 100%;
    background: #000000;
    overflow: hidden;
}

.video-wrapper {
    background: #000000;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.video-wrapper.partner-video {
    width: 100%;
    height: 100%;
}

.video-wrapper.user-video {
    width: 100%;
    height: 180px; /* Reduced from 240px to give more vertical space to the chat panel */
    position: relative;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    background: #0f172a;
}

.video-wrapper.user-video .video-label {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    bottom: 0.5rem;
    left: 0.5rem;
}

/* Floating Controls Overlay */
.user-video-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: space-around;
    padding: 6px 10px;
    z-index: 10;
}

.user-video-controls-overlay .control-btn {
    background: transparent;
    border: none;
    color: #fbc02d;
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.user-video-controls-overlay .control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-video-controls-overlay .control-btn.active {
    color: #fbc02d;
}

/* Floating Next/Skip Button (Chatspin Style) */
.btn-skip-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 70px;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.btn-skip-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
}

.btn-skip-left {
    left: 0;
    border-radius: 0 10px 10px 0;
}

.btn-skip-right {
    right: 0;
    border-radius: 10px 0 0 10px;
}

.video-element-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    display: block;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    background: #1e293b;
    color: #94a3b8;
    z-index: 2;
}

.video-placeholder i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-solid), var(--secondary-solid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pulse-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--primary-solid);
    animation: ringPulse 2s infinite ease-out;
}

.video-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 5;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    color: var(--text-dark);
    padding: 0.4rem 0.85rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

body.dark-theme .video-label {
    background: rgba(20, 22, 32, 0.85);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.05);
}

.video-label span.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.video-label.offline span.indicator {
    background: var(--accent);
}

.ar-filter-toolbar {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 99px;
    padding: 0.4rem 0.8rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

body.dark-theme .ar-filter-toolbar {
    background: rgba(20, 22, 32, 0.8);
    border-color: rgba(255,255,255,0.08);
}

.ar-filter-toolbar span {
    font-family: var(--font-outfit);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    padding-left: 0.4rem;
    margin-right: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition-fast);
    background: #f1f5f9;
    color: #475569;
}

body.dark-theme .filter-thumb {
    background: #1e293b;
    color: #94a3b8;
    border-color: rgba(255,255,255,0.1);
}

.filter-thumb.active {
    border-color: var(--primary-solid);
    color: var(--primary-solid);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 0 6px var(--primary-glow);
}

.filter-thumb:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary-solid);
}

.video-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

body.dark-theme .control-btn {
    background: rgba(20, 22, 32, 0.85);
    color: var(--text-dark);
    border-color: rgba(255,255,255,0.05);
}

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

/* Floating Emoji Animations Overlaying stream */
.floating-emoji {
    position: absolute;
    bottom: 30px;
    font-size: 2.2rem;
    z-index: 99;
    pointer-events: none;
    animation: floatUpEmoji 1.5s cubic-bezier(0.08, 0.82, 0.17, 1) forwards;
}

@keyframes floatUpEmoji {
    0% { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translateY(-260px) scale(1.15) rotate(25deg); opacity: 0; }
}

/* Center Lower Row: Unified Chat Panel */
.chat-panel {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 420px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
}

.partner-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.partner-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary-solid));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-outfit);
}

.partner-status {
    display: flex;
    flex-direction: column;
}

.partner-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.partner-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background: var(--bg-main);
}

body.dark-theme .chat-messages {
    background: rgba(12, 13, 18, 0.4);
}

/* Messages */
.msg-system {
    align-self: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.msg-system span.interests {
    color: var(--primary-solid);
    font-weight: 700;
}

.message {
    max-width: 75%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.message-bubble {
    padding: 0.8rem 1.1rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

.msg-sent {
    align-self: flex-end;
}

.msg-sent .message-bubble {
    background: var(--primary-solid);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.msg-received {
    align-self: flex-start;
}

.msg-received .message-bubble {
    background: var(--bg-card);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.translation-subtext {
    font-size: 0.75rem;
    color: var(--primary-solid);
    margin-top: 0.25rem;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.25rem;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    align-self: flex-end;
}

.msg-received .message-time {
    align-self: flex-start;
}

.typing-container {
    max-width: 60px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.4rem 0.5rem;
    align-items: center;
    justify-content: center;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typeBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

/* Emoji Floating Bar Overlay */
.emoji-reaction-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
    align-items: center;
}

.emoji-reaction-bar span.label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: auto;
}

.emoji-btn {
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0.1rem 0.3rem;
    border-radius: 6px;
}

.emoji-btn:hover {
    transform: scale(1.3) translateY(-2px);
    background: var(--bg-input);
}

/* Chat Input Bar */
.chat-input-bar {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.translate-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 1.1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.translate-toggle.active {
    border-color: var(--primary-solid);
    color: var(--primary-solid);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 6px var(--primary-glow);
}

.chat-input-bar input {
    flex: 1;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    outline: none;
    color: var(--text-dark);
    padding: 0.75rem 1.15rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.chat-input-bar input:focus {
    border-color: var(--primary-solid);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Matching Lobby Overlay */
.lobby-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    backdrop-filter: blur(8px);
    opacity: 0.98;
}

.radar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.15);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar::before, .radar::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-solid);
    opacity: 0;
    animation: radarPulse 3s infinite linear;
}

.radar::after {
    animation-delay: 1.5s;
}

.radar-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-solid), var(--secondary-solid));
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    z-index: 2;
}

@keyframes radarPulse {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.lobby-status {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lobby-status h4 {
    font-family: var(--font-outfit);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
}

.lobby-status p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* PREMIUM CHECKOUT MODAL */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    width: 90%;
    max-width: 540px;
    padding: 2.2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideModalUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-dark);
    background: var(--bg-main);
}

.modal-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-header h3 {
    font-family: var(--font-outfit);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--gold);
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 1rem 0;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    border-color: var(--gold);
    background: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.pricing-card.popular {
    border-color: var(--gold);
    background: rgba(217, 119, 6, 0.03);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.08);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-card h5 {
    font-family: var(--font-outfit);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.pricing-card .gems-amount {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.pricing-card .price {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    justify-content: center;
    background: var(--gold);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

/* --- CENTERED FLEX FOOTER LAYOUT --- */
footer {
    width: 100%;
    padding: 3.5rem 5% 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
    width: 100%;
    max-width: 900px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 480px;
    gap: 0.8rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 4.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-col h5 {
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-col ul a:hover {
    color: var(--primary-solid);
    font-weight: 600;
}

.footer-bottom {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--primary-solid);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .badge {
        align-self: center;
    }
    
    .hero-description {
        margin: 0 auto;
    }
    
    #chat-screen {
        max-height: none;
    }
    
    .chat-container {
        flex-direction: column;
    }
    
    .video-grid {
        height: 380px;
    }
    
    .chat-panel {
        height: 400px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    header {
        padding: 0.9rem 5%;
    }
    
    .nav-links {
        display: none;
    }
    
    .video-grid {
        height: 320px;
    }
    .chat-panel {
        height: 360px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .footer-links {
        gap: 2.5rem;
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Animations */
@keyframes ringPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes typeBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

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

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

/* Informational & Legal Pages Layout */
.info-container {
    max-width: 800px;
    width: 100%;
    margin: 3rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    line-height: 1.7;
    text-align: left;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.info-card h1 {
    font-family: var(--font-outfit);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-solid) 30%, var(--secondary-solid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-card h2 {
    font-family: var(--font-outfit);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1.5rem;
}

.info-card h3 {
    font-family: var(--font-outfit);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1rem;
}

.info-card p {
    color: var(--text-main);
    font-size: 1rem;
}

.info-card ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-main);
}

.info-card li {
    font-size: 0.95rem;
}

.info-card .meta-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* FAQ Accordion Styling */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item[open] {
    border-color: var(--primary-solid);
    box-shadow: 0 4px 10px rgba(37,99,235,0.03);
}

.faq-item summary {
    padding: 1.1rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    font-family: var(--font-outfit);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(90deg);
}

.faq-content {
    padding: 0 1.5rem 1.1rem;
    color: var(--text-main);
    background: var(--bg-card);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Form Group & Control Styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-solid);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Onboarding Gender Modal */
.onboarding-content {
    max-width: 520px;
}

.gender-selection-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0.5rem 0;
}

.gender-card {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem 1rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
}

.gender-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

#gender-card-male:hover, #gender-card-male.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.03);
}

#gender-card-female:hover, #gender-card-female.active {
    border-color: #ec4899;
    background: rgba(236, 72, 153, 0.03);
}

#gender-card-couples:hover, #gender-card-couples.active {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.03);
}

.gender-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--bg-card);
    transition: var(--transition-smooth);
}

.male-icon {
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.female-icon {
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.15);
}

.couples-icon {
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.gender-card.active .gender-icon {
    transform: scale(1.1);
}

#gender-card-male.active .gender-icon {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

#gender-card-female.active .gender-icon {
    background: #ec4899;
    color: #fff;
    border-color: #ec4899;
}

#gender-card-couples.active .gender-icon {
    background: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
}

.gender-card h5 {
    font-family: var(--font-outfit);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* --- CHATSPIN V8.0 ADDITIONAL AESTHETICS --- */
.chat-sidebar-container {
    flex: 0 0 380px;
    width: 380px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-left: 2px solid #cbd5e1;
    position: relative;
    overflow: hidden;
}

body.dark-theme .chat-sidebar-container {
    background: #0f172a;
    border-left-color: rgba(255, 255, 255, 0.08);
}

.ar-filter-toolbar-sidebar {
    position: absolute;
    top: 185px; /* Adjusted from 245px to sit right below the 180px user video */
    left: 10px;
    right: 10px;
    background: #e2e8f0;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
    overflow-x: auto;
    overflow-y: hidden;
    height: 48px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE/Edge */
}

.ar-filter-toolbar-sidebar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.ar-filter-toolbar-sidebar.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Close/X button matching screenshot */
.filter-thumb-close {
    background: #fbc02d;
    color: #000000;
    width: 48px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-right: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: background 0.2s;
    position: sticky;
    left: 0;
    z-index: 21;
}

.filter-thumb-close:hover {
    background: #fbc02dcc;
}

/* Arrow scroll button */
.btn-scroll-filters {
    background: #fbc02d;
    color: #000000;
    border: none;
    width: 40px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: background 0.2s;
    position: sticky;
    right: 0;
    z-index: 21;
}

.btn-scroll-filters:hover {
    background: #fbc02dcc;
}

/* Individual Filter Slots */
.ar-filter-toolbar-sidebar .filter-thumb {
    flex-shrink: 0;
    width: 48px;
    min-width: 48px;
    height: 100%;
    border-radius: 0;
    border: none;
    border-right: 1px solid #cbd5e1;
    background: #e2e8f0;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-theme .ar-filter-toolbar-sidebar .filter-thumb {
    background: #1e293b;
    color: #cbd5e1;
    border-right-color: rgba(255, 255, 255, 0.1);
}

.ar-filter-toolbar-sidebar .filter-thumb:hover:not(.active) {
    background: #cbd5e1;
    color: #000000;
}

body.dark-theme .ar-filter-toolbar-sidebar .filter-thumb:hover:not(.active) {
    background: #334155;
    color: #ffffff;
}

.ar-filter-toolbar-sidebar .filter-thumb.active, .filter-thumb-close.active {
    background: #fbc02d;
    color: #000000;
    border-bottom: 3px solid #000000;
    box-shadow: none;
}

.verification-banner {
    background: #fbc02d;
    color: #000000;
    padding: 10px 15px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.verification-banner strong {
    font-weight: 800;
}

.btn-learn-more {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn-learn-more:hover {
    background: #222222;
}

.user-status-bar {
    background: #ffffff;
    border-bottom: 1px solid #cbd5e1;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #475569;
}

body.dark-theme .user-status-bar {
    background: #1e293b;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.likes-count {
    color: #e11d48;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.user-location-info {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-start-private-chat {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.btn-start-private-chat:hover {
    background: #fbc02d;
    border-color: #fbc02d;
    color: #000000;
}

.btn-video-premium {
    position: absolute;
    top: 70px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease;
}

.btn-video-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.partner-brand-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
    text-align: left;
}

.chatspin-brand-text {
    font-family: var(--font-outfit);
    font-size: 1.6rem;
    font-weight: 900;
    color: #fbc02d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.btn-end-chat-text {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.btn-end-chat-text:hover {
    opacity: 1;
    color: #e11d48;
}

.partner-bottom-right-icons {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    z-index: 10;
}

.partner-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

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

.btn-share {
    background: #fbc02d;
    color: #000000;
}

.btn-gift {
    background: #e11d48;
    color: #ffffff;
}

.partner-overlay-details {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.badge-overlay {
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chat panel adjustments */
.chat-panel {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

body.dark-theme .chat-panel {
    background: #0c0d12;
}

.chat-panel .chat-header {
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
    padding: 10px 15px;
}

body.dark-theme .chat-panel .chat-header {
    background: #1e293b;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #ffffff;
}

body.dark-theme .chat-messages {
    background: #0c0d12;
}

.chat-input-bar {
    padding: 12px 15px;
    border-top: 1px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    gap: 8px;
    align-items: center;
}

body.dark-theme .chat-input-bar {
    background: #1e293b;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.chat-input-bar input {
    flex: 1;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.95rem;
    outline: none;
    color: var(--text-dark);
}

body.dark-theme .chat-input-bar input {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.chat-input-bar input:focus {
    border-color: #fbc02d;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(251, 192, 45, 0.2);
}

body.dark-theme .chat-input-bar input:focus {
    background: #0c0d12;
    border-color: #fbc02d;
}



/* Tablet & Mobile responsive behavior override */
/* Tablet & Mobile responsive behavior override */
@media (max-width: 1024px) {
    #chat-screen {
        height: calc(100vh - 65px) !important;
        height: calc(100dvh - 65px) !important;
        overflow: hidden !important;
    }
    .chat-container {
        flex-direction: column !important;
        height: 100% !important;
        position: relative !important;
    }
    .partner-video-container {
        width: 100% !important;
        height: 40% !important;
        min-height: 40% !important;
    }
    .chat-sidebar-container {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 !important;
        height: 60% !important;
        border-left: none !important;
        border-top: 2px solid #cbd5e1 !important;
        display: flex !important;
        flex-direction: column !important;
        position: static !important; /* let absolute user-video float relative to .chat-container */
    }
    .video-wrapper.user-video {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 90px !important;
        height: 120px !important;
        border-radius: 8px !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
        z-index: 100 !important;
        background: #0f172a !important;
    }
    /* Hide user video controls overlay on mobile to keep picture-in-picture clean */
    .video-wrapper.user-video .user-video-controls-overlay {
        display: none !important;
    }
    /* Display the AR filter toolbar in the normal flow on mobile when toggled */
    .ar-filter-toolbar-sidebar {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 8px 15px !important;
        width: auto !important;
        z-index: 5 !important;
    }
    /* Let the chat-panel stretch dynamically to fill remaining height */
    .chat-panel {
        flex: 1 !important;
        height: auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .chat-messages {
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }
    .partner-bottom-right-icons {
        flex-direction: row !important;
        bottom: 10px !important;
        right: 10px !important;
        gap: 8px !important;
    }
    .partner-icon-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
    }
    .partner-brand-label {
        bottom: 10px !important;
        left: 10px !important;
        gap: 4px !important;
    }
    .chatspin-brand-text {
        font-size: 1.1rem !important;
    }
    .btn-end-chat-text {
        font-size: 0.8rem !important;
    }
}

/* Background video tags used for WebRTC canvas filters decoding */
#user-video-stream, #partner-video-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.001;
    pointer-events: none;
    z-index: -1000;
}

/* Hover Report Flag Button overlaying stranger video */
.btn-hover-report {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-hover-report:hover {
    background: #e11d48;
    border-color: #e11d48;
    color: #ffffff;
}

.partner-video-container:hover .btn-hover-report {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.btn-like {
    background: #ec4899;
    color: #ffffff;
}

.btn-like:hover {
    background: #db2777;
}

/* Terms of Service Checkbox Styling */
.terms-agreement-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    text-align: left;
    transition: background 0.3s, border-color 0.3s;
}

body.dark-theme .terms-agreement-container {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.terms-checkbox {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #fbc02d; /* Gold theme matching */
    cursor: pointer;
    flex-shrink: 0;
}

.terms-label {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

body.dark-theme .terms-label {
    color: #94a3b8;
}

.terms-link {
    color: #eab308;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.terms-link:hover {
    color: #f59e0b;
}

/* Error and Shake animations */
.terms-agreement-container.terms-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

.terms-agreement-container.terms-shake {
    animation: termsShakeAnimation 0.5s ease-in-out;
}

@keyframes termsShakeAnimation {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Branding SVG Logo & Typography Styles */
.logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    transition: transform var(--transition-fast) ease;
}

.logo:hover .logo-icon-wrapper {
    transform: scale(1.08) rotate(3deg);
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.chroma-gradient {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: filter 0.2s ease;
}

body.dark-theme .chroma-gradient {
    background: linear-gradient(135deg, #a855f7, #06b6d4, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo:hover .chroma-gradient {
    filter: brightness(1.1);
}

.chat-text {
    color: var(--text-dark);
}

body.dark-theme .chat-text {
    color: #ffffff;
}

/* Legal Trademark Disclaimer in Footers */
.trademark-disclaimer {
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--text-muted);
    text-align: center;
    margin: 0 auto 12px;
    width: 100%;
    max-width: 900px;
    opacity: 0.75;
    font-weight: 400;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

body.dark-theme .trademark-disclaimer {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Glassmorphism System */
.match-card, .modal-content, .onboarding-content, .chat-panel, .verification-banner, .user-status-bar {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Ambient Background Blur Blobs */
.ambient-blur-blobs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -10;
    pointer-events: none;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    animation: drift 25s infinite alternate ease-in-out;
    pointer-events: none;
}

body.dark-theme .ambient-blob {
    opacity: 0.16;
}

.blob-1 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 80%);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--secondary-solid) 0%, transparent 80%);
    bottom: -5%;
    right: -5%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.blob-3 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 80%);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(100px, 80px) scale(1.15) rotate(180deg);
    }
    100% {
        transform: translate(-50px, -40px) scale(0.9) rotate(360deg);
    }
}

/* Scroll Reveal */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}



/* Gift Modal Cards Styling */
.gift-card {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.gift-card:hover {
    border-color: var(--primary-solid);
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}

.gift-card.active {
    border-color: var(--gold);
    background: rgba(217, 119, 6, 0.06);
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.15);
}

.gift-emoji {
    font-size: 2.2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.2s ease;
}

.gift-card:hover .gift-emoji {
    transform: scale(1.18) rotate(5deg);
}

.gift-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.gift-price {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
}

/* Floating animated Gift inside video feed */
.floating-gift-anim {
    position: absolute;
    z-index: 100;
    font-size: 4rem;
    pointer-events: none;
    animation: sendGift 1.8s cubic-bezier(0.25, 1.25, 0.5, 1) forwards;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes sendGift {
    0% { transform: translate(-50%, 150%) scale(0.3) rotate(0deg); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.5) rotate(-15deg); opacity: 1; }
    40% { transform: translate(-50%, -50%) scale(1.3) rotate(15deg); }
    60% { transform: translate(-50%, -50%) scale(1.3) rotate(-15deg); }
    80% { transform: translate(-50%, -50%) scale(1.0) rotate(0deg); opacity: 1; }
    100% { transform: translate(-50%, -120px) scale(0.5); opacity: 0; }
}

/* Custom Notification Toast */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    padding: 0.8rem 1.6rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Scroll Connection Showcase Section */
.scroll-showcase-section {
    padding: 4rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    overflow: hidden;
}

.showcase-container {
    display: grid;
    grid-template-columns: 1fr 340px 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 992px) {
    .showcase-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }
}

.showcase-chats-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.showcase-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.1rem 1.4rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.showcase-bubble.bubble-right {
    justify-content: flex-end;
    text-align: right;
}

.showcase-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.showcase-bubble-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-grow: 1;
}

.showcase-bubble-meta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.showcase-bubble-text {
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.showcase-translated {
    font-size: 0.75rem;
    color: var(--secondary-solid);
    font-style: italic;
    margin-top: 0.25rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Center Card - Live Match frame */
.showcase-center-card-wrapper {
    display: flex;
    justify-content: center;
}

.showcase-photo-frame {
    width: 320px;
    height: 420px;
    border-radius: 28px;
    border: 3px solid var(--primary-solid);
    box-shadow: 0 15px 40px rgba(234, 179, 8, 0.15);
    overflow: hidden;
    position: relative;
    background: #0f172a;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.showcase-photo-frame:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 45px rgba(234, 179, 8, 0.25);
}

.showcase-match-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-live-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(225, 29, 72, 0.88);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: liveBadgePulse 1.5s infinite ease-in-out;
}

@keyframes liveBadgePulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

.showcase-details-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.showcase-details-overlay h3 {
    font-family: var(--font-outfit);
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.showcase-details-overlay p {
    font-size: 0.88rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Scroll Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-80px);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(80px);
}

.scale-in-center {
    opacity: 0;
    transform: scale(0.85);
}

/* Active animation states triggered by IntersectionObserver */
.reveal-active .slide-in-left {
    opacity: 1;
    transform: translateX(0);
}

.reveal-active .slide-in-right {
    opacity: 1;
    transform: translateX(0);
}

.reveal-active .scale-in-center {
    opacity: 1;
    transform: scale(1);
}

/* Delays */
.delay-1 {
    transition-delay: 0.15s;
}
