/* ============ BIẾN MÀU SẮC ============ */
:root {
    --bg-main: #06040a;
    --bg-card: rgba(25, 20, 40, 0.6);
    --border-color: rgba(139, 92, 246, 0.2);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --glow: 0 0 20px rgba(139, 92, 246, 0.5);
}

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

.bg-glow { position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; opacity: 0.4; pointer-events: none; }
.glow-1 { width: 400px; height: 400px; background: var(--accent-purple); top: -100px; left: -100px; }
.glow-2 { width: 300px; height: 300px; background: var(--accent-pink); bottom: -50px; right: -50px; }

.container { max-width: 900px; margin: 0 auto; padding: 20px; }

.login-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 24px; padding: 30px; width: 100%; max-width: 400px; backdrop-filter: blur(20px); box-shadow: var(--glow); }
.btn-main { width: 100%; padding: 16px; border-radius: 12px; border: none; background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink)); color: white; font-size: 16px; font-weight: 700; cursor: pointer; margin-bottom: 10px; transition: 0.3s; }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3); }
.divider { display: flex; align-items: center; color: var(--text-muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.divider span { margin: 0 15px; }
.input-group { display: flex; gap: 10px; margin-bottom: 10px; }
.input-group input { flex: 1; padding: 14px; border-radius: 12px; border: 1px solid var(--border-color); background: rgba(0,0,0,0.3); color: white; font-size: 14px; outline: none; transition: 0.2s; }
.input-group input:focus { border-color: var(--accent-purple); }
.btn-sub { padding: 14px 20px; border-radius: 12px; border: 1px solid var(--border-color); background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); font-weight: 600; cursor: pointer; white-space: nowrap; transition: 0.2s; }
.btn-sub:hover { background: var(--accent-purple); color: white; }
.login-input { width: 100%; padding: 14px; margin-bottom: 12px; border-radius: 12px; border: 1px solid var(--border-color); background: rgba(0,0,0,0.3); color: white; font-size: 14px; outline: none; transition: 0.2s; }
.login-input:focus { border-color: var(--accent-purple); }
.btn-main:disabled { opacity: 0.6; cursor: wait; transform: none; }
.login-error { min-height: 18px; color: #f87171; font-size: 13px; text-align: center; }
/* ===== Thanh thông báo chữ chạy ===== */
.announce-bar { position: sticky; top: 0; z-index: 50; overflow: hidden; white-space: nowrap; background: rgba(10,10,18,0.92); border-bottom: 1px solid currentColor; color: #ef4444; backdrop-filter: blur(8px); }
.announce-track { display: inline-flex; animation: announce-scroll var(--ann-duration, 25s) linear infinite; will-change: transform; }
.announce-track span { padding: 9px 60px 9px 0; font-size: 14px; font-weight: 700; }
.announce-bar:hover .announce-track { animation-play-state: paused; }
@keyframes announce-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; white-space: normal; } .announce-track span + span { display: none; } }
.login-note { margin-top: 14px; text-align: center; color: var(--text-muted); font-size: 12px; }

.header { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; margin-bottom: 20px; }
.logo { font-size: 24px; font-weight: 800; background: linear-gradient(to right, #a78bfa, #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: flex; align-items: center; gap: 8px; }
.user-profile { display: flex; align-items: center; gap: 12px; background: var(--bg-card); padding: 6px 12px; border-radius: 100px; border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink)); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; color: white; }
.user-info .name { font-weight: 600; font-size: 14px; }
.user-info .id { font-size: 11px; color: var(--text-muted); }
.logout-btn { background: transparent; border: none; color: #ef4444; cursor: pointer; font-size: 16px; padding: 5px; }

.balance-card { background: linear-gradient(135deg, rgba(30, 25, 50, 0.9), rgba(15, 10, 25, 0.9)); border: 1px solid var(--border-color); border-radius: 24px; padding: 25px; margin-bottom: 30px; box-shadow: var(--glow); position: relative; overflow: hidden; backdrop-filter: blur(20px); }
.balance-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-pink), transparent); }
.card-label { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.card-amount { font-size: 48px; font-weight: 800; color: #fff; margin-bottom: 15px; display: flex; align-items: baseline; gap: 5px; }
.card-amount span:first-child { color: var(--accent-green); font-size: 30px; }
.session-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(16, 185, 129, 0.1); color: var(--accent-green); padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; border: 1px solid rgba(16, 185, 129, 0.3); }
.session-dot { width: 6px; height: 6px; background: var(--accent-green); border-radius: 50%; box-shadow: 0 0 8px var(--accent-green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.section-title { font-size: 20px; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.walls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; margin-bottom: 30px; }
.wall-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 20px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.wall-card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15); }
.wall-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.wall-info { flex: 1; }
.wall-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.wall-desc { font-size: 12px; color: var(--text-muted); }
.wall-btn { background: rgba(139, 92, 246, 0.2); color: #d8b4fe; padding: 8px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; border: 1px solid rgba(139, 92, 246, 0.3); transition: 0.2s; }
.wall-card:hover .wall-btn { background: var(--accent-purple); color: white; }

.iframe-container { grid-column: 1 / -1; background: #000; border-radius: 20px; overflow: hidden; height: 0; opacity: 0; transition: all 0.4s ease; margin-bottom: 15px; border: 1px solid var(--border-color); }
.iframe-container.active { height: 70vh; opacity: 1; margin-top: 15px; }
.iframe-container iframe { width: 100%; height: 100%; border: none; }

/* FEATURED OFFERS CSS */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-bottom: 30px; }
.featured-card { background: linear-gradient(135deg, rgba(40, 20, 20, 0.8), rgba(20, 10, 10, 0.8)); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; transition: all 0.3s; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1); }
.featured-card:hover { transform: translateY(-5px); border-color: #ef4444; box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3); }
.featured-card::before { content: 'HOT'; position: absolute; top: 10px; right: -25px; background: #ef4444; color: white; font-size: 10px; font-weight: 800; padding: 2px 30px; transform: rotate(45deg); letter-spacing: 1px; }
.featured-icon { font-size: 30px; margin-bottom: 10px; }
.featured-title { font-weight: 700; font-size: 16px; margin-bottom: 5px; color: white; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-net { font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 15px; }
.featured-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.featured-payout { font-size: 22px; font-weight: 800; color: var(--accent-green); }
.featured-btn { background: #ef4444; color: white; padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 13px; border: none; cursor: pointer; transition: 0.2s; }
.featured-card:hover .featured-btn { background: #dc2626; box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }

.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(10px); }
.history-left { display: flex; flex-direction: column; gap: 4px; }
.history-offer { font-weight: 600; font-size: 15px; }
.history-net { font-size: 12px; color: var(--accent-purple); font-weight: 500; }
.history-right { text-align: right; }
.history-reward { font-weight: 800; font-size: 18px; color: var(--accent-green); }
.history-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 600px) {
    .card-amount { font-size: 38px; }
    .wall-card { flex-direction: column; text-align: center; }
    .wall-btn { width: 100%; margin-top: 10px; }
    .iframe-container.active { height: 60vh; }
}