/* ========================================
   WASABI.EU — REDESIGNED STYLES 2025
   Premium Dark Minecraft Server Theme
   ======================================== */

/* === DESIGN TOKENS === */
:root {
    --primary: #6fcf3f;
    --primary-hover: #5bb830;
    --primary-glow: rgba(111, 207, 63, 0.35);
    --primary-soft: rgba(111, 207, 63, 0.1);
    --accent: #3eda7d;
    --gold: #ffd700;
    --dark-bg: #0a0a0f;
    --card-bg: rgba(20, 20, 30, 0.7);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-hover-border: rgba(111, 207, 63, 0.3);
    --nav-bg: rgba(10, 10, 18, 0.85);
    --text-main: #eaeaea;
    --text-muted: #8a8a9a;
    --glass-border: rgba(255, 255, 255, 0.08);
    --section-alt: #0d0d14;
    --danger: #ff4757;
    --rank-1: #ffd700;
    --rank-2: #c0c0c0;
    --rank-3: #cd7f32;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}

/* === SHOWCASE SECTION === */
.showcase-section {
    background: linear-gradient(to bottom, var(--dark-bg), #0f0f16);
    min-height: 100vh;
    /* Make it full screen */
    padding: 0 5%;
    /* Remove top/bottom padding, handle with flex */
    position: relative;
    overflow: hidden;
    display: flex;
    /* Center content vertically */
    align-items: center;
    justify-content: center;
}

.showcase-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 60px;
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
    .showcase-section {
        padding: 100px 5% 50px;
        /* Give space for nav on mobile */
        height: auto;
        min-height: auto;
        display: block;
    }

    .showcase-container {
        flex-direction: column;
        text-align: center;
    }

    .showcase-buttons {
        justify-content: center;
    }
}

.showcase-content {
    flex: 1;
    max-width: 600px;
}


body {
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    background: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(111, 207, 63, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(62, 218, 125, 0.02) 0%, transparent 50%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--primary-glow), 0 0 80px rgba(111, 207, 63, 0.15);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes enchantFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.12;
    }

    90% {
        opacity: 0.12;
    }

    100% {
        transform: translateY(calc(100vh + 200px)) rotate(360deg);
        opacity: 0;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(111, 207, 63, 0.2);
    }

    50% {
        border-color: rgba(111, 207, 63, 0.5);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.slide-in-right {
    opacity: 0;
    animation: slideInFromRight 0.8s ease-out forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
}

.fade-in-delay-4 {
    animation-delay: 0.4s;
}

.fade-in-delay-5 {
    animation-delay: 0.5s;
}

@keyframes reviewFloat {
    0% {
        transform: translateY(-50px) rotate(var(--start-rotate, 0deg));
        opacity: 0;
    }

    15% {
        opacity: 0.4;
    }

    85% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(110vh) rotate(var(--end-rotate, 0deg));
        opacity: 0;
    }
}

/* === ENCHANT & REVIEWS BACKGROUND === */
.enchant-container,
.reviews-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.review-floating {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    /* White low opacity */
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    user-select: none;
    will-change: transform, opacity;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    z-index: -1;
    animation-name: reviewFloat;
    animation-timing-function: linear;
}

.enchant-symbol {
    position: absolute;
    top: -50px;
    font-family: 'SGA', 'Times New Roman', serif;
    color: var(--primary);
    opacity: 0;
    animation: enchantFall linear infinite;
    text-shadow: 0 0 12px var(--primary-glow);
    user-select: none;
    will-change: transform, opacity;
}

/* === NAVIGATION === */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: var(--nav-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transition: var(--transition);
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.logo span {
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    opacity: 0.7;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
    opacity: 1;
}

.store-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #0a0a0f !important;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    opacity: 1 !important;
    box-shadow: 0 4px 20px var(--primary-glow);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.store-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.store-btn::after {
    display: none !important;
}

.burger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--text-main);
}

/* === HERO SECTION === */
header {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(111, 207, 63, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(62, 218, 125, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-badge {
    background: rgba(111, 207, 63, 0.1);
    color: var(--primary);
    padding: 10px 26px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 30px;
    border: 1px solid rgba(111, 207, 63, 0.4);
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: fadeInDown 1s ease, glowPulse 3s infinite;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(111, 207, 63, 0.1);
}

h1 {
    font-size: 6rem;
    margin-bottom: 20px;
    line-height: 1.0;
    text-transform: uppercase;
    text-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease 0.2s backwards;
    letter-spacing: -2px;
    font-weight: 900;
}

h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

p.subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.35rem;
    max-width: 700px;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease 0.4s backwards;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* === SERVER STATUS === */
.server-status {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.5s backwards;
    backdrop-filter: blur(10px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6c757d;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #2ecc71;
    box-shadow: 0 0 12px #2ecc71, 0 0 24px rgba(46, 204, 113, 0.3);
}

.status-dot.offline {
    background: var(--danger);
    box-shadow: 0 0 12px var(--danger);
}

.status-players {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === ONLINE PLAYERS === */
.online-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.online-player-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.online-player-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-glow);
}

.online-player-model {
    width: 100px;
    height: 150px;
    margin: 0 auto 15px;
}

.online-player-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* === IP BOX === */
.ip-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.ip-box {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--primary);
    padding: 22px 60px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(111, 207, 63, 0.15);
    animation: fadeInUp 1s ease 0.6s backwards;
}

.ip-box:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
}

#copy-status {
    color: var(--primary);
    font-weight: 600;
    height: 20px;
    opacity: 0;
    transition: 0.3s;
}

/* === SECTIONS COMMON === */
section {
    padding: 100px 5%;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-title h2 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* === PAGE HEADER (subpages) === */
.page-header {
    padding-top: 130px;
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(111, 207, 63, 0.04), transparent);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

.page-header h1 {
    font-size: 3rem;
    animation: none;
}

.page-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.page-header-bg {
    padding-top: 130px;
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(111, 207, 63, 0.04), transparent);
}

/* === WIKI COMMANDS BLOCK === */
.commands-block {
    margin: 30px 0;
    padding-left: 20px;
    border-left: 4px solid var(--primary, #6fcf3f);
}

.commands-block h2 {
    margin-top: 0 !important;
    border: none;
    padding: 0 !important;
    background: none;
    margin-bottom: 20px !important;
}

.commands-content {
    background: rgba(10, 10, 15, 0.4);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.commands-content p {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.commands-content p:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.commands-content p:first-child {
    padding-top: 0;
}

.commands-content code {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    color: var(--primary, #6fcf3f) !important;
    font-size: 0.95em;
    white-space: nowrap;
    display: inline-block;
}

/* Odstranit defaultni styly pro code v tomto bloku */
.commands-content code::before,
.commands-content code::after {
    content: none !important;
}

/* === FEATURE CARDS === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-card), 0 0 30px var(--primary-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-soft), rgba(62, 218, 125, 0.08));
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(111, 207, 63, 0.15);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === JOBS SECTION === */
.jobs-section {
    background: var(--section-alt);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.job-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--card-border);
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.job-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-card);
}

.job-card .emoji {
    font-size: 3rem;
    margin-bottom: 15px;
}

.job-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.job-card p {
    color: var(--text-muted);
}

/* === SHOWCASE SECTION === */
.showcase-section {
    background: linear-gradient(to bottom, var(--dark-bg), #0f0f16);
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
}

.showcase-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
    .showcase-container {
        flex-direction: column;
        text-align: center;
    }

    .showcase-buttons {
        justify-content: center;
    }
}

.showcase-content {
    flex: 1;
    max-width: 600px;
}

.showcase-badge {
    display: inline-block;
    background: rgba(111, 207, 63, 0.15);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(111, 207, 63, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.showcase-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.showcase-content h2 span {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-soft);
}

.showcase-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 35px;
    line-height: 1.8;
}

.showcase-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #0a0a0f;
    box-shadow: 0 4px 20px var(--primary-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
    transform: translateY(-3px);
}

.showcase-video-wrapper {
    flex: 1;
    width: 100%;
    position: relative;
    max-width: 600px;
}

.video-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--card-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(111, 207, 63, 0.1);
    background: #000;
    transition: var(--transition);
    transform: perspective(1000px) rotateY(-5deg);
}

.showcase-video-wrapper:hover .video-frame {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px var(--primary-glow);
}

.video-frame video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    pointer-events: none;
    border-radius: var(--radius-lg);
}

/* === VOTE SECTION === */
.vote-section {
    background: var(--section-alt);
}

.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.vote-btn {
    background: var(--card-bg);
    padding: 20px 35px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--card-border);
    width: 320px;
    justify-content: flex-start;
    transition: var(--transition);
}

.vote-btn:hover {
    border-color: var(--card-hover-border);
    background: rgba(111, 207, 63, 0.05);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.vote-num {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    line-height: 1;
}

.vote-info h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.vote-info span {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === DISCORD SECTION === */
.discord-section {
    background: var(--section-alt);
    text-align: center;
    border-top: 1px solid var(--card-border);
}

.discord-box {
    background: rgba(88, 101, 242, 0.06);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: var(--radius-lg);
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.discord-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18rem;
    color: #5865F2;
    opacity: 0.04;
    pointer-events: none;
}

.discord-btn {
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: white;
    padding: 16px 45px;
    font-size: 1.1rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discord-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.5);
}

.discord-btn.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: #fff;
    padding: 15px 40px;
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
    animation: fadeInUp 1s ease 0.7s backwards;
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.6);
}

.discord-btn.hero-btn:hover {
    background: #4752c4;
    transform: scale(1.05);
    box-shadow: 0 0 45px rgba(88, 101, 242, 0.8);
}

/* === FOOTER === */
footer {
    background: #060608;
    padding: 60px 5% 30px;
    text-align: center;
    border-top: 1px solid var(--card-border);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 30px;
}

.footer-logo span {
    font-weight: 700;
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.social-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--primary-glow);
    border-color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.footer-links a {
    margin: 0 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: #444;
    font-size: 0.82rem;
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    flex-wrap: wrap;
}

.footer-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-stat-item .label {
    font-weight: 500;
}

.footer-stat-item .value {
    color: var(--primary);
    font-weight: 700;
    font-family: monospace;
    font-size: 1.1rem;
}

/* === RULES PAGE === */
.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.rule-category {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 35px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.rule-category:hover {
    border-color: var(--card-hover-border);
}

.rule-category h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(111, 207, 63, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: var(--transition);
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-item:hover {
    color: var(--text-main);
}

.rule-number {
    color: var(--primary);
    font-weight: 700;
    min-width: 28px;
    opacity: 0.5;
}

/* === A-TEAM / TEAM MEMBERS === */
.team-section {
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid,
.members-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
}

.team-member-3d {
    width: 250px;
}

.category-title,
.team-category h2,
.team-category h3 {
    text-align: center;
    margin: 60px 0 30px;
    font-size: 1.8rem;
    font-weight: 700;
}

.team-category h3 i {
    margin-right: 8px;
    color: var(--primary);
}

.category-title span,
.team-category h2 span,
.team-category h3 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Old member card style */
.team-member {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: 0.3s;
}

.team-member:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(111, 207, 63, 0.25);
    border-color: var(--card-hover-border);
}

.team-member:hover::before {
    opacity: 1;
}

.member-head {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--card-border);
    transition: var(--transition);
    image-rendering: pixelated;
}

.team-member:hover .member-head {
    border-color: var(--primary);
}

.team-member h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.team-member .quote {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 10px;
    min-height: 36px;
}

.role-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-owner {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.badge-admin {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.badge-mod {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.badge-builder {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.badge-helper {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.badge-tech {
    background: rgba(26, 188, 156, 0.15);
    color: #1abc9c;
}

.badge-vedeni {
    background: rgba(231, 76, 60, 0.15);
    color: #ff6b6b;
}

.badge-rp {
    background: rgba(255, 165, 0, 0.15);
    color: orange;
}

/* 3D Team Member Card */
.team-member-3d {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-member-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: 0.3s;
}

.team-member-3d:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(111, 207, 63, 0.25);
    border-color: var(--card-hover-border);
}

.team-member-3d:hover::before {
    opacity: 1;
}

.model-wrapper {
    width: 150px;
    height: 220px;
    margin: 0 auto 15px;
    position: relative;
}

.model-wrapper canvas {
    border-radius: 10px;
    background: radial-gradient(ellipse at bottom, rgba(111, 207, 63, 0.08) 0%, transparent 70%);
}

.team-member-3d h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.team-member-3d .quote {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 12px;
    min-height: 40px;
}

.team-member-3d .role-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.role-badge.role-owner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.15));
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.role-badge.role-tech {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(41, 128, 185, 0.15));
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.role-badge.role-admin {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(192, 57, 43, 0.15));
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.role-badge.role-mod {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(142, 68, 173, 0.15));
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.role-badge.role-builder {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15), rgba(230, 126, 34, 0.15));
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.role-badge.role-helper {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.15));
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Stalker Card */
.stalker-card {
    border: 1px solid rgba(231, 76, 60, 0.3) !important;
    box-shadow: 0 0 25px rgba(231, 76, 60, 0.1);
    animation: glowPulse 3s ease-in-out infinite;
}

.stalker-card:hover {
    box-shadow: 0 0 40px rgba(231, 76, 60, 0.2) !important;
}

.stalker-card .model-wrapper canvas {
    background: radial-gradient(ellipse at bottom, rgba(231, 76, 60, 0.1) 0%, transparent 70%);
}

/* Twitch link */
.member-social {
    margin-top: 10px;
}

.twitch-link {
    color: #9146FF;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.twitch-link:hover {
    color: #a970ff;
}

.twitch-btn-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 18px;
    background: rgba(145, 70, 255, 0.15);
    color: #9146FF;
    border: 1px solid rgba(145, 70, 255, 0.3);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.twitch-btn-card:hover {
    background: rgba(145, 70, 255, 0.3);
    color: #a970ff;
    transform: translateY(-2px);
}

/* === STALKER EASTER EGG === */
.stalker-easter-egg {
    position: fixed;
    bottom: 0;
    z-index: 999;
    cursor: pointer;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.stalker-easter-egg.visible {
    opacity: 1;
    pointer-events: auto;
}

.stalker-easter-egg.left {
    left: 0;
    transform: translateX(-30px);
}

.stalker-easter-egg.left.visible {
    transform: translateX(0);
}

.stalker-easter-egg.right {
    right: 0;
    transform: translateX(30px);
}

.stalker-easter-egg.right.visible {
    transform: translateX(0);
}

.stalker-easter-egg canvas {
    cursor: pointer;
}

.stalker-speech {
    position: absolute;
    top: -60px;
    background: var(--card-bg);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    color: #ff6b6b;
    border: 1px solid rgba(231, 76, 60, 0.3);
    animation: fadeInDown 0.5s ease;
    backdrop-filter: blur(10px);
}

.stalker-speech::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--card-bg);
}

@media (max-width: 768px) {
    .stalker-easter-egg {
        display: none;
    }
}

/* === LEADERBOARD === */
.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.leaderboard-tab {
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.leaderboard-tab:hover {
    border-color: var(--card-hover-border);
    color: var(--text-main);
}

.leaderboard-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #0a0a0f;
    border-color: var(--primary);
    font-weight: 700;
}

.leaderboard-content {
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    cursor: pointer;
}

.leaderboard-item:hover {
    transform: translateX(5px);
    background: rgba(111, 207, 63, 0.05);
    border-color: var(--card-hover-border);
}

.leaderboard-rank {
    font-size: 1.3rem;
    font-weight: 800;
    min-width: 40px;
    text-align: center;
    color: var(--text-muted);
}

.leaderboard-item:nth-child(1) .leaderboard-rank {
    color: var(--rank-1);
    font-size: 1.6rem;
}

.leaderboard-item:nth-child(2) .leaderboard-rank {
    color: var(--rank-2);
    font-size: 1.4rem;
}

.leaderboard-item:nth-child(3) .leaderboard-rank {
    color: var(--rank-3);
    font-size: 1.3rem;
}

.leaderboard-item:nth-child(1) {
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.04);
}

.leaderboard-item:nth-child(2) {
    border-color: rgba(192, 192, 192, 0.2);
}

.leaderboard-item:nth-child(3) {
    border-color: rgba(205, 127, 50, 0.2);
}

.leaderboard-head {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    image-rendering: pixelated;
    border: 2px solid var(--card-border);
}

.leaderboard-name {
    font-weight: 600;
    flex: 1;
    font-size: 1.05rem;
}

.leaderboard-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
}

/* === MODAL STYLES (Leaderboard + General) === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #151520;
    margin: 8% auto;
    padding: 35px;
    border: 1px solid var(--card-border);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-card);
    animation: slideIn 0.3s ease;
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-head {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px var(--primary-glow);
}

.modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

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

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
}

.stat-rank {
    color: var(--primary);
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 600;
}

/* === BANLIST === */
.banlist-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

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

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 25px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-tab:hover {
    border-color: var(--card-hover-border);
    color: var(--text-main);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    border-color: var(--primary);
}

/* === SBĚRATELSKÉ KARTY === */
.cards-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.cards-tier-section {
    margin-bottom: 50px;
    background: rgba(20, 20, 30, 0.5);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

/* Tier gradient backgrounds */
.cards-tier-section.tier-bg-common {
    background: linear-gradient(135deg, rgba(170, 170, 170, 0.03) 0%, rgba(20, 20, 30, 0.5) 100%);
}

.cards-tier-section.tier-bg-uncommon {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(20, 20, 30, 0.5) 100%);
}

.cards-tier-section.tier-bg-rare {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(20, 20, 30, 0.5) 100%);
}

.cards-tier-section.tier-bg-epic {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.06) 0%, rgba(20, 20, 30, 0.5) 100%);
}

.cards-tier-section.tier-bg-legendary {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.06) 0%, rgba(20, 20, 30, 0.5) 100%);
}

.cards-tier-section.tier-bg-mythic {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.07) 0%, rgba(20, 20, 30, 0.5) 100%);
}

.tier-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tier-title .tier-count {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.5;
    margin-left: auto;
}

/* Tier Colors */
.tier-common {
    color: #aaaaaa;
    border-bottom-color: rgba(170, 170, 170, 0.2);
    text-shadow: 0 0 10px rgba(170, 170, 170, 0.2);
}

.tier-uncommon {
    color: #2ecc71;
    border-bottom-color: rgba(46, 204, 113, 0.2);
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
}

.tier-rare {
    color: #3498db;
    border-bottom-color: rgba(52, 152, 219, 0.2);
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.tier-epic {
    color: #9b59b6;
    border-bottom-color: rgba(155, 89, 182, 0.2);
    text-shadow: 0 0 12px rgba(155, 89, 182, 0.3);
}

.tier-legendary {
    color: #f1c40f;
    border-bottom-color: rgba(241, 196, 15, 0.2);
    text-shadow: 0 0 15px rgba(241, 196, 15, 0.3);
}

.tier-mythic {
    color: #e74c3c;
    border-bottom-color: rgba(231, 76, 60, 0.2);
    text-shadow: 0 0 18px rgba(231, 76, 60, 0.4);
}

/* === CAROUSEL === */
.cards-carousel-wrapper {
    position: relative;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
    background: rgba(111, 207, 63, 0.3);
    border-color: rgba(111, 207, 63, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.arrow-left {
    left: -5px;
}

.carousel-arrow.arrow-right {
    right: -5px;
}

.cards-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 15px 5px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.cards-carousel:active {
    cursor: grabbing;
}

.cards-carousel::-webkit-scrollbar {
    display: none;
}

/* === CARD ITEMS === */
.card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    flex: 0 0 140px;
    position: relative;
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 2.5 / 3.5;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #111;
    border: 2px solid rgba(255, 255, 255, 0.06);
}

.card-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.4s ease;
    image-rendering: pixelated;
}

.card-name {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.35);
    padding: 5px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === PRICE BADGE (hidden by default, shown on hover) === */
.card-price-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-price-badge i {
    margin-right: 5px;
}

.card-item:hover .card-price-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Price badge tier colors */
.card-item.rarity-common .card-price-badge {
    color: #aaa;
    border-color: rgba(170, 170, 170, 0.3);
}

.card-item.rarity-uncommon .card-price-badge {
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
}

.card-item.rarity-rare .card-price-badge {
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.3);
}

.card-item.rarity-epic .card-price-badge {
    color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.3);
}

.card-item.rarity-legendary .card-price-badge {
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.3);
}

.card-item.rarity-mythic .card-price-badge {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

/* === HOVER EFFECTS === */
.card-item:hover {
    transform: translateY(-8px);
}

.card-item:hover .card-image-wrapper {
    transform: scale(1.06) rotateZ(1deg);
}

.card-item:hover img {
    transform: scale(1.08);
}

.card-item:hover .card-name {
    color: var(--primary);
    border-color: rgba(111, 207, 63, 0.2);
}

/* Rarity-specific hover glows */
.card-item.rarity-common:hover .card-image-wrapper {
    box-shadow: 0 12px 30px rgba(170, 170, 170, 0.2);
    border-color: rgba(170, 170, 170, 0.3);
}

.card-item.rarity-uncommon:hover .card-image-wrapper {
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.4);
}

.card-item.rarity-rare:hover .card-image-wrapper {
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.5);
}

.card-item.rarity-epic:hover .card-image-wrapper {
    box-shadow: 0 15px 35px rgba(155, 89, 182, 0.35);
    border-color: rgba(155, 89, 182, 0.5);
}

.card-item.rarity-legendary:hover .card-image-wrapper {
    box-shadow: 0 15px 40px rgba(241, 196, 15, 0.4);
    border-color: rgba(241, 196, 15, 0.6);
}

.card-item.rarity-mythic:hover .card-image-wrapper {
    box-shadow: 0 18px 45px rgba(231, 76, 60, 0.45);
    border-color: rgba(231, 76, 60, 0.6);
    animation: mythicPulse 1.5s ease-in-out infinite;
}

@keyframes mythicPulse {

    0%,
    100% {
        box-shadow: 0 18px 45px rgba(231, 76, 60, 0.4);
    }

    50% {
        box-shadow: 0 18px 55px rgba(231, 76, 60, 0.6);
    }
}

/* Default idle border tints per tier */
.card-item.rarity-uncommon .card-image-wrapper {
    border-color: rgba(46, 204, 113, 0.12);
}

.card-item.rarity-rare .card-image-wrapper {
    border-color: rgba(52, 152, 219, 0.12);
}

.card-item.rarity-epic .card-image-wrapper {
    border-color: rgba(155, 89, 182, 0.15);
}

.card-item.rarity-legendary .card-image-wrapper {
    border-color: rgba(241, 196, 15, 0.15);
}

.card-item.rarity-mythic .card-image-wrapper {
    border-color: rgba(231, 76, 60, 0.18);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .carousel-arrow {
        display: none;
    }

    .card-item {
        flex: 0 0 120px;
    }

    .tier-title {
        font-size: 1.3rem;
    }

    .card-price-badge {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}



/* === CS2-STYLE CARD DETAIL MODAL === */
.card-detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 30px;
    animation: cdFadeIn 0.3s ease;
}

.card-detail-overlay.active {
    display: flex;
}

@keyframes cdFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.card-detail-container {
    background: linear-gradient(145deg, #1a1a2e 0%, #16162a 50%, #0f0f1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    display: flex;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: cdSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    position: relative;
}

@keyframes cdSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.card-detail-left {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.card-detail-image {
    width: 200px;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    border: 3px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.card-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    image-rendering: pixelated;
}

.card-detail-overlay[data-tier="common"] .card-detail-image {
    border-color: rgba(170, 170, 170, 0.3);
    box-shadow: 0 15px 40px rgba(170, 170, 170, 0.1);
}

.card-detail-overlay[data-tier="uncommon"] .card-detail-image {
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.15);
}

.card-detail-overlay[data-tier="rare"] .card-detail-image {
    border-color: rgba(52, 152, 219, 0.4);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.15);
}

.card-detail-overlay[data-tier="epic"] .card-detail-image {
    border-color: rgba(155, 89, 182, 0.4);
    box-shadow: 0 15px 40px rgba(155, 89, 182, 0.15);
}

.card-detail-overlay[data-tier="legendary"] .card-detail-image {
    border-color: rgba(241, 196, 15, 0.5);
    box-shadow: 0 15px 40px rgba(241, 196, 15, 0.2);
}

.card-detail-overlay[data-tier="mythic"] .card-detail-image {
    border-color: rgba(231, 76, 60, 0.5);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.2);
}

.card-detail-right {
    flex: 1;
    padding: 35px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.card-detail-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-detail-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.card-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.card-detail-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.card-detail-tier-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-badge-common {
    background: rgba(170, 170, 170, 0.15);
    color: #aaa;
    border: 1px solid rgba(170, 170, 170, 0.3);
}

.tier-badge-uncommon {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.tier-badge-rare {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.tier-badge-epic {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.tier-badge-legendary {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.tier-badge-mythic {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.card-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.card-stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.card-stat-box:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.card-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.card-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.card-stat-value.positive {
    color: #2ecc71;
}

.card-stat-value.negative {
    color: #e74c3c;
}

.card-chart-section {
    flex: 1;
    min-height: 0;
}

.card-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-chart-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-chart-period {
    display: flex;
    gap: 6px;
}

.chart-period-btn {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.chart-period-btn:hover,
.chart-period-btn.active {
    background: rgba(111, 207, 63, 0.15);
    border-color: rgba(111, 207, 63, 0.3);
    color: #6fcf3f;
}

.card-chart-canvas {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    height: 200px;
}

@media (max-width: 768px) {
    .card-detail-container {
        flex-direction: column;
        max-height: 95vh;
    }

    .card-detail-left {
        flex: 0 0 auto;
        padding: 25px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .card-detail-image {
        width: 140px;
        height: 196px;
    }

    .card-detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-detail-name {
        font-size: 1.3rem;
    }
}

.bans-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.ban-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid #e74c3c;
    border: 1px solid var(--card-border);
    border-left: 4px solid #e74c3c;
    transition: var(--transition);
    flex-wrap: wrap;
}

.ban-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.03);
}

.ban-card.expired {
    border-left-color: #2ecc71;
    opacity: 0.7;
}

.ban-card.mute {
    border-left-color: #f39c12;
}

.ban-card.warn {
    border-left-color: #3498db;
}

.ban-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 150px;
}

.ban-player img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 2px solid var(--card-border);
}

.ban-player .nick {
    font-weight: 600;
    font-size: 1.1rem;
}

.ban-details {
    flex: 1;
    min-width: 200px;
}

.ban-reason {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.ban-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ban-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ban-admin {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ban-admin img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.ban-admin span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ban-status {
    padding: 6px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ban-status.active {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.ban-status.expired {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.unban-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.unban-btn:hover {
    background: var(--primary);
    color: #000;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* === 3D PLAYER VIEWER === */
.player-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-viewer-overlay.active {
    display: flex;
    opacity: 1;
}

.player-3d-container {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.player-3d-label {
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.player-3d-label.punished {
    color: #ff6b6b;
}

.player-3d-label.admin {
    color: var(--primary);
}

.player-3d-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.ban-detail-center {
    flex: 1;
    max-width: 500px;
    padding: 0 40px;
}

.ban-detail-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
}

.ban-detail-card h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ban-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ban-detail-row:last-child {
    border-bottom: none;
}

.ban-detail-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ban-detail-value {
    color: var(--text-main);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.ban-detail-value.status-active {
    color: #ff6b6b;
}

.ban-detail-value.status-expired {
    color: var(--primary);
}

.close-viewer {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    z-index: 1001;
}

.close-viewer:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* === SHOP COMPATIBILITY (obchod.html) === */
.country-switcher {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px;
    border-radius: 12px;
    gap: 6px;
    border: 2px solid rgba(111, 207, 63, 0.3);
}

.country-switcher .country-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.country-switcher .country-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.country-switcher .country-btn.active {
    background: var(--primary);
    color: #121212;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.country-switcher .country-btn .flag {
    font-size: 1.1rem;
}

.category-switcher {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 16px;
    gap: 8px;
    border: 2px solid rgba(111, 207, 63, 0.3);
}

.category-switcher .category-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-switcher .category-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.category-switcher .category-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #6ba02e 100%);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.category-switcher .category-btn.active i {
    transform: scale(1.2);
}

.category-switcher .category-btn#btn-souls.active {
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    color: #1a1a1a;
}

.category-switcher .category-btn#btn-souls.active i {
    color: #1a1a1a !important;
}

.category-switcher .category-btn#btn-chreny.active {
    background: linear-gradient(135deg, #e056fd 0%, #be2edd 100%);
    box-shadow: 0 4px 20px rgba(224, 86, 253, 0.5);
    color: #1a1a1a;
}

.category-switcher .category-btn#btn-chreny.active i {
    color: #1a1a1a !important;
}

.shop-controls-unit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.payment-card {
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    text-align: center;
}

.payment-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-3px);
}

.ranks-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.rank-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 30px 25px;
    width: 280px;
    min-height: 260px;
    border: 1px solid var(--card-border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.rank-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-card);
}

.rank-title {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.rank-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.rank-sms {
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rank-sms strong {
    color: var(--primary);
    font-weight: 700;
}

.rank-sms code {
    display: block;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.rank-features {
    text-align: left;
    flex: 1;
}

.rank-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-features li i {
    color: var(--primary);
}

.rank-buy-btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: auto;
}

.rank-buy-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.rank-card.featured {
    border-color: var(--primary);
}

.rank-card.featured::before {
    content: 'NEJPRODÁVANĚJŠÍ';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.souls-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    margin: 10px 0;
}

.rank-custom-payment {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rank-custom-payment strong {
    color: var(--primary);
}

.contact-owner {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Flip card */
.flip-card {
    background-color: transparent;
    width: 280px;
    height: 260px;
    /* Matched to rank-card min-height */
    perspective: 2000px;
}

.flip-card-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d !important;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    border-radius: var(--radius-md);
    overflow: hidden !important;
}

.flip-card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.flip-card-back {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d1b1b 100%) !important;
    transform: rotateY(180deg) !important;
    border: 2px solid var(--danger) !important;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip-card .rank-card {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    padding-bottom: 50px !important;
}

.flip-card-front .rank-card {
    border: 1px solid var(--danger) !important;
    padding-bottom: 60px !important;
}

.flip-card:hover .rank-card {
    transform: none !important;
}

.donation-info {
    text-align: center;
    z-index: 5;
}

.donation-info h3 {
    color: var(--danger);
    margin-bottom: 15px;
}

.donation-info .highlight {
    color: var(--danger);
    font-weight: bold;
}

/* Benefits table */
.shop-notice {
    text-align: center;
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.3);
    color: #f1c40f;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    margin: 40px auto 0;
    max-width: 800px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.1);
}

.shop-notice i {
    font-size: 1.3rem;
}

.benefits-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
}

.benefits-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.benefits-table th,
.benefits-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
}

.benefits-table th {
    background: var(--card-bg);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.benefits-table td:first-child {
    text-align: left;
    font-weight: 500;
}

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

/* Key cards */
.key-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.key-card .rank-title {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-card .souls-price {
    margin-top: auto;
}

.key-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(243, 156, 18, 0.3));
    transition: transform 0.3s ease;
}

.key-card:hover .key-image {
    transform: scale(1.1) rotate(5deg);
}

.key-5x {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.key-5x .key-image {
    width: 90px;
    height: auto;
    margin-left: -55px;
    filter: drop-shadow(0 3px 8px rgba(243, 156, 18, 0.4));
}

.key-5x .key-image:first-child {
    margin-left: 0;
}

.key-card:hover .key-5x .key-image {
    transform: translateY(-5px);
}

.key-card:hover .key-5x .key-image:nth-child(1) {
    transition-delay: 0s;
}

.key-card:hover .key-5x .key-image:nth-child(2) {
    transition-delay: 0.05s;
}

.key-card:hover .key-5x .key-image:nth-child(3) {
    transition-delay: 0.1s;
}

.key-card:hover .key-5x .key-image:nth-child(4) {
    transition-delay: 0.15s;
}

.key-card:hover .key-5x .key-image:nth-child(5) {
    transition-delay: 0.2s;
}

.key-requirements {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 10px;
    margin: 10px 0;
}

.key-requirements span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.key-requirements .souls-req i {
    color: gold;
}

.key-requirements .chreny-req i {
    color: #e056fd;
}

/* Nickname gate */
.gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s ease;
}

.gate-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gate-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: translateY(30px);
    transition: 0.5s ease;
}

.gate-overlay.active .gate-card {
    transform: translateY(0);
}

.gate-card img {
    width: 100px;
    margin: 0 auto 20px;
}

.gate-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.gate-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.gate-input-group {
    position: relative;
    margin-bottom: 20px;
}

.gate-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    transition: 0.3s;
}

.gate-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.gate-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.gate-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

/* Shop dashboard */
.shop-dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--card-border);
    flex: 1;
    min-width: 450px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.dashboard-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-card), 0 0 20px var(--primary-soft);
}

.card-header-btn {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.card-header-btn i {
    font-size: 1.2rem;
}

.donor-spotlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-bottom: 25px;
}

.model-wrapper-donor {
    width: 180px;
    height: 240px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--card-border);
    position: relative;
}

.model-wrapper-donor canvas {
    width: 100% !important;
    height: 100% !important;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.donor-render {
    width: 150px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.donor-info h4 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    word-break: break-all;
}

.donor-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.nedavne-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.heads-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.head-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 5px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.head-item:hover {
    transform: scale(1.1);
    background: rgba(111, 207, 63, 0.2);
    border-color: var(--primary);
}

.head-item img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    image-rendering: pixelated;
}

.patron-btn {
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    background: linear-gradient(45deg, #1e3a1a, #2d5a27);
    border: 1px solid var(--primary);
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.patron-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Profile modal */
.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.profile-modal {
    background: #111;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-overlay.active .profile-modal {
    transform: scale(1);
}

.profile-header {
    background: linear-gradient(90deg, #1e3a1a, #2d5a27);
    padding: 20px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    border-bottom: 1px solid rgba(111, 207, 63, 0.3);
}

.close-profile {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.close-profile:hover {
    opacity: 1;
    transform: translateY(-50%) rotate(90deg);
}

.profile-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    flex: 1;
    overflow-y: auto;
}

.profile-sidebar {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--card-border);
}

.profile-skin-render {
    display: none;
}

.model-wrapper-profile {
    width: 100%;
    max-width: 250px;
    height: 400px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(111, 207, 63, 0.1);
}

.model-wrapper-profile canvas {
    width: 100% !important;
    height: 100% !important;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.profile-name-tag {
    background: #1a1a1a;
    padding: 8px 25px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    color: #fff;
    border: 1px solid var(--card-border);
}

.profile-main-content {
    padding: 30px;
}

.info-section {
    margin-bottom: 30px;
}

.info-title {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.info-grid {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    display: grid;
    gap: 15px;
}

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

.info-label {
    color: #fff;
    font-weight: 600;
}

.info-value {
    color: var(--primary);
    font-weight: 700;
}

.nakupy-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
}

.profile-history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.history-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.history-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.history-item-name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #fff;
}

.history-price {
    display: block;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.history-btn {
    width: 100%;
    padding: 8px;
    background: var(--primary);
    color: #121212;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.history-btn:hover {
    background: #fff;
    transform: scale(1.02);
}

/* Skeleton */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* === BUTTONS === */
.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* Wiki coming soon */
.coming-soon-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
}

.coming-soon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    width: 100%;
}

.worker-3d {
    position: relative;
}

.worker-3d model-viewer {
    border-radius: 20px;
    filter: drop-shadow(0 20px 40px var(--primary-glow));
}

.worker-3d::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}

.coming-soon-content {
    max-width: 500px;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.coming-soon-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.coming-soon-content h1 span {
    color: var(--primary);
}

.coming-soon-content>p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.coming-soon-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.cs-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.cs-feature:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-3px);
}

.cs-feature i {
    color: var(--primary);
    font-size: 1.3rem;
}

.cs-feature span {
    font-weight: 500;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-btn {
    background: var(--card-bg);
    color: var(--text-main);
    border: 2px solid var(--primary);
    padding: 12px 25px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #121212;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--primary-glow);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #555;
}

.pagination-info {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    h1 {
        font-size: 3rem;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background: #0f0f18;
        flex-direction: column;
        width: 80%;
        max-width: 300px;
        justify-content: center;
        transform: translateX(100%);
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .burger {
        display: block;
        z-index: 1001;
    }
}

@media (max-width: 768px) {
    .rules-container {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 5%;
    }

    .ban-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .ban-status,
    .unban-btn {
        align-self: flex-end;
    }

    .model-wrapper {
        width: 120px;
        height: 180px;
    }

    .team-member-3d h4 {
        font-size: 1.1rem;
    }

    .profile-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .player-viewer-overlay {
        flex-direction: column;
        overflow-y: auto;
        padding: 70px 20px 20px;
        gap: 30px;
    }

    .player-3d-container {
        flex: 0 0 auto;
    }

    .ban-detail-center {
        padding: 20px 0;
        order: -1;
    }

    .dashboard-card {
        min-width: 100%;
    }
}

@media (max-width: 900px) {
    .coming-soon-container {
        flex-direction: column;
        text-align: center;
    }

    .coming-soon-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .player-viewer-overlay canvas {
        width: 150px !important;
        height: 250px !important;
    }

    .ban-detail-card {
        padding: 20px;
    }

    .model-wrapper {
        width: 100px;
        height: 150px;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-btn {
        width: 100%;
        justify-content: center;
    }

    .profile-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .profile-history-list {
        grid-template-columns: 1fr;
    }

    .coming-soon-content h1 {
        font-size: 1.8rem;
    }

    .coming-soon-features {
        grid-template-columns: 1fr;
    }

    .shop-controls-unit {
        padding: 15px;
        width: 95%;
    }

    .category-switcher .category-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .country-switcher .country-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* Primary Light variable compatibility */
:root {
    --primary-light: #90e050;
}

/* === AUTH SYSTEM === */
.discord-login-btn {
    background: #5865F2;
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-login-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.discord-login-btn i {
    font-size: 1.1rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.user-status {
    font-size: 0.7rem;
    font-weight: 500;
    display: block;
}

.user-status.linked {
    color: var(--primary);
}

.user-status.not-linked {
    color: var(--text-muted);
}

.logout-btn {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    color: var(--danger) !important;
    background: rgba(255, 71, 87, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .user-profile {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/* === LEADERBOARD STYLES (Added by Antigravity) === */
/* Compact Header for Leaderboard */
.leaderboard-header {
    padding-top: 100px !important;
    padding-bottom: 0px !important;
    min-height: auto;
}

.leaderboard-header h1 {
    margin-bottom: 10px;
}

.leaderboard-header .subtitle {
    margin-bottom: 20px !important;
}

.leaderboard-section {
    padding: 0 5% 100px;
}

.leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Tabs Panel */
.leaderboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    background: rgba(20, 20, 30, 0.4);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.tab-btn i {
    font-size: 1.1em;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #0a0a0f;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
    transform: scale(1.05);
}

/* List */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 80px 60px 1fr auto;
    /* Rank | Head | Name | Value */
    align-items: center;
    gap: 25px;
    background: var(--card-bg);
    padding: 18px 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.leaderboard-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    background: rgba(30, 30, 40, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.leaderboard-item .rank {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.5;
}

.leaderboard-item .player-head {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.leaderboard-item:hover .player-head {
    transform: scale(1.1) rotate(5deg);
}

.leaderboard-item .player-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

.leaderboard-item .player-stat {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.3rem;
    background: rgba(111, 207, 63, 0.1);
    padding: 5px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(111, 207, 63, 0.2);
}

/* TOP 3 STYLES */
.leaderboard-item.top-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.08), rgba(20, 20, 30, 0.8));
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.leaderboard-item.top-1 .rank {
    color: var(--gold);
    font-size: 2rem;
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.leaderboard-item.top-1 .player-name {
    color: var(--gold);
}

.leaderboard-item.top-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.08), rgba(20, 20, 30, 0.8));
    border-color: rgba(192, 192, 192, 0.5);
}

.leaderboard-item.top-2 .rank {
    color: #e0e0e0;
    font-size: 1.8rem;
    opacity: 1;
    text-shadow: 0 0 15px rgba(192, 192, 192, 0.3);
}

.leaderboard-item.top-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.08), rgba(20, 20, 30, 0.8));
    border-color: rgba(205, 127, 50, 0.5);
}

.leaderboard-item.top-3 .rank {
    color: #eda572;
    font-size: 1.6rem;
    opacity: 1;
    text-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
    font-size: 1.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading i {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Modal Stats Grid */
.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-card .stat-rank {
    font-size: 0.85rem;
    color: var(--primary);
    margin-top: 8px;
    font-weight: 700;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(111, 207, 63, 0.1);
}

/* Scrollbar for modal */
.modal-stats-grid::-webkit-scrollbar {
    width: 8px;
}

.modal-stats-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.modal-stats-grid::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 4px;
}

.modal-stats-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .leaderboard-item {
        grid-template-columns: 50px 50px 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "rank head name"
            "rank head stat";
        gap: 5px 15px;
        padding: 15px;
    }

    .leaderboard-item .rank {
        grid-area: rank;
        font-size: 1.2rem;
    }

    .leaderboard-item .player-head {
        grid-area: head;
        width: 40px;
        height: 40px;
    }

    .leaderboard-item .player-name {
        grid-area: name;
        align-self: end;
        font-size: 1.1rem;
    }

    .leaderboard-item .player-stat {
        grid-area: stat;
        align-self: start;
        font-size: 1rem;
        background: transparent;
        border: none;
        padding: 0;
        margin-top: 2px;
    }

    .leaderboard-tabs {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }

    .tab-btn {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* === PROFILE DROPDOWN STYLES === */
.profile-dropdown {
    position: relative;
    cursor: pointer;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    padding: 8px;
    z-index: 1001;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

.profile-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Bridge to prevent closing when moving mouse from trigger to content */
.profile-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    transform: translateX(5px);
}

.dropdown-content a i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-content a:hover i {
    color: var(--primary);
}

.dropdown-content a.logout-link:hover {
    color: var(--danger);
    background: rgba(255, 71, 87, 0.1);
}

.dropdown-content a.logout-link:hover i {
    color: var(--danger);
}

/* === ADMIN DASHBOARD STYLES === */
.admin-dashboard {
    padding: 40px 5% 80px;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-container h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-container h2 i {
    color: var(--primary);
}

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.admin-stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.admin-stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.admin-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 5px;
}

.admin-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.admin-table-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 25px;
    overflow: hidden;
}

.admin-table-wrapper h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.admin-table-wrapper h3 i {
    color: var(--primary);
}

.admin-table-scroll {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-bottom: 2px solid var(--card-border);
    white-space: nowrap;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    white-space: nowrap;
}

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

.admin-table code {
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--text-muted);
}

.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
}

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

.admin-badge.linked {
    color: var(--primary);
    background: rgba(111, 207, 63, 0.1);
}

.admin-badge.not-linked {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

@media (max-width: 768px) {
    .admin-stats-row {
        grid-template-columns: 1fr;
    }

    .admin-stat-value {
        font-size: 2rem;
    }
}

/* Admin Buttons */
.admin-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-btn-kick {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.admin-btn-kick:hover {
    background: rgba(255, 107, 107, 0.25);
    transform: scale(1.05);
}

.admin-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--card-border);
}

.admin-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-btn-danger {
    background: #ff6b6b;
    color: #fff;
}

.admin-btn-danger:hover {
    background: #ff4757;
    transform: scale(1.02);
}

/* Admin Modal */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal-content {
    background: var(--darker);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 35px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.admin-modal-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.admin-modal-content p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.admin-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.admin-modal-buttons .admin-btn {
    padding: 10px 24px;
}

/* Admin Toast */
.admin-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.admin-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.admin-toast.success {
    background: rgba(111, 207, 63, 0.15);
    color: var(--primary);
    border: 1px solid rgba(111, 207, 63, 0.3);
}

.admin-toast.error {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* === LEADERBOARD SIDE LAYOUT === */
.leaderboard-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.leaderboard-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 250px;
    flex-shrink: 0;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: translateX(5px);
}

.tab-btn.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.tab-btn i {
    width: 20px;
    text-align: center;
}

.leaderboard-content {
    flex-grow: 1;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 20px;
    min-height: 500px;
    backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
    .leaderboard-container {
        flex-direction: column;
    }

    .leaderboard-tabs {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }

    .tab-btn {
        white-space: nowrap;
    }
}

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.profile-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.profile-tab-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* Transaction History */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.transaction-item:hover {
    background: rgba(40, 40, 40, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.t-info {
    display: flex;
    flex-direction: column;
}

.t-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.t-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.t-price {
    font-weight: 700;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
}

.t-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

/* ========================================
   CALENDAR SECTION
   ======================================== */
.calendar-section {
    padding: 80px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.calendar-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.calendar-nav h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-day-header.weekend {
    color: rgba(111, 207, 63, 0.5);
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.2s;
    position: relative;
    min-height: 70px;
    overflow: hidden;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day:not(.empty):hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--card-border);
}

.calendar-day.today {
    background: var(--primary-soft);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(111, 207, 63, 0.15);
}

.calendar-day.today .day-number {
    color: var(--primary);
    font-weight: 800;
}

.calendar-day.weekend .day-number {
    color: rgba(111, 207, 63, 0.6);
}

.calendar-day.has-event {
    cursor: pointer;
    border-color: rgba(111, 207, 63, 0.15);
}

.calendar-day.has-event:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 207, 63, 0.15);
}

.day-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.event-dots {
    display: flex;
    gap: 3px;
    margin-top: 4px;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.event-preview {
    font-size: 0.55rem;
    color: var(--primary);
    text-align: center;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 2px;
    font-weight: 600;
}

/* Event Popup */
.calendar-event-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: #14141e;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.popup-close:hover {
    color: var(--primary);
}

.popup-content h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--card-border);
}

.popup-event-item {
    padding: 12px 16px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.popup-event-item strong {
    color: var(--text-main);
    font-size: 0.95rem;
}

.popup-event-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 6px 0 0;
}

/* Calendar Responsive */
@media (max-width: 600px) {
    .calendar-wrapper {
        padding: 16px;
    }

    .calendar-day {
        min-height: 50px;
        padding: 4px 2px;
    }

    .day-number {
        font-size: 0.75rem;
    }

    .event-preview {
        display: none;
    }

    .calendar-nav h3 {
        font-size: 1rem;
    }
}

/* Color Picker */
.color-option {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    display: inline-block;
}

.color-option:hover {
    transform: scale(1.15);
}

.color-option.selected {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: scale(1.15);
}

/* Selected day in admin calendar */
.calendar-day.selected {
    background: rgba(111, 207, 63, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(111, 207, 63, 0.2);
}

/* ========== DAILY REWARD ========== */
.daily-reward-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.reward-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px 32px;
    transition: all 0.3s;
}

.reward-card:hover {
    border-color: rgba(111, 207, 63, 0.3);
    box-shadow: 0 0 30px rgba(111, 207, 63, 0.08);
}

.reward-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(111, 207, 63, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s;
}

.reward-icon.claimable {
    animation: giftPulse 2s ease-in-out infinite;
}

.reward-icon.claimed {
    background: rgba(111, 207, 63, 0.2);
    color: #6fcf3f;
}

@keyframes giftPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(111, 207, 63, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(111, 207, 63, 0.15);
    }
}

.reward-info {
    flex: 1;
}

.reward-info h3 {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.reward-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

#rewardMeta {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.reward-player {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.reward-claims {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.reward-action {
    flex-shrink: 0;
    text-align: center;
}

.reward-btn {
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reward-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
}

.reward-btn.can-claim {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(111, 207, 63, 0.3);
}

.reward-btn.can-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(111, 207, 63, 0.4);
}

.reward-btn.claimed {
    background: rgba(111, 207, 63, 0.15);
    color: var(--primary);
}

.reward-countdown {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Poppins', monospace;
}

@media (max-width: 640px) {
    .reward-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .reward-info {
        text-align: center;
    }

    #rewardMeta {
        justify-content: center;
    }
}

/* === SHOP LAYOUT === */
.shop-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .shop-layout {
        flex-direction: column;
    }
    .shop-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* === SHOP SIDEBAR === */
.shop-sidebar {
    width: 270px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.shop-sidebar:hover,
.shop-sidebar.open {
    /* No transforms needed in normal flow */
}

/* Hide the clickable tab */
.sidebar-tab {
    display: none;
}
    transition: all 0.35s ease;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5),
                0 0 15px rgba(111, 207, 63, 0.08);
}

.sidebar-tab i {
    color: var(--primary);
    font-size: 1.15rem;
    filter: drop-shadow(0 0 6px var(--primary-glow));
    transition: transform 0.3s ease;
}

.sidebar-tab-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.shop-sidebar:hover .sidebar-tab,
.shop-sidebar.open .sidebar-tab {
    background: rgba(111, 207, 63, 0.15);
    border-color: rgba(111, 207, 63, 0.5);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5),
                0 0 25px rgba(111, 207, 63, 0.15);
}

.shop-sidebar:hover .sidebar-tab i,
.shop-sidebar.open .sidebar-tab i {
    transform: scale(1.15);
}

/* The inner panel content */
.sidebar-inner {
    background: rgba(12, 12, 20, 0.92);
    backdrop-filter: blur(25px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    border-radius: 0 20px 20px 0;
    padding: 24px 20px;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6),
                inset 0 0 30px rgba(111, 207, 63, 0.03);
    overflow: hidden;
}

/* Glowing edge line on the right */
.sidebar-inner::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(111, 207, 63, 0.4),
        rgba(62, 218, 125, 0.4),
        transparent
    );
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.shop-sidebar:hover .sidebar-inner::after {
    opacity: 1;
}

/* Section Headers */
.sidebar-section {
    margin-bottom: 6px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.sidebar-section-header--ob {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(111, 207, 63, 0.12) 0%, rgba(111, 207, 63, 0.03) 100%);
    border: 1px solid rgba(111, 207, 63, 0.15);
}

.sidebar-section-header--ob i {
    font-size: 0.9rem;
    filter: drop-shadow(0 0 4px rgba(111, 207, 63, 0.4));
}

.sidebar-section-header--sv {
    color: var(--accent);
    background: linear-gradient(135deg, rgba(62, 218, 125, 0.12) 0%, rgba(62, 218, 125, 0.03) 100%);
    border: 1px solid rgba(62, 218, 125, 0.15);
}

.sidebar-section-header--sv i {
    font-size: 0.9rem;
    filter: drop-shadow(0 0 4px rgba(62, 218, 125, 0.4));
}

/* Divider between sections */
.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 12px 5px;
}

/* Button items */
.sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.sidebar-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.04), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border-left-color: rgba(255, 255, 255, 0.2);
}

.sidebar-btn:hover::before {
    opacity: 1;
}

.sidebar-btn i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.sidebar-btn:hover i {
    transform: scale(1.15);
}

.sidebar-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Active state */
.sidebar-btn.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(111, 207, 63, 0.15), rgba(111, 207, 63, 0.03));
    border-left-color: var(--primary);
    text-shadow: 0 0 10px rgba(111, 207, 63, 0.3);
}

.sidebar-btn.active i {
    color: var(--primary) !important;
    filter: drop-shadow(0 0 6px var(--primary-glow));
    transform: scale(1.1);
}

/* Souls active state */
.sidebar-btn#btn-sv-souls.active {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.12), transparent);
    border-left-color: #ffd700;
}

.sidebar-btn#btn-sv-souls.active i {
    color: #ffd700 !important;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
}

/* Klíče active state */
.sidebar-btn#btn-sv-klice.active {
    background: linear-gradient(90deg, rgba(243, 156, 18, 0.12), transparent);
    border-left-color: #f39c12;
}

.sidebar-btn#btn-sv-klice.active i {
    color: #f39c12 !important;
    filter: drop-shadow(0 0 6px rgba(243, 156, 18, 0.4));
}

/* Chreny active state */
.sidebar-btn#btn-sv-chreny.active {
    background: linear-gradient(90deg, rgba(224, 86, 253, 0.12), transparent);
    border-left-color: #e056fd;
}

.sidebar-btn#btn-sv-chreny.active i {
    color: #e056fd !important;
    filter: drop-shadow(0 0 6px rgba(224, 86, 253, 0.4));
}

/* Mobile: hide the fixed sidebar, show a floating button */
@media (max-width: 900px) {
    .shop-sidebar {
        top: auto;
        bottom: 20px;
        left: 0;
        transform: translateX(-220px);
        width: 260px;
    }

    .shop-sidebar:hover,
    .shop-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-tab {
        right: -44px;
        width: 44px;
    }
}

/* Sidebar inner scrollable when content overflows */
.sidebar-inner {
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(111, 207, 63, 0.3) transparent;
}

.sidebar-inner::-webkit-scrollbar {
    width: 4px;
}

.sidebar-inner::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-inner::-webkit-scrollbar-thumb {
    background: rgba(111, 207, 63, 0.3);
    border-radius: 4px;
}

/* === SIDEBAR COMPACT DONOR WIDGET === */
.sidebar-donor-widget {
    padding: 4px 6px;
}

.sidebar-donor-skeleton {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
}

.sidebar-donor-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(241, 196, 15, 0.06);
    border: 1px solid rgba(241, 196, 15, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sidebar-donor-card:hover {
    background: rgba(241, 196, 15, 0.12);
    border-color: rgba(241, 196, 15, 0.25);
    transform: translateX(3px);
}

.sidebar-donor-card img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid rgba(241, 196, 15, 0.3);
    image-rendering: pixelated;
}

.sidebar-donor-info {
    flex: 1;
    min-width: 0;
}

.sidebar-donor-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-donor-amount {
    font-size: 0.68rem;
    color: var(--primary);
    font-weight: 600;
}

/* === SIDEBAR COMPACT RECENT HEADS === */
.sidebar-recent-heads {
    padding: 6px 6px 8px;
}

.sidebar-heads-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 8px 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-heads-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 0 4px;
}

.sidebar-head-item {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}

.sidebar-head-item:hover {
    transform: scale(1.15);
    border-color: rgba(241, 196, 15, 0.4);
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.sidebar-head-item img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    display: block;
}

/* === PAYMENT RULES MODAL === */
.rules-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease;
}

.rules-modal-overlay.active {
    display: flex;
}

.rules-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 560px;
    width: 92%;
    max-height: 85vh;
    overflow: hidden;
    border: 1px solid rgba(231, 76, 60, 0.2);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(231, 76, 60, 0.08);
    animation: slideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.rules-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(231, 76, 60, 0.05));
    border-bottom: 1px solid rgba(231, 76, 60, 0.15);
}

.rules-modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e74c3c;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rules-modal-title i {
    filter: drop-shadow(0 0 6px rgba(231, 76, 60, 0.4));
}

.rules-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-modal-close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.rules-modal-body {
    padding: 20px 28px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(231, 76, 60, 0.3) transparent;
}

.rules-modal-body::-webkit-scrollbar {
    width: 4px;
}

.rules-modal-body::-webkit-scrollbar-thumb {
    background: rgba(231, 76, 60, 0.3);
    border-radius: 4px;
}

.rules-modal-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid rgba(231, 76, 60, 0.2);
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    transition: all 0.2s ease;
}

.rules-modal-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #e74c3c;
    color: var(--text-main);
}

.rules-modal-item.highlight {
    background: rgba(231, 76, 60, 0.08);
    border-left-color: #e74c3c;
    color: var(--text-main);
}

.rules-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

.rules-modal-footer {
    padding: 16px 28px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rules-modal-footer i {
    color: #e74c3c;
}