:root {
    --bg: #050b16;
    --bg-2: #081326;
    --panel: #0b1930;
    --panel-2: #0f2244;
    --line: rgba(120, 160, 255, .16);
    --text: #eef4ff;
    --muted: #8fa3c4;
    --blue: #0a5cff;
    --blue-2: #2f7bff;
    --ok: #2bd67b;
    --warn: #ffc857;
    --bad: #ff5d6c;
    --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(900px 500px at 15% -10%, rgba(10, 92, 255, .28), transparent 65%),
        radial-gradient(700px 400px at 95% 10%, rgba(0, 210, 255, .10), transparent 60%),
        var(--bg);
}

a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.fv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 11, 22, .72);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.fv-brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.fv-brand:hover { text-decoration: none; }
.fv-brand-mark {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--blue), #00a3ff);
    color: #fff; font-weight: 800; font-size: 22px;
    box-shadow: 0 10px 30px rgba(10, 92, 255, .35);
}
.fv-brand-text { font-weight: 800; letter-spacing: .12em; font-size: 18px; line-height: 1; }
.fv-brand-text span { color: var(--blue-2); }
.fv-brand-text small { display: block; font-size: 9px; letter-spacing: .34em; color: var(--muted); margin-top: 6px; }

.fv-nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.fv-user { color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-inline { display: inline; margin: 0; }
.fv-link { background: none; border: 0; padding: 0; color: var(--blue-2); cursor: pointer; font: inherit; }
.fv-link:hover { text-decoration: underline; }

.fv-main {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 42px 24px 60px;
    flex: 1;
}

.fv-footer {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
    padding: 22px 28px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: 12.5px;
}

/* Login */
.fv-login {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: center;
    min-height: 60vh;
}
.fv-login-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.fv-orbit {
    width: 330px; height: 330px; border-radius: 50%;
    border: 1px dashed rgba(120, 160, 255, .28);
    position: absolute;
    animation: fv-spin 40s linear infinite;
}
.fv-orbit::before, .fv-orbit::after {
    content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
    background: var(--blue-2); box-shadow: 0 0 24px var(--blue-2);
}
.fv-orbit::before { top: 18px; left: 74px; }
.fv-orbit::after { bottom: 40px; right: 40px; background: #00d2ff; }
@keyframes fv-spin { to { transform: rotate(360deg); } }
.fv-shield {
    width: 168px; height: 190px;
    display: grid; place-items: center;
    font-size: 84px; font-weight: 800; color: #fff;
    background: linear-gradient(160deg, #0a5cff, #052a86);
    border-radius: 26px 26px 80px 80px / 26px 26px 110px 110px;
    box-shadow: 0 30px 90px rgba(10, 92, 255, .42), inset 0 2px 0 rgba(255, 255, 255, .25);
}
.fv-eyebrow { color: var(--blue-2); font-size: 11.5px; letter-spacing: .22em; font-weight: 700; margin: 0 0 12px; }
.fv-login h1, .fv-dash h1, .fv-doc h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.fv-lead { color: var(--muted); font-size: 17px; margin: 0 0 26px; max-width: 54ch; }

.fv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px; border-radius: 12px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
    color: var(--text); font: inherit; font-weight: 650; cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.fv-btn:hover { text-decoration: none; background: rgba(255, 255, 255, .08); border-color: rgba(120, 160, 255, .35); transform: translateY(-1px); }
.fv-btn-primary { background: linear-gradient(135deg, var(--blue), #0043c9); border-color: transparent; box-shadow: 0 14px 34px rgba(10, 92, 255, .32); }
.fv-btn-primary:hover { background: linear-gradient(135deg, #1a6bff, #0050e6); }
.fv-btn-discord { background: #5865f2; border-color: transparent; width: fit-content; margin-bottom: 26px; box-shadow: 0 16px 40px rgba(88, 101, 242, .35); }
.fv-btn-discord:hover { background: #4752c4; }

.fv-checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.fv-checks li { display: flex; align-items: center; gap: 10px; color: #c6d5ee; font-size: 14.5px; }
.fv-checks span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(120, 160, 255, .5); display: inline-block; position: relative; }
.fv-checks span::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--blue-2); }

.fv-fineprint { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.fv-muted { color: var(--muted); font-size: 14px; }

/* Alerts */
.fv-alert { border-radius: 14px; padding: 14px 18px; margin: 0 0 22px; border: 1px solid var(--line); font-size: 14.5px; }
.fv-alert-info { background: rgba(10, 92, 255, .12); border-color: rgba(47, 123, 255, .35); }
.fv-alert-warn { background: rgba(255, 200, 87, .10); border-color: rgba(255, 200, 87, .35); }
.fv-alert-ok { background: rgba(43, 214, 123, .10); border-color: rgba(43, 214, 123, .38); }
.fv-alert-bad { background: rgba(255, 93, 108, .10); border-color: rgba(255, 93, 108, .38); }

/* Dashboard */
.fv-dash-head {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(15, 34, 68, .9), rgba(8, 19, 38, .9));
    margin-bottom: 20px;
}
.fv-account { display: flex; align-items: center; gap: 18px; }
.fv-avatar { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; background: var(--panel-2); }
.fv-avatar-empty { display: grid; place-items: center; font-weight: 800; font-size: 26px; color: #fff; }
.fv-name { font-size: 24px !important; margin: 0 0 6px !important; }
.fv-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fv-badge.ok { background: rgba(43, 214, 123, .16); color: var(--ok); }
.fv-badge.wait { background: rgba(255, 200, 87, .14); color: var(--warn); }
.fv-badge.bad { background: rgba(255, 93, 108, .16); color: var(--bad); }

.fv-progress { min-width: 180px; text-align: right; }
.fv-progress strong { font-size: 28px; display: block; line-height: 1; }
.fv-progress span { color: var(--muted); font-size: 12px; }
.fv-progress-bar { margin-top: 10px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fv-progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #00d2ff); border-radius: 99px; transition: width .35s ease; }

.fv-join { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0 0 24px; color: var(--muted); font-size: 14px; }

.fv-steps { display: grid; gap: 14px; }
.fv-step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(11, 25, 48, .72); }
.fv-step.current { border-color: rgba(47, 123, 255, .45); box-shadow: 0 0 0 1px rgba(47, 123, 255, .15), 0 18px 50px rgba(0, 20, 70, .35); }
.fv-step.done { opacity: .92; }
.fv-step-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.fv-step.done .fv-step-icon { background: rgba(43, 214, 123, .14); color: var(--ok); border-color: rgba(43, 214, 123, .3); }
.fv-step.current .fv-step-icon { background: rgba(47, 123, 255, .16); color: #9dc0ff; border-color: rgba(47, 123, 255, .4); }
.fv-step-body h2 { font-size: 17px; margin: 2px 0 6px; }
.fv-step-body p { margin: 0 0 10px; color: #c6d5ee; font-size: 14.5px; }
.fv-step-body p:last-child { margin-bottom: 0; }

.fv-form { display: grid; gap: 10px; margin-top: 12px; }
.fv-form-row { grid-template-columns: 1fr auto; align-items: center; }
.fv-input { height: 46px; border-radius: 11px; border: 1px solid var(--line); background: rgba(5, 11, 22, .6); color: var(--text); padding: 0 14px; font: inherit; min-width: 0; }
.fv-input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(47, 123, 255, .18); }

.fv-howto { margin: 12px 0 14px; padding-left: 20px; color: #c6d5ee; font-size: 14.5px; }
.fv-howto li { margin-bottom: 6px; }
.fv-download { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 6px 0 10px; }
.fv-codebox { margin: 14px 0; padding: 16px 18px; border-radius: 14px; border: 1px dashed rgba(47, 123, 255, .55); background: rgba(10, 92, 255, .10); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fv-codebox span { color: var(--muted); font-size: 13px; max-width: 40ch; }
.fv-codebox strong { font-size: 30px; letter-spacing: .18em; font-family: Consolas, "Courier New", monospace; color: #fff; }

/* Docs */
.fv-doc { max-width: 760px; margin: 0 auto; }
.fv-doc h2 { font-size: 19px; margin: 28px 0 8px; }
.fv-doc p, .fv-doc li { color: #c6d5ee; font-size: 15px; }
.fv-doc ul { padding-left: 20px; }
.fv-doc-center { text-align: center; }
.fv-doc-center .fv-btn { margin-top: 18px; }

.fv-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(5, 11, 22, .45); margin: 0 0 22px; }
.fv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.fv-table th, .fv-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid rgba(30, 48, 82, .7); vertical-align: top; }
.fv-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.fv-table tbody tr:last-child td { border-bottom: 0; }
.fv-table tbody tr:hover { background: rgba(47, 123, 255, .06); }
.fv-table-compact th, .fv-table-compact td { padding: 9px 11px; }
.fv-small { font-size: 12px; }
.fv-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; }
.fv-tag-ok { background: rgba(43, 214, 123, .14); border-color: rgba(43, 214, 123, .4); color: #6ff0a8; }
.fv-tag-warn { background: rgba(255, 200, 87, .13); border-color: rgba(255, 200, 87, .4); color: #ffd772; }
.fv-tag-bad { background: rgba(255, 93, 108, .14); border-color: rgba(255, 93, 108, .42); color: #ff8d99; }
.fv-tag-dim { background: rgba(140, 160, 195, .12); border-color: rgba(140, 160, 195, .3); color: #a9b8d4; }
.fv-ticket-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 22px; }
.fv-ticket-form { max-width: 720px; }
.fv-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.fv-field > span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.fv-textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.fv-thread { display: flex; flex-direction: column; gap: 12px; margin: 0 0 22px; }
.fv-msg { border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; background: rgba(5, 11, 22, .5); }
.fv-msg-admin { border-color: rgba(47, 123, 255, .45); background: rgba(10, 92, 255, .10); }
.fv-msg header { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.fv-msg-body { font-size: 14.5px; color: #dbe6f8; line-height: 1.55; }
.fv-inline-form { margin: 0 0 18px; }
.fv-btn-danger { border-color: rgba(255, 93, 108, .45); color: #ff9aa4; background: rgba(255, 93, 108, .08); }
.fv-btn-danger:hover { background: rgba(255, 93, 108, .16); border-color: rgba(255, 93, 108, .6); }
.fv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.fv-tab { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.fv-tab:hover { text-decoration: none; color: var(--text); border-color: rgba(120, 160, 255, .4); }
.fv-tab.active { background: rgba(10, 92, 255, .18); border-color: rgba(47, 123, 255, .55); color: #fff; }

/* Admin */
.fv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 26px; }
.fv-stat { border: 1px solid var(--line); border-radius: 14px; background: rgba(11, 25, 48, .72); padding: 14px 16px; min-width: 0; }
.fv-stat > span { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.fv-stat > strong { display: block; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.fv-stat > small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.fv-stat strong.fv-small { font-size: 13px; font-weight: 600; }
.fv-susp { color: var(--bad) !important; }
.fv-section-title { font-size: 17px; margin: 32px 0 12px; letter-spacing: -.01em; }
.fv-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 22px; }
.fv-admin-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.fv-admin-form .fv-input { min-width: 240px; flex: 1 1 240px; height: 44px; }
.fv-admin-settings { display: grid; gap: 14px; max-width: 640px; margin: 0 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(11, 25, 48, .72); }
.fv-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #c6d5ee; cursor: pointer; }
.fv-check input { width: 17px; height: 17px; accent-color: var(--blue-2); }

@media (max-width: 780px) {
    .fv-header { padding: 16px 18px; }
    .fv-main { padding: 28px 16px 44px; }
    .fv-login { grid-template-columns: 1fr; gap: 12px; }
    .fv-login-art { min-height: 240px; order: -1; }
    .fv-orbit { width: 210px; height: 210px; }
    .fv-shield { width: 120px; height: 138px; font-size: 60px; }
    .fv-dash-head { flex-direction: column; align-items: flex-start; }
    .fv-progress { text-align: left; width: 100%; }
    .fv-form-row { grid-template-columns: 1fr; }
    .fv-codebox { flex-direction: column; align-items: flex-start; }
    .fv-codebox strong { font-size: 26px; }
}
