@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- NAVBAR STYLES ARE NOW IN _nav.html --- */

.fantasy-intro {
    font-family: 'Cinzel', 'Georgia', serif;
    background: linear-gradient(120deg, #18181f 80%, #ffeebc22 100%);
}
.fantasy-intro-center {
    background: rgba(24,24,31,0.99);
    border: 3px solid #ffeebc;
    box-shadow: 0 8px 64px #000c, 0 0 0 8px #ffeebc33;
}
.fantasy-title {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffeebc;
    text-shadow: 0 2px 24px #000a, 0 0 8px #ffeebc77;
}
.fantasy-glow {
    color: #ffeebc;
    text-shadow: 0 0 16px #ffeebc, 0 2px 24px #000a;
    font-weight: 700;
}
.fantasy-sub {
    color: #fff7d6;
    font-size: 1.2rem;
    font-family: 'Georgia', serif;
}
.fantasy-note {
    color: #ffeebc;
    font-size: 1.08rem;
    font-style: italic;
}
.fantasy-pill {
    background: #ffeebc;
    color: #18181f;
    border-radius: 1.2rem;
    padding: 0.3rem 1.1rem;
    font-weight: 700;
    margin: 0 0.3rem;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px #0003;
    display: inline-block;
}
.fantasy-pills {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}
.fantasy-mods-carousel-section, .mod-carousel-outer {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    background: #18181f;
    overflow: hidden;
}
.mod-carousel {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    position: relative;
    margin: 0;
    z-index: 2;
    transition: filter 0.3s;
    touch-action: pan-y pan-x;
}
@media (max-width: 900px) {
    .mod-carousel-card {
        width: 92vw;
        min-height: 320px;
        font-size: 1.05rem;
    }
}
/* Animated Intro Overlay for Mods */
.mods-intro-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, #18181f 80%, #ffeebc22 100%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.7s cubic-bezier(.4,2,.3,1);
    transition: opacity 0.8s;
}
.mods-intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s;
}
.mods-intro-center {
    text-align: center;
    background: rgba(24,24,31,0.98);
    border-radius: 2.5rem;
    box-shadow: 0 8px 64px #000c, 0 0 0 8px #ffeebc33;
    padding: 3.5rem 4.5rem 3rem 4.5rem;
/* Fullscreen carousel - new professional style */
.fantasy-mods-carousel-section, .mod-carousel-outer {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    background: #18181f;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mod-carousel {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    z-index: 2;
    transition: filter 0.3s;
    touch-action: pan-y pan-x;
}
.mod-carousel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(24,24,31,0.98);
    border: 3px solid #ffeebc;
    border-radius: 2.5rem;
    box-shadow: 0 8px 64px #000c, 0 0 0 8px #ffeebc33;
    padding: 2.5rem 3.5rem 2.5rem 3.5rem;
    min-width: 420px;
    max-width: 90vw;
    min-height: 420px;
    max-height: 80vh;
    margin: 0 auto;
    font-size: 1.25rem;
    color: #ffeebc;
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}
.mod-carousel-card img {
    width: 180px;
    height: 100px;
    object-fit: contain;
    border-radius: 1.2rem;
    margin-bottom: 1.2rem;
    background: #222;
    box-shadow: 0 2px 16px #000a;
}
.mod-carousel-card .mod-carousel-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    color: #ffeebc;
    text-align: center;
}
.mod-carousel-card .mod-carousel-desc {
    font-size: 1.15rem;
    color: #fff7d6;
    text-align: center;
}
@media (max-width: 900px) {
    .mod-carousel-card {
        min-width: 90vw;
        max-width: 98vw;
        min-height: 320px;
        font-size: 1.05rem;
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    }
    .mod-carousel-card img {
        width: 98vw;
        height: 80px;
    }
}
/* Modal image large and centered */
.mod-modal-content img {
    width: 320px;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto 1.2rem auto;
    border-radius: 1.2rem;
    background: #222;
    box-shadow: 0 2px 16px #000a;
}
@media (max-width: 900px) {
    .mod-modal-content img {
        width: 98vw;
        height: 120px;
    }
}
    min-width: 340px;
    max-width: 96vw;
    color: #ffeebc;
    animation: popIn 0.7s cubic-bezier(.4,2,.3,1);
}
.mods-intro-title {
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 24px #000a, 0 0 8px #ffeebc77;
}
.mods-intro-sub {
    font-size: 1.3rem;
    font-weight: 400;
    color: #fff7d6;
    text-shadow: 0 2px 12px #000a;
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.8) translateY(40px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Modal polish */
.mod-modal {
    background: #18181f;
    border-radius: 2.2rem;
    box-shadow: 0 8px 64px #000c, 0 0 0 8px #ffeebc33;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    min-width: 340px;
    max-width: 96vw;
    min-height: 320px;
    color: #ffeebc;
    position: relative;
    animation: modalIn 0.5s cubic-bezier(.4,2,.3,1);
    border: 2px solid #ffeebc;
    transition: box-shadow 0.3s, border 0.3s;
}
.mod-modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}
.mod-modal-img {
    width: 90px;
    height: 50px;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px #000a;
}
.mod-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffeebc;
    margin-bottom: 0.2rem;
}
.mod-modal-author {
    font-size: 1.1rem;
    color: #fff7d6;
    margin-bottom: 0.2rem;
}
.mod-modal-desc {
    font-size: 1.13rem;
    margin-bottom: 1.1rem;
    color: #fff7d6;
}
.mod-modal-features {
    margin-bottom: 1.1rem;
    padding-left: 1.2rem;
}
.mod-modal-features li {
    font-size: 1.08rem;
    margin-bottom: 0.3rem;
}
.mod-modal-links a {
    display: inline-block;
    margin-right: 1.2rem;
    color: #ffeebc;
    font-weight: 600;
    text-decoration: underline;
    font-size: 1.08rem;
    transition: color 0.2s;
}
.mod-modal-links a:hover {
    color: #fff7d6;
}
/* MODS 3D CAROUSEL */
.mod-carousel-outer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin: 3.5rem 0 2.5rem 0;
    position: relative;
}
.mod-carousel {
    width: 60vw;
    max-width: 900px;
    min-width: 320px;
    height: 340px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.mod-carousel-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    max-width: 90vw;
    height: 320px;
    background: linear-gradient(120deg, #23232b 80%, #2e2e38 100%);
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 #000a, 0 0 0 2px #e0c08022;
    color: #e0e0e0;
    text-align: center;
    border: 2px solid #3a2e1a;
    transition: transform 0.7s cubic-bezier(.22,1,.36,1), box-shadow 0.22s, border 0.22s, opacity 0.4s;
    cursor: pointer;
    opacity: 0.7;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.2rem 1.2rem 1.5rem 1.2rem;
    will-change: transform, opacity;
}
.mod-carousel-card.active {
    box-shadow: 0 8px 32px 0 #000c, 0 0 0 4px #e0c08077;
    border: 2.5px solid #ffe7a0;
    opacity: 1;
    z-index: 2;
}
.mod-carousel-card img {
    width: 96px;
    height: 54px;
    border-radius: 8px;
    margin-bottom: 1.1em;
    box-shadow: 0 2px 12px #0007;
    border: 1.5px solid #e0c08044;
    background: #18181e;
}
.mod-carousel-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3em;
    color: #ffe7a0;
    margin-bottom: 0.3em;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 0 #0008;
}
.mod-carousel-desc {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 0.2em;
    text-shadow: 0 1px 0 #0008;
}
.carousel-prev, .carousel-next {
    background: linear-gradient(90deg, #e0c080 60%, #bfa05a 100%);
    color: #2e2e2e;
    font-weight: 700;
    border-radius: 2em;
    border: none;
    padding: 0.7em 1.5em;
    font-size: 1.5em;
    box-shadow: 0 2px 8px #0005;
    margin: 0 0.5em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.18s;
    z-index: 10;
}
.carousel-prev:hover, .carousel-next:hover {
    background: #ffe7a0;
    color: #23232b;
    transform: scale(1.08);
}
@media (max-width: 900px) {
    .mod-carousel {
        width: 98vw;
        min-width: 0;
        height: 260px;
    }
    .mod-carousel-card {
        width: 220px;
        height: 220px;
        font-size: 0.95em;
    }
}
@media (max-width: 600px) {
    .mod-carousel {
        width: 100vw;
        height: 180px;
    }
    .mod-carousel-card {
        width: 120px;
        height: 120px;
        font-size: 0.85em;
        padding: 1.1rem 0.3rem 0.7rem 0.3rem;
    }
    .carousel-prev, .carousel-next {
        font-size: 1.1em;
        padding: 0.4em 0.7em;
    }
}
/* ---------------------------------------------------------
   MODS PAGE: MOD-DETAILS GRID
--------------------------------------------------------- */
.mod-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .mod-details-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* ---------------------------------------------------------
   NAVBAR & RADAR: RESPONSIVE OPTIMIERUNG
--------------------------------------------------------- */
@media (max-width: 900px) {
    .main-nav {
        flex-direction: column;
        height: auto;
        padding: 0 8px;
    }
    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: flex-start;
    }
    .nav-links a {
        width: 100%;
        text-align: left;
        padding: 10px 0;
    }
}

/* RADAR PAGE: responsive helper (falls .radar-container existiert) */
.radar-container {
    max-width: 100vw;
    overflow-x: auto;
    padding: 0 8px;
}
@media (max-width: 700px) {
    .radar-container {
        padding: 0 2px;
    }
}
/* ---------------------------------------------------------
   MODS PAGE: MOD TABLE & DETAILS
--------------------------------------------------------- */

.mod-table-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
}

.mod-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(18,18,28,0.85);
    border-radius: 14px;
    box-shadow: 0 0 24px rgba(0,0,0,0.25);
    font-size: 1rem;
    margin: 0 auto 24px auto;
    min-width: 720px;
    overflow: hidden;
}
.mod-table th, .mod-table td {
    padding: 14px 12px;
    text-align: left;
}
.mod-table th {
    background: rgba(255,220,150,0.10);
    color: #ffd8a3;
    font-family: "Cinzel", serif;
    font-size: 1.08rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,220,150,0.18);
}
.mod-table td {
    border-bottom: 1px solid rgba(255,220,150,0.08);
    vertical-align: middle;
}
.mod-table tr:last-child td {
    border-bottom: none;
}
.mod-table a {
    color: #ffdca3;
    text-decoration: underline;
    transition: color 0.2s;
}
.mod-table a:hover {
    color: #f4c77b;
}
.mod-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(255,220,150,0.15);
    object-fit: cover;
    background: #222;
}

/* MOD DETAIL SECTIONS */
.mod-detail {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    background: rgba(20,20,32,0.85);
    border: 1px solid rgba(255,210,150,0.13);
    border-radius: 16px;
    box-shadow: 0 0 24px rgba(0,0,0,0.18);
    margin-bottom: 38px;
    padding: 32px 28px;
    flex-wrap: wrap;
}
.mod-detail-img {
    flex: 0 0 256px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mod-detail-img img {
    width: 220px;
    height: 124px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 16px rgba(255,220,150,0.13);
    background: #181818;
}
.mod-detail-content {
    flex: 1 1 320px;
    min-width: 220px;
}
.mod-detail-content h2 {
    font-family: "Cinzel", serif;
    font-size: 1.5rem;
    color: #ffd8a3;
    margin-bottom: 8px;
}
.mod-detail-meta {
    font-size: 0.98rem;
    color: #e9cfa3;
    margin-bottom: 10px;
}
.mod-detail-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 10px;
}
.mod-detail-content ul {
    margin: 0 0 0 18px;
    padding: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #ffe7c2;
}
.mod-detail-content ul li {
    margin-bottom: 4px;
    list-style: disc;
}

@media (max-width: 900px) {
    .mod-detail {
        flex-direction: column;
        gap: 18px;
        padding: 22px 10px;
    }
    .mod-detail-img {
        justify-content: flex-start;
    }
    .mod-detail-img img {
        width: 100%;
        max-width: 320px;
        height: auto;
    }
}

@media (max-width: 700px) {
    .mod-table {
        min-width: 420px;
        font-size: 0.95rem;
    }
    .mod-detail-content h2 {
        font-size: 1.15rem;
    }
}
/* ---------------------------------------------------------
   FONTS & GLOBAL BASE
--------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #06070d;
    color: #e9e9e9;
    overflow-x: hidden;
    padding-top: 56px;
}

/* ---------------------------------------------------------
   ANIMATIONS
--------------------------------------------------------- */

/* Fade upward */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Fade */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Glowing pulse for logo */
@keyframes pulseGlow {
    0%   { box-shadow: 0 0 12px rgba(255,190,115,0.3); }
    50%  { box-shadow: 0 0 22px rgba(255,190,115,0.6); }
    100% { box-shadow: 0 0 12px rgba(255,190,115,0.3); }
}

/* Animation delays */
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* Utility fade-in class */
.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Parallax background helper (optional) */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* ---------------------------------------------------------
   OLD HEADER + NAVIGATION - COMPLETELY REMOVED
   The new navigation styles are in "NAVIGATION - COMPLETE REWRITE" section below
--------------------------------------------------------- */

/* ---------------------------------------------------------
   HERO SECTION (Centered)
--------------------------------------------------------- */

.hero {
    min-height: 80vh;
    padding: 110px 28px 80px;
    color: white;
    background-size: cover;
    background-position: center;
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;        /* CENTER VERTICALLY */
    align-items: center;            /* CENTER HORIZONTALLY */

    animation: fadeIn 0.8s ease-out forwards;
    text-align: center;             /* CENTER TEXT */
}

/* Dark overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.75));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;               /* a bit wider for centered layout */
    width: 100%;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    align-items: center;            /* CENTER CONTENT ELEMENTS */
    justify-content: center;
    text-align: center;

    animation: fadeInUp 1.1s ease-out both;
}

.hero-title {
    font-family: "Cinzel", serif;
    font-size: 3.1rem;
    font-weight: 600;
    color: #ffe7c2;
    margin-bottom: 20px;

    text-shadow: 0 4px 14px rgba(0,0,0,0.6);
}

.hero-sub {
    margin-top: 10px;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #eaeaea;
    opacity: 0.92;
    max-width: 700px;
}

/* Pills centered */
.pill-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.pill {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 160, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fbe3b1;
    background: rgba(20, 18, 12, 0.8);
}

/* Primary CTA button */
.btn-primary {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #d69a3b, #f4c77b);
    color: #1b1308;
    font-family: "Cinzel", serif;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(250,210,140,0.9);
    box-shadow: 0 0 16px rgba(245,200,120,0.5);
    transition: 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(245,215,140,0.8);
}

/* Small hero note under button */
.hero-note {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ---------------------------------------------------------
   MAIN LAYOUT
--------------------------------------------------------- */

.layout-main {
    max-width: 1200px;
    margin: auto;
    padding: 40px 28px;
}

/* ---------------------------------------------------------
   SECTION + HEADINGS
--------------------------------------------------------- */

.section {
    margin: 60px 0;
    animation: fadeInUp 1s ease-out both;
}

.section h2 {
    font-family: "Cinzel", serif;
    font-size: 2rem;
    color: #ffd8a3;
    margin-bottom: 8px;
}

.subtext {
    opacity: 0.75;
    margin-bottom: 18px;
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 22px;
}

.card {
    background: rgba(20,20,32,0.7);
    border: 1px solid rgba(255,210,150,0.15);
    padding: 22px;
    border-radius: 12px;
    transition: 0.25s;
}

.card h3 {
    font-family: "Cinzel", serif;
    margin-bottom: 6px;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,210,150,0.4);
    box-shadow: 0 0 20px rgba(255,210,150,0.3);
}

/* ---------------------------------------------------------
   JOIN PAGE COMPONENTS
--------------------------------------------------------- */

.join-step {
    background: rgba(18,18,28,0.7);
    border: 1px solid rgba(255,210,150,0.20);
    padding: 20px 26px;
    border-radius: 12px;
    margin-bottom: 26px;
    box-shadow: 0 0 18px rgba(0,0,0,0.5);
}

.join-step h3 {
    font-family: "Cinzel", serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.join-step p {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Direct connect box */
.direct-box {
    margin-top: 20px;
    margin-bottom: 14px;
    padding: 18px;
    background: #15151f;
    border-radius: 10px;
    border: 1px solid #353545;
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.6px;
}

/* Discord button */
.discord-btn {
    margin-top: 14px;
    display: inline-block;
    padding: 12px 22px;
    background: #5865F2;
    color: white;
    font-family: "Inter", sans-serif;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: 0.2s;
}

.discord-btn:hover {
    background: #4753c7;
    box-shadow: 0 0 14px rgba(90,100,255,0.6);
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.footer {
    text-align: center;
    padding: 40px;
    margin-top: 60px;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------
   RESPONSIVE DESIGN
--------------------------------------------------------- */

@media (max-width: 900px) {
    .hero-title { font-size: 2.4rem; }
    .hero { padding-top: 120px; }
    .main-nav { padding: 0 16px; }
}

@media (max-width: 600px) {
    .nav-links { gap: 10px; }
    .nav-links a { padding: 6px 10px; }
    .hero { padding: 120px 18px 60px; }
}

/* ========================================
   NAVIGATION - COMPLETE REWRITE
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #0c0f14;
    border-bottom: 1px solid #20232b;
    z-index: 10005;  /* Above intro overlay (10000) but below audio controls (10010) */
    padding: 0;
    margin: 0;
    min-height: 56px;
}

.nav-container {
    width: 100%;
    max-width: 100%;
    height: 56px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin: 0;
    gap: 10px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f5f5f5;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-toggle {
    display: flex !important;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin: 0;
    gap: 4px;
    z-index: 1001;
    flex-shrink: 0;
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-toggle .bar {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    background: #0c0f14;
    border-top: 1px solid #20232b;
    list-style: none;
    flex-direction: column;
    padding: 0;
    margin: 0;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 10004;  /* Just below nav (10005), above intro (10000) */
}

.nav-links.open {
    display: flex !important;
}

.nav-links li {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #161b22;
}

.nav-links li a {
    display: block;
    padding: 14px 20px;
    color: #f5f5f5;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
}

.nav-links li a:hover {
    background: none;
    color: #f6a623;
}

.nav-links li a.active {
    background: none;
    color: #f6a623;
    font-weight: 600;
}

.admin-link {
    color: #f39c12 !important;
    font-weight: 600 !important;
}

.admin-link:hover {
    background: rgba(243, 156, 18, 0.15) !important;
    color: #f39c12 !important;
}

/* DESKTOP */
@media (min-width: 901px) {
    body {
        padding-top: 56px;
    }

    .nav-container {
        height: 56px;
    }

    .nav-toggle {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        position: static;
        top: auto;
        right: auto;
        width: auto;
        background: none;
        border: none;
        border-top: none;
        max-height: none;
        overflow: visible;
        flex-direction: row;
        gap: 26px;
        padding: 0;
        margin: 0;
    }

    .nav-links li {
        border: none;
    }

    .nav-links li a {
        display: inline-block;
        padding: 0;
        border: none;
        white-space: nowrap;
    }

    .nav-links li a:hover {
        background: none;
    }

    .nav-links li a.active {
        background: none;
        border: none;
        color: #f6a623;
        padding: 0;
    }

    .admin-link {
        color: #f39c12 !important;
        background: rgba(255, 223, 100, 0.08);
        border-radius: 8px;
        padding: 6px 14px !important;
        margin-left: 8px;
        font-weight: 700 !important;
        box-shadow: 0 2px 12px #f39c1233;
        display: inline-block;
    }

    .admin-link:hover {
        background: #f39c12 !important;
        color: #18181f !important;
    }
}
