/* ============================================================
   QUIET PLACE — design system
   Палитра: глубокий чёрный + холодный фиолет (свечение MED-01)
   ============================================================ */

:root {
    --bg:           #07050d;
    --bg-elev:      #0d0a17;
    --surface:      #15101e;
    --surface-2:    #1c1628;
    --border:       #2a2138;
    --border-soft:  #1f1830;

    --text:         #ece8f5;
    --text-dim:     #a59cb8;
    --text-mute:    #6b6280;

    --accent:       #8b4ad9;
    --accent-soft:  #6a3aa8;
    --accent-glow:  #b58cff;
    --accent-deep:  #2a1245;

    --danger:       #d65478;
    --warn:         #d69854;
    --ok:           #6ad08a;

    --shadow-glow:  0 0 32px rgba(139, 74, 217, 0.18);
    --shadow-card:  0 12px 32px -16px rgba(0, 0, 0, 0.7),
                    0 0 0 1px var(--border-soft);

    --font-display: 'Unbounded', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', monospace;

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 22px;

    --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%,
            rgba(139, 74, 217, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 40% at 100% 100%,
            rgba(106, 58, 168, 0.08), transparent 70%);
    background-attachment: fixed;
}

/* фоновая «зернистая» текстура — еле заметная, без картинок */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px, transparent 3px);
    z-index: 1;
    mix-blend-mode: overlay;
}

a {
    color: var(--accent-glow);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--text); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.3; }

p { color: var(--text-dim); }

::selection { background: var(--accent); color: #fff; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

main { position: relative; z-index: 2; }

section { padding: 96px 0; }
section.tight { padding: 56px 0; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-glow);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 12px;
    border: 1px solid var(--accent-soft);
    border-radius: 999px;
    background: rgba(139, 74, 217, 0.08);
    margin-bottom: 20px;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 680px;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 5, 13, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text);
    font-size: 1.05rem;
}
.nav__brand:hover { color: var(--accent-glow); }

.nav__brand-mark {
    width: 26px; height: 26px;
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 12px rgba(139, 74, 217, 0.5);
}
.nav__brand-mark::after {
    content: '';
    position: absolute; inset: 5px;
    background: var(--accent);
    border-radius: 1px;
    opacity: 0.7;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav__links a {
    color: var(--text-dim);
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-size: 0.93rem;
    font-weight: 500;
    transition: all 0.15s ease;
}
.nav__links a:hover {
    color: var(--text);
    background: var(--surface);
}
.nav__links a.is-active {
    color: var(--accent-glow);
    background: rgba(139, 74, 217, 0.1);
}

.nav__cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__burger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    width: 38px; height: 38px;
    cursor: pointer;
    align-items: center; justify-content: center;
}

@media (max-width: 880px) {
    .nav__links {
        position: fixed;
        top: 64px; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-elev);
        border-bottom: 1px solid var(--border-soft);
        padding: 12px;
        transform: translateY(-120%);
        transition: transform 0.25s ease;
    }
    .nav__links.is-open { transform: translateY(0); }
    .nav__links a { padding: 12px 14px; }
    .nav__burger { display: inline-flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 1px var(--accent-soft),
                0 8px 24px -8px rgba(139, 74, 217, 0.6);
}
.btn--primary:hover {
    background: var(--accent-glow);
    color: var(--bg);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent-glow);
    background: rgba(139, 74, 217, 0.06);
}

.btn--danger {
    background: transparent;
    color: var(--danger);
    border-color: rgba(214, 84, 120, 0.4);
}
.btn--danger:hover {
    background: rgba(214, 84, 120, 0.1);
}

.btn--lg { height: 50px; padding: 0 28px; font-size: 1rem; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ============================================================
   HERO (главная)
   ============================================================ */

.hero {
    padding: 110px 0 80px;
    position: relative;
}

.hero__grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 6.4rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, #b58cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__title-sub {
    display: block;
    font-size: 0.45em;
    color: var(--text-mute);
    font-family: var(--font-mono);
    letter-spacing: 0.3em;
    margin-top: 16px;
    text-transform: uppercase;
}

.hero__lead {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 620px;
    margin-bottom: 36px;
}

.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border-soft);
}
.hero__meta-item {
    font-family: var(--font-mono);
    font-size: 0.82rem;
}
.hero__meta-label {
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}
.hero__meta-value { color: var(--text); font-size: 0.95rem; }

/* декоративный «куб» MED-01 */
.cube {
    position: absolute;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    width: 360px; height: 360px;
    pointer-events: none;
    opacity: 0.55;
}
.cube__face {
    position: absolute; inset: 0;
    border: 1px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(139, 74, 217, 0.4) inset,
                0 0 60px rgba(139, 74, 217, 0.3);
    animation: cube-pulse 6s ease-in-out infinite;
}
.cube__face:nth-child(2) { transform: rotate(15deg) scale(0.85); opacity: 0.5; animation-delay: -2s; }
.cube__face:nth-child(3) { transform: rotate(-12deg) scale(0.7); opacity: 0.3; animation-delay: -4s; }
@keyframes cube-pulse {
    0%, 100% { box-shadow: 0 0 60px rgba(139, 74, 217, 0.3) inset, 0 0 60px rgba(139, 74, 217, 0.2); }
    50%      { box-shadow: 0 0 100px rgba(181, 140, 255, 0.5) inset, 0 0 100px rgba(181, 140, 255, 0.4); }
}

@media (max-width: 980px) {
    .cube { display: none; }
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */

.section-head {
    margin-bottom: 56px;
    max-width: 720px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.card:hover::before { opacity: 1; }

.card__icon {
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    background: rgba(139, 74, 217, 0.12);
    color: var(--accent-glow);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
}
.card__title { margin-bottom: 8px; }
.card__text { font-size: 0.95rem; color: var(--text-dim); }

/* ============================================================
   LORE — стилизация архивов ОБЕЛИСК ZERO
   ============================================================ */

.lore-archive {
    position: relative;
    padding: 40px;
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    margin-bottom: 32px;
}
.lore-archive::before {
    content: 'OBELISK ZERO // ARCHIVE';
    position: absolute;
    top: -10px; left: 24px;
    background: var(--bg);
    padding: 0 12px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-mute);
    letter-spacing: 0.2em;
}

.lore-block {
    margin-bottom: 64px;
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--border);
}
.lore-block:hover { border-left-color: var(--accent); }
.lore-block__num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-glow);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}
.lore-block h3 { margin-bottom: 16px; font-size: 1.6rem; }
.lore-block p {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 1.02rem;
}
.lore-block p.muted { color: var(--text-dim); font-style: italic; }

.lore-quote {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--accent-glow);
    line-height: 1.4;
    padding: 20px 0;
    margin: 16px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    font-style: italic;
}

.lore-tenzi {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px 20px;
    padding: 24px;
    background: rgba(139, 74, 217, 0.06);
    border: 1px solid var(--accent-soft);
    border-radius: var(--r-md);
    margin-top: 24px;
}
.lore-tenzi__letter {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-glow);
    text-align: center;
}
.lore-tenzi__word {
    align-self: center;
    color: var(--text);
    font-size: 1.05rem;
}

/* ============================================================
   TEAM
   ============================================================ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.member {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.2s ease;
}
.member:hover {
    border-color: var(--accent-soft);
    transform: translateY(-2px);
}
.member__avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 0 24px rgba(139, 74, 217, 0.3);
}
.member__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 4px;
}
.member__role {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-mute);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ============================================================
   AUTH / FORMS
   ============================================================ */

.auth-wrap {
    min-height: calc(100vh - 64px - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.form-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 36px;
    box-shadow: var(--shadow-card);
}
.form-card__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 6px;
}
.form-card__sub {
    color: var(--text-dim);
    font-size: 0.93rem;
    margin-bottom: 28px;
}
.form-card__footer {
    margin-top: 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.field { margin-bottom: 18px; }
.field__label {
    display: block;
    font-size: 0.83rem;
    color: var(--text-dim);
    margin-bottom: 6px;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.field__input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 74, 217, 0.15);
}
.field__hint {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-mute);
}

.alert {
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    margin-bottom: 18px;
    display: none;
}
.alert.is-shown { display: block; }
.alert--error {
    background: rgba(214, 84, 120, 0.08);
    border: 1px solid rgba(214, 84, 120, 0.3);
    color: var(--danger);
}
.alert--ok {
    background: rgba(106, 208, 138, 0.08);
    border: 1px solid rgba(106, 208, 138, 0.3);
    color: var(--ok);
}

/* ============================================================
   CABINET / ADMIN
   ============================================================ */

.cabinet {
    padding: 64px 0;
}
.cabinet__grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
}
@media (max-width: 880px) {
    .cabinet__grid { grid-template-columns: 1fr; }
}

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 28px;
    text-align: center;
}
.profile-card__skin {
    width: 120px; height: 120px;
    margin: 0 auto 16px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    image-rendering: pixelated;
}
.profile-card__skin img { width: 100%; height: 100%; object-fit: contain; }
.profile-card__login {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 4px;
}
.profile-card__email {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-mute);
    word-break: break-all;
    margin-bottom: 18px;
}

.access-status {
    padding: 14px;
    border-radius: var(--r-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 16px;
}
.access-status--ok {
    background: rgba(106, 208, 138, 0.08);
    border: 1px solid rgba(106, 208, 138, 0.3);
    color: var(--ok);
}
.access-status--no {
    background: rgba(214, 84, 120, 0.06);
    border: 1px solid rgba(214, 84, 120, 0.25);
    color: var(--danger);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 28px;
}
.panel + .panel { margin-top: 20px; }
.panel__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.panel__sub {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin-bottom: 22px;
}

.kv {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px 16px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}
.kv dt { color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; align-self: center;}
.kv dd { color: var(--text); }
@media (max-width: 600px) {
    .kv { grid-template-columns: 1fr; gap: 4px 0; }
    .kv dd { margin-bottom: 12px; }
}

/* admin таблица */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
}
table.users {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
table.users th, table.users td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
table.users th {
    background: var(--surface-2);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-mute);
    letter-spacing: 0.1em;
    font-weight: 500;
}
table.users tr:hover td { background: rgba(139, 74, 217, 0.04); }
table.users td .pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.pill--ok      { background: rgba(106, 208, 138, 0.12); color: var(--ok); }
.pill--no      { background: rgba(214, 84, 120, 0.1);   color: var(--danger); }
.pill--admin   { background: rgba(139, 74, 217, 0.15);  color: var(--accent-glow); }
.pill--support { background: rgba(232, 152, 70, 0.12);  color: #e89846; }
.pill--vip     { background: rgba(181, 140, 255, 0.12); color: #b58cff; }
.pill--dev     { background: rgba(232, 90, 115, 0.12);  color: #e85a73; }

/* tier-select — выпадашка для смены роли поддержки прямо в строке таблицы */
.tier-select {
    height: 28px;
    padding: 0 28px 0 10px;
    background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%23a59cb8' stroke-width='1.4' stroke-linecap='round'/></svg>") no-repeat right 10px center;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.3s ease;
}
.tier-select:hover { border-color: var(--accent-soft); }
.tier-select:focus { outline: none; border-color: var(--accent); }
.tier-select:disabled { opacity: 0.5; cursor: wait; }

/* окраска select под текущий tier */
.tier-select--none    { color: var(--text-mute); }
.tier-select--support { color: #e89846; border-color: rgba(232, 152, 70, 0.4); }
.tier-select--vip     { color: #b58cff; border-color: rgba(181, 140, 255, 0.4); }
.tier-select--dev     { color: #e85a73; border-color: rgba(232, 90, 115, 0.4); }

/* подсветка после удачной/неудачной смены */
.tier-select.flash-ok  { box-shadow: 0 0 0 2px rgba(106, 208, 138, 0.5); }
.tier-select.flash-err { box-shadow: 0 0 0 2px rgba(214, 84, 120, 0.5); }

/* role-select — параллельный селектор для админ-роли. Те же базовые стили,
   просто отдельные цвета чтобы было видно что это разная ось данных. */
.role-select {
    height: 28px;
    padding: 0 28px 0 10px;
    background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%23a59cb8' stroke-width='1.4' stroke-linecap='round'/></svg>") no-repeat right 10px center;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.3s ease;
}
.role-select:hover { border-color: var(--accent-soft); }
.role-select:focus { outline: none; border-color: var(--accent); }
.role-select:disabled { opacity: 0.5; cursor: wait; }

.role-select--user     { color: var(--text-mute); }
.role-select--follower { color: #ffd76a; border-color: rgba(255, 215, 106, 0.4); }
.role-select--curator  { color: #ff7878; border-color: rgba(255, 120, 120, 0.5); }
.role-select--admin    { color: #ff7878; border-color: rgba(255, 120, 120, 0.5); }

.role-select.flash-ok  { box-shadow: 0 0 0 2px rgba(106, 208, 138, 0.5); }
.role-select.flash-err { box-shadow: 0 0 0 2px rgba(214, 84, 120, 0.5); }

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.search-bar input {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.search-bar input:focus { outline: none; border-color: var(--accent); }

/* модалка для выдачи проходки */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(7, 5, 13, 0.8);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 100;
    padding: 20px;
}
.modal-backdrop.is-shown { display: flex; }
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-card);
}
.modal h3 { margin-bottom: 8px; }
.modal p.muted { font-size: 0.9rem; margin-bottom: 18px; color: var(--text-dim); }
.modal__actions {
    display: flex; gap: 10px; justify-content: flex-end;
    margin-top: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    border-top: 1px solid var(--border-soft);
    padding: 48px 0 32px;
    margin-top: 80px;
    color: var(--text-mute);
    font-size: 0.88rem;
    position: relative;
    z-index: 2;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
@media (max-width: 720px) {
    .footer__grid { grid-template-columns: 1fr; gap: 24px; }
}
.footer h4 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 14px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 6px; }
.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer__sig {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-mute);
    letter-spacing: 0.1em;
}

/* ============================================================
   СКИНЫ — превью, загрузка, история
   ============================================================ */

.skin-block {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 720px) {
    .skin-block { grid-template-columns: 1fr; }
}

.skin-current__preview {
    width: 100%;
    aspect-ratio: 1;
    background:
        linear-gradient(135deg, var(--surface-2), var(--bg-elev));
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.skin-current__preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    padding: 12px;
}
.skin-current__empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mute);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    padding: 12px;
}
.skin-current__meta {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.skin-current__limit {
    font-size: 0.78rem;
}

.skin-upload {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skin-upload__file {
    display: block;
    cursor: pointer;
}

.skin-variant {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.skin-variant__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    font-size: 0.92rem;
}
.skin-variant__opt:hover { border-color: var(--accent-soft); }
.skin-variant__opt:has(input:checked) {
    border-color: var(--accent);
    background: rgba(139, 74, 217, 0.06);
}
.skin-variant__opt input { accent-color: var(--accent); }
.skin-variant__opt em { font-style: normal; font-size: 0.85rem; }

.skin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.skin-tile {
    position: relative;
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: 12px;
    transition: border-color 0.15s ease;
}
.skin-tile:hover { border-color: var(--accent-soft); }
.skin-tile.is-current {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 24px -10px rgba(139, 74, 217, 0.4);
}
.skin-tile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    image-rendering: pixelated;
    background: var(--surface-2);
    border-radius: var(--r-sm);
    padding: 8px;
}
.skin-tile__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.72rem;
    gap: 6px;
}
.skin-tile__use {
    width: 100%;
    margin-top: 8px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--r-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    transition: all 0.15s ease;
}
.skin-tile__use:hover {
    border-color: var(--accent);
    background: rgba(139, 74, 217, 0.08);
    color: var(--accent-glow);
}
.skin-tile__badge {
    margin-top: 8px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-glow);
    padding: 4px;
    background: rgba(139, 74, 217, 0.1);
    border-radius: var(--r-sm);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.skin-tile__del {
    position: absolute;
    top: 6px; right: 6px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(7, 5, 13, 0.7);
    border: 1px solid var(--border);
    color: var(--text-mute);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: all 0.15s ease;
    opacity: 0;
}
.skin-tile:hover .skin-tile__del { opacity: 1; }
.skin-tile__del:hover {
    color: var(--danger);
    border-color: var(--danger);
}

/* строки в админке новостей */
.news-row {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: 18px 22px;
    margin-bottom: 14px;
}
.news-row__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 1.05rem;
}
.news-row__body {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-wrap;
}
.news-row__meta {
    font-size: 0.78rem;
}

/* tier-pill в карточке профиля */
.tier-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    vertical-align: middle;
}
.tier-pill--support { background: rgba(232, 152, 70, 0.12);  color: #e89846; }
.tier-pill--vip     { background: rgba(181, 140, 255, 0.12); color: #b58cff; }
.tier-pill--dev     { background: rgba(232, 90, 115, 0.12);  color: #e85a73; }

/* ============================================================
   utility
   ============================================================ */
.hidden { display: none !important; }
.spacer-md { height: 24px; }
.text-mute { color: var(--text-mute); }
.text-mono { font-family: var(--font-mono); }
