@charset "utf-8";

/* =========================================
   Luxury Dark/Gold Theme (v4.0)
   Based on demo.html
   ========================================= */

:root {
    --bg-dark: #050505;
    --bg-card: #141414;
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa8a28 100%);
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-sub: #888888;
    --safe-area-bottom: env(safe-area-inset-bottom);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Global Reset Overrides */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }

body {
    background-color: var(--bg-dark) !important;
    background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #000000 100%) !important;
    color: var(--text-main) !important;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    padding-bottom: 80px;
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul, li { list-style: none; padding: 0; margin: 0; }

/* --- Header --- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; height: 50px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 15px; background: rgba(5, 5, 5, 0.95) !important; backdrop-filter: blur(20px);
    z-index: 1000; border-bottom: 1px solid var(--glass-border) !important;
}
.header h4 { font-size: 18px; font-weight: 800; color: var(--gold-primary) !important; letter-spacing: 1px; margin: 0; }
.header a { color: #fff; font-size: 20px; display: flex; align-items: center; }

/* --- Banner --- */
.banner {
    height: 160px;
    background: url('../images/banner_bg.jpg') center/cover; /* Placeholder */
    position: relative;
    margin-top: 50px;
}
/* Slider support */
.slide { margin-top: 50px; border-radius: 0 !important; border: none !important; }
.slide .bd li img { height: 160px; object-fit: cover; }

/* --- Balance Card --- */
.balance-card {
    margin: -30px 15px 20px; background: #1a1a1a; border-radius: 16px; padding: 20px;
    position: relative; border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10;
}
.balance-label { font-size: 12px; color: #888; }
.balance-num { font-size: 32px; font-weight: bold; font-family: "DIN Alternate", sans-serif; margin: 10px 0; color: #fff; }
.balance-actions { display: flex; gap: 10px; }
.btn {
    flex: 1; height: 40px; line-height: 40px; text-align: center; border-radius: 10px;
    font-size: 14px; font-weight: bold; cursor: pointer; border: none;
}
.btn-primary { background: var(--gold-gradient); color: #000 !important; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.btn-secondary { background: #333; color: #fff !important; border: 1px solid #555; }

/* --- Notice --- */
.notice-bar {
    margin: 0 15px 20px; background: rgba(255, 255, 255, 0.05); border-radius: 20px;
    height: 36px; display: flex; align-items: center; padding: 0 10px;
    font-size: 12px; color: var(--text-sub);
}
.notice-icon { color: var(--gold-primary); margin-right: 8px; font-size: 16px; }
.notice-bar marquee { flex: 1; }

/* --- Quick Actions --- */
.quick-actions { display: flex; justify-content: space-between; margin: 0 15px 20px; }
.q-item {
    background: #1f1f1f; width: 23%; padding: 15px 0; border-radius: 12px;
    text-align: center; border: 1px solid var(--glass-border); display: block;
}
.q-item i, .q-item img { font-size: 24px; color: var(--gold-primary); margin-bottom: 5px; height: 24px; display: block; margin: 0 auto 5px; }
.q-item div { font-size: 12px; color: var(--text-sub); }

/* --- Games Grid --- */
.section-title {
    margin: 0 15px 15px; font-weight: bold; border-left: 3px solid var(--gold-primary);
    padding-left: 10px; font-size: 16px; color: #fff;
}

.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 15px; }
.game-card {
    background: #1f1f1f; border-radius: 12px; padding: 20px 10px; text-align: center;
    border: 1px solid var(--glass-border); position: relative; overflow: hidden;
    display: block; min-height: 140px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.game-card img {
    width: 60px; height: 60px; margin-bottom: 10px; border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); border: 2px solid #333;
}
.game-card h4 { font-size: 15px; margin: 0 0 4px; color: #fff; font-weight: bold; }
.game-card p { font-size: 11px; color: var(--gold-primary); margin: 0; opacity: 0.8; }

/* --- Footer --- */
.footer-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 70px !important;
    background: rgba(10, 10, 10, 0.95) !important; backdrop-filter: blur(20px);
    display: flex; justify-content: space-around; align-items: center;
    border-top: 1px solid var(--glass-border) !important; z-index: 1000;
    padding-bottom: var(--safe-area-bottom);
}
.footer-nav li { flex: 1; }
.footer-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--text-sub); width: 100%; height: 100%;
}
.footer-nav i { font-size: 22px; margin-bottom: 4px; }
.footer-nav span { font-size: 10px; }
.footer-nav .active, .footer-nav a:hover { color: var(--gold-primary); }
.footer-nav .active i { transform: scale(1.1); text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }

/* --- Floating CS --- */
.cs-float {
    position: fixed; bottom: 100px; right: 20px; width: 50px; height: 50px;
    background: var(--gold-gradient); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(212,175,55,0.4);
    z-index: 900; animation: pulse 2s infinite;
}
.cs-float i { color: #000; font-size: 24px; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* --- Game Betting Interface --- */
.game-info {
    margin-top: 50px; padding: 15px; background: #111; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.issue-info { font-size: 12px; color: #888; }
.timer-box { font-family: "DIN Alternate", sans-serif; font-size: 20px; color: var(--text-main); font-weight: bold; }

.bet-tabs { display: flex; background: #1a1a1a; padding: 10px 15px; overflow-x: auto; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.b-tab { padding: 6px 15px; background: #333; border-radius: 20px; font-size: 12px; white-space: nowrap; color: #aaa; transition: all 0.2s; display: block; }
.b-tab.active { background: var(--gold-primary); color: #000; font-weight: bold; }

.bet-area { padding: 0 0 120px; }
.bet-group-title { font-size: 14px; margin-bottom: 15px; border-left: 3px solid var(--gold-primary); padding-left: 10px; color: #fff; margin-top: 20px; }

.number-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.num-btn {
    background: #252525; border-radius: 8px; padding: 10px 5px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; border: 1px solid #333; transition: all 0.2s;
    position: relative; overflow: hidden; cursor: pointer; min-height: 60px;
}
.num-val { font-size: 16px; font-weight: bold; margin-bottom: 2px; color: #eee; }
.num-odds { font-size: 10px; color: var(--gold-primary); }

.num-btn.selected {
    background: var(--gold-gradient); border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.num-btn.selected .num-val { color: #000; }
.num-btn.selected .num-odds { color: #222; font-weight: bold; }

/* Chips Bar */
.chips-bar {
    position: fixed; bottom: 60px; left: 0; width: 100%; height: 50px;
    background: rgba(20, 20, 20, 0.95); display: flex; align-items: center; padding: 0 10px; gap: 10px;
    overflow-x: auto; z-index: 1002; border-top: 1px solid rgba(255,255,255,0.1);
}
.chip {
    width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #444, #111);
    border: 2px dashed #666; display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: bold; color: #fff; flex-shrink: 0; cursor: pointer;
}
.chip.c10 { border-color: #2ed573; color: #2ed573; }
.chip.c50 { border-color: #38ada9; color: #38ada9; }
.chip.c100 { border-color: #ffa502; color: #ffa502; }
.chip.c500 { border-color: #ff4757; color: #ff4757; }
.chip.c1000 { border-color: var(--gold-primary); color: var(--gold-primary); }

/* Game Footer */
.game-footer {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
    background: #1a1a1a; display: flex; align-items: center; padding: 0 10px;
    border-top: 1px solid rgba(255,255,255,0.1); z-index: 1001;
    padding-bottom: var(--safe-area-bottom);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}
.gf-info { position: absolute; top: -30px; left: 0; width: 100%; text-align: center; background: rgba(0,0,0,0.8); padding: 5px 0; font-size: 12px; color: #ddd; opacity: 0; pointer-events: none; }
.gf-info.show { opacity: 1; }

.unit-toggle {
    display: flex; background: #000; border: 1px solid #333; border-radius: 4px; 
    margin-right: 10px; overflow: hidden;
}
.u-btn {
    padding: 0 8px; height: 36px; line-height: 36px; font-size: 12px; color: #666;
    cursor: pointer; border-right: 1px solid #222;
}
.u-btn:last-child { border-right: none; }
.u-btn.active { background: #333; color: var(--gold-primary); font-weight: bold; }

.gf-input {
    width: 70px; height: 36px; background: #000; border: 1px solid #333; border-radius: 4px;
    color: #fff; padding: 0 5px; font-size: 14px; text-align: center; margin-right: 5px;
}
.gf-btn {
    flex: 1; height: 36px; background: var(--gold-gradient); color: #000;
    border: none; border-radius: 4px; font-weight: bold; font-size: 14px;
    opacity: 0.5; pointer-events: none; white-space: nowrap;
}
.gf-btn.active { opacity: 1; pointer-events: auto; }
