@font-face {
    font-family: 'Minecraft';
    src: url('minecraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Minecraft';
    src: url('minecraft.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;


    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --font-minecraft: 'Minecraft', 'Minecraftia', sans-serif;
    --font-minecraft-title: 'Minecraft', 'Minecraftia', sans-serif;


    --accent-primary: #06b6d4;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #10b981;
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-glow: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(139, 92, 246, 0.5));

    --aurora-1: rgba(6, 182, 212, 0.15);
    --aurora-2: rgba(139, 92, 246, 0.15);
    --aurora-3: rgba(16, 185, 129, 0.1);


    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --backdrop-blur: blur(20px);


    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;


    --container-max-width: 1200px;


    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;


    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    box-sizing: border-box;
    scroll-margin-top: 100px;
}

html {
    scroll-behavior: smooth;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f0f9ff;
    --bg-tertiary: #e0f2fe;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(14, 165, 233, 0.15);
    --glass-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);

    --aurora-3: rgba(6, 182, 212, 0.2);
}



[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-right-color: rgba(14, 165, 233, 0.1);
}

[data-theme="light"] .sidebar-menu a:hover,
[data-theme="light"] .sidebar-menu a.active {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}

[data-theme="light"] .sidebar-btn {
    background: rgba(14, 165, 233, 0.05);
    color: #0369a1;
}

[data-theme="light"] .sidebar-btn:hover {
    background: rgba(14, 165, 233, 0.15);
}


body {
    margin: 0;
    padding: 0;
    font-family: var(--font-minecraft) !important;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: none;
    image-rendering: pixelated;
}


.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: var(--font-minecraft);
    font-size: 0.8rem;
}

input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-minecraft);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

input::placeholder {
    color: var(--text-muted);
}


.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-tertiary);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-minecraft-title) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}







.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}


.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 1rem;
    margin-left: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-minecraft-title);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-mark {
    width: 40px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}


.server-stats {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item,
.stat-card {
    background: #0b1021;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 200px;
    flex: 1;
    backdrop-filter: var(--backdrop-blur);
    transition: all 0.3s ease;
    text-align: center;
}

.stat-item:hover,
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(56, 189, 248, 0.3);
}

.stat-value {
    font-family: var(--font-minecraft);
    font-size: 2rem;
    font-weight: 600;
    color: #3b82f6;
    line-height: 1;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-minecraft-title);
    text-transform: uppercase;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}



.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0;
    vertical-align: middle;
}

.status-indicator.online {
    background-color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.status-indicator.offline {
    background-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.text-cyan-400 {
    color: #38bdf8;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-minecraft-title);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover::after {
    left: 100%;
}


.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
}

.hero-premium {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30vh;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
    z-index: 5;
}

.hero-blur-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(2, 6, 23, 0.7) 100%),
        url('/images/background.png') center/cover no-repeat;
    filter: blur(8px) brightness(0.6);
    transform: scale(1.05);
    z-index: -1;
    transition: transform 10s ease-out;
}

.hero-premium:hover .hero-blur-bg {
    transform: scale(1.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.hero-title-img {
    max-width: 700px;
    width: 95%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 60px rgba(6, 182, 212, 0.3));
    animation: float 6s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 2.25rem);
    color: var(--text-primary);
    font-family: var(--font-minecraft);
    font-weight: 400;
    margin: 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    image-rendering: pixelated;
}

.hero-subtitle .text-accent {
    color: var(--accent-primary);
    font-weight: 600;
}

.hero-server-ip {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inherit;
    border-radius: var(--radius-lg);
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.1),
        0 10px 30px -10px rgba(0, 0, 0, 0.5);
    font-family: var(--font-minecraft);
}

.hero-server-ip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-server-ip:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow:
        0 35px 60px -15px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(6, 182, 212, 0.2);
}

.hero-server-ip:hover::before {
    opacity: 1;
}

.ip-address {
    font-family: var(--font-minecraft);
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 400;
    color: var(--accent-primary);
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.ip-copy-btn {
    padding: 1rem 3rem;
    background: var(--gradient-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.ip-copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
    z-index: 0;
}

.ip-copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.ip-copy-btn:hover::before {
    left: 100%;
}

.ip-copy-btn:active {
    transform: scale(0.98);
}

.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--accent-primary);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}


.mode-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.mode-badge:hover {
    transform: translateY(-2px);
}

.mode-badge-survival {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.mode-badge-minigames {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.mode-badge-creative {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-tertiary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}


.card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(6, 182, 212, 0.1);
}

.card h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}


.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.info-row:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    color: var(--accent-primary);
}


app-sidebar,
app-footer {
    display: block;
}


@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .card {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .server-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        min-width: auto;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
    }

    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        height: auto;
    }

    .podium-place {
        width: 100%;
        order: unset !important;
        transform: none !important;
    }

    .podium-base {
        height: auto !important;
    }

    .leaderboard-item {
        grid-template-columns: 40px 50px 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .leaderboard-item .player-stats {
        display: none;
    }

    .leaderboard-tabs {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .leaderboard-tabs .tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .profile-name {
        font-size: 1.75rem;
    }

    .action-button {
        padding: 1rem;
    }

    .action-button i {
        font-size: 1.25rem;
        width: 32px;
        height: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}

.mobile-menu-btn {
    display: none;
}


.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-icon {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}

.timeline-content {
    background: var(--bg-tertiary);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.timeline-content h3 {
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}


.countdown-section {
    margin-top: -4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.countdown-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.countdown-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.75rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .countdown-grid {
        gap: 1rem;
    }

    .countdown-item {
        min-width: 80px;
        padding: 1rem;
    }

    .countdown-value {
        font-size: 2rem;
    }
}

.timeline-badge {
    margin-top: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}


@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0;
        right: auto;
    }
}


.mt-2 {
    margin-top: 2rem;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}


.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2000;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
}

.sidebar.expanded {
    width: 260px;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-small {
    width: 40px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
    transition: transform 0.3s ease;
}

.sidebar.expanded .logo-small {
    transform: scale(1.1);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-menu li {
    padding: 0 0.75rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(6, 182, 212, 0.1);
    color: var(--text-primary);
}

.sidebar-menu a.active {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), transparent);
    border-left: 3px solid var(--accent-primary);
}

.sidebar-menu i {
    min-width: 24px;
    font-size: 1.25rem;
    text-align: center;
    margin-right: 1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.sidebar-menu a:hover i,
.sidebar-menu a.active i {
    color: var(--accent-primary);
}

.sidebar-menu span {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar.expanded .sidebar-menu span {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    /* Fix for button elements */
    outline: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.sidebar-btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.sidebar-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.sidebar-btn i {
    font-size: 1.1rem;
}

.sidebar-btn span {
    display: none;
    margin-left: 0.75rem;
}

.sidebar.expanded .sidebar-btn {
    justify-content: flex-start;
    padding: 0.75rem 1.25rem;
}

.sidebar.expanded .sidebar-btn span {
    display: inline;
}


.sidebar-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    color: var(--text-primary);
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.sidebar-theme-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.sidebar-theme-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.sidebar-theme-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.sidebar-theme-btn:hover i {
    transform: rotate(20deg);
}

.sidebar-theme-btn span {
    display: none;
    margin-left: 0.75rem;
}

.sidebar.expanded .sidebar-theme-btn {
    justify-content: flex-start;
    padding: 0.75rem 1.25rem;
}

.sidebar.expanded .sidebar-theme-btn span {
    display: inline;
}


.main-content {
    margin-left: 80px;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
    width: 100%;
}

.sidebar.expanded+.main-content {
    margin-left: 260px;
}


.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background: rgba(30, 41, 59, 0.6);
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    word-break: break-word;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}


.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 4rem;
    min-height: 350px;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 220px;
}

.podium-place.first {
    order: 2;
    z-index: 3;
}

.podium-place.second {
    order: 1;
    z-index: 2;
}

.podium-place.third {
    order: 3;
    z-index: 1;
}

.podium-skin-wrapper {
    position: relative;
    width: 180px;
    height: 240px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 2rem;
    z-index: 5;
}

.podium-skin {
    width: auto;
    height: 180px;
    image-rendering: pixelated;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.podium-place:hover .podium-skin {
    transform: translateY(-10px);
}

.player-name-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.15rem 0.75rem;
    border-radius: 4px;
    font-family: var(--font-minecraft);
    letter-spacing: 0.06em;
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}

.podium-place:hover .player-name-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.podium-block {
    width: 100%;
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-primary);
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(2, 6, 23, 0.95) 100%);
    backdrop-filter: blur(10px);
    position: relative;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.podium-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.podium-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.podium-place:hover .podium-block {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.podium-place.first .podium-block {
    min-height: 280px;
    z-index: 2;
    transform: scale(1.05);
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.1), 0 25px 60px rgba(0, 0, 0, 0.6);
}

.podium-place.first:hover .podium-block {
    transform: scale(1.08) translateY(-15px);
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.2), 0 30px 70px rgba(0, 0, 0, 0.7);
}

.podium-place.second .podium-block {
    min-height: 240px;
    border-color: rgba(148, 163, 184, 0.2);
}

.podium-place.third .podium-block {
    min-height: 200px;
    border-color: rgba(168, 85, 247, 0.2);
}


.podium-rank-label {
    font-family: var(--font-minecraft-title);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.podium-rank-label i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.podium-place.first .podium-rank-label i {
    color: #facc15;
    filter: drop-shadow(0 0 8px #facc15);
}

.podium-place.second .podium-rank-label i {
    color: #94a3b8;
    filter: drop-shadow(0 0 8px #94a3b8);
}

.podium-place.third .podium-rank-label i {
    color: #a855f7;
    filter: drop-shadow(0 0 8px #a855f7);
}

.podium-place {
    text-decoration: none;
    color: inherit;
}

.podium-stat {
    font-family: var(--font-minecraft);
    font-size: 1.25rem;
    font-weight: 500;
    color: #3b82f6;
    margin-top: 0.5rem;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}



.podium-rank-label i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.podium-role {
    display: none;
}




.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 50px 60px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    background: #0b1021;
    border: 1px solid rgba(25, 35, 55, 1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    font-family: var(--font-minecraft);
    text-decoration: none;
    color: inherit;
}

.leaderboard-item:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leaderboard-item {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.rank-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-weight: 700;
    color: var(--text-secondary);
}

.player-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    image-rendering: pixelated;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.skin-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 16, 16, 0.92);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-minecraft);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.player-avatar:hover .skin-tooltip {
    opacity: 1;
    transform: translate(-50%, -3px);
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.player-info .player-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.leaderboard-item:hover .player-info .player-name {
    color: var(--accent-primary);
}

.player-info .player-role {
    justify-content: flex-start;
    font-size: 0.8rem;
}

.leaderboard-item .player-stat {
    margin: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-minecraft);
}


@media (max-width: 768px) {
    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        height: auto;
    }

    .podium-place {
        width: 100%;
        order: unset !important;
        transform: none !important;
    }

    .podium-skin-wrapper {
        height: 200px;
    }

    .podium-block {
        min-height: auto;
    }

    .leaderboard-item {
        grid-template-columns: 40px 50px 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .leaderboard-item .player-stats {
        display: none;
    }
}


@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
    }

    .sidebar-menu span,
    .sidebar-btn span {
        opacity: 1;
        transform: none;
        display: inline;
    }

    .sidebar-btn {
        justify-content: flex-start;
        padding: 0.75rem 1.25rem;
    }
}


.leaderboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    padding-bottom: 1px;
}

.leaderboard-tabs .tab {
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leaderboard-tabs .tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.leaderboard-tabs .tab.active {
    color: var(--accent-primary);
    border-color: rgba(6, 182, 212, 0.3);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
}


.leaderboard-list.loading,
.podium-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton-block {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.1), rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.1));
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.1);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


input[type="file"] {
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    height: auto;
}

input[type="file"]::file-selector-button {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    margin-right: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background: #22d3ee;
}


.status-card-enhanced {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.status-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}


.player-model-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.player-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(2, 6, 23, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.player-model-container:hover .player-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}


.btn-logout {
    background: transparent;
    color: #f87171;
    border: 2px solid #ef4444;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-name {
        font-size: 2rem;
    }

    .skin-render {
        width: 120px;
        height: 120px;
    }

    .profile-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-button {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .action-button i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .action-button div {
        gap: 0.25rem;
    }

    .skin-render-container img {
        width: 180px !important;
        height: 90px !important;
    }

    .link-form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .link-form-actions button {
        width: 100%;
    }

    .card-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .link-layout {
        grid-template-columns: 1fr;
    }

    .uuid-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .copy-button {
        width: 100%;
        justify-content: center;
    }
}


.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.skin-container {
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.skin-render {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-tertiary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.warning {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.2);
}


.profile-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.action-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-button:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.2);
}

.action-button:hover::before {
    opacity: 1;
}

.action-button.primary {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(6, 182, 212, 0.3);
}

.action-button.primary:hover {
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.3);
}


.footer {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1.5rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.footer-logo i {
    color: var(--accent-primary);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    position: relative;
}

.footer-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-primary);
    transform: translateX(3px);
}

.footer-nav a:hover::before {
    width: 100%;
}

.discord-link {
    color: #5865F2 !important;
    font-weight: 600;
}

.discord-link:hover {
    color: #7289da !important;
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.4));
}

.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright i {
    color: var(--text-secondary);
}

.footer-tech {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-tech i {
    transition: transform 0.3s ease;
}

.footer-tech:hover i {
    transform: scale(1.2);
}


@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
        margin-top: 4rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .footer-description {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        font-size: 1.25rem;
    }

    .footer-logo i {
        font-size: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-nav a {
        font-size: 0.9rem;
    }
}


.profile-header {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

.skin-container {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.15));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
}

.skin-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skin-container:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.2);
}

.skin-container:hover::after {
    opacity: 1;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.profile-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.profile-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-badge i {
    font-size: 0.7rem;
    border-radius: 50%;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.status-badge.online {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.15));
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.4);
}

.status-badge.offline {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.25), rgba(107, 114, 128, 0.15));
    color: #9ca3af;
    border-color: rgba(107, 114, 128, 0.4);
}

.status-badge.warning {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(234, 179, 8, 0.15));
    color: #fbbf24;
    border-color: rgba(234, 179, 8, 0.4);
}

.role-badge {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.15));
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.role-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.role-badge i {
    font-size: 0.75rem;
    border-radius: 50%;
    padding: 0.2rem;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
    top: 0;
    left: 0;
}

.role-badge.admin {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.role-badge.moderator {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.role-badge.vip {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.3);
}


@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .skin-container {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 1.5rem;
    }

    .skin-container {
        width: 80px;
        height: 80px;
    }

    .profile-name {
        font-size: 1.75rem;
    }
}


.rules-section .card {
    border-left: 4px solid var(--accent-primary);
    transition: transform 0.3s ease;
}

.rules-section .card:hover {
    transform: translateX(5px);
}

.rule-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.rule-penalty {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-transform: uppercase;
}


.copy-button {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-secondary) !important;
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.copy-button:active {
    transform: translateY(1px);
}

.copy-button.copied {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #4ade80 !important;
}

html[data-theme="light"] .copy-button {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

html[data-theme="light"] .copy-button:hover {
    background: #cbd5e1 !important;
    color: #1e293b !important;
    border-color: #94a3b8 !important;
}


html[data-theme="light"] .profile-header {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.9), rgba(226, 232, 240, 0.95));
    border-color: rgba(14, 165, 233, 0.15);
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.1);
}

html[data-theme="light"] .profile-header::before {
    opacity: 0.8;
}

html[data-theme="light"] .skin-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(241, 245, 249, 0.9));
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

html[data-theme="light"] .skin-container::after {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.4), rgba(139, 92, 246, 0.4));
}

html[data-theme="light"] .skin-container:hover {
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.25);
}

html[data-theme="light"] .status-badge {
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

html[data-theme="light"] .status-badge:hover {
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

html[data-theme="light"] .status-badge.online {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.3);
}

html[data-theme="light"] .status-badge.offline {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.15), rgba(107, 114, 128, 0.08));
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.3);
}

html[data-theme="light"] .status-badge.warning {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(234, 179, 8, 0.08));
    color: #ca8a04;
    border-color: rgba(234, 179, 8, 0.3);
}

html[data-theme="light"] .role-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.08));
    color: #7c3aed;
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

html[data-theme="light"] .role-badge:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

html[data-theme="light"] .action-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.95));
    border-color: rgba(14, 165, 233, 0.15);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.1);
}

html[data-theme="light"] .action-button::before {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(139, 92, 246, 0.08));
}

html[data-theme="light"] .action-button:hover {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

html[data-theme="light"] .action-button.primary {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(139, 92, 246, 0.12));
    border-color: rgba(14, 165, 233, 0.25);
}

html[data-theme="light"] .action-button.primary:hover {
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.2);
}


.profile-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-main-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}


.card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card h2 i {
    color: var(--accent-primary);
    font-size: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.15);
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}


html[data-theme="light"] .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.95));
    border-color: rgba(14, 165, 233, 0.15);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.1);
}

html[data-theme="light"] .card:hover {
    border-color: rgba(14, 165, 233, 0.25);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

html[data-theme="light"] .stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(241, 245, 249, 0.9));
    border-color: rgba(14, 165, 233, 0.12);
}

html[data-theme="light"] .stat-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.12);
}


@media (max-width: 968px) {
    .profile-main-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}


.skeleton {
    background: linear-gradient(90deg,
            var(--bg-tertiary) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.skeleton-card {
    height: 120px;
    border-radius: var(--radius-md);
}

.skeleton-stat {
    height: 80px;
    border-radius: var(--radius-md);
}

.skeleton-podium {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg);
}

.skeleton-leaderboard-item {
    height: 72px;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}


.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    animation: toast-slide-in 0.3s ease-out;
    max-width: 400px;
    min-width: 280px;
}

.toast.toast-exit {
    animation: toast-slide-out 0.3s ease-in forwards;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    animation: toast-progress linear forwards;
}

@keyframes toast-progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.toast.info {
    border-left: 4px solid #06b6d4;
}

.toast.info .toast-icon {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
}


.upload-progress-container {
    width: 100%;
    margin: 1rem 0;
    display: none;
}

.upload-progress-container.active {
    display: block;
}

.upload-progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.2s ease;
}

.upload-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.upload-progress-percent {
    font-weight: 600;
    color: var(--accent-primary);
}

/* ==================== */
/* LAZY LOADING IMAGES  */
/* ==================== */

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

.img-placeholder {
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}


@media (max-width: 480px) {
    .toast-container {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        max-width: 100%;
        min-width: auto;
    }
}


.nav-search {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
    position: relative;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

#navSearchInput {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#navSearchInput:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    outline: none;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1000;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.search-dropdown.active {
    display: block;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
    gap: 1rem;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-item-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    image-rendering: pixelated;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-tertiary);
    flex-shrink: 0;
}

.search-item-avatar.is-texture {
    background-size: 800%;
    background-position: 14.28% 14.28%;
}

.search-item-info {
    display: flex;
    flex-direction: column;
}

.search-item-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.search-item-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}


.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .nav-search {
        display: none;
    }
}