:root {
    --bg: #090909;
    --bg-soft: #0c0c0c;
    --panel: rgba(14, 14, 14, .94);
    --panel-solid: #0e0e0e;
    --panel-hover: #171717;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #e5e5e5;
    --muted: #999999;
    --blue: #b9b9b9;
    --blue-light: #f2f2f2;
    --blue-dark: #686868;
    --gold: #e9b53a;
    --gold-light: #f4ca68;
    --gold-dark: #a67c1a;
    --green: #46a758;
    --red: #e5484d;
    --radius: 15px;
    --shadow: 0 18px 48px -22px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 0%, rgba(255,255,255,.035), transparent 33%),
        radial-gradient(circle at 90% 30%, rgba(255,255,255,0.033), transparent 26%),
        var(--bg);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue-light); text-decoration: none; }
a:hover { color: var(--gold-light); }
button { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: 14px; }
h2 { font-size: 1.45rem; margin-bottom: 8px; }
h3 { font-size: 1.05rem; }
p { color: var(--muted); }
::selection { color: #0a0a0a; background: var(--gold-light); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2b2b2b; border-radius: 10px; }

.bg-orb { position: fixed; z-index: -2; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.orb-one { width: 440px; height: 440px; top: -220px; right: 8%; background: rgba(255,255,255,.035); }
.orb-two { width: 350px; height: 350px; bottom: -160px; left: -120px; background: rgba(255,255,255,0.024); }
.bg-grid {
    position: fixed; z-index: -3; inset: 0; pointer-events: none; opacity: .2;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

/* Header */
.topbar {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(6,6,6,.9);
    backdrop-filter: blur(18px);
}
.topbar-inner { max-width: 1440px; min-height: 76px; margin: auto; padding: 0 34px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid #3b3b3b; border-radius: 12px;
    background: linear-gradient(145deg, #1c1c1c, #0b0b0b);
    box-shadow: inset 0 0 18px rgba(255,255,255,.035); overflow: hidden;
}
.brand-mark img { width: 34px; height: 34px; display: block; }
.brand strong { display: block; font-size: 14px; letter-spacing: .14em; }
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a:not(.button) { padding: 9px 11px; color: #aaaaaa; font-size: 13px; border-radius: 8px; white-space: nowrap; }
.main-nav > a:not(.button):hover { color: var(--text); background: rgba(255,255,255,.04); }
.main-nav .nav-admin { color: var(--gold-light); }
.top-user { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; font-weight: 600; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: transparent; cursor: pointer; color: var(--muted); }
.icon-button:hover { color: var(--red); border-color: rgba(239,106,114,.4); }
.online-counters { display: flex; gap: 10px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.online-counters span:first-child { color: var(--green); }
.online-counters-large { font-size: 13px; gap: 18px; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; }

/* General */
.page { width: min(1380px, calc(100% - 64px)); margin: 0 auto; min-height: calc(100vh - 190px); }
.section { padding: 74px 0; }
.eyebrow { display: block; color: var(--gold); font-size: 10px; line-height: 1.5; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.button {
    display: inline-flex; justify-content: center; align-items: center; gap: 8px;
    min-height: 44px; padding: 11px 20px; border: 1px solid #d0d0d0;
    border-radius: 9px; color: #111111; background: linear-gradient(135deg, #f0f0f0, #b5b5b5);
    font-size: 13px; font-weight: 750; cursor: pointer; transition: .2s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.button:hover { color: #000000; transform: translateY(-1px); border-color: #ffffff; box-shadow: 0 11px 28px rgba(0,0,0,.4); }
.button-ghost { background: transparent; color: #bdbdbd; border-color: var(--line-strong); box-shadow: none; }
.button-ghost:hover { background: rgba(255,255,255,.045); color: #ffffff; }
.button-small { min-height: 34px; padding: 7px 13px; font-size: 12px; }
.button-full { width: 100%; }
.heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 44px 0 27px; }
.page-heading h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.muted { color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); padding: 25px; backdrop-filter: blur(12px); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.panel-header h2 { margin: 0; }
.panel-header .eyebrow { margin-bottom: 5px; }
.panel-header > a { font-size: 12px; white-space: nowrap; }

/* Hero */
.hero { min-height: 600px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; padding: 64px 0 70px; }
.hero h1 { font-size: clamp(3.3rem, 6.3vw, 6rem); line-height: .98; letter-spacing: -.055em; margin: 20px 0 27px; }
.hero h1 span { color: transparent; background: linear-gradient(110deg, var(--blue-light), #d4d4d4 45%, var(--gold-light)); background-clip: text; -webkit-background-clip: text; }
.hero-lead { max-width: 620px; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-actions .button { min-height: 50px; padding-inline: 26px; }
.hero-note { display: flex; align-items: center; gap: 15px; margin-top: 40px; }
.hero-note p { margin: 0; font-size: 12px; }
.hero-note strong { color: #d8d8d8; font-size: 13px; }
.seal { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; color: var(--gold); font-family: Georgia, serif; font-size: 23px; flex-shrink: 0; }
.hero-panel { position: relative; padding: 37px 34px 30px; border: 1px solid var(--line-strong); border-radius: 26px; background: linear-gradient(145deg, rgba(18,18,18,.96), rgba(10,10,10,.96)); box-shadow: 0 35px 90px rgba(0,0,0,.35); overflow: hidden; }
.hero-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.025), transparent 70%); pointer-events: none; }
.hero-panel::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; right: -80px; top: -80px; background: rgba(255,255,255,0.055); filter: blur(20px); }
.emblem { text-align: center; padding: 14px 0 31px; }
.emblem-ring { display: grid; place-items: center; width: 142px; height: 142px; margin: 0 auto 18px; border: 1px solid #4a4a4a; outline: 1px solid rgba(255,255,255,.09); outline-offset: 8px; border-radius: 50%; color: var(--gold-light); font-size: 57px; background: radial-gradient(circle, rgba(255,255,255,.07), transparent 70%); }
.emblem-ring img { width: 94px; height: 94px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.emblem > span { font-size: 9px; letter-spacing: .3em; color: var(--gold); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 24px 18px 8px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat strong { display: block; font-size: 30px; color: #f5f5f5; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 11px; }
.stat-online strong { color: var(--green); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.section-heading h2 { font-size: 2rem; margin: 0; }
.section-heading > p { max-width: 430px; margin: 0; font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; padding: 29px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,18,18,.88), rgba(12,12,12,.8)); overflow: hidden; transition: .25s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); background: var(--panel-hover); }
.feature-number { position: absolute; right: 22px; top: 17px; color: rgba(255,255,255,.09); font-size: 38px; font-weight: 800; }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,0.149); border-radius: 12px; background: rgba(255,255,255,0.044); color: var(--blue-light); font-size: 22px; }
.feature-card h3 { font-size: 18px; margin-bottom: 12px; }
.feature-card p { min-height: 66px; font-size: 13px; }
.feature-card a { font-size: 12px; font-weight: 700; }
.join-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; border-top: 1px solid var(--line); }
.join-copy h2 { font-size: 2.7rem; margin-bottom: 20px; }
.check-list { list-style: none; padding: 0; margin: 25px 0 0; }
.check-list li { position: relative; padding-left: 27px; margin: 12px 0; color: #cccccc; font-size: 13px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.requirements-card { padding: 32px; border: 1px solid var(--line-strong); border-left: 3px solid var(--gold-dark); border-radius: 14px; background: rgba(17,17,17,.85); }
.card-kicker { margin-bottom: 23px; font-size: 10px; letter-spacing: .18em; color: var(--gold); }
.requirements-card ol { list-style: none; padding: 0; margin: 0; }
.requirements-card li { display: flex; gap: 17px; padding: 16px 0; border-top: 1px solid var(--line); }
.requirements-card li > span { color: var(--blue-light); font-size: 11px; font-weight: 800; padding-top: 3px; }
.requirements-card strong { font-size: 14px; }
.requirements-card p { margin: 4px 0 0; font-size: 12px; }

/* Auth */
.auth-layout { display: grid; grid-template-columns: .9fr 1.1fr; max-width: 1030px; min-height: 630px; margin: 55px auto; border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.auth-side { position: relative; padding: 55px 46px; background: linear-gradient(150deg, rgba(255,255,255,.045), rgba(12,12,12,.96)); border-right: 1px solid var(--line); }
.auth-side h1 { font-size: 2.8rem; margin: 18px 0; }
.auth-side p { font-size: 14px; max-width: 380px; }
.auth-emblem { margin: 50px 0 26px; color: rgba(255,255,255,0.18); font-family: Georgia, serif; font-size: 88px; line-height: 1; }
.auth-side blockquote { margin: 45px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--gold-light); font-family: Georgia, serif; font-size: 17px; font-style: italic; }
.auth-card { padding: 55px 58px; background: var(--panel-solid); }
.auth-card h2 { font-size: 1.8rem; margin: 9px 0 28px; }
.auth-switch { margin: 25px 0 0; text-align: center; font-size: 13px; }
.form-stack { display: grid; gap: 19px; }

/* Forms */
.field { position: relative; display: grid; gap: 7px; margin-bottom: 18px; }
.field > span { color: #d0d0d0; font-size: 12px; font-weight: 650; }
.field > span b { color: var(--gold); }
.field input, .field textarea, .search-form input, .role-form select {
    width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; outline: none;
    color: #ececec; background: rgba(0,0,0,.42); padding: 12px 14px; font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}
.field input { min-height: 45px; }
.field textarea { resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus, .search-form input:focus, .role-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(255,255,255,0.055); }
.field input::placeholder, .field textarea::placeholder, .search-form input::placeholder { color: #5b5b5b; }
.field small { color: #737373; font-size: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field-age { max-width: 180px; }
.field-row .field-age { max-width: none; }
.form-panel { padding: 32px; }
.form-section-title { display: flex; align-items: flex-start; gap: 14px; margin: 8px 0 23px; padding-top: 7px; }
.form-section-title > span { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.21); border-radius: 9px; color: var(--gold); font-size: 11px; font-weight: 800; }
.form-section-title h2 { font-size: 1.15rem; margin: 1px 0 4px; }
.form-section-title p { margin: 0; font-size: 12px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; margin-bottom: 55px; }
.form-aside { position: sticky; top: 105px; display: grid; gap: 16px; }
.aside-card { padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17,17,17,.8); }
.steps-list { list-style: none; padding: 0; margin: 22px 0 0; }
.steps-list li { display: flex; align-items: center; gap: 13px; position: relative; padding-bottom: 24px; }
.steps-list li:last-child { padding-bottom: 0; }
.steps-list li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 31px; bottom: 3px; width: 1px; background: var(--line-strong); }
.steps-list i { display: grid; place-items: center; z-index: 1; width: 29px; height: 29px; border: 1px solid var(--blue-dark); border-radius: 50%; color: var(--blue-light); background: var(--panel-solid); font-size: 10px; font-style: normal; font-weight: 800; }
.steps-list strong { display: block; font-size: 12px; }
.steps-list small { color: var(--muted); font-size: 10px; }
.aside-note { display: flex; gap: 12px; padding: 17px; border: 1px solid rgba(255,255,255,0.12); border-radius: 11px; background: rgba(255,255,255,0.024); }
.aside-note > span { color: var(--gold); font-weight: 900; }
.aside-note p { margin: 0; font-size: 11px; }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); }
.form-submit-row p { max-width: 390px; margin: 0; font-size: 10px; }
.check-field { display: flex; align-items: flex-start; gap: 10px; color: #d0d0d0; font-size: 12px; cursor: pointer; }
.check-field input { accent-color: var(--blue); margin-top: 3px; }
.call-check { padding: 17px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255,255,255,0.019); }
.call-check strong, .call-check small { display: block; }
.call-check small { margin-top: 3px; color: var(--muted); }
.knowledge-field { padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,0.019); }
.knowledge-field output { color: var(--gold-light); font-size: 19px; font-weight: 800; }
.knowledge-field input[type="range"] { padding: 0; min-height: auto; accent-color: var(--blue); box-shadow: none; background: transparent; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.char-counter { text-align: right; margin-top: -12px; }

/* Dashboard / tickets */
.welcome-card { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 42px 0 24px; padding: 30px 33px; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(120deg, rgba(255,255,255,.035), rgba(10,10,10,.9)); box-shadow: var(--shadow); }
.welcome-profile { display: flex; align-items: center; gap: 20px; }
.welcome-profile h1 { font-size: 1.8rem; margin: 2px 0 8px; }
.profile-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.welcome-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.staff-online-panel { margin-top: 24px; margin-bottom: 50px; }
.online-label { color: var(--green); font-size: 11px; }
.online-label i, .online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(121,184,150,.7); }
.ticket-list { display: grid; }
.ticket-row { display: flex; align-items: center; gap: 14px; padding: 15px 4px; border-top: 1px solid var(--line); color: var(--text); }
.ticket-row:hover { color: var(--text); background: rgba(255,255,255,.018); }
.ticket-id { color: var(--blue-light); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.ticket-main { display: grid; min-width: 0; flex: 1; }
.ticket-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.ticket-main small { color: var(--muted); font-size: 10px; }
.empty-state { text-align: center; padding: 35px 20px; }
.empty-state > span { display: block; color: #3a3a3a; font-size: 43px; margin-bottom: 10px; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; }
.empty-state p { font-size: 12px; margin-bottom: 20px; }
.empty-state.large { padding: 65px 20px; }
.empty-inline { padding: 25px 0; margin: 0; font-size: 12px; }
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.staff-card { position: relative; display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); }
.staff-card:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.02); }
.staff-card > span:not(.avatar) { display: grid; gap: 5px; min-width: 0; }
.staff-card strong { font-size: 12px; }
.staff-card .online-dot { position: absolute; right: 12px; top: 12px; }
.tickets-table { min-width: 780px; }
.tickets-head, .tickets-row { display: grid; grid-template-columns: 80px 1.3fr 130px 155px 155px 25px; gap: 15px; align-items: center; }
.tickets-head { padding: 0 13px 12px; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.tickets-row { padding: 17px 13px; border-top: 1px solid var(--line); color: #b8b8b8; font-size: 11px; }
.tickets-row:hover { color: var(--text); background: rgba(255,255,255,0.019); }
.tickets-row > strong { color: #e5ebf5; font-size: 12px; }
.row-arrow { color: var(--blue-light); font-size: 17px; }
.status { display: inline-flex; align-items: center; justify-content: center; width: max-content; min-height: 24px; padding: 4px 9px; border: 1px solid; border-radius: 20px; font-size: 9px; font-weight: 750; letter-spacing: .04em; white-space: nowrap; }
.status-new { color: #d4d4d4; background: rgba(255,255,255,0.055); border-color: rgba(255,255,255,0.138); }
.status-progress { color: #d8d8d8; background: rgba(255,255,255,0.054); border-color: rgba(255,255,255,0.15); }
.status-success { color: #71d7af; background: rgba(121,184,150,.09); border-color: rgba(121,184,150,.25); }
.status-danger { color: #ff9298; background: rgba(239,106,114,.09); border-color: rgba(239,106,114,.25); }
.status-muted { color: #858585; background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.09); }

/* Profile */
.profile-card { margin: 42px 0 55px; border: 1px solid var(--line-strong); border-radius: 19px; overflow: hidden; background: var(--panel-solid); box-shadow: var(--shadow); }
.profile-banner { height: 260px; background-position: center; background-size: cover; position: relative; }
.banner-default { background: radial-gradient(circle at 75% 30%, rgba(255,255,255,0.078), transparent 25%), linear-gradient(120deg, #191919, #0d0d0d 50%, #242424); }
.banner-default::after { content: "§"; position: absolute; right: 10%; top: 20px; color: rgba(255,255,255,0.072); font-family: Georgia, serif; font-size: 150px; }
.profile-banner-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10,10,10,.9)); }
.profile-body { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; padding: 0 34px 31px; }
.profile-avatar-wrap { margin-top: -56px; z-index: 2; }
.profile-info { padding-top: 22px; }
.profile-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.profile-title-row h1 { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 2rem; }
.profile-bio { max-width: 720px; margin: 20px 0 13px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.profile-meta { display: flex; gap: 20px; color: #777777; font-size: 10px; }
.profile-stats { display: flex; gap: 28px; padding-top: 27px; }
.profile-stats div { text-align: center; }
.profile-stats strong { display: block; font-size: 24px; }
.profile-stats span { color: var(--muted); font-size: 10px; }
.verified-inline { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #0a0a0a; background: var(--gold); font-size: 13px; }
.owner-label { color: var(--gold); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 50px; align-items: start; }
.upload-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.upload-preview { display: grid; justify-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.upload-box { display: grid; gap: 4px; flex: 1; min-width: 190px; padding: 17px; border: 1px dashed var(--line-strong); border-radius: 10px; cursor: pointer; }
.upload-box:hover { border-color: var(--blue); background: rgba(255,255,255,0.017); }
.upload-box strong { font-size: 12px; }
.upload-box small { color: var(--muted); font-size: 9px; }
.upload-box input { margin-top: 8px; max-width: 100%; color: var(--muted); font-size: 9px; }
.upload-wide { width: 100%; margin: 10px 0 13px; }
.settings-grid hr { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
.banner-edit-preview { display: grid; place-items: center; height: 105px; border-radius: 10px; background-position: center; background-size: cover; color: var(--muted); font-size: 11px; }

/* Avatars and roles */
.avatar { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: #d4d4d4; background: linear-gradient(145deg, #2a2a2a, #141414); font-size: 17px; font-weight: 750; vertical-align: middle; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar-small { width: 31px; height: 31px; border-radius: 8px; font-size: 12px; }
.avatar-large { width: 112px; height: 112px; border: 4px solid var(--panel-solid); border-radius: 23px; font-size: 39px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.avatar .verified { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 16px; height: 16px; border: 2px solid var(--panel-solid); border-radius: 50%; color: #0a0a0a; background: var(--gold); font-size: 9px; font-weight: 900; }
.avatar-large .verified { width: 27px; height: 27px; right: -5px; bottom: -3px; font-size: 14px; border-width: 3px; }
.role-pill { display: inline-flex; align-items: center; gap: 5px; width: max-content; color: var(--role-color, #858585); font-size: 9px; font-weight: 700; }
.role-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* Members */
.members-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.member-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 21px 13px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-align: center; }
.member-card:hover { color: var(--text); background: rgba(255,255,255,0.019); border-color: rgba(255,255,255,0.138); }
.member-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 700; }
.member-card .online-dot { position: absolute; top: 12px; right: 12px; }
.online-text { color: var(--green); font-size: 9px; }
.last-seen { color: #6e6e6e; font-size: 9px; }

/* Ticket detail */
.ticket-heading { align-items: center; }
.ticket-heading h1 { font-size: 2rem; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 23px; align-items: start; margin-bottom: 55px; }
.ticket-content { display: grid; gap: 23px; min-width: 0; }
.details-panel { padding: 27px; }
.ticket-date { color: var(--muted); font-size: 10px; }
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.22); }
.details-grid div { display: grid; gap: 4px; }
.details-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.details-grid strong { font-size: 12px; overflow-wrap: anywhere; }
.knowledge-score { color: var(--gold-light); font-size: 19px; }
.yes { color: var(--green); }
.no { color: var(--muted); }
.long-answer { margin-top: 21px; }
.long-answer > span { display: block; margin-bottom: 7px; color: var(--gold); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .11em; }
.long-answer p { margin: 0; padding: 16px 18px; border-left: 2px solid #333333; background: rgba(255,255,255,0.014); white-space: pre-wrap; overflow-wrap: anywhere; color: #c2c2c2; font-size: 12px; line-height: 1.75; }
.applicant-line { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.applicant-line > a { display: flex; align-items: center; gap: 7px; color: var(--text); }
.applicant-line small { margin-left: auto; }
.chat-panel { padding-bottom: 0; overflow: hidden; }
.message-count { display: grid; place-items: center; min-width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; }
.messages { max-height: 540px; min-height: 170px; overflow-y: auto; padding: 4px 4px 20px; }
.message { display: flex; align-items: flex-start; gap: 11px; margin: 18px 0; }
.message-body { max-width: 82%; }
.message-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 5px 2px; }
.message-meta strong { font-size: 11px; }
.message-meta time { color: #6f6f6f; font-size: 9px; }
.staff-tag { color: var(--gold); font-size: 7px; font-weight: 850; letter-spacing: .09em; }
.message-text { padding: 12px 15px; border: 1px solid var(--line); border-radius: 4px 13px 13px 13px; color: #c9c9c9; background: rgba(255,255,255,.025); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; }
.message-staff .message-text { border-color: rgba(255,255,255,0.11); background: rgba(255,255,255,0.036); }
.message-own { flex-direction: row-reverse; }
.message-own .message-body { display: flex; flex-direction: column; align-items: flex-end; }
.message-own .message-meta { flex-direction: row-reverse; }
.message-own .message-text { border-radius: 13px 4px 13px 13px; border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.033); }
.chat-empty { text-align: center; padding: 35px 15px; }
.chat-empty > span { color: #363636; font-size: 39px; }
.chat-empty h3 { margin: 8px 0; }
.chat-empty p { font-size: 11px; }
.message-form { display: flex; gap: 12px; margin: 0 -25px; padding: 18px 25px; border-top: 1px solid var(--line); background: rgba(0,0,0,.25); }
.message-form textarea { flex: 1; min-height: 54px; max-height: 180px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; padding: 13px; color: var(--text); background: rgba(0,0,0,.45); font-size: 12px; }
.message-form textarea:focus { border-color: var(--blue); }
.message-form .button { align-self: flex-end; }
.chat-closed { margin: 0 -25px; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); background: rgba(0,0,0,.13); text-align: center; font-size: 11px; }
.ticket-sidebar { position: sticky; top: 103px; display: grid; gap: 17px; }
.ticket-info-card, .ticket-actions-card { padding: 21px; box-shadow: none; }
.ticket-info-card h3, .ticket-actions-card h3 { padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: 12px; }
.ticket-info-card dl { margin: 0; }
.ticket-info-card dl div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.ticket-info-card dt { color: var(--muted); font-size: 10px; }
.ticket-info-card dd { margin: 0; text-align: right; font-size: 10px; }
.action-list { display: grid; gap: 7px; }
.action-button, .delete-button { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: #bdbdbd; background: rgba(255,255,255,.02); text-align: left; font-size: 10px; cursor: pointer; }
.action-button:hover { color: var(--text); border-color: var(--blue); background: rgba(255,255,255,0.033); }
.action-success { color: #83d9b9; }
.action-danger { color: #f39297; }
.delete-button { margin-top: 13px; border-color: rgba(239,106,114,.2); color: #e68186; background: rgba(239,106,114,.035); text-align: center; }
.delete-button:hover { background: rgba(239,106,114,.1); }

/* Admin */
.admin-nav { display: flex; gap: 4px; margin: -6px 0 24px; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: rgba(17,17,17,.75); width: max-content; max-width: 100%; overflow-x: auto; }
.admin-nav a { padding: 8px 16px; border-radius: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.admin-nav a:hover { color: var(--text); }
.admin-nav a.active { color: #ededed; background: #2a2a2a; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.admin-user-label { color: var(--muted); font-size: 11px; }
.admin-user-label strong { color: var(--gold-light); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat { position: relative; display: grid; padding: 22px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: linear-gradient(140deg, rgba(20,20,20,.88), rgba(14,14,14,.88)); overflow: hidden; }
.admin-stat:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }
.admin-stat > span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.admin-stat strong { margin: 8px 0 1px; font-size: 34px; }
.admin-stat small { color: #767676; font-size: 9px; }
.admin-stat i { position: absolute; right: 19px; top: 24px; color: rgba(255,255,255,.08); font-size: 31px; font-style: normal; }
.admin-stat-gold i { color: rgba(255,255,255,0.144); }
.admin-recent-grid { margin-bottom: 50px; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 15px; }
.filter-bar > span { font-size: 10px; white-space: nowrap; }
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tabs a { padding: 6px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); font-size: 9px; }
.filter-tabs a:hover { color: var(--text); }
.filter-tabs a.active { color: var(--blue-light); border-color: rgba(255,255,255,0.138); background: rgba(255,255,255,0.044); }
.admin-ticket-list { min-width: 850px; }
.admin-ticket-row { display: grid; grid-template-columns: 65px minmax(210px,1.2fr) 1fr 110px 135px 18px; align-items: center; gap: 14px; padding: 15px 10px; border-top: 1px solid var(--line); color: #b0b0b0; }
.admin-ticket-row:hover { color: var(--text); background: rgba(255,255,255,0.014); }
.admin-ticket-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-ticket-person > span { display: grid; min-width: 0; }
.admin-ticket-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e2e2e2; font-size: 11px; }
.admin-ticket-person small { color: var(--muted); font-size: 9px; }
.admin-ticket-extra { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.admin-ticket-row time { font-size: 9px; }
.search-form { display: flex; gap: 7px; }
.search-form input { width: 220px; min-height: 37px; padding: 8px 12px; }
.owner-note { color: var(--gold); font-size: 9px; }
.users-table { overflow-x: auto; }
.users-head, .user-row { display: grid; grid-template-columns: minmax(190px,1.15fr) minmax(170px,.9fr) 130px 115px minmax(250px,1.2fr); gap: 15px; align-items: center; min-width: 1030px; }
.users-head { padding: 0 12px 11px; color: var(--muted); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.user-row { padding: 14px 12px; border-top: 1px solid var(--line); }
.user-row:hover { background: rgba(255,255,255,.015); }
.user-identity { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); }
.user-identity > span { display: grid; min-width: 0; }
.user-identity strong { font-size: 11px; }
.user-identity small { color: var(--muted); font-size: 8px; }
.user-email { overflow: hidden; text-overflow: ellipsis; color: #a6a6a6; font-size: 10px; }
.last-seen-cell { color: var(--muted); font-size: 9px; }
.user-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.role-form { display: flex; gap: 5px; }
.role-form select { width: 115px; min-height: 30px; padding: 5px 7px; font-size: 9px; }
.role-form select option { color: var(--text); background: var(--panel-solid); }
.mini-button { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 6px; color: #bdbdbd; background: rgba(255,255,255,.025); font-size: 8px; cursor: pointer; white-space: nowrap; }
.mini-button:hover { color: var(--text); border-color: var(--blue); }
.mini-danger { color: #ef8e94; }
.badge-button { min-height: 29px; padding: 5px 8px; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; color: var(--gold); background: rgba(255,255,255,0.03); font-size: 8px; cursor: pointer; }
.badge-button.active { color: #0a0a0a; background: var(--gold); }
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 50px; }
.role-card { position: relative; padding: 24px; border: 1px solid var(--line); border-top: 2px solid var(--role-color); border-radius: 13px; background: var(--panel); }
.role-card-top { display: flex; justify-content: space-between; align-items: center; }
.role-symbol { color: var(--role-color); font-size: 21px; }
.system-tag { color: #6e6e6e; font-size: 7px; letter-spacing: .13em; }
.role-card h2 { margin: 15px 0 4px; font-size: 1.15rem; }
.role-card > p { font-size: 10px; }
.role-permissions-preview { display: flex; flex-wrap: wrap; gap: 5px; min-height: 60px; margin: 16px 0; }
.role-permissions-preview span { height: max-content; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: #999999; background: rgba(255,255,255,.018); font-size: 7px; }
.role-card-actions { display: flex; gap: 7px; padding-top: 14px; border-top: 1px solid var(--line); }
.role-editor { margin-bottom: 50px; padding: 31px; }
.role-editor-head { display: grid; grid-template-columns: 1fr 210px; gap: 20px; }
.color-input-wrap { display: flex; gap: 7px; }
.color-input-wrap input[type="color"] { width: 48px; padding: 4px; cursor: pointer; }
.color-input-wrap input[type="text"] { flex: 1; font-family: ui-monospace, monospace; }
.permissions-section { margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.permissions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.permission-check { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.permission-check:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.014); }
.permission-check > input { position: absolute; opacity: 0; pointer-events: none; }
.permission-box { display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border: 1px solid #3d3d3d; border-radius: 5px; }
.permission-box i { width: 8px; height: 8px; border-radius: 2px; background: transparent; }
.permission-check input:checked + .permission-box { border-color: var(--blue); background: rgba(255,255,255,0.072); }
.permission-check input:checked + .permission-box i { background: var(--blue-light); }
.permission-check strong, .permission-check small { display: block; }
.permission-check strong { font-size: 10px; }
.permission-check small { color: #6b6b6b; font-family: ui-monospace, monospace; font-size: 7px; margin-top: 2px; }

/* Flash / errors / footer */
.flash-stack { position: fixed; z-index: 100; top: 93px; right: 25px; display: grid; gap: 9px; width: min(390px, calc(100% - 40px)); }
.flash { padding: 14px 17px; border: 1px solid var(--line-strong); border-left: 3px solid var(--blue); border-radius: 9px; color: #e8e8e8; background: rgba(15,15,15,.98); box-shadow: 0 15px 40px rgba(0,0,0,.35); font-size: 12px; cursor: pointer; transition: opacity .3s, transform .3s; }
.flash-success { border-left-color: var(--green); }
.flash-error { border-left-color: var(--red); }
.flash-warning { border-left-color: var(--gold); }
.flash.is-hiding { opacity: 0; transform: translateX(15px); }
.error-page { max-width: 650px; margin: 100px auto; text-align: center; }
.error-code { color: transparent; background: linear-gradient(120deg, var(--blue), var(--gold)); background-clip: text; -webkit-background-clip: text; font-size: 110px; font-weight: 850; line-height: 1; letter-spacing: -.07em; }
.error-page h1 { margin-top: 15px; font-size: 1.7rem; }
.error-page .hero-actions { justify-content: center; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1380px; margin: 30px auto 0; padding: 27px 34px; border-top: 1px solid var(--line); color: #686868; font-size: 10px; }
.footer div { display: flex; align-items: center; gap: 14px; }
.footer strong { color: #a8a8a8; font-size: 11px; letter-spacing: .12em; }

/* Discord */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: #6b6b6b; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.button-discord { color: #f0f0f0; border-color: #3d3d3d; background: linear-gradient(135deg, #2b2b2b, #171717); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.button-discord:hover { color: #ffffff; border-color: #747474; background: linear-gradient(135deg, #353535, #1d1d1d); }
.discord-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #151515; background: #e3e3e3; font-size: 13px; font-weight: 900; }
.discord-note { margin: 10px 0 0; color: #737373; font-size: 9px; text-align: center; }
.discord-note code { color: var(--gold); }
.button.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.button.is-disabled:hover { transform: none; }
.discord-link-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: -26px 0 50px; }
.discord-link-panel h2 { margin-bottom: 7px; }
.discord-link-panel p { max-width: 690px; margin: 0; font-size: 12px; }
.discord-link-panel .button { flex-shrink: 0; }

/* Responsive */
@media (max-width: 1180px) {
    .topbar-inner { padding-inline: 20px; gap: 15px; }
    .main-nav > a:not(.button) { padding-inline: 7px; font-size: 11px; }
    .online-counters { display: none; }
    .hero { gap: 35px; }
    .staff-grid, .members-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .roles-grid { grid-template-columns: repeat(2, 1fr); }
    .users-table, .tickets-table, .admin-ticket-list { overflow-x: auto; }
}
@media (max-width: 920px) {
    .page { width: min(100% - 36px, 760px); }
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; left: 18px; right: 18px; top: 68px; padding: 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: #101010; box-shadow: var(--shadow); }
    .main-nav.is-open { display: grid; }
    .main-nav > a:not(.button) { padding: 12px; font-size: 13px; }
    .top-user { margin-left: auto; }
    .user-chip > span { display: none; }
    .hero { grid-template-columns: 1fr; padding-top: 55px; }
    .hero-copy { text-align: center; }
    .hero-lead { margin-inline: auto; }
    .hero-actions, .hero-note { justify-content: center; }
    .hero-panel { max-width: 540px; width: 100%; margin: auto; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card p { min-height: 0; }
    .join-section { grid-template-columns: 1fr; gap: 35px; }
    .auth-layout { grid-template-columns: 1fr; margin-block: 35px; }
    .auth-side { display: none; }
    .auth-card { padding: 40px; }
    .form-layout, .ticket-layout { grid-template-columns: 1fr; }
    .form-aside, .ticket-sidebar { position: static; }
    .dashboard-grid, .settings-grid { grid-template-columns: 1fr; }
    .welcome-card { align-items: flex-start; flex-direction: column; }
    .welcome-actions { justify-content: flex-start; }
    .profile-body { grid-template-columns: auto 1fr; }
    .profile-stats { grid-column: 1 / -1; justify-content: center; border-top: 1px solid var(--line); padding-top: 20px; }
    .details-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-recent-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .page { width: calc(100% - 26px); }
    .topbar-inner { min-height: 66px; padding-inline: 13px; }
    .brand strong { font-size: 11px; }
    .brand small { font-size: 8px; }
    .brand-mark { width: 36px; height: 36px; }
    .top-user .icon-button { display: none; }
    .hero { min-height: auto; padding-top: 43px; }
    .hero h1 { font-size: 3.4rem; }
    .hero-lead { font-size: 14px; }
    .hero-panel { padding: 27px 21px; }
    .section { padding: 50px 0; }
    .section-heading { display: block; }
    .section-heading h2 { font-size: 1.6rem; }
    .section-heading > p { margin-top: 13px; }
    .join-copy h2 { font-size: 2rem; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-top: 30px; }
    .page-heading .button, .search-form { width: 100%; }
    .search-form input { width: 100%; }
    .form-panel { padding: 21px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .form-submit-row { align-items: stretch; flex-direction: column; }
    .welcome-profile { align-items: flex-start; }
    .welcome-profile h1 { font-size: 1.35rem; }
    .staff-grid, .members-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-banner { height: 180px; }
    .profile-body { display: block; padding: 0 20px 24px; }
    .profile-avatar-wrap { width: max-content; margin-bottom: 14px; }
    .profile-title-row { flex-direction: column; }
    .profile-meta { flex-direction: column; gap: 4px; }
    .profile-stats { justify-content: flex-start; }
    .details-grid { grid-template-columns: 1fr; }
    .message-body { max-width: 90%; }
    .message-form { margin-inline: -21px; padding: 14px; flex-direction: column; }
    .message-form .button { align-self: stretch; }
    .admin-stats { gap: 10px; }
    .admin-stat { padding: 17px; }
    .admin-stat strong { font-size: 27px; }
    .roles-grid, .permissions-grid, .role-editor-head { grid-template-columns: 1fr; }
    .filter-bar { align-items: flex-start; flex-direction: column; }
    .auth-card { padding: 30px 22px; }
    .footer { flex-direction: column; text-align: center; padding-inline: 20px; }
    .footer div { flex-direction: column; gap: 4px; }
    .flash-stack { right: 13px; top: 78px; }
}
/* ============================================================
   Новосибирск RP — расширенный портал
   ============================================================ */
:root {
    --accent: #d7d7d7;
    --accent-soft: rgba(255,255,255,.08);
    --verified: #1d9bf0;
}

/* Универсальные новые компоненты */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 10px 18px; border: 1px solid #d3d3d3;
    border-radius: 9px; background: linear-gradient(135deg, #f1f1f1, #b7b7b7);
    color: #111; font-size: 13px; font-weight: 750; cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { color: #000; transform: translateY(-1px); border-color: #fff; }
.btn-primary { color: #111; }
.btn-ghost { background: transparent; color: #bdbdbd; border-color: var(--line-strong); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.05); }
.btn-danger, .btn-danger:hover { background: rgba(223,114,120,.12); color: #ef9297; border-color: rgba(223,114,120,.35); }
.btn-small { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); padding: 25px; }
.card h2 { margin-bottom: 10px; }
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 17px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(255,255,255,.04); font-size: 23px; }
.card-icon.large { width: 64px; height: 64px; font-size: 30px; }
.team-card { display: flex; flex-direction: column; }
.team-card .btn { margin-top: auto; }
.meta-list { margin: 18px 0 22px; }
.meta-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: #c7c7c7; background: rgba(255,255,255,.04); font-size: 10px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.badge-success { color: #8fd3aa; border-color: rgba(121,184,150,.35); background: rgba(121,184,150,.08); }
.badge-warning { color: #e3c785; border-color: rgba(227,199,133,.3); }
.badge-status-new { color: #d7d7d7; }
.badge-status-in_progress { color: #e3c785; }
.badge-status-accepted { color: #8fd3aa; }
.badge-status-rejected { color: #ef9297; }
.section-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 42px 0 25px; }
.page-head h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.page-head p { margin: 0 0 5px; }
.detail-card { text-align: center; max-width: 780px; margin: 45px auto 20px; }
.detail-card .card-icon { margin-inline: auto; }
.person-line { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 20px 0; }
.person-line small { display: block; color: var(--muted); }
.steps { color: var(--muted); padding-left: 22px; }
.steps li { margin: 10px 0; padding-left: 5px; }
.form-card { max-width: 760px; margin: 40px auto; }
.form-card.wide { max-width: 860px; }
.form { display: grid; gap: 16px; }
.form label:not(.checkbox-line):not(.check-field) { display: grid; gap: 7px; color: #c8c8c8; font-size: 13px; }
.form input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), .form textarea, .form select,
.compact-form input:not([type="checkbox"]):not([type="radio"]), .compact-form textarea, .compact-form select {
    width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; background: #0b0b0b; color: var(--text); padding: 11px 13px; outline: none;
}
.form input:focus, .form textarea:focus, .form select:focus, .compact-form input:focus, .compact-form textarea:focus { border-color: #777; }
.required { color: #ef9297; }
.checkbox-line, .check-field { display: flex; align-items: center; gap: 8px; color: #b7b7b7; font-size: 13px; }
.checkbox-line input, .check-field input { accent-color: #ddd; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 20px; }
.align-start { align-items: start; }
.answer { padding: 13px 0; border-bottom: 1px solid var(--line); }
.answer strong { display: block; margin-bottom: 5px; color: #d5d5d5; font-size: 13px; }
.answer p { margin: 0; white-space: pre-wrap; color: #a4a4a4; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-wrap th, .table-wrap td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.table-wrap th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.stat-card strong { font-size: 22px; }
.stat-card span { color: var(--muted); font-size: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chip { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.chip.active, .chip:hover { color: #fff; border-color: #777; background: rgba(255,255,255,.05); }
.application-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.application-row > span:nth-child(2) { flex: 1; }
.application-row small { display: block; color: var(--muted); }
.question-editor { border: 1px solid var(--line); border-radius: 11px; margin: 10px 0; background: rgba(255,255,255,.02); }
.question-editor summary { display: flex; justify-content: space-between; gap: 10px; padding: 13px 15px; cursor: pointer; list-style: none; }
.question-editor summary::-webkit-details-marker { display: none; }
.question-editor summary small { color: var(--muted); }
.compact-form { padding: 0 15px 15px; gap: 11px; }
.question-actions { padding: 0 15px 14px; }
.add-question { border-style: dashed; }
.inline-form { display: inline-flex; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.actions.wrap { flex-wrap: wrap; }
.message .avatar { flex-shrink: 0; }
.message .message-body { min-width: 0; }
.message-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.message-meta time { color: var(--muted); font-size: 11px; }
.message-text { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Цветные никнеймы и синяя верификация */
.user-name { font-weight: inherit; }
.name-solid { color: var(--name-a); }
.name-gradient {
    color: var(--name-a);
    background: linear-gradient(100deg, var(--name-a), var(--name-b), var(--name-a));
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: name-shine 7s linear infinite;
}
.name-rainbow {
    background: linear-gradient(100deg, #ff6b6b, #ffd93d, #6bff8f, #62c9ff, #b983ff, #ff6b6b);
    background-size: 300% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: name-shine 9s linear infinite;
}
@keyframes name-shine { to { background-position: 200% center; } }
.verified-badge { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; filter: drop-shadow(0 2px 5px rgba(29,155,240,.3)); }
.avatar { position: relative; }
.avatar-verified { position: absolute; right: -2px; bottom: -2px; width: 17px; height: 17px; border-radius: 50%; background: #0b0b0b; }
.avatar-small .avatar-verified { width: 13px; height: 13px; right: -2px; bottom: -2px; }
.avatar-large .avatar-verified { width: 25px; height: 25px; right: 1px; bottom: 2px; }
.verified-inline-icon { display: inline-block; margin-left: 6px; width: 20px; height: 20px; vertical-align: -4px; }
.verified-dot { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 5px; border-radius: 50%; color: #fff; background: var(--verified); font-size: 11px; vertical-align: 2px; }

/* Главная Новосибирск RP */
.rp-hero h1 { font-size: clamp(3rem, 6.5vw, 5.6rem); letter-spacing: -.055em; }
.rp-hero h1 span { color: transparent; -webkit-text-stroke: 1px #8b8b8b; letter-spacing: .02em; }
.rp-hero .hero-lead { max-width: 630px; }
.team-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.team-mini { display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); color: var(--text); }
.team-mini:hover { border-color: #555; background: rgba(255,255,255,.045); transform: translateY(-2px); }
.team-mini-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 11px; font-size: 20px; }
.team-mini strong, .team-mini small { display: block; }
.team-mini small { color: #8fd3aa; font-size: 11px; }
.team-mini.is-closed small { color: var(--muted); }
.team-mini .status-dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #555; }
.team-mini .status-dot.online { background: #79b896; box-shadow: 0 0 12px rgba(121,184,150,.6); }
.latest-topics { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.latest-topic { display: flex; align-items: center; gap: 13px; padding: 15px 19px; border-bottom: 1px solid var(--line); color: var(--text); }
.latest-topic:last-child { border-bottom: 0; }
.latest-topic:hover { background: rgba(255,255,255,.035); }
.latest-topic-main { flex: 1; min-width: 0; }
.latest-topic-main strong, .latest-topic-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-topic-main small, .latest-topic time { color: var(--muted); font-size: 11px; }
.creators-section { padding-bottom: 90px; }
.creators-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.creator-card { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 17px; background: linear-gradient(155deg, #181818, #0b0b0b); box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease; }
.creator-card:hover { transform: translateY(-5px); border-color: #5d5d5d; }
.creator-photo { position: relative; height: 53%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #303030, #101010); }
.creator-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, #0d0d0d); }
.avatar-creator { width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; }
.avatar-creator img { width: 100%; height: 100%; object-fit: cover; }
.avatar-creator > span { display: grid; place-items: center; width: 100%; height: 100%; font-size: 64px; color: #777; }
.creator-info { display: flex; flex: 1; flex-direction: column; padding: 17px 19px 19px; }
.creator-position { color: #8f8f8f; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.creator-info h3 { margin: 6px 0 8px; font-size: 1.25rem; }
.creator-info p { margin: 0; color: #999; font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Форум */
.forum-heading { align-items: center; }
.forum-heading .muted { margin: 7px 0 0; }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; margin-bottom: 60px; }
.forum-category { margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.forum-category-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 19px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.forum-category-head h2 { margin: 0; font-size: 1.1rem; }
.forum-category-head p { margin: 3px 0 0; font-size: 12px; }
.forum-category-head > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.forum-section-row { display: grid; grid-template-columns: 46px minmax(180px, 1.5fr) 62px 78px minmax(160px, 1fr); align-items: center; gap: 14px; padding: 17px 21px; border-bottom: 1px solid var(--line); color: var(--text); }
.forum-section-row:last-child { border-bottom: 0; }
.forum-section-row:hover { background: rgba(255,255,255,.035); }
.forum-section-icon { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,255,255,.03); font-size: 20px; }
.forum-section-info strong, .forum-section-info small { display: block; }
.forum-section-info strong { display: flex; align-items: center; gap: 8px; }
.forum-section-info small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.forum-counter { text-align: center; }
.forum-counter strong, .forum-counter small { display: block; }
.forum-counter strong { font-size: 15px; }
.forum-counter small { color: var(--muted); font-size: 10px; }
.forum-last { min-width: 0; }
.forum-last strong, .forum-last small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-last strong { font-size: 12px; }
.forum-last small { color: var(--muted); font-size: 10px; }
.forum-sidebar { display: grid; gap: 16px; }
.forum-sidebar .panel { padding: 21px; }
.forum-sidebar h2 { font-size: 1.1rem; margin: 7px 0 10px; }
.online-big { display: flex; align-items: baseline; gap: 9px; margin: 12px 0; }
.online-big strong { font-size: 34px; }
.online-big span { color: #8fd3aa; font-size: 12px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 30px 0 15px; color: var(--muted); font-size: 12px; }
.breadcrumbs strong { color: #d0d0d0; }
.breadcrumbs a:hover { color: #fff; }
.topics-panel { padding: 0; overflow: hidden; margin-bottom: 60px; }
.topics-head, .topic-row { display: grid; grid-template-columns: minmax(220px, 1.7fr) minmax(140px, .8fr) 70px 90px 140px; align-items: center; gap: 12px; padding: 14px 20px; }
.topics-head { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.topic-row { border-bottom: 1px solid var(--line); color: #c6c6c6; font-size: 12px; }
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: rgba(255,255,255,.03); }
.topic-row.is-pinned { background: rgba(255,255,255,.025); }
.topic-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.topic-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-title i { font-style: normal; font-size: 11px; }
.topic-author { display: flex; align-items: center; gap: 7px; min-width: 0; }
.topic-author > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moderation-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 12px; }
.forum-posts { display: grid; gap: 14px; margin-bottom: 20px; }
.forum-post { display: grid; grid-template-columns: 175px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.forum-post.first-post { border-color: var(--line-strong); }
.post-author { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 23px 15px; text-align: center; border-right: 1px solid var(--line); background: rgba(255,255,255,.025); }
.post-author .avatar { width: 72px; height: 72px; font-size: 26px; }
.post-author strong { font-size: 13px; overflow-wrap: anywhere; }
.post-author .role-pill { font-size: 9px; }
.post-content { min-width: 0; }
.post-header { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.post-header small { margin-left: auto; }
.post-body { min-height: 110px; padding: 20px; color: #d0d0d0; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-footer { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.reaction-button, .reaction-static { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #999; font-size: 11px; cursor: pointer; }
.reaction-button:hover, .reaction-button.active { color: #ef8f9c; border-color: rgba(239,143,156,.4); background: rgba(239,143,156,.06); }
.reply-panel { margin-bottom: 60px; }
.reply-panel h2 { margin-bottom: 15px; }
.narrow-panel { max-width: 850px; margin: 35px auto 60px; }
.search-results { display: grid; gap: 10px; }
.search-result { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 11px; }
.search-result:hover { border-color: #555; background: rgba(255,255,255,.025); }
.search-result strong { display: block; margin: 4px 0; }
.search-result p { margin: 0 0 6px; font-size: 12px; }
.search-result small { color: var(--muted); }
.empty-state { padding: 32px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 13px; color: var(--muted); }
.empty-state p { color: var(--muted); }

/* Профили и темы */
.profile-card { --profile-accent: #8a8a8a; overflow: hidden; }
.profile-theme-label { position: absolute; right: 18px; top: 16px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(0,0,0,.35); color: #ddd; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(8px); }
.profile-theme-midnight { --theme-a: #101a31; --theme-b: #080b12; }
.profile-theme-violet { --theme-a: #241536; --theme-b: #0d0912; }
.profile-theme-emerald { --theme-a: #102a23; --theme-b: #080f0d; }
.profile-theme-crimson { --theme-a: #311419; --theme-b: #12090b; }
.profile-theme-ocean { --theme-a: #0d2730; --theme-b: #071014; }
.profile-theme-graphite { --theme-a: #1b1b1b; --theme-b: #0a0a0a; }
.profile-theme-midnight .profile-banner, .profile-theme-violet .profile-banner,
.profile-theme-emerald .profile-banner, .profile-theme-crimson .profile-banner,
.profile-theme-ocean .profile-banner, .profile-theme-graphite .profile-banner {
    background-color: var(--theme-a);
}
.profile-theme-midnight .profile-banner:not([style*="background-image"]), .profile-theme-violet .profile-banner:not([style*="background-image"]),
.profile-theme-emerald .profile-banner:not([style*="background-image"]), .profile-theme-crimson .profile-banner:not([style*="background-image"]),
.profile-theme-ocean .profile-banner:not([style*="background-image"]), .profile-theme-graphite .profile-banner:not([style*="background-image"]) {
    background-image: radial-gradient(circle at 25% 15%, var(--theme-a), var(--theme-b) 72%);
}
.profile-card { border-color: color-mix(in srgb, var(--profile-accent) 35%, transparent); }
.profile-card .profile-avatar-wrap { align-self: start; justify-self: start; width: max-content; border-radius: 25px; line-height: 0; box-shadow: 0 0 0 3px var(--profile-accent), 0 15px 35px rgba(0,0,0,.45); }
.profile-card h1 .user-name:not(.name-solid):not(.name-gradient):not(.name-rainbow) { color: var(--profile-accent); }
.profile-card h1 .user-name.name-gradient, .profile-card h1 .user-name.name-rainbow { color: transparent; }
.profile-status { margin: -3px 0 9px; color: var(--profile-accent); font-size: 13px; }
.curator-label { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: #c8c8c8; font-size: 10px; }
.curator-label:hover { color: #fff; border-color: #777; }
.profile-music { display: flex; align-items: center; gap: 11px; margin-top: 17px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.24); max-width: 520px; }
.music-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--profile-accent); color: #0b0b0b; font-size: 18px; }
.music-info { flex: 1; min-width: 0; }
.music-info strong, .music-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-info small { color: var(--muted); font-size: 10px; }
.profile-music .button { flex-shrink: 0; }
.gif-popup { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; }
.gif-popup[hidden] { display: none; }
.gif-popup-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(10px); animation: gif-fade .25s ease; }
.gif-popup-card { position: relative; width: min(520px, 94vw); max-height: 90vh; overflow: auto; padding: 24px; border: 1px solid #555; border-radius: 20px; background: #101010; box-shadow: 0 35px 100px #000; text-align: center; animation: gif-pop .35s cubic-bezier(.2,.9,.25,1.15); }
.gif-popup-card h2 { margin: 5px 0 16px; }
.gif-popup-card img { width: 100%; max-height: 53vh; object-fit: contain; border-radius: 12px; background: #080808; }
.gif-popup-card p { margin: 13px 0 0; }
.gif-popup-close { position: absolute; z-index: 2; right: 12px; top: 10px; width: 34px; height: 34px; border: 1px solid #555; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 22px; cursor: pointer; }
@keyframes gif-fade { from { opacity: 0; } }
@keyframes gif-pop { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.theme-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.theme-option { position: relative; display: grid; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; text-align: center; }
.theme-option:has(input:checked) { border-color: #aaa; background: rgba(255,255,255,.05); }
.theme-option input { position: absolute; opacity: 0; }
.theme-option strong { font-size: 10px; font-weight: 600; }
.theme-preview { display: block; height: 55px; border-radius: 7px; overflow: hidden; background: linear-gradient(145deg, var(--preview-a), var(--preview-b)); }
.theme-preview i { display: block; width: 45%; height: 100%; background: rgba(255,255,255,.08); }
.theme-preview b { display: block; width: 55%; height: 5px; margin: -22px auto 0; border-radius: 4px; background: var(--preview-accent, #aaa); }
.theme-preview-graphite { --preview-a: #272727; --preview-b: #090909; --preview-accent: #aaa; }
.theme-preview-midnight { --preview-a: #1a2b4d; --preview-b: #080b12; --preview-accent: #7aa2ff; }
.theme-preview-violet { --preview-a: #3a2055; --preview-b: #0d0912; --preview-accent: #c39aff; }
.theme-preview-emerald { --preview-a: #17503e; --preview-b: #080f0d; --preview-accent: #70d6ae; }
.theme-preview-crimson { --preview-a: #63232d; --preview-b: #12090b; --preview-accent: #ef8390; }
.theme-preview-ocean { --preview-a: #145064; --preview-b: #071014; --preview-accent: #68d4e8; }
.color-control { display: flex; align-items: center; gap: 12px; }
.color-control input[type="color"] { width: 54px; height: 38px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: #0b0b0b; }
.current-media { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.current-media > span { font-size: 25px; }
.current-media small { display: block; color: var(--muted); }
.gif-edit-preview { max-width: 280px; margin-bottom: 12px; }
.gif-edit-preview img { width: 100%; border: 1px solid var(--line); border-radius: 11px; }

/* Администрирование */
.admin-quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 22px; }
.admin-quick-links a { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.admin-quick-links a:hover { border-color: #555; background: rgba(255,255,255,.045); }
.admin-quick-links strong, .admin-quick-links span { display: block; }
.admin-quick-links span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.name-color-form { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.name-color-form input[type="color"] { width: 27px; height: 27px; padding: 1px; border: 1px solid #444; border-radius: 6px; background: #111; }
.name-color-form select { max-width: 118px; padding: 4px; border: 1px solid #333; border-radius: 6px; background: #111; color: #ccc; font-size: 10px; }
.creator-admin-list { display: grid; gap: 10px; }
.creator-admin-row { display: flex; align-items: center; gap: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.creator-admin-row .avatar { width: 52px; height: 52px; flex-shrink: 0; }
.creator-order { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.creator-order span { font-size: 11px; color: var(--muted); }
.creator-order .mini-button { padding: 2px 8px; }
.creator-admin-info { flex: 1; min-width: 0; }
.creator-admin-info strong, .creator-admin-info span, .creator-admin-info small { display: block; }
.creator-admin-info span { color: #aaa; font-size: 12px; }
.creator-admin-info small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-admin-actions { display: flex; align-items: center; gap: 8px; }
.creator-form { max-width: 780px; margin-bottom: 60px; }
.creator-form-preview { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.creator-form-preview .avatar { width: 90px; height: 90px; flex-shrink: 0; }
.forum-admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; margin-bottom: 60px; }
.forum-admin-category { border-top: 1px solid var(--line); padding: 16px 0; }
.forum-admin-category > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.inline-edit { display: flex; align-items: center; gap: 7px; flex: 1; }
.inline-edit input { min-width: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: #0b0b0b; color: #ddd; font-size: 12px; }
.inline-edit input:first-child { flex: 1; }
.inline-edit input:nth-child(3) { flex: 1.5; }
.forum-admin-order { display: flex; gap: 5px; flex-wrap: wrap; }
.forum-admin-sections { padding-left: 16px; }
.forum-admin-section { margin: 8px 0; border: 1px solid var(--line); border-radius: 9px; }
.forum-admin-section summary { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; cursor: pointer; font-size: 12px; }
.forum-admin-section summary small { color: var(--muted); }
.forum-admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 12px; }
.forum-admin-form label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; }
.forum-admin-form input, .forum-admin-form select { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: #0b0b0b; color: #ddd; }
.forum-admin-form .wide { grid-column: 1 / -1; }
.forum-admin-sidebar { display: grid; gap: 16px; }
.forum-admin-section .forum-admin-order { padding: 0 12px 12px; }

/* Адаптивность новых разделов */
@media (max-width: 1180px) {
    .forum-section-row { grid-template-columns: 44px minmax(160px, 1.4fr) 55px 65px; }
    .forum-last { display: none; }
    .creators-grid { grid-template-columns: repeat(3, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .forum-admin-grid { grid-template-columns: 1fr; }
    .forum-admin-sidebar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .cards-3, .team-strip { grid-template-columns: 1fr; }
    .forum-layout { grid-template-columns: 1fr; }
    .forum-sidebar { grid-template-columns: 1fr 1fr; }
    .creators-grid { grid-template-columns: repeat(2, 1fr); }
    .topics-head { display: none; }
    .topic-row { grid-template-columns: 1fr auto; gap: 7px; }
    .topic-row > span:nth-child(3), .topic-row > span:nth-child(4) { display: none; }
    .topic-author { grid-column: 1; }
    .topic-row > span:last-child { grid-column: 2; grid-row: 1; }
    .forum-post { grid-template-columns: 110px minmax(0, 1fr); }
    .post-author { padding-inline: 9px; }
    .admin-quick-links { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .page { width: min(100% - 28px, 1380px); }
    .rp-hero h1 { font-size: 3rem; }
    .creators-grid { gap: 11px; }
    .creator-info { padding: 12px; }
    .creator-info h3 { font-size: 1rem; }
    .creator-info p { font-size: 10px; -webkit-line-clamp: 2; }
    .creator-position { font-size: 7px; }
    .forum-section-row { grid-template-columns: 42px 1fr; gap: 10px; padding: 14px; }
    .forum-counter { display: none; }
    .forum-category-head { align-items: flex-start; }
    .forum-post { grid-template-columns: 1fr; }
    .post-author { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 15px; text-align: left; }
    .post-author .avatar { width: 42px; height: 42px; font-size: 16px; }
    .post-header small { display: none; }
    .theme-picker { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: 1fr; }
    .forum-admin-sidebar { grid-template-columns: 1fr; }
    .inline-edit { flex-wrap: wrap; }
    .inline-edit input { flex: 1 1 100% !important; }
    .forum-admin-category > header { align-items: flex-start; flex-direction: column; }
    .forum-admin-form { grid-template-columns: 1fr; }
    .forum-admin-form .wide { grid-column: auto; }
    .creator-admin-row { flex-wrap: wrap; }
    .creator-admin-info { min-width: calc(100% - 100px); }
    .creator-admin-actions { width: 100%; justify-content: flex-end; }
    .page-head { align-items: flex-start; flex-direction: column; }
    .profile-music { flex-wrap: wrap; }
    .profile-music .button { width: 100%; }
    .name-color-form { max-width: 210px; }
    .footer-links { justify-content: center; }
}

.recruitment-dashboard { margin-bottom: 20px; }
.recruitment-dashboard .empty-state { padding: 24px; }

.curator-help { max-width: 900px; margin: -5px 0 22px; font-size: 13px; }

/* =========================================================
   Neon Snake, уровни, магазин и украшения
   ========================================================= */
.wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid rgba(116, 247, 197, .2);
    border-radius: 9px;
    color: #a9f8d9;
    background: rgba(70, 220, 163, .06);
    font-size: 11px;
    white-space: nowrap;
}
.wallet-chip:hover { color: #d7ffef; border-color: rgba(116, 247, 197, .45); }
.wallet-chip span { color: #66e8b5; }
.wallet-chip strong { font-size: 12px; }

.level-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid rgba(116, 247, 197, .28);
    border-radius: 20px;
    color: #91f5cc;
    background: rgba(72, 220, 164, .08);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    white-space: nowrap;
}
.xp-progress {
    position: relative;
    height: 6px;
    min-width: 110px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
}
.xp-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38c995, #8affd7);
    box-shadow: 0 0 15px rgba(93, 245, 189, .45);
    transition: width .35s ease;
}

/* Карточка игры в личном кабинете */
.game-dashboard-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 28px;
    margin-bottom: 20px;
    border-color: rgba(104, 237, 188, .16);
    background:
        radial-gradient(circle at 8% 30%, rgba(75, 231, 174, .09), transparent 33%),
        linear-gradient(135deg, rgba(14, 26, 22, .96), rgba(9, 13, 12, .96));
}
.game-dashboard-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.game-dashboard-icon {
    display: grid;
    place-items: center;
    flex: 0 0 62px;
    height: 62px;
    border: 1px solid rgba(116, 247, 197, .26);
    border-radius: 17px;
    color: #8affd7;
    background: linear-gradient(145deg, rgba(96, 242, 188, .13), rgba(21, 87, 66, .12));
    box-shadow: inset 0 0 25px rgba(96, 242, 188, .04), 0 0 28px rgba(96, 242, 188, .06);
    font-size: 37px;
}
.game-dashboard-main h2 { margin: 0 0 12px; font-size: 1.05rem; }
.game-dashboard-main .xp-progress { max-width: 460px; margin-bottom: 7px; }
.game-dashboard-main small { color: var(--muted); font-size: 10px; }
.game-dashboard-stats { display: flex; gap: 24px; }
.game-dashboard-stats span { display: grid; gap: 2px; text-align: center; }
.game-dashboard-stats strong { color: #d8ffef; font-size: 24px; }
.game-dashboard-stats small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.game-dashboard-actions { display: flex; gap: 8px; }

/* Игровое поле */
.game-heading { align-items: center; }
.game-heading-wallet {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 15px;
    border: 1px solid rgba(116, 247, 197, .16);
    border-radius: 12px;
    background: rgba(63, 190, 143, .045);
}
.game-heading-wallet > strong { color: #a9f8d9; font-size: 18px; }
.game-heading-wallet a { font-size: 11px; }
.snake-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
    margin-bottom: 60px;
}
.snake-game-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(127, 245, 202, .14);
    border-radius: 21px;
    background: linear-gradient(145deg, rgba(13, 24, 20, .97), rgba(6, 10, 8, .98));
    box-shadow: 0 30px 90px rgba(0,0,0,.44), inset 0 1px rgba(255,255,255,.035);
}
.snake-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 13px; }
.snake-hud > div { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; background: rgba(255,255,255,.022); }
.snake-hud span { color: #718a80; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.snake-hud strong { color: #dffff1; font-size: 20px; line-height: 1.2; }
.snake-canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(125, 248, 203, .16);
    border-radius: 16px;
    background: #07100d;
    box-shadow: inset 0 0 60px rgba(0,0,0,.45), 0 12px 35px rgba(0,0,0,.28);
}
.snake-canvas-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.snake-overlay {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(3, 9, 7, .72);
    backdrop-filter: blur(8px);
}
.snake-overlay[hidden] { display: none; }
.snake-overlay-card { width: min(410px, 95%); text-align: center; }
.snake-logo {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 20px;
    border: 1px solid rgba(128, 255, 211, .34);
    border-radius: 24px;
    color: #9affe0;
    background: radial-gradient(circle at 35% 25%, rgba(146,255,219,.18), rgba(32,113,83,.1));
    box-shadow: 0 0 45px rgba(78, 238, 179, .14), inset 0 0 24px rgba(128,255,211,.05);
    font-size: 48px;
    transform: rotate(-5deg);
}
.snake-overlay-card h2 { margin: 5px 0 12px; color: #effff8; font-size: clamp(1.6rem, 4vw, 2.35rem); }
.snake-overlay-card p { max-width: 360px; margin: 0 auto 22px; color: #91a9a0; font-size: 12px; }
.snake-overlay-card .button { min-height: 48px; }
.snake-controls-hint { display: block; margin-top: 14px; color: #60776e; font-size: 9px; }
.snake-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 20px; }
.snake-result[hidden] { display: none; }
.snake-result span { display: grid; gap: 2px; padding: 12px 6px; border: 1px solid rgba(126, 247, 202, .13); border-radius: 10px; background: rgba(95, 235, 180, .04); }
.snake-result strong { color: #c9ffe9; font-size: 20px; }
.snake-result small { color: #748e84; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.snake-paused {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 7px;
    background: rgba(3, 9, 7, .76);
    backdrop-filter: blur(6px);
}
.snake-paused[hidden] { display: none; }
.snake-paused span { color: #8affd7; font-size: 42px; }
.snake-paused strong { font-size: 25px; }
.snake-paused small { color: var(--muted); }
.snake-mobile-controls { display: none; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.snake-mobile-controls button {
    min-height: 48px;
    border: 1px solid rgba(134, 255, 213, .15);
    border-radius: 11px;
    color: #b9ffe5;
    background: rgba(103, 239, 187, .055);
    font-size: 21px;
    cursor: pointer;
    touch-action: manipulation;
}
.snake-mobile-controls button:active { background: rgba(103, 239, 187, .15); transform: scale(.97); }
.snake-under-game { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px 0; color: #6f877d; font-size: 9px; }
.snake-under-game strong { color: #a9c8bc; }
.snake-under-game i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #5ce5ae; box-shadow: 0 0 8px #5ce5ae; }
.snake-sidebar { display: grid; gap: 16px; }
.snake-sidebar .panel { padding: 20px; box-shadow: none; }
.weekly-prizes { border-color: rgba(250, 204, 126, .13); }
.prize-list { display: grid; gap: 7px; }
.prize-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: #b5b5b5; font-size: 11px; }
.prize-row strong { color: #e8e8e8; }
.prize-row.prize-first { border-color: rgba(250, 210, 115, .2); background: rgba(250, 205, 100, .04); }
.prize-row.prize-first strong { color: #f7d98b; }
.prize-note { margin: 14px 0 0; color: #717171; font-size: 9px; line-height: 1.65; }
.leaderboard-list { display: grid; }
.leaderboard-row { display: grid; grid-template-columns: 25px 31px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 3px; border-top: 1px solid var(--line); color: var(--text); }
.leaderboard-row:first-child { border-top: 0; }
.leaderboard-row:hover, .leaderboard-row.is-me { color: #b8ffe2; }
.leaderboard-row.is-me { margin-inline: -7px; padding-inline: 10px; border-radius: 8px; background: rgba(89, 233, 179, .045); }
.leader-place { color: #6e6e6e; font-size: 11px; font-weight: 800; text-align: center; }
.place-1 { color: #f4d27c; } .place-2 { color: #d4dce2; } .place-3 { color: #d69a72; }
.leader-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.leaderboard-row > strong { color: #c9ffe9; font-size: 12px; }
.last-winners > a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 10px; }
.last-winners > a strong { color: #9ff5d3; white-space: nowrap; }

/* Магазин */
.shop-heading { align-items: center; }
.shop-wallet { display: grid; justify-items: end; gap: 2px; padding: 13px 18px; border: 1px solid rgba(116, 247, 197, .17); border-radius: 12px; background: rgba(74, 216, 161, .04); }
.shop-wallet > span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.shop-wallet strong { color: #a9f8d9; font-size: 25px; }
.shop-wallet small { color: #718b7f; font-size: 9px; }
.shop-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 18px;
    padding: 28px 31px;
    overflow: hidden;
    border: 1px solid rgba(126, 247, 202, .16);
    border-radius: 17px;
    background:
        radial-gradient(circle at 85% 20%, rgba(93, 245, 189, .12), transparent 30%),
        radial-gradient(circle at 10% 100%, rgba(59, 130, 246, .09), transparent 35%),
        linear-gradient(125deg, #101b17, #0a0f0d);
}
.shop-hero::after { content: "⌁"; position: absolute; right: 30%; top: -48px; color: rgba(140,255,215,.035); font-size: 190px; pointer-events: none; }
.shop-hero h2 { margin-bottom: 8px; }
.shop-hero p { max-width: 760px; margin: 0; font-size: 12px; }
.shop-hero p strong { color: #c8ffe9; }
.shop-hero-actions { position: relative; z-index: 1; display: flex; gap: 9px; flex-shrink: 0; }
.shop-categories { display: flex; gap: 6px; margin-bottom: 20px; padding-bottom: 4px; overflow-x: auto; }
.shop-categories a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid transparent; border-radius: 9px; color: #858585; font-size: 11px; white-space: nowrap; }
.shop-categories a span { color: #5f746a; font-size: 9px; }
.shop-categories a:hover { color: #ddd; background: rgba(255,255,255,.025); }
.shop-categories a.active { border-color: rgba(122, 245, 200, .19); color: #b9ffe5; background: rgba(88, 227, 175, .065); }
.cosmetics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 60px; }
.cosmetic-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(21,21,21,.97), rgba(11,11,11,.97));
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cosmetic-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--item-a) 45%, #333); box-shadow: 0 18px 40px rgba(0,0,0,.32); }
.cosmetic-card.is-equipped { border-color: var(--item-a); box-shadow: 0 0 0 1px color-mix(in srgb, var(--item-a) 28%, transparent), 0 15px 40px rgba(0,0,0,.3); }
.cosmetic-card.rarity-legendary { background: linear-gradient(150deg, color-mix(in srgb, var(--item-a) 7%, #151515), #0b0b0b 65%); }
.cosmetic-preview { display: grid; place-items: center; height: 154px; padding: 18px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--item-a) 8%, transparent), transparent 63%), rgba(0,0,0,.16); }
.cosmetic-preview .avatar-large { width: 91px; height: 91px; border-radius: 21px; font-size: 31px; }
.cosmetic-big-badge { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid color-mix(in srgb, var(--item-a) 50%, transparent); border-radius: 23px; color: var(--item-a); background: linear-gradient(145deg, color-mix(in srgb, var(--item-a) 14%, #151515), color-mix(in srgb, var(--item-b) 9%, #0b0b0b)); box-shadow: 0 0 35px color-mix(in srgb, var(--item-a) 15%, transparent); font-size: 40px; transform: rotate(-5deg); }
.cosmetic-preview .cosmetic-title { max-width: 100%; font-size: 11px; }
.cosmetic-effect-sample { position: relative; display: grid; place-items: center; width: 120px; height: 90px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--item-a) 30%, transparent); border-radius: 13px; background: linear-gradient(145deg, color-mix(in srgb, var(--item-a) 10%, #151515), #0b0b0b); }
.cosmetic-effect-sample i { width: 35px; height: 35px; border-radius: 11px; background: linear-gradient(145deg, var(--item-a), var(--item-b)); opacity: .8; }
.cosmetic-effect-sample b { position: absolute; left: 14px; right: 14px; bottom: 13px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); }
.cosmetic-effect-sample em { position: absolute; right: 10px; top: 7px; color: var(--item-a); font-style: normal; font-size: 18px; }
.cosmetic-card-body { padding: 16px; }
.cosmetic-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 9px; color: #696969; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.rarity-label { color: var(--item-a); }
.cosmetic-card h3 { min-height: 38px; margin: 0 0 7px; overflow: hidden; font-size: 13px; line-height: 1.4; }
.cosmetic-card p { min-height: 48px; margin: 0 0 15px; color: #777; font-size: 9px; line-height: 1.6; }
.cosmetic-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.cosmetic-price { color: #b8f8dc; font-size: 13px; }
.owned-label { color: #7ac9a7; font-size: 9px; }
.mini-button:disabled { opacity: .35; cursor: not-allowed; transform: none; }

/* Украшения: рамки, значки, титулы, эффекты */
.cosmetic-frame { --item-a: #aaa; --item-b: #555; isolation: isolate; }
.cosmetic-frame::before {
    content: "";
    position: absolute;
    z-index: 5;
    inset: -3px;
    border-radius: inherit;
    pointer-events: none;
}
.cosmetic-frame-1::before { border: 2px solid var(--item-a); box-shadow: 0 0 11px color-mix(in srgb, var(--item-a) 58%, transparent), inset 0 0 8px color-mix(in srgb, var(--item-b) 35%, transparent); }
.cosmetic-frame-2::before { border: 2px double var(--item-a); outline: 1px solid color-mix(in srgb, var(--item-b) 65%, transparent); outline-offset: 2px; }
.cosmetic-frame-3::before { border: 2px dashed var(--item-a); border-radius: 50%; box-shadow: 0 0 12px color-mix(in srgb, var(--item-a) 45%, transparent); animation: frame-spin 12s linear infinite; }
.cosmetic-frame-4::before { border: 2px solid var(--item-a); border-right-color: var(--item-b); border-bottom-color: var(--item-b); box-shadow: 3px 3px 0 color-mix(in srgb, var(--item-b) 30%, transparent); transform: rotate(3deg); }
.cosmetic-frame-5::before { border: 1px solid var(--item-a); box-shadow: 0 0 0 2px #101010, 0 0 0 3px var(--item-b), 0 0 16px color-mix(in srgb, var(--item-a) 50%, transparent); animation: frame-pulse 2.2s ease-in-out infinite; }
.cosmetic-frame-6::before { border: 2px dotted var(--item-a); outline: 1px solid color-mix(in srgb, var(--item-b) 60%, transparent); outline-offset: 3px; }
.cosmetic-frame-7::before { inset: -5px; border: 1px solid color-mix(in srgb, var(--item-a) 70%, transparent); box-shadow: inset 0 0 13px color-mix(in srgb, var(--item-b) 35%, transparent), 0 0 15px color-mix(in srgb, var(--item-a) 20%, transparent); }
.cosmetic-frame-8::before { border: 2px solid transparent; background: linear-gradient(135deg, var(--item-a), var(--item-b), var(--item-a)) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: frame-pulse 2.8s ease-in-out infinite; }
@keyframes frame-spin { to { transform: rotate(360deg); } }
@keyframes frame-pulse { 50% { opacity: .55; filter: brightness(1.35); } }

.inline-cosmetic-badge { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 4px; border-radius: 5px; color: var(--item-a); background: color-mix(in srgb, var(--item-a) 10%, transparent); font-size: 11px; vertical-align: 1px; }
.cosmetic-title { display: inline-flex; align-items: center; width: max-content; max-width: 100%; margin: 0 0 8px; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--item-a) 30%, transparent); border-radius: 6px; color: var(--item-a); background: color-mix(in srgb, var(--item-a) 6%, transparent); font-size: 9px; font-weight: 750; letter-spacing: .035em; }
.cosmetic-title-2 { border-radius: 20px; }
.cosmetic-title-3 { border-style: dashed; }
.cosmetic-title-4 { color: #111; background: linear-gradient(110deg, var(--item-a), var(--item-b)); border: 0; }
.cosmetic-title-5 { border-width: 0 0 1px; border-radius: 0; background: transparent; }
.cosmetic-profile-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--item-a); font-size: 9px; font-weight: 700; }
.profile-level-row { display: flex; align-items: center; gap: 10px; max-width: 480px; margin-top: 16px; }
.profile-level-row .xp-progress { flex: 1; }
.profile-level-row small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.profile-wallet { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; }
.profile-wallet span { color: #a9f8d9; }
.profile-wallet a { font-size: 10px; }

.profile-effect { --item-a: #888; --item-b: #333; }
.profile-effect::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
}
.profile-effect .profile-body { z-index: 4; }
.profile-effect .profile-banner { z-index: 1; }
.profile-effect-1::after { background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--item-a) 23%, transparent) 0 2px, transparent 3px), radial-gradient(circle at 82% 35%, color-mix(in srgb, var(--item-b) 25%, transparent) 0 2px, transparent 3px), radial-gradient(circle at 65% 80%, color-mix(in srgb, var(--item-a) 18%, transparent) 0 1px, transparent 2px); background-size: 90px 90px, 130px 130px, 70px 70px; animation: effect-drift 12s linear infinite; }
.profile-effect-2::after { background-image: linear-gradient(color-mix(in srgb, var(--item-a) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--item-a) 9%, transparent) 1px, transparent 1px); background-size: 27px 27px; mask-image: linear-gradient(120deg, #000, transparent 75%); }
.profile-effect-3::after { background: radial-gradient(ellipse at 85% 5%, color-mix(in srgb, var(--item-a) 18%, transparent), transparent 45%), radial-gradient(ellipse at 5% 100%, color-mix(in srgb, var(--item-b) 15%, transparent), transparent 43%); }
.profile-effect-4::after { background: repeating-radial-gradient(ellipse at 100% 0, transparent 0 22px, color-mix(in srgb, var(--item-a) 7%, transparent) 24px 25px, transparent 27px 43px); }
.profile-effect-5::after { background-image: radial-gradient(circle, color-mix(in srgb, var(--item-a) 65%, transparent) 0 1px, transparent 1.5px), radial-gradient(circle, color-mix(in srgb, var(--item-b) 55%, transparent) 0 1px, transparent 1.5px); background-position: 0 0, 22px 28px; background-size: 53px 53px, 71px 71px; opacity: .42; }
.profile-effect-6::after { background: radial-gradient(ellipse at 20% 100%, color-mix(in srgb, var(--item-a) 13%, transparent), transparent 45%), radial-gradient(ellipse at 90% 70%, color-mix(in srgb, var(--item-b) 12%, transparent), transparent 40%); filter: blur(8px); animation: effect-breathe 5s ease-in-out infinite; }
@keyframes effect-drift { to { background-position: 90px 45px, -130px 70px, 70px -35px; } }
@keyframes effect-breathe { 50% { opacity: .45; transform: scale(1.04); } }

/* Администрирование экономики */
.economy-stats .admin-stat:nth-child(1) { border-color: rgba(116, 247, 197, .18); }
.economy-grant-panel { margin-bottom: 20px; }
.economy-users { display: grid; }
.economy-user-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 90px 110px minmax(170px, 1fr) auto; align-items: center; gap: 12px; padding: 12px 3px; border-top: 1px solid var(--line); }
.economy-user-name { display: grid; min-width: 0; }
.economy-user-name strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.economy-user-name small { color: var(--muted); font-size: 9px; }
.economy-balance { color: #a9f8d9; font-size: 12px; font-weight: 750; }
.economy-user-row input { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; outline: none; color: #ddd; background: #0b0b0b; font-size: 11px; }
.economy-user-row input:focus { border-color: #678c7d; }
.economy-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; align-items: start; margin-bottom: 60px; }
.transactions-list { display: grid; }
.transaction-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.transaction-row:first-child { border-top: 0; }
.transaction-sign { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-weight: 800; }
.transaction-sign.positive { color: #82ddb3; } .transaction-sign.negative { color: #ef8d94; }
.transaction-row > span:nth-child(2) { display: grid; min-width: 0; }
.transaction-row strong { font-size: 11px; }
.transaction-row small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.transaction-meta { display: grid; justify-items: end; }
.transaction-meta b { color: #c7c7c7; font-size: 10px; }
.reward-history { display: grid; gap: 7px; }
.reward-history > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; }
.reward-history strong { color: #9ff5d3; }
.reward-history small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }

@media (max-width: 1180px) {
    .cosmetics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .game-dashboard-card { grid-template-columns: 1fr auto; }
    .game-dashboard-actions { grid-column: 1 / -1; }
    .snake-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 960px) {
    .snake-layout { grid-template-columns: 1fr; }
    .snake-sidebar { grid-template-columns: 1fr 1fr; }
    .last-winners { grid-column: 1 / -1; }
    .economy-user-row { grid-template-columns: minmax(140px, 1fr) 80px 100px; }
    .economy-user-row input[name="reason"] { grid-column: 1 / 3; }
    .economy-grid { grid-template-columns: 1fr; }
    .shop-hero { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
    .cosmetics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cosmetic-preview { height: 132px; }
    .game-dashboard-card { grid-template-columns: 1fr; gap: 18px; }
    .game-dashboard-stats { justify-content: flex-start; }
    .game-dashboard-actions { grid-column: auto; }
    .snake-sidebar { grid-template-columns: 1fr; }
    .last-winners { grid-column: auto; }
    .snake-mobile-controls { display: grid; }
    .snake-under-game { flex-wrap: wrap; }
    .shop-wallet { justify-items: start; }
    .shop-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
    .snake-game-panel { padding: 10px; border-radius: 15px; }
    .snake-hud > div { padding: 8px; }
    .snake-hud strong { font-size: 16px; }
    .snake-hud span { font-size: 7px; }
    .snake-overlay { padding: 15px; }
    .snake-logo { width: 58px; height: 58px; margin-bottom: 13px; font-size: 36px; }
    .snake-overlay-card p { margin-bottom: 15px; font-size: 10px; }
    .snake-controls-hint { display: none; }
    .cosmetics-grid { grid-template-columns: 1fr; }
    .cosmetic-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
    .cosmetic-preview { height: 100%; min-height: 150px; border-right: 1px solid var(--line); border-bottom: 0; }
    .cosmetic-preview .avatar-large { width: 72px; height: 72px; }
    .cosmetic-big-badge { width: 58px; height: 58px; font-size: 30px; }
    .cosmetic-card h3, .cosmetic-card p { min-height: 0; }
    .cosmetic-card p { display: none; }
    .cosmetic-card-body { padding: 13px; }
    .economy-user-row { grid-template-columns: 1fr 80px; }
    .economy-user-row input, .economy-user-row .button { grid-column: 1 / -1; }
    .economy-user-row input[name="reason"] { grid-column: 1 / -1; }
    .transaction-row { grid-template-columns: 58px minmax(0, 1fr); }
    .transaction-meta { grid-column: 2; justify-items: start; }
    .profile-stats { gap: 15px; flex-wrap: wrap; }
    .profile-body { padding-inline: 20px; }
    .profile-wallet { grid-column: auto; justify-content: flex-start; }
}

/* Баннер змейки на главной */
.home-game-banner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin: 0 0 15px;
    padding: 24px 28px;
    overflow: hidden;
    border: 1px solid rgba(116, 247, 197, .17);
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 40%, rgba(88, 239, 184, .1), transparent 28%),
        linear-gradient(115deg, rgba(15, 28, 23, .97), rgba(8, 13, 11, .98));
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.home-game-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(150,255,221,.025), transparent 65%);
}
.home-game-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(126, 249, 204, .25);
    border-radius: 22px;
    color: #96ffda;
    background: rgba(91, 231, 177, .055);
    box-shadow: inset 0 0 28px rgba(91,231,177,.04), 0 0 30px rgba(91,231,177,.05);
    font-size: 43px;
}
.home-game-visual i, .home-game-visual b { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #79f5c4; box-shadow: 0 0 10px #79f5c4; }
.home-game-visual i { right: -3px; top: 16px; }
.home-game-visual b { left: -2px; bottom: 15px; width: 4px; height: 4px; }
.home-game-banner h2 { margin: 0 0 7px; font-size: 1.5rem; }
.home-game-banner p { margin: 0; font-size: 12px; }
.home-game-banner .button { position: relative; z-index: 1; }
@media (max-width: 720px) {
    .home-game-banner { grid-template-columns: auto 1fr; padding: 20px; }
    .home-game-banner .button { grid-column: 1 / -1; }
    .home-game-visual { width: 58px; height: 58px; border-radius: 17px; font-size: 33px; }
    .home-game-banner h2 { font-size: 1.15rem; }
}

/* =========================================================
   DaBest-inspired visual system
   Тёмный фон, тонкие границы, белые действия, золотые акценты.
   ========================================================= */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("fonts/golos-cyrillic-900.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

body {
    background:
        radial-gradient(circle at 88% -8%, rgba(233,181,58,.055), transparent 27%),
        radial-gradient(circle at 4% 18%, rgba(255,255,255,.022), transparent 25%),
        var(--bg);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { font-family: "Golos Text", "Inter", system-ui, sans-serif; font-weight: 900; }
p { line-height: 1.7; }
a { transition: color .16s, border-color .16s, background .16s; }
::selection { color: #171204; background: var(--gold-light); }

/* Плавающая шапка в духе DaBest */
.topbar {
    top: 10px;
    width: min(1400px, calc(100% - 40px));
    margin: 10px auto 0;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    background: rgba(12,12,12,.82);
    box-shadow: 0 12px 36px -22px rgba(0,0,0,.9);
    backdrop-filter: blur(20px) saturate(1.15);
}
.topbar-inner { min-height: 66px; padding: 0 14px 0 16px; gap: 20px; }
.brand { gap: 10px; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 11px;
    border-color: rgba(255,255,255,.14);
    background: #141414;
    box-shadow: none;
}
.brand-mark img { width: 30px; height: 30px; }
.brand strong { font-size: 13px; letter-spacing: .12em; }
.brand small { color: rgba(255,255,255,.45); font-size: 9px; letter-spacing: .09em; }
.main-nav { gap: 2px; }
.main-nav > a:not(.button) {
    padding: 8px 12px; border-radius: 10px; color: rgba(255,255,255,.58);
    font-size: 12px; font-weight: 600;
}
.main-nav > a:not(.button):hover { color: #fff; background: rgba(255,255,255,.05); }
.main-nav > a:not(.button).active { color: #fff; background: rgba(255,255,255,.085); }
.main-nav .nav-admin { color: var(--gold-light); }
.user-chip { font-size: 12px; }
.icon-button { border-radius: 9px; background: rgba(255,255,255,.02); }
.menu-toggle { border-radius: 10px; }

/* Кнопки: основной CTA белый, вторичный — контурный */
.button {
    min-height: 42px; padding: 10px 19px; border: 1px solid #f0f0f0;
    border-radius: 11px; color: #111; background: #f2f2f2;
    box-shadow: none; font-size: 12px; font-weight: 750;
}
.button:hover { color: #000; border-color: #fff; background: #fff; box-shadow: 0 8px 22px -14px rgba(255,255,255,.5); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-ghost { color: rgba(255,255,255,.66); border-color: rgba(255,255,255,.16); background: transparent; }
.button-ghost:hover { color: #fff; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.05); box-shadow: none; }
.button-small { min-height: 34px; padding: 7px 13px; border-radius: 9px; font-size: 11px; }

/* Панели и карточки */
.panel,
.feature-card,
.hero-panel,
.profile-card,
.auth-layout,
.welcome-card,
.requirements-card,
.aside-card,
.admin-stat,
.role-card,
.cosmetic-card,
.game-dashboard-card,
.snake-game-panel,
.shop-hero {
    border-color: rgba(255,255,255,.085);
    background: rgba(14,14,14,.94);
    box-shadow: 0 18px 46px -30px rgba(0,0,0,.9);
}
.panel { border-radius: 15px; padding: 24px; backdrop-filter: none; }
.feature-card { border-radius: 15px; background: rgba(255,255,255,.022); }
.feature-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.feature-icon { border-radius: 11px; border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #ececec; }
.feature-number { color: rgba(255,255,255,.055); }

/* Типографика */
.page-heading { margin-top: 40px; margin-bottom: 25px; }
.page-heading h1 { letter-spacing: -.035em; }
.section { padding: 52px 0; }
.section-heading { margin-bottom: 25px; }
.section-heading h2 { font-size: clamp(1.75rem, 3vw, 2.15rem); letter-spacing: -.032em; }
.section-heading > p { color: rgba(255,255,255,.56); line-height: 1.7; }
.eyebrow { color: var(--gold); font-size: 9px; letter-spacing: .18em; }

/* Hero */
.hero { min-height: 565px; gap: 55px; padding: 58px 0 62px; }
.hero h1 { margin: 18px 0 24px; font-size: clamp(3.1rem, 6vw, 5.5rem); line-height: .99; letter-spacing: -.047em; }
.hero h1 span { background: linear-gradient(110deg, #fff 5%, #e9e9e9 48%, var(--gold-light)); background-clip: text; -webkit-background-clip: text; }
.hero-lead { color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.8; }
.hero-panel { border-radius: 20px; background: linear-gradient(145deg, rgba(18,18,18,.98), rgba(11,11,11,.98)); }
.hero-panel::before, .hero-panel::after { opacity: .45; }
.emblem-ring { border-color: rgba(255,255,255,.24); outline-color: rgba(255,255,255,.07); background: radial-gradient(circle, rgba(233,181,58,.07), transparent 70%); }
.seal { border-color: rgba(233,181,58,.28); color: var(--gold); }
.stats-grid { border-color: rgba(255,255,255,.08); }
.stat { border-color: rgba(255,255,255,.08); }
.stat strong { font-family: "Golos Text", "Inter", sans-serif; font-weight: 900; }
.stat-online strong { color: #65b87a; }

/* Игровой баннер */
.home-game-banner {
    border: 1px solid rgba(255,255,255,.09); border-radius: 17px;
    background: radial-gradient(circle at 90% 20%, rgba(87,245,183,.08), transparent 28%), rgba(14,18,16,.9);
    box-shadow: none;
}
.home-game-banner:hover { border-color: rgba(116,247,197,.2); }

/* Формы */
.field input, .field textarea, .search-form input, .role-form select,
.message-form textarea {
    border-color: rgba(255,255,255,.13); border-radius: 10px;
    color: #e5e5e5; background: #101010;
}
.field input:focus, .field textarea:focus, .search-form input:focus,
.role-form select:focus, .message-form textarea:focus {
    border-color: rgba(233,181,58,.65); box-shadow: 0 0 0 3px rgba(233,181,58,.08);
}
.field > span { color: rgba(255,255,255,.82); }
.field > span b { color: var(--gold); }
.check-field input { accent-color: var(--gold); }
.knowledge-field input[type="range"] { accent-color: var(--gold); }
.form-section-title > span { border-color: rgba(233,181,58,.28); color: var(--gold); }
.long-answer > span { color: var(--gold); }
.requirements-card { border-left-color: var(--gold-dark); }

/* Навигация админки */
.admin-nav { border-radius: 12px; background: #0e0e0e; }
.admin-nav a { border-radius: 8px; }
.admin-nav a.active { color: #111; background: #ededed; box-shadow: none; }
.filter-tabs a.active { color: #111; border-color: #ededed; background: #ededed; }
.badge-button.active { color: #111; background: var(--gold); }

/* Профиль: убираем растянутый овальный контейнер аватара */
.profile-card .profile-avatar-wrap {
    align-self: start;
    justify-self: start;
    width: max-content;
    border-radius: 25px;
    line-height: 0;
    box-shadow: 0 0 0 3px var(--profile-accent), 0 15px 35px rgba(0,0,0,.45);
}
.profile-card .profile-avatar-wrap .avatar-large { border-radius: 23px; }
.profile-card { border-radius: 18px; }
.profile-banner { height: 240px; }
.profile-body { gap: 22px; }
.profile-info { min-width: 0; }
.profile-stats strong { font-family: "Golos Text", "Inter", sans-serif; font-weight: 900; }
.profile-wallet span { color: var(--gold-light); }

/* Дорожная карта */
.roadmap-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; align-items: start; }
.roadmap-column { min-width: 0; border: 1px solid rgba(255,255,255,.075); border-radius: 15px; background: rgba(255,255,255,.018); overflow: hidden; }
.roadmap-column-head { display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 13px 15px; border-bottom: 1px solid rgba(255,255,255,.07); }
.roadmap-column-head i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: rgba(255,255,255,.3); }
.roadmap-column-head h3 { margin: 0; font-family: "Inter", sans-serif; font-size: 13px; font-weight: 650; letter-spacing: 0; }
.roadmap-column-head > span { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: auto; padding: 0 7px; border-radius: 6px; color: rgba(255,255,255,.42); background: rgba(255,255,255,.055); font-size: 10px; font-weight: 750; }
.roadmap-in_progress .roadmap-column-head i { background: #f59e0b; box-shadow: 0 0 10px rgba(245,158,11,.28); }
.roadmap-done .roadmap-column-head i { background: #46a758; box-shadow: 0 0 10px rgba(70,167,88,.25); }
.roadmap-list { display: flex; flex-direction: column; gap: 11px; padding: 13px; }
.roadmap-card { padding: 15px; border: 1px solid rgba(255,255,255,.075); border-left: 3px solid rgba(255,255,255,.17); border-radius: 11px; background: rgba(255,255,255,.026); transition: border-color .18s, background .18s, transform .18s; }
.roadmap-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.17); border-left-color: var(--roadmap-priority, rgba(255,255,255,.3)); background: rgba(255,255,255,.04); }
.roadmap-priority-high { --roadmap-priority: #e0a23a; border-left-color: #e0a23a; }
.roadmap-priority-critical { --roadmap-priority: #e5484d; border-left-color: #e5484d; }
.roadmap-priority-medium { --roadmap-priority: rgba(255,255,255,.28); }
.roadmap-card h4 { margin: 0; color: rgba(255,255,255,.92); font-family: "Inter", sans-serif; font-size: 13px; font-weight: 650; line-height: 1.45; letter-spacing: 0; }
.roadmap-card p { display: -webkit-box; margin: 8px 0 0; overflow: hidden; color: rgba(255,255,255,.5); font-size: 11px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.roadmap-progress { display: flex; align-items: center; gap: 9px; margin-top: 13px; }
.roadmap-progress > div { height: 5px; flex: 1; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.07); }
.roadmap-progress > div span { display: block; height: 100%; border-radius: inherit; background: #e8e8e8; transition: width .45s ease; }
.roadmap-done .roadmap-progress > div span { background: #46a758; }
.roadmap-progress b { min-width: 30px; color: rgba(255,255,255,.42); font-size: 9px; text-align: right; font-variant-numeric: tabular-nums; }
.roadmap-card footer { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.roadmap-card footer span, .roadmap-card footer em { padding: 3px 7px; border: 1px solid transparent; border-radius: 5px; color: rgba(255,255,255,.42); background: rgba(255,255,255,.045); font-size: 8px; font-style: normal; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.roadmap-card footer em { color: #e0a23a; border-color: rgba(224,162,58,.3); background: transparent; }
.roadmap-priority-critical footer em { color: #ef7479; border-color: rgba(229,72,77,.35); }
.roadmap-extra { display: none; }
.roadmap-column.is-expanded .roadmap-extra { display: block; animation: roadmap-in .25s ease both; }
@keyframes roadmap-in { from { opacity: 0; transform: translateY(-5px); } }
.roadmap-more { width: calc(100% - 26px); min-height: 35px; margin: 0 13px 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; color: rgba(255,255,255,.52); background: rgba(255,255,255,.025); font: 600 10px "Inter", sans-serif; cursor: pointer; }
.roadmap-more:hover { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); }
.roadmap-empty { padding: 25px 10px; color: rgba(255,255,255,.32); font-size: 11px; text-align: center; }

/* Поддержка, оценки и сообщества */
.support-section { padding-top: 45px; }
.support-cta { display: flex; align-items: center; gap: 20px; padding: 25px 27px; border: 1px solid rgba(255,255,255,.085); border-radius: 15px; background: rgba(255,255,255,.023); transition: border-color .2s, background .2s; }
.support-cta:hover { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.032); }
.support-cta-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; color: var(--gold-light); background: rgba(233,181,58,.07); font-size: 21px; }
.support-cta-text { flex: 1; min-width: 200px; }
.support-cta-text h3 { margin: 0 0 5px; font-size: 17px; letter-spacing: -.015em; }
.support-cta-text p { margin: 0; color: rgba(255,255,255,.56); font-size: 12px; }
.support-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.support-reviews, .community-block { margin-top: 38px; }
.support-subtitle { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.support-subtitle h3 { margin: 0; font-size: 17px; }
.support-subtitle > span { color: rgba(255,255,255,.4); font-size: 10px; }
.rating-summary { display: grid; grid-template-columns: minmax(170px, .7fr) 1px 1fr; align-items: center; gap: 34px; max-width: 850px; margin: 0 auto 20px; padding: 28px 34px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(255,255,255,.022); }
.rating-summary::before { content: ""; align-self: stretch; background: rgba(255,255,255,.08); }
.rating-total { text-align: center; }
.rating-total > strong { display: block; margin-top: 9px; color: #f4f4f4; font-family: "Golos Text", "Inter", sans-serif; font-size: 52px; font-weight: 300; line-height: 1; letter-spacing: -.06em; }
.rating-total > span { display: block; margin-top: 10px; color: rgba(255,255,255,.45); font-size: 10px; }
.rating-stars { display: flex; justify-content: center; gap: 3px; color: rgba(255,255,255,.15); font-size: 17px; }
.rating-stars .on { color: #e9b53a; }
.rating-bars { display: grid; gap: 8px; }
.rating-bar-row { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 10px; color: rgba(255,255,255,.5); font-size: 10px; }
.rating-bar-row > span { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.rating-bar-row i { color: #e9b53a; font-size: 8px; font-style: normal; }
.rating-bar-row > div { height: 6px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.06); }
.rating-bar-row b { display: block; height: 100%; border-radius: inherit; background: #e9b53a; }
.rating-bar-row em { color: rgba(255,255,255,.38); font-size: 9px; font-style: normal; text-align: right; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.review-card { display: flex; flex-direction: column; min-width: 0; padding: 19px; border: 1px solid rgba(255,255,255,.075); border-radius: 14px; background: rgba(255,255,255,.022); transition: border-color .18s, background .18s; }
.review-card:hover { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.035); }
.review-card header { display: flex; align-items: center; gap: 10px; }
.review-card header > div { min-width: 0; flex: 1; }
.review-card header strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.review-card time { display: block; margin-top: 2px; color: rgba(255,255,255,.32); font-size: 8px; }
.review-stars { display: flex; flex-shrink: 0; gap: 1px; color: rgba(255,255,255,.14); font-size: 9px; }
.review-stars i { font-style: normal; }
.review-stars i.on { color: #e9b53a; }
.review-card > p { display: -webkit-box; flex: 1; margin: 15px 0; overflow: hidden; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.7; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.review-card footer { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.36); font-size: 9px; }
.review-card footer strong { color: rgba(255,255,255,.64); font-weight: 600; }
.rating-empty { padding: 35px 20px; border: 1px dashed rgba(255,255,255,.13); border-radius: 15px; text-align: center; }
.rating-empty > span { color: rgba(233,181,58,.45); font-size: 34px; }
.rating-empty h3 { margin: 7px 0; font-size: 16px; }
.rating-empty p { margin: 0; font-size: 11px; }
.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.community-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 20px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.02); }
.community-card:hover { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.045); transform: translateY(-2px); }
.community-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; color: #eee; background: rgba(255,255,255,.06); font-size: 15px; font-weight: 800; }
.community-card strong { min-width: 0; flex: 1; font-size: 12px; }
.community-card i { color: rgba(255,255,255,.35); font-style: normal; }

/* Оценка в тикете */
.rating-panel { padding: 24px; }
.rating-saved { color: #65b87a; font-size: 10px; }
.rating-form { display: grid; gap: 15px; }
.rating-form .field { margin: 0; }
.rating-form-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-form-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rating-form-stars label { color: rgba(255,255,255,.16); font-size: 30px; line-height: 1; cursor: pointer; transition: color .14s, transform .14s; }
.rating-form-stars label:hover { transform: scale(1.12); }
.rating-form-stars label:hover, .rating-form-stars label:hover ~ label,
.rating-form-stars input:checked ~ label { color: #e9b53a; }
.rating-form-stars input:focus-visible ~ label { outline: 1px solid var(--gold); outline-offset: 3px; }
.rating-form .button { justify-self: start; }

/* Управление дорожной картой */
.roadmap-admin-layout { display: grid; grid-template-columns: minmax(300px, .85fr) 1.15fr; gap: 20px; align-items: start; margin-bottom: 50px; }
.roadmap-admin-list { display: grid; }
.roadmap-admin-list article { display: flex; align-items: center; gap: 11px; padding: 13px 2px; border-top: 1px solid rgba(255,255,255,.06); }
.roadmap-admin-list article:first-child { border-top: 0; }
.roadmap-admin-list article > div { min-width: 0; flex: 1; }
.roadmap-admin-list strong, .roadmap-admin-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roadmap-admin-list strong { font-size: 11px; }
.roadmap-admin-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.roadmap-admin-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #777; }
.roadmap-admin-dot.status-in_progress { background: #f59e0b; }
.roadmap-admin-dot.status-done { background: #46a758; }
.mini-button.danger { color: #ef8e94; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Подвал */
.footer { margin-top: 35px; border-color: rgba(255,255,255,.07); color: rgba(255,255,255,.35); }
.footer strong { color: rgba(255,255,255,.7); }

@media (max-width: 1100px) {
    .roadmap-board { gap: 10px; }
    .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar-inner { gap: 12px; }
    .main-nav > a:not(.button) { padding-inline: 8px; font-size: 11px; }
}
@media (max-width: 920px) {
    .topbar { top: 7px; width: calc(100% - 24px); margin-top: 7px; border-radius: 13px; }
    .topbar-inner { min-height: 59px; padding-inline: 12px; }
    .main-nav { top: 64px; left: 0; right: 0; border-radius: 12px; background: rgba(14,14,14,.98); }
    .main-nav > a:not(.button) { font-size: 13px; }
    .hero { min-height: 0; }
    .roadmap-board { grid-template-columns: 1fr; }
    .roadmap-extra { display: block; }
    .roadmap-more { display: none; }
    .rating-summary { max-width: 100%; }
    .roadmap-admin-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .page { width: calc(100% - 28px); }
    .section { padding: 40px 0; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .hero { padding-top: 43px; }
    .hero h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
    .hero-copy { text-align: left; }
    .hero-actions, .hero-note { justify-content: flex-start; }
    .support-cta { align-items: flex-start; flex-wrap: wrap; padding: 20px; }
    .support-cta-actions { width: 100%; }
    .support-cta-actions .button { flex: 1; }
    .support-subtitle { align-items: flex-start; flex-direction: column; gap: 4px; }
    .rating-summary { grid-template-columns: 1fr; gap: 22px; padding: 23px 20px; }
    .rating-summary::before { display: none; }
    .review-grid, .community-grid { grid-template-columns: 1fr; }
    .rating-total > strong { font-size: 46px; }
    .profile-banner { height: 175px; }
    .profile-body { gap: 16px; }
    .profile-card .profile-avatar-wrap { border-radius: 20px; }
    .profile-card .profile-avatar-wrap .avatar-large { border-radius: 19px; }
    .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .roadmap-card:hover, .community-card:hover, .feature-card:hover { transform: none; }
    .roadmap-column.is-expanded .roadmap-extra { animation: none; }
}
