/**
 * assets/css/components/header_nav.css
 * DropX Prime System - Fejléc, Kereső, Navigáció, Mobil Akciósáv és Alsó App Navigáció
 *
 * Tartalom:
 * 1. Sticky Fejléc konténer és 3 zónás elrendezés (.sticky-header-wrapper, .desktop-header)
 * 2. Logó dizájn, kék aláhúzás mentesítés és kompakt illeszkedés (.logo-wrapper, .logo-glitch)
 * 3. Integrált Asztali Fejléckereső (.header-integrated-search)
 * 4. Asztali Főnavigáció (.desktop-nav)
 * 5. Dedikált Mobil Akciósáv (.mobile-header-actions-bar - BP, Téma, Admin)
 * 6. Asztali Almenü sáv (.landing-submenu - Javított Z-index rétegződéssel)
 * 7. Reszponzív nézetek és Mobil alsó sáv (.mobile-bottom-nav, .mob-nav-avatar)
 *
 * JAVÍTÁSOK (V11.0):
 * - Javítva a Z-index rétegződés: a .desktop-header prioritása megnövelve (z-index: 1050),
 *   így az almenü soha többé nem takarja ki a lenyíló értesítéseket vagy a profil menüt!
 * - Szigorúan 0 db szabályt tartalmaz a 0. szabályzatnak megfelelően.
 */

/* ==========================================================================
   1. STICKY FEJLÉC KONTÉNER ÉS 3 ZÓNÁS ELRENDEZÉS
   ========================================================================== */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    overflow: visible;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
}

body.light-mode .sticky-header-wrapper {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.desktop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px;
    background: rgba(15, 12, 10, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--color-border-gold);
    position: relative;
    z-index: 1050; /* Magasabb z-index az almenü feletti dropdown megjelenítéshez */
    gap: 15px;
    overflow: visible;
}

body.light-mode .desktop-header {
    background: rgba(245, 242, 236, 0.96);
    border-bottom: 1px solid rgba(179, 107, 0, 0.3);
}

.header-left-zone {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-right-zone {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    justify-content: flex-end;
    position: relative;
    z-index: 1060;
}

/* ==========================================================================
   2. LOGÓ DIZÁJN ÉS CYBERPUNK GLITCH (SZŰKÍTETT 8PX TÁVOLSÁGGAL)
   ========================================================================== */
.logo-wrapper-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: none;
    outline: none;
}

.logo-wrapper-link:hover,
.logo-wrapper-link:focus,
.logo-wrapper-link:active {
    text-decoration: none;
    border: none;
    outline: none;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Tömör, esztétikus 8px rés az ikon és a felirat között */
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--color-gold-glow));
    display: block;
}

body.light-mode .logo-img {
    filter: drop-shadow(0 0 8px rgba(179, 107, 0, 0.3));
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    border: none;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1.5px;
    line-height: 1;
    text-decoration: none;
    border: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.light-mode .logo-main {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-main span {
    color: var(--color-gold);
    text-shadow: 0 0 10px var(--color-gold-glow);
}

.logo-glitch {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 3px;
    text-decoration: none;
    border: none;
    animation: hard-glitch 2s infinite steps(1);
}

@keyframes hard-glitch {
    0% {
        transform: translate(0);
        text-shadow: none;
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
    5% {
        transform: translate(-3px, 1px);
        text-shadow: 2px 0 #ffaa00, -2px 0 #ff4400;
        clip-path: inset(20% 0 80% 0);
    }
    10% {
        transform: translate(3px, -2px);
        text-shadow: -2px 0 #ffaa00, 2px 0 #ff4400;
        clip-path: inset(60% 0 10% 0);
        opacity: 0.8;
    }
    15% {
        transform: translate(0);
        text-shadow: none;
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
    50% {
        transform: translate(0);
        text-shadow: none;
        clip-path: inset(0 0 0 0);
    }
    52% {
        transform: translate(4px, 2px) scale(1.05);
        text-shadow: 3px 0 #ffaa00, -3px 0 #ff4400;
        clip-path: inset(10% 0 40% 0);
    }
    54% {
        transform: translate(-4px, -2px) scale(0.95);
        text-shadow: -3px 0 #ffaa00, 3px 0 #ff4400;
        clip-path: inset(80% 0 5% 0);
    }
    56% {
        transform: translate(0);
        text-shadow: none;
        clip-path: inset(0 0 0 0);
    }
    100% {
        transform: translate(0);
        text-shadow: none;
        clip-path: inset(0 0 0 0);
    }
}

/* ==========================================================================
   3. INTEGRÁLT ASZTALI FEJLÉCKERESŐ (FEDÉSMENTES BELSŐ PADDING)
   ========================================================================== */
.header-integrated-search {
    position: relative;
    width: 210px;
}

.header-integrated-search .search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-integrated-search .search-input-container .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--color-gold);
    pointer-events: none;
    display: block;
    z-index: 5;
    filter: drop-shadow(0 0 3px var(--color-gold-glow));
}

.header-integrated-search .search-input-container input,
.desktop-header .header-integrated-search input {
    width: 100%;
    height: 34px;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 14px;
    padding-left: 42px; /* Nem ér össze a nagyító ikonnal */
    background: rgba(10, 8, 6, 0.95);
    border: 1px solid var(--color-border-gold);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 
        0 0 10px rgba(229, 158, 0, 0.15), 
        inset 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

body.light-mode .header-integrated-search .search-input-container input {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(179, 107, 0, 0.4);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    color: var(--text-light);
}

.header-integrated-search .search-input-container input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.header-integrated-search .search-input-container input:focus {
    border-color: #ffb81c;
    box-shadow: 
        0 0 15px var(--color-gold-glow), 
        inset 0 1px 4px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 1);
}

/* ==========================================================================
   4. ASZTALI FŐNAVIGÁCIÓ (.desktop-nav)
   ========================================================================== */
.desktop-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.desktop-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.25s ease;
    padding: 5px 12px;
    border-radius: 4px;
}

.desktop-nav a i,
.desktop-nav a svg {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.desktop-nav a span {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    color: var(--text-muted);
    line-height: 1;
    transition: color 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--color-gold);
    background: rgba(229, 158, 0, 0.06);
}

.desktop-nav a.active i,
.desktop-nav a.active svg,
.desktop-nav a:hover i,
.desktop-nav a:hover svg {
    color: var(--color-gold);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px var(--color-gold-glow));
}

.desktop-nav a.active span,
.desktop-nav a.hover span {
    color: var(--color-gold);
    text-shadow: 0 0 8px var(--color-gold-glow);
}

/* Vendég belépés gomb a fejlécben */
.nav-auth-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(229, 158, 0, 0.12);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-auth-trigger:hover {
    background: var(--color-gold);
    color: #000000;
    box-shadow: 0 0 15px var(--color-gold-glow);
}

/* ==========================================================================
   5. DEDIKÁLT MOBIL AKCIÓSÁV (.mobile-header-actions-bar)
   ========================================================================== */
.mobile-header-actions-bar {
    display: none; /* Asztalon rejtve */
}

/* ==========================================================================
   6. ASZTALI ALMENÜ SÁV (.landing-submenu - ALACSONYABB Z-INDEX-SZEL)
   ========================================================================== */
.landing-submenu {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 8px 14px;
    background: rgba(10, 8, 6, 0.96);
    border-bottom: 1px solid var(--color-border-subtle);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1; /* Alacsonyabb réteg a felső fejléc dropdownjaihoz képest */
}

body.light-mode .landing-submenu {
    background: rgba(235, 230, 220, 0.95);
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.03);
}

.landing-submenu a {
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 4px;
}

.landing-submenu a:hover,
.landing-submenu a.active {
    color: var(--color-gold);
    background: rgba(229, 158, 0, 0.08);
    text-shadow: 0 0 8px var(--color-gold-glow);
}

.mobile-search-wrapper {
    display: none;
}

/* ==========================================================================
   7. RESZPONZÍV NÉZETEK ÉS MOBIL ALSÓ MENÜ
   ========================================================================== */
@media (max-width: 1100px) {
    .header-integrated-search {
        width: 160px;
    }

    .desktop-nav {
        gap: 6px;
    }

    .desktop-nav a {
        padding: 4px 6px;
    }
}

@media (max-width: 880px) {
    .header-integrated-search {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-nav,
    .desktop-only-submenu {
        display: none;
    }

    .sticky-header-wrapper {
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .desktop-header {
        padding: 8px 12px;
        gap: 10px;
    }

    .logo-wrapper,
    .logo-text-block {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .logo-img {
        height: 28px;
    }

    .logo-main {
        font-size: 1.1rem;
    }

    .logo-glitch {
        font-size: 0.5rem;
        margin-top: 1px;
    }

    .desktop-header .header-right-zone {
        display: none;
    }

    .mobile-search-wrapper {
        display: block;
        flex: 1;
        margin: 0 6px;
        max-width: 200px;
        position: relative;
    }

    .mobile-search-wrapper .search-input-container {
        position: relative;
        display: flex;
        align-items: center;
    }

    .mobile-search-wrapper .search-input-container .search-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        color: var(--color-gold);
        pointer-events: none;
        display: block;
        z-index: 5;
    }

    .mobile-search-wrapper .search-input-container input {
        width: 100%;
        height: 28px;
        padding-top: 0;
        padding-bottom: 0;
        padding-right: 10px;
        padding-left: 30px;
        background: rgba(10, 8, 6, 0.95);
        border: 1px solid var(--color-border-gold);
        border-radius: 50px;
        color: var(--text-light);
        font-size: 0.85rem;
        font-weight: 600;
        box-shadow: 
            0 0 10px rgba(229, 158, 0, 0.2), 
            inset 0 1px 3px rgba(0, 0, 0, 0.8);
        box-sizing: border-box;
    }

    /* Mobilos Akciósáv a fejléc alatt */
    .mobile-header-actions-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 12px;
        background: rgba(15, 12, 10, 0.98);
        border-bottom: 1px solid var(--color-border-subtle);
    }

    .mobile-header-actions-bar .header-point-bubble {
        padding: 3px 10px;
        font-size: 0.82rem;
    }

    .mobile-actions-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-actions-right .header-icon-btn {
        width: 30px;
        height: 30px;
    }

    .mobile-actions-right .header-icon-btn svg,
    .mobile-actions-right .header-icon-btn i {
        width: 14px;
        height: 14px;
    }

    /* Mobil Alsó Navigációs Sáv és Felhasználói Avatar */
    .mobile-bottom-nav {
        display: flex;
        flex-direction: row;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(var(--app-nav-height-mobile) + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(15, 12, 10, 0.98);
        border-top: 1px solid var(--color-border-gold);
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.9);
        z-index: 9999;
        justify-content: space-around;
        align-items: stretch;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    body.light-mode .mobile-bottom-nav {
        background: rgba(245, 242, 236, 0.98);
        border-top: 1px solid rgba(179, 107, 0, 0.3);
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.08);
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: var(--app-nav-height-mobile);
        text-decoration: none;
        color: var(--color-silver);
        transition: all 0.25s ease;
        cursor: pointer;
        padding: 2px;
    }

    .mobile-bottom-nav .nav-item svg,
    .mobile-bottom-nav .nav-item i {
        display: block;
        width: 18px;
        height: 18px;
        margin: 0 auto 2px auto;
        color: var(--color-silver);
        transition: all 0.25s ease;
    }

    .mob-icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mob-avatar-wrap {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 1px solid var(--color-gold);
        overflow: hidden;
        margin-bottom: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 6px var(--color-gold-glow);
    }

    .mob-nav-avatar {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-bottom-nav .nav-item span {
        display: block;
        font-size: 0.62rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-align: center;
        color: var(--color-silver);
        line-height: 1;
        transition: color 0.25s ease;
    }

    .mobile-bottom-nav .nav-item.active svg,
    .mobile-bottom-nav .nav-item.active i,
    .mobile-bottom-nav .nav-item:hover svg,
    .mobile-bottom-nav .nav-item:hover i {
        color: var(--color-gold);
        transform: translateY(-2px) scale(1.1);
        filter: drop-shadow(0 0 8px var(--color-gold-glow));
    }

    .mobile-bottom-nav .nav-item.active span,
    .mobile-bottom-nav .nav-item:hover span {
        color: var(--color-gold);
        text-shadow: 0 0 8px var(--color-gold-glow);
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* ==========================================================================
   PREMIUM HEADER / NAVIGATION
   ========================================================================== */
.sticky-header-wrapper {
    z-index: 1000;
    isolation: isolate;
    background: transparent;
}

.desktop-header {
    min-height: 56px;
    background: linear-gradient(180deg, rgba(13,15,18,.97), rgba(8,10,12,.96));
    border-bottom-color: var(--dx-line-soft);
    box-shadow: inset 0 -1px 0 rgba(214,165,43,.07);
}

.header-right-zone {
    z-index: 1060;
}

.logo-img {
    filter: drop-shadow(0 0 5px rgba(214,165,43,.24)) drop-shadow(0 0 14px rgba(214,165,43,.09));
    transition: filter .22s ease, transform .22s ease;
}

.logo-wrapper-link:hover .logo-img {
    filter: drop-shadow(0 0 7px rgba(242,202,99,.50)) drop-shadow(0 0 22px rgba(214,165,43,.20));
    transform: translateY(-1px);
}

.logo-main {
    font-weight: 600;
}

.logo-glitch {
    font-weight: 600;
}

.desktop-nav {
    gap: 6px;
}

.desktop-nav a {
    font-weight: 400;
    letter-spacing: .75px;
    border: 1px solid transparent;
    border-radius: var(--dx-radius-md);
}

.desktop-nav a i,
.desktop-nav a svg {
    stroke-width: 1.35;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--dx-silver-hi);
    background: linear-gradient(180deg, rgba(214,165,43,.10), rgba(214,165,43,.025));
    border-color: rgba(214,165,43,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 24px rgba(0,0,0,.18);
}

.desktop-nav a.active::after {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    bottom: -7px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dx-gold), transparent);
    box-shadow: 0 0 10px rgba(214,165,43,.35);
}

.landing-submenu {
    position: relative;
    z-index: 1040;
    min-height: 40px;
    gap: 22px;
    padding: 6px 14px;
    background: linear-gradient(180deg, rgba(7,9,11,.985), rgba(10,12,14,.965));
    border-bottom-color: var(--dx-line-soft);
    box-shadow: 0 10px 24px rgba(0,0,0,.34), inset 0 -1px 0 rgba(214,165,43,.08);
}

.landing-submenu a {
    font-weight: 400;
    letter-spacing: .75px;
    border-radius: var(--dx-radius-sm);
    color: #8b949e;
}

.landing-submenu a::after,
.landing-submenu a.active::after,
.landing-submenu a.active::before {
    content: none;
    display: none;
}

.landing-submenu a:hover,
.landing-submenu a.active {
    color: var(--dx-silver-hi);
    background: linear-gradient(180deg, rgba(214,165,43,.13), rgba(214,165,43,.035));
    border: 1px solid rgba(214,165,43,.20);
    box-shadow: 0 0 18px rgba(214,165,43,.07), inset 0 1px 0 rgba(255,255,255,.05);
}

.header-right-zone > * {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.header-right-zone > button:hover,
.header-right-zone > a:hover,
.header-right-zone > div:hover {
    box-shadow: 0 0 16px rgba(214,165,43,.12), inset 0 1px 0 rgba(255,255,255,.06);
}

.header-right-zone svg {
    filter: drop-shadow(0 0 3px rgba(214,165,43,.10));
    stroke-width: 1.45;
}

body.light-mode .desktop-header {
    background: linear-gradient(180deg, #f8fafb, #e9edef);
    border-bottom-color: rgba(57,68,78,.12);
    box-shadow: inset 0 -1px 0 rgba(168,117,18,.16), 0 8px 22px rgba(40,50,60,.08);
}

body.light-mode .desktop-header .logo-main {
    color: #20272e;
}

body.light-mode .desktop-header .logo-glitch,
body.light-mode .desktop-nav a.active,
body.light-mode .landing-submenu a.active {
    color: var(--dx-gold);
}

body.light-mode .desktop-nav a {
    color: #6d7882;
}

body.light-mode .desktop-nav a:hover,
body.light-mode .desktop-nav a.active {
    background: rgba(168,117,18,.07);
    border-color: rgba(168,117,18,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

body.light-mode .desktop-nav a i,
body.light-mode .desktop-nav a svg,
body.light-mode .landing-submenu svg,
body.light-mode .header-right-zone svg {
    color: #68737d;
    filter: none;
}

body.light-mode .landing-submenu {
    background: linear-gradient(180deg, #eef1f3, #e4e8eb);
    border-bottom-color: rgba(57,68,78,.12);
    box-shadow: 0 8px 20px rgba(45,55,65,.08), inset 0 -1px 0 rgba(168,117,18,.12);
}

body.light-mode .landing-submenu a {
    color: #69747e;
}

body.light-mode .landing-submenu a:hover,
body.light-mode .landing-submenu a.active {
    color: #20272e;
    background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(239,242,244,.76));
    border-color: rgba(168,117,18,.28);
    box-shadow: 0 0 14px rgba(168,117,18,.08), inset 0 1px 0 #fff;
}

@media (max-width: 700px) {
    .desktop-header {
        min-height: 54px;
    }

    .landing-submenu {
        min-height: 38px;
        gap: 4px;
        padding: 5px 8px;
    }

    .landing-submenu a {
        padding: 6px 9px;
        font-size: .72rem;
    }
}

/* ==========================================================================\n   THEME-SAFE STICKY HEADER BOUNDARY\n   Prevent page content from visually bleeding through the submenu while\n   scrolling. This is intentionally kept in the header component.\n   ========================================================================== */
.sticky-header-wrapper {
    isolation: isolate;
}

.sticky-header-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--color-border-gold), transparent);
    box-shadow: 0 1px 12px var(--color-gold-glow);
}

.landing-submenu {
    position: relative;
    isolation: isolate;
    background-color: var(--color-bg-deep);
}

/* ========================================================================== 
   RESTORED MEGA NAVIGATION
   A menüponthoz tartozó almenük lebegő panelként jelennek meg,
   és soha nem kerülnek a dokumentum normál flow-jába.
   ========================================================================== */
.nav-mega-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-mega-container > .nav-mega-trigger {
    position: relative;
    z-index: 2;
}

.nav-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(760px, calc(100vw - 40px));
    max-height: min(70vh, 620px);
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 10px;
    padding: 14px;
    box-sizing: border-box;
    background: rgba(246, 240, 229, 0.98);
    border: 1px solid rgba(179, 107, 0, 0.28);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(42, 28, 15, 0.24), inset 0 1px 0 rgba(255,255,255,.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transform-origin: top center;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 1200;
}

/* A menü és a trigger között nincs "egércsapda": a panel enyhén lelóg,
   de a hover zóna folyamatos marad. */
.nav-mega-container::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    top: 100%;
    height: 14px;
    z-index: 1199;
}

.nav-mega-container:hover > .nav-mega-menu,
.nav-mega-container:focus-within > .nav-mega-menu,
.nav-mega-container.is-open > .nav-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 8px);
}

.nav-mega-column {
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(179,107,0,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.28);
}

.nav-mega-column-title,
.nav-mega-column-title-static {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    color: #3a2b20;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    text-decoration: none;
}

.nav-mega-column-title i,
.nav-mega-column-title svg,
.nav-mega-column-title-static i,
.nav-mega-column-title-static svg {
    width: 16px;
    height: 16px;
    color: var(--color-gold);
    stroke: currentColor;
    flex: 0 0 auto;
}

/* Egy almenüpont: ikon + cím egy sorban, magyarázat külön sorban. */
.nav-mega-item {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    padding: 9px !important;
    margin-top: 2px;
    border-radius: 8px !important;
    color: #55483d !important;
    background: transparent !important;
    text-decoration: none;
    text-align: left !important;
}

.nav-mega-item:hover {
    background: rgba(214,165,43,.10) !important;
    color: #2f241c !important;
}

.nav-mega-item-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    width: 100%;
    text-align: left !important;
}

.nav-mega-item-copy strong {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    font-size: .76rem;
    line-height: 1.15;
    letter-spacing: .35px;
    text-align: left !important;
}

.nav-mega-item-copy strong svg,
.nav-mega-item-copy strong i {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--color-gold) !important;
    stroke: currentColor;
    margin: 0 !important;
}

.nav-mega-item-copy small {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    gap: 5px;
    padding-left: 23px;
    font-size: .64rem;
    line-height: 1.3;
    color: #756455;
    text-transform: none;
    letter-spacing: 0;
    text-align: left !important;
    font-style: italic;
}

.nav-mega-item-copy small svg,
.nav-mega-item-copy small i {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    margin-top: 1px;
    color: var(--color-gold) !important;
    stroke: currentColor;
    margin: 0 !important;
}

body:not(.light-mode) .nav-mega-menu {
    background: rgba(18, 16, 14, .985);
    border-color: rgba(214,165,43,.30);
    box-shadow: 0 18px 45px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.055);
}

body:not(.light-mode) .nav-mega-column {
    background: rgba(255,255,255,.018);
    border-color: rgba(214,165,43,.16);
}

body:not(.light-mode) .nav-mega-column-title,
body:not(.light-mode) .nav-mega-column-title-static,
body:not(.light-mode) .nav-mega-item {
    color: #eee6d9 !important;
}

body:not(.light-mode) .nav-mega-item:hover {
    background: rgba(214,165,43,.085) !important;
    color: #fff5df !important;
}

body:not(.light-mode) .nav-mega-item-copy strong {
    color: #f0e8dc !important;
}

body:not(.light-mode) .nav-mega-item-copy strong svg,
body:not(.light-mode) .nav-mega-item-copy strong i,
body:not(.light-mode) .nav-mega-item-copy small svg,
body:not(.light-mode) .nav-mega-item-copy small i {
    color: #d6a52b !important;
    stroke: currentColor !important;
}

body:not(.light-mode) .nav-mega-item-copy small {
    color: #bdaF9c !important;
    text-align: left !important;
    justify-content: flex-start !important;
    font-style: italic !important;
}

body.light-mode .nav-mega-item-copy small {
    color: #756455 !important;
    text-align: left !important;
    justify-content: flex-start !important;
    font-style: italic !important;
}

@media (max-width: 1100px) {
    .nav-mega-menu {
        width: min(620px, calc(100vw - 30px));
    }
}

@media (max-width: 768px) {
    .nav-mega-container {
        display: none;
    }
}

/* MEGA MENU FINAL ALIGNMENT
   A globális .desktop-nav a span szabály ne örökítse át a mega-menüre
   a középre igazítást és a félkövér leírást. */
.nav-mega-menu .nav-mega-item-copy,
.nav-mega-menu .nav-mega-item-copy strong,
.nav-mega-menu .nav-mega-item-copy small {
    text-align: left !important;
    align-items: flex-start;
    justify-content: flex-start;
}

.nav-mega-menu .nav-mega-item-copy strong {
    font-weight: 700;
}

.nav-mega-menu .nav-mega-item-copy strong > span {
    display: inline;
    width: auto;
    padding: 0;
    margin: 0;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: left !important;
    text-transform: uppercase;
    color: inherit;
}

.nav-mega-menu .nav-mega-item-copy small {
    font-size: .70rem;
    font-weight: 400 !important;
    line-height: 1.28;
    font-style: italic !important;
    text-transform: none;
    letter-spacing: 0;
    color: #756455;
}

.nav-mega-menu .nav-mega-item-copy small > span {
    display: inline;
    width: auto;
    padding: 0;
    margin: 0;
    font-size: inherit;
    font-weight: 400 !important;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: left !important;
    text-transform: none;
    font-style: italic !important;
    color: inherit;
}

body:not(.light-mode) .nav-mega-menu .nav-mega-item-copy small {
    color: #b9aa96 !important;
    font-weight: 400 !important;
    font-style: italic !important;
}

body.light-mode .nav-mega-menu .nav-mega-item-copy small {
    color: #756455 !important;
    font-weight: 400 !important;
    font-style: italic !important;
}

/* ==========================================================================
   FINAL SUBMENU HOVER STABILITY FIX
   A hover állapot nem módosíthatja az elem geometriai méretét, így az
   almenü és az oldal tartalma nem tud 1px-et sem megugrani border-váltáskor.
   ========================================================================== */
.landing-submenu a {
    box-sizing: border-box;
    border: 1px solid transparent;
}

.landing-submenu a:hover,
.landing-submenu a.active {
    border-color: rgba(214, 165, 43, .20);
}

/* ============================================================================
   MOBILE APP NAV V2 — HÍRFOLYAM / CSOPORTOK / WEBSTÚDIÓ / BLOG / PROFIL
   ============================================================================ */
.mobile-webstudio-overlay,
.mobile-webstudio-drawer {
    display: none;
}

@media (max-width: 700px) {
    .mobile-actions-right {
        gap: 6px;
    }

    .mobile-actions-right .mobile-header-action-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        min-width: 34px;
        padding: 0;
        border: 1px solid rgba(149, 102, 28, .30);
        border-radius: 50%;
        color: var(--theme-text, #302820);
        background: color-mix(in srgb, var(--theme-surface, #e9dece) 82%, transparent);
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
    }

    .mobile-actions-right .mobile-header-action-link svg,
    .mobile-actions-right .mobile-header-action-link i {
        width: 15px;
        height: 15px;
    }

    .mobile-actions-right .mobile-header-action-link .icon-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 15px;
        height: 15px;
        padding: 0 4px;
        border-radius: 999px;
        font-size: .52rem;
        line-height: 15px;
        text-align: center;
        border: 1px solid var(--theme-surface, #e9dece);
    }

    .mobile-actions-right .mobile-global-chat-action {
        color: var(--theme-gold, #95661c);
    }

    .mobile-actions-right .mobile-notification-action {
        color: #a64236;
    }

    /* A mobil fejlécen nincs külön Üzenetek popup; a két gyorsikon közvetlen
       Notification / Global Chat felületre vezet. */
    #message-dropdown-trigger {
        display: none;
    }

    .mobile-webstudio-trigger {
        appearance: none;
        -webkit-appearance: none;
        border: 0;
        margin: 0;
        font: inherit;
        background: transparent;
    }

    .mobile-webstudio-trigger.is-drawer-open svg,
    .mobile-webstudio-trigger.is-drawer-open i {
        color: var(--color-gold);
        filter: drop-shadow(0 0 8px var(--color-gold-glow));
    }

    .mobile-webstudio-overlay {
        position: fixed;
        inset: 0;
        z-index: 14000;
        display: block;
        background: rgba(4, 5, 6, .54);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .mobile-webstudio-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-webstudio-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 14010;
        display: flex;
        flex-direction: column;
        width: min(92vw, 520px);
        max-width: 100%;
        background: color-mix(in srgb, var(--theme-surface, #e9dece) 96%, transparent);
        border-left: 1px solid var(--theme-line, rgba(149, 102, 28, .30));
        box-shadow: -22px 0 60px rgba(0, 0, 0, .24);
        backdrop-filter: blur(24px) saturate(1.08);
        -webkit-backdrop-filter: blur(24px) saturate(1.08);
        transform: translateX(102%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility .32s ease;
        overflow: hidden;
    }

    .mobile-webstudio-drawer.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-webstudio-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: max(16px, env(safe-area-inset-top, 0px) + 12px) 16px 14px;
        border-bottom: 1px solid var(--theme-line, rgba(149, 102, 28, .22));
        background: color-mix(in srgb, var(--theme-surface-2, #d8c8b3) 72%, transparent);
    }

    .mobile-webstudio-drawer-head > div {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mobile-webstudio-kicker {
        color: var(--theme-gold, #95661c);
        font: 700 .58rem var(--theme-font-mono, monospace);
        letter-spacing: .18em;
        text-transform: uppercase;
    }

    .mobile-webstudio-drawer-head strong {
        margin-top: 2px;
        color: var(--theme-text-strong, #302820);
        font: 700 1.18rem var(--theme-font-body, sans-serif);
    }

    .mobile-webstudio-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        border: 1px solid var(--theme-line, rgba(149, 102, 28, .26));
        border-radius: 50%;
        background: color-mix(in srgb, var(--theme-surface, #e9dece) 88%, transparent);
        color: var(--theme-text, #302820);
        cursor: pointer;
    }

    .mobile-webstudio-close svg {
        width: 17px;
        height: 17px;
    }

    .mobile-webstudio-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .mobile-webstudio-column {
        min-width: 0;
        padding: 10px;
        border: 1px solid var(--theme-line, rgba(149, 102, 28, .20));
        border-radius: 16px;
        background: color-mix(in srgb, var(--theme-surface-2, #d8c8b3) 54%, transparent);
    }

    .mobile-webstudio-column-title {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 2px 2px 9px;
        color: var(--theme-gold, #95661c);
        font: 700 .70rem var(--theme-font-mono, monospace);
        letter-spacing: .08em;
        text-transform: uppercase;
        border-bottom: 1px solid var(--theme-line, rgba(149, 102, 28, .16));
    }

    .mobile-webstudio-column-title svg {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
    }

    .mobile-webstudio-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding-top: 7px;
    }

    .mobile-webstudio-link {
        display: grid;
        grid-template-columns: 27px minmax(0, 1fr);
        align-items: start;
        gap: 7px;
        padding: 8px 5px;
        border-radius: 10px;
        color: var(--theme-text, #302820);
        text-decoration: none;
        transition: background .18s ease, transform .18s ease;
    }

    .mobile-webstudio-link:hover,
    .mobile-webstudio-link:focus-visible {
        background: color-mix(in srgb, var(--theme-gold, #95661c) 8%, transparent);
        transform: translateX(2px);
    }

    .mobile-webstudio-link-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 27px;
        height: 27px;
        border-radius: 9px;
        background: color-mix(in srgb, var(--theme-gold, #95661c) 9%, transparent);
        color: var(--theme-gold, #95661c);
    }

    .mobile-webstudio-link-icon svg {
        width: 13px;
        height: 13px;
    }

    .mobile-webstudio-link-copy {
        min-width: 0;
    }

    .mobile-webstudio-link-copy strong {
        display: block;
        color: var(--theme-text-strong, #302820);
        font-size: .72rem;
        line-height: 1.2;
    }

    .mobile-webstudio-link-copy small {
        display: block;
        margin-top: 3px;
        color: var(--theme-text-muted, #6b5b4b);
        font-size: .58rem;
        line-height: 1.28;
    }

    /* Mobilon a popup chat fizikailag és interakciósan is tiltva van. */
    .chat-popup-wrapper {
        display: none;
        pointer-events: none;
        visibility: hidden;
    }
}

/* ============================================================================
   PATCH 25 — VIEWPORT FIXED MOBILE HEADER
   A mobil fejléc nem sticky egy belső scroll-containerhez kötve, hanem a
   viewport tetejére rögzített app-bar. A tartalom felső helyét a
   home.mobile.css biztosítja.
   ============================================================================ */
@media (max-width: 768px) {
    .sticky-header-wrapper {
        position: fixed;
        top: 0;
        right: 0;
        bottom: auto;
        left: 0;
        width: 100%;
        margin: 0;
        z-index: 12000;
        box-sizing: border-box;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* ============================================================================
   PATCH 27 — GLOBÁLIS MOBIL APP-BAR + VALÓDI VIEWPORT-KERET
   A fejléc a PHP-ben az .app-containeren kívül él. Így a backdrop-filteres
   alkalmazáskonténer többé nem hoz létre saját containing blockot a fixed
   fejléc számára. A felső helyfoglalás ezért minden oldalon egységes.
   ============================================================================ */
@media (min-width: 769px) {
    .sticky-header-wrapper {
        width: 95%;
        max-width: 1550px;
        margin: 8px auto 0;
    }
}

@media (max-width: 768px) {
    :root {
        --dx-mobile-header-height: 90px;
    }

    html body {
        padding-top: var(--dx-mobile-header-height);
    }

    html body .app-container {
        margin-top: 0;
        padding-top: 0;
    }

    .sticky-header-wrapper {
        position: fixed;
        top: 0;
        right: 0;
        bottom: auto;
        left: 0;
        width: 100%;
        height: var(--dx-mobile-header-height);
        max-height: var(--dx-mobile-header-height);
        margin: 0;
        z-index: 12000;
        box-sizing: border-box;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .sticky-header-wrapper .desktop-header {
        height: 48px;
        min-height: 48px;
        box-sizing: border-box;
    }

    .sticky-header-wrapper .mobile-header-actions-bar {
        height: 42px;
        min-height: 42px;
        box-sizing: border-box;
    }
}

/* ============================================================================
   PATCH 31 — WEBSTÚDIÓ MOBILE DRAWER / DARK APP UI REFINEMENT
   A WebStúdió mobil drawer kizárólag a sötét témában kap erősebb vizuális
   hierarchiát. A PHP/JS menüszerkezet változatlan.
   ============================================================================ */
@media (max-width: 700px) {
    body:not(.light-mode) .mobile-webstudio-drawer {
        width: min(100vw, 520px);
        background: #0b0f13;
        border-left: 1px solid rgba(214, 166, 42, .28);
        box-shadow: -28px 0 70px rgba(0, 0, 0, .62);
        backdrop-filter: blur(28px) saturate(1.08);
        -webkit-backdrop-filter: blur(28px) saturate(1.08);
    }

    body:not(.light-mode) .mobile-webstudio-drawer-head {
        min-height: 62px;
        box-sizing: border-box;
        padding: max(10px, env(safe-area-inset-top, 0px) + 7px) 14px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        background: linear-gradient(180deg, #11161c 0%, #0d1217 100%);
    }

    body:not(.light-mode) .mobile-webstudio-kicker {
        color: #d6a62a;
        font-size: .52rem;
        letter-spacing: .20em;
    }

    body:not(.light-mode) .mobile-webstudio-drawer-head strong {
        margin-top: 1px;
        color: #f2f4f7;
        font-size: 1.12rem;
        line-height: 1.15;
        letter-spacing: .01em;
    }

    body:not(.light-mode) .mobile-webstudio-close {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border: 1px solid rgba(255, 255, 255, .13);
        background: #151b22;
        color: #e7ebef;
        box-shadow: 0 4px 16px rgba(0, 0, 0, .30);
    }

    body:not(.light-mode) .mobile-webstudio-close:active {
        background: #1d252e;
        border-color: rgba(214, 166, 42, .42);
        color: #d6a62a;
    }

    body:not(.light-mode) .mobile-webstudio-columns {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 9px;
        padding: 10px;
        background: #090d11;
        scrollbar-width: thin;
        scrollbar-color: rgba(214, 166, 42, .45) transparent;
    }

    body:not(.light-mode) .mobile-webstudio-columns::-webkit-scrollbar {
        width: 4px;
    }

    body:not(.light-mode) .mobile-webstudio-columns::-webkit-scrollbar-track {
        background: transparent;
    }

    body:not(.light-mode) .mobile-webstudio-columns::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(214, 166, 42, .45);
    }

    body:not(.light-mode) .mobile-webstudio-column {
        padding: 9px;
        border: 1px solid #252d36;
        border-radius: 13px;
        background: linear-gradient(180deg, #11171d 0%, #0e141a 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 8px 22px rgba(0, 0, 0, .20);
    }

    body:not(.light-mode) .mobile-webstudio-column-title {
        min-height: 29px;
        box-sizing: border-box;
        gap: 6px;
        padding: 1px 2px 8px;
        color: #d6a62a;
        border-bottom: 1px solid rgba(214, 166, 42, .18);
        font-size: .62rem;
        letter-spacing: .07em;
    }

    body:not(.light-mode) .mobile-webstudio-column-title svg {
        width: 13px;
        height: 13px;
        color: #e0b33c;
        filter: drop-shadow(0 0 5px rgba(214, 166, 42, .18));
    }

    body:not(.light-mode) .mobile-webstudio-links {
        gap: 3px;
        padding-top: 6px;
    }

    body:not(.light-mode) .mobile-webstudio-link {
        grid-template-columns: 29px minmax(0, 1fr);
        gap: 7px;
        min-height: 54px;
        box-sizing: border-box;
        padding: 7px 5px;
        border: 1px solid transparent;
        border-radius: 10px;
        color: #e8edf2;
        transition: background .16s ease, border-color .16s ease, transform .16s ease;
    }

    body:not(.light-mode) .mobile-webstudio-link:hover,
    body:not(.light-mode) .mobile-webstudio-link:focus-visible {
        background: rgba(214, 166, 42, .065);
        border-color: rgba(214, 166, 42, .16);
        transform: none;
    }

    body:not(.light-mode) .mobile-webstudio-link:active {
        background: rgba(214, 166, 42, .11);
        border-color: rgba(214, 166, 42, .25);
    }

    body:not(.light-mode) .mobile-webstudio-link-icon {
        width: 29px;
        height: 29px;
        border: 1px solid rgba(214, 166, 42, .14);
        border-radius: 9px;
        background: #181f27;
        color: #d6a62a;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    }

    body:not(.light-mode) .mobile-webstudio-link-icon svg {
        width: 13px;
        height: 13px;
    }

    body:not(.light-mode) .mobile-webstudio-link-copy strong {
        color: #edf1f5;
        font-size: .68rem;
        font-weight: 650;
        line-height: 1.22;
        letter-spacing: .005em;
    }

    body:not(.light-mode) .mobile-webstudio-link-copy small {
        margin-top: 3px;
        color: #8f9aa6;
        font-size: .55rem;
        line-height: 1.30;
    }
}

@media (max-width: 360px) {
    body:not(.light-mode) .mobile-webstudio-columns {
        gap: 7px;
        padding: 8px;
    }

    body:not(.light-mode) .mobile-webstudio-column {
        padding: 8px;
    }

    body:not(.light-mode) .mobile-webstudio-link {
        grid-template-columns: 27px minmax(0, 1fr);
        gap: 6px;
        padding-inline: 4px;
    }

    body:not(.light-mode) .mobile-webstudio-link-icon {
        width: 27px;
        height: 27px;
    }

    body:not(.light-mode) .mobile-webstudio-link-copy strong {
        font-size: .64rem;
    }

    body:not(.light-mode) .mobile-webstudio-link-copy small {
        font-size: .53rem;
    }
}

/* ============================================================================
   PATCH 32 — WEBSTÚDIÓ DRAWER GEOMETRY / LIGHT + DARK / GESTURE READY
   A drawer nem takarja el a mobil alsó navigációt.
   A kategóriák egymás alatt vannak, a bennük lévő elemek két oszlopban.
   Ugyanez a geometria Light és Dark témában is érvényes.
   ============================================================================ */
@media (max-width: 700px) {
    .mobile-webstudio-overlay {
        inset: 0 0 calc(var(--app-nav-height-mobile, 64px) + env(safe-area-inset-bottom, 0px)) 0;
        z-index: 11990;
    }

    .mobile-webstudio-drawer {
        top: 0;
        right: 0;
        bottom: calc(var(--app-nav-height-mobile, 64px) + env(safe-area-inset-bottom, 0px));
        z-index: 12010;
        width: min(92vw, 520px);
        max-width: calc(100vw - 8px);
        border-radius: 0 0 0 18px;
        touch-action: pan-y;
        will-change: transform;
    }

    .mobile-webstudio-drawer.is-dragging {
        transition: none;
    }

    .mobile-webstudio-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        overflow-y: auto;
        min-height: 0;
        padding: 10px;
    }

    .mobile-webstudio-column {
        min-width: 0;
    }

    .mobile-webstudio-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 6px;
        row-gap: 4px;
    }

    .mobile-webstudio-link {
        min-width: 0;
    }

    /* A kategóriák között most valódi blokk-hierarchia van. */
    .mobile-webstudio-column-title {
        position: sticky;
        top: 0;
        z-index: 2;
        background: inherit;
    }

    /* ------------------------------------------------------------------------
       LIGHT — ugyanaz az elhelyezkedés, világos saját felületekkel
       ------------------------------------------------------------------------ */
    body.light-mode .mobile-webstudio-overlay {
        background: rgba(35, 29, 22, .30);
    }

    body.light-mode .mobile-webstudio-drawer {
        background: #eee7dc;
        border-left-color: rgba(149, 102, 28, .24);
        box-shadow: -24px 0 60px rgba(67, 49, 28, .18);
        color: #2f281f;
    }

    body.light-mode .mobile-webstudio-drawer-head {
        background: linear-gradient(180deg, #f4eee5 0%, #ece3d6 100%);
        border-bottom-color: rgba(118, 88, 52, .18);
    }

    body.light-mode .mobile-webstudio-drawer-head strong {
        color: #2d261e;
    }

    body.light-mode .mobile-webstudio-close {
        background: #f5efe7;
        border-color: rgba(118, 88, 52, .22);
        color: #3b3229;
        box-shadow: 0 4px 14px rgba(63, 44, 23, .10);
    }

    body.light-mode .mobile-webstudio-columns {
        background: #e8dfd2;
        scrollbar-color: rgba(149, 102, 28, .35) transparent;
    }

    body.light-mode .mobile-webstudio-column {
        border-color: rgba(118, 88, 52, .22);
        background: linear-gradient(180deg, #f2ece3 0%, #ebe3d8 100%);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 8px 22px rgba(70, 50, 30, .08);
    }

    body.light-mode .mobile-webstudio-column-title {
        color: #855916;
        border-bottom-color: rgba(149, 102, 28, .20);
        background: #f2ece3;
    }

    body.light-mode .mobile-webstudio-link {
        color: #352d25;
        border-color: transparent;
    }

    body.light-mode .mobile-webstudio-link:hover,
    body.light-mode .mobile-webstudio-link:focus-visible {
        background: rgba(149, 102, 28, .07);
        border-color: rgba(149, 102, 28, .16);
    }

    body.light-mode .mobile-webstudio-link:active {
        background: rgba(149, 102, 28, .11);
        border-color: rgba(149, 102, 28, .22);
    }

    body.light-mode .mobile-webstudio-link-icon {
        background: #eee5d7;
        border-color: rgba(149, 102, 28, .18);
        color: #95661c;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.70);
    }

    body.light-mode .mobile-webstudio-link-copy strong {
        color: #332b23;
    }

    body.light-mode .mobile-webstudio-link-copy small {
        color: #6c6258;
    }

    /* A két kategóriatábla mindig egymás alatt legyen. A sötét téma korábbi,
       erősebb szelektora ezt külön felülírta, ezért itt ugyanazzal a
       specifikussággal rögzítjük a közös mobil elrendezést. */
    body:not(.light-mode) .mobile-webstudio-columns,
    body.light-mode .mobile-webstudio-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    body:not(.light-mode) .mobile-webstudio-links,
    body.light-mode .mobile-webstudio-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 8px;
        row-gap: 5px;
        align-items: start;
    }

    body:not(.light-mode) .mobile-webstudio-link,
    body.light-mode .mobile-webstudio-link {
        min-width: 0;
        min-height: 64px;
        box-sizing: border-box;
        padding: 7px 5px;
    }

    body:not(.light-mode) .mobile-webstudio-link-copy strong,
    body.light-mode .mobile-webstudio-link-copy strong {
        font-size: .67rem;
        line-height: 1.15;
    }

    body:not(.light-mode) .mobile-webstudio-link-copy small,
    body.light-mode .mobile-webstudio-link-copy small {
        margin-top: 2px;
        font-size: .52rem;
        line-height: 1.22;
    }
}

@media (max-width: 360px) {
    .mobile-webstudio-links {
        column-gap: 5px;
    }

    .mobile-webstudio-link {
        grid-template-columns: 27px minmax(0, 1fr);
        gap: 6px;
        padding-inline: 4px;
    }
}


/* ============================================================================
   PATCH 34/35 — WEBSTÚDIÓ MOBILE DRAWER COMPACT 80% / SQUARE EDGE
   - A jobb oldali drawer mobilon a viewport kb. 80%-át foglalja.
   - A kategóriák közötti és a menüpontok közötti függőleges térköz kompaktabb.
   - A két oszlopos menüpont-rács megmarad.
   - A drawer bal oldali élei teljesen szögletesek.
   ============================================================================ */
@media (max-width: 700px) {
    .mobile-webstudio-drawer {
        width: 80vw;
        max-width: 80vw;
        border-radius: 0;
    }

    body:not(.light-mode) .mobile-webstudio-columns,
    body.light-mode .mobile-webstudio-columns {
        gap: 7px;
        padding: 8px;
    }

    body:not(.light-mode) .mobile-webstudio-column,
    body.light-mode .mobile-webstudio-column {
        padding: 8px;
        border-radius: 13px;
    }

    body:not(.light-mode) .mobile-webstudio-links,
    body.light-mode .mobile-webstudio-links {
        column-gap: 6px;
        row-gap: 2px;
    }

    body:not(.light-mode) .mobile-webstudio-link,
    body.light-mode .mobile-webstudio-link {
        min-height: 50px;
        padding: 5px 3px;
        gap: 5px;
    }

    body:not(.light-mode) .mobile-webstudio-link-icon,
    body.light-mode .mobile-webstudio-link-icon {
        width: 25px;
        height: 25px;
        border-radius: 8px;
    }

    body:not(.light-mode) .mobile-webstudio-link-copy strong,
    body.light-mode .mobile-webstudio-link-copy strong {
        font-size: .63rem;
        line-height: 1.12;
    }

    body:not(.light-mode) .mobile-webstudio-link-copy small,
    body.light-mode .mobile-webstudio-link-copy small {
        margin-top: 1px;
        font-size: .48rem;
        line-height: 1.18;
    }

    body:not(.light-mode) .mobile-webstudio-column-title,
    body.light-mode .mobile-webstudio-column-title {
        padding-bottom: 7px;
    }
}

/* ============================================================================
   PATCH 37 — WEBSTÚDIÓ MOBIL TIPOGRÁFIA + ÚJ ÉRTESÍTÉSI PONT
   - A WebStúdió drawer menüpontjainak címe és leírása finoman nagyobb.
   - A főmenü / header többi tipográfiája változatlan.
   - A WebStúdió alsó navigációs gombja jobb felső sarkában arany,
     diszkréten pulzáló értesítési pont jelenik meg.
   ============================================================================ */
@media (max-width: 700px) {
    body:not(.light-mode) .mobile-webstudio-link-copy strong,
    body.light-mode .mobile-webstudio-link-copy strong {
        font-size: .68rem;
        line-height: 1.15;
    }

    body:not(.light-mode) .mobile-webstudio-link-copy small,
    body.light-mode .mobile-webstudio-link-copy small {
        font-size: .53rem;
        line-height: 1.22;
    }

    .mobile-bottom-nav .mobile-webstudio-trigger {
        position: relative;
    }

    .mobile-bottom-nav .mobile-webstudio-trigger::after {
        content: "";
        position: absolute;
        top: 5px;
        right: calc(50% - 19px);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #d8a92e;
        border: 1px solid rgba(12, 15, 19, .95);
        box-shadow:
            0 0 0 1px rgba(216,169,46,.22),
            0 0 7px rgba(216,169,46,.62);
        animation: dxWebstudioNotificationPulse 2.2s ease-in-out infinite;
        pointer-events: none;
        z-index: 4;
    }

    @keyframes dxWebstudioNotificationPulse {
        0%, 100% {
            transform: scale(1);
            opacity: .88;
            box-shadow:
                0 0 0 1px rgba(216,169,46,.22),
                0 0 7px rgba(216,169,46,.62);
        }
        50% {
            transform: scale(1.35);
            opacity: 1;
            box-shadow:
                0 0 0 2px rgba(216,169,46,.10),
                0 0 12px rgba(216,169,46,.92);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-bottom-nav .mobile-webstudio-trigger::after {
        animation: none;
    }
}
