/* ============================================
   GOLD SLOT - Dark Luxury Gaming Theme
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1e1e2a;
    --bg-input: #0d0d14;
    --gold: #f5c518;
    --gold-dark: #c49a10;
    --gold-light: #ffe066;
    --gold-glow: rgba(245, 197, 24, 0.3);
    --green: #00d26a;
    --green-dark: #00a855;
    --red: #ff4757;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #55556a;
    --border: #2a2a3a;
    --border-gold: rgba(245, 197, 24, 0.3);
    --shadow: 0 4px 20px rgba(0,0,0,0.5);
    --shadow-gold: 0 0 30px rgba(245, 197, 24, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === HEADER / NAVBAR === */
.navbar {
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--gold-glow);
}
.nav-logo span { color: var(--text-primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
    background: rgba(245,197,24,0.08);
}
.nav-links a.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000 !important;
    font-weight: 700;
}
.nav-links a.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 4px 15px var(--gold-glow);
}

.nav-balance {
    display: flex;
    align-items: center;
    gap: 12px;
}
.balance-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}
.balance-chip small {
    color: var(--text-secondary);
    font-weight: 400;
    margin-right: 4px;
}

/* === PAGE HEADER === */
.page-header {
    text-align: center;
    padding: 40px 20px 30px;
}
.page-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 8px;
    text-shadow: 0 0 30px var(--gold-glow);
}
.page-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* === CARDS === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gold);
    border-radius: 2px;
}

/* === FORMS === */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245,197,24,0.1);
}
.form-control::placeholder { color: var(--text-muted); }

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.input-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.btn-block { width: 100%; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 4px 20px var(--gold-glow);
    transform: translateY(-1px);
}

.btn-green {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
}
.btn-green:hover {
    box-shadow: 0 4px 20px rgba(0,210,106,0.3);
    transform: translateY(-1px);
}

.btn-red {
    background: linear-gradient(135deg, var(--red), #cc3344);
    color: #fff;
}
.btn-red:hover {
    box-shadow: 0 4px 20px rgba(255,71,87,0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* === ALERTS === */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: rgba(0,210,106,0.12); border: 1px solid rgba(0,210,106,0.3); color: var(--green); }
.alert-error { background: rgba(255,71,87,0.12); border: 1px solid rgba(255,71,87,0.3); color: var(--red); }
.alert-warning { background: rgba(245,197,24,0.12); border: 1px solid rgba(245,197,24,0.3); color: var(--gold); }
.alert-info { background: rgba(100,150,255,0.12); border: 1px solid rgba(100,150,255,0.3); color: #80b0ff; }

/* === TABLES === */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(42,42,58,0.5);
}
tr:hover td { background: rgba(245,197,24,0.03); }
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-pending { background: rgba(245,197,24,0.15); color: var(--gold); }
.status-approved, .status-completed { background: rgba(0,210,106,0.15); color: var(--green); }
.status-rejected, .status-cancelled { background: rgba(255,71,87,0.15); color: var(--red); }

/* === AUTH PAGES === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(245,197,24,0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(245,197,24,0.03) 0%, transparent 60%),
        var(--bg-primary);
    padding: 20px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow), var(--shadow-gold);
}
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 3px;
    text-shadow: 0 0 30px var(--gold-glow);
}
.auth-logo p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}
.auth-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin: 20px 0;
}
.auth-divider a { color: var(--gold); text-decoration: none; }
.auth-divider a:hover { text-decoration: underline; }

/* === DASHBOARD === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.stat-card.balance::before { background: linear-gradient(90deg, var(--gold), transparent); }
.stat-card.deposit::before { background: linear-gradient(90deg, var(--green), transparent); }
.stat-card.withdraw::before { background: linear-gradient(90deg, var(--red), transparent); }

.stat-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
}
.stat-card.deposit .stat-value { color: var(--green); text-shadow: 0 0 20px rgba(0,210,106,0.3); }
.stat-card.withdraw .stat-value { color: var(--text-primary); }

/* === GAME GRID === */
.providers-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.provider-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.provider-btn:hover, .provider-btn.active {
    background: rgba(245,197,24,0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.game-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px var(--gold-glow);
}
.game-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--bg-secondary);
    display: block;
}
.game-info { padding: 12px; }
.game-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-provider {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.game-play-btn {
    margin: 12px;
    padding: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: calc(100% - 24px);
    text-align: center;
    transition: all 0.2s;
}
.game-play-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 4px 15px var(--gold-glow);
}

/* === WALLET === */
.wallet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}
.quick-amounts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.quick-amt {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.quick-amt:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* === GAME LAUNCH === */
.game-frame-wrap {
    position: relative;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 600px;
}
.game-frame {
    width: 100%;
    height: 700px;
    border: none;
    display: block;
}
.game-frame-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    gap: 16px;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === FOOTER === */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

/* === MISC === */
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 32px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* === TABS === */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    gap: 4px;
}
.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .navbar .container { flex-wrap: wrap; height: auto; padding: 12px 20px; }
    .nav-links { gap: 4px; }
    .nav-links a { padding: 6px 10px; font-size: 13px; }
    .wallet-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .auth-card { padding: 28px 20px; }
}
@media (max-width: 480px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .game-grid { grid-template-columns: repeat(2, 1fr); }
}
