/* dbd-hub/assets/css/style.css */
:root {
    --bg-main: #0c0d0e;
    --bg-card: #141618;
    --bg-card-hover: #1c1f22;
    --bg-card-inner: #101113;
    --text-main: #f0f0f0;
    --text-muted: #9ba1a6;
    --accent-red: #c9182b;
    --accent-red-hover: #e51d34;
    --accent-red-glow: rgba(201, 24, 43, 0.35);
    --border-color: #26292d;
    --border-color-hover: #3d4248;
    
    --steam-color: #1b2838;
    --steam-hover: #2a475e;
    --steam-blue: #66c0f4;
    
    --color-fast: #10b981;
    --color-moderate: #f59e0b;
    --color-slow: #ef4444;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-red: 0 0 25px rgba(201, 24, 43, 0.25);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(201, 24, 43, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 100% 50%, rgba(30, 35, 45, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 0% 80%, rgba(20, 20, 25, 0.3) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

main.container {
    flex: 1;
    padding-bottom: 60px;
}

/* Utilities */
.text-red {
    color: var(--accent-red);
}

/* Navbar */
.navbar {
    background: rgba(12, 13, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.02);
}

.logo i {
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-red-glow);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: #fff;
    background: rgba(201, 24, 43, 0.15);
    border: 1px solid rgba(201, 24, 43, 0.4);
}

/* Nav Auth (Steam) */
.nav-auth {
    display: flex;
    align-items: center;
}

.btn-steam-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #171a21 0%, #1b2838 100%);
    color: #e5e5e5;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid #2a475e;
    transition: all 0.2s;
}

.btn-steam-login:hover {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(102, 192, 244, 0.3);
    border-color: var(--steam-blue);
}

.btn-steam-login i {
    color: var(--steam-blue);
    font-size: 1.1rem;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px 10px 4px 6px;
    border-radius: 30px;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--accent-red);
}

.nav-username {
    font-size: 0.88rem;
    font-weight: 600;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-nav-logout {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px;
    transition: color 0.2s;
}

.btn-nav-logout:hover {
    color: var(--accent-red);
}

/* Page Headers */
.page-header {
    margin: 35px 0 25px;
    text-align: center;
    position: relative;
}

.live-pulse-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 24, 43, 0.12);
    border: 1px solid rgba(201, 24, 43, 0.3);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ff4d61;
    margin-bottom: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d61;
    box-shadow: 0 0 10px #ff4d61;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(180deg, rgba(20, 22, 25, 0.9) 0%, rgba(14, 15, 17, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px 30px;
    text-align: center;
    margin: 30px 0 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-red-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #d0d0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    background: var(--accent-red);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(201, 24, 43, 0.3);
}

.btn:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 24, 43, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    box-shadow: none;
    color: #e5e5e5;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-color-hover);
    box-shadow: none;
    color: #fff;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-card);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-red);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), var(--shadow-red);
}

.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.icon-queues { background: rgba(201, 24, 43, 0.15); color: var(--accent-red); }
.icon-steam { background: rgba(102, 192, 244, 0.15); color: var(--steam-blue); }
.icon-builds { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.icon-wiki { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    flex: 1;
    margin-bottom: 15px;
}

.card-arrow {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

/* ==========================================================
   QUEUES PAGE STYLING
   ========================================================== */
.queue-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    background: var(--bg-card);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.region-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    color: #fff;
    border-color: var(--border-color-hover);
    background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
    box-shadow: 0 2px 10px rgba(201, 24, 43, 0.3);
}

.queue-refresh-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.last-updated-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-color-hover);
}

.queue-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.server-queue-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.server-queue-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.server-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.server-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 26px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #e5e5e5;
    flex-shrink: 0;
    text-transform: uppercase;
}

.server-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.server-code {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.server-status-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.server-status-pill.online {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-fast);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.server-status-pill.offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-slow);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.queue-roles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.role-queue-box {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.role-icon-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.survivor-box .role-icon-title i { color: #60a5fa; }
.killer-box .role-icon-title i { color: var(--accent-red); }

.queue-duration {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
}

.time-fast { color: var(--color-fast); }
.time-moderate { color: var(--color-moderate); }
.time-slow { color: var(--color-slow); }

.event-queue-row {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.event-tag {
    color: #f59e0b;
    font-weight: 600;
}

.event-times {
    display: flex;
    gap: 8px;
    color: var(--text-main);
    font-weight: 600;
}

.server-footer-rec {
    margin-top: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.badge-surv { background: rgba(96, 165, 250, 0.15); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.3); }
.badge-killer { background: rgba(201, 24, 43, 0.15); color: #f87171; border: 1px solid rgba(201, 24, 43, 0.3); }
.badge-balanced { background: rgba(156, 163, 175, 0.15); color: #d1d5db; border: 1px solid rgba(156, 163, 175, 0.3); }
.badge-demo { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-country { background: rgba(255, 255, 255, 0.08); color: #e5e5e5; border: 1px solid var(--border-color); }

.offline-state-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 25px;
    text-align: center;
    color: var(--text-muted);
}

.offline-state-box i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-state i {
    font-size: 2.2rem;
    color: var(--accent-red);
    margin-bottom: 15px;
}

/* Map Chances */
.map-chances-container {
    padding: 30px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-chance-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

.map-chance-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.map-chance-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #202428;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red) 0%, #ff4d61 100%);
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* ==========================================================
   STEAM STATS PAGE
   ========================================================== */
.stats-search-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.stats-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.search-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-wrap input {
    width: 100%;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    padding: 10px 14px 10px 38px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.search-input-wrap input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red-glow);
}

.stats-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-steam-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #171a21 0%, #1b2838 100%);
    color: #fff;
    border: 1px solid #2a475e;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-steam-action:hover {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border-color: var(--steam-blue);
}

.btn-demo-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-demo-action:hover, .btn-demo-action.active {
    color: #fff;
    border-color: var(--border-color-hover);
    background: rgba(255, 255, 255, 0.1);
}

.alert-box {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    font-size: 0.92rem;
}

.alert-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.alert-box.info {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #93c5fd;
}

.alert-icon {
    font-size: 1.4rem;
    margin-top: 2px;
}

/* Profile Banner */
.profile-banner-card {
    background: linear-gradient(135deg, rgba(27, 40, 56, 0.6) 0%, rgba(20, 22, 25, 0.9) 100%);
    border: 1px solid #2a475e;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-info-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-large-avatar {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--steam-blue);
    box-shadow: 0 0 15px rgba(102, 192, 244, 0.3);
}

.profile-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.profile-steamid {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.profile-steam-link {
    color: var(--steam-blue);
    text-decoration: none;
}

.profile-steam-link:hover {
    text-decoration: underline;
}

.profile-summary-stat {
    text-align: right;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.summary-stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

/* Stats Highlight Grid */
.stats-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 1100px) {
    .stats-highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .stats-highlight-grid {
        grid-template-columns: 1fr;
    }
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    transition: transform 0.2s, border-color 0.2s;
}

.stat-box:hover {
    transform: translateY(-2px);
    border-color: var(--border-color-hover);
}

.stat-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.icon-survivor { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.icon-killer { background: rgba(201, 24, 43, 0.15); color: var(--accent-red); }
.icon-gen { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.icon-heal { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-title {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tabs */
.stats-tabs-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #fff;
    background: var(--accent-red);
    box-shadow: 0 2px 10px rgba(201, 24, 43, 0.3);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.detail-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.detail-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-list span {
    color: var(--text-muted);
}

.detail-list strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #fff;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.achievement-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.achievement-card.unlocked {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.04);
}

.achievement-card.unlocked .ach-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.ach-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ach-info h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.ach-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 6px;
}

.ach-status {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.unlocked .ach-status { color: #fbbf24; }
.locked .ach-status { color: #6b7280; }

.empty-stats-card {
    text-align: center;
    padding: 60px 20px;
    margin-top: 20px;
}

.empty-icon {
    font-size: 3.5rem;
    color: var(--steam-blue);
    margin-bottom: 15px;
}

/* Builds / Loadout Planner */
.build-slots {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0 25px;
    flex-wrap: wrap;
}

.perk-slot {
    width: 90px;
    height: 90px;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transition: all 0.2s;
}

.perk-slot:hover {
    border-color: #fff;
    transform: scale(1.05);
}

.perk-slot.active-slot {
    border-color: #fff;
    background: #25282d;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.perk-slot.filled {
    border-style: solid;
    border-color: var(--accent-red);
    background: #1c1517;
}

.perk-slot img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.perk-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 12px;
    background: var(--bg-card-inner);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    max-height: 520px;
    overflow-y: auto;
}

.perk-selector::-webkit-scrollbar {
    width: 6px;
}

.perk-selector::-webkit-scrollbar-thumb {
    background: var(--border-color-hover);
    border-radius: 4px;
}

.perk-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.perk-option:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.05);
}

.perk-option img {
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: #202428;
    margin-bottom: 6px;
}

.perk-name-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.build-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.build-role-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.perk-details-box {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}

.perk-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.perk-details-header h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
}

.perk-details-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Wiki Specific */
.wiki-section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.character-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.character-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    padding: 24px 18px;
    transition: all 0.25s ease;
}

.character-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-red);
}

.character-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 14px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.character-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Dashboard Promo Card */
.feature-promo-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 35px;
    background: linear-gradient(135deg, rgba(20, 22, 24, 0.95), rgba(30, 20, 25, 0.9));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.promo-text {
    flex: 1;
}

.promo-text h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.promo-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 580px;
}

.promo-preview-slots {
    display: flex;
    gap: 15px;
}

.perk-slot-preview {
    width: 65px;
    height: 65px;
    background: #191c1f;
    border: 2px solid var(--border-color);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, border-color 0.3s;
}

.perk-slot-preview:hover {
    transform: rotate(45deg) scale(1.1);
    border-color: var(--accent-red);
}

.perk-slot-preview i {
    transform: rotate(-45deg);
    font-size: 1.4rem;
}

/* Footer */
.dbd-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0 30px 0;
    color: var(--text-muted);
    background: rgba(10, 11, 12, 0.9);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-logo i {
    color: var(--accent-red);
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: #9ba1a6;
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-subtext {
    font-size: 0.78rem;
    color: #71767b;
    max-width: 750px;
    line-height: 1.5;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    font-size: 0.8rem;
    color: #63686e;
}

/* Star Button */
.btn-fav-star {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #6b7280;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
    box-sizing: border-box;
}

.btn-fav-star:hover {
    color: #fbbf24;
    border-color: #fbbf24;
    transform: scale(1.1);
}

.btn-fav-star.active {
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.text-gold {
    color: #fbbf24;
}

/* Dashboard Layout for Logged-in Users */
.dashboard-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 25px;
    align-items: flex-start;
    margin-top: 20px;
    width: 100%;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.dashboard-main {
    min-width: 0;
    width: 100%;
}

.fav-servers-card {
    padding: 20px;
}

.fav-servers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.fav-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sidebar-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-sidebar-link:hover {
    color: #fff;
}

.fav-servers-empty {
    text-align: center;
    padding: 25px 10px;
    color: var(--text-muted);
}

.fav-servers-empty i {
    font-size: 2rem;
    color: #fbbf24;
    opacity: 0.7;
    margin-bottom: 10px;
    display: inline-block;
}

.fav-servers-empty h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 6px;
}

.fav-servers-empty p {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 14px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

.fav-servers-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
}

.fav-servers-grid::-webkit-scrollbar {
    width: 4px;
}

.fav-servers-grid::-webkit-scrollbar-thumb {
    background: var(--border-color-hover);
    border-radius: 4px;
}

.fav-server-compact-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    transition: border-color 0.2s;
}

.fav-server-compact-card:hover {
    border-color: var(--border-color-hover);
}

.fav-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fav-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fav-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 22px;
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #e5e5e5;
    flex-shrink: 0;
    text-transform: uppercase;
}

.fav-card-title strong {
    font-size: 0.92rem;
    display: block;
    line-height: 1.2;
}

.fav-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.fav-times-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fav-time-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fav-role-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.fav-role-tag.survivor { color: #60a5fa; }
.fav-role-tag.killer { color: var(--accent-red); }

.fav-time-val {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
}

.fav-offline-tag {
    font-size: 0.75rem;
    color: var(--color-slow);
    text-align: center;
    padding: 5px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
}

/* Sidebar Navigation */
.sidebar-nav-card {
    padding: 18px;
}

.sidebar-nav-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.sidebar-nav-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav-links li {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.sidebar-nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.sidebar-nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color-hover);
    color: #fff;
    transform: translateX(3px);
}

/* Sign-in Callout Card (Visitor View) */
.signin-callout-card {
    padding: 30px;
    background: linear-gradient(135deg, rgba(27, 40, 56, 0.7) 0%, rgba(20, 22, 25, 0.95) 100%);
    border: 1px solid #2a475e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    border-radius: var(--radius-md);
}

.signin-callout-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.signin-callout-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: rgba(102, 192, 244, 0.15);
    border: 1px solid rgba(102, 192, 244, 0.3);
    color: var(--steam-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.signin-callout-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.signin-callout-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 600px;
}

/* Responsive */
@media (max-width: 820px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
    }

    .signin-callout-card {
        flex-direction: column;
        text-align: center;
    }

    .signin-callout-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .profile-banner-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-info-left {
        flex-direction: column;
    }

    .profile-summary-stat {
        width: 100%;
        text-align: center;
    }

    .queue-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .queue-refresh-info {
        justify-content: space-between;
    }
}
