/* ==========================================================================
   Erome Live (erome.com.pl) - Modern Video Chat & Matchmaking Design System
   ========================================================================== */

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

:root {
    --primary: #ff4b72;
    --primary-light: #ff758c;
    --primary-dark: #e12d56;
    --primary-gradient: linear-gradient(135deg, #ff4b72 0%, #ff758c 100%);
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    
    --bg-dark: #0a0610;
    --bg-surface: #140d21;
    --bg-card: rgba(26, 17, 40, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-active: rgba(255, 75, 114, 0.4);

    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-dim: rgba(255, 255, 255, 0.4);

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 25px rgba(255, 75, 114, 0.4);
    --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 75, 114, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
}

/* --- Layout & View Containers --- */
.view-container {
    display: none;
    flex: 1;
    width: 100%;
}

.view-container.active {
    display: flex;
    flex-direction: column;
}

/* --- Top Navigation Header --- */
.site-header {
    background: rgba(10, 6, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 24px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-glow);
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #ff758c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* --- Coin Pill Widget --- */
.coin-pill {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-full);
    padding: 6px 14px 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-gold);
}

.coin-pill:hover {
    transform: translateY(-2px);
    background: rgba(245, 158, 11, 0.2);
}

.coin-pill .coin-icon {
    font-size: 18px;
    animation: coinPulse 2s infinite ease-in-out;
}

.coin-pill .coin-amount {
    font-weight: 700;
    color: var(--gold-light);
    font-size: 15px;
}

.coin-pill .coin-add-btn {
    background: var(--gold-gradient);
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    margin-left: 2px;
}

/* --- Profile Chip --- */
.profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 4px 14px 4px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glass-active);
}

.profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(255, 75, 114, 0.6);
}

.btn-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-gold {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: var(--radius-lg);
}

/* --- Hero & Lobby View --- */
.lobby-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 75, 114, 0.12);
    border: 1px solid rgba(255, 75, 114, 0.3);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 580px;
}

/* --- Matchmaking Hub Card --- */
.match-hub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    padding: 36px;
    width: 100%;
    max-width: 650px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.match-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.gender-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.gender-tab {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.gender-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.gender-tab.active {
    background: rgba(255, 75, 114, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 75, 114, 0.25);
}

.gender-icon {
    font-size: 26px;
}

.gender-label {
    font-size: 14px;
    font-weight: 700;
}

.gender-cost {
    font-size: 12px;
    color: var(--gold-light);
    font-weight: 600;
}

.btn-start-match {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 75, 114, 0.45);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-start-match:hover {
    transform: scale(1.02);
    box-shadow: 0 14px 40px rgba(255, 75, 114, 0.65);
}

.match-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-dim);
}

/* --- Featured Profiles Grid --- */
.section-title-wrap {
    width: 100%;
    text-align: left;
    margin-top: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.profile-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-active);
    box-shadow: var(--shadow-glow);
}

.profile-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 120%;
    overflow: hidden;
}

.profile-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-card:hover .profile-card-img {
    transform: scale(1.05);
}

.online-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 10px var(--success);
}

.profile-card-info {
    padding: 14px 16px 8px;
    flex: 1;
}

.profile-card-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.profile-card-loc {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-call-direct {
    margin: 8px 16px 14px;
    background: rgba(255, 75, 114, 0.15);
    border: 1px solid rgba(255, 75, 114, 0.3);
    color: #fff;
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-call-direct:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* --- Searching / Radar View --- */
.searching-view-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.radar-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
}

.radar-center-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-glow);
    z-index: 5;
    position: relative;
    object-fit: cover;
}

.radar-wave {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 75, 114, 0.6);
    opacity: 0;
    animation: radarPulse 3s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.radar-wave:nth-child(1) { width: 100px; height: 100px; animation-delay: 0s; }
.radar-wave:nth-child(2) { width: 180px; height: 180px; animation-delay: 0.8s; }
.radar-wave:nth-child(3) { width: 260px; height: 260px; animation-delay: 1.6s; }

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

.radar-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.radar-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 28px;
}

/* --- 1-on-1 Fullscreen Video Room View --- */
.video-room-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 200;
    display: none;
    flex-direction: column;
}

.video-room-view.active {
    display: flex;
}

.video-container-main {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.remote-video-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111;
}

.local-pip-video-wrap {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 140px;
    height: 190px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-glass-active);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 20;
    background: #0a0610;
}

.local-video-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror selfie camera */
}

/* Top Call Header Overlay */
.call-top-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
}

.peer-chip {
    background: rgba(10, 6, 16, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 6px 16px 6px 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.peer-chip-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.peer-chip-name {
    font-weight: 700;
    font-size: 15px;
}

.peer-chip-loc {
    font-size: 12px;
    color: var(--text-muted);
}

.call-timer-pill {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: #ef4444;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Live Floating Reactions Bar */
.reactions-sidebar {
    position: absolute;
    right: 20px;
    bottom: 120px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reaction-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 6, 16, 0.7);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reaction-btn:hover {
    transform: scale(1.2);
    background: rgba(255, 75, 114, 0.25);
    border-color: var(--primary);
}

.reaction-particle {
    position: absolute;
    bottom: 120px;
    pointer-events: none;
    z-index: 15;
    animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.6); opacity: 1; }
    100% { transform: translateY(-350px) scale(1.4); opacity: 0; }
}

/* Bottom Call Control Dock */
.call-dock {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 6, 16, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 20;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.ctrl-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.ctrl-btn.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: var(--danger);
}

.ctrl-btn-danger {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.ctrl-btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
}

.ctrl-btn-skip {
    background: var(--primary-gradient);
    color: #fff;
    width: auto;
    padding: 0 20px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    gap: 6px;
    box-shadow: var(--shadow-glow);
}

/* --- Modals System --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(14px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-md);
    animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shop-modal-box {
    max-width: 580px;
}

@keyframes modalPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

.modal-title {
    font-size: 22px;
    font-weight: 800;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #fff;
}

/* --- Coin Packages Grid in Shop Modal --- */
/* --- Coin Packages Grid in Shop Modal --- */
.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.package-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.package-card:hover, .package-card.selected {
    background: rgba(255, 75, 114, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 75, 114, 0.2);
}

.package-card.featured {
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.09);
}

.package-badge {
    position: absolute;
    top: -9px;
    right: 14px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.package-badge.popular { background: var(--primary-gradient); color: #fff; }
.package-badge.best-value { background: var(--gold-gradient); color: #000; }
.package-badge.vip { background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; }

.pkg-info-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.pkg-coins-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pkg-coin-icon { font-size: 22px; }
.pkg-coin-amount { font-size: 22px; font-weight: 800; color: var(--gold-light); }
.pkg-coins-label { font-size: 11px; color: var(--text-dim); font-weight: 700; letter-spacing: 0.5px; }

.pkg-title { font-size: 14px; font-weight: 700; color: #fff; margin-top: 1px; }
.pkg-desc { font-size: 12px; color: var(--text-muted); line-height: 1.3; }

.pkg-action-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.pkg-price {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

/* Cope Payment Method Highlight */
.payment-methods-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 18px;
}

.cope-badge {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

/* --- Forms & Inputs --- */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Google Firebase Auth Button */
.btn-google {
    width: 100%;
    background: #fff;
    color: #333;
    font-weight: 600;
    padding: 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.btn-google:hover {
    background: #f1f1f1;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 12px;
    margin: 18px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-glass);
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(20, 13, 33, 0.95);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    animation: toastSlide 0.3s ease-out;
}

.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-warning { border-color: var(--warning); }
.toast-info { border-color: var(--info); }

@keyframes toastSlide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

/* --- Confetti Celebration Particles --- */
.confetti-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 999;
    pointer-events: none;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* --- Video Stream Buffering Overlay & Preloading Indicator --- */
.video-buffering-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 18, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-buffering-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.video-buffering-spinner {
    width: 54px;
    height: 54px;
    border: 4px solid rgba(255, 75, 114, 0.18);
    border-top-color: var(--primary);
    border-right-color: var(--peach);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    box-shadow: 0 0 24px rgba(255, 75, 114, 0.45);
}

.video-buffering-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, #ffffff, var(--peach-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE SYSTEM
   ========================================================================== */

/* Tablets and Medium Handhelds (< 992px) */
@media (max-width: 992px) {
    .site-header {
        padding: 12px 16px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smartphones & Small Tablets (< 768px) */
@media (max-width: 768px) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .site-header {
        padding: 10px 14px;
        padding-top: max(10px, env(safe-area-inset-top));
    }

    .brand-name {
        font-size: 18px;
    }

    .coin-pill {
        padding: 5px 10px;
        font-size: 12px;
    }

    .profile-name {
        display: none; /* Icon avatar only on small mobile */
    }

    .profile-chip {
        padding: 4px;
    }

    /* Hero & Match Hub */
    .lobby-content {
        padding: 16px 12px 32px;
    }

    .hero-tag {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.15;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 20px;
        padding: 0 4px;
    }

    .match-hub-card {
        padding: 18px 14px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .gender-tabs {
        gap: 6px;
        margin-bottom: 16px;
    }

    .gender-tab {
        padding: 10px 4px;
        border-radius: 12px;
    }

    .gender-icon {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .gender-label {
        font-size: 12px;
    }

    .gender-cost {
        font-size: 10px;
    }

    .btn-start-match {
        height: 52px;
        font-size: 16px;
        border-radius: 14px;
    }

    /* Featured Profiles Grid (2 columns on mobile) */
    .featured-section {
        margin-top: 32px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .profile-card-info {
        padding: 10px 12px 4px;
    }

    .profile-card-name {
        font-size: 14px;
    }

    .profile-card-loc {
        font-size: 11px;
    }

    .btn-call-direct {
        margin: 6px 10px 10px;
        padding: 8px;
        font-size: 12px;
    }

    /* Radar Searching View on Mobile */
    .searching-view-inner {
        padding: 24px 16px;
    }

    .radar-container {
        width: 220px;
        height: 220px;
    }

    .radar-center-avatar {
        width: 72px;
        height: 72px;
    }

    .radar-title {
        font-size: 22px;
    }

    .radar-subtitle {
        font-size: 13px;
    }

    /* Video Room View on Mobile */
    .video-room-view {
        height: 100dvh;
        height: 100vh;
    }

    .call-top-overlay {
        top: max(12px, env(safe-area-inset-top));
        left: 12px;
        right: 12px;
    }

    .peer-chip {
        padding: 4px 10px 4px 4px;
        max-width: calc(100% - 110px);
    }

    .peer-chip-avatar {
        width: 34px;
        height: 34px;
    }

    .peer-chip-name {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90px;
    }

    .peer-chip-loc {
        font-size: 10px;
    }

    .call-timer-pill {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* Mobile PIP Camera */
    .local-pip-video-wrap {
        width: 88px;
        height: 120px;
        top: max(68px, calc(env(safe-area-inset-top) + 56px));
        right: 12px;
        border-radius: 14px;
        border-width: 1.5px;
    }

    /* Reactions Sidebar */
    .reactions-sidebar {
        right: 12px;
        bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px);
        gap: 8px;
    }

    .reaction-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    /* Call Control Dock */
    .call-dock {
        bottom: max(14px, env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        max-width: 400px;
        padding: 8px 10px;
        gap: 6px;
        border-radius: 26px;
    }

    .ctrl-btn {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .ctrl-btn-skip {
        padding: 0 14px;
        font-size: 13px;
    }

    /* Modals & Bottom Sheets on Mobile */
    .modal-overlay, .modal {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .modal-box, .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 90dvh !important;
        max-height: 90vh !important;
        border-radius: 24px 24px 0 0 !important;
        padding: 20px 16px 28px !important;
        padding-bottom: max(28px, env(safe-area-inset-bottom)) !important;
        animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        margin: 0 !important;
    }

    @keyframes modalSlideUp {
        from { transform: translateY(100%); opacity: 0.6; }
        to { transform: translateY(0); opacity: 1; }
    }

    .modal-header {
        margin-bottom: 16px;
    }

    .modal-title {
        font-size: 18px;
    }

    .payment-methods-box {
        padding: 10px 12px;
        margin-bottom: 14px;
        font-size: 12px;
    }

    .cope-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* Coin Packages in Shop Modal on Mobile */
    .packages-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .package-card {
        padding: 12px 14px !important;
        gap: 12px !important;
        border-radius: 14px !important;
    }

    .package-badge {
        top: -8px;
        right: 12px;
        font-size: 10px;
        padding: 2px 8px;
    }

    .pkg-coin-icon { font-size: 20px; }
    .pkg-coin-amount { font-size: 19px; }
    .pkg-coins-label { font-size: 10px; }
    .pkg-title { font-size: 13px; }
    .pkg-desc { font-size: 11px; }

    .pkg-price {
        font-size: 16px;
    }

    .btn-buy {
        padding: 6px 14px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
    }
}

/* Extra Small Devices (< 380px) */
@media (max-width: 380px) {
    .hero-title {
        font-size: 24px;
    }

    .ctrl-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .ctrl-btn-skip {
        padding: 0 10px;
        font-size: 12px;
    }

    .package-card {
        padding: 10px 12px !important;
    }

    .pkg-coin-amount {
        font-size: 17px;
    }

    .pkg-price {
        font-size: 15px;
    }

    .btn-buy {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
}
