/* === HLAVNÍ STRÁNKA STARRYLAND === */

/* Hover efekt pro hamburger menu */
.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: box-shadow 0.2s;
}

.menu-btn:hover {
    box-shadow: 0 0 0 3px rgba(80,80,80,0.35);
    background: rgba(80,80,80,0.18);
}

.gallery-tab.active {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: bold;
    z-index: 3;
    border-radius: 8px 8px 0 0;
    padding-bottom: 12px;
    margin-bottom: -1px;
    /* Lehký stín pro hezký efekt */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.menu-btn:hover {
    box-shadow: 0 0 0 3px rgba(80,80,80,0.35);
    background: rgba(80,80,80,0.18);
}

/* Fixované prvky nad lištou */
.fixed-ip {
    position: fixed;
    top: 10px;
    left: 40px;
    z-index: 2000;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
}

.fixed-logo {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2001;
}

/* Skrýt logo dokud JS nenastaví správnou velikost a odhalí ho (prevence flash/big->small) */
.fixed-logo {
    opacity: 0;
    transition: opacity 0.12s ease;
}
.js-ready .fixed-logo {
    opacity: 1;
}

/* Pokud není JS (noscript), zobraz logo normálně */
noscript .fixed-logo {
    opacity: 1 !important;
}

/* Hlavní stránka: původní malá varianta loga (nezměněná) */
.home .fixed-logo img {
    width: 80px;
    height: 80px;
    transition: width 0.25s ease, height 0.25s ease;
}

/* Ostatní stránky (non-home): startovní větší logo, JS bude stále animovat/shrinkovat při scrollu.
   Používáme !important, aby fallback fungoval i když chybí :root proměnné nebo jsou inline styly. */
body:not(.home) .fixed-logo img {
    width: 220px !important;
    height: 220px !important;
    transition: width 0.25s ease, height 0.25s ease;
}

.fixed-buttons {
    position: fixed;
    top: 10px;
    right: 30px;
    z-index: 2002;
    display: flex;
    gap: 10px;
}

/* Hamburger menu */
.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-icon span {
    display: block;
    width: 28px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
}

.menu-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #222;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 12px 0;
    min-width: 180px;
    z-index: 3000;
    flex-direction: column;
}

.menu-dropdown a.active[aria-current="page"] {
    pointer-events: none;           /* nelze kliknout */
    cursor: default;                /* kurzor jako text */
    background: rgba(74,144,255,0.22);
    border-left: 4px solid #4a90ff; /* silnější zvýraznění */
    font-weight: 700;               /* tučnější text */
    color: #ffffff;                 /* bílý text */
}

.menu-dropdown a {
    display: block;
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s;
}

.menu-dropdown a:hover {
    background-color: #333;
}

/* Top bar - animovaná lišta */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, #0053ff, #00fbff);
    z-index: 1000;
}

/* Body a základní styly */
body {
    background: linear-gradient(to bottom, #0053ff, #00fbff);
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Obsah stránky */
.content {
    padding-top: 280px;
    font-size: 1.5rem;
    text-align: center;
}

.content h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.content p { 
    max-width: 800px; 
    margin: 40px auto; 
    line-height: 1.6; 
}

/* Barvy tlačítek sociálních sítí */
.discord { 
    background-color: #5865F2; 
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.discord:hover { 
    background-color: white; 
    color: #5865F2; 
}

.instagram {
    background: linear-gradient(45deg,
        #405de6,#5851db,#833ab4,#c13584,#e1306c,#fd1d1d,#f56040,#f77737,#fcaf45,#ffdc80);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.instagram:hover { 
    background: white; 
    color: #c13584; 
}

.tiktok { 
    background-color: #ff0050; 
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.tiktok:hover { 
    background-color: white; 
    color: #ff0050; 
}

/* === STYLY ZÁLOŽEK SPOJENÝCH S OBSAHEM === */
.gallery-tab {
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 8px 8px 0 0;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    backdrop-filter: blur(5px);
    position: relative;
    margin-bottom: 0;
    /* Odstranění stínu pro lepší spojení */
    box-shadow: none;
}

.gallery-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    z-index: 2;
}

.gallery-tab.active {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(0, 83, 255, 0.2));
    color: #fff;
    font-weight: bold;
    z-index: 3;
    /* Jednoduché spojení - jen prodloužení bez zakulacení dole */
    border-radius: 8px 8px 0 0;
    padding-bottom: 18px;
    margin-bottom: -6px;
    /* Lehký stín jen po stranách */
    box-shadow: 
        -2px 0 4px rgba(0, 0, 0, 0.1),
        2px 0 4px rgba(0, 0, 0, 0.1);
}

.gallery-tab.active:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(0, 83, 255, 0.3));
    color: #fff;
}

/* Obsah záložek - bez pozadí, jen lehká čára */
.gallery-content {
    margin-top: 0;
    position: relative;
    padding: 20px;
    /* Jen lehká čára nahoře pod záložkami */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-content h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
    margin-top: 0;
}

.gallery-content p {
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: center;
    color: #fff;
}

/* Responzivní design */
@media (max-width: 768px) {
    .gallery-tabs {
        flex-direction: column;
        gap: 8px !important;
        padding: 0 10px;
    }
    
    .gallery-tab {
        border-radius: 8px;
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .fixed-ip {
        font-size: 1.2rem;
        left: 10px;
        top: 10px;
        display: flex;
        flex-direction: column;
        line-height: 1.2;
        right: auto;
        width: auto;
    }
    
    .version-line {
        font-size: 1rem;
        margin-top: 2px;
    }
    
    .fixed-logo {
        top: 60px !important;
    }
    
    .theme-toggle {
        position: fixed;
        top: 120px;
        right: 10px;
        z-index: 2002;
    }
    
    .fixed-buttons {
        right: 10px;
        top: 5px;
        gap: 5px;
    }
    
    .fixed-buttons button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .fixed-logo {
        top: -10px;
    }
    
    .fixed-logo img {
        width: 60px;
        height: 60px;
    }

    /* Non-home pages: větší logo na tabletech (fallback) */
    body:not(.home) .fixed-logo img {
        width: 180px !important;
        height: 180px !important;
    }
    
    .content {
        padding: 150px 15px 50px;
        font-size: 1rem;
    }
    
    .content h1 {
        font-size: 2rem;
        margin-top: 20px;
    }
    
    .content h2 {
        font-size: 1.5rem;
    }
    
    .content h3 {
        font-size: 1.2rem;
        padding: 10px 15px;
        margin: 20px 0;
    }
    
    .gallery-content {
        padding: 20px 15px;
    }
    
    .menu-dropdown {
        right: 5px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    /* Scroll-highlight bar – sjednocená výška jako na hlavní stránce */
    #scroll-highlight-bar {
        height: 70px !important;
    }

    /* Modrá top bar lišta menší na mobilu, končí pod tlačítky ještě před scrollem */
    .top-bar {
        height: 190px !important;
    }

    .fixed-ip {
        font-size: 1rem;
        left: 5px;
        top: 5px;
    }
    
    .version-line {
        font-size: 0.9rem;
    }
    
    .fixed-logo {
        top: 50px !important;
    }

    /* Non-home pages: menší logo na mobilu (fallback) */
    body:not(.home) .fixed-logo img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .fixed-buttons {
        right: 5px;
        flex-wrap: wrap;
    }
    
    .fixed-buttons button {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .theme-toggle {
        position: fixed;
        top: 110px;
        right: 5px;
        z-index: 2002;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .content {
        /* více místa nahoře, aby h1 "Vítejte" nebyl zakryt fixní lištou/elementy */
        padding-top: 210px;
    }

    .content h1 {
        font-size: 1.8rem;
    }
    
    .gallery-tab {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .menu-dropdown {
        min-width: 140px;
    }
}

/* === STYLY HLASOVACÍCH TLAČÍTEK === */
.vote-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 18px 24px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.vote-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 83, 255, 0.3);
}

.vote-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 83, 255, 0.2);
}

.vote-site {
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* === STYLY OBCHODU === */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.keys-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
/* Zviditelnění nadpisů v Obchodě (VIP Ranky, Klíče k truhlám) */
#gallery-obchod h3 {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.45), rgba(10, 15, 30, 0.28));
    border: 2px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* Silnější text outline (lem) + plný fallback přes stíny – světlý lem pro tmavé pozadí */
    -webkit-text-stroke: 1.25px rgba(255,255,255,0.95);
    paint-order: stroke fill;
    text-shadow:
        1px 0 0 rgba(255,255,255,0.95),
        -1px 0 0 rgba(255,255,255,0.95),
        0 1px 0 rgba(255,255,255,0.95),
        0 -1px 0 rgba(255,255,255,0.95),
        1px 1px 0 rgba(255,255,255,0.95),
        -1px 1px 0 rgba(255,255,255,0.95),
        1px -1px 0 rgba(255,255,255,0.95),
        -1px -1px 0 rgba(255,255,255,0.95),
        0 2px 2px rgba(0,0,0,0.65);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
    position: relative;
}

/* Podtržení – barevný akcent podle sekce */
#gallery-obchod h3.section-title::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -6px;
    height: 3px;
    border-radius: 999px;
    opacity: 0.9;
}

#gallery-obchod h3.vip-title::after {
    background: linear-gradient(90deg, #ffd54a, #ff9900);
    box-shadow: 0 2px 6px rgba(255, 153, 0, 0.45);
}

#gallery-obchod h3.keys-title::after {
    background: linear-gradient(90deg, #ff8a8a, #ff4d6d);
    box-shadow: 0 2px 6px rgba(255, 77, 109, 0.45);
}

body.dark-mode #gallery-obchod h3 {
    /* darker, low-contrast background + minimal text treatments for dark mode */
    background: linear-gradient(135deg, rgba(0,0,0,0.45), rgba(0,0,0,0.35));
    border-color: rgba(255, 255, 255, 0.06);
    -webkit-text-stroke: 0px rgba(255,255,255,0.0); /* remove stroke */
    paint-order: fill; /* rely on fill + subtle shadow for contrast */
    color: #e8e8e8;
    /* single subtle dark shadow to improve legibility without glow */
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    box-shadow: 0 2px 6px rgba(0,0,0,0.28);
}

/* Silný a jistý lem jen pro vybrané nadpisy v Obchodě (nad rámec obecného) */
#gallery-obchod h3.section-title {
    -webkit-text-stroke: 2px rgba(0,0,0,0.98);
    -webkit-text-fill-color: currentColor;
    paint-order: stroke fill;
    text-shadow:
        2px 0 0 rgba(0,0,0,0.98),
        -2px 0 0 rgba(0,0,0,0.98),
        0 2px 0 rgba(0,0,0,0.98),
        0 -2px 0 rgba(0,0,0,0.98),
        2px 2px 0 rgba(0,0,0,0.98),
        -2px 2px 0 rgba(0,0,0,0.98),
        2px -2px 0 rgba(0,0,0,0.98),
        -2px -2px 0 rgba(0,0,0,0.98),
        0 3px 3px rgba(0,0,0,0.65);
}
body.dark-mode #gallery-obchod h3.section-title {
    /* remove heavy stroke and use subtle fill + shadow for contrast */
    -webkit-text-stroke: 0px rgba(255,255,255,0.0);
    -webkit-text-fill-color: #f0f0f0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.56);
}

.shop-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.shop-item.premium {
    border-color: #ffcc00;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.shop-item.premium::before {
    content: "⭐ NEJPOPULÁRNĚJŠÍ";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ffcc00, #ff9900);
    color: #000;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
}

.shop-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 83, 255, 0.3);
}

.shop-item h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.vip-item h4 {
    color: #ffcc00;
}

.key-item h4 {
    color: #ff6b6b;
}

.price-container {
    margin: 15px 0;
}

/* legacy price label styles removed in favor of unified .price-btn */

.duration, .permanent {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 10px 0;
}

.permanent {
    color: #50c878;
    font-weight: bold;
}

.buy-btn {
    background: linear-gradient(45deg, #4a90ff, #50c878);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-btn:hover {
    background: linear-gradient(45deg, #3a7fe0, #40b868);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Klikatelné cenovky – vizuální zpětná vazba */
.price-container.clickable {
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease;
}
.price-container.clickable:hover .price-btn {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45), 0 6px 16px rgba(0,0,0,0.25);
}
.price-container.clickable:active {
    transform: translateY(1px);
}

/* Hezčí tlačítko pro "Výhody" (VIP perks) */
.benefits-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.12s ease;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 83, 255, 0.18);
}

.benefits-btn::before {
    content: "⭐";
    font-size: 1rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.benefits-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 83, 255, 0.28);
}

.benefits-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 83, 255, 0.22);
}

.benefits-btn:focus-visible {
    outline: 2px solid #ffcc00;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .benefits-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
        box-shadow: 0 4px 16px rgba(0, 83, 255, 0.18);
    }
}

/* Dark mode variant */
body.dark-mode .benefits-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
body.dark-mode .benefits-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.3);
}

/* === CENY / VIP tlačítka – jednotný vzhled desktop i mobil === */
/* Kontejner pro měnová tlačítka */
.price-container {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    border-radius: 14px;
    background: transparent;
    border: none;
    backdrop-filter: none;
}

/* Základní vzhled tlačítek pro Kč/€ */
.price-btn {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.35);
    outline: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.12));
    color: #0f172a;
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.price-btn::before {
    content: "";
    position: absolute;
    top: -150%;
    left: -40%;
    width: 60%;
    height: 400%;
    transform: rotate(35deg);
    background: linear-gradient(90deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.0) 100%);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.6s ease;
    pointer-events: none;
}
.price-btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45), 0 10px 22px rgba(0,0,0,0.22);
}
.price-btn:hover::before {
    opacity: 1;
    transform: translateX(220%) rotate(35deg);
}
.price-btn:active {
    transform: translateY(0);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 2px 8px rgba(0,0,0,0.15);
}
.price-btn:focus-visible {
    outline: 2px solid #ffcc00;
    outline-offset: 2px;
}

/* Barevné akcenty podle měny */
.price-btn.price-cz {
    border-color: rgba(16,185,129,0.45);
    background: linear-gradient(135deg, rgba(16,185,129,0.28), rgba(255,255,255,0.12));
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 6px 16px rgba(0,128,0,0.20), 0 0 0 0 rgba(16,185,129,0.0);
}
.price-btn.price-eur {
    border-color: rgba(59,130,246,0.45);
    background: linear-gradient(135deg, rgba(59,130,246,0.30), rgba(255,255,255,0.14));
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 6px 16px rgba(0,0,255,0.20), 0 0 0 0 rgba(59,130,246,0.0);
}
.price-btn.price-cz:hover {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45), 0 12px 26px rgba(0,128,0,0.28);
}
.price-btn.price-eur:hover {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45), 0 12px 26px rgba(0,0,255,0.28);
}

/* Dark mode varianta pro cenová tlačítka */
body.dark-mode .price-container { background: transparent; border-color: transparent; }
body.dark-mode .price-btn {
    background: linear-gradient(145deg, rgba(0,0,0,0.45), rgba(0,0,0,0.2));
    color: #e6e6e6;
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 6px 18px rgba(0,0,0,0.45);
    border-color: rgba(255,255,255,0.18);
}
body.dark-mode .price-btn:hover {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 12px 26px rgba(0,0,0,0.55);
}
body.dark-mode .price-btn.price-cz {
    background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(0,0,0,0.25));
    color: #f5f7ff;
}
body.dark-mode .price-btn.price-eur {
    background: linear-gradient(135deg, rgba(59,130,246,0.28), rgba(0,0,0,0.25));
    color: #f5f7ff;
}

/* Akce pro oblast pod cenami (Výhody) – centrováno napříč zařízeními */
.shop-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Mobilní optimalizace pro obchod a hlasování */
@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .keys-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-item {
        padding: 20px 15px;
    }
    
    .shop-item h4 {
        font-size: 1.2rem;
    }
    
    /* Jemné zmenšení cenových tlačítek na tabletech/mobilu */
    .price-btn {
        font-size: 1.05rem;
        padding: 10px 14px;
    }
    
    .vote-buttons {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .vote-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .shop-item {
        padding: 15px 10px;
    }
    
    .shop-item h4 {
        font-size: 1.1rem;
    }
    
    /* Jemné zmenšení cenových tlačítek na malých displejích */
    .price-container .price-btn { padding: 10px 12px; font-size: 0.95rem; }
    
    .buy-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .vote-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .shop-item.premium::before {
        font-size: 0.6rem;
        padding: 3px 10px;
    }
}

/* === TMAVÝ REŽIM === */
.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Dark mode styly */
body.dark-mode {
    background: linear-gradient(to bottom, #1a1a1a, #2d2d2d) fixed !important;
}

/* Vynucene mobilni rozlozeni s nejvyssi prioritou */
body.force-mobile-layout .fixed-ip,
body.force-mobile-layout.force-mobile-layout .fixed-ip {
    position: fixed !important;
    font-size: 1.2rem !important;
    left: 10px !important;
    top: 10px !important;
    z-index: 2000 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
    right: auto !important;
    width: auto !important;
}

body.force-mobile-layout .version-line,
body.force-mobile-layout.force-mobile-layout .version-line {
    font-size: 1rem !important;
    margin-top: 2px !important;
}

body.force-mobile-layout .fixed-logo,
body.force-mobile-layout.force-mobile-layout .fixed-logo {
    position: fixed !important;
    top: 60px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 2001 !important;
}

body.force-mobile-layout .theme-toggle,
body.force-mobile-layout.force-mobile-layout .theme-toggle {
    position: fixed !important;
    top: 120px !important;
    right: 10px !important;
    z-index: 2002 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    border-radius: 8px !important;
    width: 45px !important;
    height: 45px !important;
    cursor: pointer !important;
    font-size: 1.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Pro male obrazovky */
@media (max-width: 480px) {
    body.force-mobile-layout .fixed-ip,
    body.force-mobile-layout.force-mobile-layout .fixed-ip {
        font-size: 1rem !important;
        left: 5px !important;
        top: 5px !important;
    }
    
    body.force-mobile-layout .fixed-logo,
    body.force-mobile-layout.force-mobile-layout .fixed-logo {
        top: 50px !important;
    }
    
    body.force-mobile-layout .theme-toggle,
    body.force-mobile-layout.force-mobile-layout .theme-toggle {
        position: fixed !important;
        top: 110px !important;
        right: 5px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
}

body.dark-mode .gallery-tab {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .gallery-tab.active {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(50, 50, 50, 0.3));
}

body.dark-mode .gallery-content {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .shop-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 255, 255, 0.1);
}

/* Zvýraznění karet VIP a Klíčů na pozadí (jen v záložce Obchod) */
#gallery-obchod .shop-item {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.38), rgba(10, 15, 30, 0.22));
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 22px rgba(0, 0, 0, 0.28);
}
#gallery-obchod .shop-item:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 28px rgba(0, 0, 0, 0.36);
}

/* Dark mode – zachování vyváženého kontrastu v Obchodě */
body.dark-mode #gallery-obchod .shop-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 7px 20px rgba(0, 0, 0, 0.36);
}
body.dark-mode #gallery-obchod .shop-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 10px 24px rgba(0, 0, 0, 0.44);
}

body.dark-mode .vote-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .vote-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

body.dark-mode .price-cz, body.dark-mode .price-eur {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode h3[style*="background"] {
    background: linear-gradient(45deg, #333, #444) !important;
    color: #fff !important;
}

/* Dark mode pro horní lištu */
body.dark-mode .top-bar {
    background: linear-gradient(to bottom, #404040, #353535);
}

body.dark-mode #scroll-highlight-bar > div {
    background: linear-gradient(90deg, rgba(60, 60, 60, 0.8) 0%, rgba(45, 45, 45, 0.9) 50%, rgba(60, 60, 60, 0.8) 100%) !important;
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.4) !important;
}

/* === Modals: VIP a Platba (nick) – fix přetečení a centrování === */
#vipModalContent,
#paymentModalContent {
    box-sizing: border-box;
}

#playerNickInput {
    box-sizing: border-box;
    width: 100%;
    max-width: 360px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 480px) {
    #paymentModalContent {
        /* Zajistí rezervu vůči viewportu na velmi malých displejích */
        width: 90vw !important;
    }
}

/* Obecné mobilní optimalizace */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

button, a {
    touch-action: manipulation;
}

/* Vylepšení pro iOS a Android */
@supports (-webkit-appearance: none) {
    button {
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Selected currency button state */
.price-btn.selected {
    outline: 2px solid #ffcc00;
    outline-offset: 2px;
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), 0 10px 24px rgba(0,0,0,0.25);
}