:root {
    --bg-dark: #0a0e14;
    --bg-panel: #151921;
    --bg-card: #1a1f2a;
    --bg-hover: #232a38;
    --yellow: #f5b301;
    --orange: #e67e22;
    --green: #1f7a4f;
    --red: #e74c3c;
    --blue: #3498db;
    --purple: #9b59b6;
    --text-light: #e5e7eb;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --sidebar-width: 260px;

    /* ==================== LEADERBOARD (Rangliste) ==================== */
    --lb-bg: #0b0f16;
    --lb-surface: rgba(255, 255, 255, 0.06);
    --lb-surface-2: rgba(255, 255, 255, 0.085);
    --lb-border: rgba(255, 255, 255, 0.10);
    --lb-border-2: rgba(255, 255, 255, 0.16);
    --lb-text: rgba(255, 255, 255, 0.90);
    --lb-muted: rgba(255, 255, 255, 0.62);
    --lb-gold: #ffcc00;
    --lb-green: #00ff7a;
    --lb-red: #ff3b3b;
    --lb-blue: #4cc3ff;
    --lb-radius: 14px;
    --lb-radius-sm: 10px;
    --lb-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    --lb-glow: 0 0 18px rgba(255, 204, 0, 0.22);
    --lb-font: 'Arial Black', 'Arial', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --lb-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* ==================== BUTTONS (global) ==================== */
    --btn-height: 46px;
    --btn-radius: 12px;
    --btn-min-width: 190px;
    --btn-action-min-width: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-logo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(245, 179, 1, 0.3));
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--yellow);
    background: rgba(245, 179, 1, 0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--yellow);
    border-radius: 0 2px 2px 0;
}

.nav-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.bi-casino::before {
    content: "\f2fa";
}

.nav-badge {
    margin-left: auto;
    background: var(--nav-badge-bg, var(--red));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
}

/* Nav badge variants */
.nav-badge--danger,
.nav-badge.danger {
    --nav-badge-bg: var(--red);
}

.nav-badge--success,
.nav-badge.success {
    --nav-badge-bg: var(--green);
}

.nav-badge--warning,
.nav-badge.warning {
    --nav-badge-bg: var(--orange);
}

.nav-badge--info,
.nav-badge.info {
    --nav-badge-bg: var(--blue);
}

.nav-badge--premium,
.nav-badge.premium {
    --nav-badge-bg: var(--purple);
}

.nav-badge--muted,
.nav-badge.muted {
    --nav-badge-bg: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 1.5rem;
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.sidebar-publisher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.sidebar-publisher:hover {
    color: var(--yellow);
    opacity: 1;
}

.sidebar-publisher img {
    height: 24px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.2s ease;
}

.sidebar-publisher:hover img {
    filter: grayscale(0%);
}

.sidebar-publisher span {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.publisher-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.publisher-label {
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 0.2px;
}

.publisher-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.sidebar-copyright {
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.4;
}

/* Sidebar Close Button - nur auf Mobile sichtbar */
.sidebar-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.sidebar-close:hover {
    background: var(--red);
    border-color: var(--red);
}

/* Sidebar Overlay - nur auf Mobile sichtbar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-left: 0;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Nur wenn Sidebar vorhanden ist, braucht der Content links Platz */
.sidebar + .main-content {
    margin-left: var(--sidebar-width);
}

/* ==================== TOP BAR ==================== */
.top-bar {
    position: sticky;
    top: 0;
    background: rgba(10, 14, 20, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.greeting {
    display: flex;
    flex-direction: column;
}

.greeting-small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.greeting-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Guthaben (Euro) */
.balance-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.5rem 0.75rem;
    border-radius: 25px;
    border: 1px solid var(--border-color);
}

.balance-display i {
    color: var(--green);
    font-size: 1rem;
}

.balance-amount {
    font-weight: 700;
    color: var(--green);
    font-size: 1rem;
}

.balance-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.balance-add {
    background: var(--green);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 0.25rem;
    transition: all 0.2s ease;
}

.balance-add:hover {
    background: #27ae60;
    transform: scale(1.1);
}

/* Kronkorken (Ingame) */
.currency-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--border-color);
}

.currency-icon {
    font-size: 1.25rem;
}

.currency-icon img {
    display: block;
}

.kronkorken-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.kronkorken-inline {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: -0.2em;
}

.currency-amount {
    font-weight: 700;
    color: var(--yellow);
    font-size: 1rem;
}

.currency-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Coins (Premium) */
.currency-display.coins .currency-amount {
    color: var(--blue);
}

.icon-btn {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--bg-hover);
    color: var(--yellow);
}

.icon-btn i {
    font-size: 1.1rem;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

/* ==================== PROFILE DROPDOWN ==================== */
.profile-dropdown {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem;
    padding-right: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    transition: all 0.2s ease;
}

.profile-toggle:hover {
    background: var(--bg-hover);
}

.profile-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-hover);
}

.profile-avatar-small svg {
    width: 100%;
    height: 100%;
}

.profile-toggle i {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.profile-dropdown:hover .profile-toggle i {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.profile-dropdown:hover .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--yellow);
}

.dropdown-avatar svg {
    width: 100%;
    height: 100%;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
}

.dropdown-username {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light);
}

.dropdown-level {
    font-size: 0.8rem;
    color: var(--yellow);
}

.dropdown-currencies {
    padding: 0.75rem 1.25rem;
    background: var(--bg-dark);
}

.dropdown-currency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dropdown-currency .currency-icon {
    font-size: 1rem;
}

.dropdown-currency i {
    color: var(--green);
    width: 20px;
}

.dropdown-topup {
    margin-left: auto;
    color: var(--green);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.dropdown-topup:hover {
    color: #2ecc71;
    transform: scale(1.15);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--yellow);
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    color: var(--text-muted);
}

.dropdown-item:hover i {
    color: var(--yellow);
}

.dropdown-item.active {
    background: rgba(245, 179, 1, 0.10);
    color: var(--yellow);
}

.dropdown-item.active i {
    color: var(--yellow);
}

.dropdown-item.text-danger {
    color: var(--red);
}

.dropdown-item.text-danger:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--red);
}

.dropdown-item.text-danger i {
    color: var(--red);
}

/* ==================== LAYOUT / MAIN WRAPPER ==================== */
.main,
.dashboard {
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
}

/* Main modifiers (für Seiten ohne 2-Spalten-Grid, z.B. 404) */
.main.main--single {
    grid-template-columns: 1fr;
}

.main.main--center {
    justify-items: center;
    align-content: center;
    min-height: clamp(420px, 65vh, 820px);
}

/* ==================== 404 ==================== */
.main-404 {
    background: linear-gradient(135deg, var(--bg-card), rgba(245, 179, 1, 0.06));
    border: 1px solid rgba(245, 179, 1, 0.18);
    border-radius: 16px;
    padding: 2.25rem;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.main-404-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(245, 179, 1, 0.10);
    border: 1px solid rgba(245, 179, 1, 0.18);
    color: var(--yellow);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.main-404-badge i {
    font-size: 1rem;
}

.main-404-title {
    font-size: clamp(72px, 10vw, 120px);
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0 0 0.75rem;
    background: linear-gradient(180deg, var(--yellow), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 22px rgba(245, 179, 1, 0.18);
}

.main-404-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 auto 1.5rem;
    max-width: 46ch;
}

.main-404-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.main-404-backbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--btn-height);
    min-width: var(--btn-min-width);
    padding: 0 1.1rem;
    border-radius: var(--btn-radius);
    background: var(--yellow);
    color: var(--bg-dark);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.main-404-actions .main-404-backbtn {
    flex: 1 1 var(--btn-min-width);
}

.main-404-backbtn:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.main-404-backbtn.main-404-backbtn--secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.main-404-backbtn.main-404-backbtn--secondary:hover {
    background: var(--bg-hover);
    border-color: rgba(245, 179, 1, 0.25);
}

.main-404-backbtn:focus-visible {
    outline: 3px solid rgba(245, 179, 1, 0.35);
    outline-offset: 3px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.section-title i {
    color: var(--yellow);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header-row .section-title {
    margin-bottom: 0;
}

.see-all-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.see-all-link:hover {
    color: var(--yellow);
}

/* ==================== CHARACTER CARD ==================== */
.character-card {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.character-header {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1rem;
}

/* NEW: character-top layout */
.character-top {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    align-items: start;
}

.character-left {
    display: flex;
    gap: 14px;
    align-items: center;
}

.character-right {
    display: flex;
    align-items: stretch;
}

.character-right .quest-mini {
    flex: 1;
}

.character-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.character-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--yellow);
    background: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(245, 179, 1, 0.2);
}

.character-avatar--sm {
    width: 64px;
    height: 64px;
}

.character-avatar svg {
    width: 100%;
    height: 100%;
}

.character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.character-level {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--yellow);
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    white-space: nowrap;
}

.character-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.character-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
}

.character-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.character-xp {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.xp-bar {
    flex: 1;
    max-width: 160px;
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.xp-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* NEW: Quest Row (next + daily) */
.quest-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

/* ==================== QUEST MINI CARDS ==================== */
.quest-mini {
    background: var(--bg-panel);
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.quest-mini:hover {
    background: var(--bg-hover);
}

.quest-mini.active {
    border-left: 3px solid var(--green);
}

.quest-mini.upcoming {
    opacity: 0.7;
}

.quest-mini.daily {
    background: linear-gradient(135deg, var(--bg-panel), rgba(245, 179, 1, 0.05));
    border: 1px solid rgba(245, 179, 1, 0.2);
}

.quest-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.quest-mini-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: var(--green);
    color: white;
}

.quest-mini-badge.upcoming {
    background: var(--bg-dark);
    color: var(--text-muted);
}

.quest-mini-timer {
    font-size: 0.7rem;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.quest-mini-unlock {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.quest-mini-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quest-mini-icon {
    font-size: 1.25rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 8px;
    flex-shrink: 0;
}

.quest-mini-info {
    flex: 1;
    min-width: 0;
}

.quest-mini-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    display: block;
}

.quest-mini-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quest-mini-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.quest-mini-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-dark);
    border-radius: 2px;
    overflow: hidden;
}

.quest-mini-fill {
    height: 100%;
    background: var(--green);
    border-radius: 2px;
}

.quest-mini-progress span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.quest-mini-reward {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--yellow);
    white-space: nowrap;
}

.quest-mini-reward.locked {
    color: var(--text-muted);
    opacity: 0.5;
}

.quest-mini-link {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    color: var(--bg-dark);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quest-mini-link:hover {
    transform: scale(1.1);
    background: var(--orange);
}

/* ==================== CHARACTER STATS (als Chips) ==================== */
.character-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 12px;
}

.character-stats--chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 180px;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.stat-chip .stat-emoji {
    font-size: 1.1rem;
}

.stat-chip .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-chip .stat-value {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.stat-chip .stat-bar {
    width: 100%;
    margin-top: 4px;
    height: 4px;
    background: var(--bg-dark);
    border-radius: 2px;
    overflow: hidden;
}

/* Legacy stat-item support */
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-panel);
    padding: 1rem;
    border-radius: 12px;
}

.stat-icon {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 10px;
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-bar {
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.stat-fill.low { background: var(--red); }
.stat-fill.medium { background: var(--orange); }
.stat-fill.high { background: var(--green); }

.stat-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-value.money {
    font-size: 1rem;
    font-weight: 700;
}

.stat-value.negative {
    color: var(--red);
}

/* ==================== QUICK ACTIONS ==================== */
.quick-actions {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover:not(.disabled) {
    background: var(--bg-hover);
    border-color: var(--yellow);
    transform: translateY(-2px);
}

.action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-icon {
    font-size: 2rem;
}

.action-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.action-timer, .action-cooldown {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.action-reward {
    font-size: 0.75rem;
    color: var(--green);
    font-weight: 600;
}

/* ==================== DAILY QUEST ==================== */
.daily-quest-card {
    background: linear-gradient(135deg, var(--bg-card), rgba(245, 179, 1, 0.05));
    border: 1px solid rgba(245, 179, 1, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

.quest-header {
    margin-bottom: 1rem;
}

.quest-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quest-title-row .section-title {
    margin-bottom: 0;
}

.quest-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 600;
}

.quest-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-panel);
    padding: 1.25rem;
    border-radius: 12px;
}

.quest-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 12px;
}

.quest-info {
    flex: 1;
}

.quest-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.quest-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.quest-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quest-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
}

.quest-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), #2ecc71);
    border-radius: 4px;
}

.quest-progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.quest-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(245, 179, 1, 0.1);
    border-radius: 12px;
    min-width: 100px;
}

.reward-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.reward-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--yellow);
}

/* ==================== MINIGAMES ==================== */
.minigames-section {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.minigames-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.minigame-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.minigame-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 179, 1, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.minigame-image {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minigame-emoji {
    font-size: 3rem;
}

.minigame-info {
    padding: 1rem;
}

.minigame-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.minigame-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.minigame-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.minigame-meta i {
    margin-right: 0.25rem;
}

.minigame-play-btn {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--yellow);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.minigame-play-btn:hover {
    background: var(--orange);
}

.minigame-coming {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-dark);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ==================== BOTTOM ROW ==================== */
.bottom-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ==================== ACTIVITY FEED ==================== */
.activity-feed {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-panel);
    border-radius: 10px;
}

.feed-icon {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 8px;
}

.feed-content {
    flex: 1;
}

.feed-content p {
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.feed-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==================== ACHIEVEMENTS ==================== */
.achievements-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-panel);
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
}

.achievement:hover {
    background: var(--bg-hover);
}

.achievement-icon {
    font-size: 1.75rem;
}

.achievement-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.achievement.unlocked {
    border: 1px solid rgba(245, 179, 1, 0.3);
}

.achievement.unlocked .achievement-icon {
    filter: none;
}

.achievement.locked {
    opacity: 0.5;
}

.achievement.locked .achievement-icon {
    filter: grayscale(100%);
}

.achievement-lock {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.achievement-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.achievement-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bg-dark);
}

.achievement.locked:hover .achievement-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .character-top {
        grid-template-columns: 1fr;
    }
    
    .character-right {
        margin-top: 12px;
    }
    
    .quest-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .character-stats--chips {
        flex-wrap: wrap;
    }
    
    .stat-chip {
        min-width: 160px;
    }
    
    .minigames-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: flex;
    }
    
    .sidebar-overlay {
        display: block;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .main-content {
        margin-left: 0;
    }

    .sidebar + .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main,
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .bottom-row {
        grid-template-columns: 1fr;
    }
    
    .balance-label {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .top-bar-left {
        gap: 0.75rem;
    }
    
    .greeting-small {
        display: none;
    }
    
    .greeting-name {
        font-size: 1rem;
    }
    
    .currency-label,
    .balance-label {
        display: none;
    }
    
    .currency-display {
        padding: 0.4rem 0.6rem;
        gap: 0.35rem;
    }
    
    .currency-icon {
        font-size: 1rem;
    }
    
    .currency-amount {
        font-size: 0.85rem;
    }
    
    .icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .profile-toggle {
        padding: 0.15rem;
        padding-right: 0.5rem;
    }
    
    .profile-avatar-small {
        width: 30px;
        height: 30px;
    }
    
    .main,
    .dashboard {
        padding: 1rem;
        gap: 1rem;
    }
    
    .character-card {
        padding: 1rem;
    }
    
    .character-header {
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .character-avatar-wrapper {
        margin: 0 auto;
    }
    
    .character-avatar {
        width: 70px;
        height: 70px;
    }
    
    .character-top {
        grid-template-columns: 1fr;
    }
    
    .character-left {
        flex-direction: column;
        text-align: center;
    }
    
    .character-info {
        align-items: center;
    }
    
    .character-name {
        font-size: 1.1rem;
    }
    
    .character-title {
        font-size: 0.75rem;
    }
    
    .character-xp {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .xp-bar {
        max-width: 100%;
        width: 100%;
    }
    
    .quest-row {
        grid-template-columns: 1fr;
    }
    
    .character-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-value {
        font-size: 0.8rem;
    }
    
    .character-stats--chips {
        flex-direction: column;
    }
    
    .stat-chip {
        min-width: 100%;
    }
    
    /* Quick Actions */
    .quick-actions {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .action-btn {
        padding: 0.75rem 0.5rem;
    }
    
    .action-icon {
        font-size: 1.5rem;
    }
    
    .action-text {
        font-size: 0.75rem;
    }
    
    .action-timer,
    .action-cooldown,
    .action-reward {
        font-size: 0.6rem;
    }
    
    /* Daily Quest */
    .daily-quest-card {
        padding: 1rem;
    }
    
    .quest-title-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .quest-timer {
        font-size: 0.75rem;
    }
    
    .quest-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .quest-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }
    
    .quest-name {
        font-size: 1rem;
    }
    
    .quest-desc {
        font-size: 0.8rem;
    }
    
    .quest-reward {
        flex-direction: row;
        gap: 0.75rem;
        min-width: auto;
        padding: 0.75rem;
    }
    
    /* Minigames */
    .minigames-section {
        padding: 1rem;
    }
    
    .minigames-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .minigame-image {
        height: 70px;
    }
    
    .minigame-emoji {
        font-size: 2rem;
    }
    
    .minigame-info {
        padding: 0.75rem;
    }
    
    .minigame-info h4 {
        font-size: 0.85rem;
    }
    
    .minigame-info p {
        font-size: 0.7rem;
    }
    
    .minigame-meta {
        font-size: 0.65rem;
        gap: 0.5rem;
    }
    
    .minigame-play-btn,
    .minigame-coming {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Bottom Row */
    .activity-feed,
    .achievements-preview {
        padding: 1rem;
    }
    
    .feed-item {
        padding: 0.5rem;
    }
    
    .feed-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .feed-content p {
        font-size: 0.8rem;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .achievement {
        padding: 0.75rem 0.5rem;
    }
    
    .achievement-icon {
        font-size: 1.25rem;
    }
    
    .achievement-name {
        font-size: 0.65rem;
    }
    
    .achievement-lock {
        width: 16px;
        height: 16px;
        font-size: 0.5rem;
        top: 4px;
        right: 4px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .top-bar-right {
        gap: 0.5rem;
    }
    
    .currency-display {
        padding: 0.35rem 0.5rem;
    }
    
    .currency-amount {
        font-size: 0.8rem;
    }
    
    .greeting-name {
        font-size: 0.9rem;
    }
    
    .main,
    .dashboard {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .character-stats {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .minigames-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-dropdown-menu {
        width: 260px;
        right: -50px;
    }
}

/* =========================================================
   AMTLIFE – Leaderboard (Rangliste) CSS
   Namespaced: .leaderboard-card and .leaderboard-*
   ========================================================= */

/* =========================================================
   AMTLIFE – Casino CSS
   Namespaced: .casino-*
   ========================================================= */

.casino-banner {
    grid-column: 1 / -1;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(1200px 400px at 20% 20%, rgba(245, 179, 1, 0.18), transparent 60%),
        radial-gradient(900px 360px at 80% 40%, rgba(52, 152, 219, 0.16), transparent 55%),
        linear-gradient(135deg, rgba(10, 14, 20, 0.9), rgba(26, 31, 42, 0.9));
}

.casino-banner-inner {
    display: block;
    padding: 0;
}

.casino-banner-img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center top;
}

/* Mobile */
@media (max-width: 768px) {
    .casino-banner-img {
        height: 180px;
        object-position: center center;
    }
}

.casino-brand {
    display: grid;
    gap: 0.1rem;
}

.casino-brand-title {
    font-size: 1.35rem;
    font-weight: 1000;
    letter-spacing: 1px;
    color: var(--yellow);
}

.casino-brand-sub {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.casino-banner-kicker {
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.casino-banner-title {
    margin-top: 0.25rem;
    font-size: 1.7rem;
    font-weight: 1000;
    letter-spacing: 1px;
    color: var(--text-light);
}

.casino-play {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background: var(--yellow);
    color: #111;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid rgba(245, 179, 1, 0.45);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.casino-play:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.casino-machine {
    width: 100%;
    height: 120px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(135deg, rgba(245, 179, 1, 0.14), rgba(0, 0, 0, 0.18)),
        radial-gradient(320px 120px at 60% 40%, rgba(255, 255, 255, 0.10), transparent 60%),
        var(--bg-panel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.casino-toolbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.casino-tabs {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.casino-tab {
    appearance: none;
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    color: var(--text-muted);
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.casino-tab:hover {
    background: var(--bg-hover);
    color: var(--text-light);
}

.casino-tab.active,
.casino-tab[aria-selected="true"] {
    background: rgba(245, 179, 1, 0.12);
    border-color: rgba(245, 179, 1, 0.35);
    color: var(--yellow);
}

.casino-pager {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.casino-page-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.casino-page-select {
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    color: var(--text-light);
    outline: none;
}

.casino-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.casino-icon-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: rgba(245, 179, 1, 0.35);
}

.casino-icon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.casino-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hidden { display: none !important; }
.casino-slot {
    display: grid;
    grid-template-rows: 140px auto;
    text-decoration: none;
    color: var(--text-light);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.casino-slot:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 179, 1, 0.35);
}

.casino-slot-media {
    position: relative;
    background:
        radial-gradient(420px 160px at 30% 40%, rgba(245, 179, 1, 0.18), transparent 60%),
        radial-gradient(360px 160px at 70% 40%, rgba(52, 152, 219, 0.16), transparent 55%),
        linear-gradient(135deg, rgba(10, 14, 20, 0.85), rgba(26, 31, 42, 0.85));
}

.casino-slot-media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.casino-slot-media.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 20, 0.35), rgba(10, 14, 20, 0.65));
    z-index: 1;
}

.casino-slot-media.is-variant-2 {
    background:
        radial-gradient(420px 160px at 30% 40%, rgba(46, 204, 113, 0.16), transparent 60%),
        radial-gradient(360px 160px at 70% 40%, rgba(245, 179, 1, 0.14), transparent 55%),
        linear-gradient(135deg, rgba(10, 14, 20, 0.85), rgba(26, 31, 42, 0.85));
}

.casino-slot-media.is-variant-3 {
    background:
        radial-gradient(420px 160px at 35% 40%, rgba(155, 89, 182, 0.18), transparent 60%),
        radial-gradient(360px 160px at 70% 40%, rgba(245, 179, 1, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(10, 14, 20, 0.85), rgba(26, 31, 42, 0.85));
}

.casino-slot-media.is-variant-4 {
    background:
        radial-gradient(420px 160px at 35% 40%, rgba(230, 126, 34, 0.16), transparent 60%),
        radial-gradient(360px 160px at 70% 40%, rgba(52, 152, 219, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(10, 14, 20, 0.85), rgba(26, 31, 42, 0.85));
}

.casino-slot-media.is-variant-5 {
    background:
        radial-gradient(420px 160px at 35% 40%, rgba(231, 76, 60, 0.16), transparent 60%),
        radial-gradient(360px 160px at 70% 40%, rgba(245, 179, 1, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(10, 14, 20, 0.85), rgba(26, 31, 42, 0.85));
}

.casino-slot-media.is-variant-6 {
    background:
        radial-gradient(420px 160px at 35% 40%, rgba(52, 152, 219, 0.18), transparent 60%),
        radial-gradient(360px 160px at 70% 40%, rgba(46, 204, 113, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(10, 14, 20, 0.85), rgba(26, 31, 42, 0.85));
}

.casino-slot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(245, 179, 1, 0.12);
    border: 1px solid rgba(245, 179, 1, 0.30);
    color: var(--yellow);
    font-size: 0.75rem;
    font-weight: 1000;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.casino-slot-jackpot,
.casino-slot-stat {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(10, 14, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-light);
    font-weight: 900;
}

.casino-slot-body {
    position: relative;
    padding: 0.9rem 1rem 1rem;
}

.casino-slot-title {
    font-weight: 1000;
    letter-spacing: 0.2px;
}

.casino-slot-sub {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.casino-slot-desc {
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.35;
    padding-right: 110px;
}

.casino-slot-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 179, 1, 0.35);
    background: rgba(245, 179, 1, 0.12);
    color: var(--yellow);
    font-size: 0.8rem;
    font-weight: 1000;
    letter-spacing: 0.2px;
    text-decoration: none;
    cursor: pointer;
}

.casino-slot:hover .casino-slot-play {
    border-color: rgba(245, 179, 1, 0.55);
    background: rgba(245, 179, 1, 0.16);
}

.casino-bottom {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.casino-bottom-info {
    color: var(--text-muted);
    font-weight: 900;
}

@media (max-width: 1100px) {
    .casino-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .casino-banner-img {
        height: 170px;
    }

    .casino-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .casino-pager {
        width: 100%;
        justify-content: space-between;
    }

    .casino-grid {
        grid-template-columns: 1fr;
    }
}

/* Card wrapper */
.leaderboard-card {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    overflow: hidden;
    color: var(--text-light);
    font-family: inherit;
}

/* Header row (matches your "section-header-row" concept) */
.leaderboard-card .leaderboard-header {
    gap: 1rem;
    padding: 0 0 1rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

/* Controls container */
.leaderboard-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* Tabs */
.leaderboard-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
}

.lb-tab {
    appearance: none;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.lb-tab:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
    color: var(--text-light);
}

.lb-tab:active {
    transform: translateY(1px);
}

.lb-tab.active,
.lb-tab[aria-selected="true"] {
    background: var(--yellow);
    border-color: rgba(245, 179, 1, 0.45);
    color: #111;
}

/* Sort */
.leaderboard-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.lb-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.lb-select {
    background: var(--bg-panel);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.lb-select:focus {
    border-color: rgba(245, 179, 1, 0.45);
    box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.12);
}

/* Search */
.leaderboard-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    min-width: 220px;
    max-width: 360px;
    flex: 1;
}

.leaderboard-search i {
    color: var(--text-muted);
    font-size: 14px;
}

.lb-search-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-light);
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.lb-search-input::placeholder {
    color: var(--text-muted);
}

/* Your sticky "you" row wrapper */
.leaderboard-you {
    padding: 0;
    margin-top: 1rem;
}

.lb-row {
    display: grid;
    grid-template-columns: 72px 1.2fr 1fr 160px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    transition: all 0.2s ease;
}

.lb-row:hover {
    border-color: rgba(245, 179, 1, 0.3);
    background: var(--bg-hover);
}

.lb-row:active {
    transform: translateY(1px);
}

/* Sticky feeling (optional) */
.lb-row.is-sticky {
    position: sticky;
    top: 10px;
    z-index: 3;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Rank badge */
.lb-rank {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-rank-badge {
    font-family: var(--lb-mono);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-light);
    min-width: 58px;
    text-align: center;
}

.lb-rank-badge.crown {
    background: rgba(245, 179, 1, 0.12);
    border-color: rgba(245, 179, 1, 0.30);
    color: var(--yellow);
}

.lb-rank-badge.silver {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
}

.lb-rank-badge.bronze {
    background: rgba(230, 126, 34, 0.10);
    border-color: rgba(230, 126, 34, 0.22);
    color: var(--text-light);
}

/* Player block */
.lb-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lb-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.lb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lb-avatar-emoji {
    font-size: 18px;
    opacity: 0.95;
}

.lb-level-badge {
    position: absolute;
    right: -6px;
    bottom: -6px;
    font-family: var(--lb-mono);
    font-size: 10px;
    padding: 5px 7px;
    border-radius: 999px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

/* Name + title */
.lb-player-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lb-name {
    font-size: 1rem;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Metrics */
.lb-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    gap: 10px;
    align-items: center;
}

.lb-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
}

.lb-metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.lb-metric-value {
    font-family: var(--lb-mono);
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--text-light);
}

/* Badges */
.lb-badges {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.lb-badge {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    font-size: 16px;
    transition: all 0.2s ease;
}

.lb-badge:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 179, 1, 0.45);
}

/* Head row (desktop) */
.leaderboard-head {
    display: grid;
    grid-template-columns: 72px 1.2fr 1fr 160px;
    gap: 12px;
    padding: 10px 12px;
    margin-top: 1rem;
    border-radius: 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lb-col {
    display: flex;
    align-items: center;
}

span.lb-col {
    font-size: 0.9rem;
}

/* List container */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    margin-top: 0.75rem;
}

/* Highlight current user */
.lb-row.is-you {
    border-color: rgba(52, 152, 219, 0.35);
    background: linear-gradient(135deg, var(--bg-panel), rgba(52, 152, 219, 0.10));
}

.lb-row.is-you .lb-rank-badge {
    border-color: rgba(52, 152, 219, 0.35);
}

/* Top 3 vibes */
.lb-row.is-top1 {
    border-color: rgba(245, 179, 1, 0.28);
    box-shadow: none;
}

.lb-row.is-top2 {
    border-color: rgba(255, 255, 255, 0.14);
}

.lb-row.is-top3 {
    border-color: rgba(230, 126, 34, 0.22);
}

/* Footer */
.leaderboard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 1rem 0 0;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    background: transparent;
}

.lb-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
}

.lb-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.lb-page-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lb-page-btn:hover {
    border-color: rgba(245, 179, 1, 0.45);
    background: var(--bg-hover);
}

.lb-page-btn:active {
    transform: translateY(1px);
}

.lb-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: var(--border-color);
}

/* Responsive */
@media (max-width: 900px) {
    .leaderboard-controls {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .leaderboard-search {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .leaderboard-card {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .leaderboard-card .leaderboard-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .leaderboard-card .see-all-link {
        margin-left: 0;
    }

    .leaderboard-head {
        display: none;
    }

    .lb-row {
        grid-template-columns: 70px 1fr;
        grid-template-areas:
            "rank player"
            "metrics metrics"
            "badges badges";
    }

    .lb-rank {
        grid-area: rank;
        justify-content: flex-start;
    }

    .lb-player {
        grid-area: player;
    }

    .lb-metrics {
        grid-area: metrics;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lb-badges {
        grid-area: badges;
        justify-content: flex-start;
    }

    .leaderboard-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .lb-pagination {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .leaderboard-card {
        padding: 0.75rem;
    }
}

@media (max-width: 380px) {
    .leaderboard-search {
        min-width: 0;
    }

    .lb-metric {
        padding: 7px 8px;
    }

    .lb-badge {
        width: 32px;
        height: 32px;
        border-radius: 11px;
    }
}

/* ==================== ACCOUNT ==================== */
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

/* ==================== INVENTAR ==================== */
.inventar-card {
    grid-column: 1 / -1;
}

.inventar-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inventar-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.inventar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 0.75rem;
}

.inventar-slot {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.inventar-slot.is-empty {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border-style: dashed;
    opacity: 0.85;
}

.inventar-item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem;
    background: transparent;
    border: 0;
    color: var(--text-light);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.inventar-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.inventar-item:focus-visible {
    outline: 3px solid rgba(245, 179, 1, 0.35);
    outline-offset: -3px;
}

.inventar-item--empty {
    cursor: default;
}

.inventar-item--empty:hover {
    background: transparent;
    transform: none;
}

.inventar-item-icon {
    font-size: 1.7rem;
    line-height: 1;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

.inventar-item-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

.inventar-item-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    line-height: 1.15;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inventar-item-qty {
    position: absolute;
    right: 8px;
    bottom: 8px;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(245, 179, 1, 0.14);
    border: 1px solid rgba(245, 179, 1, 0.22);
    color: var(--yellow);
    font-size: 0.75rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-overview {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-card), rgba(52, 152, 219, 0.06));
    border-color: rgba(255, 255, 255, 0.10);
}

.account-overview-body {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 1.25rem;
    align-items: center;
}

.account-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--yellow);
    background: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(245, 179, 1, 0.2);
}

.account-avatar svg {
    width: 100%;
    height: 100%;
}

.account-meta {
    min-width: 0;
}

.account-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.account-name {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(245, 179, 1, 0.10);
    border: 1px solid rgba(245, 179, 1, 0.22);
    color: var(--yellow);
    font-size: 0.8rem;
    font-weight: 900;
}

.account-sub {
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.account-stats {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.account-stat {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    min-width: 0;
}

.account-stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.account-stat-value {
    display: block;
    margin-top: 0.25rem;
    font-weight: 1000;
    color: var(--text-light);
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
    justify-self: end;
}

.account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--btn-height);
    min-width: var(--btn-min-width);
    padding: 0 1rem;
    border-radius: var(--btn-radius);
    background: var(--yellow);
    color: var(--bg-dark);
    font-weight: 900;
    font-size: 0.9rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.account-form-actions .account-btn {
    flex: 1 1 var(--btn-min-width);
}

.account-btn:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.account-btn:active {
    transform: translateY(0);
}

.account-btn--secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.account-btn--secondary:hover {
    background: var(--bg-hover);
    border-color: rgba(245, 179, 1, 0.25);
}

.account-btn:focus-visible {
    outline: 3px solid rgba(245, 179, 1, 0.35);
    outline-offset: 3px;
}

/* Form */
.account-form {
    display: grid;
    gap: 0.9rem;
}

.account-field {
    display: grid;
    gap: 0.4rem;
}

.account-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.account-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    color: var(--text-light);
    outline: none;
}

.account-input:focus {
    border-color: rgba(245, 179, 1, 0.45);
    box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.12);
}

.account-textarea {
    resize: vertical;
    min-height: 110px;
}

.account-help {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.account-form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

/* Security list */
.account-security {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.account-security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.account-security-title {
    font-weight: 1000;
}

.account-security-desc {
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.account-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

.account-link:hover {
    color: var(--yellow);
}

.account-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--btn-height);
    min-width: var(--btn-action-min-width);
    padding: 0 0.8rem;
    border-radius: var(--btn-radius);
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-light);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.account-action-btn:hover {
    background: var(--bg-hover);
    border-color: rgba(245, 179, 1, 0.35);
    color: var(--yellow);
    transform: translateY(-1px);
}

.account-action-btn:active {
    transform: translateY(0);
}

.account-action-btn:focus-visible {
    outline: 3px solid rgba(245, 179, 1, 0.35);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .account-overview-body {
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "avatar meta"
            "actions actions";
    }

    .account-avatar {
        width: 80px;
        height: 80px;
    }

    .account-actions {
        flex-direction: row;
        justify-self: start;
    }

    .account-stats {
        grid-template-columns: 1fr;
    }
}

/* ==================== LOGIN ==================== */
.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.login-logo {
    width: min(220px, 70%);
    height: auto;
    filter: drop-shadow(0 0 14px rgba(245, 179, 1, 0.22));
    z-index: 999;
    top: 0px;
}

.login-container {
    width: min(520px, 100%);
    background: linear-gradient(135deg, var(--bg-card), rgba(245, 179, 1, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(600px 220px at 20% 10%, rgba(245, 179, 1, 0.18), transparent 60%),
        radial-gradient(520px 240px at 80% 0%, rgba(52, 152, 219, 0.14), transparent 58%);
    pointer-events: none;
    z-index: 0;
}

.login-container > * {
    position: relative;
    z-index: 1;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 1000;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.login-form {
    display: grid;
    gap: 0.9rem;
}

.login-field {
    display: grid;
    gap: 0.4rem;
}

.login-field label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.login-field input {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(10, 14, 20, 0.35);
    color: var(--text-light);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-field input:focus {
    background: rgba(10, 14, 20, 0.55);
    border-color: rgba(245, 179, 1, 0.45);
    box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.12);
}

.login-button {
    margin-top: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--btn-height);
    width: 100%;
    padding: 0 1rem;
    border-radius: var(--btn-radius);
    background: var(--yellow);
    color: var(--bg-dark);
    font-weight: 1000;
    font-size: 0.95rem;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.login-button:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:focus-visible {
    outline: 3px solid rgba(245, 179, 1, 0.35);
    outline-offset: 3px;
}

.login-footer {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.login-footer a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 900;
}

.login-footer a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.35rem;
        border-radius: 16px;
    }

    .login-logo {
        width: min(200px, 78%);
    }

    .login-title {
        font-size: 1.35rem;
    }
}
