/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Montserrat:wght@300;400;500;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #060305;
    --bg-gradient: radial-gradient(circle at top, #2b0b1a 0%, #050203 100%);
    --card-bg: rgba(18, 10, 24, 0.92);
    --card-hover: rgba(30, 14, 28, 0.98);
    --gold: #ffa0c5;
    --gold-light: #fcecf4;
    --gold-gradient: linear-gradient(135deg, #ffccd8 0%, #ffa0c5 50%, #db6e97 100%);
    --gold-glow: 0 0 18px rgba(255, 160, 197, 0.6);
    --blue-neon: #ffccd8;
    --text-white: #ffffff;
    --text-soft: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --border-glass: rgba(255, 160, 197, 0.15);
    --border-gold: rgba(255, 160, 197, 0.35);
    --border-hover: rgba(255, 160, 197, 0.65);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Prompt', 'Kanit', 'Outfit', 'Sarabun', sans-serif;
    touch-action: manipulation;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-gradient);
    background-color: var(--bg-color);
    color: var(--text-white);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    max-width: 100vw;
}

/* iOS Touch Physics & Smooth Transitions */
.btn-premium, .btn-outline, .btn-sm, .chat-page-tab, .filter-btn, .nav-links-sub a, .glass-panel, .game-card, .level-badge, .wheel-mode-btn, .header-level-card, button {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, opacity 0.22s ease !important;
    -webkit-tap-highlight-color: transparent;
}

.btn-premium:active, .btn-outline:active, .btn-sm:active, .filter-btn:active, .wheel-mode-btn:active, button:active {
    transform: scale(0.96) !important;
}

.nav-links-sub a:active {
    transform: scale(0.90) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #020408;
}
::-webkit-scrollbar-thumb {
    background: var(--gold-gradient);
    border-radius: 4px;
}

/* Liquid Glass Panel Helpers */
.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(16, 9, 24, 0.86) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.42) !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
    border-radius: 24px !important;
    padding: 1.8rem;
    box-shadow: 0 16px 45px 0 rgba(0, 0, 0, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.35), inset 0 -1px 20px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.gold-panel {
    border: 1px solid rgba(255, 94, 132, 0.35) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 94, 132, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.45) !important;
}

.gold-panel:hover {
    border-color: rgba(255, 94, 132, 0.45) !important;
    border-top-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Liquid Glass Stat Capsules */
.liquid-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(20, 10, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.liquid-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.liquid-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.4);
}

.liquid-stat-icon.gold-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.35) 0%, rgba(223, 177, 59, 0.15) 100%);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
}
.liquid-stat-icon.cyan-icon {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.35) 0%, rgba(56, 189, 248, 0.15) 100%);
    border: 1px solid rgba(0, 210, 255, 0.5);
    color: #38bdf8;
}
.liquid-stat-icon.pink-icon {
    background: linear-gradient(135deg, rgba(255, 94, 132, 0.35) 0%, rgba(225, 29, 72, 0.15) 100%);
    border: 1px solid rgba(255, 94, 132, 0.5);
    color: #ff5e84;
}

.liquid-stat-info {
    display: flex;
    flex-direction: column;
}

.liquid-stat-title {
    font-size: 0.82rem;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 2px;
}

.liquid-stat-value {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.3px;
}
.liquid-stat-value.gold-text { color: #ffd700; text-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
.liquid-stat-value.cyan-text { color: #38bdf8; text-shadow: 0 0 15px rgba(56, 189, 248, 0.5); }
.liquid-stat-value.pink-text { color: #ff5e84; text-shadow: 0 0 15px rgba(255, 94, 132, 0.5); }

/* Liquid Glass Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background: rgba(10, 6, 14, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
    transform: scale(1.03);
}

.logo-icon {
    font-size: 2rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 94, 132, 0.6));
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Liquid Glass Buttons */
.btn-premium {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(0, 0, 0, 0.15) 100%), 
                linear-gradient(135deg, #ff4071 0%, #e11d48 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.65) !important;
    padding: 0.65rem 1.6rem;
    border-radius: 26px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 24px rgba(255, 64, 113, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: 0.6s;
    pointer-events: none;
}

.btn-premium:hover::after {
    left: 140%;
}

.btn-premium:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(255, 64, 113, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    filter: brightness(1.05);
}

.btn-premium:active {
    transform: translateY(1px) scale(0.97) !important;
    box-shadow: 0 2px 6px rgba(255, 64, 113, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.btn-outline {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(20, 10, 28, 0.6) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    padding: 0.65rem 1.4rem;
    border-radius: 26px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-outline:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 100%), rgba(35, 16, 45, 0.8) !important;
    border-color: rgba(255, 94, 132, 0.5) !important;
    border-top-color: rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
}

.btn-outline:active {
    transform: translateY(1px) scale(0.95) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Glass Stat Chips */
.header-glass-chip {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(18, 10, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease;
}

.header-glass-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Container */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem 4% 2.5rem 4%;
    flex: 1;
}

/* Hero */
.hero {
    text-align: center;
    padding: 7rem 1rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(223,177,59,0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none; /* Prevent blocking clicks on hero buttons! */
}

.hero h2 {
    font-family: 'Prompt', sans-serif !important;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff 10%, #ff5e84 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.9));
    z-index: 1;
    position: relative;
    animation: text-neon-glow 3s ease-in-out infinite alternate;
}

@keyframes text-neon-glow {
    0% { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.9)) drop-shadow(0 0 2px rgba(255, 94, 132, 0.2)); }
    100% { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.9)) drop-shadow(0 0 12px rgba(255, 94, 132, 0.55)); }
}

@keyframes bounce-fast {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.1); }
}

.bounce-icon {
    display: inline-block;
    animation: bounce-fast 0.6s infinite ease-in-out;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 2.8rem auto;
    z-index: 1;
    position: relative;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

/* Games Grid */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 3.5rem 0 2rem 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: var(--gold);
    filter: drop-shadow(0 0 8px rgba(223, 177, 59, 0.5));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stats-grid .glass-panel {
    padding: 2.5rem 1.5rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: white;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(223, 177, 59, 0.15);
    background: var(--card-hover);
}

.game-img {
    height: 160px;
    background: linear-gradient(135deg, #090f1d 0%, #020408 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Individual Game Glows */
.game-card.ff-card:hover .game-img {
    box-shadow: inset 0 0 20px rgba(255, 87, 34, 0.2);
}
.game-card.ff-card:hover .game-img img {
    filter: drop-shadow(0 0 15px #ff5722);
}

.game-card.rov-card:hover .game-img {
    box-shadow: inset 0 0 20px rgba(223, 177, 59, 0.2);
}
.game-card.rov-card:hover .game-img img {
    filter: drop-shadow(0 0 15px #dfb13b);
}

.game-card.ef-card:hover .game-img {
    box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.2);
}
.game-card.ef-card:hover .game-img img {
    filter: drop-shadow(0 0 15px #00d2ff);
}

.game-card.fc-card:hover .game-img {
    box-shadow: inset 0 0 20px rgba(46, 204, 113, 0.2);
}
.game-card.fc-card:hover .game-img img {
    filter: drop-shadow(0 0 15px #2ecc71);
}

.game-card.pubg-card:hover .game-img {
    box-shadow: inset 0 0 20px rgba(241, 196, 15, 0.2);
}
.game-card.pubg-card:hover .game-img img {
    filter: drop-shadow(0 0 15px #f1c40f);
}

.game-img img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}

.game-card:hover .game-img img {
    transform: scale(1.1) rotate(2deg);
}

.game-info {
    padding: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.game-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

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

/* Step Form Layout */
.topup-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .topup-layout {
        grid-template-columns: 1fr;
    }
}

.step-card {
    margin-bottom: 2rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
}

.step-num {
    background: var(--gold-gradient);
    color: #03050a;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    background: rgba(2, 4, 8, 0.8);
    border: 1px solid var(--border-gold);
    color: white;
    padding: 1.1rem;
    border-radius: 12px;
    outline: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 15px rgba(223, 177, 59, 0.3);
}

/* Fix dark mode calendar icon visibility */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Packages Grid */
.package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.package-card {
    position: relative;
    background: rgba(2, 4, 8, 0.5);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    box-shadow: 0 6px 0 rgba(223, 177, 59, 0.15), 0 12px 24px rgba(0, 0, 0, 0.6);
    animation: packageCardReveal 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.1) both;
}

@keyframes packageCardReveal {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Shining Sweep Light Effect */
@keyframes sweepLightContinuous {
    0% { left: -150%; opacity: 0; }
    10% { opacity: 1; }
    40% { left: 200%; opacity: 1; }
    41% { opacity: 0; }
    100% { left: 200%; opacity: 0; }
}

.package-sweep-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    pointer-events: none;
    z-index: 1;
}

.package-sweep-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0.15) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: sweepLightContinuous 4s infinite ease-in-out;
}

.package-card:hover .package-sweep-container::before {
    animation-duration: 2s; /* Faster animation on hover */
}

.package-card:hover {
    border-color: var(--gold);
    background: rgba(223, 177, 59, 0.08);
    box-shadow: 0 10px 0 rgba(223, 177, 59, 0.25), 0 20px 30px rgba(223, 177, 59, 0.25);
    transform: translateY(-8px);
}

.package-card.selected {
    border-color: var(--gold);
    background: rgba(223, 177, 59, 0.12) !important;
    transform: translateY(-4px) scale(1.02);
    animation: goldGlowPulse 2s infinite alternate;
}

@keyframes goldGlowPulse {
    0% {
        box-shadow: 0 8px 0 var(--gold), 0 0 15px rgba(223, 177, 59, 0.3), inset 0 0 10px rgba(223, 177, 59, 0.15);
    }
    100% {
        box-shadow: 0 8px 0 var(--gold), 0 0 35px rgba(223, 177, 59, 0.6), inset 0 0 20px rgba(223, 177, 59, 0.3);
    }
}

.package-card:active {
    transform: scale(0.95) !important;
    border-color: #fff !important;
    box-shadow: 0 0 30px rgba(223, 177, 59, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.5) !important;
    transition: all 0.1s ease !important;
}

.package-card:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    animation: clickRipple 0.4s ease-out;
    z-index: 10;
    pointer-events: none;
}

@keyframes clickRipple {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 250%; height: 250%; opacity: 0; }
}

.package-card i {
    font-size: 2rem;
    color: var(--blue-neon);
    margin-bottom: 0.8rem;
}

.package-name {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.package-price {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Payment List */
.payment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 4, 8, 0.5);
    border: 1px solid var(--border-gold);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-item:hover, .payment-item.selected {
    border-color: var(--gold-light);
    background: rgba(223, 177, 59, 0.06);
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-info i {
    font-size: 1.5rem;
    color: var(--gold);
}

/* Queue List */
.queue-card {
    background: rgba(3, 5, 10, 0.8);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.queue-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.queue-title i {
    color: var(--gold);
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 0.95rem;
    border-left: 3px solid var(--border-glass);
}

.queue-item.pending {
    border-left-color: var(--gold);
}

.queue-item.processing {
    border-left-color: var(--blue-neon);
}

.queue-item.completed {
    border-left-color: #2ecc71;
}

.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(223, 177, 59, 0.15);
    color: var(--gold-light);
}

.status-badge.processing {
    background: rgba(0, 210, 255, 0.15);
    color: var(--blue-neon);
}

.status-badge.completed {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

/* Floating Chat */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999999 !important;
}

.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #03050a;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--gold-glow);
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.chat-btn:hover {
    transform: scale(1.08) rotate(5deg);
}

.chat-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 450px;
    height: 500px;
    min-width: 350px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease, height 0.3s ease, bottom 0.3s ease, right 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    background: rgba(10, 6, 12, 0.95) !important;
}

.resize-handle {
    position: absolute;
    z-index: 100;
}
.resize-handle.n { top: 0; left: 10px; right: 10px; height: 10px; cursor: n-resize; }
.resize-handle.s { bottom: 0; left: 10px; right: 10px; height: 10px; cursor: s-resize; }
.resize-handle.e { top: 10px; bottom: 10px; right: 0; width: 10px; cursor: e-resize; }
.resize-handle.w { top: 10px; bottom: 10px; left: 0; width: 10px; cursor: w-resize; }
.resize-handle.nw { top: 0; left: 0; width: 15px; height: 15px; cursor: nw-resize; z-index: 101; }
.resize-handle.ne { top: 0; right: 0; width: 15px; height: 15px; cursor: ne-resize; z-index: 101; }
.resize-handle.sw { bottom: 0; left: 0; width: 15px; height: 15px; cursor: sw-resize; z-index: 101; }
.resize-handle.se { bottom: 0; right: 0; width: 15px; height: 15px; cursor: se-resize; z-index: 101; }

.chat-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-window.maximized {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    resize: none;
    border-radius: 0 !important;
    z-index: 1000000;
}

.chat-header {
    background: rgba(3, 5, 10, 0.95);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.8rem 1rem;
    border-top-right-radius: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
}

.chat-sidebar {
    width: 70px;
    border-right: 1px solid var(--border-glass);
    background: rgba(3, 5, 10, 0.95);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    align-items: center;
    padding-top: 15px;
    z-index: 2;
    border-top-left-radius: inherit;
    border-bottom-left-radius: inherit;
}

.chat-sidebar::-webkit-scrollbar {
    width: 2px;
}
.chat-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-top-right-radius: inherit;
    border-bottom-right-radius: inherit;
}

.chat-tabs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}

.chat-tab {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    overflow: hidden;
    color: white;
    flex-shrink: 0;
}

.chat-tab img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-tab.active {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(223, 177, 59, 0.5);
    background: rgba(223, 177, 59, 0.15);
}

.swal2-container {
    z-index: 9999999 !important;
}

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

.chat-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.chat-controls button:hover {
    opacity: 1;
    color: var(--gold);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem 0.5rem;
    background: rgba(6, 11, 23, 0.95);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-footer {
    background: rgba(3, 5, 10, 0.95);
    padding: 0.8rem;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input-wrapper {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    gap: 5px;
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.6rem 0.5rem;
    color: white;
    outline: none;
}

.chat-attach-btn, .chat-voice-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.chat-attach-btn:hover, .chat-voice-btn:hover {
    color: var(--gold);
    background: rgba(255,255,255,0.1);
}

.chat-voice-btn.recording {
    color: #ff4757;
    animation: pulse-record 1s infinite alternate;
}

@keyframes pulse-record {
    from { transform: scale(1); filter: drop-shadow(0 0 2px #ff4757); }
    to { transform: scale(1.1); filter: drop-shadow(0 0 8px #ff4757); }
}

.chat-send {
    background: var(--gold-gradient);
    color: #03050a;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.msg {
    max-width: 92%;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
}

.msg.user {
    align-self: flex-end;
    background: var(--gold-gradient);
    color: #03050a;
    border-bottom-right-radius: 2px;
}

.msg.other {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255,255,255,0.05);
}

.msg-sender {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 3px;
    display: block;
}

.mention-highlight {
    background: rgba(255, 160, 197, 0.3);
    color: #ffd1dc;
    font-weight: bold;
    padding: 0 4px;
    border-radius: 4px;
}

/* Custom Scrollbar for Chat Body */
.chat-body::-webkit-scrollbar {
    width: 5px;
}
.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.chat-media-preview {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 5px;
}

.chat-audio-player {
    height: 35px;
    outline: none;
    max-width: 200px;
}

/* Calendar */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

.calendar-day {
    aspect-ratio: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 160, 197, 0.12);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.calendar-day:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.calendar-day.checked {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.12) 0%, rgba(46, 204, 113, 0.28) 100%) !important;
    border-color: #2ecc71 !important;
    color: #2ecc71 !important;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.25) !important;
    cursor: default;
}

.calendar-day.locked {
    background: rgba(255, 255, 255, 0.01) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.15) !important;
    cursor: not-allowed !important;
}

.calendar-day.locked:hover {
    transform: none !important;
    background: rgba(255, 255, 255, 0.01) !important;
}

.calendar-day.active-today {
    background: linear-gradient(135deg, rgba(255, 94, 132, 0.18) 0%, rgba(255, 94, 132, 0.35) 100%) !important;
    border: 2px solid #ff5e84 !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(255, 94, 132, 0.5) !important;
    animation: cell-pulse 1.6s infinite alternate;
    flex-direction: column !important;
    gap: 1px;
}

@keyframes cell-pulse {
    0% { box-shadow: 0 0 5px rgba(255, 94, 132, 0.3); transform: scale(1); }
    100% { box-shadow: 0 0 18px rgba(255, 94, 132, 0.65); transform: scale(1.04); }
}

/* Premium Lucky Wheel */
.wheel-container {
    position: relative;
    width: min(380px, calc(100vw - 60px));
    height: min(380px, calc(100vw - 60px));
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 1.5rem auto;
    filter: drop-shadow(0 0 30px rgba(223, 177, 59, 0.2));
}

.wheel-graphic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #111422;
    box-shadow: 0 0 25px rgba(255, 94, 132, 0.4), inset 0 0 45px rgba(0,0,0,0.8);
    background: conic-gradient(
        #ff5e84 0deg 60deg,
        #181b2a 60deg 120deg,
        #ff5e84 120deg 180deg,
        #181b2a 180deg 240deg,
        #ff5e84 240deg 300deg,
        #181b2a 300deg 360deg
    );
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.15, 1);
    position: relative;
}

/* Outer neon chasing LED lights */
.wheel-graphic::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 40%, rgba(255, 94, 132, 0.2) 60%, #ff5e84 100%);
    -webkit-mask: radial-gradient(circle, transparent 93%, #000 94%);
    mask: radial-gradient(circle, transparent 93%, #000 94%);
    filter: drop-shadow(0 0 6px #ff5e84) drop-shadow(0 0 12px #ff5e84);
    animation: rotate-lights 3.5s linear infinite;
    pointer-events: none;
    z-index: 5;
    transition: all 0.3s ease;
}

.wheel-graphic.spinning::before {
    animation: rotate-lights 0.2s linear infinite;
    filter: drop-shadow(0 0 20px #dfb13b) drop-shadow(0 0 40px #ff5e84);
    background: conic-gradient(from 0deg, transparent 20%, #dfb13b 50%, #ff5e84 100%);
}

.wheel-container.spinning::before {
    content: '';
    position: absolute;
    top: -12px; left: -12px; right: -12px; bottom: -12px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 40%, #dfb13b 70%, #ff5e84 100%);
    -webkit-mask: radial-gradient(closest-side, transparent 95%, #000 96%);
    mask: radial-gradient(closest-side, transparent 95%, #000 96%);
    filter: drop-shadow(0 0 15px #dfb13b) drop-shadow(0 0 30px #ff5e84);
    animation: rotate-lights-fast 0.5s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotate-lights-fast {
    0% { transform: rotate(0deg); opacity: 0.8; filter: drop-shadow(0 0 15px #dfb13b) drop-shadow(0 0 30px #ff5e84); }
    50% { opacity: 1; filter: drop-shadow(0 0 25px #dfb13b) drop-shadow(0 0 45px #ff5e84); }
    100% { transform: rotate(360deg); opacity: 0.8; filter: drop-shadow(0 0 15px #dfb13b) drop-shadow(0 0 30px #ff5e84); }
}

.wheel-graphic::after {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.15);
    pointer-events: none;
}

@keyframes rotate-lights {
    0% { transform: rotate(0deg); opacity: 0.9; }
    50% { opacity: 1; filter: drop-shadow(0 0 8px #ff5e84) drop-shadow(0 0 14px #ff5e84); }
    100% { transform: rotate(360deg); opacity: 0.9; }
}

.wheel-text {
    position: absolute;
    width: 50%;
    height: 100%;
    transform-origin: center right;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    transform: rotate(calc(60deg * var(--i)));
    pointer-events: none;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px;
    background: linear-gradient(to bottom, #dfb13b, #ff5e84);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5)) drop-shadow(0 0 8px #dfb13b);
}

.wheel-spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dfb13b 0%, #ff5e84 100%);
    color: #ffffff;
    border: 3px solid #ffffff;
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 94, 132, 0.8), inset 0 0 10px rgba(255,255,255,0.4);
    z-index: 11;
    transition: all 0.2s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.wheel-spin-btn:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 94, 132, 0.9), inset 0 0 15px rgba(255,255,255,0.2);
}

.wheel-spin-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    filter: brightness(0.7);
}

/* Badge Logos */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.badge-bronze {
    background: rgba(205, 127, 50, 0.15);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.badge-silver {
    background: rgba(192, 192, 192, 0.15);
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.badge-gold {
    background: rgba(223, 177, 59, 0.15);
    color: var(--gold);
    border: 1px solid var(--border-gold);
}

.badge-diamond {
    background: rgba(0, 210, 255, 0.15);
    color: var(--blue-neon);
    border: 1px solid rgba(0, 210, 255, 0.3);
}

/* Scroll reveal & Smooth scrolling */
html {
    scroll-behavior: smooth;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Glowing FontAwesome Icons in Game Cards */
.game-img i {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
}

.game-card.ff-card:hover .game-img i {
    filter: drop-shadow(0 0 25px #ff5722);
    transform: scale(1.15) rotate(3deg);
}

.game-card.rov-card:hover .game-img i {
    filter: drop-shadow(0 0 25px #dfb13b);
    transform: scale(1.15) rotate(-3deg);
}

.game-card.ef-card:hover .game-img i {
    filter: drop-shadow(0 0 25px #00d2ff);
    transform: scale(1.15) rotate(3deg);
}

.game-card.fc-card:hover .game-img i {
    filter: drop-shadow(0 0 25px #2ecc71);
    transform: scale(1.15) rotate(-3deg);
}

.game-card.pubg-card:hover .game-img i {
    filter: drop-shadow(0 0 25px #f1c40f);
    transform: scale(1.15) rotate(3deg);
}

/* Inactive / Maintenance game styling */
.game-card.inactive-game {
    opacity: 0.65;
    filter: grayscale(85%);
    cursor: not-allowed;
    border-color: rgba(231, 76, 60, 0.2);
}

.game-card.inactive-game:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(231, 76, 60, 0.3) !important;
}

.game-card.inactive-game:hover .game-img img {
    transform: none !important;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)) !important;
}

/* Prevent text elements wrapping on navbar */
.nav-links a {
    white-space: nowrap;
}
.auth-buttons {
    white-space: nowrap;
}
.user-stats-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

/* Floating Sub-Navbar (Apple Liquid Glass Dock on Desktop) */
.sub-nav-bar {
    position: sticky;
    top: 65px; /* Sticks below main header navbar */
    z-index: 999;
    background: rgba(14, 8, 20, 0.78);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 35px;
    max-width: 960px;
    margin: 10px auto 14px auto;
    padding: 6px 14px;
    display: flex;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.35);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sub-nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links-sub {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-links-sub a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 7px 16px;
    border-radius: 20px;
    position: relative;
    border: 1px solid transparent;
}

.nav-links-sub a i {
    font-size: 1rem;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links-sub a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.nav-links-sub a:hover i {
    transform: scale(1.15);
}

.nav-links-sub a:active {
    transform: scale(0.92);
}

.nav-links-sub a.active {
    color: #ffffff !important;
    font-weight: 800 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(0, 0, 0, 0.12) 100%), 
                linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: 1px solid #f59e0b !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px);
}

/* Liquid Tab Switcher */
.liquid-tabs-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
    padding: 8px;
    background: rgba(15, 8, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.liquid-tab-btn {
    position: relative;
    padding: 10px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 60px;
    min-width: 0;
    box-sizing: border-box;
}

.liquid-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.liquid-tab-btn:active {
    transform: scale(0.97);
}

.liquid-tab-btn.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(0, 0, 0, 0.12) 100%), 
                linear-gradient(135deg, #ff4071 0%, #e11d48 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 8px 24px rgba(255, 64, 113, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
}

.tab-btn-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    pointer-events: none;
}

.tab-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.tab-icon-pp {
    background: rgba(0, 210, 255, 0.12);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.35);
}

.tab-icon-tm {
    background: rgba(255, 94, 132, 0.12);
    color: #ff5e84;
    border: 1px solid rgba(255, 94, 132, 0.35);
}

.tab-icon-bank {
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.35);
}

.tab-icon-points {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.liquid-tab-btn.active .tab-icon-box {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.tab-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.25;
    min-width: 0;
    pointer-events: none;
}

.tab-main-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.tab-sub-text {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 600;
    margin-top: 2px;
    transition: color 0.25s ease;
}

.liquid-tab-btn.active .tab-sub-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

.tab-status-pill {
    position: absolute;
    top: -8px;
    right: 6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.6);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
    letter-spacing: 0.2px;
    pointer-events: none;
    animation: badgePulse 2s infinite ease-in-out;
}

.liquid-tab-btn.is-maintenance {
    opacity: 0.85;
    border-color: rgba(239, 68, 68, 0.35) !important;
    background: rgba(239, 68, 68, 0.04) !important;
}

.liquid-tab-btn.is-maintenance:hover {
    opacity: 1;
    border-color: rgba(239, 68, 68, 0.6) !important;
}

@media (max-width: 768px) {
    .liquid-tabs-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 6px !important;
        border-radius: 20px !important;
        margin-bottom: 1.5rem !important;
    }
    .liquid-tab-btn {
        padding: 9px 10px !important;
        border-radius: 16px !important;
        min-height: 52px !important;
    }
    .tab-btn-inner {
        gap: 8px !important;
        justify-content: flex-start !important;
        padding-left: 4px !important;
    }
    .tab-icon-box {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
    }
    .tab-main-text {
        font-size: 0.85rem !important;
    }
    .tab-sub-text {
        font-size: 0.68rem !important;
    }
    .tab-status-pill {
        top: -7px !important;
        right: 4px !important;
        font-size: 0.58rem !important;
        padding: 1.5px 6px !important;
    }
}

.nav-link-chat {
    position: relative;
}

.chat-badge-sub {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.9);
    line-height: 1.2;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: pulseChatBadge 2s infinite;
}

@keyframes pulseChatBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); box-shadow: 0 0 12px rgba(255, 71, 87, 1); }
    100% { transform: scale(1); }
}

/* Media Queries for Customer Site Responsiveness */
@media (max-width: 1366px) {
    .navbar {
        padding: 1rem 2% !important;
    }
    .sub-nav-bar {
        padding: 0.8rem 3% !important;
    }
    .nav-links-sub {
        gap: 1.8rem !important;
    }
    .user-stats-bar-sub {
        gap: 10px !important;
    }
}

@media (max-width: 1200px) {
    .navbar {
        
        padding: 1rem 4% !important;
        flex-direction: row !important; /* Keep as row layout to place logo left and stats right */
        justify-content: space-between !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    .sub-nav-bar {
        top: 0 !important; /* Stays sticky at the absolute top on mobile/tablet */
        padding: 0.8rem 4% !important;
    }
    .nav-links-sub {
        gap: 1rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    .nav-links-sub::-webkit-scrollbar {
        display: none;
    }
    .nav-links-sub a {
        font-size: 0.95rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    .auth-buttons {
        width: auto !important;
        justify-content: flex-end !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    .user-stats-bar-sub {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
    html, body {
        overflow-x: clip !important;
        max-width: 100vw !important;
    }
    body {
        padding-bottom: calc(82px + env(safe-area-inset-bottom, 12px)) !important;
    }
    .container {
        padding: 0.5rem 10px 1.5rem 10px !important;
        max-width: 100vw !important;
        overflow-x: clip !important;
    }
    
    .navbar {
        position: sticky !important;
        top: 0 !important;
        padding: 0.45rem 10px !important;
        z-index: 10000 !important;
        background: rgba(14, 8, 20, 0.88) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    }

    .navbar-right-stack {
        gap: 4px !important;
    }

    .header-balance-chip {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 215, 0, 0.3);
        padding: 3px 8px;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 0.75rem;
    }

    /* 🌟 Ultra-Luxury Liquid Glass Floating Bottom Tab Dock */
    .sub-nav-bar {
        position: fixed !important;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        top: auto !important;
        left: 8px !important;
        right: 8px !important;
        width: calc(100% - 16px) !important;
        max-width: 500px !important;
        margin: 0 auto !important;
        z-index: 10000 !important;
        
        /* Ultra-Transparent Frosted Liquid Glass */
        background: rgba(16, 10, 24, 0.35) !important;
        background-image: linear-gradient(
            180deg, 
            rgba(255, 255, 255, 0.16) 0%, 
            rgba(255, 255, 255, 0.03) 32%, 
            rgba(16, 10, 24, 0.28) 100%
        ) !important;
        backdrop-filter: blur(28px) saturate(200%) contrast(104%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(200%) contrast(104%) !important;
        
        /* Specular Liquid Edge Highlights */
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-top: 1.2px solid rgba(255, 255, 255, 0.45) !important;
        border-radius: 28px !important;
        
        /* Soft, Natural Glass Depth */
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.35),
            inset 0 1px 1.5px rgba(255, 255, 255, 0.35) !important;
        
        padding: 5px 6px !important;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease !important;
    }
    
    .sub-nav-container {
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .nav-links-sub {
        width: 100% !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        gap: 2px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 !important;
        padding: 0 2px !important;
    }

    .nav-links-sub::-webkit-scrollbar {
        display: none !important;
    }
    
    .nav-links-sub li {
        flex: 1 0 auto !important;
        min-width: 38px !important;
        text-align: center !important;
        list-style: none !important;
        position: relative !important;
    }
    
    .nav-links-sub a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        font-size: 0.64rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.2px !important;
        padding: 5px 4px !important;
        color: rgba(255, 255, 255, 0.72) !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        border-radius: 16px !important;
        box-shadow: none !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        position: relative !important;
        transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        -webkit-tap-highlight-color: transparent !important;
        transform: none !important;
    }
    
    .nav-links-sub a i {
        font-size: 1.22rem !important;
        margin: 0 !important;
        transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) !important;
    }

    .nav-links-sub a span {
        transition: color 0.2s ease, text-shadow 0.2s ease !important;
    }
    
    .nav-links-sub a:hover i,
    .nav-links-sub a:focus i {
        transform: scale(1.12) !important;
    }

    /* 💎 Active Item: Seamless Inner Liquid Glass Pill (No clipping / No cutting) */
    .nav-links-sub a.active {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.14) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 16px !important;
        box-shadow: 
            0 2px 10px rgba(0, 0, 0, 0.2), 
            inset 0 1px 1.5px rgba(255, 255, 255, 0.45) !important;
        transform: none !important;
    }

    .nav-links-sub a.active i {
        transform: scale(1.14) !important;
        filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 2px 4px rgba(0,0,0,0.5)) !important;
    }

    .nav-links-sub a.active span {
        color: #ffffff !important;
        font-weight: 700 !important;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
    }

    .nav-links-sub a.active::after {
        display: none !important;
    }

    /* 🌊 Tactile Liquid Squish on Tap */
    .nav-links-sub a:active {
        transform: scale(0.9) !important;
        filter: brightness(1.2) !important;
        transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    .chat-badge-sub {
        top: 1px !important;
        right: 4px !important;
        font-size: 0.58rem !important;
        padding: 1px 4px !important;
        min-width: 14px !important;
        height: 14px !important;
    }
    
    /* Stats bar: sticky at the top, just below navbar */
    .user-stats-bar-sub {
        position: sticky !important;
        top: 56px !important; /* height of navbar */
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: 1px solid var(--border-glass) !important;
        background: rgba(10, 6, 12, 0.94) !important;
        z-index: 9999 !important;
        padding: 0.4rem 0 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
        gap: 6px !important;
        justify-content: center !important;
    }
    
    .user-stats-bar-sub span {
        font-size: 0.8rem !important;
    }
    .user-stats-bar-sub .btn-premium {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
    .user-stats-bar-sub .btn-outline {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    .hero h2 {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
    }
    .hero p {
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.2rem !important;
    }
    .hero {
        padding: 2rem 0.8rem !important;
    }
    .section-title {
        font-size: 1.6rem !important;
        margin: 2rem 0 1.2rem 0 !important;
    }
    .topup-layout {
        gap: 1.5rem !important;
    }
    .package-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }
    .package-card {
        padding: 1.2rem 1rem !important;
    }
    /* Prevent zoom on focus on mobile devices */
    input, select, textarea {
        font-size: 16px !important;
    }
    .chat-widget {
        display: none !important;
    }
    .chat-window {
        width: 100vw !important;
        max-width: none !important;
        height: calc(100vh - 75px) !important;
        height: calc(100dvh - 75px) !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -8px 30px rgba(0,0,0,0.7) !important;
        z-index: 10005 !important;
    }
    .chat-input {
        font-size: 16px !important;
    }
    
    .user-stats-bar-header {
        justify-content: center !important;
        gap: 10px !important;
        font-size: 0.72rem !important;
        flex-wrap: wrap !important;
    }
    
    /* Responsive 2-column layouts for Stats and Games */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }
    .stats-grid .glass-panel {
        padding: 1rem !important;
    }
    .stats-grid .glass-panel div:first-child {
        font-size: 0.85rem !important;
    }
    .stats-grid .glass-panel div:last-child {
        font-size: 1.4rem !important;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }
    .game-card .game-img {
        height: 100px !important;
    }
    .game-card .game-img img {
        width: 60px !important;
        height: 60px !important;
    }
    .game-card .game-info {
        padding: 0.7rem !important;
    }
    .game-card .game-info h3 {
        font-size: 0.95rem !important;
    }
    .game-card .game-info p {
        display: none !important;
    }
    .game-card .game-info > div:first-of-type {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    .game-card .game-info > div:first-of-type span {
        font-size: 0.68rem !important;
        padding: 2px 6px !important;
        white-space: nowrap !important;
    }
    .game-card .game-info > div:last-of-type {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
}

.wheel-mode-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 0.75rem 1.4rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(20, 10, 28, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}

.wheel-mode-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    pointer-events: none;
}

.wheel-mode-btn:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.wheel-mode-btn:active {
    transform: scale(0.95);
}

.wheel-mode-btn.mode-ticket {
    border-color: rgba(46, 204, 113, 0.35);
}

.wheel-mode-btn.mode-ticket i {
    color: #2ecc71;
}

.wheel-mode-btn.mode-ticket:hover {
    border-color: rgba(46, 204, 113, 0.6);
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.2) 0%, rgba(46, 204, 113, 0.05) 100%), rgba(10, 25, 20, 0.7);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

.wheel-mode-btn.mode-ticket.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.06) 45%, rgba(0, 0, 0, 0.1) 100%),
                linear-gradient(135deg, #2ecc71 0%, #10b981 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.9) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.55), 0 0 15px rgba(46, 204, 113, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
}

.wheel-mode-btn.mode-ticket.active i {
    color: #ffffff !important;
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.wheel-mode-btn.mode-money {
    border-color: rgba(255, 94, 132, 0.35);
}

.wheel-mode-btn.mode-money i {
    color: #ff5e84;
}

.wheel-mode-btn.mode-money:hover {
    border-color: rgba(255, 94, 132, 0.6);
    background: linear-gradient(180deg, rgba(255, 94, 132, 0.2) 0%, rgba(255, 94, 132, 0.05) 100%), rgba(35, 15, 30, 0.7);
    box-shadow: 0 6px 20px rgba(255, 94, 132, 0.3);
}

.wheel-mode-btn.mode-money.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(0, 0, 0, 0.12) 100%), 
                linear-gradient(135deg, #ff4071 0%, #e11d48 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    color: white !important;
    box-shadow: 0 8px 26px rgba(255, 64, 113, 0.6), 0 0 15px rgba(255, 215, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.85) !important;
    transform: translateY(-2px);
}

.wheel-mode-btn.mode-money.active i {
    color: #ffffff !important;
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

/* Animated Avatar Border Styles based on Rank Level */
.avatar-container {
    position: relative;
    padding: 2.5px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.rank-glow-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #78350F 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.rank-glow-silver {
    background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 50%, #E2E8F0 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.rank-glow-gold {
    background: linear-gradient(120deg, #F59E0B 0%, #FEF08A 35%, #D97706 70%, #F59E0B 100%);
    background-size: 300% 300%;
    animation: rankGlowAnim 6s ease-in-out infinite;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.rank-glow-platinum {
    background: linear-gradient(120deg, #06B6D4 0%, #E0F2FE 35%, #0891B2 70%, #06B6D4 100%);
    background-size: 300% 300%;
    animation: rankGlowAnim 6s ease-in-out infinite;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.rank-glow-diamond {
    background: linear-gradient(120deg, #3B82FF 0%, #93C5FD 35%, #1D4ED8 70%, #3B82FF 100%);
    background-size: 300% 300%;
    animation: rankGlowAnim 5.5s ease-in-out infinite;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.rank-glow-master {
    background: linear-gradient(120deg, #9B5CFF 0%, #F59E0B 35%, #EC4899 70%, #9B5CFF 100%);
    background-size: 300% 300%;
    animation: rankGlowAnim 5.5s ease-in-out infinite;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.rank-glow-owner {
    background: linear-gradient(120deg, #FFD700 0%, #FF2A6D 25%, #9B5CFF 50%, #05D9E8 75%, #FFD700 100%);
    background-size: 300% 300%;
    animation: rankGlowAnim 5s ease-in-out infinite;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@keyframes rankGlowAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Grand Chat Animation for Owner */
.msg.user.owner, .msg.other.owner {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 0, 0, 0.2), rgba(155, 92, 255, 0.2), rgba(255, 215, 0, 0.2)) !important;
    background-size: 300% auto !important;
    animation: ownerChatBg 5s linear infinite !important;
    border: 1px solid rgba(255, 215, 0, 0.6) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

.msg.user.owner::before, .msg.other.owner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 215, 0, 0.8), transparent 30%);
    animation: ownerChatSweep 2s linear infinite;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.msg.user.owner > *, .msg.other.owner > * {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

@keyframes ownerChatBg {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes ownerChatSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pink-star {
    position: fixed;
    color: #ff6b8b;
    text-shadow: 0 0 10px rgba(255, 107, 139, 0.9), 0 0 5px rgba(255, 107, 139, 0.5);
    font-size: 14px;
    animation: twinkle-glow 3.5s infinite ease-in-out;
    pointer-events: none;
    z-index: -8;
}

@keyframes twinkle-glow {
    0%, 100% { opacity: 0.15; transform: scale(0.7) rotate(0deg); }
    50% { opacity: 0.85; transform: scale(1.15) rotate(180deg); }
}

.swal-preview-img {
    max-height: 85vh !important;
    max-width: 100% !important;
    object-fit: contain;
    border-radius: 12px;
}

/* Broadcast Banner Luxury Premium Effects */
.broadcast-backdrop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.broadcast-backdrop-overlay.active {
    opacity: 1;
    visibility: visible;
}

.broadcast-banner {
    position: fixed;
    top: -120%;
    left: 50%;
    transform: translate(-50%, 0) scale(0.92);
    width: min(92vw, 540px);
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.98));
    border-radius: 24px;
    padding: 2px; /* Space for the glowing animated border */
    z-index: 9999999;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85), 
                0 0 35px rgba(255, 94, 132, 0.25),
                0 0 50px rgba(59, 130, 246, 0.2);
    transition: top 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease;
    overflow: hidden;
    opacity: 0;
}
.broadcast-banner.active {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.broadcast-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent 0deg,
        rgba(255, 94, 132, 0.8) 60deg,
        rgba(245, 158, 11, 0.9) 120deg,
        rgba(59, 130, 246, 0.85) 180deg,
        rgba(168, 85, 247, 0.8) 240deg,
        transparent 300deg
    );
    animation: rotate-sweep 4.5s linear infinite;
    z-index: 1;
}

.broadcast-inner {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 15, 29, 0.99) 100%);
    border-radius: 22px;
    padding: 28px 24px 24px 24px;
    z-index: 2;
    backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
}

.broadcast-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 94, 132, 0.12);
    color: #ff5e84;
    border: 1px solid rgba(255, 94, 132, 0.35);
    margin-bottom: 12px;
    box-shadow: 0 0 12px rgba(255, 94, 132, 0.2);
    animation: pulse 2.5s infinite ease-in-out;
}

.broadcast-subject {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.2px;
}

.broadcast-message {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #cbd5e1;
    white-space: pre-wrap;
    max-height: 42vh;
    overflow-y: auto;
    padding: 0 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.broadcast-message::-webkit-scrollbar {
    width: 5px;
}
.broadcast-message::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.broadcast-img-wrapper {
    margin-top: 18px;
    text-align: center;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    max-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}
.broadcast-img-wrapper img {
    max-height: 260px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.broadcast-img-wrapper:hover img {
    transform: scale(1.02);
}

.broadcast-btn-action {
    background: linear-gradient(135deg, #ff5e84 0%, #ff7b54 50%, #f59e0b 100%);
    color: #ffffff !important;
    border: none;
    padding: 13px 32px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 94, 132, 0.45), 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    position: relative;
    overflow: hidden;
}
.broadcast-btn-action::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(25deg);
    transition: none;
    animation: btn-sheen 3.5s infinite;
}
.broadcast-btn-action:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 94, 132, 0.6), 0 4px 10px rgba(0,0,0,0.3);
}
.broadcast-btn-action:active {
    transform: translateY(1px) scale(0.98);
}

@keyframes btn-sheen {
    0% { left: -60%; }
    20% { left: 140%; }
    100% { left: 140%; }
}

@keyframes rotate-sweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .broadcast-banner {
        width: 94vw;
        border-radius: 20px;
    }
    .broadcast-inner {
        padding: 20px 16px 18px 16px;
        border-radius: 18px;
    }
    .broadcast-subject {
        font-size: 1.15rem;
    }
    .broadcast-message {
        font-size: 0.88rem;
    }
    .broadcast-btn-action {
        padding: 11px 24px;
        font-size: 0.95rem;
    }
}

/* Glowing Luxury Reward Card Style */
.glowing-reward-card {
    border-color: rgba(241, 196, 15, 0.4) !important;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.1), inset 0 0 10px rgba(241, 196, 15, 0.05) !important;
    position: relative;
    overflow: visible !important;
    animation: luxuryGlowPulse 4s infinite alternate, packageCardReveal 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.1) both;
}

.glowing-reward-card:hover {
    border-color: #f1c40f !important;
    box-shadow: 0 10px 0 rgba(241, 196, 15, 0.25), 0 20px 40px rgba(241, 196, 15, 0.35) !important;
    transform: translateY(-8px) !important;
}

@keyframes luxuryGlowPulse {
    0% {
        box-shadow: 0 6px 0 rgba(241, 196, 15, 0.15), 0 0 10px rgba(241, 196, 15, 0.1);
    }
    100% {
        box-shadow: 0 6px 0 rgba(241, 196, 15, 0.25), 0 0 25px rgba(241, 196, 15, 0.35), inset 0 0 15px rgba(241, 196, 15, 0.15);
    }
}

.coin-badge-glow {
    position: absolute;
    top: -12px;
    right: 10px;
    background: linear-gradient(135deg, #ffe066 0%, #f1c40f 100%);
    color: #03050a;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.8);
    animation: badgeFloatGlow 2s infinite ease-in-out;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Prompt', sans-serif;
}

@keyframes badgeFloatGlow {
    0% {
        transform: translateY(0);
        box-shadow: 0 0 12px rgba(241, 196, 15, 0.7);
    }
    50% {
        transform: translateY(-4px);
        box-shadow: 0 0 20px rgba(241, 196, 15, 1);
    }
    100% {
        transform: translateY(0);
        box-shadow: 0 0 12px rgba(241, 196, 15, 0.7);
    }
}

/* Glowing Text and Shimmering Animations for Special Packages */
.glowing-reward-card .package-name {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 224, 102, 0.6), 0 0 20px rgba(241, 196, 15, 0.3) !important;
    font-weight: 800 !important;
}

.glowing-reward-card .package-price {
    background: linear-gradient(90deg, #ffe066, #f1c40f, #ffe066);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3s linear infinite;
    font-weight: 800 !important;
    text-shadow: 0 0 8px rgba(241, 196, 15, 0.3);
}

@keyframes textShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ========================================================= */
/* UNIVERSAL MOBILE RESPONSIVENESS & OVERFLOW FIXES (iOS & Android) */
/* ========================================================= */
@media (max-width: 768px) {
    /* 1. Prevent Horizontal Scroll Globally */
    html, body {
        overflow-x: clip !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative !important;
    }

    /* 2. Constrain Main Container */
    .container, .admin-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: clip !important;
    }

    /* 3. Force Tables to Scroll Horizontally (Admin & Customer) */
    table {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
        white-space: nowrap !important;
    }
    
    th, td {
        white-space: nowrap !important;
    }

    /* 4. Fix Modals and Panels overflow */
    .modal-content, .glass-panel, .gold-panel {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .wheel-container {
        width: min(310px, calc(100vw - 36px)) !important;
        height: min(310px, calc(100vw - 36px)) !important;
        max-width: 100% !important;
        margin: 1rem auto !important;
    }

    /* 5. Inputs, Textareas, Selects should never exceed screen */
    input, select, textarea {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 6. Break long text strings */
    * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Exceptions for elements that should not break word */
    th, td, .btn-premium, .btn-outline {
        word-wrap: normal !important;
        overflow-wrap: normal !important;
    }

    /* 7. Ensure grids don't overflow on very small devices */
    div[style*="minmax(280px"], div[style*="minmax(250px"], div[style*="minmax(200px"] {
        grid-template-columns: 1fr !important;
    }
}

/* Beautiful Universal Close Button styling */
.btn-close-pretty, .swal2-close {
    background: rgba(255, 71, 87, 0.15) !important;
    color: #ff4757 !important;
    border: 1px solid rgba(255, 71, 87, 0.4) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 1.2rem !important;
    padding: 0 !important;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.2) !important;
}

.swal2-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    font-family: inherit !important;
}

.btn-close-pretty:hover, .swal2-close:hover {
    background: #ff4757 !important;
    color: #fff !important;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.6) !important;
    border-color: transparent !important;
}

.btn-close-pretty:active, .swal2-close:active {
    transform: rotate(90deg) scale(0.9) !important;
}

/* Global Page Animation */
@keyframes pageFadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}
.container {
    animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Menu Click & Hover Animations */
.nav-links-sub a, .nav-links a {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.nav-links-sub a:hover, .nav-links a:hover {
    transform: translateY(-3px) scale(1.05);
}
.nav-links-sub a:active, .nav-links a:active {
    transform: translateY(2px) scale(0.95);
}

/* Button general animations */
.btn-primary, .btn-secondary, .btn-premium, .btn-outline {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.btn-primary:active, .btn-secondary:active, .btn-premium:active, .btn-outline:active {
    transform: scale(0.92) !important;
}


/* Helper class to hide bottom nav when keyboard is open on mobile */
.keyboard-open .sub-nav-bar {
    display: none !important;
}
.keyboard-open .chat-page-container {
    margin-bottom: 0 !important;
}

/* FORCE STICKY NAVBAR FOR ALL SCREENS */
.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
}

