
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    
    --primary: #c084fc;
    --primary-dark: #a855f7;
    --primary-light: #e879f9;
    --accent: #ec4899;
    --accent-magenta: #db2777;
    --secondary: #38bdf8;
    --success: #34d399;
    --warning: #f59e0b;
    --danger: #f87171;
    --info: #22d3ee;
    
    
    --bg-primary: #0d0c10;
    --bg-secondary: #0a090d;
    --bg-sidebar: #0a090d;
    --bg-tertiary: #141318;
    --bg-card: #141318;
    --bg-card-elevated: #1a191f;
    --bg-hover: #1e1d24;
    
    
    --text-primary: #f0eef5;
    --text-secondary: #b8b0c9;
    --text-muted: #8b8299;
    --text-inverse: #0d0c10;
    
    
    --border-color: #25232d;
    --border-accent: rgba(192, 132, 252, 0.3);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --radius-lg: 14px;
    
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.55);
    --glow-magenta: 0 0 20px rgba(236, 72, 153, 0.22);
    --glow-purple: 0 0 20px rgba(192, 132, 252, 0.22);
    --glow-teal: 0 0 20px rgba(56, 189, 248, 0.22);
    --glow-green: 0 0 20px rgba(52, 211, 153, 0.22);
    --glow-orange: 0 0 20px rgba(245, 158, 11, 0.22);
    --glow-card: 0 0 0 1px rgba(255, 255, 255, 0.04);
    
    
    --gradient-primary: linear-gradient(135deg, #ec4899 0%, #c084fc 50%, #a855f7 100%);
    --gradient-success: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --gradient-danger: linear-gradient(135deg, #f87171 0%, #ef4444 100%);

    
    --gradient-neon: linear-gradient(135deg, #f0abfc 0%, #e879f9 30%, #c084fc 70%, #a855f7 100%);
    --gradient-neon-soft: linear-gradient(135deg, #e879f9 0%, #c084fc 50%, #a78bfa 100%);
    --text-glow-subtle: 0 0 18px rgba(232, 121, 249, 0.2);
    --text-glow-strong: 0 0 22px rgba(236, 72, 153, 0.3);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 15px;
}

.text-neon {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(232, 121, 249, 0.2));
}
.text-neon-soft {
    background: var(--gradient-neon-soft);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.15));
}

.text-neon-success {
    color: var(--success);
    text-shadow: 0 0 14px rgba(52, 211, 153, 0.3);
}
.text-neon-warning {
    color: var(--warning);
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.25);
}
.text-neon-danger {
    color: var(--danger);
    text-shadow: 0 0 14px rgba(248, 113, 113, 0.3);
}
.text-neon-info {
    color: var(--info);
    text-shadow: 0 0 14px rgba(34, 211, 238, 0.25);
}
.text-neon-primary {
    color: var(--primary-light);
    text-shadow: var(--text-glow-subtle);
}

.stat-num {
    color: var(--text-secondary);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(196, 181, 253, 0.15);
}

.lucide-icon {
    color: inherit;
}

.stat-icon--lucide .lucide-icon,
.action-icon--lucide .lucide-icon,
.welcome-cta-icon .lucide-icon {
    color: var(--primary-light);
    filter: drop-shadow(0 0 6px rgba(232, 121, 249, 0.4));
}

.icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: var(--bg-card-elevated);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.icon-wrap .lucide-icon {
    color: var(--primary-light);
    filter: drop-shadow(0 0 6px rgba(232, 121, 249, 0.4));
}
.action-card .action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    background: var(--bg-card-elevated);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.action-card .action-icon .lucide-icon {
    color: var(--primary-light);
    filter: drop-shadow(0 0 6px rgba(232, 121, 249, 0.4));
}
.action-card:hover .action-icon .lucide-icon {
    filter: drop-shadow(0 0 10px rgba(232, 121, 249, 0.5));
}
.sidebar-icon .lucide-icon {
    color: var(--text-secondary);
    opacity: 1;
}
.sidebar-link:hover .sidebar-icon .lucide-icon {
    color: var(--primary-light);
    filter: drop-shadow(0 0 6px rgba(232, 121, 249, 0.35));
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-secondary);
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 0;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
    border: 2px solid var(--bg-secondary);
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}
html::-webkit-scrollbar-corner {
    background: var(--bg-secondary);
}

input,
textarea,
select {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    font-family: inherit;
}
input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
    box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.page-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.page-title.text-neon {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px rgba(232, 121, 249, 0.2));
}
.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-light);
    text-shadow: 0 0 16px rgba(232, 121, 249, 0.25);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.sidebar-logo--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.2) 0%, rgba(236, 72, 153, 0.15) 100%);
    box-shadow: var(--glow-card);
}

.sidebar-logo--icon .lucide-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-light);
}

.sidebar-logo--img {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.35rem;
}

.sidebar-logo-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    border-radius: 8px;
}

.sidebar-icon .lucide-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: inherit;
}

.sidebar-logout-icon .lucide-icon {
    width: 1rem;
    height: 1rem;
}

.sidebar-avatar-placeholder .lucide-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--text-muted);
}

.lucide-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: currentColor;
}

.lucide-icon--sm { width: 1rem; height: 1rem; }
.lucide-icon--inline { vertical-align: -0.2em; margin-right: 0.25rem; }

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-neon-soft);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.15));
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--glow-magenta);
}
.sidebar-link.active .sidebar-icon .lucide-icon {
    color: #fff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.sidebar-icon {
    font-size: 1.2rem;
    opacity: 0.9;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-accent);
}

.sidebar-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sidebar-username {
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--gradient-neon-soft);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.2));
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(248, 113, 113, 0.2);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-logout:hover {
    background: var(--danger);
    color: white;
}

.sidebar-logout-icon {
    font-size: 0.85rem;
}

.sidebar-credit {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    
    background-image:
        linear-gradient(90deg, rgba(236, 72, 153, 0.06) 0%, transparent 18%),
        linear-gradient(270deg, rgba(192, 132, 252, 0.06) 0%, transparent 18%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    position: relative;
}
.main-content::before {
    content: '';
    position: fixed;
    inset: 0;
    margin-left: 260px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.04) 0%, transparent 12%), linear-gradient(270deg, rgba(192, 132, 252, 0.04) 0%, transparent 12%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 0;
}
@media (max-width: 768px) {
    .main-content::before { margin-left: 72px; }
}

@media (max-width: 768px) {
    .sidebar {
        width: 72px;
        min-width: 72px;
        padding: 0.5rem 0;
    }
    .sidebar-brand .sidebar-title,
    .sidebar-brand .sidebar-subtitle,
    .sidebar-link span:not(.sidebar-icon),
    .sidebar-username,
    .sidebar-credit {
        display: none;
    }
    .sidebar-link {
        justify-content: center;
        padding: 0.75rem;
    }
    .sidebar-user {
        justify-content: center;
    }
    .sidebar-logout span:not(.sidebar-logout-icon) {
        display: none;
    }
    .sidebar-logout {
        padding: 0.75rem;
    }
    .main-content {
        margin-left: 72px;
    }
}

.navbar {
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
}

.nav-brand h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: color 0.2s, background 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-links a.active {
    color: var(--text-inverse);
    background: var(--primary);
}

.nav-divider {
    width: 1px;
    height: 1.25rem;
    background: var(--border-color);
    margin: 0 0.5rem;
    align-self: center;
}

.nav-logout {
    margin-left: 0.25rem;
    color: var(--text-muted);
}
.nav-logout:hover {
    color: var(--danger);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-magenta);
}

.btn:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.hero h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.features {
    padding: 4rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-grid .feature-card:nth-child(1),
.feature-grid .feature-card:nth-child(2),
.feature-grid .feature-card:nth-child(3),
.feature-grid .feature-card:nth-child(4) {
    grid-column: span 1;
}

.feature-grid .feature-card:nth-child(5),
.feature-grid .feature-card:nth-child(6) {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .feature-grid .feature-card:nth-child(5),
    .feature-grid .feature-card:nth-child(6) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card-elevated);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.feature-icon {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-landing {
    min-height: 100vh;
    background: var(--bg-secondary);
    background-image:
        radial-gradient(ellipse 320px 140% at 0% 50%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 320px 140% at 100% 50%, rgba(192, 132, 252, 0.1) 0%, transparent 50%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.landing-main {
    padding-bottom: 4rem;
}

.navbar--landing .navbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.hero--landing {
    position: relative;
    text-align: center;
    padding: 4rem 0 4.5rem;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 400px;
    pointer-events: none;
}

.hero__glow--left {
    left: 0;
    background: radial-gradient(ellipse 100% 80% at 0% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
}

.hero__glow--right {
    right: 0;
    background: radial-gradient(ellipse 100% 80% at 100% 50%, rgba(192, 132, 252, 0.12) 0%, transparent 70%);
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__title {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero__title-line {
    display: block;
}

.hero__title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero__tagline {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero--landing .hero-actions {
    margin-top: 0;
}

.btn--glow {
    box-shadow: var(--glow-magenta);
}

.btn--glow:hover {
    box-shadow: 0 0 28px rgba(236, 72, 153, 0.4);
}

.btn--glow .lucide-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.features--landing {
    padding: 3rem 0 4rem;
}

.section-title--landing {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

.feature-grid--landing {
    margin-top: 0;
}

.feature-card--landing {
    text-align: center;
    padding: 2rem 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card--landing:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--glow-card);
    border-color: var(--border-accent);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.2) 0%, rgba(236, 72, 153, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-card);
}

.feature-icon-wrap .lucide-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary-light);
}

.feature-card--landing h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.feature-card--landing p {
    font-size: 0.9rem;
    line-height: 1.65;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 2px solid var(--border-accent);
}

.page-header h2,
.page-header .page-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.dashboard-header .header-content { flex: 1; min-width: 0; }
.dashboard-header .page-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}
.dashboard-quote {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 280px;
    text-align: right;
    margin: 0;
    border: none;
    padding: 0;
}

.dashboard-welcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow), var(--glow-card);
    border-left: 4px solid var(--primary);
}

.dashboard-welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-welcome-text .page-title {
    margin-bottom: 0.25rem;
}

.dashboard-welcome-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.welcome-cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-cta-icon .lucide-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--secondary);
}

.welcome-cta-text {
    flex: 1;
    min-width: 200px;
}

.welcome-cta-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.welcome-cta-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.dashboard-section {
    margin-bottom: 2.5rem;
}

.dashboard-section .section-title {
    margin-bottom: 1.25rem;
}
.header-avatar {
    flex-shrink: 0;
}

.section-subtitle-right {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: var(--glow-magenta);
    object-fit: cover;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow), var(--glow-card);
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 120px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 3px 0 0 3px;
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.5);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--glow-purple);
}

.stat-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.stat-icon--lucide {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.stat-icon--lucide .lucide-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-light);
}

.stats-grid--dashboard {
    margin-bottom: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stat-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
}
.stat-content .stat-value,
.stat-content .stat-value-large {
    flex: 0 0 auto;
}

.stat-card.health-card {
    grid-column: span 1;
    border-left-width: 5px;
    background: var(--bg-card-elevated);
}

.stat-card.stat-card--teal::before {
    background: var(--secondary);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}
.stat-card.stat-card--teal .stat-icon--lucide .lucide-icon {
    color: var(--secondary);
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
}
.stat-card.stat-card--teal:hover { box-shadow: var(--shadow-md), var(--glow-teal); }
.stat-card.stat-card--green::before {
    background: var(--success);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}
.stat-card.stat-card--green .stat-icon--lucide .lucide-icon {
    color: var(--success);
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.45));
}
.stat-card.stat-card--green:hover { box-shadow: var(--shadow-md), var(--glow-green); }
.stat-card.stat-card--orange::before {
    background: var(--warning);
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.5);
}
.stat-card.stat-card--orange .stat-icon--lucide .lucide-icon {
    color: var(--warning);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.45));
}
.stat-card.stat-card--orange:hover { box-shadow: var(--shadow-md), var(--glow-orange); }

@media (min-width: 640px) {
    .stat-card.large,
    .stat-card.health-card {
        grid-column: span 2;
    }
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    width: 100%;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.875rem, 2.5vw, 2rem);
    font-weight: 700;
    background: var(--gradient-neon-soft);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.25));
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    min-width: min-content;
}

.stat-value.text-success {
    -webkit-text-fill-color: initial;
    color: var(--success);
    text-shadow: 0 0 14px rgba(52, 211, 153, 0.35);
    background: none;
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.2));
}
.stat-value.text-warning {
    -webkit-text-fill-color: initial;
    color: var(--warning);
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.3);
    background: none;
    filter: none;
}
.stat-value.text-danger {
    -webkit-text-fill-color: initial;
    color: var(--danger);
    text-shadow: 0 0 14px rgba(248, 113, 113, 0.35);
    background: none;
    filter: drop-shadow(0 0 10px rgba(248, 113, 113, 0.2));
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 1.125rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.dashboard-card h3 {
    margin-bottom: 1.25rem;
    color: var(--primary-light);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dkp-history {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dkp-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary);
    transition: all 0.2s ease;
}

.dkp-entry:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.dkp-entry-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dkp-event {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
}

.dkp-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.dkp-points {
    font-weight: 700;
    font-size: 1.125rem;
}

.dkp-points.positive {
    color: var(--success);
}

.dkp-points.negative {
    color: var(--danger);
}

.dkp-summary-section .section-title { margin-bottom: 1rem; }

.dkp-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.dkp-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dkp-summary-card .dkp-summary-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dkp-summary-card .dkp-summary-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.dkp-summary-card.earned .dkp-summary-value {
    color: var(--success);
    text-shadow: 0 0 14px rgba(52, 211, 153, 0.35);
}
.dkp-summary-card.spent .dkp-summary-value {
    color: var(--danger);
    text-shadow: 0 0 12px rgba(248, 113, 113, 0.3);
}
.dkp-summary-card.balance .dkp-summary-value {
    color: var(--primary-light);
    text-shadow: 0 0 16px rgba(232, 121, 249, 0.35);
}

.ledger-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}
.ledger-balance .balance-label { font-size: 0.85rem; color: var(--text-muted); }
.ledger-balance .balance-value { font-size: 1.5rem; font-weight: 700; color: var(--primary-light); }

.ledger-filters { margin-bottom: 1.5rem; }
.ledger-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.ledger-filter-form label { font-size: 0.9rem; color: var(--text-secondary); }
.ledger-filter-form select {
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
}
.ledger-table-section .section-title { margin-bottom: 1rem; }
.ledger-table-wrap { overflow-x: auto; }
.ledger-table .num { text-align: right; white-space: nowrap; }
.ledger-table .num.positive { color: var(--success); }
.ledger-table .num.negative { color: var(--danger); }

.dkp-history-full {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.dkp-history-full::-webkit-scrollbar {
    width: 6px;
}

.dkp-history-full::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 3px;
}

.dkp-history-full::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.dkp-history-full::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.dkp-entry-full {
    background: var(--bg-primary);
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.dkp-entry-full:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.dkp-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.dkp-entry-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dkp-kvk {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.dkp-breakdown {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.leaderboard-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.leaderboard-filters select {
    padding: 0.625rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.leaderboard-filters select:hover {
    border-color: var(--primary);
}

.leaderboard-filters select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.leaderboard-table {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    background: var(--bg-tertiary);
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.leaderboard-table td {
    padding: 1.25rem 1rem;
    border-top: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.leaderboard-table tr:hover {
    background: var(--bg-hover);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9375rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.rank-badge.rank-1 {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    box-shadow: var(--glow-magenta);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(148, 163, 184, 0.4);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(205, 127, 50, 0.4);
}

.player-name {
    font-weight: 600;
    color: var(--text-primary);
}

.dkp-cell {
    color: var(--primary-light);
    font-size: 1.0625rem;
    font-weight: 700;
}

.dkp-balance {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.balance-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.shop-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.shop-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.shop-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.shop-item-header h3 {
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.shop-item-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.shop-item-description {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.shop-item-actions {
    margin-top: auto;
}

.insufficient-amount {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.shop-recent-purchases {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.shop-recent-purchases .section-title {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.purchases-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.purchase-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--bg-main);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.purchase-name { color: var(--text-primary); }
.purchase-amount { color: var(--danger); font-weight: 600; }
.purchase-date { color: var(--text-muted); font-size: 0.85rem; }

.shop-discord-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal[style*="block"] {
    display: flex !important;
}

.modal-content {
    background: var(--bg-card);
    margin: auto;
    padding: 1.75rem 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 440px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.25s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.close:hover {
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.alert {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    box-shadow: var(--shadow);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--info);
    color: var(--text-primary);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--text-primary);
}

.alert h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-stats .stat-card {
    min-width: 0;
    overflow: visible;
}

.profile-stats .stat-value {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.profile-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .profile-row {
        flex-direction: row;
        align-items: stretch;
    }
    .profile-row .profile-section {
        flex: 1;
    }
}

.profile-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    font-size: 1.5rem;
    font-weight: 600;
}

.troop-kills {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.troop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary);
    transition: all 0.2s ease;
}

.troop-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.troop-tier {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1.125rem;
}

.troop-count {
    color: var(--text-primary);
    font-weight: 600;
}

.kvk-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.leaderboard-table tr.clickable-row {
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.leaderboard-table tr.clickable-row:hover {
    background: var(--bg-hover);
}

.kvk-filter select {
    padding: 0.625rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.kvk-filter select:hover {
    border-color: var(--primary);
}

.scan-history {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scan-history-item {
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--info);
    transition: all 0.2s ease;
}

.scan-history-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.scan-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.scan-changes {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.kvk-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kvk-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.kvk-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.scan-item-large {
    background: var(--bg-primary);
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    border-left: 4px solid var(--info);
    transition: all 0.2s ease;
}

.scan-item-large:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.badge-primary {
    background: var(--primary);
    color: var(--text-inverse);
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.player-badge {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
    align-items: stretch;
}
.quick-actions .action-grid {
    width: 100%;
}

.link-account-section {
    max-width: 800px;
    margin: 0 auto;
}

.link-account-info {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
}

.link-account-info h3 {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.link-account-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.link-account-info ol {
    margin-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 2;
}

.link-account-info li {
    margin-bottom: 0.75rem;
}

.site-footer,
footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.site-footer .container p,
footer .container p {
    margin: 0.25rem 0;
}

.error-page {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 480px;
    margin: 2rem auto;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.error-page h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--danger);
}

.error-message {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.scan-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scan-item {
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--info);
    transition: all 0.2s ease;
}

.scan-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.scan-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.scan-stats {
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card.large {
        grid-column: span 1;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-table {
        overflow-x: auto;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.chart-container {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    height: 300px;
}

.chart-container-large {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    height: 400px;
    margin-top: 1.5rem;
}

.leaderboard-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.leaderboard-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-end;
}

.search-group {
    flex: 1;
    min-width: 250px;
}

.search-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.search-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
}

.player-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-row:hover {
    background: var(--bg-hover) !important;
    transform: translateX(2px);
}

.player-name.clickable {
    color: var(--primary-light);
    font-weight: 600;
    transition: color 0.2s ease;
}

.player-row:hover .player-name.clickable {
    color: var(--primary);
    text-decoration: underline;
}

.tier-kills-row {
    background: var(--bg-tertiary) !important;
}

.tier-kills-details {
    padding: 1.5rem !important;
    background: var(--bg-tertiary);
}

.tier-kills-container {
    padding: 1rem;
}

.tier-kills-container h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.tier-kills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.tier-kill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.tier-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tier-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 700;
}

.leaderboard-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.leaderboard-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-end;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 0.625rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.filter-group select:hover {
    border-color: var(--primary);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.gain-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.gain-badge.positive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.gain-badge.negative {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.dashboard-card,
.stat-card,
.feature-card {
    animation: fadeIn 0.5s ease;
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.leaderboard-table tbody tr {
    animation: slideIn 0.3s ease;
}

.leaderboard-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.leaderboard-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.leaderboard-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.leaderboard-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.leaderboard-table tbody tr:nth-child(5) { animation-delay: 0.25s; }

.chart-container,
.chart-container-large {
    animation: scaleIn 0.6s ease;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.site-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.site-footer p:first-child {
    margin-bottom: 0.5rem;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.pagination-controls,
.pagination-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-links .pagination-page {
    padding: 0.5rem 0.75rem;
    min-width: auto;
    cursor: default;
}

.pagination-page {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-page:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.pagination-page.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    cursor: default;
}

.pagination-page.active:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.main-dashboard section {
    margin-bottom: 2.5rem;
}
.main-dashboard section:last-of-type {
    margin-bottom: 2rem;
}

.info-box {
    background: rgba(234, 179, 8, 0.06);
    border: 1px solid var(--border-accent);
    border-radius: var(--border-radius-sm);
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
}
.info-box p { margin: 0; }
.info-box p + p { margin-top: 0.5rem; }
.dashboard-info .quick-actions-note { margin-top: 0; text-align: left; }
.dashboard-info .dashboard-discord-status { margin-top: 0.5rem; }

.kingdom-snapshot {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border-accent);
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: -0.5rem 0 1rem 0;
}

.kvk-contributors-table-wrap {
    overflow-x: auto;
}

.health-card {
    grid-column: span 2;
}

.stat-value-large {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(232, 121, 249, 0.2));
    white-space: nowrap;
    overflow: visible;
    min-width: min-content;
}
.stat-value-large.text-success {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--success);
    text-shadow: 0 0 16px rgba(52, 211, 153, 0.35);
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.2));
}
.stat-value-large.text-warning {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--warning);
    text-shadow: 0 0 16px rgba(251, 191, 36, 0.3);
}
.stat-value-large.text-danger {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--danger);
    text-shadow: 0 0 16px rgba(248, 113, 113, 0.35);
    filter: drop-shadow(0 0 10px rgba(248, 113, 113, 0.2));
}

.stat-badge {
    display: inline-block;
}

.stat-subtext {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.text-info {
    color: var(--info);
}

.role-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.panel-card {
    background: var(--bg-card-elevated);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.panel-card h3 {
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.panel-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.performance-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.metric-value {
    color: var(--text-primary);
    font-weight: 600;
}

.metric-value.dkp-balance {
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
}

.performance-split {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.metric-mini {
    font-size: 0.875rem;
    font-weight: 600;
}

.alert-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--warning);
}

.alert-label {
    color: var(--text-secondary);
}

.alert-value {
    color: var(--text-primary);
    font-weight: 600;
}

.dashboard-panels-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .dashboard-panels-row {
        grid-template-columns: 1fr;
    }
}

.dashboard-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow), var(--glow-card);
}

.dashboard-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.dashboard-panel-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-panel-header .panel-period {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dashboard-panel-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-panel-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.dashboard-panel-item:last-child {
    border-bottom: none;
}

.dashboard-panel-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.dashboard-panel-item-content {
    flex: 1;
    min-width: 0;
}

.dashboard-panel-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.dashboard-panel-item-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.dashboard-panel-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.dashboard-panel-header h2 .lucide-icon--inline {
    color: var(--primary);
}

.dashboard-panel-item-icon .lucide-icon {
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
}

.dashboard-panel-p {
    margin-bottom: 1rem;
}

.panel-content--metrics {
    gap: 0.5rem;
}

.dashboard-info-strip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.info-strip-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-strip-content .lucide-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.info-strip-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.timeline-preview {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow), var(--glow-card);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-preview .timeline-item {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary);
    transition: all 0.2s ease;
}

.timeline-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.timeline-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.timeline-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.timeline-list.timeline-kvk .timeline-item {
    border-left-color: var(--secondary);
}

.kingdom-section {
    margin-bottom: 3rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-align: center;
}

.metric-card h3 {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    overflow: visible;
    min-width: min-content;
}

.metric-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.participation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.participation-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-align: center;
}

.participation-card h3 {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.participation-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.participation-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.benchmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benchmark-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-align: center;
}

.benchmark-card h3 {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benchmark-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.timeline-filters {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.timeline-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-event {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.timeline-event:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.timeline-event-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.timeline-event-content {
    flex: 1;
}

.timeline-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.timeline-event-header h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.timeline-event-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.timeline-event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.timeline-event-annotations {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.annotation {
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.annotation strong {
    color: var(--text-primary);
}

.annotation small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
}

.kvks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.kvk-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.kvk-card {
    border-left: 4px solid var(--primary);
}

.kvk-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.kvk-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.kvk-card-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.kvk-card-body {
    padding: 1.5rem;
}

.kvk-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.kvk-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kvk-kpi-value {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1.125rem;
}

.kvk-kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kvk-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kvk-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.kvk-card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.kvk-dates {
    display: flex;
    gap: 2rem;
}

.date-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

.camp-comparison-table {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.data-table th {
    background: var(--bg-tertiary);
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.data-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.table-wrap,
.admin-table-wrap {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.dkp-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dkp-summary-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-align: center;
}

.dkp-summary-card h3 {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dkp-total {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.dkp-average {
    font-size: 2rem;
    font-weight: 800;
    color: var(--success);
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.empty-state .text-muted {
    font-size: 0.9rem;
}

.empty-state a {
    color: var(--primary-light);
    text-decoration: none;
}
.empty-state a:hover {
    text-decoration: underline;
}

.loading-placeholder {
    min-height: 3rem;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loadingShimmer 1.2s ease-in-out infinite;
    border-radius: var(--border-radius-sm);
}
@keyframes loadingShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.quick-actions .section-title {
    margin-bottom: 1.25rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.action-card {
    background: var(--bg-card);
    padding: 1.25rem 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow), var(--glow-card);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    min-height: 90px;
}
.action-card .action-icon {
    flex-shrink: 0;
    margin-right: 0.25rem;
}
.action-card .action-label {
    flex: 1;
    text-align: left;
    min-width: 0;
}
.action-card .action-sublabel {
    width: 100%;
    font-size: 0.75rem;
    order: 3;
}
.action-card .action-arrow {
    order: 2;
    margin-left: auto;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--glow-card);
    border-color: var(--border-accent);
}
.action-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.action-card .action-arrow {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: auto;
}
.action-card:hover .action-arrow {
    color: var(--primary-light);
}

.action-card-highlight {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.12) 0%, transparent 100%);
    box-shadow: var(--glow-card), 0 0 0 1px rgba(192, 132, 252, 0.2);
}

.action-card-highlight:hover {
    border-color: var(--primary-light);
    box-shadow: var(--glow-purple);
}

.action-grid--large {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}

.action-grid--large .action-card {
    padding: 1.35rem 1.25rem;
    min-height: 100px;
}

.action-card .action-icon--lucide {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-card .action-icon--lucide .lucide-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-light);
}

.action-card .action-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.action-card .action-body .action-sublabel {
    order: 0;
    width: 100%;
    margin-top: 0.15rem;
}

.action-sublabel {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dashboard-discord-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.quick-actions-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.action-icon {
    font-size: 3rem;
}

.action-label {
    font-weight: 600;
    font-size: 1.125rem;
}

.shop-item-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.shop-item-card .shop-item-description {
    flex: 1;
}

.shop-item-card .shop-item-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.shop-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.4);
}

.shop-item-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.item-icon {
    font-size: 3rem;
    display: inline-block;
}

.item-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.dkp-balance-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.compliance-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.compliance-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.compliance-score {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.compliance-violations,
.compliance-warnings {
    margin-top: 1rem;
}

.compliance-violations h4,
.compliance-warnings h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.compliance-violations ul,
.compliance-warnings ul {
    list-style: none;
    padding: 0;
}

.compliance-violations li,
.compliance-warnings li {
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.compliance-history {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compliance-history-item {
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--border-color);
}

.compliance-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.compliance-history-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.compliance-history-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dkp-reason {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.25rem;
}

.leaderboard-section {
    margin-top: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.page-header .subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.badge-gray {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.admin-summary {
    margin-bottom: 2rem;
}

.admin-tabs-container {
    margin-top: 2rem;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.admin-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-family: inherit;
}

.admin-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.admin-tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

.admin-content {
    display: none;
    padding: 1.5rem 0;
}

.admin-content.active {
    display: block;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.overview-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.overview-card h3 {
    color: var(--primary-light);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.quick-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
}

.status-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.status-value {
    color: var(--text-primary);
    font-weight: 600;
}

.admin-form-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-form-card h3 {
    color: var(--primary-light);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.admin-list-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.admin-list-card h3 {
    color: var(--primary-light);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.scan-session-card {
    position: relative;
    border-left: 4px solid var(--primary);
    box-shadow: var(--glow-card);
}
.scan-session-card .session-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.scan-session-card .session-body { margin-bottom: 0; }
.scan-session-card .session-info {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}
.scan-session-card .session-info code {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}
.scan-session-card .session-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.scan-session-card .forget-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.scan-session-card .forget-group input { width: 4rem; }
.scan-session-card .session-refresh {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 2rem;
    height: 2rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}
.scan-session-card .session-refresh:hover {
    color: var(--primary);
    border-color: var(--primary);
}
.scan-item-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay[style*="flex"] {
    display: flex !important;
}
.modal-box {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.25s ease;
}
.modal-scan-modify {
    width: 95%;
    max-width: 900px;
}
.modal-player-edit {
    max-width: 520px;
    width: 100%;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}
.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-light);
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--text-primary);
}
.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}
.modal-body .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.modal-body .form-row .form-group {
    flex: 1;
    min-width: 120px;
}
.modal-body .modal-actions {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-group h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.config-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.config-section h3 {
    color: var(--primary-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.config-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.config-tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-family: inherit;
}

.config-tab:hover {
    color: var(--text-primary);
}

.config-tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

.config-content {
    display: none;
}

.config-content.active {
    display: block;
}

.logs-container {
    max-height: 600px;
    overflow-y: auto;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.log-entry {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--border-color);
    background: var(--bg-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.log-entry.INFO {
    border-left-color: var(--info);
}

.log-entry.WARNING {
    border-left-color: var(--warning);
}

.log-entry.ERROR {
    border-left-color: var(--danger);
}

.log-entry.DEBUG {
    border-left-color: var(--text-muted);
}

.log-timestamp {
    color: var(--text-muted);
    margin-right: 1rem;
}

.log-category {
    color: var(--primary-light);
    margin-right: 1rem;
}

.log-level {
    font-weight: bold;
    margin-right: 1rem;
}

.log-message {
    color: var(--text-primary);
}

.log-data {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
}

.danger-zone {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 2px solid var(--danger);
    box-shadow: var(--shadow);
}

.danger-zone h3 {
    color: var(--danger);
    margin-bottom: 1.5rem;
}

.danger-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.test-alerts {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge-info {
    background: var(--info);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

@media (max-width: 768px) {
    .health-card {
        grid-column: span 1;
    }
    
    .stat-value-large {
        font-size: 2rem;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kvks-grid {
        grid-template-columns: 1fr;
    }
    
    .camp-comparison-table {
        overflow-x: scroll;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        width: 100%;
        text-align: left;
    }
    
    .config-tabs {
        flex-direction: column;
    }
    
    .config-tab {
        width: 100%;
        text-align: left;
    }
}