/* =========================================================
   GODLESS — site styles
   Бренд:
     фон: глубокий чёрно-фиолетовый #050507
     золото: #D4AF37 (акцент)
     розовый/сиреневый: #C75CD1 / #E879C6 (контур, акценты)
     типографика: Cormorant Garamond (заголовки), Inter (текст)
   ========================================================= */

:root {
    color-scheme: dark;
    --bg: #050507;
    --bg-card: rgba(12, 8, 18, 0.6);
    --gold: #D4AF37;
    --gold-soft: #F8E68C;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --magenta: #C75CD1;
    --magenta-soft: #E879C6;
    --magenta-line: rgba(199, 92, 209, 0.35);
    --magenta-line-soft: rgba(199, 92, 209, 0.15);
    --text: #fff;
    --text-mute: rgba(255, 255, 255, 0.55);
    --text-faint: rgba(255, 255, 255, 0.35);
    --line: rgba(255, 255, 255, 0.08);

    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, system-ui, sans-serif;

    --container: 1080px;
    --container-narrow: 720px;
    --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ============ AURORA + NOISE ============ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 480px at 15% 15%, rgba(199, 92, 209, 0.10), transparent 60%),
        radial-gradient(ellipse 600px 360px at 85% 85%, rgba(232, 121, 198, 0.08), transparent 60%),
        radial-gradient(ellipse 500px 360px at 80% 12%, rgba(212, 175, 55, 0.05), transparent 60%),
        radial-gradient(ellipse 420px 300px at 8% 92%, rgba(155, 90, 200, 0.07), transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: aurora 14s ease-in-out infinite;
}
@keyframes aurora {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.05); }
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* =============================================================
   INTRO VEIL — стартовый «занавес»
   Появляется поверх всего: медленно собирается лого GODLESS,
   через ~2.5с занавес раздвигается в две стороны, открывая страницу.
   Показывается раз за сессию (см. site.js → sessionStorage).
   ============================================================= */
.intro-veil {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: auto;   /* ловим клик «пропустить» */
    overflow: hidden;
    cursor: pointer;
}
.intro-veil.is-opening { pointer-events: none; }
/* Две половины тёмного «занавеса». Каждая закрывает 50% экрана; при
   .is-opening расходятся в стороны. */
.veil-half {
    position: absolute;
    top: 0;
    width: 50.5vw;     /* +0.5 чтобы не было щели по центру */
    height: 100vh;
    background: #050507;
    will-change: transform;
    transition: transform 1.4s cubic-bezier(0.7, 0, 0.2, 1);
}
.veil-half-left  { left: 0; }
.veil-half-right { right: 0; }
.veil-half-left::after, .veil-half-right::after {
    /* лёгкое золотое свечение по внутренним краям половин */
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 60px;
    pointer-events: none;
}
.veil-half-left::after  { right: 0;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.10)); }
.veil-half-right::after { left: 0;
    background: linear-gradient(270deg, transparent, rgba(212, 175, 55, 0.10)); }

.intro-veil.is-opening .veil-half-left  { transform: translateX(-100%); }
.intro-veil.is-opening .veil-half-right { transform: translateX(100%); }

.veil-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.7s ease 0s;
}
.intro-veil.is-opening .veil-center {
    opacity: 0;
    transition: opacity 0.5s ease 0s;
}

/* Контейнер вокруг лого — для glint-оверлея и 3D-перспективы */
.veil-mark-wrap {
    position: relative;
    display: inline-block;
    perspective: 900px;
}
.veil-mark {
    position: relative;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(56px, 13vw, 168px);
    letter-spacing: clamp(12px, 3.5vw, 38px);
    line-height: 1;
    color: var(--gold);
    text-shadow: 0 0 50px rgba(212, 175, 55, 0.35);
    margin-left: clamp(12px, 3.5vw, 38px); /* компенсация letter-spacing */
    transform-style: preserve-3d;
}
.veil-mark span {
    display: inline-block;
    opacity: 0;
    filter: blur(28px);
    transform: translateY(38px) scale(0.55) rotateX(-55deg);
    transform-origin: center 70%;
    color: #fff;
    animation: veil-letter 2.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    will-change: opacity, transform, filter;
}
/* «Дорогой» рваный ритм появления: чуть больше задержки между буквами,
   первая и последняя — с особо длинной паузой (как занавес в театре). */
.veil-mark span:nth-child(1) { animation-delay: 0.30s; }
.veil-mark span:nth-child(2) { animation-delay: 0.55s; }
.veil-mark span:nth-child(3) { animation-delay: 0.80s; }
.veil-mark span:nth-child(4) { animation-delay: 1.05s; }
.veil-mark span:nth-child(5) { animation-delay: 1.32s; }
.veil-mark span:nth-child(6) { animation-delay: 1.58s; }
.veil-mark span:nth-child(7) { animation-delay: 1.85s; }

@keyframes veil-letter {
    0% {
        opacity: 0;
        filter: blur(28px);
        transform: translateY(38px) scale(0.55) rotateX(-55deg);
        color: #fff;
        text-shadow:
            0 0 80px rgba(255, 255, 255, 0.95),
            0 0 32px rgba(248, 230, 140, 0.55);
    }
    35% {
        opacity: 1;
        filter: blur(2px);
        transform: translateY(-8px) scale(1.10) rotateX(0);
        color: #fff;
        text-shadow:
            0 0 70px rgba(255, 255, 255, 0.85),
            0 0 35px rgba(248, 230, 140, 0.75);
    }
    55% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1) rotateX(0);
        color: var(--gold-soft);
        text-shadow:
            0 0 55px rgba(248, 230, 140, 0.7),
            0 0 25px rgba(212, 175, 55, 0.55);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1) rotateX(0);
        color: var(--gold);
        text-shadow:
            0 0 40px rgba(212, 175, 55, 0.55),
            0 1px 0 rgba(0, 0, 0, 0.35);
    }
}

/* Glint — золотой блик, проходит по слову после того как
   собраны все буквы. Делает ощущение дорогой ювелирки. */
.veil-glint {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(
        110deg,
        transparent 35%,
        rgba(248, 230, 140, 0.55) 47%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(248, 230, 140, 0.55) 53%,
        transparent 65%
    );
    pointer-events: none;
    transform: translateX(-130%);
    opacity: 0;
    mix-blend-mode: overlay;
    animation: veil-glint 2.0s cubic-bezier(0.4, 0, 0.2, 1) 3.5s forwards;
    filter: blur(1px);
}
@keyframes veil-glint {
    0%   { transform: translateX(-130%); opacity: 0; }
    18%  { opacity: 1; }
    82%  { opacity: 1; }
    100% { transform: translateX(130%); opacity: 0; }
}

.veil-sub {
    color: rgba(212, 175, 55, 0.62);
    font-size: clamp(10px, 1.1vw, 12px);
    letter-spacing: 9px;
    margin-top: 14px;
    opacity: 0;
    animation: veil-fade 1.6s ease 3.2s forwards;
    font-weight: 300;
}
.veil-line {
    width: clamp(140px, 28vw, 360px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.75), transparent);
    margin: 32px auto 0;
    opacity: 0;
    animation: veil-fade 1.4s ease 3.0s forwards;
    position: relative;
}
.veil-line::before, .veil-line::after {
    content: '';
    position: absolute;
    top: -2px;
    width: 5px; height: 5px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    transform: rotate(45deg);
}
.veil-line::before { left: -10px; }
.veil-line::after { right: -10px; }
.veil-line-bottom {
    margin-top: 16px;
    width: clamp(80px, 16vw, 200px);
    opacity: 0;
    animation: veil-fade 1.4s ease 3.5s forwards;
}
.veil-line-bottom::before, .veil-line-bottom::after { display: none; }

@keyframes veil-fade { to { opacity: 1; } }

/* «Дыхание» лого в финальной части — пока не уехал занавес */
.veil-mark.is-breathing {
    animation: veil-breath 4s ease-in-out infinite;
}
@keyframes veil-breath {
    0%, 100% { text-shadow: 0 0 40px rgba(212, 175, 55, 0.45); }
    50%      { text-shadow: 0 0 75px rgba(248, 230, 140, 0.70); }
}

/* После раскрытия — полностью убираем (display:none ставится из JS) */
.intro-veil.is-done { display: none; }

/* Когда занавес активен — блокируем скролл основной страницы */
body.intro-locked {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .veil-mark span,
    .veil-sub, .veil-line { animation: none !important; opacity: 1; filter: none; transform: none; color: var(--gold); }
    .veil-half { transition-duration: 0.4s !important; }
}

/* ============ PENCIL DECOR ============ */
/* Карандашные силуэты-фон. Чтобы оставалось «вайбом», но не отвлекало:
   - opacity маленькая
   - mix-blend-mode lighten на тёмном фоне даёт мягкое золотистое свечение
   - position: fixed — парят сквозь всю прокрутку
   - pointer-events: none — не ловят клики                                   */
.decor-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.decor {
    position: absolute;
    color: var(--gold);
    mix-blend-mode: lighten;
}

/* Saxophonist — верхний-левый, крупно, наклон в кадр */
.decor-sax {
    top: 6vh;
    left: -2vw;
    width: 300px;
    opacity: 0.16;
    transform: rotate(-6deg);
}

/* Bartender — нижний-правый */
.decor-bartender {
    bottom: 4vh;
    right: -2vw;
    width: 320px;
    opacity: 0.15;
    transform: rotate(3deg);
}

/* Wine glasses — правее центра, ближе к низу первого экрана */
.decor-glasses {
    top: 60vh;
    right: 8vw;
    width: 200px;
    opacity: 0.18;
    color: var(--magenta-soft);
    transform: rotate(-2deg);
}

/* Couple — верхний-правый, чуть глубже */
.decor-couple {
    top: 14vh;
    right: 5vw;
    width: 240px;
    opacity: 0.13;
    transform: rotate(2deg);
}

/* Still life (свеча+ноты) — нижний-левый */
.decor-still {
    bottom: 8vh;
    left: 4vw;
    width: 280px;
    opacity: 0.15;
    color: var(--magenta-soft);
    transform: rotate(-3deg);
}

@media (max-width: 980px) {
    /* На планшетах прячем couple и glasses — лишний шум */
    .decor-couple, .decor-glasses { display: none; }
    .decor-sax { width: 220px; opacity: 0.13; }
    .decor-bartender { width: 240px; opacity: 0.13; }
    .decor-still { width: 220px; opacity: 0.13; }
}
@media (max-width: 640px) {
    /* На телефонах оставляем только саксофон и натюрморт, мельче */
    .decor-bartender { display: none; }
    .decor-sax { width: 160px; opacity: 0.11; left: -5vw; }
    .decor-still { width: 160px; opacity: 0.11; }
}

@media (prefers-reduced-motion: reduce) {
    .decor { transform: none; }
}

/* ============ FRAMES & CORNERS ============ */
.outer-frame {
    position: fixed;
    inset: 14px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    pointer-events: none;
    z-index: 5;
    animation: outerframe 7s ease-in-out infinite;
}
.outer-frame::before, .outer-frame::after {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    border: 1px solid rgba(212, 175, 55, 0.55);
}
.outer-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.outer-frame::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
@keyframes outerframe {
    0%, 100% { border-color: rgba(212, 175, 55, 0.12); box-shadow: 0 0 30px rgba(212, 175, 55, 0.04) inset; }
    50%      { border-color: rgba(212, 175, 55, 0.30); box-shadow: 0 0 60px rgba(212, 175, 55, 0.07) inset; }
}
.corner {
    position: fixed; width: 64px; height: 64px;
    pointer-events: none; z-index: 6;
}
.corner-tl { top: 24px; left: 24px;  border-top: 1px solid rgba(212, 175, 55, 0.4); border-left:  1px solid rgba(212, 175, 55, 0.4); }
.corner-tr { top: 24px; right: 24px; border-top: 1px solid rgba(212, 175, 55, 0.4); border-right: 1px solid rgba(212, 175, 55, 0.4); }
.corner-bl { bottom: 24px; left: 24px;  border-bottom: 1px solid rgba(212, 175, 55, 0.4); border-left:  1px solid rgba(212, 175, 55, 0.4); }
.corner-br { bottom: 24px; right: 24px; border-bottom: 1px solid rgba(212, 175, 55, 0.4); border-right: 1px solid rgba(212, 175, 55, 0.4); }

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(5, 5, 7, 0.55);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 64px;
    gap: 24px;
    position: relative;
}
.brand {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 6px;
    text-decoration: none;
    font-size: 16px;
    text-shadow: 0 0 16px var(--gold-glow);
    flex-shrink: 0;
}
.nav {
    display: flex;
    gap: 26px;
    flex: 1;
    justify-content: center;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nav a {
    color: var(--text-mute);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
    font-weight: 400;
}
.nav a:hover { color: var(--gold); }
.lang-switch a {
    color: var(--text-faint);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 2px;
    transition: all 0.3s;
}
.lang-switch a:hover {
    color: var(--gold);
    border-color: var(--gold-glow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--gold);
    transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--magenta-line);
    padding: 22px 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.mobile-menu a.mobile-cta {
    color: var(--gold);
    border-bottom: none;
    margin-top: 8px;
}

@media (max-width: 860px) {
    .header-inner { padding: 0 16px; gap: 8px; }
    .nav { display: none !important; }
    .mobile-menu-btn { display: flex !important; }

    /* На мобиле — компактный pill с именем юзера. */
    .header-actions {
        flex-shrink: 0;
        gap: 6px;
    }
    .header-actions .nav-profile { display: none; }
    .header-actions .nav-apply {
        padding: 6px 12px !important;
        font-size: 10px !important;
        letter-spacing: 1px !important;
    }
    .header-actions .nav-profile-pill {
        padding: 6px 12px 6px 24px !important;
        font-size: 10px !important;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-actions .nav-profile-pill-name {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        vertical-align: middle;
    }

    /*
     * Вернув «красивый» сайт на мобиле: аура / шум / рамки / декор видны снова.
     * Компромисс с WebKit/iOS — у fixed-слоёв отключаем animation (он ломает
     * вертикальный touch-scroll даже при pointer-events:none). Интро-занавес
     * остаётся, но пока висит разрешаем скролл фона (иначе может залипнуть).
     */
    html {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: auto;
    }

    html, body {
        min-height: 100vh;
        -webkit-overflow-scrolling: touch;
    }

    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: relative !important;
        height: auto !important;
    }

    body.intro-locked {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body::before {
        animation: none !important;
        transform: scale(1) !important;
        opacity: 0.9;
        will-change: auto;
    }

    body::after {
        display: block;
        opacity: 0.035;
        will-change: auto;
    }

    .outer-frame {
        animation: none !important;
        will-change: auto;
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.05) inset;
    }

    /* Шапка: blur на iOS тяжёлый для sticky-scroll — усиливаем непрозрачность фона */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        background: rgba(5, 5, 7, 0.72);
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }

    /* Мобильное меню должно быть выше занавеса (z-index 9999 у .intro-veil). */
    .mobile-menu { z-index: 12000; }
}

/* ============ MAIN ============ */
.site-main {
    position: relative;
    z-index: 2;
}

/* ============ HERO ============ */
.hero {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 32px 100px;
    text-align: center;
    position: relative;
}
.hero-inner {
    max-width: 720px;
    width: 100%;
}
.hero-eyebrow {
    color: rgba(212, 175, 55, 0.5);
    font-size: 11px;
    letter-spacing: 8px;
    margin-bottom: 32px;
    font-weight: 300;
    opacity: 0;
    animation: fadein 1s ease 0.4s forwards;
}
.hero-logo {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 96px;
    letter-spacing: 22px;
    line-height: 1;
    color: var(--gold);
    text-shadow: 0 0 30px var(--gold-glow);
    margin-left: 22px; /* compensate letter-spacing */
}
.hero-logo span {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px);
    animation: letter-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-logo span:nth-child(1) { animation-delay: 0.10s; }
.hero-logo span:nth-child(2) { animation-delay: 0.20s; }
.hero-logo span:nth-child(3) { animation-delay: 0.30s; }
.hero-logo span:nth-child(4) { animation-delay: 0.40s; }
.hero-logo span:nth-child(5) { animation-delay: 0.50s; }
.hero-logo span:nth-child(6) { animation-delay: 0.60s; }
.hero-logo span:nth-child(7) { animation-delay: 0.70s; }
@keyframes letter-reveal {
    0%   { opacity: 0; filter: blur(8px); transform: translateY(10px); color: #fff; text-shadow: 0 0 50px rgba(255,255,255,0.85); }
    60%  { opacity: 1; filter: blur(0);   transform: translateY(0);    color: var(--gold-soft); text-shadow: 0 0 32px rgba(248, 230, 140, 0.7); }
    100% { opacity: 1; filter: blur(0);   transform: translateY(0);    color: var(--gold); text-shadow: 0 0 22px var(--gold-glow); }
}
@keyframes fadein { to { opacity: 1; } }

.hero-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.6), transparent);
    margin: 28px auto 0;
    opacity: 0;
    animation: fadein 1s ease 1.4s forwards;
}
.hero-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    color: rgba(255,255,255,0.7);
    margin-top: 18px;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadein 1s ease 1.5s forwards;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 44px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadein 1s ease 1.8s forwards;
}
.hero-scroll {
    margin-top: 64px;
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 6px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadein 1s ease 2.2s forwards;
}
.hero-scroll-arrow {
    display: inline-block;
    animation: bounce 2.4s ease-in-out infinite;
    color: var(--gold);
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50%      { transform: translateY(6px); opacity: 1; }
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
}
.btn-primary {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.45), rgba(248, 230, 140, 0.32));
    border: 1px solid rgba(248, 230, 140, 0.7);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.22);
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.65), rgba(248, 230, 140, 0.5));
    border-color: rgba(248, 230, 140, 1);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.32);
}
.btn-ghost {
    border-color: var(--magenta-line);
    color: var(--text);
}
.btn-ghost:hover {
    border-color: var(--magenta-soft);
    background: rgba(199, 92, 209, 0.08);
    transform: translateY(-1px);
}
.btn-block { width: 100%; display: flex; }
.btn-sm { padding: 9px 18px; font-size: 11px; letter-spacing: 2px; }
.btn[disabled], .btn.is-loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============ SECTIONS ============ */
.section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 100px 32px;
}
.section-narrow {
    max-width: var(--container-narrow);
}
.section-label {
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-label::before, .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}
.section-title {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 500;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: 0.5px;
}
.section-lead, .section-sub {
    font-size: 16px;
    color: var(--text-mute);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.section-sub { font-size: 14px; }
.section-note {
    color: var(--text-faint);
    font-size: 11px;
    letter-spacing: 2px;
    text-align: center;
    margin-top: 28px;
    text-transform: uppercase;
}

/* ============ MANIFEST ============ */
.manifest-section { text-align: center; }
.manifest-headline {
    font-size: clamp(34px, 5.2vw, 58px);
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.15;
    margin: 8px auto 24px;
    max-width: 760px;
    color: var(--text-bright);
}
.manifest-list {
    list-style: none;
    margin: 36px auto 0;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}
.manifest-list li {
    color: var(--text);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    letter-spacing: 0.4px;
    line-height: 1.5;
    padding: 0;
    position: relative;
}
.manifest-list li::before { content: none; }
.manifest-list li:not(:last-child)::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: rgba(212, 175, 55, 0.35);
    margin: 14px auto 0;
}
.manifest-sign {
    margin: 44px auto 0;
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: clamp(6px, 1.2vw, 12px);
    color: var(--gold);
    font-weight: 600;
    text-shadow: 0 0 38px rgba(212, 175, 55, 0.3);
    position: relative;
    display: inline-block;
    padding: 0 12px;
}
.manifest-sign::before,
.manifest-sign::after {
    content: '';
    position: absolute;
    top: 50%;
    width: clamp(40px, 8vw, 90px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
}
.manifest-sign::before { right: 100%; }
.manifest-sign::after  { left: 100%; }

/* ============ FORMAT CARDS ============ */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.format-card {
    border: 1px solid var(--magenta-line);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 28px 24px;
    border-radius: 4px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.format-card::before, .format-card::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(232, 121, 198, 0.55);
}
.format-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.format-card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.format-card:hover {
    border-color: var(--magenta-soft);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(199, 92, 209, 0.18);
}
.format-icon {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 30px;
    margin-bottom: 16px;
    line-height: 1;
    text-shadow: 0 0 18px var(--gold-glow);
}
.format-card-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.format-card-body {
    color: var(--text-mute);
    font-size: 14px;
    line-height: 1.65;
}

/* ============ EVENTS ============ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.event-card {
    border: 1px solid var(--magenta-line);
    background: var(--bg-card);
    padding: 28px 26px;
    border-radius: 4px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.event-card::before, .event-card::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    border: 1px solid rgba(232, 121, 198, 0.55);
}
.event-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.event-card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.event-card:hover {
    border-color: var(--magenta-soft);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(199, 92, 209, 0.18);
}
.event-card-date {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.event-card-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    font-style: italic;
    color: var(--text);
    margin-bottom: 8px;
}
.event-card-meta {
    color: var(--text-mute);
    font-size: 13px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}
.event-card-price {
    color: var(--magenta-soft);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.events-all {
    text-align: center;
    margin-top: 32px;
}
.link-arrow {
    color: var(--gold);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold-glow);
    padding-bottom: 4px;
    transition: all 0.3s;
}
.link-arrow:hover {
    color: var(--gold-soft);
    border-bottom-color: var(--gold);
}
.events-empty {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--magenta-line-soft);
    border-radius: 4px;
    background: rgba(199, 92, 209, 0.02);
}
.events-empty p {
    color: var(--text-mute);
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 19px;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============ GALLERY ============ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.gallery-cell {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    border: 1px solid var(--magenta-line-soft);
    background: rgba(12, 8, 18, 0.5);
    transition: all 0.4s;
}
.gallery-cell:hover {
    border-color: var(--magenta-soft);
    transform: scale(1.02);
}
.gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.05) saturate(0.9);
}
.gallery-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 175, 55, 0.25);
    font-family: var(--font-serif);
    font-size: 36px;
    letter-spacing: 3px;
    background:
        linear-gradient(135deg, rgba(199, 92, 209, 0.05), transparent 60%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 8px);
}

/* ============ FAQ ============ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.faq-item {
    border: 1px solid var(--magenta-line-soft);
    border-radius: 3px;
    background: rgba(12, 8, 18, 0.45);
    transition: border-color 0.3s, background 0.3s;
}
.faq-item[open] {
    border-color: var(--magenta-line);
    background: rgba(12, 8, 18, 0.7);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--text);
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-q { flex: 1; }
.faq-toggle {
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-a {
    padding: 0 24px 22px;
    color: var(--text-mute);
    font-size: 15px;
    line-height: 1.7;
}

/* ============ RULES ============ */
.rules-list {
    list-style: none;
    counter-reset: rules;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.rules-list li {
    counter-increment: rules;
    padding: 16px 20px 16px 64px;
    border-left: 1px solid var(--gold-glow);
    background: rgba(255, 255, 255, 0.015);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
}
.rules-list li::before {
    content: counter(rules, decimal-leading-zero);
    position: absolute;
    left: 20px;
    top: 16px;
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}
.rules-tone {
    text-align: center;
    margin-top: 28px;
    color: var(--text-faint);
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 17px;
}

/* ============ CONTACTS ============ */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.contact-card {
    text-decoration: none;
    color: inherit;
    padding: 22px 22px;
    border: 1px solid var(--magenta-line);
    background: var(--bg-card);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s;
}
.contact-card:hover {
    border-color: var(--magenta-soft);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(199, 92, 209, 0.16);
}
.contact-icon {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 22px;
    line-height: 1;
    margin-bottom: 6px;
}
.contact-label {
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.contact-value {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    word-break: break-word;
}
.contact-action {
    color: var(--magenta-soft);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: auto;
    padding-top: 8px;
}

/* ============ WAITLIST FORM ============ */
.waitlist-form {
    margin-top: 16px;
    border: 1px solid var(--magenta-line);
    background: var(--bg-card);
    padding: 32px 28px;
    border-radius: 4px;
    position: relative;
}
.waitlist-form::before, .waitlist-form::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    border: 1px solid rgba(232, 121, 198, 0.7);
}
.waitlist-form::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.waitlist-form::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.form-row { margin-bottom: 18px; }
.form-label {
    display: block;
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.req { color: var(--gold); margin-left: 4px; }
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-bottom: 1px solid var(--magenta-line);
    color: var(--text);
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 15px;
    border-radius: 2px;
    transition: all 0.3s;
    outline: none;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus {
    border-color: var(--magenta-soft);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(199, 92, 209, 0.10);
}

select.form-input:focus {
    border-color: var(--magenta-soft);
    background-color: rgba(26, 12, 40, 0.92);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%3E%3Cpath%20fill%3D%22%23D4AF37%22%20d%3D%22M6%208L0%200h12z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px 7px;
    box-shadow: 0 0 0 3px rgba(199, 92, 209, 0.10);
}
.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Кастомизация <select> — без неё на Windows показывается белый
   системный дропдаун с белым фоном опций. */
select.form-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color-scheme: dark;
    background-color: rgba(20, 8, 32, 0.85);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%3E%3Cpath%20fill%3D%22%23D4AF37%22%20d%3D%22M6%208L0%200h12z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px 7px;
    padding-right: 38px;
    cursor: pointer;
}
select.form-input option {
    background-color: #0c0612;
    color: #f4ecd6;
    padding: 8px 12px;
}
select.form-input option:checked,
select.form-input option:hover {
    background-color: rgba(212, 175, 55, 0.18);
    color: #f4ecd6;
}
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-message {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.5px;
    min-height: 1.4em;
}
.form-message.is-error  { color: #ff8488; }
.form-message.is-success {
    color: #65d680;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 16px;
}

/* ============ FORUM PLACEHOLDER ============ */
.forum-placeholder { min-height: 70vh; }
.forum-coming {
    text-align: center;
    padding: 40px 20px 0;
}
.forum-coming-icon {
    color: var(--gold);
    font-size: 64px;
    margin-bottom: 16px;
    font-family: var(--font-serif);
    text-shadow: 0 0 30px var(--gold-glow);
}
.forum-coming-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 24px;
    color: var(--text);
    margin-bottom: 8px;
}
.forum-coming-hint {
    color: var(--text-mute);
    font-size: 14px;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =============================================================
   FORUM
   ============================================================= */

.forum-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    position: relative;
    z-index: 2;
}

.forum-header {
    border: 1px solid var(--magenta-line);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 4px;
    padding: 18px 22px;
    margin-bottom: 28px;
    position: relative;
}
.forum-header::before, .forum-header::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border: 1px solid rgba(232, 121, 198, 0.65);
}
.forum-header::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.forum-header::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.forum-header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.forum-brand {
    font-family: var(--font-serif);
    color: var(--gold);
    letter-spacing: 5px;
    text-decoration: none;
    font-size: 13px;
    text-shadow: 0 0 16px var(--gold-glow);
}
.forum-nav {
    display: flex;
    gap: 22px;
    flex: 1;
}
.forum-nav a {
    color: var(--text-mute);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
}
.forum-nav a:hover { color: var(--gold); }
.forum-user {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 12px;
}
.forum-user-name {
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.2s;
}
.forum-user-name:hover { color: var(--gold); }
.forum-avatar-img {
    object-fit: cover;
    background: transparent !important;
    padding: 0 !important;
    border: 1px solid rgba(212, 175, 55, 0.4);
}
.forum-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--magenta));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #050507;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
}
.forum-logout, .forum-tosite {
    color: var(--text-faint);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}
.forum-logout:hover, .forum-tosite:hover { color: var(--gold); }

.forum-search {
    margin-top: 16px;
}
.forum-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--text);
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all 0.3s;
}
.forum-search input:focus {
    outline: none;
    border-color: var(--magenta-soft);
    background: rgba(255, 255, 255, 0.04);
}

.forum-section { margin-bottom: 44px; }
.forum-narrow { max-width: 720px; }
.forum-title { text-align: left; margin-bottom: 22px; font-size: 34px; }
.forum-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.forum-subtitle {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 18px;
    font-weight: 500;
}
.forum-section-desc {
    color: var(--text-mute);
    font-size: 14px;
    margin-bottom: 18px;
    font-style: italic;
}
.forum-breadcrumbs {
    margin-bottom: 18px;
}
.forum-breadcrumbs a {
    color: var(--text-faint);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.forum-breadcrumbs a:hover { color: var(--gold); }

/* ---- categories list ---- */
.forum-categories {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
.forum-cat-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--magenta-line);
    border-radius: 3px;
    padding: 22px 24px;
    transition: all 0.3s;
    position: relative;
}
.forum-cat-card:hover {
    border-color: var(--magenta-soft);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(199, 92, 209, 0.15);
}
.forum-cat-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 8px;
}
.forum-cat-title {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--text);
    font-weight: 500;
}
.forum-cat-count {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.forum-cat-desc {
    color: var(--text-mute);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}
.forum-cat-foot {
    color: var(--text-faint);
    font-size: 11px;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.forum-cat-arrow {
    color: var(--magenta-soft);
}

/* ---- topic list ---- */
.forum-topic-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--magenta-line-soft);
    border: 1px solid var(--magenta-line-soft);
    border-radius: 3px;
    overflow: hidden;
}
.forum-topic-row { background: var(--bg); }
.forum-topic-link {
    display: block;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s;
}
.forum-topic-link:hover { background: rgba(199, 92, 209, 0.06); }
.forum-topic-meta-cat {
    color: var(--magenta-soft);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.forum-topic-line {
    display: flex;
    align-items: center;
    gap: 8px;
}
.forum-topic-title {
    color: var(--text);
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
}
.forum-topic-meta {
    color: var(--text-faint);
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.forum-flag {
    font-size: 12px;
    color: var(--gold);
}
.forum-flag-lock { color: var(--text-faint); }

.forum-pager {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.forum-page-num {
    color: var(--text-faint);
    font-size: 12px;
    letter-spacing: 2px;
}

/* ---- topic page ---- */
.forum-topic-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.forum-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.forum-posts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.forum-post {
    background: var(--bg-card);
    border: 1px solid var(--magenta-line-soft);
    border-radius: 3px;
    padding: 22px 24px;
    position: relative;
}
.forum-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.forum-post-author {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.forum-post-handle {
    color: var(--text-faint);
    font-size: 12px;
    margin-left: 6px;
}
.forum-admin-badge {
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 2px;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 8px;
    text-transform: uppercase;
    border: 1px solid var(--gold-glow);
}
.forum-post-time {
    color: var(--text-faint);
    font-size: 11px;
    margin-top: 2px;
    letter-spacing: 0.5px;
}
.forum-post-body {
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}
.forum-post-body p { margin: 0 0 14px; }
.forum-post-body p:last-child { margin-bottom: 0; }
.forum-post-body a { color: var(--gold); text-decoration: underline; }
.forum-post-body a:hover { color: var(--gold-soft); }
.forum-post-body code {
    background: rgba(199, 92, 209, 0.08);
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 13px;
    color: var(--magenta-soft);
}
.forum-post-body pre {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 14px 18px;
    overflow-x: auto;
    font-size: 13px;
    margin: 14px 0;
}
.forum-post-body pre code {
    background: none;
    padding: 0;
    color: var(--text);
}
.forum-post-body blockquote {
    border-left: 2px solid var(--gold-glow);
    padding-left: 14px;
    color: var(--text-mute);
    margin: 14px 0;
    font-style: italic;
}
.forum-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    margin: 14px 0;
}
.forum-post-body ul, .forum-post-body ol {
    margin: 0 0 14px 24px;
}
.forum-post-body h2, .forum-post-body h3, .forum-post-body h4 {
    font-family: var(--font-serif);
    margin: 20px 0 10px;
    color: var(--text);
}
.forum-post-body table {
    border-collapse: collapse;
    margin: 14px 0;
    width: 100%;
}
.forum-post-body th, .forum-post-body td {
    border: 1px solid var(--line);
    padding: 8px 12px;
    text-align: left;
}

.forum-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.forum-reactions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.forum-react {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 4px 12px;
    color: var(--text-mute);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.forum-react:hover {
    border-color: var(--magenta-soft);
    background: rgba(199, 92, 209, 0.08);
}
.forum-react.is-active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-soft);
}
.forum-react-count {
    font-variant-numeric: tabular-nums;
    color: var(--gold);
    font-size: 11px;
    min-width: 4px;
}
.forum-post-actions {
    display: flex;
    gap: 12px;
}
.forum-link {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0;
    transition: color 0.3s;
}
.forum-link:hover { color: var(--gold); }
.forum-link-danger:hover { color: #ff8488; }

.forum-edit-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}
.forum-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.forum-reply {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.forum-empty {
    color: var(--text-mute);
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed var(--magenta-line-soft);
    border-radius: 3px;
    background: rgba(199, 92, 209, 0.02);
    line-height: 1.7;
}
.forum-empty-error {
    border-style: solid;
    border-color: rgba(255, 132, 136, 0.3);
    background: rgba(255, 132, 136, 0.04);
    color: var(--text);
    text-align: left;
}

/* ---- auth screens ---- */
.forum-auth-screen {
    max-width: 460px;
    margin: 60px auto;
    text-align: center;
}
.forum-auth-screen .section-title { font-size: 32px; text-align: center; }
.tg-widget-wrap {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.tg-widget-hint {
    color: var(--text-faint);
    font-size: 12px;
    letter-spacing: 1px;
}
.invite-form {
    text-align: left;
    margin-top: 26px;
}
.invite-input {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
}
.forum-back {
    margin-top: 36px;
    color: var(--text-faint);
    font-size: 12px;
    letter-spacing: 1px;
}
.forum-back a {
    color: var(--text-faint);
    text-decoration: none;
    transition: color 0.3s;
}
.forum-back a:hover { color: var(--gold); }

/* ---- admin ---- */
.forum-invites-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.forum-invites-table th, .forum-invites-table td {
    border: 1px solid var(--magenta-line-soft);
    padding: 10px 12px;
    text-align: left;
}
.forum-invites-table th {
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(199, 92, 209, 0.04);
}
.forum-invites-table code {
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 0.5px;
}
.forum-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.forum-tag-used {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-faint);
    border: 1px solid var(--line);
}
.forum-tag-active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    border: 1px solid var(--gold-glow);
}

/* На узком экране .forum-nav скрыт — дублируем «Админ» в блоке пользователя */
.forum-admin-mobile {
    display: none;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 4px 8px;
    border-radius: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.forum-admin-mobile:hover {
    color: var(--gold);
    border-color: var(--gold);
}

@media (max-width: 720px) {
    .forum-shell { padding: 24px 16px 60px; }
    .forum-nav { display: none; }
    .forum-admin-mobile { display: inline-flex; align-items: center; }
    .forum-title { font-size: 26px; }
    .forum-cat-title { font-size: 18px; }
    .forum-topic-title { font-size: 15px; }
    .forum-post { padding: 18px 18px; }
    .forum-post-body { font-size: 14px; }
}

/* ============ FOOTER ============ */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 50px 32px 60px;
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    text-align: center;
}
.footer-divider {
    width: 40px;
    height: 1px;
    background: rgba(212, 175, 55, 0.3);
    margin: 0 auto 14px;
}
.footer-tagline {
    color: rgba(212, 175, 55, 0.4);
    font-size: 10px;
    letter-spacing: 6px;
    margin-bottom: 8px;
}
.footer-copy {
    color: var(--text-faint);
    font-size: 11px;
    letter-spacing: 1px;
}

/* ============ LOCAL HINT ============ */
.local-hint {
    margin: 20px auto;
    max-width: 420px;
    padding: 16px 20px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 3px;
    color: var(--text-soft);
    font-size: 13px;
    text-align: center;
    line-height: 1.6;
}
.local-hint strong { color: var(--gold); }

/* ============ PROFILE EXTENDED ============ */
.profile-avatar-img {
    object-fit: cover;
    overflow: hidden;
    background: transparent;
    padding: 0;
}
.profile-card-head { position: relative; }
.profile-card-head-text { flex: 1; }
.profile-edit-link {
    position: absolute;
    top: 0;
    right: 0;
}

.profile-discount-card {
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.08),
        rgba(154, 119, 196, 0.08));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    padding: 26px 24px;
    margin-bottom: 22px;
}
.profile-discount-big {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 16px;
}
.profile-discount-num {
    font-family: var(--font-serif);
    font-size: 56px;
    line-height: 1;
    color: var(--gold);
    font-weight: 600;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
}
.profile-discount-cap {
    color: var(--text-soft);
    font-size: 14px;
    flex: 1;
}
.profile-ref-row { margin-top: 12px; }
.profile-ref-label {
    display: block;
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.copy-row { display: flex; gap: 8px; align-items: stretch; }
.profile-ref-input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.18);
    color: var(--gold);
    font-family: monospace;
    font-size: 13px;
    border-radius: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-ref-input:focus { outline: none; border-color: rgba(212, 175, 55, 0.45); }
.profile-ref-hint {
    color: var(--text-faint);
    font-size: 12px;
    margin: 12px 0 0;
    font-style: italic;
    line-height: 1.5;
}

.profile-referred-list { margin-top: 18px; }
.profile-referred-count {
    color: var(--text-faint);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.profile-ref-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.profile-ref-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(14, 9, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 3px;
}
.profile-ref-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 15px;
    flex-shrink: 0;
}
.profile-ref-name {
    flex: 1;
    color: var(--text);
    font-size: 13px;
    line-height: 1.3;
}
.profile-ref-name small {
    display: block;
    color: var(--text-faint);
    font-size: 11px;
}
.profile-ref-check {
    color: #8ed09a;
    font-weight: bold;
}
.profile-ref-check.profile-ref-x { color: #d68a8a; }
.profile-ref-check.profile-ref-dot { color: var(--text-faint); font-weight: normal; }

/* event cards в профиле */
.profile-event-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.profile-event-card {
    display: flex;
    gap: 18px;
    padding: 16px 18px;
    background: rgba(14, 9, 20, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 3px;
}
.profile-event-upcoming {
    border-color: rgba(212, 175, 55, 0.3);
    background: linear-gradient(90deg,
        rgba(212, 175, 55, 0.05), rgba(14, 9, 20, 0.65) 40%);
}
.profile-event-past {
    opacity: 0.72;
}
.profile-event-date {
    text-align: center;
    flex-shrink: 0;
    min-width: 56px;
    border-right: 1px solid rgba(212, 175, 55, 0.1);
    padding-right: 14px;
}
.profile-event-day {
    display: block;
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--gold);
    line-height: 1;
}
.profile-event-month {
    display: block;
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-top: 4px;
}
.profile-event-info { flex: 1; min-width: 0; }
.profile-event-title {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--text-bright);
    margin-bottom: 4px;
}
.profile-event-meta {
    color: var(--text-faint);
    font-size: 12px;
    margin-bottom: 6px;
}
.profile-event-status {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
    border: 1px solid;
}
.profile-event-status-paid, .profile-event-status-approved {
    color: #8ed09a;
    border-color: rgba(120, 200, 130, 0.45);
    background: rgba(120, 200, 130, 0.08);
}
.profile-event-status-attended {
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.08);
}
.profile-event-status-pending {
    color: var(--text-faint);
    border-color: rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.04);
}

/* invites block */
.profile-invite-form {
    display: flex;
    gap: 8px;
    margin: 12px 0 16px;
}
.profile-invite-form input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.16);
    color: var(--text);
    font-size: 13px;
    border-radius: 2px;
    font-family: var(--font-sans);
}
.profile-invite-form input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.45);
}
.profile-invite-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.profile-invite-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: rgba(14, 9, 20, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 3px;
}
.profile-invite-row.is-used { opacity: 0.55; }
.profile-invite-code-block { display: flex; align-items: center; gap: 8px; }
.profile-invite-code {
    font-family: monospace;
    font-size: 13px;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.06);
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
}
.profile-invite-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-faint);
    font-size: 11px;
}
.profile-invite-note {
    color: var(--text-soft);
    font-style: italic;
}
.profile-invite-status {
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* admin stats */
.invite-admin-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 14px 0 22px;
}
.invite-admin-stat {
    text-align: center;
    padding: 14px 8px;
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 3px;
}
.invite-admin-stat-dim { opacity: 0.55; }
.invite-admin-stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 30px;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}
.invite-admin-stat-cap {
    display: block;
    color: var(--text-faint);
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.invite-card-issuer { color: var(--text-faint); font-size: 11px; }
@media (max-width: 720px) {
    .invite-admin-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ============ INVITE SYSTEM ============ */
.invites-section { margin-top: 8px; }

.invite-quota-card {
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.06),
        rgba(154, 119, 196, 0.06));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    padding: 22px 24px;
    margin-bottom: 18px;
}
.invite-quota-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.invite-quota-num {
    font-family: var(--font-serif);
    font-size: 48px;
    color: var(--gold);
    line-height: 1;
    font-weight: 600;
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}
.invite-quota-cap {
    color: var(--text-soft);
    font-size: 14px;
    flex: 1;
}
.invite-quota-hint {
    margin-top: 12px;
    color: var(--text-faint);
    font-size: 12px;
    line-height: 1.6;
    font-style: italic;
    padding-top: 12px;
    border-top: 1px dashed rgba(212, 175, 55, 0.1);
}
.invite-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.invite-stat-pill {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 2px;
    color: var(--text-soft);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.04);
}
.invite-stat-pill.invite-stat-active {
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.5);
}
.invite-stat-pill.invite-stat-dim {
    opacity: 0.5;
}

/* Форма выпуска */
.invite-form {
    background: rgba(14, 9, 20, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 4px;
    padding: 20px 22px;
    margin-bottom: 18px;
}
.invite-form-row {
    margin-bottom: 12px;
}
.invite-form-row-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.invite-form-row-grid > .invite-form-label {
    flex: 1 1 160px;
    min-width: 0;
}
.invite-form-row-grid > .invite-form-label[hidden] {
    display: none !important;
}
.invite-form-label {
    display: block;
}
.invite-form-label > span {
    display: block;
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.invite-form input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.16);
    color: var(--text);
    font-size: 13px;
    font-family: var(--font-sans);
    border-radius: 2px;
}

/* Как .apply-form select / select.form-input — иначе WebKit даёт белое
   меню и «съедает» текст; на телефоне color-scheme тянет тёмную системную
   палитру, где платформа поддерживает. */
.invite-form select {
    width: 100%;
    padding: 10px 38px 10px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color-scheme: dark;
    background-color: rgba(20, 8, 32, 0.85);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%3E%3Cpath%20fill%3D%22%23D4AF37%22%20d%3D%22M6%208L0%200h12z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px 7px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    color: rgba(244, 236, 214, 0.93);
    font-size: 13px;
    font-family: var(--font-sans);
    border-radius: 2px;
    cursor: pointer;
}
.invite-form select option {
    background-color: #0c0612;
    color: #f4ecd6;
}
.invite-form select option:checked,
.invite-form select option:hover {
    background-color: rgba(212, 175, 55, 0.18);
    color: #f4ecd6;
}
.invite-form input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.45);
}
.invite-form select:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.45);
    background-color: rgba(30, 16, 46, 0.75);
}
.invite-form .btn { margin-top: 4px; }
.invite-blocked {
    background: rgba(120, 120, 120, 0.06);
    border: 1px dashed rgba(212, 175, 55, 0.18);
    border-radius: 3px;
    padding: 16px 20px;
    color: var(--text-faint);
    font-size: 13px;
    text-align: center;
    font-style: italic;
    margin-bottom: 18px;
}

/* Список инвайтов */
.invite-list-title {
    color: var(--text-faint);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 22px 0 10px;
}
.invite-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.invite-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(14, 9, 20, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 3px;
}
.invite-card-active { border-color: rgba(212, 175, 55, 0.3); }
.invite-card-exhausted, .invite-card-expired, .invite-card-revoked { opacity: 0.55; }
.invite-card-main { flex: 1; min-width: 0; }
.invite-card-code-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 6px;
}
.invite-card-code {
    font-family: monospace;
    font-size: 13px;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.06);
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
}
.invite-card-status {
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.invite-card-active .invite-card-status { color: var(--gold); }
.invite-card-meta {
    display: flex; gap: 6px;
    color: var(--text-soft); font-size: 12px;
    flex-wrap: wrap; margin-bottom: 4px;
}
.invite-card-note { color: var(--text-faint); font-style: italic; }
.invite-card-dates {
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 0.5px;
}
.invite-card-action { margin: 0; }
.invite-card-revoke {
    color: #d68a8a;
    border-color: rgba(200, 100, 100, 0.3);
}
.invite-card-revoke:hover {
    border-color: rgba(200, 100, 100, 0.6);
    background: rgba(200, 100, 100, 0.08);
}

@media (max-width: 720px) {
    .invite-form-row-grid { grid-template-columns: 1fr; }
    .invite-card { flex-direction: column; }
}

/* my recent posts */
.profile-post-list { list-style: none; margin: 0; padding: 0; }
.profile-post-row { margin-bottom: 8px; }
.profile-post-link {
    display: block;
    padding: 10px 14px;
    background: rgba(14, 9, 20, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 3px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s;
}
.profile-post-link:hover { border-color: rgba(212, 175, 55, 0.3); }
.profile-post-topic {
    display: block;
    color: var(--gold-soft);
    font-size: 12px;
    margin-bottom: 4px;
}
.profile-post-preview {
    display: block;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
}
.profile-post-date {
    display: block;
    color: var(--text-faint);
    font-size: 10px;
    margin-top: 6px;
    letter-spacing: 1px;
}

/* ============ DEV LOGIN ============ */
.dev-login-block {
    margin: 28px auto 0;
    max-width: 420px;
    padding: 20px;
    border: 1px dashed rgba(154, 119, 196, 0.5);
    border-radius: 4px;
    background: rgba(122, 87, 165, 0.08);
    text-align: center;
}
.dev-login-label {
    display: inline-block;
    background: rgba(154, 119, 196, 0.25);
    color: #c9b4ff;
    font-size: 9px;
    letter-spacing: 3px;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 12px;
}
.dev-login-btn {
    display: inline-block;
    margin: 4px auto 8px;
}
.dev-login-hint {
    color: var(--text-faint);
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

/* ============ ADMIN TABS ============ */
.forum-admin-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 28px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 0;
}
.forum-admin-tabs a {
    padding: 12px 22px;
    color: var(--text-faint);
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}
.forum-admin-tabs a:hover { color: var(--gold-soft); }
.forum-admin-tabs a.is-active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ============ PROFILE ============ */
.profile-card {
    background: linear-gradient(180deg,
                rgba(20, 14, 28, 0.72),
                rgba(14, 9, 20, 0.86));
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 4px;
    padding: 36px 36px 28px;
    position: relative;
}
.profile-card-head {
    display: flex;
    gap: 22px;
    align-items: center;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(154, 119, 196, 0.25));
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}
.profile-name {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--text-bright);
    line-height: 1.1;
}
.profile-handle {
    color: var(--text-faint);
    font-size: 13px;
    letter-spacing: 1px;
    margin-top: 4px;
}
.profile-role {
    margin-top: 10px;
}
.profile-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0 0 26px;
}
.profile-fields > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.08);
    align-items: baseline;
}
.profile-fields dt {
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0;
}
.profile-fields dd {
    color: var(--text);
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}
.profile-fields dd a {
    color: var(--gold);
    text-decoration: none;
}
.profile-fields dd a:hover { text-decoration: underline; }
.profile-fields .profile-bio dd {
    font-style: italic;
    color: var(--text-soft);
}
.profile-discount {
    color: var(--gold-soft) !important;
    font-weight: 500;
}
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}
.profile-stat {
    text-align: center;
    padding: 16px 8px;
    background: rgba(212, 175, 55, 0.04);
    border-radius: 3px;
    border: 1px solid rgba(212, 175, 55, 0.08);
}
.profile-stat-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
}
.profile-stat-label {
    display: block;
    color: var(--text-faint);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.profile-hint {
    margin-top: 22px;
    color: var(--text-faint);
    font-size: 12px;
    text-align: center;
    font-style: italic;
}
.forum-subtitle {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--text-bright);
    margin: 28px 0 16px;
    letter-spacing: 1px;
}

/* ============ WAITLIST ADMIN ============ */
.wl-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 18px 0 28px;
}
.wl-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 3px;
    color: var(--text-faint);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}
.wl-filter:hover {
    color: var(--text);
    border-color: rgba(212, 175, 55, 0.3);
}
.wl-filter.is-active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.5);
}
.wl-filter-count {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 10px;
}
.wl-filter.is-active .wl-filter-count {
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold);
}

.wl-issued {
    background: rgba(122, 87, 165, 0.16);
    border: 1px solid rgba(154, 119, 196, 0.42);
    color: var(--text-bright);
    padding: 14px 18px;
    border-radius: 3px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
}

.wl-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.wl-card {
    background: rgba(14, 9, 20, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 4px;
    padding: 22px 24px;
}
.wl-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.1);
}
.wl-card-name {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--text-bright);
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.wl-card-status {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
    font-family: var(--font-sans);
    border: 1px solid;
}
.wl-card-status-new {
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.08);
}
.wl-card-status-contacted {
    color: #c9b4ff;
    border-color: rgba(154, 119, 196, 0.5);
    background: rgba(154, 119, 196, 0.1);
}
.wl-card-status-accepted {
    color: #8ed09a;
    border-color: rgba(120, 200, 130, 0.5);
    background: rgba(120, 200, 130, 0.08);
}
.wl-card-status-declined {
    color: #d68a8a;
    border-color: rgba(200, 100, 100, 0.4);
    background: rgba(200, 100, 100, 0.06);
}
.wl-card-status-spam {
    color: var(--text-faint);
    border-color: rgba(120, 120, 120, 0.3);
    background: rgba(120, 120, 120, 0.06);
}
.wl-card-date {
    color: var(--text-faint);
    font-size: 12px;
    letter-spacing: 0.5px;
}
.wl-card-fields {
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wl-card-fields > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: baseline;
}
.wl-card-fields dt {
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.wl-card-fields dd {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}
.wl-card-fields .wl-about dd {
    color: var(--text-soft);
}
.wl-card-fields a {
    color: var(--gold);
    text-decoration: none;
}
.wl-card-fields a:hover { text-decoration: underline; }

.wl-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px dashed rgba(212, 175, 55, 0.1);
}
.wl-note-input {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.14);
    color: var(--text);
    font-size: 13px;
    border-radius: 2px;
    font-family: var(--font-sans);
}
.wl-note-input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.4);
}
.wl-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-sm {
    padding: 8px 14px;
    font-size: 10px;
    letter-spacing: 1.5px;
}
.wl-spam { opacity: 0.6; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
    .hero { padding: 40px 24px 80px; }
    .hero-logo { font-size: 64px; letter-spacing: 14px; margin-left: 14px; }
    .hero-subtitle { font-size: 18px; }
    .section { padding: 70px 24px; }
    .section-title { font-size: 32px; }
    .manifest-list li { font-size: 19px; }
    .manifest-list li:not(:last-child)::after { width: 22px; margin-top: 10px; }
    .manifest-sign { margin-top: 30px; }
    .manifest-sign::before, .manifest-sign::after { display: none; }
    .event-card, .format-card { padding: 24px 22px; }
    .faq-item summary { padding: 16px 18px; font-size: 17px; }
    .faq-a { padding: 0 18px 18px; font-size: 14px; }
    .waitlist-form { padding: 26px 20px; }
    .corner { width: 44px; height: 44px; }
    .corner-tl, .corner-tr { top: 16px; }
    .corner-bl, .corner-br { bottom: 16px; }
    .corner-tl, .corner-bl { left: 16px; }
    .corner-tr, .corner-br { right: 16px; }
    .outer-frame { inset: 10px; }
}
@media (max-width: 860px) {
    .profile-card { padding: 26px 20px 22px; }
    .profile-card-head { gap: 16px; }
    .profile-avatar { width: 52px; height: 52px; font-size: 22px; }
    .profile-name { font-size: 22px; }
    .profile-fields > div {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 8px 0;
    }
    .profile-stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .profile-stat-value { font-size: 24px; }
    .wl-card-fields > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .wl-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .forum-admin-tabs { overflow-x: auto; }
    .forum-admin-tabs a {
        padding: 10px 14px;
        font-size: 10px;
        letter-spacing: 1.5px;
        white-space: nowrap;
    }
}
@media (max-width: 480px) {
    .hero-logo { font-size: 48px; letter-spacing: 9px; margin-left: 9px; }
    .hero-eyebrow { font-size: 10px; letter-spacing: 5px; }
    .section-title { font-size: 26px; }
    .section-label { font-size: 9px; letter-spacing: 4px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { padding: 13px 22px; font-size: 11px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ NAV CTA (Анкета / Профиль) ============ */
.nav {
    display: flex;
    align-items: center;
}
.nav a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.header-actions .nav-apply,
.nav .nav-apply {
    border: 1px solid rgba(212,175,55,.55);
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(212,175,55,.05));
    color: rgba(245,225,160,.95) !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.header-actions .nav-apply:hover,
.nav .nav-apply:hover {
    background: linear-gradient(135deg, rgba(212,175,55,.3), rgba(212,175,55,.12));
    border-color: rgba(212,175,55,.8);
    transform: translateY(-1px);
}
.header-actions .nav-profile,
.nav .nav-profile {
    color: rgba(244,236,214,.7) !important;
    gap: 6px;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.header-actions .nav-profile::before,
.nav .nav-profile::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.4px solid rgba(212,175,55,.65);
    display: inline-block;
    flex-shrink: 0;
    transform: translateY(-0.5px);
}

.header-actions .nav-profile-pill,
.nav .nav-profile-pill {
    border: 1px solid rgba(212,175,55,.45);
    padding: 7px 16px 7px 30px;
    border-radius: 999px;
    background: rgba(20,8,32,.7);
    color: rgba(245,225,160,.96) !important;
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    transition: border-color .2s ease, background .2s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.header-actions .nav-profile-pill:hover,
.nav .nav-profile-pill:hover {
    border-color: rgba(212,175,55,.7);
    background: rgba(30,16,46,.85);
}
.header-actions .nav-profile-pill::before,
.nav .nav-profile-pill::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(212,175,55,.9);
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(212,175,55,.55);
}

/* ============ ARTISTS PITCH (продюсерский блок) ============ */
.artists-pitch {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    border-top: 1px solid rgba(212,175,55,.1);
    border-bottom: 1px solid rgba(212,175,55,.1);
}
.artists-pitch::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212,175,55,.06) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(67,30,90,.4) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}
.artists-pitch::after {
    content: "♪";
    position: absolute;
    right: -20px;
    top: 60px;
    font-size: 220px;
    color: rgba(212,175,55,.04);
    font-family: var(--font-display, serif);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}
.artists-pitch-inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}
.artists-pitch-eyebrow {
    font-size: .82rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(212,175,55,.92);
    margin-bottom: 22px;
    display: inline-block;
    padding-left: 0;
}
.artists-pitch-eyebrow::before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 1px;
    background: rgba(212,175,55,.7);
    vertical-align: middle;
    margin-right: 14px;
}
.artists-pitch-title {
    font-family: var(--font-display, var(--font-serif, serif));
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.1;
    margin: 0 0 24px;
    color: rgba(245,236,214,.97);
    max-width: 820px;
}
.artists-pitch-lead {
    color: rgba(244,236,214,.78);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 760px;
    margin: 0 0 32px;
}

.artists-pitch-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.artists-pitch-tag {
    padding: 7px 14px;
    border: 1px solid rgba(212,175,55,.25);
    border-radius: 999px;
    color: rgba(244,236,214,.7);
    font-size: .82rem;
    letter-spacing: .05em;
    background: rgba(20,8,32,.4);
    transition: border-color .25s ease, color .25s ease;
}
.artists-pitch-tag:hover {
    border-color: rgba(212,175,55,.55);
    color: rgba(245,225,160,.95);
}

.artists-pitch-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 760px) {
    .artists-pitch-grid { grid-template-columns: 1fr; }
}
.artists-pitch-card {
    position: relative;
    padding: 32px 26px 28px;
    border: 1px solid rgba(212,175,55,.2);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(20,8,32,.6), rgba(8,4,16,.5));
    transition: border-color .25s ease, transform .3s ease, box-shadow .3s ease;
}
.artists-pitch-card:hover {
    border-color: rgba(212,175,55,.45);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,.4);
}
.artists-pitch-card-num {
    font-family: var(--font-display, serif);
    color: rgba(212,175,55,.5);
    font-size: 1rem;
    letter-spacing: .15em;
    margin-bottom: 16px;
}
.artists-pitch-card-title {
    font-family: var(--font-display, serif);
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: rgba(245,236,214,.95);
    font-style: italic;
}
.artists-pitch-card-body {
    color: rgba(244,236,214,.66);
    font-size: .95rem;
    line-height: 1.65;
}

.artists-pitch-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.artists-pitch-footnote {
    color: rgba(244,236,214,.42);
    font-size: .85rem;
    letter-spacing: .03em;
    margin: 0;
}

/* ============ JOIN PITCH (компактный, для гостей) ============ */
.join-pitch-compact { padding: 60px 0 80px; }
.join-pitch-compact .join-pitch-inner { max-width: 720px; }
.join-pitch-compact .join-pitch-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.join-pitch-compact .join-pitch-lead { font-size: .98rem; margin-bottom: 32px; }

/* ============ JOIN PITCH (заменяет старую waitlist форму) ============ */
.join-pitch {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}
.join-pitch::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(67,30,90,.35) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(212,175,55,.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.join-pitch-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}
.join-pitch-eyebrow {
    font-size: .8rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(212,175,55,.85);
    margin-bottom: 22px;
}
.join-pitch-eyebrow::before,
.join-pitch-eyebrow::after {
    content: "";
    display: inline-block;
    width: 36px;
    height: 1px;
    background: rgba(212,175,55,.5);
    vertical-align: middle;
    margin: 0 14px;
}
.join-pitch-title {
    font-family: var(--font-display, var(--font-serif, serif));
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.15;
    margin: 0 0 22px;
    font-style: italic;
    color: rgba(245,236,214,.96);
}
.join-pitch-lead {
    color: rgba(244,236,214,.72);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 50px;
}

.join-pitch-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    text-align: left;
}
@media (max-width: 760px) {
    .join-pitch-grid { grid-template-columns: 1fr; }
}
.join-pitch-card {
    position: relative;
    padding: 26px 22px 24px;
    border: 1px solid rgba(212,175,55,.18);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(20,8,32,.55), rgba(8,4,16,.4));
    transition: border-color .25s ease, transform .25s ease;
}
.join-pitch-card:hover {
    border-color: rgba(212,175,55,.4);
    transform: translateY(-2px);
}
.join-pitch-card-num {
    font-family: var(--font-display, serif);
    color: rgba(212,175,55,.45);
    font-size: .9rem;
    letter-spacing: .15em;
    margin-bottom: 14px;
}
.join-pitch-card-title {
    font-family: var(--font-display, serif);
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: rgba(245,236,214,.95);
}
.join-pitch-card-body {
    color: rgba(244,236,214,.62);
    font-size: .92rem;
    line-height: 1.6;
}

.join-pitch-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.btn-lg {
    padding: 14px 32px;
    font-size: .95rem;
    letter-spacing: .12em;
}
.join-pitch-footnote {
    color: rgba(244,236,214,.4);
    font-size: .82rem;
    letter-spacing: .03em;
    margin: 0;
}

/* ============ EVENT CARD (clickable on landing) ============ */
.event-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, border-color .25s ease;
}
.event-card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(212,175,55,.4);
}
.event-card-cta {
    margin-top: auto;
    padding-top: 14px;
    color: rgba(212,175,55,.85);
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ============ EVENT DETAIL PAGE ============ */
.event-detail-section { padding-top: 40px; }
.event-back {
    display: inline-block;
    margin-bottom: 28px;
    color: rgba(244,236,214,.55);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s ease;
}
.event-back:hover { color: rgba(212,175,55,.9); }

.event-hero {
    text-align: center;
    padding: 30px 0 50px;
    border-bottom: 1px solid rgba(212,175,55,.18);
    margin-bottom: 50px;
}
.event-hero-date {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    color: rgba(212,175,55,.85);
    font-size: .95rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.event-hero-day {
    font-size: 2.2rem;
    font-weight: 600;
    color: rgba(244,236,214,.95);
    letter-spacing: 0;
}
.event-hero-month, .event-hero-time { color: rgba(244,236,214,.65); }
.event-hero-title {
    font-family: var(--font-display, serif);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    margin: 0 0 18px;
}
.event-hero-meta {
    color: rgba(244,236,214,.6);
    font-size: 1rem;
    letter-spacing: .04em;
}

.event-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    align-items: start;
}
@media (max-width: 880px) {
    .event-grid { grid-template-columns: 1fr; }
}
.event-description {
    color: rgba(244,236,214,.85);
    line-height: 1.75;
    font-size: 1.05rem;
}
.event-description p { margin: 0 0 1em; }

.event-facts {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 28px;
}
.event-facts > div { border-top: 1px solid rgba(212,175,55,.15); padding-top: 14px; }
.event-facts dt {
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(212,175,55,.7);
    margin-bottom: 6px;
}
.event-facts dd {
    margin: 0;
    color: rgba(244,236,214,.92);
    font-size: 1rem;
    line-height: 1.5;
}
.event-facts dd small { color: rgba(244,236,214,.55); font-size: .85em; }

.event-cta-card {
    background: linear-gradient(160deg, rgba(67,30,90,.55), rgba(20,8,32,.7));
    border: 1px solid rgba(212,175,55,.3);
    border-radius: 14px;
    padding: 32px 28px;
    position: sticky;
    top: 100px;
}
.event-cta-eyebrow {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(212,175,55,.85);
    margin-bottom: 10px;
}
.event-cta-headline {
    font-family: var(--font-display, serif);
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 14px;
}
.event-cta-body {
    color: rgba(244,236,214,.78);
    line-height: 1.55;
    margin-bottom: 24px;
}
.event-cta-btn { width: 100%; justify-content: center; }
.event-cta-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.event-cta-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(244,236,214,.72);
    font-size: .88rem;
    line-height: 1.5;
}
.event-cta-steps li span {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,.55);
    background: rgba(212,175,55,.1);
    color: rgba(245,225,160,.95);
    font-size: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display, serif);
    margin-top: 1px;
}
.event-cta-or {
    text-align: center;
    margin: 18px 0;
    color: rgba(244,236,214,.4);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    position: relative;
}
.event-cta-or::before, .event-cta-or::after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 1px;
    background: rgba(212,175,55,.25);
    vertical-align: middle;
    margin: 0 12px;
}
.event-cta-secondary { width: 100%; justify-content: center; }
.event-cta-hint {
    margin-top: 18px;
    color: rgba(244,236,214,.55);
    font-size: .85rem;
    line-height: 1.5;
}

/* ============ APPLY FORM PAGE ============ */
.apply-section { padding-top: 40px; }
.apply-hero { text-align: center; margin-bottom: 40px; }
.apply-eyebrow {
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(212,175,55,.85);
    margin-bottom: 14px;
}
.apply-title {
    font-family: var(--font-display, serif);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 0 0 14px;
}
.apply-sub {
    color: rgba(244,236,214,.65);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}
.apply-alert { max-width: 680px; margin: 0 auto 28px; }

.apply-switch {
    display: inline-flex;
    margin: 30px auto 0;
    padding: 4px;
    border: 1px solid rgba(212,175,55,.25);
    border-radius: 999px;
    background: rgba(20,8,32,.6);
    gap: 4px;
}
.apply-switch-tab {
    padding: 9px 22px;
    border-radius: 999px;
    color: rgba(244,236,214,.6);
    text-decoration: none;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}
.apply-switch-tab:hover { color: rgba(244,236,214,.95); }
.apply-switch-tab.is-active {
    background: linear-gradient(135deg, rgba(212,175,55,.3), rgba(212,175,55,.12));
    color: rgba(245,225,160,.97);
    border: 1px solid rgba(212,175,55,.5);
    padding: 8px 21px;
}

.apply-artist-block {
    padding: 24px 24px 6px;
    border: 1px solid rgba(212,175,55,.25);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(67,30,90,.25), rgba(20,8,32,.4));
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}
.apply-artist-label {
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(212,175,55,.9);
    margin-bottom: 6px;
}
.apply-form {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}
.apply-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 680px) {
    .apply-row { grid-template-columns: 1fr; }
}
.apply-field-narrow { max-width: 160px; }
.apply-field { display: flex; flex-direction: column; gap: 6px; }
.apply-label {
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(244,236,214,.7);
}
.apply-form input,
.apply-form select,
.apply-form textarea {
    background: rgba(20,8,32,.55);
    border: 1px solid rgba(212,175,55,.22);
    color: rgba(244,236,214,.96);
    padding: 12px 14px;
    border-radius: 8px;
    font: inherit;
    transition: border-color .2s ease, background .2s ease;
}
.apply-form select {
    color-scheme: dark;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%3E%3Cpath%20fill%3D%22%23D4AF37%22%20d%3D%22M6%208L0%200h12z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px 7px;
    padding-right: 38px;
    cursor: pointer;
}
.apply-form select option {
    background-color: #0c0612;
    color: #f4ecd6;
}
.apply-form select:focus {
    outline: none;
    border-color: rgba(212,175,55,.6);
    background-color: rgba(30,16,46,.7);
}
.apply-form input:focus,
.apply-form textarea:focus {
    outline: none;
    border-color: rgba(212,175,55,.6);
    background: rgba(30,16,46,.7);
}
.apply-form textarea { resize: vertical; min-height: 120px; }
.apply-actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.apply-hint {
    margin-top: 18px;
    color: rgba(244,236,214,.5);
    font-size: .85rem;
    text-align: center;
}
.apply-after {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.alert-success {
    background: rgba(40, 80, 50, .35);
    border: 1px solid rgba(120,200,140,.4);
    color: rgba(220,240,225,.95);
    padding: 18px 22px;
    border-radius: 10px;
    line-height: 1.6;
}
.alert-error {
    background: rgba(80, 30, 30, .35);
    border: 1px solid rgba(220,120,120,.4);
    color: rgba(245,225,225,.95);
    padding: 18px 22px;
    border-radius: 10px;
}

/* ============ TICKET (QR) ============ */
.ticket-screen { padding-top: 40px; }
.ticket-back {
    display: inline-block;
    margin-bottom: 28px;
    color: rgba(244,236,214,.5);
    text-decoration: none;
    font-size: .9rem;
}
.ticket-back:hover { color: rgba(212,175,55,.9); }

.ticket-card {
    max-width: 420px;
    margin: 0 auto;
    background: linear-gradient(170deg, #181023 0%, #0c0612 100%);
    border: 1px solid rgba(212,175,55,.35);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(212,175,55,.06) inset;
    position: relative;
}
.ticket-card::before,
.ticket-card::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    height: 14px;
    background-image: radial-gradient(circle at 8px 7px, #050507 7px, transparent 7px);
    background-size: 18px 14px;
    background-repeat: repeat-x;
}
.ticket-card::before { top: calc(50% - 7px); }
.ticket-card::after { display: none; }

.ticket-head {
    text-align: center;
    padding: 28px 24px 14px;
    border-bottom: 1px dashed rgba(212,175,55,.2);
}
.ticket-brand {
    font-family: var(--font-display, serif);
    font-size: 2rem;
    letter-spacing: .25em;
    color: rgba(212,175,55,.95);
}
.ticket-eyebrow {
    margin-top: 6px;
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(244,236,214,.5);
}

.ticket-qr {
    padding: 26px;
    display: flex;
    justify-content: center;
    background: rgba(20,10,30,.4);
}
.ticket-qr canvas {
    background: #f4ecd6;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,.4);
    image-rendering: pixelated;
}

.ticket-info {
    padding: 24px;
}
.ticket-title {
    font-family: var(--font-display, serif);
    font-size: 1.3rem;
    line-height: 1.25;
    margin-bottom: 6px;
}
.ticket-event-meta { color: rgba(244,236,214,.6); font-size: .9rem; }
.ticket-event-time {
    color: rgba(212,175,55,.85);
    font-size: .95rem;
    letter-spacing: .04em;
    margin-top: 4px;
}
.ticket-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.3), transparent);
    margin: 18px 0;
}
.ticket-holder, .ticket-id { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; font-size: .9rem; }
.ticket-label {
    color: rgba(244,236,214,.5);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .75rem;
}
.ticket-id code {
    background: rgba(20,8,32,.7);
    border: 1px solid rgba(212,175,55,.15);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .75rem;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ticket-status-row { text-align: center; margin-top: 14px; }
.ticket-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1px solid rgba(212,175,55,.3);
    color: rgba(244,236,214,.85);
}
.ticket-status-paid, .ticket-status-approved {
    background: rgba(212,175,55,.12);
    border-color: rgba(212,175,55,.5);
    color: rgba(245,225,160,.95);
}
.ticket-status-attended {
    background: rgba(40,80,50,.3);
    border-color: rgba(120,200,140,.5);
    color: rgba(220,240,225,.95);
}

.ticket-hint {
    text-align: center;
    color: rgba(244,236,214,.45);
    font-size: .8rem;
    padding: 0 24px 26px;
    line-height: 1.5;
}

.profile-event-ticket {
    align-self: center;
    white-space: nowrap;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
