/* style.css - FULL CODE */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --bg-color: #0f1215; 
    --card-bg: #1c2127;
    --primary: #d4af37; /* Vàng Gold */
    --accent: #00ffcc;  /* Xanh Neon */
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --danger: #ff4d4d;
    --success: #00e676;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; transition: 0.3s; }

/* --- HEADER STYLES --- */
.main-header {
    background-color: #000;
    border-bottom: 2px solid var(--primary);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo a {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

/* Khu vực chức năng trên Header (MỚI) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
}

/* Nút Nạp tiền trên Header */
.btn-header-deposit {
    background: var(--success);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #00c853;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.btn-header-deposit:hover { background: #00e676; box-shadow: 0 0 10px var(--success); }

/* Nút Mua VIP trên Header */
.btn-header-vip {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: black;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #FFD700;
    cursor: pointer;
    animation: pulse 2s infinite; /* Hiệu ứng nhấp nháy */
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-header-vip:hover { box-shadow: 0 0 15px #FFD700; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid #333;
    padding-left: 15px;
}

.u-name { display: block; color: var(--primary); font-weight: bold; font-size: 13px; text-align: right; }
.u-bal { display: block; color: var(--accent); font-weight: bold; font-size: 15px; text-align: right; }

.btn-mini {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    border: none;
    cursor: pointer;
}

/* --- CONTENT STYLES --- */
.container {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
    flex: 1;
    box-sizing: border-box;
}

.card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    margin-bottom: 20px;
}

h2, h3 { color: var(--primary); text-transform: uppercase; text-align: center; margin-top: 0; }

/* Form Elements */
input {
    width: 100%; padding: 12px; margin: 10px 0;
    background: #0a0c0e; border: 1px solid #333; color: #fff;
    border-radius: 5px; box-sizing: border-box;
}

button.btn-gold {
    width: 100%; padding: 12px;
    background: linear-gradient(45deg, #d4af37, #f2d06b);
    border: none; color: #000; font-weight: bold;
    border-radius: 5px; cursor: pointer; margin-top: 10px;
}

/* Game Grid */
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.game-item {
    background: #252b33; padding: 15px;
    border-radius: 8px; border: 1px solid #444;
    text-align: center; position: relative; transition: 0.3s;
}
.game-item:hover { transform: translateY(-5px); border-color: var(--primary); }

.badge-vip {
    position: absolute; top: -8px; right: -8px;
    background: red; color: white; font-size: 10px;
    padding: 4px 8px; border-radius: 10px; font-weight: bold;
    box-shadow: 0 0 5px red;
}

.btn-play {
    width: 100%; padding: 10px;
    background: var(--success); color: white; border: none;
    border-radius: 5px; cursor: pointer; font-weight: bold; margin-top: 10px;
}
.btn-buy {
    width: 100%; padding: 10px;
    background: transparent; border: 1px solid var(--primary); color: var(--primary);
    border-radius: 5px; cursor: pointer; font-weight: bold; margin-top: 10px;
}

/* Dice Game */
.dice-box { display: flex; justify-content: center; gap: 20px; margin: 20px 0; }
.dice {
    width: 60px; height: 60px; background: white; color: black;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: bold;
}

/* Footer */
.main-footer {
    text-align: center; padding: 20px;
    background: #050505; border-top: 1px solid #333;
    color: #666; font-size: 13px; margin-top: auto;
}