@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #020409;
    background-image: radial-gradient(ellipse at 60% 0%, #0d2045 0%, #020409 65%);
    color: #e5e5e5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container { width: 100%; max-width: 960px; padding: 20px; }

/* ===== CARD ===== */
.card {
    background: rgba(9, 11, 17, 0.92);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 0 60px rgba(37, 99, 235, 0.12), 0 4px 24px rgba(0,0,0,0.6);
    margin: 0 auto;
    backdrop-filter: blur(12px);
}

#loginCard, #registerCard { max-width: 420px; }
#dashboardCard { max-width: 860px; }

.hidden { display: none !important; }

/* ===== TYPOGRAPHY ===== */
.title {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(30, 58, 138, 0.8);
    border-radius: 8px;
    color: #fff;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: #374151; }
input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* ===== BUTTONS ===== */
.btn {
    display: block;
    width: 100%;
    padding: 13px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 14px;
    box-shadow: 0 4px 15px rgba(37,99,235,0.35);
}
.btn:hover { background: #1d4ed8; box-shadow: 0 4px 20px rgba(37,99,235,0.55); transform: translateY(-1px); }
.btn:disabled { background: #1e3060; color: #4b5563; cursor: not-allowed; box-shadow: none; transform: none; }

.logout-btn {
    margin-top: 24px;
    background: transparent;
    border: 1px solid rgba(59,130,246,0.4);
    color: #60a5fa;
    letter-spacing: 2px;
    box-shadow: none;
}
.logout-btn:hover { background: rgba(59,130,246,0.08); border-color: #3b82f6; box-shadow: none; }

/* ===== LINKS ===== */
.switch-mode { margin-top: 22px; font-size: 0.8rem; text-align: center; }
.switch-mode a { color: #60a5fa; text-decoration: none; font-weight: 500; transition: color 0.2s; }
.switch-mode a:hover { color: #93c5fd; text-decoration: underline; }

/* ===== MESSAGES ===== */
.message { font-size: 0.82rem; font-weight: 500; text-align: center; margin-top: -5px; margin-bottom: 14px; min-height: 18px; }
.msg-error  { color: #ef4444; }
.msg-success { color: #10b981; }

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ===== PANELS ===== */
.dash-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}
.dash-panel:hover { border-color: rgba(59,130,246,0.2); }
.dash-panel:last-child { margin-bottom: 0; }

.panel-header {
    font-size: 0.68rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ===== PROFILE ===== */
.profile-panel { text-align: center; }

.avatar-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(59,130,246,0.5);
    background: rgba(37,99,235,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 0 20px rgba(59,130,246,0.15);
}
.profile-name { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: 1px; margin-bottom: 4px; }
.profile-uid  { font-size: 0.78rem; color: #4b5563; margin-bottom: 16px; }

.profile-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
}
.badge { flex: 1; padding: 10px 8px; text-align: center; }
.badge-divider { width: 1px; background: rgba(255,255,255,0.07); height: 40px; }
.badge-label { display: block; font-size: 0.62rem; color: #6b7280; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.badge-value { font-size: 1.05rem; font-weight: 700; color: #fff; }
.status-active { color: #10b981 !important; }

/* ===== WALLET ===== */
.wallet-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.wallet-row:last-child { border-bottom: none; padding-bottom: 0; }

.wallet-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 900; flex-shrink: 0; }
.gold-icon { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.gem-icon  { background: rgba(96,165,250,0.15); color: #60a5fa; border: 1px solid rgba(96,165,250,0.3); }

.wallet-label { flex: 1; font-size: 0.78rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 1px; }
.wallet-value { font-size: 1.1rem; font-weight: 700; color: #fff; }

/* ===== STATS ===== */
.stat-block { margin-bottom: 16px; }
.stat-block:last-child { margin-bottom: 0; }

.stat-mode-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.br-label { color: #f59e0b; }
.cs-label { color: #a855f7; }

.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: rgba(0,0,0,0.2); border-radius: 6px; margin-bottom: 4px; }
.stat-key { font-size: 0.78rem; color: #6b7280; }
.stat-val  { font-size: 0.85rem; color: #e5e7eb; }

/* ===== VIP ===== */
.vip-panel { text-align: center; }

.vip-timer {
    font-size: 2rem;
    font-family: 'Inter', monospace;
    font-weight: 900;
    color: #10b981;
    letter-spacing: 3px;
    margin: 10px 0 20px;
    text-shadow: 0 0 20px rgba(16,185,129,0.3);
}

.vip-actions { display: flex; flex-direction: column; gap: 8px; }

.vip-btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
}

.locked-btn { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: #4b5563; cursor: not-allowed; }
.locked-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(37,99,235,0.4); }
.locked-btn.active:hover { background: #1d4ed8; }

.insert-btn { background: transparent; border: 1px solid rgba(16,185,129,0.5); color: #10b981; }
.insert-btn:hover { background: rgba(16,185,129,0.08); border-color: #10b981; }

.confirm-btn { background: #10b981; color: #fff; }
.confirm-btn:hover { background: #059669; }
.confirm-btn:disabled { background: #065f46; color: #6b7280; cursor: not-allowed; }

.key-input {
    padding: 11px 14px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(16,185,129,0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 0.82rem;
    font-family: 'Inter', monospace;
    letter-spacing: 1px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}
.key-input:focus { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.12); }
.key-feedback { font-size: 0.78rem; text-align: center; min-height: 18px; padding-top: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .card { padding: 24px 18px; }
    .vip-timer { font-size: 1.5rem; }
}
