/* PlayWin Ultra-Modern Dark Glassmorphic Mobile App Stylesheet */

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

:root {
    --bg-dark: #090D16;
    --bg-card: rgba(22, 29, 45, 0.65);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(6, 182, 212, 0.3);
    
    --primary: #06B6D4;
    --primary-glow: rgba(6, 182, 212, 0.35);
    --primary-gradient: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    
    --gold: #F59E0B;
    --gold-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    
    --big-red: #F43F5E;
    --big-red-gradient: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
    
    --small-green: #10B981;
    --small-green-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
    
    --text-main: #F8FAFC;
    --text-sub: #94A3B8;
    --text-muted: #64748B;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #030712;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Mobile Wrapper Container */
.app-container {
    width: 100%;
    max-width: 440px;
    height: 100vh;
    max-height: 920px;
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

@media (min-width: 480px) {
    .app-container {
        border-radius: 36px;
        height: 92vh;
        margin: 20px 0;
    }
}

/* App Header */
.app-header {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(9, 13, 22, 0.8) 100%);
    backdrop-filter: blur(12px);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-gradient);
    padding: 2px;
    box-shadow: var(--shadow-glow);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.vip-badge {
    background: var(--gold-gradient);
    color: #000;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}

.user-uid {
    font-size: 11.5px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 4px;
}

.uid-copy-icon {
    font-size: 10px;
    color: var(--primary);
    cursor: pointer;
}

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

.balance-pill {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--border-accent);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.balance-val {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
}

.btn-icon-logout {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: var(--big-red);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-logout:hover {
    background: var(--big-red-gradient);
    color: #fff;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

/* Main Content Area */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 90px;
    scrollbar-width: none;
}

.app-content::-webkit-scrollbar {
    display: none;
}

/* Glass Card Component */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Dynamic Round Queue / Inactivity Status Banners */
.status-banner {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
    transition: all 0.3s ease;
    animation: fadeInBanner 0.4s ease forwards;
}

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

.status-banner-spectating {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FBBF24;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.status-banner-in-queue {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #38BDF8;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.status-banner-locked {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.18) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #FB7185;
}

.status-icon-pulse {
    font-size: 18px;
    animation: pulseIcon 1.5s infinite alternate;
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 8px currentColor); }
}

/* Navigation Tabs Bar */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(11, 15, 23, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 30;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.nav-item i {
    font-size: 19px;
    transition: all 0.2s ease;
}

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

.nav-item.active i {
    transform: translateY(-2px);
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* Floating Center Promotion Button */
.nav-item-center {
    position: relative;
    top: -16px;
}

.center-btn-hex {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
    border: 3px solid var(--bg-dark);
}

.center-btn-hex i {
    font-size: 22px;
}

/* Timeframe Pills */
.timeframe-bar {
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.8);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
    margin-bottom: 16px;
}

.tf-pill {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-sub);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.tf-pill.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Game Timer Display */
.timer-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.timer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.period-title {
    font-size: 12px;
    color: var(--text-sub);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.period-num {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.clock-display {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 0 16px var(--primary-glow);
}

/* Big vs Small Action Cards */
.big-small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.action-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.action-card-big {
    background: linear-gradient(145deg, rgba(244, 63, 94, 0.15) 0%, rgba(15, 23, 42, 0.7) 100%);
    border-color: rgba(244, 63, 94, 0.3);
}

.action-card-big:hover, .action-card-big.active {
    background: var(--big-red-gradient);
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.4);
    transform: translateY(-2px);
}

.action-card-small {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.7) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.action-card-small:hover, .action-card-small.active {
    background: var(--small-green-gradient);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.card-subtitle {
    font-size: 11.5px;
    opacity: 0.85;
    font-weight: 600;
}

.card-multiplier {
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 4px;
}

/* Trend Dot Badges */
.trend-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.trend-badge {
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12.5px;
    color: #fff;
}

.trend-badge.BIG { background: var(--big-red-gradient); box-shadow: 0 0 10px rgba(244, 63, 94, 0.3); }
.trend-badge.SMALL { background: var(--small-green-gradient); box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }

/* Quick Preset Chips */
.chip-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.chip-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chip-btn:hover, .chip-btn.active {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

/* Modal Popup Base Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 90%;
    max-width: 390px;
    background: #0F172A;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-glass);
    transform: scale(0.85);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

/* 5-Second Excitement Countdown Modal Popup Overlay */
.modal-card-lock-countdown {
    background: linear-gradient(180deg, #1E1B4B 0%, #0F172A 100%);
    border: 2px solid var(--primary);
    box-shadow: 0 0 50px var(--primary-glow);
    text-align: center;
    padding: 32px 24px;
}

.lock-countdown-circle {
    width: 105px;
    height: 105px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background: var(--primary-gradient);
    padding: 4px;
    box-shadow: 0 0 35px var(--primary-glow);
    animation: lockRingPulse 1s infinite alternate;
}

@keyframes lockRingPulse {
    0% { transform: scale(0.92); box-shadow: 0 0 20px var(--primary-glow); }
    100% { transform: scale(1.08); box-shadow: 0 0 45px var(--primary); }
}

.lock-number-inner {
    width: 100%;
    height: 100%;
    background: #0F172A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-number-hero {
    font-family: 'Outfit', sans-serif;
    font-size: 54px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 25px var(--primary);
    animation: numScale 1s infinite cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes numScale {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Auth Modal (Login / Registration Screen) */
.auth-modal-card {
    background: linear-gradient(180deg, #0F172A 0%, #090D16 100%);
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-glow);
    padding: 28px 24px;
}

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

.auth-logo-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.auth-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 22px;
}

.auth-tab-btn {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab-btn.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.auth-input-group {
    margin-bottom: 16px;
    position: relative;
}

.auth-input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 14px;
}

.auth-input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 14px 12px 40px;
    color: var(--text-main);
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s;
}

.auth-input-field:focus {
    border-color: var(--primary);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Animated Win Celebration Modal */
.modal-card-win {
    background: linear-gradient(180deg, #06202A 0%, #0F172A 100%);
    border: 2px solid var(--gold);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.win-trophy-bounce {
    width: 80px;
    height: 80px;
    margin: 0 auto 14px auto;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #000;
    box-shadow: 0 0 30px var(--gold);
    animation: trophyBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}

@keyframes trophyBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.1); }
}

.win-amount-hero {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    margin: 8px 0;
}

/* Animated Loss Reveal Modal */
.modal-card-loss {
    background: linear-gradient(180deg, #2A0E18 0%, #0F172A 100%);
    border: 2px solid var(--big-red);
    box-shadow: 0 0 35px rgba(244, 63, 94, 0.35);
    text-align: center;
}

.loss-icon-pulse {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px auto;
    background: var(--big-red-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.5);
    animation: lossPulse 1.2s infinite alternate;
}

@keyframes lossPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.08); opacity: 1; }
}

.btn-primary-block {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: all 0.2s;
}

.btn-primary-block:active {
    transform: scale(0.98);
}
