/* File: assets/css/style.css */
:root {
    --bg-dark: #0a0a0c;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    --glass-bg: rgba(18, 18, 20, 0.85);
    --glass-border: rgba(212, 175, 55, 0.2);
    
    /* Màu Độ Hiếm */
    --rarity-thuong: #9ca3af;
    --rarity-hiem: #3b82f6;
    --rarity-suthi: #a855f7;
}

body { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: var(--text-main); min-height: 100vh; overflow-x: hidden; }

/* Nền khói sương mờ */
.bg-shape { position: fixed; filter: blur(120px); z-index: -1; opacity: 0.3; animation: float 15s infinite ease-in-out; }
.shape-1 { width: 50vw; height: 50vw; background: #b45309; top: -10vw; left: -10vw; border-radius: 50%; }
.shape-2 { width: 40vw; height: 40vw; background: #0f766e; bottom: -5vw; right: -5vw; border-radius: 50%; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 30px); } }

.app-container { width: 100%; max-width: 900px; padding: 20px; margin: 0 auto; box-sizing: border-box; }

.header { text-align: center; margin-bottom: 25px; padding-top: 20px; }
.header h1 { margin: 0; font-size: 32px; font-weight: 800; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 0 15px var(--gold-glow); }
.header p { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 4px; margin-top: 5px; }

/* Auth Panel Nhỏ gọn góc phải */
.auth-panel { display: flex; justify-content: center; gap: 10px; margin-bottom: 25px; }
.btn-google { background: white; color: #000; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: bold; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.user-badge { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); padding: 5px 15px 5px 5px; border-radius: 30px; border: 1px solid var(--glass-border); }
.user-badge img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); }
.user-badge span { font-size: 13px; font-weight: bold; color: var(--gold); }

/* BỘ LỌC TABS GIAO DIỆN GAME */
.filter-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.tab-btn.active { background: linear-gradient(180deg, rgba(212,175,55,0.2) 0%, rgba(0,0,0,0.8) 100%); border-color: var(--gold); color: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }

.glass-panel { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); margin-bottom: 20px; }

/* Form Control */
.form-group { display: flex; align-items: center; background: #000; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 5px; margin-bottom: 20px; }
.form-group span { color: var(--gold); padding: 0 15px; font-weight: bold; }
.form-control { flex: 1; min-width: 0; background: transparent; border: none; color: white; font-size: 18px; padding: 10px; outline: none; }

.btn-gradient { width: 100%; padding: 18px; border: none; border-radius: 8px; font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.3s; background: linear-gradient(90deg, #b48608, #fbf5b7, #b48608); color: #000; box-shadow: 0 0 20px var(--gold-glow); }
.btn-gradient:hover { filter: brightness(1.2); }

/* BĂNG CHUYỀN GACHA */
.gacha-window { height: 200px; border: 2px solid var(--gold); position: relative; overflow: hidden; background: #050505; border-radius: 8px; box-shadow: inset 0 0 40px rgba(0,0,0,0.9); margin-bottom: 20px; }
.target-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: linear-gradient(180deg, transparent, #fff, transparent); transform: translateX(-50%); z-index: 10; box-shadow: 0 0 15px #fff; }
.gacha-track { display: flex; height: 100%; width: max-content; }

/* THẺ BÀI ĐỘ HIẾM */
.gacha-item { width: 160px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; box-sizing: border-box; background: #111; border-right: 1px solid #333; position: relative; flex-shrink: 0; }
.gacha-item::before { content: attr(data-rarity); position: absolute; top: 5px; left: 5px; font-size: 10px; font-weight: 800; padding: 2px 5px; border-radius: 3px; background: rgba(0,0,0,0.8); }
.gacha-item.thuong { border-top: 3px solid var(--rarity-thuong); } .gacha-item.thuong::before { color: var(--rarity-thuong); border: 1px solid var(--rarity-thuong); }
.gacha-item.hiem { border-top: 3px solid var(--rarity-hiem); background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, #111 70%); } .gacha-item.hiem::before { color: var(--rarity-hiem); border: 1px solid var(--rarity-hiem); }
.gacha-item.suthi { border-top: 3px solid var(--rarity-suthi); background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, #111 70%); } .gacha-item.suthi::before { color: var(--rarity-suthi); border: 1px solid var(--rarity-suthi); }

.gacha-item img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 2px solid rgba(255,255,255,0.2); }
.gacha-item .name { font-size: 14px; font-weight: bold; text-align: center; color: #fff; width: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* MODAL KẾT QUẢ VIP */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.5s; }
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content { background: #121212; border: 1px solid var(--gold); border-radius: 12px; width: 90%; max-width: 450px; padding: 30px; text-align: center; box-shadow: 0 0 50px rgba(0,0,0,0.8), 0 0 15px var(--gold-glow); position: relative; transform: scale(0.8); transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.active .modal-content { transform: scale(1); }

.m-title { font-size: 12px; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.m-name { font-size: 32px; font-weight: 800; color: #fff; margin: 0 0 10px; font-family: serif; }
.m-price { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.m-img-wrapper { position: relative; width: 180px; height: 180px; margin: 0 auto 30px; }
.m-img-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); box-shadow: 0 0 20px rgba(0,0,0,0.8); position: relative; z-index: 2; }
.m-img-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 220px; height: 220px; background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%); z-index: 1; animation: spin 4s linear infinite; }

/* APP BUTTONS */
.app-links { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.app-btn { background: #222; border: 1px solid #444; border-radius: 6px; padding: 12px 5px; color: #fff; text-decoration: none; font-size: 12px; font-weight: bold; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: 0.2s; }
.app-btn:hover { background: #333; }
.app-btn img { width: 24px; height: 24px; }
.btn-continue { width: 100%; background: linear-gradient(90deg, #b48608, #fbf5b7, #b48608); color: #000; font-weight: 800; padding: 15px; border: none; border-radius: 6px; cursor: pointer; letter-spacing: 2px; }

/* GRID KHO PHẦN THƯỞNG */
.pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-top: 20px; }
.pool-card { background: #111; border: 1px solid #333; border-radius: 10px; padding: 15px; text-align: center; position: relative; transition: 0.3s; }
.pool-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.pool-card::before { content: attr(data-rarity); position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 4px; background: rgba(0,0,0,0.8); z-index: 2; }
.pool-card.thuong { border-top: 3px solid var(--rarity-thuong); } .pool-card.thuong::before { color: var(--rarity-thuong); border: 1px solid var(--rarity-thuong); }
.pool-card.hiem { border-top: 3px solid var(--rarity-hiem); background: radial-gradient(circle at top, rgba(59,130,246,0.1) 0%, #111 60%); } .pool-card.hiem::before { color: var(--rarity-hiem); border: 1px solid var(--rarity-hiem); }
.pool-card.suthi { border-top: 3px solid var(--rarity-suthi); background: radial-gradient(circle at top, rgba(168,85,247,0.15) 0%, #111 60%); } .pool-card.suthi::before { color: var(--rarity-suthi); border: 1px solid var(--rarity-suthi); }

.pool-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); margin-bottom: 12px; transition: 0.3s; }
.pool-card:hover img { border-color: var(--gold); box-shadow: 0 0 15px var(--gold-glow); }
.pool-card-info h4 { margin: 0 0 5px; font-size: 15px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-card-info .price { margin: 0 0 5px; font-size: 13px; color: #4ade80; font-weight: bold; }
.pool-card-info .loc { margin: 0; font-size: 12px; color: var(--text-muted); }

/* VIP PAGINATION */
.vip-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.vip-pagination a, .vip-pagination span { padding: 8px 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 600; transition: 0.3s; background: rgba(0,0,0,0.5); }
.vip-pagination a:hover { background: rgba(212,175,55,0.1); color: var(--gold); border-color: var(--gold); }
.vip-pagination .active { background: linear-gradient(180deg, #b48608, #604604); color: #fff; border-color: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }

.error-msg { color: #ef4444; text-align: center; margin-top: 15px; font-weight: bold; }