.mobile-only {
    display: none !important;
}

.mobile-label {
    display: none;
    font-weight: 600;
    color: #8b95a5;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-right: 0.5rem;
}

:root {
    --bg-dark: #0f111a;
    --glass-bg: rgba(20, 24, 39, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #6d28d9;
    --primary-hover: #7c3aed;
    --accent: #00f2fe;
    --success: #10b981;
    --danger: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-family: 'Outfit', sans-serif;
}

.badge {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.badge-total {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.15) 0%, rgba(20, 24, 39, 0.4) 100%);
    color: var(--accent) !important;
    border: 1px solid #636b48;
    padding: 0.4rem 0.8rem !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

.badge-total:hover {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.25) 0%, rgba(20, 24, 39, 0.6) 100%);
    border-color: var(--accent);
    transform: scale(1.05);
}

.badge-total::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.4; transform: scale(0.8); }
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid rgba(0,0,0,0.5);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
}

.account-notification-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    margin-left: 6px;
    box-shadow: 0 0 5px #ef4444;
}

/* --- PREMIUM THEMES --- */




body.theme-classic {
    --bg-dark: #171a21;
    --primary: #2a475e;
    --primary-hover: #1b2838;
    --accent: #66c0f4;
}

body.theme-classic .settings-select,
body.theme-classic .settings-input,
body.theme-classic option {
    background: #171a21 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}



body.theme-forest {
    --bg-dark: #3e4637; /* Darker base */
    --primary: #7c834a;
    --primary-hover: #4e5939;
    --accent: #c4b550;
    --text-main: #ffffff;
    --glass-bg: #4e5939; /* The iconic 2002 olive */
    --glass-border: #636b48;
    --font-family: 'Tahoma', 'Verdana', sans-serif;
}

body.theme-ocean {
    --bg-dark: #0a192f;
    --primary: #00b4d8;
    --primary-hover: #0096c7;
    --accent: #90e0ef;
}

body.theme-ocean .settings-select,
body.theme-ocean .settings-input,
body.theme-ocean option {
    background: #0a192f !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

body.theme-store-classic {
    --bg-dark: #1b2838;
    --primary: #67c1f5;
    --primary-hover: #417a9b;
    --accent: #c7d5e0;
    --text-main: #ffffff;
    --glass-bg: #171a21;
    --glass-border: #2a475e;
    --font-family: 'Segoe UI', system-ui, sans-serif;
}



/* --- AUTHENTIC FOREST STRUCTURAL OVERRIDES --- */
body.theme-forest {
    --font-family: 'Segoe UI', system-ui, sans-serif;
    --glass-bg: #3c432b;
    --glass-border: #808080;
}

body.theme-forest .blob {
    display: none;
}

body.theme-forest .glass-container,
body.theme-forest .glass-panel,
body.theme-forest .game-card,
body.theme-forest .account-item,
body.theme-forest button,
body.theme-forest input,
body.theme-forest .modal,
body.theme-forest .settings-select,
body.theme-forest .account-card,
body.theme-forest .steam-level-badge,
body.theme-forest .btn-icon,
body.theme-forest .badge-total {
    border-radius: 2px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

body.theme-forest .glass-nav {
    background: #000000 !important; /* Authentic 2002 black header */
    border-bottom: 2px solid #636b48;
}

body.theme-forest .sidebar {
    border-right: 1px solid #636b48;
    background: #4c5844; /* Retro sidebar */
}

body.theme-forest .main-content {
    background: #4c5844; /* Retro main content */
}

body.theme-forest .game-card {
    background: #3e4637 !important;
    border: 1px solid #636b48 !important;
}

body.theme-forest .game-card:hover {
    background: #4e5939;
    border-color: var(--accent);
}

body.theme-forest .btn-primary {
    background: linear-gradient(to bottom, #7c834a 0%, #5e6538 100%) !important;
    border: 1px solid #4a5435 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1) !important;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
}

body.theme-forest .btn-primary:hover {
    background: linear-gradient(to bottom, #8a9155 0%, #6a7140 100%) !important;
    transform: none !important; /* No floating on hover */
}

body.theme-forest h1, 
body.theme-forest h2, 
body.theme-forest h3 {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: var(--text-main) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

body.theme-forest .account-card {
    background: #3e4637 !important;
    border: 1px solid #636b48 !important;
    color: #ffffff !important;
}

body.theme-forest .account-card-header,
body.theme-forest .account-card-actions {
    border-color: #636b48 !important;
}

body.theme-forest .btn-outline-dark {
    border-radius: 2px !important;
    border-color: #555c3c !important;
    background: #353d26 !important;
    color: #c4b550 !important;
}

body.theme-forest .btn-outline-dark:hover {
    background: #4a5435 !important;
    border-color: var(--accent) !important;
}

body.theme-forest .avatar-placeholder {
    border-radius: 2px !important;
    border: 2px solid #555c3c !important;
}

body.theme-forest .avatar-placeholder.running {
    box-shadow: 0 0 10px rgba(193, 209, 90, 0.4) !important;
    border-color: #c1d15a !important;
}

body.theme-forest .settings-block {
    border: 1px solid #636b48 !important;
    background: #3d442a !important;
    border-radius: 2px !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

body.theme-forest .settings-title {
    color: var(--accent) !important;
    font-weight: 800 !important;
}

body.theme-forest .settings-input,
body.theme-forest .settings-select {
    border-radius: 2px !important;
    border: 1px solid #636b48 !important;
    background: #2a3118 !important;
}

body.theme-forest .account-card-row.hdr {
    color: #7c834a !important;
}

/* --- AUTHENTIC 2013 STORE STRUCTURAL OVERRIDES --- */
body.theme-store-classic .blob {
    display: none;
}

body.theme-store-classic .glass-container,
body.theme-store-classic .glass-panel,
body.theme-store-classic .game-card,
body.theme-store-classic .account-item,
body.theme-store-classic button,
body.theme-store-classic input,
body.theme-store-classic .modal,
body.theme-store-classic .settings-select,
body.theme-store-classic .account-card,
body.theme-store-classic .settings-modal-header,
body.theme-store-classic .settings-modal-footer,
body.theme-store-classic .account-card-header,
body.theme-store-classic .account-card-actions {
    border-radius: 4px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.theme-store-classic .glass-nav {
    background: linear-gradient(to bottom, #1b2838 0%, #171a21 100%) !important;
    border-bottom: 2px solid #2a475e;
}

body.theme-store-classic .sidebar {
    background: #171a21;
    border-right: 1px solid #2a475e;
}

body.theme-store-classic .main-content {
    background: #1b2838;
}

body.theme-store-classic .game-card {
    background: #171a21 !important;
    border: 1px solid #2a475e !important;
}

body.theme-store-classic .game-card:hover {
    background: #2a475e !important;
}

body.theme-store-classic .btn-primary {
    background: linear-gradient(to bottom, #67c1f5 0%, #417a9b 100%) !important;
    border: 1px solid #2a475e !important;
}

body.theme-store-classic .btn-primary:hover {
    background: linear-gradient(to bottom, #80ccf7 0%, #4f92ba 100%) !important;
    transform: translateY(-1px);
}

body.theme-store-classic .account-card {
    background: #171a21 !important;
    border: 1px solid #2a475e !important;
}

body.theme-store-classic .settings-modal-footer {
    background: #1b2838 !important;
    border-color: #2a475e !important;
}

body.theme-store-classic .settings-select,
body.theme-store-classic .settings-input,
body.theme-store-classic option {
    background: #171a21 !important;
    color: #ffffff !important;
    border: 1px solid #2a475e !important;
}

body.theme-store-classic .settings-block {
    background: #1b2838 !important;
    border: 1px solid #2a475e !important;
}

body.theme-store-classic .btn-outline-dark {
    background: rgba(103, 193, 245, 0.1) !important;
    border-color: #2a475e !important;
    color: #67c1f5 !important;
}

body.theme-store-classic .btn-outline-dark:hover {
    background: rgba(103, 193, 245, 0.2) !important;
    border-color: #67c1f5 !important;
    color: #ffffff !important;
}

body.theme-store-classic .btn-secondary {
    background: #2a475e !important;
    border: 1px solid #3d6c8d !important;
    color: #c7d5e0 !important;
}

body.theme-store-classic .btn-secondary:hover {
    background: #3d6c8d !important;
    color: #ffffff !important;
}

body.theme-store-classic #delete-account-btn:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: #f87171 !important;
    color: #ffffff !important;
}

body.theme-forest .settings-modal-header {
    background: #000000 !important;
}

body.theme-forest .settings-modal-content,
body.theme-forest .settings-modal-footer {
    background: #4e5939 !important;
}

body.theme-forest .btn-secondary {
    border-radius: 2px !important;
    border-color: #636b48 !important;
    background: #3d442a !important;
    color: #ffffff !important;
}

body.theme-forest .btn-secondary:hover {
    background: #4e5939 !important;
    border-color: var(--accent) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: rgba(15, 17, 26, 0.4); /* Subtle dark overlay for readability */
    backdrop-filter: blur(2px); /* Very subtle blur */
}

/* Background Blobs for Glassmorphism effect */
.blob {
    position: fixed;
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.4) 0%, rgba(15, 17, 26, 0) 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.3) 0%, rgba(15, 17, 26, 0) 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(15, 17, 26, 0) 70%);
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Glass Panels */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Typography & Layouts */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Login Page specific */
.login-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.steam-icon {
    width: 40px;
    height: 40px;
    color: var(--text-main);
}

.steam-icon.sm {
    width: 28px;
    height: 28px;
}

/* Forms & Inputs */
.input-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.2);
}

/* Buttons */
button {
    font-family: inherit;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), #4c1d95);
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 10px 15px -3px rgba(109, 40, 217, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(109, 40, 217, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.5);
    padding: 0.75rem 1.5rem;
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 0.75rem 1.5rem;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

.btn-danger.btn-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Dashboard Nav */
.glass-nav {
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#user-display {
    color: var(--text-muted);
    font-weight: 600;
}

/* Dashboard Layout */
.dashboard-layout {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar */
.sidebar {
    padding: 1.5rem;
    height: calc(100vh - 120px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-item {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.account-item.active {
    background: rgba(109, 40, 217, 0.15);
    border-color: rgba(109, 40, 217, 0.5);
}

.account-name {
    font-weight: 600;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-indicator.running {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-indicator.error {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

.status-indicator.warning {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

/* Main Content */
.main-content {
    padding: 2.5rem;
    min-height: calc(100vh - 120px);
}

.empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 1rem;
    opacity: 0.5;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.1);
}

.status-badge.running {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.control-panel {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Games Section */
.add-game-form {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.add-game-form input {
    flex: 1;
    margin: 0;
}

.add-game-form button {
    width: auto;
    padding: 0 2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.game-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Change to stretch to allow vertical growth */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-height: 120px; /* Ensure consistent height across cards */
}

.game-card:hover {
    border-color: var(--primary);
    background: rgba(109, 40, 217, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.game-card-main {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    flex: 1;
}

.game-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
}

.game-title {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.game-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge-container {
    margin-top: auto; /* Pushes the badge to the bottom of .game-info */
    display: flex;
    padding-top: 0.75rem;
}

.delete-game-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.delete-game-btn:hover {
    color: var(--danger);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /* Ensure some spacing on very small screens */
}

.modal {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    /* Stay within viewport height */
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    margin: 1rem 0;
    padding-right: 0.5rem;
    /* Space for scrollbar */
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0 1.5rem;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.settings-modal-header,
.settings-modal-footer {
    background: #141824;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utilities */
.error-msg {
    color: var(--danger);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 20px;
}

/* Dashboard Stats Table (Replaced with Account Card Layout) */
.account-card {
    background: #141824;
    /* Match dark theme */
    border: 1px solid #2a3143;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
}

/* Auto-Reply Styling */
.auto-reply-block {
    margin-top: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease;
}

.auto-reply-textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.auto-reply-actions {
    display: flex;
    gap: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #2a3143;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-card-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.account-card-plan {
    color: #8b95a5;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.btn-renew {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);

    .badge-star {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        background: rgba(100, 108, 255, 0.2);
        color: #a6adff;
        border-radius: 50%;
        font-size: 0.75rem;
        margin-left: 0.5rem;
        vertical-align: middle;
    }

    color: #8b95a5;
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    margin-left: 1rem;
    cursor: pointer;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    transition: all 0.2s;
}

.btn-renew:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.account-card-table {
    padding: 1rem 1.5rem;
}

.account-card-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    align-items: center;
    font-size: 0.95rem;
}

.account-card-row.hdr {
    color: #8b95a5;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.col-username {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Avatar styles moved and consolidated below */

.col-timeleft.highlight-blue {
    color: #61b0ff;
    font-weight: 600;
}

.account-card-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid #2a3143;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-outline-dark {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Global Stop Button Style - Red in all themes */
#stop-bot-btn {
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

#stop-bot-btn:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #f87171 !important;
    color: #ffffff !important;
}

#stop-bot-btn svg {
    color: #f87171 !important;
}

#stop-bot-btn:hover svg {
    color: #ffffff !important;
}

.btn-outline-dark svg {
    opacity: 0.7;
}

#chart-container {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(20, 24, 39, 0.4);
}

#chart-container:hover {
    border-color: rgba(109, 40, 217, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    display: inline-block;
}

.status-dot.running {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-dot.starting {
    background: var(--warning);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.status-dot.warning {
    background: var(--warning);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.status-dot.error {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

.status-dot.starting {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4rem;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.avatar-placeholder.running {
    border-color: var(--success);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.avatar-placeholder.starting,
.avatar-placeholder.warning {
    border-color: var(--warning);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.avatar-placeholder.error {
    border-color: var(--danger);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.avatar-placeholder:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.steam-level-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #66c0f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.steam-level-badge.tier-0 { border-color: #9b9b9b; }
.steam-level-badge.tier-1 { border-color: #c02942; }
.steam-level-badge.tier-2 { border-color: #d95b43; }
.steam-level-badge.tier-3 { border-color: #fece3e; }
.steam-level-badge.tier-4 { border-color: #4b8537; }
.steam-level-badge.tier-5 { border-color: #2980b9; }
.steam-level-badge.tier-6 { border-color: #8e44ad; }

/* Modal Pills & List Mode */
.selected-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-height: 80px;
    max-height: 220px;
    overflow-y: auto;
    align-content: flex-start;
    margin-bottom: 1.5rem;
}

.game-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.pill-remove {
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    padding: 0 0.2rem;
    transition: color 0.15s;
}

.pill-remove:hover {
    color: white;
}

.list-mode .game-card {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    margin-bottom: 0;
}

.list-mode .game-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.list-mode .game-card.selected {
    opacity: 0.5;
    pointer-events: none;
    border-color: transparent;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Settings Modal UI */
.settings-modal-content {
    background: #141824;
    border: 1px solid #2a3143;
}

.settings-premium-banner {
    background: linear-gradient(90deg, rgba(67, 56, 202, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-premium {
    background: linear-gradient(90deg, #6d28d9 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.settings-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.settings-block-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.settings-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #e2e8f0;
}

.settings-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.settings-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    margin: 0;
}

.settings-controls-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-controls-row {
    display: flex;
    gap: 0.5rem;
}

.settings-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

/* iOS Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #6d28d9;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Custom Search Dropdown */
.search-dropdown-container {
    position: relative;
    width: 100%;
}

.search-input-fancy {
    width: 100%;
    background: #1a1d2d;
    border: 1px solid #5c6bc0;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.2s;
    font-family: inherit;
}

.search-input-fancy:focus {
    box-shadow: 0 0 0 2px rgba(92, 107, 192, 0.4);
}

.search-dropdown-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-dropdown-list {
    position: relative;
    width: 100%;
    z-index: 10;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: background 0.2s;
}

.search-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.search-dropdown-item-add {
    color: var(--text-muted);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-weight: 300;
}

.search-dropdown-item-add:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Logs Modal */
.logs-modal-wide {
    max-width: 900px !important;
    width: 90% !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.logs-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    height: 400px;
    overflow-y: auto;
    margin: 1.5rem 0;
    padding: 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
}

.log-item {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    gap: 1rem;
    line-height: 1.4;
    border-left: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.log-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.log-item:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-muted);
    min-width: 140px;
    white-space: nowrap;
    font-size: 0.8rem;
}

.log-level {
    font-weight: 800;
    text-transform: uppercase;
    min-width: 70px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Level Specifics */
.log-info { border-left-color: var(--accent); }
.log-info .log-level { color: var(--accent); }

.log-success { border-left-color: var(--success); }
.log-success .log-level { color: var(--success); }

.log-warning { border-left-color: #fbbf24; }
.log-warning .log-level { color: #fbbf24; }

.log-error { border-left-color: var(--danger); }
.log-error .log-level { color: var(--danger); }

.log-debug { border-left-color: #94a3b8; opacity: 0.8; }
.log-debug .log-level { color: #94a3b8; }

.log-message {
    color: #e2e8f0;
    word-break: break-word;
    flex: 1;
}

.log-account {
    color: var(--accent);
    font-weight: 700;
    margin-right: 0.5rem;
    background: rgba(102, 192, 244, 0.1);
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.empty-logs {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        padding: 0 0.75rem;
        margin: 1rem auto;
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        height: auto;
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        width: 100%;
    }

    .main-content {
        padding: 1rem;
        min-height: auto;
        width: 100%;
    }

    .nav-content {
        padding: 0.75rem 1rem;
    }

    .nav-actions {
        position: relative;
    }

    .mobile-only {
        display: flex !important;
        width: 44px !important;
        height: 44px !important;
        padding: 8px !important;
    }

    #menu-toggle svg {
        width: 24px;
        height: 24px;
    }

    .nav-buttons {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: #1a1f2e;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 0.75rem;
        gap: 0.5rem;
        z-index: 100;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        min-width: 180px;
        margin-top: 0.5rem;
    }

    .nav-buttons.show {
        display: flex;
    }

    .nav-buttons button {
        width: 100%;
        justify-content: flex-start;
        padding: 0.8rem 1rem;
    }

    #chart-container {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 1.75rem;
    }

    .login-container {
        padding: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .control-panel {
        flex-direction: column;
        gap: 0.5rem;
    }

    .add-game-form {
        flex-direction: column;
    }

    .add-game-form button {
        width: 100%;
    }

    .modal {
        padding: 1.5rem;
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
        overflow-y: auto;
    }

    .modal-actions {
        flex-direction: column;
    }

    .settings-block-header {
        flex-direction: column;
        gap: 1.25rem;
    }

    .settings-block-header > div:last-child {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .settings-block-header .settings-controls-row {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }

    .settings-block-header .settings-controls-row select {
        flex: 1;
        min-width: 0; /* Prevent overflow */
    }

    .settings-select {
        width: 100% !important;
        font-size: 0.85rem;
    }

    .logs-modal-wide {
        width: 98% !important;
    }

    .log-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .log-time {
        font-size: 0.75rem;
    }

    .account-card-row.hdr {
        display: none;
    }

    .account-card-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 0;
        border-bottom: 1px solid #2a3143;
    }

    .account-card-row:last-child {
        border-bottom: none;
    }

    .account-card-actions {
        justify-content: center;
        padding: 1rem;
    }

    .account-card-actions .btn-outline-dark {
        padding: 0.5rem;
        font-size: 0;
        /* Hide text but keep icon */
        min-width: 36px;
        justify-content: center;
    }

    .account-card-actions .btn-outline-dark svg {
        margin: 0;
        opacity: 1;
    }

    .mobile-label {
        display: inline;
    }

    .col-username {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 0.5rem;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .col-games,
    .col-uptime,
    .col-timegained {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .detail-header .btn-primary {
        width: 100%;
    }

    .header-content {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    #chart-container h3 {
        font-size: 1rem;
    }

    #playtime-chart {
        height: 180px !important;
    }
}

/* Games Sorting UI */
.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.games-header h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin: 0;
}

.games-sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.games-sort label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.settings-select.sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

@media (max-width: 640px) {
    .games-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .games-sort {
        width: 100%;
        justify-content: space-between;
    }
    
    .games-sort select {
        flex: 1;
        max-width: 200px;
    }
}

/* --- PROFILE BANS --- */
.bans-section {
    padding: 2rem;
    background: rgba(15, 17, 26, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    height: 100%;
}

.bans-section h3 {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.bans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 4rem;
}

.ban-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ban-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #00ffaa;
    transition: all 0.3s ease;
}

.ban-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.vac-text {
    font-size: 0.65rem;
    font-weight: 900;
    margin-top: -4px;
    letter-spacing: 0.5px;
}

.ban-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ban-label {
    font-size: 0.9rem;
    color: #8b95a5;
    font-weight: 600;
}

.ban-status {
    font-size: 1.1rem;
    font-weight: 800;
    color: #00ffaa;
    letter-spacing: -0.01em;
}

.ban-status.banned {
    color: #ff4d4d;
}

.ban-icon-wrapper.banned {
    color: #ff4d4d;
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

@media (max-width: 900px) {
    .bans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- STATS ROW --- */
.stats-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stats-row > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- BADGES SECTION --- */
.badges-section {
    padding: 2rem;
    background: rgba(15, 17, 26, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.badges-section h3 {
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.badges-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.badge-item {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: help;
}

.badge-item:hover {
    transform: translateY(-8px) scale(1.1);
}

.badge-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

@media (max-width: 1200px) {
    .stats-row {
        flex-direction: column;
    }
}
