/* ============================================================
   FIB Phoenix — стили портала
   Палитра: тёмно-синий бюро + холодный стальной акцент + золото печати
   ============================================================ */

:root {
    --navy-900: #050b1c;
    --navy-850: #071026;
    --navy-800: #0a1730;
    --navy-700: #0e1f40;
    --navy-600: #143059;
    --line:     rgba(120, 165, 235, .14);
    --line-str: rgba(120, 165, 235, .28);

    --text:     #e8eefc;
    --text-dim: #93a6c9;
    --text-mut: #62759a;

    --accent:      #3d7dff;
    --accent-soft: #6fa0ff;
    --accent-glow: rgba(61, 125, 255, .35);
    --gold:        #d9b45b;

    --ok:     #35c98a;
    --ok-dim: rgba(53, 201, 138, .12);
    --warn:   #e9b949;
    --warn-dim: rgba(233, 185, 73, .12);
    --bad:    #f0605f;
    --bad-dim: rgba(240, 96, 95, .12);

    --radius:    14px;
    --radius-sm: 10px;
    --shadow:    0 18px 50px -20px rgba(0, 0, 0, .75);
    --ease:      cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--navy-900);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
dl, dd, dt { margin: 0; }

.muted { color: var(--text-mut); font-weight: 500; }
.mono  { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85em; }

/* ---------- Фон ---------- */

#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
}

.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 15% 0%,   rgba(61, 125, 255, .20), transparent 70%),
        radial-gradient(50% 45% at 85% 10%,  rgba(20, 48, 89, .55),   transparent 70%),
        radial-gradient(70% 60% at 50% 100%, rgba(10, 23, 48, .9),    transparent 70%);
    animation: drift 22s var(--ease) infinite alternate;
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0)      scale(1); }
    to   { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(120, 165, 235, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 165, 235, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(80% 65% at 50% 30%, #000 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(80% 65% at 50% 30%, #000 20%, transparent 100%);
}

/* ---------- Хедер ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(5, 11, 28, .92), rgba(5, 11, 28, .72));
    border-bottom: 1px solid var(--line);
}

.header__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity .25s var(--ease);
}
.brand:hover { opacity: .85; }

.brand__seal {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}
.brand__seal svg { width: 100%; height: 100%; }

.seal-shield      { fill: rgba(61, 125, 255, .16); }
.seal-shield-line { fill: none; stroke: var(--accent-soft); stroke-width: 2; }
.seal-star        { fill: var(--gold); }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
    font-size: 17px;
    letter-spacing: .12em;
    font-weight: 800;
}
.brand__text small {
    font-size: 10.5px;
    color: var(--text-mut);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(120, 165, 235, .07); }

.nav__link.is-active {
    color: var(--text);
    background: rgba(61, 125, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(61, 125, 255, .3);
}

.nav__icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.nav__link--admin { color: var(--gold); }
.nav__link--admin:hover,
.nav__link--admin.is-active {
    color: #f0d894;
    background: rgba(217, 180, 91, .12);
    box-shadow: inset 0 0 0 1px rgba(217, 180, 91, .3);
}

/* Чип пользователя */
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(14, 31, 64, .5);
    color: var(--text);
    font: inherit;
    font-size: 13.5px;
    cursor: pointer;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.user-chip:hover { border-color: var(--line-str); background: rgba(20, 48, 89, .6); }

.user-chip__avatar { width: 26px; height: 26px; border-radius: 50%; }
.user-chip__name   { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip__caret  {
    width: 11px; height: 11px;
    fill: none; stroke: var(--text-dim); stroke-width: 1.6;
    transition: transform .3s var(--ease);
}
.user-chip[aria-expanded="true"] .user-chip__caret { transform: rotate(180deg); }

/* ---------- Выдвижная карточка пользователя ---------- */

.user-card {
    position: fixed;
    top: 74px;
    right: 24px;
    z-index: 50;
    width: 310px;
    padding: 20px;
    border: 1px solid var(--line-str);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(14, 31, 64, .97), rgba(7, 16, 38, .97));
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    animation: card-in .35s var(--ease) both;
}
.user-card[hidden] { display: none; }

@keyframes card-in {
    from { opacity: 0; transform: translateY(-10px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}

.user-card__top {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.user-card__avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(61, 125, 255, .45);
    box-shadow: 0 0 18px var(--accent-glow);
}

.user-card__name { font-weight: 650; font-size: 15.5px; }
.user-card__tag  { font-size: 12.5px; color: var(--text-mut); }

.user-card__rows { padding: 14px 0; display: flex; flex-direction: column; gap: 9px; }

.user-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}
.user-card__row > span    { color: var(--text-mut); }
.user-card__row > strong  { font-weight: 600; text-align: right; }

.prefix-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(217, 180, 91, .14);
    color: var(--gold);
    box-shadow: inset 0 0 0 1px rgba(217, 180, 91, .3);
    font-size: 12px;
    font-weight: 600;
}
.prefix-badge--sm { padding: 1px 7px; font-size: 11px; }

/* ---------- Основа ---------- */

.main {
    flex: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 72px;
    animation: page-in .5s var(--ease) both;
}

@keyframes page-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(165deg, rgba(14, 31, 64, .62), rgba(7, 16, 38, .72));
    box-shadow: var(--shadow);
}

/* ---------- Лендинг ---------- */

.hero {
    padding: 80px 0 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    border: 1px solid var(--line-str);
    border-radius: 999px;
    background: rgba(14, 31, 64, .5);
    font-size: 12.5px;
    letter-spacing: .04em;
    color: var(--text-dim);
    animation: fade-up .6s var(--ease) both;
}

.hero__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(53, 201, 138, .6);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0   rgba(53, 201, 138, .55); }
    70%  { box-shadow: 0 0 0 8px rgba(53, 201, 138, 0); }
    100% { box-shadow: 0 0 0 0   rgba(53, 201, 138, 0); }
}

.hero__title {
    font-size: clamp(38px, 7vw, 68px);
    font-weight: 800;
    letter-spacing: -.03em;
}
.hero__line {
    display: block;
    animation: fade-up .7s var(--ease) both;
    animation-delay: .08s;
}
.hero__line--accent {
    background: linear-gradient(100deg, var(--accent-soft), #a9c6ff 40%, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation-delay: .16s;
}

.hero__lead {
    max-width: 520px;
    color: var(--text-dim);
    font-size: 16px;
    animation: fade-up .7s var(--ease) both;
    animation-delay: .24s;
}

.hero__actions {
    margin-top: 8px;
    animation: fade-up .7s var(--ease) both;
    animation-delay: .32s;
}

.hero__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-mut);
    animation: fade-up .7s var(--ease) both;
    animation-delay: .4s;
}
.hero__note-icon {
    width: 14px; height: 14px;
    fill: none; stroke: var(--gold); stroke-width: 1.3;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.pillar {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fade-up .6s var(--ease) both;
    animation-delay: calc(.45s + var(--i, 0) * .1s);
    transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.pillar:nth-child(1) { --i: 0; }
.pillar:nth-child(2) { --i: 1; }
.pillar:nth-child(3) { --i: 2; }
.pillar:hover { transform: translateY(-4px); border-color: var(--line-str); }

.pillar__num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--accent-soft);
    opacity: .7;
}
.pillar h3 { font-size: 17px; font-weight: 650; }
.pillar p  { font-size: 14px; color: var(--text-dim); }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .25s var(--ease),
                background .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn__icon {
    width: 15px; height: 15px;
    fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .25s var(--ease);
}
.btn__icon--discord { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.btn:hover .btn__icon:not(.btn__icon--discord) { transform: translateX(2px); }

.btn--primary {
    background: linear-gradient(135deg, var(--accent), #2a5fd8);
    color: #fff;
    box-shadow: 0 10px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary:hover {
    box-shadow: 0 16px 40px -12px rgba(61, 125, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
    transform: translateY(-1px);
}

.btn--ghost {
    background: rgba(120, 165, 235, .06);
    border-color: var(--line-str);
    color: var(--text-dim);
}
.btn--ghost:hover { background: rgba(120, 165, 235, .12); color: var(--text); }

.btn--success {
    background: linear-gradient(135deg, #2fbd82, #1e9a67);
    color: #fff;
    box-shadow: 0 10px 30px -12px rgba(53, 201, 138, .5);
}
.btn--success:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(53, 201, 138, .65); }

.btn--danger {
    background: rgba(240, 96, 95, .1);
    border-color: rgba(240, 96, 95, .35);
    color: #ff8382;
}
.btn--danger:hover { background: rgba(240, 96, 95, .18); }

.btn--lg   { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.btn--full { width: 100%; }

/* ---------- Заголовки страниц ---------- */

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.page-title {
    font-size: 28px;
    font-weight: 750;
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-sub { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

.admin-tag {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(217, 180, 91, .12);
    box-shadow: inset 0 0 0 1px rgba(217, 180, 91, .3);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.admin-tag--sm { font-size: 10px; padding: 2px 8px; }

.form-head { margin-bottom: 24px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: var(--text-mut);
    transition: color .2s var(--ease), gap .2s var(--ease);
}
.back-link:hover { color: var(--accent-soft); gap: 9px; }
.back-link svg {
    width: 13px; height: 13px;
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.view-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Фильтры ---------- */

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.filters--sub { margin-top: -12px; }

.filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(14, 31, 64, .4);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-dim);
    transition: all .22s var(--ease);
}
.filter:hover { border-color: var(--line-str); color: var(--text); transform: translateY(-1px); }

.filter.is-active {
    background: rgba(61, 125, 255, .16);
    border-color: rgba(61, 125, 255, .45);
    color: #fff;
    box-shadow: 0 6px 20px -8px var(--accent-glow);
}

.filter__count {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(120, 165, 235, .12);
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
}
.filter.is-active .filter__count { background: rgba(255, 255, 255, .18); }

.filter--sm { padding: 6px 13px; font-size: 12.5px; }

/* ---------- Список заявок ---------- */

.app-list { display: flex; flex-direction: column; gap: 10px; }

.app-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    animation: fade-up .45s var(--ease) both;
    animation-delay: calc(var(--i, 0) * .05s);
    transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.app-row:hover {
    transform: translateX(4px);
    border-color: rgba(61, 125, 255, .4);
    background: linear-gradient(165deg, rgba(20, 48, 89, .7), rgba(10, 23, 48, .8));
}

.app-row__icon {
    flex: none;
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(61, 125, 255, .12);
    box-shadow: inset 0 0 0 1px rgba(61, 125, 255, .25);
}
.app-row__icon svg {
    width: 20px; height: 20px;
    fill: none; stroke: var(--accent-soft);
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.app-row__icon--blacklist { background: rgba(240, 96, 95, .1);  box-shadow: inset 0 0 0 1px rgba(240, 96, 95, .25); }
.app-row__icon--blacklist svg { stroke: #ff8382; }
.app-row__icon--restore   { background: rgba(53, 201, 138, .1); box-shadow: inset 0 0 0 1px rgba(53, 201, 138, .25); }
.app-row__icon--restore svg { stroke: var(--ok); }
.app-row__icon--hardban   { background: rgba(217, 180, 91, .1); box-shadow: inset 0 0 0 1px rgba(217, 180, 91, .25); }
.app-row__icon--hardban svg { stroke: var(--gold); }

.app-row__avatar {
    flex: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-str);
}

.app-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.app-row__title { font-weight: 600; font-size: 15px; }
.app-row__meta  { font-size: 12.5px; color: var(--text-mut); }
.app-row__meta strong { color: var(--text-dim); font-weight: 600; }

.app-row__arrow {
    flex: none;
    width: 14px; height: 14px;
    fill: none; stroke: var(--text-mut);
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .25s var(--ease), stroke .25s var(--ease);
}
.app-row:hover .app-row__arrow { transform: translateX(3px); stroke: var(--accent-soft); }

/* ---------- Бейдж статуса ---------- */

.badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.badge--pending  { background: var(--warn-dim); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(233, 185, 73, .28); }
.badge--pending .badge__dot { animation: pulse-warn 2s infinite; }
.badge--approved { background: var(--ok-dim);   color: var(--ok);   box-shadow: inset 0 0 0 1px rgba(53, 201, 138, .28); }
.badge--rejected { background: var(--bad-dim);  color: var(--bad);  box-shadow: inset 0 0 0 1px rgba(240, 96, 95, .28); }

@keyframes pulse-warn {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}

/* ---------- Пусто ---------- */

.empty {
    padding: 56px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fade-up .5s var(--ease) both;
}
.empty__icon {
    width: 58px; height: 58px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: rgba(61, 125, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(61, 125, 255, .2);
    margin-bottom: 4px;
}
.empty__icon svg {
    width: 26px; height: 26px;
    fill: none; stroke: var(--accent-soft);
    stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.empty h3 { font-size: 18px; }
.empty p  { color: var(--text-dim); font-size: 14px; max-width: 380px; }
.empty .btn { margin-top: 8px; }

/* ---------- Каталог форм ---------- */

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

.form-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    animation: fade-up .5s var(--ease) both;
    animation-delay: calc(var(--i, 0) * .07s);
    transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.form-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 0% 50%, rgba(61, 125, 255, .12), transparent 60%);
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
}
.form-card:hover { transform: translateY(-4px); border-color: rgba(61, 125, 255, .45); }
.form-card:hover::after { opacity: 1; }

.form-card__icon {
    flex: none;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(61, 125, 255, .12);
    box-shadow: inset 0 0 0 1px rgba(61, 125, 255, .25);
    transition: transform .3s var(--ease);
}
.form-card:hover .form-card__icon { transform: scale(1.06) rotate(-3deg); }
.form-card__icon svg {
    width: 22px; height: 22px;
    fill: none; stroke: var(--accent-soft);
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.form-card__icon--blacklist { background: rgba(240, 96, 95, .1);  box-shadow: inset 0 0 0 1px rgba(240, 96, 95, .25); }
.form-card__icon--blacklist svg { stroke: #ff8382; }
.form-card__icon--restore   { background: rgba(53, 201, 138, .1); box-shadow: inset 0 0 0 1px rgba(53, 201, 138, .25); }
.form-card__icon--restore svg { stroke: var(--ok); }
.form-card__icon--hardban   { background: rgba(217, 180, 91, .1); box-shadow: inset 0 0 0 1px rgba(217, 180, 91, .25); }
.form-card__icon--hardban svg { stroke: var(--gold); }

.form-card__body  { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.form-card__title { font-weight: 650; font-size: 15.5px; }
.form-card__desc  { font-size: 13px; color: var(--text-mut); line-height: 1.45; }

.form-card__cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-soft);
    opacity: .75;
    transition: opacity .25s var(--ease), gap .25s var(--ease);
}
.form-card:hover .form-card__cta { opacity: 1; gap: 9px; }
.form-card__cta svg {
    width: 13px; height: 13px;
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Формы ---------- */

.form { padding: 28px; display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 7px; }

.field__label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}
.req { color: var(--bad); margin-left: 3px; }

.input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-str);
    border-radius: var(--radius-sm);
    background: rgba(5, 11, 28, .6);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.input::placeholder { color: var(--text-mut); opacity: .65; }
.input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(5, 11, 28, .85);
    box-shadow: 0 0 0 3px rgba(61, 125, 255, .16);
}
.input--area { resize: vertical; min-height: 96px; line-height: 1.5; }

.select-wrap { position: relative; }
.select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}
.select-wrap select option { background: var(--navy-800); color: var(--text); }
.select-wrap__caret {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    width: 12px; height: 12px;
    fill: none; stroke: var(--text-mut); stroke-width: 1.6;
    pointer-events: none;
}

.field__hint  { font-size: 12.5px; color: var(--text-mut); line-height: 1.45; }
.field__error { font-size: 12.5px; color: var(--bad); font-weight: 500; }

.field.has-error .input {
    border-color: rgba(240, 96, 95, .6);
    animation: shake .4s var(--ease);
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}

.form__legend { font-size: 12.5px; color: var(--text-mut); }

.form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

/* ---------- Просмотр заявки ---------- */

.verdict {
    padding: 20px 22px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    border-left: 3px solid var(--line-str);
    animation: fade-up .45s var(--ease) both;
}
.verdict--pending  { border-left-color: var(--warn); }
.verdict--approved { border-left-color: var(--ok); }
.verdict--rejected { border-left-color: var(--bad); }

.verdict__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
}
.verdict__head span { font-size: 12.5px; color: var(--text-mut); font-weight: 500; }
.verdict__comment   { color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.verdict__by        { font-size: 12.5px; color: var(--text-mut); }

.details { padding: 24px; animation: fade-up .5s var(--ease) both; animation-delay: .06s; }

.details__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-mut);
    margin-bottom: 18px;
}

.details__list { display: flex; flex-direction: column; }

.details__row {
    display: grid;
    grid-template-columns: minmax(180px, 38%) 1fr;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.details__row:first-child { border-top: none; padding-top: 0; }

.details__row dt { font-size: 13.5px; color: var(--text-mut); line-height: 1.45; }
.details__row dd { font-size: 14.5px; font-weight: 500; word-break: break-word; }

.link-out {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-soft);
    word-break: break-all;
    transition: color .2s var(--ease);
}
.link-out:hover { color: #a9c6ff; text-decoration: underline; }
.link-out svg {
    flex: none;
    width: 12px; height: 12px;
    fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Админка: рассмотрение ---------- */

.review-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    align-items: start;
}
.review-grid__main { display: flex; flex-direction: column; gap: 16px; }

.review { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.review__actions { display: flex; justify-content: flex-end; gap: 10px; }

.applicant {
    padding: 22px;
    position: sticky;
    top: 90px;
    animation: fade-up .5s var(--ease) both;
    animation-delay: .1s;
}

.applicant__top {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
}
.applicant__avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(61, 125, 255, .4);
}
.applicant__name { font-weight: 650; }
.applicant__tag  { font-size: 12.5px; color: var(--text-mut); }

.applicant__rows { display: flex; flex-direction: column; gap: 10px; }
.applicant__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}
.applicant__row > span   { color: var(--text-mut); flex: none; }
.applicant__row > strong { font-weight: 600; text-align: right; word-break: break-all; }

.applicant__note {
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    background: rgba(217, 180, 91, .07);
    box-shadow: inset 0 0 0 1px rgba(217, 180, 91, .22);
}
.applicant__note-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 5px;
}
.applicant__note p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.applicant .btn { margin-top: 16px; }

/* ---------- Админка: участники ---------- */

.users { display: flex; flex-direction: column; gap: 12px; }

.user-item {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fade-up .45s var(--ease) both;
    animation-delay: calc(var(--i, 0) * .04s);
    scroll-margin-top: 90px;
    transition: border-color .25s var(--ease);
}
.user-item:target { border-color: rgba(61, 125, 255, .5); box-shadow: 0 0 0 3px rgba(61, 125, 255, .12), var(--shadow); }

.user-item__head { display: flex; align-items: center; gap: 13px; }
.user-item__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-str);
}
.user-item__name {
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}
.user-item__meta { font-size: 12.5px; color: var(--text-mut); }

.user-item__grid {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr;
    gap: 16px;
}

.user-item__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

/* Переключатель */
.switch { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.switch__track {
    position: relative;
    width: 42px; height: 24px;
    flex: none;
    border-radius: 999px;
    background: rgba(120, 165, 235, .12);
    box-shadow: inset 0 0 0 1px var(--line-str);
    transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.switch__thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--text-mut);
    transition: transform .25s var(--ease), background .25s var(--ease);
}
.switch input:checked + .switch__track {
    background: rgba(61, 125, 255, .3);
    box-shadow: inset 0 0 0 1px rgba(61, 125, 255, .5);
}
.switch input:checked + .switch__track .switch__thumb {
    transform: translateX(18px);
    background: var(--accent-soft);
}
.switch input:disabled + .switch__track { opacity: .6; cursor: not-allowed; }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3px rgba(61, 125, 255, .25); }

.switch__label { font-size: 13.5px; color: var(--text-dim); }
.switch__label em { color: var(--text-mut); font-style: normal; font-size: 12.5px; }

/* ---------- Доступ запрещён ---------- */

.denied { display: grid; place-items: center; padding: 60px 0; }
.denied__card {
    max-width: 480px;
    padding: 40px 34px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: fade-up .5s var(--ease) both;
}
.denied__icon {
    width: 62px; height: 62px;
    display: grid; place-items: center;
    border-radius: 18px;
    background: rgba(240, 96, 95, .1);
    box-shadow: inset 0 0 0 1px rgba(240, 96, 95, .25);
}
.denied__icon svg {
    width: 30px; height: 30px;
    fill: none; stroke: var(--bad);
    stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.denied__mark { stroke-width: 1.8; }
.denied h1 { font-size: 23px; }
.denied__text { color: var(--text-dim); font-size: 14.5px; }
.denied__hint { color: var(--text-mut); font-size: 13px; }
.denied__actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* ---------- Флеш ---------- */

.flash {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 500;
    animation: flash-in .45s var(--ease) both;
}
@keyframes flash-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.flash--success { background: var(--ok-dim);  color: var(--ok);  box-shadow: inset 0 0 0 1px rgba(53, 201, 138, .3); }
.flash--error   { background: var(--bad-dim); color: #ff8382;    box-shadow: inset 0 0 0 1px rgba(240, 96, 95, .3); }

/* ---------- Футер ---------- */

.footer {
    border-top: 1px solid var(--line);
    background: rgba(5, 11, 28, .6);
    backdrop-filter: blur(8px);
}
.footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-mut);
    flex-wrap: wrap;
}
.footer__sep { opacity: .5; }

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
    .review-grid { grid-template-columns: 1fr; }
    .applicant   { position: static; }
    .user-item__grid { grid-template-columns: 1fr; }
    .details__row    { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 720px) {
    .header__inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
    .nav { margin-left: 0; order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
    .user-chip { margin-left: auto; }
    .user-card { right: 12px; left: 12px; width: auto; top: auto; }
    .main   { padding: 28px 16px 56px; }
    .hero   { padding: 50px 0 40px; }
    .catalog { grid-template-columns: 1fr; }
    .app-row { flex-wrap: wrap; }
    .app-row__arrow { display: none; }
    .form   { padding: 20px; }
    .form__actions { flex-direction: column-reverse; }
    .form__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    #bg-canvas { display: none; }
}
