:root {
    --primary-grad-start: #0053ff;
    --primary-grad-end: #00fbff;
    --secondary-grad-start: #ffaf00;
    --secondary-grad-end: #ff1700;
    
    --bg-color: #f4f4f4;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --nav-bg: #ffffff;
    --border-color: #dddddd;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);

    /* Background Image Variable */
    --hero-bg: url('../img/2026-02-07_17.48.47.png');
    --hero-bg-size: cover; /* Standard cover for light mode */
}

[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --nav-bg: #181818;
    --border-color: #333333;
    --shadow: 0 5px 15px rgba(0,0,0,0.5);
    
    /* Dark Mode Background */
    --hero-bg: url('../img/image.png');
    --hero-bg-size: cover; /* Standard cover for dark mode */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: rgba(0,0,0,0.03);
}

[data-theme="dark"] .section-alt {
    background-color: rgba(255,255,255,0.03);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, var(--primary-grad-start), var(--primary-grad-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20%;
    width: 60%;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-grad-start), var(--secondary-grad-end));
    border-radius: 2px;
}

.text-center { text-align: center; }
.small-text { font-size: 0.9rem; color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-grad-start), var(--primary-grad-end));
    color: white;
}

.btn-secondary {
    background: linear-gradient(to right, var(--secondary-grad-start), var(--secondary-grad-end));
    color: white;
}

.btn-discord {
    background-color: #5865F2;
    color: white;
}

/* Top Bar */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.top-bar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    animation: slideDown 0.8s ease-out forwards;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    /* Override container width to push items to sides */
    max-width: 100% !important;
    padding: 0 40px !important;
}

.server-status {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ip-address {
    background: rgba(0, 83, 255, 0.1);
    color: var(--primary-grad-start);
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--primary-grad-start);
}

.ip-address:active {
    transform: scale(0.95);
}

.ip-address .tooltip {
    visibility: hidden;
    width: 140px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: -40px;
    left: 50%;
    margin-left: -70px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.ip-address:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

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

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: visible;
    pointer-events: none;
    z-index: 2000; /* Ensure visual is on top */
}

/* Precise Hit-Box for Logo Link */
.logo-container a {
    display: block; /* Ensure it behaves like a box */
    width: 100px; /* Wider hit area */
    height: 60px; /* Shorter to avoid overlapping navbar below */
    pointer-events: auto; /* Re-enable clicks */
    position: relative;
    z-index: 2001;
    /* Debug: background: rgba(255,0,0,0.2); remove later */
}

.main-logo {
    position: absolute; /* Take out of flow relative to <a> so it centers properly */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center on the <a> anchor */
    height: 160px;
    transition: transform 0.3s;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
    pointer-events: none; /* Icon allows clicks to pass through */
}


/* Trigger animation when hovering the clickable anchor wrapper */
.logo-container a:hover .main-logo {
    transform: translate(-50%, -50%) rotate(5deg) scale(1.1);
}

.socials-theme {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-btn {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.social-btn:hover {
    color: var(--primary-grad-start);
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

/* Navbar */
.navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 80px; /* Below top-bar */
    z-index: 999;
    animation: slideDown 1s ease-out forwards;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--secondary-grad-start), var(--secondary-grad-end));
    transition: width 0.3s;
}

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

.ticket-btn {
    background: linear-gradient(to right, #5865F2, #7289da);
    padding: 8px 20px;
    border-radius: 20px;
    color: white !important;
}

.ticket-btn::after {
    display: none;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* FIXED: Uses variable for specific theme images */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), var(--hero-bg);
    background-size: var(--hero-bg-size, cover);
    background-position: center;
    background-repeat: no-repeat;
    /* Fallback if user doesn't have bg image yet */
    background-color: var(--bg-color); 
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 1.5rem;
    color: #ddd;
    margin-bottom: 30px;
}

.gradient-text-1 {
    background: linear-gradient(to right, var(--primary-grad-start), var(--primary-grad-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border-left: 4px solid var(--primary-grad-start);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 80px; /* Big gap between tiles */
    justify-content: center;
    padding: 20px;
}

.team-member {
    position: relative; /* For button positioning */
    text-align: center;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Skin Viewer Container */
.skin-container {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 15px;
    background: radial-gradient(circle at center, rgba(0,83,255,0.05) 0%, rgba(0,0,0,0) 70%);
}

.skin-container canvas {
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));
}

/* 3D Control Button */
.skin-control-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    color: var(--text-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.8rem;
    z-index: 10;
}

.skin-control-btn:hover {
    background: var(--primary-grad-start);
    color: white;
    transform: scale(1.1);
}

/* Responsiveness for Team Grid */
@media (max-width: 1250px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(250px, 300px));
        gap: 30px;
    }
}

@media (max-width: 950px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(220px, 280px));
    }
}

@media (max-width: 600px) {
    .team-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px 10px; /* Reduced padding on very small screens */
    }
    
    .team-member {
        width: 100%;
        max-width: 350px;
    }
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 10px; /* Minecraft Heads are square-ish */
    margin-bottom: 15px;
    border: 3px solid var(--primary-grad-start);
}

.role {
    display: inline-block;
    padding: 0;
    margin-top: 10px;
    font-size: 1.5rem;
    font-weight: 800; /* Tučné */
    text-transform: uppercase;
    letter-spacing: 1px; /* Menší mezery - klasika */
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
    
    font-style: normal; /* Normální styl (ne kurzíva) */
    background: none;
    box-shadow: none;
    border: none;
}

.role:hover {
    transform: scale(1.1);
}

/* Specific Role Text Gradients (Jemná záře) */
.role-majitel, .role-majitelka {
    background: linear-gradient(90deg, #0053ff, #00fbff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 83, 255, 0.5));
}

.role-admin, .role-adminka {
    background: linear-gradient(90deg, #D91E18, #ff4d4d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 5px rgba(217, 30, 24, 0.5));
}

.role-builder, .role-builderka {
    background: linear-gradient(90deg, #2ecc71, #27ff00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 5px rgba(39, 255, 0, 0.5));
}

.role-helper, .role-helperka {
    background: linear-gradient(90deg, #1abc9c, #16a085);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 5px rgba(26, 188, 156, 0.5));
}

/* Legacy / Rank Text Gradients (Keep for reference or other uses) */
.rank-majitel {
    background: linear-gradient(90deg, #0057ff, #00fbff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.5rem;
}

.rank-builder {
    background: linear-gradient(90deg, #62a827, #37ff00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.5rem;
}

.rank-helperka {
    background: linear-gradient(90deg, #03b6ba, #068464);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.5rem;
}

.rank-admin {
    background: linear-gradient(90deg, #ff0000, #ff4d4d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.5rem;
}

.rank-mod {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Gendered Roles Variants */
.rank-majitelka {
    background: linear-gradient(90deg, #0067ff, #00e4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.5rem;
}

.rank-adminka {
    background: linear-gradient(90deg, #e70811, #b31938);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.5rem;
}

.rank-builderka {
    background: linear-gradient(90deg, #03b6ba, #068464);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.5rem;
}

.rank-helper {
    background: linear-gradient(90deg, #03bfc6, #068464);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.5rem;
}

/* VIP Ranks (Gradients) */
.rank-galaxyvip {
    background: linear-gradient(90deg, #cd64fd, #4a47ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.5rem;
}

.rank-starvip {
    background: linear-gradient(90deg, #d9f4ef, #26e5f2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.5rem;
}

.rank-sunvip {
    background: linear-gradient(90deg, #f8c64f, #e12323);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.5rem;
}

.rank-moonvip {
    background: linear-gradient(90deg, #697595, #5c6061);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.5rem;
}

/* 3D Skin Viewer Container */
.skin-viewer {
    width: 250px;
    height: 350px;
    margin: 0 auto;
}

.team-member {
    width: 300px; /* Wider to fit 3D model comfortably */
}

.team-member canvas {
    cursor: move; /* Indicate interactivity */
}

/* Shop Layout Styles */
.shop-section-title {
    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
}

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

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 260px;
    transition: transform 0.3s, border-color 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-grad-start);
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.product-price-primary {
    display: block;
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: bold;
    margin-top: 15px;
}

.product-price-secondary {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Specific VIP Colors for borders/titles */
.galaxy-vip { color: #8e44ad; }
.star-vip { color: #f1c40f; }
.sun-vip { color: #e67e22; }
.moon-vip { color: #bdc3c7; }

/* Shop Grid */
.shop-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.shop-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 300px;
    text-align: center;
}

.card-header {
    padding: 30px;
    color: white;
}

.card-header.gradient-bg-1 {
    background: linear-gradient(135deg, var(--primary-grad-start), var(--primary-grad-end));
}

.card-header.gradient-bg-2 {
    background: linear-gradient(135deg, var(--secondary-grad-start), var(--secondary-grad-end));
}

.card-body {
    padding: 30px;
}

.card-body ul {
    margin-bottom: 30px;
    text-align: left;
}

.card-body li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Gallery */
.gallery-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 20px auto;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative; /* Context for absolute positioning */
}

.slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute; /* Stack images on top of each other */
    top: 0;
    left: 0;
    z-index: 1;
}

.slider-wrapper img.active {
    opacity: 1;
    z-index: 2; /* Ensure active image is on top */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 20px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

@media (max-width: 768px) {
    .lightbox-prev { left: -10px; }
    .lightbox-next { right: -10px; }
    .lightbox-close { top: -40px; right: 10px; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Rules & Help */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.rules-box, .help-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.rules-list li {
    padding: 10px 0;
    border-left: 3px solid var(--secondary-grad-start);
    padding-left: 15px;
    margin-bottom: 10px;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    padding: 20px 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-bottom: 0;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #111;
    color: white;
    padding: 40px 0;
    margin-top: 50px;
}

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

.footer-links a {
    margin-left: 20px;
    color: #888;
}

.footer-links a:hover {
    color: white;
}

/* Mobile Styling - Unified with bottom definition */
@media screen and (max-width: 850px) {
    /* These styles are now largely redundant due to the block below,
       but we keep grid adjustments here */
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Mobile Nav Active */
.nav-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 60px;
    background: var(--card-bg);
    width: 100%;
    padding: 20px;
    box-shadow: var(--shadow);
}

/* Advanced Rules Styling */
.rules-container {
    max-width: 900px;
    margin: 0 auto;
}

.rules-section-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.rules-section-header h2 {
    font-size: 2rem;
    color: var(--primary-grad-start);
    margin-bottom: 10px;
}

.rules-section-header.discord-header h2 {
    color: #5865F2; /* Discord Color */
}

.rule-category {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-grad-start);
}

.rule-category h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.rule-items li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.rule-items i {
    margin-top: 4px; /* Align icon with text top */
}

.item-allowed { color: #2ecc71; }
.item-forbidden { color: #e74c3c; }
.item-warning { color: #f39c12; }
.item-neutral { color: var(--text-muted); }

.rule-note {
    background: rgba(0,0,0,0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    border-left: 3px solid var(--text-muted);
}

[data-theme="dark"] .rule-note {
    background: rgba(255,255,255,0.05);
}

.rule-note strong {
    color: var(--primary-grad-start);
    display: block;
    margin-bottom: 5px;
}

/* Vote Section Styles */
.vote-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.vote-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, border-color 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.vote-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-grad-start);
}

.vote-icon {
    font-size: 2.5rem;
    color: var(--primary-grad-start);
    background: rgba(0, 83, 255, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.vote-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.vote-cta {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.vote-card:hover .vote-cta {
    color: var(--secondary-grad-start);
}

/* Recruitment Styles */
.recruit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.recruit-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-grad-start);
}

.recruit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.recruit-list {
    list-style: none; /* No default bullets */
}

.recruit-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--text-muted);
}

.recruit-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-grad-start);
    font-weight: bold;
}

.recruit-reqs {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.recruit-reqs h3 {
    text-align: center;
    margin-bottom: 30px;
}

.recruit-apply {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 83, 255, 0.1), rgba(0, 251, 255, 0.1));
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.apply-link {
    display: inline-block;
    background: #5865F2; /* Discord color */
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.apply-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4);
}

/* Shop Modals */
.shop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.shop-modal {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    width: 500px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-height: 80vh;
    overflow-y: auto;
}

.shop-modal h2 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-grad-start);
}

.shop-modal h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.shop-modal ul {
    list-style: none;
    margin-bottom: 20px;
}

.shop-modal li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.shop-modal li:last-child { border-bottom: none; }

.shop-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* Payment Modal Specific */
.currency-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.currency-btn {
    border: 2px solid var(--border-color);
    background: transparent;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    color: var(--text-color);
    transition: all 0.2s;
}

.currency-btn:hover, .currency-btn.selected {
    border-color: var(--primary-grad-start);
    background: rgba(0, 83, 255, 0.05);
    transform: translateY(-2px);
}

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

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.nick-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
}

.recruit-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-open {
    background: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.status-closed {
    background: #e74c3c;
    opacity: 0.7;
}

.border-admin { border-top-color: #f0050b !important; }
.text-admin {
    background: linear-gradient(to right, #f0050b, #b31938);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.border-builder { border-top-color: #37ff00 !important; }
.text-builder {
    background: linear-gradient(to right, #62a827, #37ff00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.border-helper { border-top-color: #03b6ba !important; }
.text-helper {
    background: linear-gradient(to right, #03b6ba, #068464);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.border-mod { border-top-color: #5865F2 !important; }
.text-mod { color: #5865F2; }

.border-creator { border-top-color: #e91e63 !important; }
.text-creator { color: #e91e63; }

/* Secondary Tiktok */
.tiktok-tips {
    position: relative;
    color: var(--text-muted);
}
.tiktok-tips:hover { color: #ff0050; }
.tips-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary-grad-start);
    color: white;
    font-size: 0.5rem;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

/* Clean up the intermediate range - removed the problematic row layout */
@media screen and (max-width: 850px) {
    .container {
        padding: 0 20px;
    }
    .tooltip { display: none !important; }
}

/* Intermediate Desktop - Shrink logo so it stays longer */
@media screen and (min-width: 851px) and (max-width: 1250px) {
    .main-logo {
        height: 100px; /* Smaller logo */
    }
    .nav-links {
        gap: 15px; /* Squeeze menu items */
    }
    .nav-links a {
        font-size: 0.9rem;
    }
}

/* Mobile Styling starts immediately when Desktop view ends */
@media screen and (max-width: 850px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: block;
    }

    /* Top Bar Mobile - STACKED: IP TOP, SOCIALS BOTTOM, LOGO HIDDEN */
     
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    .top-bar {
        height: auto !important; 
        padding: 25px 0 10px 0 !important; /* Increased top padding significantly */
    }

    .top-bar-content {
        display: flex;
        flex-direction: column !important; /* Stack vertically again */
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        position: relative;
        width: 100% !important;
        padding: 0 10px !important;
    }

    /* Hide Original Logo */
    .logo-container {
        display: none !important;
    }


    /* Order 1: IP + Version - Top */
    .server-status {
        width: 100% !important;
        justify-content: center !important;
        margin: 0 !important;
        flex: 0 0 auto;
        order: 1;
    }
    
    .version-tag { 
        display: inline-block !important;
    }

    /* Order 2: Social Icons - Bottom */
    .socials-theme {
        width: 100% !important;
        justify-content: center !important;
        margin: 0 !important;
        gap: 15px !important;
        flex: 0 0 auto;
        padding-top: 0 !important;
        order: 2;
    }

    /* Navbar Mobile Styles - TIGHT FIT */
    .navbar {
        height: 60px !important; /* "mensi tu listu" */
        padding: 0 !important;
        display: flex;
        align-items: center;
        top: 0 !important; /* Force sticky to top on mobile because top-bar scrolls away */
    }

    .navbar .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px; 
        height: 100%;
        width: 100%;
    }

    /* New Mobile Logo in Navbar - OVERFLOWING BIG */
    .mobile-logo-clone {
        display: block;
        height: 90px; /* Bigger than navbar (60px) */
        width: auto;
        z-index: 1002;
        position: relative;
        top: 5px; /* Push down slightly */
        margin-left: -10px; /* Pull left to edge */
    }

    .mobile-logo-clone img {
        height: 100%; 
        width: auto;
        filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
        object-fit: contain;
    }

    /* Ensure Burger is on the right */
    .burger {
        margin-left: auto; /* Push to right if container is block? No, container is flex space-between */
    }

    .top-bar .ip-address {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .social-btn {
        font-size: 1.1rem; /* Slightly larger targets */
    }
    
    .tips-badge { display: none; }


    /* Navigation - Full Screen Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%; /* Slide out from right */
        max-width: 300px;
        background-color: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Move items to top */
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        padding-top: 80px; /* Leave space for close button/header */
        overflow-y: auto; /* Allow scrolling if too tall */
    }

    /* JS toggles 'nav-active' which sets display:flex. 
       We need to ensure it slides in when active. 
       We will likely need to adjust JS, but let's try CSS-only enhancements 
       assuming JS adds the class.
    */
    .nav-links.nav-active {
        display: flex; /* Ensure flex is active */
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 0 !important; /* Compact mode */
        width: 100%;
        text-align: center;
        opacity: 0; /* Animate in */
        animation: navLinkFade 0.5s ease forwards 0.3s;
    }

    .nav-links a {
        display: block;
        padding: 2px 0; /* Minimal padding */
        font-size: 0.8rem; /* Smaller text */
    }

    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0); }
    }

    /* Burger Menu Active */
    .burger {
        display: block;
        z-index: 1001; /* Above nav panel */
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .burger.toggle .line2 {
        opacity: 0;
    }
    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure container takes width */
        align-items: center; /* Center them */
    }

    .hero-btns .btn {
        width: 80% !important; /* Make buttons narrower (80% of screen) */
        max-width: 300px; /* Max width check */
        padding: 10px 0 !important; /* Reduce vertical padding */
        font-size: 0.95rem; /* Slightly smaller text */
        display: block; /* Ensure block behavior for width */
        text-align: center;
    }

    /* Grids to Single Column */
    .news-grid, 
    .vip-grid,
    .recruit-grid, 
    .vote-links-grid,
    .team-grid,
    .shop-grid,
    .gallery-grid,
    .grid-2 { /* Added grid-2 */
        grid-template-columns: 1fr !important; /* Force single column */
        padding: 0 5px; /* Minimal side padding */
    }

    /* A-Team Mobile Compact Cards */
    .team-member {
        padding: 15px !important; /* Smaller padding */
        max-width: 260px; /* Limit width significantly - "mensi ty kachlicky" */
        margin: 0 auto; /* Center them */
    }

    .skin-container {
        height: 180px !important; /* Make 3D viewer shorter */
        margin-bottom: 10px !important;
    }

    /* Fix box sizing and padding on mobile */
    .rules-box, 
    .help-box, 
    .info-box {
        padding: 20px !important; /* Reduced from 40px/30px to fit */
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto;
    }


    /* Recruitment Cards */
    .recruit-reqs {
        padding: 20px;
    }
    
    .apply-link {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    /* Force line break on mobile for specific texts */
    .mobile-break {
        display: block;
        margin-top: 5px;
    }

    /* Modals / Lightbox */
    #lightbox img {
        width: 95%;
        margin-top: 20%;
    }
    
    .admin-modal-content {
        width: 95%;
        margin: 10vh auto;
    }

    /* Footer / Bottom */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    /* Gallery Grid Overlay Mobile */
    .gallery-grid-overlay {
        padding: 60px 15px;
    }
    
    .gallery-grid-overlay img {
        width: 100%; /* Full width cards on mobile */
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .gallery-grid-close {
        top: 15px;
        right: 15px;
        font-size: 2rem;
        background: rgba(0,0,0,0.5);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Gallery Header Flex */
.gallery-section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto 15px auto;
}

.gallery-section-header h2 {
    margin: 0 !important; /* Override admin.css margin to ensure perfect centering */
    text-align: center;
    width: 100%;
}

/* Gallery Grid View (Public) */
.view-grid-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    white-space: nowrap; /* Prevent wrapping */
}

@media screen and (max-width: 600px) {
    .view-grid-btn span {
        display: none; /* Hide text on small screens, keep icon */
    }
}
.view-grid-btn:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.gallery-grid-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 14, 18, 0.98);
    z-index: 3000;
    overflow-y: auto;
    padding: 60px 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    animation: fadeIn 0.3s;
}

.gallery-grid-overlay img {
    width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 2px solid transparent;
}

.gallery-grid-overlay img:hover {
    transform: scale(1.05);
    z-index: 10;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.gallery-grid-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 3001;
    transition: transform 0.3s;
}
.gallery-grid-close:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

/* Admin Grid View */
.manager-view-toggle {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}
.manager-view-toggle button {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    color: #555;
    transition: all 0.2s;
}
.manager-view-toggle button.active {
    background: var(--primary-color);
    color: #000;
    border-color: #e6c200;
    font-weight: bold;
}

.manager-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    padding-bottom: 20px;
}
.manager-grid-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.manager-grid-item .img-wrap {
    width: 100%;
    height: 100px;
    margin-bottom: 8px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.manager-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.manager-grid-item .index-badge {
    position: absolute;
    top: 0; left: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-bottom-right-radius: 4px;
}
.manager-grid-controls {
    display: flex;
    gap: 4px;
    margin-top: auto;
}
.manager-grid-controls button {
    flex: 1;
    padding: 4px;
    font-size: 0.8rem;
    border-radius: 3px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
}
.manager-grid-controls button:hover {
    background: #eee;
}
.manager-grid-controls button.delete-btn {
    color: #c0392b;
    border-color: #ffcccc;
    background: #fff5f5;
}

  
/* Info Boxes */  
.info-box { background: var(--card-bg); padding: 30px; border-radius: 15px; text-align: center; box-shadow: var(--shadow); transition: transform 0.3s; border: 1px solid var(--border-color); }  
.info-box:hover { transform: translateY(-5px); }  
.info-icon { font-size: 3rem; margin-bottom: 20px; background: linear-gradient(to right, var(--primary-grad-start), var(--primary-grad-end)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }  
.info-box h3 { margin-bottom: 15px; font-size: 1.5rem; }  
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } 

/* --- ROLE GRADIENTS --- */
.role-majitel {
    background: linear-gradient(90deg, #0057ff, #00e4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.role-majitelka {
    background: linear-gradient(90deg, #0067ff, #00e4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.role-admin {
    background: linear-gradient(90deg, #f0050b, #b31938);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.role-adminka {
    background: linear-gradient(90deg, #e70811, #b31938);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.role-helper {
    background: linear-gradient(90deg, #03bfc6, #068464);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.role-helperka {
    background: linear-gradient(90deg, #03b6ba, #068464);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.role-builder {
    background: linear-gradient(90deg, #62a827, #37ff00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.role-builderka {
    background: linear-gradient(90deg, #5db223, #37ff00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* --- 3D SKIN CONTAINER --- */
.skin-container {
    height: 250px;
    width: 100%;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: grab;
}
.skin-container canvas {
    /* Ensure canvas doesn't overflow or stretch weirdly */
    max-width: 100%;
}
.team-member {
    /* Better Spacing */
    min-width: 280px;
    margin: 10px;
}
  
/* Mobile Gallery Fix */  
@media screen and (max-width: 768px) {
    .gallery-container { 
        height: 180px !important; /* Znacne zmenseno "ze spoda" */
        border-radius: 10px; /* Jemnejsi rohy pro mensi vysku */
    }
} 
