/* ==========================================================
   luxKino — шапка, кнопки, нижнее меню, общий фон
   ========================================================== */

:root {
    --hd-h: 78px;
    --hd-pad: clamp(14px, 3vw, 40px);
    --hd-text: #f3fff0;
    --hd-mute: #9aa79a;
    --hd-g1: #e3ff5c;
    --hd-g2: #8fe82c;
    --hd-g3: #25b94a;
    --hd-grad: linear-gradient(135deg, var(--hd-g1) 0%, var(--hd-g2) 48%, var(--hd-g3) 100%);
    --hd-on-grad: #05140a;
    --hd-ease: cubic-bezier(.22, .8, .28, 1);
    --hd-font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --hd-display: 'Unbounded', 'Onest', system-ui, sans-serif;
}

/* ---------- Общий фон всех страниц ---------- */
html { background: #020503 !important; }
body {
    background: transparent !important;
    color: var(--hd-text);
    font-family: var(--hd-font);
    position: relative;
    overflow-x: clip;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 620px at 0% 0%, rgba(70, 180, 40, .24), transparent 65%),
        radial-gradient(800px 620px at 100% 38%, rgba(30, 150, 75, .17), transparent 65%),
        radial-gradient(900px 700px at 18% 100%, rgba(130, 225, 40, .13), transparent 65%),
        linear-gradient(180deg, #030704 0%, #010201 100%);
}

/* ---------- Шапка ---------- */
.lk-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: saturate(1.5) blur(22px);
    -webkit-backdrop-filter: saturate(1.5) blur(22px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: border-color .4s, box-shadow .4s, background .4s;
}
.lk-header.is-scrolled {
    background: rgba(0, 0, 0, .66);
    border-bottom-color: rgba(190, 255, 90, .22);
    box-shadow: 0 12px 40px -20px rgba(143, 232, 44, .4);
}
.lk-header, .lk-header * { box-sizing: border-box; }
.lk-header a { text-decoration: none; }

.lk-header-in {
    max-width: 1480px;
    height: var(--hd-h);
    margin: 0 auto;
    padding: 0 var(--hd-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.lk-header-left { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); min-width: 0; }
.lk-header-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* ---------- Логотип ---------- */
.lk-logo { display: inline-flex; align-items: center; flex: 0 0 auto; transition: transform .35s var(--hd-ease), filter .35s; }
.lk-logo:hover { transform: scale(1.04); filter: drop-shadow(0 4px 18px rgba(143, 232, 44, .5)); }
.lk-logo-img { display: block; height: 52px; width: auto; max-width: 240px; object-fit: contain; }
.lk-logo-text {
    display: none;
    font-family: var(--hd-display);
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -.02em;
    color: #fff;
}
.lk-logo-text b {
    font-weight: 900;
    background: var(--hd-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Меню ---------- */
/* меню — «стеклянная» капсула */
.lk-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 30px -12px rgba(0, 0, 0, .7);
}
.lk-nav-link {
    position: relative;
    padding: 10px 16px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #b3beb1;
    white-space: nowrap;
    transition: color .25s, background .25s, border-color .25s, box-shadow .25s;
}
.lk-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.lk-nav-link.is-active {
    color: #fff;
    background: linear-gradient(180deg, rgba(190, 255, 90, .26), rgba(143, 232, 44, .12));
    border-color: rgba(190, 255, 90, .38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 22px -6px rgba(143, 232, 44, .6);
}
.lk-nav-admin { color: var(--hd-g1); }
.lk-nav-admin:hover { color: var(--hd-g1); }

/* ---------- Кнопки-«таблетки» (как на фото) ---------- */
.lk-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    border: 0;
    background: #2b2d2b;
    color: #fff;
    font-family: var(--hd-font);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    transition: background .3s, box-shadow .3s, color .3s, filter .3s;
}
.lk-pill svg { width: 20px; height: 20px; flex: 0 0 auto; }
/* только подсветка, без движения */
.lk-pill:hover {
    background: #383c38;
    box-shadow: inset 0 0 0 1.5px rgba(190, 255, 90, .55), 0 0 24px -6px rgba(143, 232, 44, .55);
}
.lk-pill:active { filter: brightness(1.15); }
.lk-pill.is-active { box-shadow: inset 0 0 0 1.5px rgba(190, 255, 90, .55); }

.lk-pill--lime {
    background: var(--hd-grad);
    color: var(--hd-on-grad);
    box-shadow: 0 0 0 1px rgba(190, 255, 90, .35), 0 10px 30px -10px rgba(120, 230, 40, .6);
}
.lk-pill--lime:hover {
    background: var(--hd-grad);
    filter: brightness(1.08) saturate(1.1);
    box-shadow: 0 0 0 1px rgba(190, 255, 90, .7), 0 0 34px -2px rgba(143, 232, 44, .8);
}
.lk-pill--lime::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: hd-shine 3.8s ease-in-out infinite;
}

.lk-pill--user { padding: 0 18px 0 8px; gap: 10px; }
.lk-avatar {
    width: 32px; height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--hd-grad);
    color: var(--hd-on-grad);
    font-size: 15px;
    font-weight: 800;
}
.lk-user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Нижнее меню (телефон) ---------- */
.lk-tabbar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(8, 12, 8, .55);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.lk-tab-item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 7px 2px 4px;
    border-radius: 14px;
    color: #7f917b;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .25s, transform .25s var(--hd-ease);
}
.lk-tab-item small { font-size: 11px; font-weight: 700; line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-tab-item:active { transform: scale(.92); }
.lk-tab-item.is-active { color: var(--hd-g1); }
.lk-tab-item.is-active svg { filter: drop-shadow(0 0 8px rgba(143, 232, 44, .75)); }
.lk-tab-item.is-active::before {
    content: '';
    position: absolute;
    top: -9px; left: 28%; right: 28%;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--hd-grad);
    box-shadow: 0 0 14px rgba(143, 232, 44, .85);
}

@keyframes hd-shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .lk-pill--search .lk-pill-txt { display: none; }
    .lk-pill--search { padding: 0; width: 46px; }
    .lk-nav-link { padding: 10px 12px; }
}

@media (max-width: 820px) {
    :root { --hd-h: 66px; }
    .lk-nav, .lk-hide-m { display: none !important; }
    .lk-logo-img { height: 44px; max-width: 180px; }

    .lk-header-right { gap: 8px; }
    .lk-pill { height: 42px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
    .lk-pill--lime { padding: 0 18px; }
    .lk-user-name { display: none; }
    .lk-pill--user { padding: 0 6px; }

    .lk-tabbar { display: flex; }
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .lk-header *, .lk-tabbar * { animation: none !important; transition-duration: .01ms !important; }
}