:root {
    --primary-color: #edbb17;
    /* Arma žlutá */
    --bg-dark: rgba(18, 18, 18, 0.95);
    --text-color: #ffffff;
    --overlay-color: rgba(0, 0, 0, 0.7);

    /* --- KURZORY --- */
    --cursor-default: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2h6z" fill="white" stroke="black" stroke-width="1"/></svg>') 12 12, auto;
    --cursor-pointer: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="8" y="8" width="8" height="8" style="fill:rgba(255, 213, 0, 0.5); stroke:%23ffd500; stroke-width:2;" /><line x1="12" y1="2" x2="12" y2="6" style="stroke:%23ffd500;stroke-width:2" /><line x1="12" y1="18" x2="12" y2="22" style="stroke:%23ffd500;stroke-width:2" /><line x1="2" y1="12" x2="6" y2="12" style="stroke:%23ffd500;stroke-width:2" /><line x1="18" y1="12" x2="22" y2="12" style="stroke:%23ffd500;stroke-width:2" /></svg>') 12 12, pointer;
}

/* --- ZÁKLAD (MOBIL FIRST) --- */
html,
body,
* {
    cursor: var(--cursor-default);
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    background-image: url('../img/giphy.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding-bottom: 0;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- AKTIVNÍ PRVKY (POINTER) --- */
a,
a img,
button,
input,
select,
textarea,
label,
summary,
.nav-btn,
.hero-img,
.footer-trigger,
.popup-close,
.gallery-item,
.gallery-link,
.gallery-select,
.page-link,
.hero-link-wrapper,
.hero-event-card,
.hamburger-btn,
.mobile-caret,
.social-icons a,
.social-icons img {
    cursor: var(--cursor-pointer) !important;
}

/* =========================================
   NAVIGACE (MOBIL A ZÁKLAD)
   ========================================= */
.main-header {
    background-color: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 5000;
    border-bottom: 1px solid #333;
    height: 60px;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 5px;
    position: relative;
    overflow: visible !important;
    gap: 0;
}

/* LOGO NA MOBILU */
.logo-wrapper {
    z-index: 5001;
    display: flex;
    justify-content: center;
    overflow: visible !important;
    order: 1;
    margin-right: 5px;
    flex: 0 0 auto;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-side {
    display: flex;
    gap: 0;
    flex: 1;
    justify-content: space-around;
}

/* --- HAMBURGER MENU A BOČNÍ PANEL (MOBIL) --- */
.hamburger-btn {
    display: block;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 24px;
    padding: 2px 10px;
    border-radius: 4px;
    z-index: 6000;
    order: 3;
    margin-left: auto;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.nav-links-container {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 60px);
    background: var(--bg-dark);
    border-left: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    gap: 15px;
    transition: right 0.4s ease-in-out;
    z-index: 5005;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.nav-links-container.open {
    right: 0;
}

@media (max-width: 767px) {
    .nav-side {
        flex-direction: column;
        width: 100%;
        gap: 5px;
        align-items: flex-start;
    }

    .logo-wrapper {
        margin-right: auto;
    }

    #nvg-toggle {
        order: 2;
        margin-right: 15px;
    }
}

#nvg-toggle {
    display: block;
}

/* Tlačítka mobil */
.nav-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    padding: 12px 20px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
    width: 100%;
    text-align: left;
    display: block;
}

.nav-btn:hover {
    color: var(--primary-color);
}

.nav-btn.active {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
    box-shadow: 0 0 15px rgba(237, 187, 23, 0.6);
    font-weight: bold;
}

/* --- DROPDOWN A STROM (MOBIL) --- */
.mobile-nvg-wrapper {
    width: 100%;
    border-bottom: 1px solid #444;
    padding: 0 20px 15px 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.pc-nvg {
    display: none !important;
}

.pc-caret {
    display: none;
}

.dropdown {
    width: 100%;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
}

.dropdown-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.dropdown-header .nav-btn {
    border-bottom: none;
    width: 100%;
    text-align: left;
}

.mobile-caret {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    padding: 10px 20px;
    border-left: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown.open .mobile-caret {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    flex-direction: column;
    margin-left: 20px;
    border-left: 1px dashed #555;
    padding-left: 5px;
    margin-top: 5px;
}

.dropdown.open .dropdown-content {
    display: flex;
}

.dropdown-content .sub-btn {
    text-align: left;
    padding: 10px 10px 10px 10px;
    width: 100%;
}

.tree-line {
    color: #555;
    font-family: monospace;
    margin-right: 5px;
    font-weight: normal;
}


/* =========================================
   HERO SEKCE (OBECNÉ + MOBIL)
   ========================================= */
.hero-boxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-top: 50px;
    padding-bottom: 200px !important;
}

.hero-boxes::after {
    content: "";
    display: block;
    min-height: 150px;
    width: 100%;
}

.hero-link-wrapper {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    text-decoration: none;
    border: 2px solid rgba(255, 213, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    text-align: center;
    font-weight: bold;
    font-family: 'Consolas', monospace;
    letter-spacing: 2px;
    border-top: 1px solid var(--primary-color);
    opacity: 1;
}

.hero-event-card {
    width: 100%;
    height: auto;
    min-height: 450px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(255, 213, 0, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    font-family: 'Consolas', monospace;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-event-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 40px rgba(255, 213, 0, 0.6);
    transform: scale(1.02);
}

.event-status {
    color: var(--primary-color);
    font-size: 10px;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.blink-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 5px #00ff00;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.event-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.event-label {
    color: #666;
    font-size: 10px;
    margin-top: 5px;
}

#hero-mission-name {
    color: #fff;
    font-size: 24px;
    margin: 2px 0 15px 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.event-details {
    font-size: 12px;
    color: #ccc;
    text-align: left;
    margin: 0 auto;
    width: 90%;
    border-left: 2px solid #333;
    padding-left: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.detail-row span:first-child {
    color: #666;
}

.detail-row span:last-child {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
}

.event-countdown {
    margin-top: 20px;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 4px;
}

.event-action-btn {
    background: transparent;
    border: 1px solid rgba(255, 213, 0, 0.3);
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s;
    text-transform: uppercase;
    margin-top: 10px;
    display: inline-block;
}

.event-action-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
    border-color: var(--primary-color);
}

/* =========================================
   GALERIE 
   ========================================= */
.gallery-main-container {
    max-width: 1200px;
    margin: 100px auto;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
}

.gallery-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.gallery-controls {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-label {
    color: white;
    font-size: 1.1em;
    margin-right: 10px;
}

.gallery-select {
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #333;
    color: white;
    border: 1px solid var(--primary-color);
    font-size: 1em;
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: #ccc;
}

.gallery-item {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.gallery-item:hover {
    border-color: var(--primary-color);
}

.gallery-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.05);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #555;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    background-color: transparent;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 35px;
    text-align: center;
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-link.active {
    background-color: var(--primary-color);
    color: black;
    border-color: var(--primary-color);
    cursor: default;
}

/* =========================================
   STYLY PRO TEXTOVÉ STRÁNKY (O NÁS, PODMÍNKY)
   ========================================= */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(18, 18, 18, 0.9);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #333;
    color: #e0e0e0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.legal-title {
    color: var(--primary-color, #edbb17);
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-color, #edbb17);
    padding-bottom: 10px;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.legal-container h1 {
    text-align: center;
    display: block;
    width: 100%;
    border-bottom: none;
}

.legal-intro {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    color: #fff;
    border-left: 4px solid var(--primary-color, #edbb17);
    padding-left: 15px;
    margin-bottom: 15px;
}

.legal-section p {
    margin-bottom: 10px;
    color: #ccc;
    line-height: 1.6;
}

.legal-footer {
    margin-top: 50px;
    text-align: center;
    font-size: 0.85em;
    color: #888;
}

.legal-container hr {
    border: 0;
    border-top: 1px solid #444;
    margin: 20px 0;
}

/* =========================================
   MEDIA QUERY: PC VERZE (180px PEVNÁ ŠÍŘKA VŠECH)
   ========================================= */
@media (min-width: 768px) {
    .main-header {
        height: 50px;
        background-color: rgba(0, 0, 0, 0.6);
        border-bottom: none;
        overflow: visible !important;
        position: absolute;
        top: 50px;
        backdrop-filter: blur(5px);
    }

    .nav-container {
        max-width: 1400px;
        margin: 0 auto;
        justify-content: center;
        gap: 0;
        position: relative;
    }

    /* Vytvoření mezery kolem loga, aby tlačítka nezalezla pod něj */
    .nav-side {
        flex: 1;
        gap: 0;
        justify-content: unset;
    }

    .nav-left {
        order: unset;
        justify-content: flex-end;
        padding-right: 90px;
    }

    .nav-right {
        order: unset;
        justify-content: flex-start;
        padding-left: 90px;
    }

    #nvg-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    /* RESET MOBILNÍHO MENU PRO PC */
    .hamburger-btn {
        display: none;
    }

    .nav-links-container {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        border: none;
        display: contents;
        transition: none;
        box-shadow: none;
    }

    /* Zobrazení PC šipky */
    .pc-caret {
        display: inline-block;
        font-size: 10px;
        margin-left: 5px;
        color: #999;
    }

    .nav-btn:hover .pc-caret,
    .nav-btn.active .pc-caret {
        color: #000;
    }

    /* ==============================================
       OPRAVA: VŠECHNA TLAČÍTKA A DROPDOWNY 180PX
       ============================================== */

    .nav-btn {
        font-size: 16px;
        width: 180px;
        flex: 0 0 180px;
        /* Přísný zákaz roztahování nebo smršťování */
        padding: 0;
        height: 50px;
        line-height: 50px;
        border-radius: 0;
        text-align: center;
        white-space: nowrap;
        position: relative;
        z-index: 10;
        display: block;
    }

    .nav-btn:hover {
        background-color: var(--primary-color);
        color: #000000;
        box-shadow: 0 0 25px rgba(255, 213, 0, 0.5);
        z-index: 10;
    }

    .nav-btn.active {
        background-color: var(--primary-color) !important;
        color: #000000 !important;
        box-shadow: 0 0 25px rgba(255, 213, 0, 0.8) !important;
        z-index: 11;
    }

    .dropdown {
        position: relative;
        display: block;
        margin-bottom: 0;
        width: 180px;
        flex: 0 0 180px;
        /* Zabraňuje smršťování obalu pod 180px */
    }

    .dropdown-header {
        border: none;
        display: block;
        width: 100%;
    }

    .dropdown-header .nav-btn {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(18, 18, 18, 0.95);
        border: 1px solid #333;
        border-left: 3px solid var(--primary-color);
        min-width: 100%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
        margin: 0;
        padding: 5px 0;
        z-index: 6000;
        flex-direction: column;
    }

    .dropdown:hover .dropdown-content {
        display: flex;
    }

    .dropdown-content .sub-btn {
        display: block;
        flex: none;
        width: 100%;
        text-align: left;
        padding: 10px 20px;
        height: auto;
        line-height: 1.5;
        font-size: 14px;
        background: transparent;
    }

    .dropdown-content .sub-btn:hover {
        background: rgba(237, 187, 23, 0.2);
        color: var(--primary-color);
        box-shadow: none;
    }

    /* ==============================================
       PŘIDEJ SE (Jediné specifické tlačítko)
       ============================================== */
    .nav-right .nav-btn:last-child {
        animation: pulse-yellow 2s infinite;
        background-color: rgba(255, 213, 0, 0.1);
        border: 1px solid var(--primary-color);
    }

    .mobile-nvg-wrapper {
        display: none !important;
    }

    .pc-nvg {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .mobile-caret {
        display: none;
    }

    .logo-wrapper {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        overflow: visible !important;
        z-index: 6000;
        order: unset;
        margin-right: 0;
    }

    .nav-logo {
        height: 180px;
        position: relative;
        top: 20px;
        filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
        transition: transform 0.3s;
    }

    .nav-logo:hover {
        transform: scale(1.1);
        animation: glitch-shake 0.3s cubic-bezier(.36, .07, .19, .97) both;
        filter: drop-shadow(-2px 0 red) drop-shadow(2px 0 #edbb17);
    }

    .hero-boxes {
        width: 100%;
        max-width: none;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin: 27vh auto 0 auto;
        gap: 20px;
        padding: 15px 0 !important;
    }

    .hero-boxes::after {
        display: none;
    }

    .hero-link-wrapper,
    .hero-event-card {
        width: 350px !important;
        height: 350px !important;
        aspect-ratio: 1/1;
        flex: 0 0 auto;
        box-sizing: border-box;
        border: 2px solid rgba(255, 213, 0, 0.3);
        border-radius: 0;
        background-color: #000;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .hero-event-card {
        padding: 15px;
        min-height: 0;
        height: 350px !important;
    }

    .hero-link-wrapper:hover,
    .hero-event-card:hover {
        border-color: var(--primary-color);
        box-shadow: 0 0 40px rgba(255, 213, 0, 0.6);
        transform: scale(1.02);
        z-index: 10;
    }

    .hero-overlay-label {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .hero-link-wrapper:hover .hero-overlay-label {
        opacity: 1;
    }

    .gallery-main-container {
        margin-top: 160px;
    }

    .legal-container {
        margin-top: 160px !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .popup-close {
        width: auto;
    }

    .force-mobile-space {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
    }
}

/* =========================================
   DEFINITIVNÍ FIX SCROLLOVÁNÍ (MOBIL)
   ========================================= */
.force-mobile-space {
    display: block;
    width: 100%;
    height: 200px;
    background: transparent;
    clear: both;
}

/* =========================================
   OSTATNÍ (Popupy, Footer, Efekty)
   ========================================= */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: var(--bg-dark);
    border: 1px solid var(--primary-color);
    padding: 25px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 213, 0, 0.2);
}

.popup-close {
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
}

/* Patička */
.main-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid #333;
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
    z-index: 9000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.main-footer:hover,
.main-footer.active {
    transform: translateY(0);
}

.footer-trigger {
    display: block;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 20px;
    border-radius: 10px 10px 0 0;
    border: 1px solid #333;
    border-bottom: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 12px;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 20px;
        margin: 20px 10px;
    }

    .legal-title {
        font-size: 1.5em;
    }
}

/* Efekty */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    z-index: 9000;
    pointer-events: none;
}

@keyframes glitch-shake {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 213, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 213, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 213, 0, 0);
    }
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--primary-color));
}

/* NVG & News */
#nvg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(circle, rgba(0, 50, 0, 0) 60%, rgba(0, 0, 0, 0.6) 100%), repeating-linear-gradient(transparent 0, rgba(0, 20, 0, 0.2) 2px, transparent 4px);
    backdrop-filter: sepia(1) hue-rotate(70deg) saturate(2) brightness(0.8);
}

body.nvg-active {
    --primary-color: #00ff00 !important;
    --text-color: #e0ffe0 !important;
    --bg-dark: rgba(0, 20, 0, 0.95) !important;
    background-color: #000a00 !important;
}

body.nvg-active #nvg-overlay {
    opacity: 1;
}

.news-ticker-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.95);
    border-top: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    z-index: 8000;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    overflow: hidden;
}

.ticker-title {
    background-color: var(--primary-color);
    color: #000;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    z-index: 2;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-move 30s linear infinite;
}

@keyframes ticker-move {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.decoding::after {
    content: '_';
    opacity: 1;
    animation: blinkCursor 0.5s step-end infinite;
    color: var(--primary-color);
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ADMIN & LOGIN CLASSES */
.admin-main {
    padding-top: 100px;
    min-height: 80vh;
    padding-bottom: 50px;
}

.admin-container {
    max-width: 1000px;
    border-color: var(--primary-color);
}

.admin-login-container {
    max-width: 500px;
    border-color: #440000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-title {
    border: none;
    margin: 0;
    padding: 0;
    color: var(--primary-color);
}

.admin-title-login {
    color: #ff3333;
    border-color: #ff3333;
}

.admin-logout-btn {
    padding: 5px 15px;
    border-color: #ff3333;
    color: #ff3333;
}

.admin-intro {
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
    color: #888;
}

.admin-intro-login {
    text-align: center;
    font-family: 'Consolas', monospace;
    color: #ccc;
}

.admin-module-box {
    background: #111;
    padding: 30px;
    border: 1px dashed #444;
    border-radius: 4px;
    text-align: center;
}

.admin-module-box.flex-box {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
}

.admin-disabled-btn {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #666;
    color: #666;
}

.admin-error-box {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff3333;
    color: #ff3333;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Consolas', monospace;
    text-transform: uppercase;
}

.admin-input {
    width: 100%;
    padding: 15px;
    background: #000;
    border: 1px solid #333;
    color: var(--primary-color);
    font-family: 'Consolas', monospace;
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s;
}

.admin-input:focus {
    border-color: var(--primary-color);
}

.admin-login-input {
    text-align: center;
    font-size: 18px;
    background: #111;
}

.admin-login-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(237, 187, 23, 0.2);
}

.admin-submit-btn {
    cursor: pointer;
    background: transparent;
    color: var(--primary-color);
}

.admin-submit-login {
    width: 100%;
}

.admin-links-list {
    list-style-type: square;
    color: var(--primary-color);
    line-height: 2;
    text-align: left;
}

.admin-links-list li a {
    color: #ccc;
    text-decoration: none;
}

.admin-links-list li a:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 5px var(--primary-color);
}

.admin-message {
    color: #00ff00;
    margin-bottom: 15px;
    font-family: 'Consolas', monospace;
}

/* =========================================
   SYSTÉM ZÁPISŮ NA MISE
   ========================================= */

/* Outer page */
.zapis-main {
    padding-top: 80px;
    min-height: 90vh;
    padding-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-left: 15px;
    padding-right: 15px;
}

/* Hlavní rámeček – stejný styl jako legal-container / O nás */
.zapis-box {
    width: 100%;
    max-width: 1000px;
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.75);
    overflow: hidden;
}

/* Horní lišta uvnitř rámečku */
.zapis-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #2a2a2a;
    background: rgba(0, 0, 0, 0.4);
    gap: 10px;
    flex-wrap: wrap;
    font-family: 'Consolas', monospace;
    font-size: 12px;
}

.zapis-topbar-left {
    color: var(--primary-color);
    letter-spacing: 2px;
    font-size: 11px;
}

.zapis-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* User bar elementy */
.userbar-player {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.userbar-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
}

.userbar-name {
    color: var(--primary-color);
    font-weight: bold;
}

.userbar-logout {
    color: #777;
    text-decoration: none;
    border: 1px solid #444;
    padding: 3px 9px;
    transition: all 0.2s;
    font-size: 11px;
}

.userbar-logout:hover {
    color: #ff4444;
    border-color: #ff4444;
}

.userbar-hint {
    color: #555;
    font-size: 11px;
}

.userbar-login-btn {
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    padding: 5px 12px;
    font-weight: bold;
    font-size: 11px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.userbar-login-btn:hover {
    background: #4752c4;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}

/* Download tlačítka (modpack / mapa) */
.meta-downloads {
    display: flex !important;
    flex-direction: column; /* Na mobilech pod sebou */
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 15px;        /* margin od krajů */
    margin-bottom: 10px;
    overflow: hidden;
}

@media (min-width: 576px) {
    .meta-downloads {
        flex-direction: row; /* Vedle sebe na větších */
    }
}

.download-btn {
    flex: 1;
    min-width: 0;           /* umožní zkrácení textu v flex */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(237, 187, 23, 0.08);
    border: 1px solid rgba(237, 187, 23, 0.5);
    color: var(--primary-color);
    text-decoration: none;
    padding: 4px 10px;      /* tenká výška */
    font-size: 10px;
    font-family: 'Consolas', monospace;
    letter-spacing: 1px;
    transition: background 0.2s;
    text-transform: uppercase;
    white-space: nowrap;    /* nezalomit text */
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-btn:hover {
    background: rgba(237, 187, 23, 0.18);
}

.download-btn-map {
    background: rgba(100, 180, 100, 0.06);
    border-color: rgba(76, 175, 80, 0.5);
    color: #4caf50;
}

.download-btn-map:hover {
    background: rgba(100, 180, 100, 0.16);
}

.signup-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.loading-indicator {
    font-family: 'Consolas', monospace;
    color: var(--primary-color);
    font-size: 16px;
}

/* No mission */
.signup-no-mission {
    text-align: center;
    padding: 60px 20px;
    font-family: 'Consolas', monospace;
    color: #555;
}

.no-mission-icon {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

/* Wrapper (uvnitř zapis-box – bez vlastního BG) */
.signup-mission-wrapper {
    padding: 20px 25px 40px 25px;
    font-family: 'Consolas', monospace;
}


/* Header */
.signup-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.signup-title {
    color: var(--primary-color);
    font-size: 2rem;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    text-shadow: 0 0 20px rgba(237, 187, 23, 0.4);
}

.signup-status-badge {
    display: inline-block;
    font-size: 11px;
    padding: 4px 12px;
    letter-spacing: 2px;
}

.signup-status-badge.open {
    color: #00ff00;
    border: 1px solid #00ff00;
}

.signup-status-badge.closed {
    color: #ff4444;
    border: 1px solid #ff4444;
}

/* Meta grid */
.signup-meta-grid {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    margin-bottom: 15px;
    padding: 10px 15px;
}

.meta-row {
    display: grid;
    grid-template-columns: 80px 1fr; /* Na mobilech pouze 2 sloupce */
    gap: 5px 10px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

@media (min-width: 576px) {
    .meta-row {
        grid-template-columns: 80px 1fr 80px 1fr; /* 4 sloupce na tabletu a PC */
    }
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-label {
    color: #999;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.meta-value {
    color: #e8e8e8;
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Progress bar */
.signup-progress-bar {
    height: 6px;
    background: #222;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid #333;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.5s ease;
}

/* progress-label odstraněn – počet je zobrazen v meta mřížce */

/* Login banner */
.signup-login-banner {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid #5865F2;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: #ccc;
}

.signup-login-banner p {
    margin: 0 0 15px 0;
}

.discord-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
}

.discord-login-btn:hover {
    background: #4752c4;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
}

/* Teams grid */
.signup-teams-grid {
    display: grid;
    grid-template-columns: 1fr; /* Na mobilu pod sebou (1 sloupec) */
    gap: 15px;
    margin-bottom: 20px;
}

@media (min-width: 576px) {
    .signup-teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Team block */
.signup-team {
    border: 1px solid #333;
}

.team-header {
    background: rgba(237, 187, 23, 0.15);
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-cap {
    color: #fff;
    opacity: 0.5;
    margin-left: 5px;
}

.team-roles {
    display: flex;
    flex-direction: column;
}

/* Role slot */
.role-slot {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    min-height: 36px;
    transition: background 0.15s;
}

.role-slot:last-child {
    border-bottom: none;
}

.slot-role-name {
    color: #888;
    font-size: 10px;
    text-transform: uppercase;
}

.slot-player-name {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-empty-label {
    color: #666;
    font-size: 11px;
}

/* Stavy slotů */
.role-slot.empty {
    background: rgba(0, 0, 0, 0.3);
}

.role-slot.empty.clickable {
    cursor: var(--cursor-pointer) !important;
}

.role-slot.empty.clickable:hover {
    background: rgba(237, 187, 23, 0.08);
}

.role-slot.empty.clickable .slot-empty-label {
    color: var(--primary-color);
}

.role-slot.rs-member .slot-player-name {
    color: var(--primary-color);
}

.role-slot.guest .slot-player-name {
    color: #bbb;
}

.role-slot.my-slot {
    background: rgba(237, 187, 23, 0.05);
    border-left: 2px solid var(--primary-color);
}

/* Odhlásit tlačítko */
.slot-unsign-btn {
    background: transparent;
    border: none;
    color: #ff4444;
    font-size: 12px;
    padding: 2px 5px;
    line-height: 1;
    transition: all 0.2s;
    opacity: 0.6;
}

.slot-unsign-btn:hover {
    opacity: 1;
    text-shadow: 0 0 5px #ff4444;
}

/* Rezervy */
.signup-reserves-section {
    margin-bottom: 20px;
}

.reserves-header {
    background: rgba(100, 100, 100, 0.15);
    border: 1px solid #333;
    border-bottom: 2px solid #555;
    color: #888;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.reserves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0;
    border: 1px solid #333;
    border-top: none;
}

.reserve-slot {
    padding: 8px 10px;
    border-right: 1px solid #222;
    border-bottom: 1px solid #222;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    font-size: 12px;
    transition: background 0.15s;
}

.reserve-slot.empty {
    color: #666;
}

.reserve-slot.empty.clickable {
    cursor: var(--cursor-pointer) !important;
}

.reserve-slot.empty.clickable:hover {
    background: rgba(100, 100, 100, 0.1);
    color: #888;
}

.reserve-slot.rs-member .slot-player-name {
    color: var(--primary-color);
}

.reserve-slot.guest .slot-player-name {
    color: #bbb;
}

.reserve-slot.my-slot {
    border-left: 2px solid var(--primary-color);
}

/* Footer info */
.signup-footer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    margin-bottom: 15px;
}

.signup-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.link-item {
    display: flex;
    flex-direction: column;
}

.link-label {
    color: #888;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-value {
    color: #ddd;
    font-size: 13px;
}

.signup-notes {
    color: #aaa;
    font-size: 12px;
}

.notes-label {
    color: #888;
    text-transform: uppercase;
    font-size: 10px;
}

/* Legenda */
.signup-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 11px;
    color: #555;
    padding: 10px 0;
}

.rs-member-indicator {
    color: var(--primary-color);
}

.guest-indicator {
    color: #bbb;
}

.my-slot-indicator {
    color: var(--primary-color);
    opacity: 0.5;
}

.empty-indicator {
    color: #333;
}

/* Toast notifikace */
.signup-toast {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111;
    border: 1px solid #444;
    color: #ccc;
    padding: 12px 25px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s;
    white-space: nowrap;
    pointer-events: none;
}

.signup-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.signup-toast.toast-error {
    border-color: #ff4444;
    color: #ff4444;
}

/* Responsive */
@media (min-width: 768px) {
    .zapis-main {
        padding-top: 140px;
    }

    .meta-row {
        font-size: 13px;
    }

    .signup-teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 1200px) {
    .signup-teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* =========================================
   ADMIN MISE BUILDER
   ========================================= */
.builder-section {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    margin-bottom: 15px;
    overflow: hidden;
}

.builder-label {
    background: rgba(237, 187, 23, 0.1);
    border-bottom: 1px solid #333;
    color: var(--primary-color);
    padding: 8px 15px;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.builder-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
}

.builder-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.builder-field label {
    color: #666;
    font-size: 10px;
    text-transform: uppercase;
    font-family: 'Consolas', monospace;
    letter-spacing: 1px;
}

/* Team block in builder */
.builder-team {
    margin: 10px;
    border: 1px solid #444;
    border-left: 3px solid var(--primary-color);
}

.builder-team-header {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    background: rgba(237, 187, 23, 0.05);
    border-bottom: 1px solid #333;
}

.builder-roles {
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.builder-role {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Consolas', monospace;
    font-size: 12px;
}

.admin-table th {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 10px 8px;
    border-bottom: 2px solid var(--primary-color);
    text-align: left;
}

.admin-table td {
    padding: 8px;
    border-bottom: 1px solid #1a1a1a;
    color: #ccc;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
    .builder-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   DATE PICKER - přepínání misí (uvnitř zapis-box)
   ========================================= */
.mission-date-picker {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border-bottom: 1px solid #2a2a2a;
    padding: 0;
}

.date-tab {
    background: transparent;
    border: none;
    border-right: 1px solid #2a2a2a;
    border-bottom: 3px solid transparent;
    color: #666;
    padding: 10px 20px;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: var(--cursor-pointer) !important;
    min-width: 100px;
}

.date-tab:hover {
    color: #ccc;
    background: rgba(255, 255, 255, 0.03);
}

.date-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(237, 187, 23, 0.06);
}

.date-tab-title {
    font-size: 9px;
    opacity: 0.6;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Loading uvnitř boxu (bez vlastního tmavého bg) */
.signup-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: transparent;
}

@media (min-width: 768px) {
    .zapis-main {
        padding-top: 140px;
    }
}


display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
padding: 15px;
}

.builder-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.builder-field label {
    color: #666;
    font-size: 10px;
    text-transform: uppercase;
    font-family: 'Consolas', monospace;
    letter-spacing: 1px;
}

/* Team block in builder */
.builder-team {
    margin: 10px;
    border: 1px solid #444;
    border-left: 3px solid var(--primary-color);
}

.builder-team-header {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    background: rgba(237, 187, 23, 0.05);
    border-bottom: 1px solid #333;
}

.builder-roles {
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.builder-role {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Consolas', monospace;
    font-size: 12px;
}

.admin-table th {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 10px 8px;
    border-bottom: 2px solid var(--primary-color);
    text-align: left;
}

.admin-table td {
    padding: 8px;
    border-bottom: 1px solid #1a1a1a;
    color: #ccc;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
    .builder-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   DATE PICKER - přepínání misí (uvnitř zapis-box)
   ========================================= */
.mission-date-picker {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border-bottom: 1px solid #2a2a2a;
    padding: 0;
}

.date-tab {
    background: transparent;
    border: none;
    border-right: 1px solid #2a2a2a;
    border-bottom: 3px solid transparent;
    color: #666;
    padding: 10px 20px;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: var(--cursor-pointer) !important;
    min-width: 100px;
}

.date-tab:hover {
    color: #ccc;
    background: rgba(255, 255, 255, 0.03);
}

.date-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(237, 187, 23, 0.06);
}

.date-tab-title {
    font-size: 9px;
    opacity: 0.6;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Loading uvnitř boxu (bez vlastního tmavého bg) */
.signup-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: transparent;
}

@media (min-width: 768px) {
    .zapis-main {
        padding-top: 140px;
    }
}
/* =========================================
   FLOATING NVG TLACITKO (mimo nav)
   ========================================= */
.nvg-fab {
    position: fixed;
    bottom: 45px;
    right: 18px;
    z-index: 90000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(237, 187, 23, 0.35);
    border-radius: 6px;
    color: rgba(237, 187, 23, 0.7);
    padding: 7px 10px 5px 10px;
    cursor: pointer;
    font-family: 'Consolas', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
    backdrop-filter: blur(4px);
    animation: nvg-pulse 3s ease-in-out infinite;
}
.nvg-fab-icon { font-size: 18px; line-height: 1; }
.nvg-fab-label { font-size: 8px; letter-spacing: 2px; opacity: 0.7; }
@keyframes nvg-pulse {
    0%, 100% { border-color: rgba(237, 187, 23, 0.25); }
    50%       { border-color: rgba(237, 187, 23, 0.6); }
}
.nvg-fab:hover {
    background: rgba(237, 187, 23, 0.12);
    border-color: #edbb17;
    color: #edbb17;
    animation: none;
}
body.nvg-active .nvg-fab {
    border-color: rgba(0, 255, 0, 0.5);
    color: #00ff00;
    background: rgba(0, 30, 0, 0.8);
    animation: nvg-pulse-green 2s ease-in-out infinite;
}
@keyframes nvg-pulse-green {
    0%, 100% { border-color: rgba(0,255,0,0.3);  box-shadow: 0 0 5px rgba(0,255,0,0.1); }
    50%       { border-color: rgba(0,255,0,0.75); box-shadow: 0 0 14px rgba(0,255,0,0.3); }
}
body.nvg-active .nvg-fab:hover {
    background: rgba(0, 50, 0, 0.9);
    border-color: #00ff00;
    animation: none;
}

/* =========================================
   NAV USER CHIP (PC) + MOBILE USER INFO
   ========================================= */

/* Wrapper pro hamburger + avatar na mobilu */
.nav-mobile-right {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 3;
    margin-left: auto;
    z-index: 6000;
}

/* Miniaturní avatar vedle hamburgeru na mobilu */
.nav-avatar-mobile {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    object-fit: cover;
}

/* Hamburger reset - uz neni samostatny order */
.hamburger-btn {
    margin-left: 0;
}

/* ── USER INFO PANEL V MOBILNÍM MENU ── */
.nav-user-mobile {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 8px;
}

.nav-user-mobile.nav-user-login {
    justify-content: center;
}

.nav-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
    flex-shrink: 0;
}

.nav-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.nav-user-name {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-badge {
    font-size: 9px;
    color: var(--primary-color);
    letter-spacing: 1px;
    font-family: 'Consolas', monospace;
}

.nav-user-badge-guest {
    color: #888;
}

.nav-user-logout {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 8px;
    border: 1px solid #333;
    border-radius: 3px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.nav-user-logout:hover {
    color: #ff4444;
    border-color: #ff4444;
}

/* Discord login button v mobilním menu */
.nav-discord-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Consolas', monospace;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: background 0.2s;
}

.nav-discord-login-btn:hover {
    background: #4752c4;
}

/* ── PC USER CHIP (vpravo v nav baru) ── */
.nav-user-chip {
    display: none; /* skryt na mobilu */
}

/* =============================================
   PC MEDIA QUERY - user chip
   ============================================= */
@media (min-width: 768px) {

    /* Schovat mobilní elementy na PC */
    .nav-avatar-mobile { display: none; }
    .nav-mobile-right { display: contents; } /* degraduje na normalni flow */

    /* Hamburger zustane skryty (uz reseno drive) */

    /* Zobrazit PC chip */
    .nav-user-chip {
        display: flex;
        align-items: center;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 6001;
    }

    /* Přihlášen chip */
    .nav-chip-logged {
        display: flex;
        align-items: center;
        gap: 6px;
        background: rgba(0,0,0,0.5);
        border: 1px solid #333;
        border-radius: 20px;
        padding: 3px 10px 3px 4px;
        transition: border-color 0.2s;
    }

    .nav-chip-logged:hover {
        border-color: #555;
    }

    .nav-chip-avatar {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid var(--primary-color);
    }

    .nav-chip-name {
        color: #ccc;
        font-size: 11px;
        font-family: 'Consolas', monospace;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-chip-rs {
        background: var(--primary-color);
        color: #000;
        font-size: 8px;
        font-weight: bold;
        font-family: 'Consolas', monospace;
        padding: 1px 4px;
        border-radius: 2px;
        letter-spacing: 1px;
    }

    .nav-chip-logout {
        color: #555;
        text-decoration: none;
        font-size: 11px;
        padding: 1px 4px;
        border-radius: 2px;
        transition: color 0.2s;
        line-height: 1;
    }

    .nav-chip-logout:hover {
        color: #ff4444;
    }

    /* Nepřihlášen — mini login button */
    .nav-chip-login {
        display: flex;
        align-items: center;
        gap: 5px;
        color: #5865F2;
        text-decoration: none;
        font-size: 10px;
        font-family: 'Consolas', monospace;
        font-weight: bold;
        letter-spacing: 1px;
        padding: 4px 10px;
        border: 1px solid #5865F2;
        border-radius: 3px;
        transition: all 0.2s;
        opacity: 0.8;
    }

    .nav-chip-login:hover {
        opacity: 1;
        background: rgba(88,101,242,0.15);
    }

    /* Schovat user info panel v mobilním menu (na PC má display:contents nav-links-container) */
    .nav-user-mobile {
        display: none !important;
    }
}

/* =========================================
   ADMIN MANUAL SIGNUP + LEGENDA
   ========================================= */

/* Admin mode badge v headeru mise */
.admin-mode-badge {
    display: inline-block; margin-top: 6px;
    font-size: 10px; padding: 3px 10px; letter-spacing: 2px;
    color: #ff9900; border: 1px solid #ff9900;
    background: rgba(255,153,0,0.08);
    font-family: 'Consolas', monospace;
}

/* Admin slot s inline inputem */
.role-slot.admin-slot {
    background: rgba(255,153,0,0.04);
    border-left: 2px solid rgba(255,153,0,0.3);
}

.admin-manual-form {
    display: flex; align-items: center; gap: 4px; flex: 1;
}

.admin-name-input {
    flex: 1; background: rgba(0,0,0,0.5);
    border: 1px solid #444; color: #e0e0e0;
    font-family: 'Consolas', monospace; font-size: 11px;
    padding: 3px 7px; outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}
.admin-name-input:focus { border-color: #ff9900; }
.admin-name-input::placeholder { color: #555; }

.admin-name-confirm {
    background: rgba(255,153,0,0.15); border: 1px solid #ff9900;
    color: #ff9900; font-size: 13px; padding: 2px 8px;
    line-height: 1; transition: all 0.2s; cursor: pointer;
    flex-shrink: 0;
}
.admin-name-confirm:hover { background: rgba(255,153,0,0.3); }
.admin-name-confirm:disabled { opacity: 0.4; }

/* Admin odebírací tlacítko (viditelné pro všechny sloty v admin módu) */
.slot-unsign-btn.admin-remove { color: #ff9900; opacity: 0.5; }
.slot-unsign-btn.admin-remove:hover { opacity: 1; text-shadow: 0 0 5px #ff9900; }

/* Manuální zápis — oranžový styl */
.role-slot.manual .slot-player-name { color: #ff9900; }
.reserve-slot.manual .slot-player-name { color: #ff9900; }
.manual-tag { font-size: 9px; opacity: 0.7; }

/* Legenda — přidán manuální zápis */
.manual-indicator { color: #ff9900; }

/* =========================================
   ADMIN GALERIE
   ========================================= */
.gal-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.gal-admin-item {
    position: relative;
    border: 1px solid #444;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.gal-admin-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.gal-delete-img-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8) !important;
    color: white !important;
    border: 1px solid red;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    padding: 0;
}

.gal-delete-img-btn:hover {
    transform: scale(1.2);
    background: red !important;
}

/* =========================================
   SEO & PAGE SPEED
   ========================================= */
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.seo-text-block {
    max-width: 850px;
    margin: 40px auto;
    padding: 25px 35px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.85); /* Téměř černé pozadí přes tu světlou fotku */
    border: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    border-radius: 8px;
    text-shadow: 0px 2px 4px rgba(0,0,0,1);
    backdrop-filter: blur(5px);
}
.seo-text-block strong {
    color: var(--primary-color);
    letter-spacing: 1px;
    font-weight: bold;
}
