/* ==========================================================================
   999V CASINO - EXACT 1:1 REPLICA DESIGN SYSTEM
   Extracted directly from 999V (https://d2u1rycusmk7r5.cloudfront.net/)
   Exact Color Palette, Button Styling, Typography & Layout Architecture
   ========================================================================== */

:root {
    /* Exact 999V Skin Variables */
    --skin__home_bg: #161616;
    --skin__bg_1: #212121;
    --skin__bg_2: #161616;
    --skin__filter_bg: #212121;
    --skin__border: #333333;
    --skin__border_hover: #484848;
    
    --skin__text_primary: #FFFFFF;
    --skin__text_secondary: #A4A4A4;
    --skin__neutral_2: #757575;
    --skin__neutral_3: #666666;
    
    /* 999V Signature Brand Colors */
    --skin__primary: #EB05F2; /* 999V Signature Neon Fuchsia / Magenta */
    --skin__primary_glow: rgba(235, 5, 242, 0.4);
    --skin__primary_gradient: linear-gradient(135deg, #FF3BF8 0%, #EB05F2 50%, #C609FF 100%);
    
    --skin__btn_gold: linear-gradient(135deg, #FFE066 0%, #FFAA09 50%, #E68500 100%);
    --skin__accent_gold: #FFAA09;
    --skin__accent_green: #04BE02;
    --skin__accent_red: #EA4E3D;
    
    --skin__btmnav_def: #757575;
    --skin__btmnav_active: #EB05F2;
    --skin__web_btmnav_db: #1E1E1E;
    
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    --header-height: 56px;
    --tabbar-height: 64px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--skin__home_bg);
    color: var(--skin__text_primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.app-container {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--skin__home_bg);
    position: relative;
    padding-bottom: calc(var(--tabbar-height) + 16px + var(--safe-bottom));
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
}

@media (min-width: 992px) {
    .app-container {
        max-width: 560px;
    }
}

/* ==========================================================================
   1. 999V OFFICIAL HEADER
   ========================================================================== */
.v999-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: #161616;
    border-bottom: 1px solid var(--skin__border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 100;
}

.v999-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.v999-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

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

/* 999V Balance Pill */
.v999-balance-box {
    display: flex;
    align-items: center;
    background: #212121;
    border: 1px solid var(--skin__border);
    border-radius: 20px;
    padding: 4px 10px;
    gap: 6px;
    cursor: pointer;
}

.v999-currency-tag {
    color: var(--skin__accent_gold);
    font-size: 11px;
    font-weight: 700;
}

.v999-balance-val {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
}

/* 999V Primary Deposit Button */
.v999-btn-deposit {
    background: var(--skin__primary_gradient);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 10px var(--skin__primary_glow);
    transition: transform 0.15s, opacity 0.15s;
}

.v999-btn-deposit:active {
    transform: scale(0.94);
    opacity: 0.9;
}

/* App Download Pill */
.v999-btn-app {
    background: #212121;
    border: 1px solid var(--skin__accent_green);
    color: var(--skin__accent_green);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* Avatar / Profile Icon */
.v999-avatar-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #212121;
    border: 1px solid var(--skin__border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

/* ==========================================================================
   2. HERO BANNER CAROUSEL
   ========================================================================== */
.v999-carousel-wrap {
    padding: 8px 12px 4px;
}

.v999-carousel {
    width: 100%;
    aspect-ratio: 1920 / 540;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #0d131c;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    border: 1px solid var(--skin__border);
}

.v999-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.v999-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.v999-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.v999-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.v999-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #484848;
    transition: all 0.25s;
    cursor: pointer;
}

.v999-dot.active {
    width: 16px;
    border-radius: 4px;
    background: var(--skin__primary);
}

/* ==========================================================================
   3. WINNER TICKER (MARQUEE)
   ========================================================================== */
.v999-ticker {
    margin: 6px 12px;
    background: #212121;
    border-radius: 8px;
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    overflow: hidden;
    gap: 8px;
    border: 1px solid var(--skin__border);
}

.v999-ticker-icon {
    font-size: 14px;
    color: var(--skin__primary);
    flex-shrink: 0;
}

.v999-ticker-track {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: v999-scroll 24s linear infinite;
    font-size: 11px;
    color: var(--skin__text_secondary);
}

.v999-ticker-track span {
    margin-right: 28px;
}

.v999-ticker-win {
    color: var(--skin__accent_gold);
    font-weight: 700;
}

@keyframes v999-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   4. QUICK SHORTCUTS (DEPOSIT, WITHDRAW, VIP, PROMOTIONS)
   ========================================================================== */
.v999-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 6px 12px;
}

.v999-shortcut-card {
    background: #212121;
    border: 1px solid var(--skin__border);
    border-radius: 10px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    position: relative;
}

.v999-shortcut-card:active {
    transform: scale(0.95);
    border-color: var(--skin__primary);
}

.v999-shortcut-icon {
    font-size: 22px;
    margin-bottom: 3px;
}

.v999-shortcut-label {
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
}

.v999-badge-hot {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--skin__accent_red);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 8px;
}

/* ==========================================================================
   5. 999V TOTAL JACKPOT POOL DISPLAY
   ========================================================================== */
.v999-jackpot-banner {
    margin: 6px 12px;
    background: linear-gradient(90deg, #251229 0%, #1a1622 50%, #291225 100%);
    border: 1px solid rgba(235, 5, 242, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 16px rgba(235, 5, 242, 0.15);
}

.v999-jackpot-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--skin__accent_gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v999-jackpot-amount {
    font-size: 17px;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    font-family: monospace, sans-serif;
}

/* ==========================================================================
   6. 999V CATEGORY TABS (STICKY)
   ========================================================================== */
.v999-category-nav {
    position: sticky;
    top: var(--header-height);
    background: #161616;
    padding: 8px 12px;
    z-index: 90;
    border-bottom: 1px solid var(--skin__border);
}

.v999-tabs-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.v999-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.v999-tab {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: #212121;
    border: 1px solid var(--skin__border);
    border-radius: 20px;
    color: var(--skin__neutral_2);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.v999-tab.active {
    background: var(--skin__primary_gradient);
    color: #FFFFFF;
    border-color: #FF3BF8;
    box-shadow: 0 2px 10px var(--skin__primary_glow);
}

/* Search Bar */
.v999-search-bar {
    padding: 6px 12px 2px;
    display: flex;
    gap: 8px;
}

.v999-search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.v999-search-icon {
    position: absolute;
    left: 10px;
    color: var(--skin__neutral_2);
    font-size: 13px;
}

.v999-search-input {
    width: 100%;
    height: 36px;
    background: #212121;
    border: 1px solid var(--skin__border);
    border-radius: 8px;
    padding: 0 10px 0 32px;
    color: #fff;
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.v999-search-input:focus {
    border-color: var(--skin__primary);
}

.v999-games-badge {
    background: #212121;
    border: 1px solid var(--skin__border);
    border-radius: 8px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--skin__accent_gold);
}

/* ==========================================================================
   7. 999V GAMES GRID
   ========================================================================== */
.v999-games-container {
    padding: 8px 12px 20px;
}

.v999-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (min-width: 480px) {
    .v999-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.v999-game-card {
    background: #212121;
    border: 1px solid var(--skin__border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}

.v999-game-card:hover {
    transform: translateY(-2px);
    border-color: var(--skin__primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.6), 0 0 10px var(--skin__primary_glow);
}

.v999-thumb-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.v999-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s;
}

.v999-game-card:hover .v999-thumb-img {
    transform: scale(1.06);
}

.v999-prov-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
}

.v999-hot-tag {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--skin__accent_red);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 3px;
}

.v999-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.v999-game-card:hover .v999-play-overlay {
    opacity: 1;
}

.v999-play-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--skin__primary_gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 0 12px var(--skin__primary_glow);
}

.v999-card-info {
    padding: 5px 6px 6px;
    background: #212121;
}

.v999-card-title {
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v999-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    font-size: 9px;
}

.v999-card-rtp {
    color: var(--skin__accent_green);
    font-weight: 700;
}

/* ==========================================================================
   8. 999V BOTTOM NAVIGATION BAR (DOCK)
   ========================================================================== */
.v999-tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    height: calc(var(--tabbar-height) + var(--safe-bottom));
    background-color: var(--skin__web_btmnav_db);
    border-top: 1px solid var(--skin__border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding-bottom: var(--safe-bottom);
    z-index: 200;
}

@media (min-width: 992px) {
    .v999-tabbar {
        max-width: 560px;
    }
}

.v999-tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--skin__btmnav_def);
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.15s, transform 0.15s;
    position: relative;
}

.v999-tabbar-item:active {
    transform: scale(0.92);
}

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

.v999-tabbar-text {
    font-size: 10px;
    font-weight: 700;
}

.v999-tabbar-item.active {
    color: var(--skin__btmnav_active);
}

/* 999V Central Floating Action Button */
.v999-tabbar-item.center-action {
    margin-top: -22px;
}

.v999-center-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--skin__primary_gradient);
    box-shadow: 0 4px 14px var(--skin__primary_glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--skin__home_bg);
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.15s;
}

.v999-center-btn:active {
    transform: scale(0.9);
}

.v999-center-btn .icon {
    font-size: 18px;
    line-height: 1;
}

.v999-center-btn .text {
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

/* Floating Actions (WhatsApp & Wheel) */
.v999-floating-box {
    position: fixed;
    right: 12px;
    bottom: calc(var(--tabbar-height) + 12px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 150;
}

.v999-float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    border: none;
    transition: transform 0.15s;
}

.v999-float-btn:active {
    transform: scale(0.9);
}

.v999-btn-wa {
    background: #25d366;
    color: #fff;
}

.v999-btn-spin {
    background: var(--skin__primary_gradient);
    color: #fff;
    box-shadow: 0 0 14px var(--skin__primary_glow);
}

/* ==========================================================================
   9. MODALS & POPUPS
   ========================================================================== */
.v999-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

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

.v999-modal-sheet {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    background: #1e1e1e;
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--skin__border);
    overflow-y: auto;
    padding: 18px 16px calc(20px + var(--safe-bottom));
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.v999-modal-overlay.active .v999-modal-sheet {
    transform: translateY(0);
}

.v999-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--skin__border);
}

.v999-modal-title {
    font-size: 15px;
    font-weight: 800;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 6px;
}

.v999-btn-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 1px solid var(--skin__border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

/* Payment Selector */
.v999-pay-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.v999-pay-card {
    background: #2a2a2a;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.v999-pay-card.selected {
    border-color: var(--skin__primary);
    background: rgba(235, 5, 242, 0.12);
}

.v999-pay-logo {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    color: #fff;
}

.ep-bg { background: #00aa4f; }
.jc-bg { background: #eb1c24; }
.usdt-bg { background: #26a17b; }
.bank-bg { background: #1e3a8a; }

.v999-pay-info h4 {
    font-size: 12px;
    font-weight: 700;
}

.v999-pay-info p {
    font-size: 9px;
    color: var(--skin__text_secondary);
}

/* Forms */
.v999-field {
    margin-bottom: 12px;
}

.v999-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--skin__text_secondary);
    margin-bottom: 5px;
}

.v999-input {
    width: 100%;
    height: 40px;
    background: #2a2a2a;
    border: 1px solid var(--skin__border);
    border-radius: 8px;
    padding: 0 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}

.v999-input:focus {
    border-color: var(--skin__primary);
}

.v999-pills {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.v999-pill {
    padding: 5px 12px;
    border-radius: 16px;
    background: #2a2a2a;
    border: 1px solid var(--skin__border);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.v999-pill.active {
    background: var(--skin__primary_gradient);
    border-color: #FF3BF8;
}

.v999-btn-submit {
    width: 100%;
    height: 44px;
    background: var(--skin__primary_gradient);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 3px 12px var(--skin__primary_glow);
    margin-top: 8px;
}

/* Fullscreen Game Launcher */
.v999-game-modal {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 5000;
    display: none;
    flex-direction: column;
}

.v999-game-modal.active {
    display: flex;
}

.v999-game-header {
    height: 44px;
    background: #161616;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid var(--skin__border);
}

.v999-game-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.v999-game-ctrls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.v999-ctrl-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #2a2a2a;
    border: 1px solid var(--skin__border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.v999-game-iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Toast */
.v999-toast {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(33, 33, 33, 0.95);
    border: 1px solid var(--skin__primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s;
    z-index: 9999;
}

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

/* =========================================================================
   17. 999V ENTERPRISE CASINO FOOTER
   ========================================================================= */
.v999-footer {
    background: #111111;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 36px 16px 100px 16px;
    margin-top: 40px;
    color: #8e8e93;
    font-size: 12px;
    line-height: 1.6;
}

.v999-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.v999-footer-brand-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.v999-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v999-footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.v999-footer-brand-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
}

.v999-footer-bio {
    font-size: 12px;
    color: #888888;
    max-width: 720px;
}

.v999-footer-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.v999-feature-box {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.v999-feature-icon {
    font-size: 22px;
}

.v999-feature-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.v999-feature-desc {
    font-size: 11px;
    color: #777;
}

.v999-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .v999-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .v999-footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.v999-footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 6px;
}

.v999-footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: #EB05F2;
    border-radius: 2px;
}

.v999-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v999-footer-links a,
.v999-footer-links button {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.v999-footer-links a:hover,
.v999-footer-links button:hover {
    color: #EB05F2;
}

.v999-footer-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin: 20px 0 10px 0;
    text-align: center;
}

.v999-badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.v999-partner-badge {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.v999-partner-badge:hover {
    border-color: #EB05F2;
    color: #fff;
    transform: translateY(-2px);
}

.v999-partner-badge.ep { border-left: 3px solid #00A651; }
.v999-partner-badge.jc { border-left: 3px solid #D81A28; }
.v999-partner-badge.usdt { border-left: 3px solid #26A17B; }
.v999-partner-badge.bank { border-left: 3px solid #00509E; }

.v999-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.v999-responsible-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(235, 5, 242, 0.1);
    border: 1px solid rgba(235, 5, 242, 0.3);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.v999-copyright {
    font-size: 11px;
    color: #666;
}

/* =========================================================================
   18. EXACT 999V FRONT PAGE LAYOUT & STYLING
   ========================================================================= */

/* Top Dismissible Download Bar */
.v999-top-app-bar {
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    font-size: 11px;
    position: relative;
    z-index: 101;
}

.v999-top-app-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v999-top-app-close {
    background: none;
    border: none;
    color: #EB05F2;
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
    font-weight: 700;
}

.v999-top-app-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    object-fit: cover;
}

.v999-top-app-text {
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
}

.v999-top-app-text .highlight {
    color: #EB05F2;
    font-weight: 800;
}

.v999-top-download-btn {
    background: #EB05F2;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(235, 5, 242, 0.5);
    white-space: nowrap;
}

/* Main Header Overhaul to Match 999V */
.v999-header {
    height: 52px !important;
    background: #0a0a0a !important;
    padding: 0 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.v999-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v999-drawer-btn {
    position: relative;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.v999-drawer-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #FF3B30;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    border-radius: 8px;
    padding: 1px 4px;
    min-width: 13px;
    text-align: center;
    line-height: 1.2;
}

.v999-brand-text {
    font-style: italic;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(235, 5, 242, 0.6);
}

.v999-brand-text span {
    color: #EB05F2;
}

/* 999V Oval Balance Pill */
.v999-balance-pill {
    display: flex;
    align-items: center;
    background: #111111;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 18px;
    padding: 3px 8px;
    gap: 5px;
    cursor: pointer;
}

.v999-flag-icon {
    font-size: 14px;
    line-height: 1;
}

.v999-balance-pill .v999-balance-val {
    color: #FFD700;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.v999-balance-refresh {
    color: #EB05F2;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.3s;
}

.v999-balance-refresh:active {
    transform: rotate(180deg);
}

/* 999V Deposit Button with +5% Tag */
.v999-deposit-btn-wrap {
    position: relative;
    display: inline-flex;
}

.v999-deposit-btn {
    background: linear-gradient(135deg, #FF1493 0%, #EB05F2 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(235, 5, 242, 0.6);
}

.v999-deposit-tag {
    position: absolute;
    top: -6px;
    right: -4px;
    background: linear-gradient(135deg, #FF3B30 0%, #FF9500 100%);
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* Sub-Header Wallet Bonus Marquee Bar */
.v999-wallet-bar {
    background: #111111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 11px;
    color: #cccccc;
    gap: 6px;
}

.v999-wallet-tag {
    background: #222222;
    border: 1px solid #444444;
    color: #888888;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 3px;
    line-height: 1;
}

.v999-wallet-text {
    flex: 1;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v999-wallet-text strong {
    color: #FFD700;
}

.v999-wallet-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.v999-wallet-link-btn {
    background: #EB05F2;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.v999-wallet-refresh {
    color: #EB05F2;
    background: none;
    border: none;
    font-size: 13px;
    cursor: pointer;
    padding: 0 2px;
}

/* Announcement Bar with Speaker and Mailbox */
.v999-announcement-bar {
    display: flex;
    align-items: center;
    background: #121212;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 6px 10px;
    gap: 8px;
}

.v999-announcement-speaker {
    font-size: 14px;
    color: #EB05F2;
}

.v999-announcement-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    font-size: 11px;
    color: #cccccc;
}

.v999-announcement-track {
    display: inline-block;
    animation: v999Marquee 25s linear infinite;
}

.v999-mailbox-wrap {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.v999-mailbox-icon {
    font-size: 16px;
    color: #aaaaaa;
}

.v999-mailbox-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #FF3B30;
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
    border-radius: 8px;
    padding: 1px 3px;
    line-height: 1;
}

/* 5 High-Profile Badges Row */
.v999-vip-badges-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 10px 10px 6px 10px;
    background: #0d0d0d;
}

.v999-vip-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s;
}

.v999-vip-badge-item:hover {
    transform: translateY(-2px);
}

.v999-vip-badge-thumb {
    width: 100%;
    max-width: 58px;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v999-vip-badge-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v999-vip-badge-label {
    margin-top: 3px;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.label-pink { background: rgba(235, 5, 242, 0.3); color: #EB05F2; }
.label-green { background: rgba(0, 200, 83, 0.3); color: #00E676; }
.label-gold { background: rgba(255, 215, 0, 0.3); color: #FFD700; }
.label-blue { background: rgba(41, 121, 255, 0.3); color: #2979FF; }
.label-cyan { background: rgba(0, 229, 255, 0.3); color: #00E5FF; }
