* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #090616 0%, #170b2c 50%, #29092b 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* --- ČTVERCOVÉ LOGO VLEVO NAHOŘE --- */
.corner-logo-link {
    position: fixed;
    top: 15px;
    left: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.corner-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 77, 240, 0.4);
    box-shadow: 0 0 15px rgba(255, 77, 240, 0.35);
    background: rgba(22, 12, 41, 0.85);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.corner-logo:hover {
    transform: scale(1.08);
    border-color: #ff4df0;
    box-shadow: 0 0 20px rgba(255, 77, 240, 0.6);
}

/* --- POZADÍ --- */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-item {
    position: absolute;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.45;
    filter: drop-shadow(0 0 15px rgba(255, 77, 240, 0.3));
    cursor: pointer;
    pointer-events: auto;
    z-index: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bg-item:hover {
    opacity: 0.85;
    transform: scale(1.03) rotate(var(--rot)) !important;
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 6, 22, 0.88);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 14px;
    box-shadow: 0 0 40px rgba(255, 77, 240, 0.5);
    border: 2px solid rgba(255, 77, 240, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    padding: 85px 20px 20px;
    width: 100%;
    z-index: 2;
}

/* --- NAVIGAČNÍ LIŠTA & KLOUZAVÝ UKAZATEL --- */
.nav-tabs {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-wrap: nowrap;
    background: rgba(22, 12, 41, 0.95);
    border: 1px solid rgba(255, 77, 240, 0.3);
    padding: 6px;
    border-radius: 30px;
    gap: 4px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(255, 77, 240, 0.35);
    transform: scale(1.05);
    transform-origin: top right;
}

.nav-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: 0px;
    background: linear-gradient(135deg, #6a11cb 0%, #ff4df0 100%);
    border-radius: 20px;
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(255, 77, 240, 0.4);
    pointer-events: none;
}

.tab-btn {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    color: #e1bee7;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover, .tab-btn.active {
    color: #ffffff;
    background: transparent;
    box-shadow: none;
}

/* Interaktivní IP box */
.ip-box {
    display: inline-block;
    background: rgba(22, 12, 41, 0.85);
    border: 1px solid rgba(255, 77, 240, 0.4);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(255, 77, 240, 0.2);
}

.ip-box:hover {
    border-color: #ff4df0;
    box-shadow: 0 0 20px rgba(255, 77, 240, 0.4);
    transform: translateY(-2px);
}

.ip-label {
    color: #d1c4e9;
    font-size: 0.9rem;
    margin-right: 5px;
}

#server-ip {
    color: #ffb3ff;
    font-size: 1rem;
}

.copy-hint {
    display: block;
    font-size: 0.7rem;
    color: #9575cd;
    margin-top: 2px;
}

main {
    width: 90%;
    max-width: 950px;
    flex: 1;
    padding: 20px 0;
    z-index: 2;
}

/* --- SYSTÉM PŘEPÍNÁNÍ SEKCÍ NA KLIKNUTÍ --- */
.content-section {
    display: none;
    margin-bottom: 40px;
    animation: fadeIn 0.3s ease-in-out;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #ffb3ff;
}

.content-section > p {
    color: #d1c4e9;
    text-align: center;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 25px;
    line-height: 1.5;
}

/* Úvodní hero karta */
.home-hero-card {
    background: rgba(22, 12, 41, 0.85);
    border: 1px solid rgba(255, 77, 240, 0.4);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(255, 77, 240, 0.2);
    backdrop-filter: blur(10px);
}

.home-hero-card h2 {
    color: #ffb3ff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.home-hero-card p {
    color: #d1c4e9;
    font-size: 1.1rem;
}

/* Domovská sekce grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: rgba(22, 12, 41, 0.75);
    border: 1px solid rgba(156, 39, 176, 0.3);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.feature-card h3 {
    color: #ff80df;
    margin-bottom: 10px;
}

.feature-card p {
    color: #d1c4e9;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Obchod & Tým */
.shop-container, .staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card, .staff-card {
    background: rgba(22, 12, 41, 0.75);
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover, .staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 77, 240, 0.25);
    border-color: #ff4df0;
}

.card h3, .staff-card h3 {
    color: #ff80df;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.staff-name {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00e676;
    margin: 15px 0;
}

.card button {
    background: linear-gradient(135deg, #6a11cb 0%, #ff4df0 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: opacity 0.2s;
}

.card button:hover {
    opacity: 0.9;
}

/* Pravidla */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 750px;
    margin: 0 auto;
}

.rule-item {
    background: rgba(22, 12, 41, 0.75);
    border: 1px solid rgba(156, 39, 176, 0.3);
    padding: 15px 20px;
    border-radius: 10px;
    color: #d1c4e9;
    display: flex;
    align-items: center;
    gap: 15px;
}

.rule-item span {
    color: #ff4df0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Fotky */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.photo-card {
    background: rgba(22, 12, 41, 0.8);
    border: 1px solid rgba(156, 39, 176, 0.3);
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

/* Hlasování */
.vote-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.vote-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #ff4df0 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 77, 240, 0.3);
    transition: transform 0.2s;
}

.vote-btn:hover {
    transform: scale(1.03);
}

/* Info list */
.info-list {
    list-style: none;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(22, 12, 41, 0.75);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #d1c4e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-list li:last-child {
    border-bottom: none;
}

.username-container {
    text-align: center;
    margin-bottom: 20px;
}

.username-container label {
    display: block;
    margin-bottom: 6px;
    color: #d1c4e9;
}

.username-container input {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #7b1fa2;
    background: #140c26;
    color: #fff;
    width: 280px;
    outline: none;
}

/* --- LIGHTBOX KŘÍŽEK --- */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: rgba(22, 12, 41, 0.8);
    border: 2px solid rgba(255, 77, 240, 0.5);
    color: #ffb3ff;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s ease;
    outline: none;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 77, 240, 0.3);
    border-color: #ff4df0;
    color: #ffffff;
    transform: scale(1.1);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    text-align: left;
    padding: 25px 40px;
    color: #9575cd;
    font-size: 0.85rem;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    z-index: 2;
}

.footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(22, 12, 41, 0.85);
    border: 1px solid rgba(255, 77, 240, 0.3);
    color: #d1c4e9;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    border-color: #ff4df0;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 77, 240, 0.4);
}

.discord-icon:hover {
    background: #5865F2;
    border-color: #5865F2;
}

.whatsapp-icon:hover {
    background: #25D366;
    border-color: #25D366;
}

/* --- VYSKAKOVACÍ OKNO (CHECKOUT MODAL) --- */
.checkout-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px);
}
.checkout-modal-overlay.active {
    opacity: 1; pointer-events: auto;
}
.checkout-modal {
    background: #1e1e2f; padding: 30px; border-radius: 15px;
    width: 90%; max-width: 420px; text-align: center;
    border: 1px solid rgba(255, 77, 240, 0.5);
    box-shadow: 0 15px 50px rgba(0,0,0,0.8); color: white;
}
.checkout-modal h3 {
    margin-top: 0; color: #ffffff; font-size: 1.5rem; margin-bottom: 15px;
}
#modal-mc-username {
    width: 90%; padding: 12px; margin: 20px auto 10px; display: block;
    border-radius: 8px; border: 2px solid rgba(255, 77, 240, 0.3);
    background: #160c29; color: white; font-size: 1.1rem; text-align: center;
    transition: border-color 0.3s;
}
#modal-mc-username:focus {
    outline: none; border-color: #ff4df0;
}
.payment-methods-title {
    font-size: 0.85rem; color: #aaa; margin-top: 15px;
}
.payment-methods {
    display: flex; justify-content: center; gap: 8px; margin: 10px 0 25px 0; flex-wrap: wrap;
}
.pay-badge {
    padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.pay-badge.paypal { background: #00457C; color: white; border: 1px solid #00599f; }
.pay-badge.card { background: #6772E5; color: white; border: 1px solid #7c86e9;}
.pay-badge.psc { background: #008be2; color: white; border: 1px solid #00a4ff;}

.modal-buttons {
    display: flex; gap: 10px; justify-content: center;
}
.btn-confirm {
    background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
    color: #000; border: none; padding: 12px 20px; border-radius: 8px;
    font-weight: bold; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; flex: 1; font-size: 1rem;
}
.btn-confirm:hover { transform: scale(1.03); box-shadow: 0 5px 15px rgba(0, 230, 118, 0.4); }
.btn-cancel {
    background: #ff5252; color: white; border: none; padding: 12px 20px; border-radius: 8px;
    font-weight: bold; cursor: pointer; transition: transform 0.2s; flex: 0.5;
}
.btn-cancel:hover { transform: scale(1.03); }

.shop-container .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.shop-container .card p {
    flex-grow: 1;
}

/* --- FÓRUM STYLY --- */
.forum-container {
    max-width: 800px;
    margin: 0 auto;
}

.forum-auth-box {
    background: rgba(22, 12, 41, 0.85);
    border: 1px solid rgba(255, 77, 240, 0.4);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 77, 240, 0.2);
    max-width: 400px;
    margin: 0 auto;
}

.forum-auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(14, 7, 27, 0.6);
    padding: 5px;
    border-radius: 10px;
}

.forum-auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #d1c4e9;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.forum-auth-tab.active {
    background: linear-gradient(135deg, #6a11cb 0%, #ff4df0 100%);
    color: white;
    box-shadow: 0 0 10px rgba(255, 77, 240, 0.4);
}

.forum-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 77, 240, 0.3);
    background: #140c26;
    color: #fff;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.forum-input:focus {
    border-color: #ff4df0;
    box-shadow: 0 0 10px rgba(255, 77, 240, 0.2);
}

.forum-btn {
    width: 100%;
    background: linear-gradient(135deg, #6a11cb 0%, #ff4df0 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 0 15px rgba(255, 77, 240, 0.3);
}

.forum-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.forum-main-box {
    background: rgba(22, 12, 41, 0.85);
    border: 1px solid rgba(255, 77, 240, 0.4);
    padding: 25px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 77, 240, 0.2);
}

.user-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6a11cb 0%, #ff4df0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 0 10px rgba(255, 77, 240, 0.4);
}

.user-name {
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
}

.logout-btn {
    background: #ff5252;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logout-btn:hover {
    opacity: 0.9;
}

.new-post-box {
    background: rgba(14, 7, 27, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(156, 39, 176, 0.3);
    margin-bottom: 25px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-card {
    background: rgba(14, 7, 27, 0.6);
    border: 1px solid rgba(156, 39, 176, 0.3);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.post-author-name {
    font-weight: bold;
    color: #ffb3ff;
}

.post-time {
    font-size: 0.8rem;
    color: #9575cd;
    margin-left: auto;
}

.post-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.post-content {
    color: #d1c4e9;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- RESPONZIVNÍ DESIGN PRO MOBILY --- */
@media (max-width: 768px) {
    .corner-logo-link {
        position: absolute;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
    }

    .corner-logo {
        width: 80px;
        height: 80px;
    }

    .nav-tabs {
        top: auto;
        bottom: 15px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 95%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 8px;
        border-radius: 15px;
        scroll-snap-type: x mandatory;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        scroll-snap-align: start;
    }

    header {
        padding-top: 110px;
    }

    main {
        padding-bottom: 80px;
    }

    .home-hero-card h2 {
        font-size: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .checkout-modal {
        width: 95%;
        padding: 20px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

/* --- TOAST NOTIFIKACE --- */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100000;
    pointer-events: none;
}

.toast {
    min-width: 280px;
    max-width: 400px;
    padding: 16px 24px;
    border-radius: 12px;
    background: rgba(22, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-left: 6px solid #6a11cb;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #00e676;
    box-shadow: 0 5px 20px rgba(0, 230, 118, 0.2);
}

.toast.error {
    border-left-color: #ff5252;
    box-shadow: 0 5px 20px rgba(255, 82, 82, 0.2);
}

.toast.info {
    border-left-color: #ff4df0;
    box-shadow: 0 5px 20px rgba(255, 77, 240, 0.2);
}

.toast-icon {
    font-size: 1.3rem;
}

/* --- PŘESUNUTÉ STYLY Z HTML --- */
.ip-connect-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 3px 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 77, 240, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: visible;
}

.ip-connect-line .ip-text {
    color: #160c29;
    font-weight: bold;
    font-family: monospace;
    font-size: 0.9rem;
}

.ip-copy-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #ff4df0 100%);
    color: #ffffff;
    border: none;
    padding: 4px 10px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    font-size: 0.7rem;
    box-shadow: 0 2px 5px rgba(255, 77, 240, 0.2);
}

.ip-copy-btn:hover {
    box-shadow: 0 4px 8px rgba(255, 77, 240, 0.4);
}

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

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 1;
    z-index: 10;
}

@keyframes particleFadeOut {
    to {
        opacity: 0;
        transform: translate(var(--x), var(--y)) scale(0);
    }
}

.form-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.form-modal-content {
    background: #160c29;
    border: 1px solid rgba(255, 77, 240, 0.3);
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.form-modal-content h3 {
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
}

.forum-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.forum-auth-box, .forum-main-box {
    background: rgba(22, 12, 41, 0.85);
    border: 1px solid rgba(255, 77, 240, 0.3);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.forum-auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.forum-auth-tab {
    flex: 1;
    padding: 10px;
    background: #2a2a3d;
    border: none;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.forum-auth-tab.active {
    background: linear-gradient(135deg, #6a11cb 0%, #ff4df0 100%);
}

.forum-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 77, 240, 0.2);
    background: #160c29;
    color: white;
    box-sizing: border-box;
}

.forum-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #6a11cb 0%, #ff4df0 100%);
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 77, 240, 0.3);
    transition: opacity 0.2s;
}

.forum-btn:hover {
    opacity: 0.9;
}

.user-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 77, 240, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb 0%, #ff4df0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
}

.logout-btn {
    background: rgba(255, 51, 51, 0.2);
    color: #ff3333;
    border: 1px solid rgba(255, 51, 51, 0.4);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
}

.logout-btn:hover {
    background: rgba(255, 51, 51, 0.4);
}

.new-post-box {
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 77, 240, 0.15);
    padding: 15px;
    border-radius: 10px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-author-name {
    color: #ff4df0;
    font-weight: bold;
    font-size: 0.95rem;
}

.post-time {
    color: #888;
    font-size: 0.75rem;
    margin-left: auto;
}

.post-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.post-content {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .nav-tabs {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        box-sizing: border-box;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 8px 10px !important;
        background: rgba(22, 12, 41, 0.95) !important;
        backdrop-filter: blur(10px);
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    .nav-tabs {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    body {
        padding-bottom: 80px;
    }
}

/* --- Styly pro horní přepínací záložky --- */
.tab-nav-btn {
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid #ff4df0;
    background: #2a2a3d;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.tab-nav-btn.active {
    background: linear-gradient(135deg, #6a11cb 0%, #ff4df0 100%);
}

/* --- Styly pro samotná tlačítka formulářů (odlišná barva od záložek) --- */
.form-btn {
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #4e54c8;
    background: linear-gradient(135deg, #1f1c2c 0%, #928dab 100%);
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

/* --- Stylová tlačítka (akční Call-to-Action) --- */
.form-btn {
    padding: 14px 28px;
    border-radius: 12px;                  /* Jemné zaoblení rohu */
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%); /* Fialovo-růžový přechod */
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;

    /* Záře a stín tlačítka */
    box-shadow: 0 4px 20px rgba(217, 70, 239, 0.4);
    transition: all 0.3s ease;
}

/* Efekt při najetí myší (hover) */
.form-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #e879f9 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02); /* Mírné povyskočení a zvětšení */
    box-shadow: 0 8px 28px rgba(217, 70, 239, 0.65); /* Silnější záře */
}

/* Efekt při kliknutí */
.form-btn:active {
    transform: translateY(-1px) scale(0.99);
}
/* --- Obal pro tlačítko pod kartičkami --- */
.cta-container {
    display: flex !important;
    justify-content: center !important; /* Vycentruje tlačítko přesně na střed */
    width: 100% !important;
    grid-column: 1 / -1 !important;    /* Vynutí roztažení přes všechny sloupce, pokud je sekce #home Grid */
    margin-top: 40px !important;       /* Posune tlačítko o 40px níže */
}

/* --- Oranžová varianta tlačítka --- */
.form-btn-orange {
    padding: 14px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #ea580c 0%, #ff7a00 100%); /* Šťavnatý oranžový přechod */
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;

    /* Oranžová záře a stín */
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.4);
    transition: all 0.3s ease;
}

/* Hover efekt */
.form-btn-orange:hover {
    background: linear-gradient(135deg, #c2410c 0%, #ff9100 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(234, 88, 12, 0.65);
}

/* Kliknutí */
.form-btn-orange:active {
    transform: translateY(-1px) scale(0.99);
}

.form-btn-blue {
    padding: 14px 28px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

.form-btn-blue:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.65);
}

.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    background: #0f081c;
    pointer-events: none;
}

/* --- STYLY PRO LOADING OKNO --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #160c29;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
    padding: 20px;
    box-sizing: border-box;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    border: 4px solid rgba(255, 77, 240, 0.2);
    border-top: 4px solid #ff4df0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: monospace;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.loading-tip {
    color: #ffb3ff;
    font-size: 0.95rem;
    text-align: center;
    width: 90%;
    max-width: 550px;
    font-family: sans-serif;
    min-height: 2.5em;
    transition: opacity 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 77, 240, 0.3);
    box-sizing: border-box;
    line-height: 1.4;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- STYLY PRO IP OKNO --- */
.ip-connect-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 3px 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 77, 240, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: visible;
}

.ip-connect-line .ip-text {
    color: #160c29;
    font-weight: bold;
    font-family: monospace;
    font-size: 0.9rem;
}

.ip-copy-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #ff4df0 100%);
    color: #ffffff;
    border: none;
    padding: 4px 10px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    font-size: 0.7rem;
    box-shadow: 0 2px 5px rgba(255, 77, 240, 0.2);
}

.ip-copy-btn:hover {
    box-shadow: 0 4px 8px rgba(255, 77, 240, 0.4);
}

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

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 1;
    z-index: 10;
}

@keyframes particleFadeOut {
    to {
        opacity: 0;
        transform: translate(var(--x), var(--y)) scale(0);
    }
}

/* --- STYLY PRO FÓRUM A DISKUZE --- */
.forum-card {
    background: #160c29;
    border: 1px solid rgba(255, 77, 240, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-align: left;
    cursor: pointer;
}

.forum-card:hover {
    border-color: rgba(255, 77, 240, 0.7);
    transform: translateY(-2px);
}

.forum-card h4 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.forum-meta {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 12px;
}

.forum-meta span {
    color: #ff4df0;
    font-weight: bold;
}

.forum-content {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

.thread-message {
    background: #1a103c;
    border: 1px solid rgba(255, 77, 240, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    text-align: left;
}

.thread-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #aaa;
}

.thread-author {
    color: #ff4df0;
    font-weight: bold;
}

.auth-box {
    background: #160c29;
    border: 1px solid rgba(255, 77, 240, 0.4);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

/* --- STYLY PRO PRAVIDLA --- */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    background: #160c29;
    border: 1px solid rgba(255, 77, 240, 0.25);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rule-item span {
    color: #ff4df0;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.05rem;
    min-width: 30px;
}

.rule-item p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* --- TOAST NOTIFIKACE --- */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100000;
    pointer-events: none;
}

.toast {
    min-width: 280px;
    max-width: 400px;
    padding: 16px 24px;
    border-radius: 12px;
    background: rgba(22, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-left: 6px solid #6a11cb;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #00e676;
    box-shadow: 0 5px 20px rgba(0, 230, 118, 0.2);
}

.toast.error {
    border-left-color: #ff5252;
    box-shadow: 0 5px 20px rgba(255, 82, 82, 0.2);
}

.toast.info {
    border-left-color: #ff4df0;
    box-shadow: 0 5px 20px rgba(255, 77, 240, 0.2);
}

.toast-icon {
    font-size: 1.3rem;
}

/* --- STYLY PRO PREPINAC V NASTAVENI --- */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s;
    border-radius: 34px;
    border: 1px solid rgba(255, 77, 240, 0.4);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #6a11cb 0%, #ff4df0 100%);
    box-shadow: 0 0 10px rgba(255, 77, 240, 0.4);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* --- MOBILNÍ SPODNÍ LIŠTA --- */
@media (max-width: 768px) {
    .nav-tabs {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        box-sizing: border-box;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 8px 10px !important;
        background: rgba(22, 12, 41, 0.95) !important;
        backdrop-filter: blur(10px);
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    .nav-tabs {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    body {
        padding-bottom: 80px;
    }

    .auth-box {
        flex-direction: column;
        align-items: stretch;
    }

    #toast-container {
        bottom: 80px;
        right: 15px;
        left: 15px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}