/* ==========================================================================
   BÖRÜ DISCORD BOT & DASHBOARD DESIGN SYSTEM (Vanilla CSS)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-primary: #0a0c10;
    --bg-secondary: #0f131a;
    --bg-tertiary: #161b24;
    --bg-card: rgba(22, 27, 36, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 71, 87, 0.3);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --brand-red: #ff4757;
    --brand-red-hover: #ff6b81;
    --brand-gold: #f39c12;
    --brand-blue: #3b82f6;
    --discord-blurple: #5865f2;
    --discord-blurple-hover: #4752c4;
    --status-green: #2ecc71;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #ff4757 0%, #e67e22 100%);
    --grad-hero: linear-gradient(180deg, rgba(255, 71, 87, 0.15) 0%, rgba(10, 12, 16, 0) 100%);
    --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glow: 0 10px 30px -10px rgba(255, 71, 87, 0.5);
    --shadow-card: 0 12px 36px 0 rgba(0, 0, 0, 0.45);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient Background Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.glow-1 {
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.4) 0%, transparent 70%);
}

.glow-2 {
    top: 40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.3) 0%, transparent 70%);
}

.glow-3 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.3) 0%, transparent 70%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--discord-blurple);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--discord-blurple-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(88, 101, 242, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 16px 32px;
    font-size: 17px;
    border-radius: 14px;
}

.btn-block {
    width: 100%;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.btn-glow:hover::after {
    left: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
    display: block;
}

.brand-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--brand-red);
    letter-spacing: 2px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    background: var(--grad-hero);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.25);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-red);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-size: 54px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

/* Metrics Bar */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.metric-card {
    padding: 20px 16px;
    text-align: center;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
}

.metric-lbl {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.status-online {
    color: var(--status-green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.status-online::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--status-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--status-green);
}

/* Section Shared */
.section {
    padding: 100px 0;
    position: relative;
}

.bg-darker {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-red);
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 14px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Interactive Preview Layout */
.preview-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    padding: 36px;
    align-items: center;
}

.card-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
}

.welcome-card-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 16, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 71, 87, 0.2);
    border-top-color: var(--brand-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preview-text-log {
    margin-top: 18px;
    background: rgba(0, 0, 0, 0.4);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    border-left: 4px solid var(--brand-red);
}

.log-mention {
    color: #60a5fa;
    font-weight: 600;
}

.log-channel {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Controls Box */
.preview-controls {
    background: rgba(0, 0, 0, 0.25);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.controls-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.2);
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-input {
    -webkit-appearance: none;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    background: none;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input::-webkit-color-swatch {
    border: 2px solid var(--border-color);
    border-radius: 10px;
}

.color-hex-label {
    font-family: monospace;
    font-size: 15px;
    color: #e2e8f0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 71, 87, 0.3);
    box-shadow: 0 16px 36px -10px rgba(255, 71, 87, 0.2);
}

.feature-icon-box {
    font-size: 32px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Commands Table */
.commands-table-wrapper {
    overflow-x: auto;
    padding: 10px;
}

.commands-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.commands-table th {
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.commands-table td {
    padding: 16px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.commands-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.commands-table code {
    background: rgba(255, 71, 87, 0.1);
    color: #ff6b81;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.badge-admin {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-user {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Architecture Diagram */
.proxy-architecture-box {
    padding: 48px;
}

.arch-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.arch-node {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 18px 24px;
    border-radius: 14px;
    text-align: center;
    min-width: 170px;
}

.arch-node .node-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.arch-node .node-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.highlight-node {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.4);
    box-shadow: 0 0 25px rgba(255, 71, 87, 0.2);
}

.highlight-node .node-title {
    color: var(--brand-red);
}

.highlight-subnode {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.4);
    color: #818cf8;
}

.arch-arrow {
    font-size: 24px;
    color: var(--text-muted);
}

.arch-split {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.arch-branch {
    display: flex;
    align-items: center;
    gap: 12px;
}

.branch-label {
    font-family: monospace;
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 160px;
    text-align: right;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: var(--bg-primary);
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 6px;
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--brand-red);
}

/* ==========================================================================
   MILITARY CLAN LEADERBOARD STYLES
   ========================================================================== */

.lb-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.lb-tabs {
    display: flex;
    background: rgba(15, 19, 26, 0.85);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    gap: 6px;
}

.lb-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.lb-tab-btn:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.lb-tab-btn.active {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.lb-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(22, 27, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

/* State Boxes (Loading & Error) */
.lb-state-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.lb-error-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
}

.lb-error-icon {
    font-size: 36px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Empty State */
.lb-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.lb-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: inline-block;
}

.lb-empty-state h3 {
    color: #ffffff;
    margin-bottom: 8px;
}

/* ==========================================================================
   PODIUM (TOP 3)
   ========================================================================== */

.lb-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 24px;
    align-items: end;
    margin-bottom: 40px;
}

.podium-card {
    padding: 28px 24px;
    text-align: center;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.podium-card:hover {
    transform: translateY(-8px);
}

/* 1st Place (Center - Gold) */
.podium-card.podium-first {
    border: 2px solid #f59e0b;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, rgba(22, 27, 36, 0.9) 100%);
    box-shadow: 0 0 40px -5px rgba(245, 158, 11, 0.35);
    transform: translateY(-16px);
    z-index: 2;
}

.podium-card.podium-first:hover {
    transform: translateY(-24px);
    box-shadow: 0 0 50px -5px rgba(245, 158, 11, 0.5);
}

/* 2nd Place (Left - Matching Golden Amber) */
.podium-card.podium-second {
    border: 2px solid #d97706;
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.12) 0%, rgba(22, 27, 36, 0.85) 100%);
    box-shadow: 0 0 30px -5px rgba(217, 119, 6, 0.25);
}

/* 3rd Place (Right - Bronze) */
.podium-card.podium-third {
    border: 2px solid #d97706;
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.12) 0%, rgba(22, 27, 36, 0.85) 100%);
    box-shadow: 0 0 30px -5px rgba(217, 119, 6, 0.25);
}

/* Crown for 1st place */
.podium-crown {
    position: absolute;
    top: -24px;
    font-size: 32px;
    filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.7));
    animation: floatCrown 3s ease-in-out infinite alternate;
}

@keyframes floatCrown {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

.podium-header-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 14px;
}

.podium-medal-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.podium-first .podium-medal-title { color: #f59e0b; }
.podium-second .podium-medal-title { color: #f59e0b; }
.podium-third .podium-medal-title { color: #f59e0b; }

.podium-medal-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Avatar in Podium */
.podium-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.podium-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
    background: var(--bg-tertiary);
}

.podium-first .podium-avatar {
    width: 98px;
    height: 98px;
    border: 3px solid #f59e0b;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

.podium-second .podium-avatar {
    border: 3px solid #d97706;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
}

.podium-third .podium-avatar {
    border: 3px solid #d97706;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
}

.podium-rank-tag {
    position: absolute;
    bottom: -4px;
    right: 50%;
    transform: translateX(50%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.podium-username {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-first .podium-username {
    font-size: 20px;
}

.podium-badges-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

/* Military Pill */
.military-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--rank-color, #94a3b8);
    color: var(--rank-color, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lvl-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: #ff6b81;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.class-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    font-size: 11px;
    font-weight: 700;
}

/* Stat Highlight in Podium */
.podium-stat-highlight {
    margin-bottom: 16px;
    width: 100%;
}

.podium-stat-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.podium-first .podium-stat-num {
    font-size: 28px;
    color: #f59e0b;
}

.podium-unit {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.podium-stat-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Progress bar in Podium */
.podium-progress-wrapper {
    width: 100%;
}

.podium-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.podium-progress-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.podium-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   RANKED TABLE (RANKS 4 TO 50)
   ========================================================================== */

.lb-table-card {
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
}

.lb-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.lb-table th {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.lb-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.lb-tr {
    transition: background-color 0.2s ease;
}

.lb-tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.lb-tr:last-child td {
    border-bottom: none;
}

.td-rank {
    width: 70px;
}

.rank-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 4px 10px;
}

/* User Cell */
.table-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.table-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-tertiary);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.table-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.table-username {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.table-class-tag {
    font-size: 11px;
    color: #60a5fa;
    font-weight: 600;
}

/* XP Cell */
.table-xp-cell {
    min-width: 180px;
}

.table-xp-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.table-xp-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.table-xp-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.table-xp-pct {
    color: var(--text-secondary);
}

/* Stat Cell */
.td-stat {
    min-width: 140px;
}

.td-stat-main {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
}

.td-stat-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.td-empty {
    text-align: center;
    padding: 30px !important;
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================================================
   TABLE PAGINATION
   ========================================================================== */

.lb-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
}

.lb-pagination-info {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.lb-pagination-info strong {
    color: #ffffff;
}

.lb-pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lb-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.lb-page-btn:hover:not(:disabled):not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.lb-page-btn.active {
    background: var(--grad-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.4);
}

.lb-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
}

.lb-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-title { font-size: 40px; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .preview-layout { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .arch-diagram { flex-direction: column; }
    .arch-split { width: 100%; }
    .arch-branch { flex-direction: column; align-items: stretch; }
    .branch-label { text-align: left; }

    /* Leaderboard on tablet */
    .lb-podium {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .podium-card.podium-first {
        order: -1;
        transform: none;
    }
    .podium-card.podium-first:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 32px; }
    .hero-cta-group { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }

    /* Leaderboard on mobile */
    .lb-header-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .lb-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .lb-tab-btn {
        justify-content: center;
        padding: 10px 8px;
        font-size: 12px;
    }
    .lb-sync-badge {
        justify-content: center;
    }
    .lb-table th, .lb-table td {
        padding: 10px 12px;
    }

    .lb-pagination-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .lb-pagination-controls {
        justify-content: center;
    }
}

