:root {
    --bg-deep: #0a0e14;
    --bg-base: #0f1419;
    --bg-surface: #151c25;
    --bg-elevated: #1a2332;
    --bg-hover: #212d3d;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --text: #e8edf4;
    --text-muted: #8b9cb3;
    --text-dim: #5c6b7f;
    --accent: #c9a227;
    --accent-bright: #e8c547;
    --accent-glow: rgba(201, 162, 39, 0.15);
    --blue: #4da3ff;
    --green: #34d399;
    --red: #f87171;
    --purple: #a78bfa;
    --sidebar-w: 260px;
    --topbar-h: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --font: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 162, 39, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(77, 163, 255, 0.05), transparent);
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-bright); }

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-base);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.brand-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent), #8b6914);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: #0a0e14;
    box-shadow: 0 0 20px var(--accent-glow);
}

.brand-icon.lg { width: 56px; height: 56px; font-size: 18px; border-radius: 14px; }
.brand-icon.admin { background: linear-gradient(135deg, #6366f1, #4338ca); color: #fff; }

.brand-text { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }

.nav-menu { list-style: none; padding: 16px 12px; flex: 1; overflow-y: auto; }

.nav-menu li a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.nav-menu li a svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.7; }
.nav-menu li a:hover { background: var(--bg-hover); color: var(--text); }
.nav-menu li a.active { background: var(--accent-glow); color: var(--accent-bright); border: 1px solid rgba(201, 162, 39, 0.2); }
.nav-menu li a.active svg { opacity: 1; stroke: var(--accent-bright); }
.nav-menu li a.admin-link { color: var(--purple); }

.nav-divider { height: 1px; background: var(--border); margin: 12px 8px; }

.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }

.logout-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; color: var(--text-dim);
    border-radius: var(--radius-sm); width: 100%;
    transition: all 0.2s;
}

.logout-btn svg { width: 18px; height: 18px; }
.logout-btn:hover { background: rgba(248, 113, 113, 0.1); color: var(--red); }

/* Main layout */
.main-wrapper {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-wrapper.full-width { margin-left: 0; }

.top-bar {
    height: var(--topbar-h);
    background: rgba(15, 20, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 24px; gap: 16px;
    position: sticky; top: 0; z-index: 100;
}

.menu-toggle {
    display: none;
    background: none; border: none;
    color: var(--text); cursor: pointer;
    padding: 8px; border-radius: var(--radius-sm);
}

.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle:hover { background: var(--bg-hover); }

.player-stats-bar { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }

.stat-chip {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem; font-weight: 600;
}

.stat-chip .stat-label { color: var(--text-dim); font-weight: 500; }
.stat-chip.coins { color: var(--accent-bright); }
.stat-chip.diamonds { color: var(--blue); }
.stat-chip.energy { color: var(--green); }
.stat-icon { font-size: 0.75rem; }

.user-menu .username { font-weight: 600; color: var(--text-muted); }

.content { padding: 28px 32px; flex: 1; max-width: 1400px; width: 100%; }

/* Page header */
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; }
.page-header .subtitle { color: var(--text-muted); font-size: 0.95rem; }

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-header h3 { margin-bottom: 0; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.hero-card { grid-column: span 7; }
.daily-card { grid-column: span 5; }
.dashboard-grid > .card:nth-child(n+3) { grid-column: span 6; }
.quick-actions { grid-column: span 12; }

/* Hero card */
.hero-card { background: linear-gradient(145deg, var(--bg-surface), var(--bg-elevated)); }

.hero-info { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }

.hero-avatar, .mini-avatar {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--bg-hover), var(--bg-elevated));
    border: 2px solid var(--accent);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; color: var(--accent-bright);
}

.mini-avatar { width: 32px; height: 32px; font-size: 0.75rem; border-radius: 8px; border-width: 1px; }

.hero-details h2 { font-size: 1.25rem; margin-bottom: 8px; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
    margin-right: 6px;
}

.badge-level { background: var(--accent-glow); color: var(--accent-bright); border: 1px solid rgba(201, 162, 39, 0.3); }
.badge-rank { background: rgba(77, 163, 255, 0.1); color: var(--blue); border: 1px solid rgba(77, 163, 255, 0.2); }
.badge-you { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.badge-success { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.badge-danger { background: rgba(248, 113, 113, 0.15); color: var(--red); }

.xp-bar-container { margin-bottom: 20px; }
.xp-bar-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }

.progress-bar {
    height: 8px;
    background: var(--bg-deep);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar.sm { height: 5px; }
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.hero-stats { display: flex; gap: 24px; }
.hero-stat { text-align: center; }
.hero-stat-value { display: block; font-size: 1.4rem; font-weight: 700; color: var(--accent-bright); }
.hero-stat-label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

/* Daily reward */
.daily-claimed { text-align: center; padding: 16px 0; }
.check-icon { display: block; font-size: 2rem; color: var(--green); margin-bottom: 8px; }

/* Quest list */
.quest-list.mini .quest-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.quest-list.mini .quest-item:last-child { border-bottom: none; }
.quest-info { flex: 1; }
.quest-title { font-size: 0.9rem; font-weight: 500; display: block; margin-bottom: 6px; }
.quest-reward { color: var(--accent-bright); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }

.quest-list .quest-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.quest-card.completed { border-color: rgba(52, 211, 153, 0.3); }
.quest-card.claimed { opacity: 0.6; }

.quest-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.quest-card-header h3 { font-size: 1rem; margin: 0; }
.quest-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }

.quest-status-badge {
    font-size: 0.7rem; font-weight: 600;
    padding: 3px 8px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.04em;
}

.quest-status-badge.active { background: rgba(77, 163, 255, 0.15); color: var(--blue); }
.quest-status-badge.completed { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.quest-status-badge.claimed { background: var(--bg-hover); color: var(--text-dim); }

.quest-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); margin: 10px 0; }
.quest-rewards { color: var(--accent-bright); }
.quest-actions { display: flex; gap: 8px; margin-top: 12px; }

/* Announcements */
.announcement-list { display: flex; flex-direction: column; gap: 12px; }
.announcement-item {
    padding: 12px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--blue);
}

.announcement-item.type-warning { border-left-color: var(--accent); }
.announcement-item.type-event { border-left-color: var(--purple); }
.announcement-item.type-update { border-left-color: var(--green); }
.announcement-item strong { display: block; margin-bottom: 4px; }
.announcement-item p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.announcement-item small { color: var(--text-dim); font-size: 0.75rem; }

/* Quick actions */
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: all 0.2s;
    text-align: center;
}

.action-btn:hover { border-color: var(--accent); background: var(--accent-glow); color: var(--accent-bright); transform: translateY(-2px); }
.action-icon { font-size: 1.5rem; color: var(--accent); }

/* Filter bar */
.filter-bar { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }

.filter-btn {
    padding: 8px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-weight: 500; font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-glow);
    border-color: rgba(201, 162, 39, 0.3);
    color: var(--accent-bright);
}

/* Product grid */
.product-grid, .inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card, .inventory-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}

.product-card:hover, .inventory-card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow); }
.inventory-card.equipped { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }

.product-image, .inv-image {
    position: relative;
    height: 140px;
    background: var(--bg-elevated);
    display: flex; align-items: center; justify-content: center;
}

.product-image img, .inv-image img { max-width: 80%; max-height: 80%; object-fit: contain; }

.product-placeholder {
    width: 64px; height: 64px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.5rem;
}

.product-placeholder.type-consumable { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.product-placeholder.type-equipment { background: rgba(201, 162, 39, 0.15); color: var(--accent); }
.product-placeholder.type-material { background: rgba(139, 156, 179, 0.15); color: var(--text-muted); }
.product-placeholder.type-boost { background: rgba(167, 139, 250, 0.15); color: var(--purple); }
.product-placeholder.type-cosmetic { background: rgba(77, 163, 255, 0.15); color: var(--blue); }

.product-type {
    position: absolute; top: 10px; right: 10px;
    font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    padding: 3px 8px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px; color: var(--text-muted);
}

.inv-qty {
    position: absolute; bottom: 8px; right: 8px;
    background: var(--accent); color: #0a0e14;
    font-weight: 700; font-size: 0.8rem;
    padding: 2px 8px; border-radius: 4px;
}

.equipped-badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--green); color: #0a0e14;
    font-size: 0.65rem; font-weight: 700;
    padding: 3px 8px; border-radius: 4px;
    text-transform: uppercase;
}

.product-body, .inv-body { padding: 16px; flex: 1; }
.product-body h3, .inv-body h3 { font-size: 1rem; margin-bottom: 6px; }
.product-body p, .inv-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.product-prices { display: flex; gap: 12px; margin-top: 10px; }
.price.coins { color: var(--accent-bright); font-weight: 700; }
.price.diamonds { color: var(--blue); font-weight: 700; }
.stock-info { display: block; margin-top: 6px; color: var(--text-dim); font-size: 0.75rem; }

.product-type-tag {
    display: inline-block;
    font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.product-buy-form { padding: 0 16px 16px; }
.buy-row { display: flex; gap: 8px; margin-bottom: 8px; }
.qty-input, .coupon-input {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
}

.coupon-input { width: 100%; margin-top: 0; }

.inv-actions { padding: 0 16px 16px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px;
    border: none; border-radius: var(--radius-sm);
    font-family: var(--font); font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s;
    text-decoration: none; color: inherit;
}

.btn-primary { background: linear-gradient(135deg, var(--accent), #a88620); color: #0a0e14; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); color: #0a0e14; }

.btn-accent { background: linear-gradient(135deg, var(--green), #059669); color: #fff; }
.btn-accent:hover { filter: brightness(1.1); color: #fff; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; }

.inline-form { display: inline; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font); font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.form-stack .form-group { margin-bottom: 14px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; margin-bottom: 16px; }

/* Auth pages */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%; max-width: 420px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: var(--shadow);
}

.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo h1 { font-size: 1.5rem; margin: 12px 0 4px; }
.auth-logo p { color: var(--text-muted); font-size: 0.9rem; }
.auth-form { margin-bottom: 20px; }
.auth-footer { text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem; font-weight: 500;
}

.alert-success { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); color: var(--green); }
.alert-error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.3); color: var(--red); }
.alert-info { background: rgba(77, 163, 255, 0.12); border: 1px solid rgba(77, 163, 255, 0.3); color: var(--blue); }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
    text-align: left; padding: 12px 14px;
    background: var(--bg-elevated);
    color: var(--text-muted); font-weight: 600;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tr.highlight td { background: var(--accent-glow); }
.data-table.compact td, .data-table.compact th { padding: 8px 10px; }

.table-wrap, .leaderboard-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }

.stat-highlight { font-weight: 700; color: var(--accent-bright); }
.positive { color: var(--green); }
.negative { color: var(--red); }

.rank-medal {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    font-weight: 700; font-size: 0.85rem;
}

.rank-medal.rank-1 { background: linear-gradient(135deg, #ffd700, #b8860b); color: #0a0e14; }
.rank-medal.rank-2 { background: linear-gradient(135deg, #c0c0c0, #808080); color: #0a0e14; }
.rank-medal.rank-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }

.player-cell { display: flex; align-items: center; gap: 10px; }

/* Profile */
.profile-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.profile-sidebar .card { text-align: center; }
.profile-avatar {
    width: 96px; height: 96px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--bg-hover), var(--bg-elevated));
    border: 1px solid var(--accent);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: var(--accent-bright);
    overflow: hidden;
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.profile-stat { padding: 14px; background: var(--bg-elevated); border-radius: var(--radius-sm); text-align: center; }
.profile-stat-value { display: block; font-size: 1.3rem; font-weight: 700; color: var(--accent-bright); }
.profile-stat-label { font-size: 0.75rem; color: var(--text-dim); }

.achievement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.achievement-item {
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    opacity: 0.45;
}

.achievement-item.unlocked { opacity: 1; border-color: rgba(201, 162, 39, 0.3); }
.achievement-item .ach-icon { font-size: 1.5rem; margin-bottom: 8px; }
.achievement-item h4 { font-size: 0.9rem; margin-bottom: 4px; }
.achievement-item p { font-size: 0.8rem; color: var(--text-muted); }

.transaction-list { display: flex; flex-direction: column; gap: 8px; }
.transaction-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* Support */
.support-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
.ticket-list { display: flex; flex-direction: column; gap: 8px; }
.ticket-item {
    display: block; padding: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: all 0.2s;
}

.ticket-item:hover, .ticket-item.active { border-color: var(--accent); background: var(--accent-glow); color: var(--text); }
.ticket-item .ticket-subject { font-weight: 600; display: block; margin-bottom: 4px; }
.ticket-item small { color: var(--text-dim); }

.status-open { color: var(--blue); }
.status-answered { color: var(--green); }
.status-closed { color: var(--text-dim); }

.message-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; max-height: 400px; overflow-y: auto; }
.message-bubble {
    padding: 14px 18px;
    border-radius: var(--radius);
    max-width: 85%;
    font-size: 0.9rem;
}

.message-bubble.user { background: var(--bg-elevated); align-self: flex-start; border: 1px solid var(--border); }
.message-bubble.admin { background: rgba(77, 163, 255, 0.12); align-self: flex-end; border: 1px solid rgba(77, 163, 255, 0.2); }
.message-bubble .msg-meta { font-size: 0.75rem; color: var(--text-dim); margin-top: 6px; }

/* Empty state */
.empty-state, .empty-text { text-align: center; color: var(--text-muted); padding: 40px 20px; }
.empty-state p { margin-bottom: 12px; }

.link { font-size: 0.85rem; font-weight: 500; }

code { font-family: 'Consolas', monospace; font-size: 0.85em; background: var(--bg-deep); padding: 2px 6px; border-radius: 4px; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-card, .daily-card, .dashboard-grid > .card { grid-column: span 12; }
    .profile-grid { grid-template-columns: 1fr; }
    .support-layout { grid-template-columns: 1fr; }
    .action-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-wrapper { margin-left: 0; }
    .menu-toggle { display: flex; }
    .content { padding: 20px 16px; }
    .player-stats-bar { gap: 6px; }
    .stat-chip { padding: 4px 10px; font-size: 0.8rem; }
    .user-menu-item .username { display: none; }
    .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
