﻿/* ==========================================================================
   VPN APS · vpnaps.pro — чёрно-алый премиум
   ========================================================================== */
:root {
  --bg: #000000;
  --panel: #08070a;
  --card: #0d0b10;
  --surface: #14111a;
  --surface2: #1d1826;
  --border: #241d2e;
  --border2: #3a2b45;
  --text: #ffffff;
  --muted: #a8a1b4;
  --muted2: #6f6679;
  --accent: #ff2d55;
  --accent2: #e11d48;
  --pink: #ff6b9d;
  --purple: #c084fc;
  --gold: #fbbf24;
  --green: #2ee6a5;
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, Inter, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(620px 420px at 78% -6%, rgba(255, 45, 85, .22), transparent 62%),
    radial-gradient(700px 520px at 6% 4%, rgba(192, 132, 252, .14), transparent 60%),
    radial-gradient(520px 380px at 50% 108%, rgba(225, 29, 72, .12), transparent 60%);
  background-repeat: no-repeat;
}

a { color: var(--pink); text-decoration: none; }
a:hover { color: #fff; }

.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }

/* ---------- верхняя панель ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(0, 0, 0, .72);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; border-radius: 13px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .3px; }
.brand-sub { font-size: 10px; letter-spacing: 2.6px; color: var(--muted2); text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 9px 14px; border-radius: 11px; font-size: 14px; font-weight: 600;
  color: var(--muted); border: 1px solid transparent;
}
.nav a:hover { color: #fff; background: var(--surface); border-color: var(--border); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 14px; font-size: 16px; font-weight: 800;
  border: 0; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  letter-spacing: .2px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2) 70%, #ff5d7d);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(255, 45, 85, .85), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -14px rgba(255,45,85,.95); color:#fff; }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: var(--surface2); color: #fff; transform: translateY(-2px); }

/* ---------- герой ---------- */
.hero { padding: 74px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(255, 45, 85, .1); border: 1px solid rgba(255, 45, 85, .38);
  color: #ffb3c7; letter-spacing: .4px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
       box-shadow: 0 0 0 4px rgba(255,45,85,.18); }

h1.hero-title {
  margin: 22px 0 16px; font-size: clamp(38px, 5.4vw, 62px); line-height: 1.03;
  font-weight: 900; letter-spacing: -1.4px;
}
.hero-title .grad {
  background: linear-gradient(100deg, #ff2d55, #ff6b9d 45%, #c084fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { color: var(--muted); font-size: 17.5px; line-height: 1.6; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 27px; font-weight: 900; letter-spacing: -.6px; }
.hero-stat span { font-size: 12px; color: var(--muted2); letter-spacing: 1.4px; text-transform: uppercase; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-ring {
  width: min(430px, 88vw); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,45,85,.28), rgba(255,45,85,0) 62%),
    conic-gradient(from 210deg, #ff2d55, #ff6b9d, #c084fc, #ff2d55);
  mask: radial-gradient(circle, transparent 61%, #000 62%);
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%);
  filter: drop-shadow(0 0 46px rgba(255,45,85,.45));
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-logo {
  position: absolute; width: min(210px, 44vw); border-radius: 30%;
  box-shadow: 0 32px 70px -22px rgba(255,45,85,.85);
}

/* ---------- секции ---------- */
section { padding: 62px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; font-weight: 900; letter-spacing: -.8px; }
.section-head p { color: var(--muted); margin: 0 auto; max-width: 620px; font-size: 16px; line-height: 1.6; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--card), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--border2); transform: translateY(-3px); }
.card-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,45,85,.12); border: 1px solid rgba(255,45,85,.32);
  font-size: 21px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 9px; font-size: 17.5px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.62; }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; border: 1px solid var(--border);
        border-radius: var(--radius); background: var(--panel); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 900; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 24px -10px rgba(255,45,85,.9);
}
.step h4 { margin: 10px 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- блок скачивания ---------- */
.dl-box {
  border: 1px solid var(--border2); border-radius: 24px; padding: 34px;
  background:
    radial-gradient(520px 240px at 12% -30%, rgba(255,45,85,.22), transparent 65%),
    linear-gradient(180deg, var(--card), #060508);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.dl-box img { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 18px 40px -18px rgba(255,45,85,.9); }
.dl-meta { flex: 1; min-width: 240px; }
.dl-meta h3 { margin: 0 0 6px; font-size: 21px; }
.dl-meta p { margin: 0; color: var(--muted); font-size: 14px; }
.dl-count { font-size: 13px; color: var(--muted2); margin-top: 8px; }

/* ---------- таблицы ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 11px 14px; color: var(--muted2); font-weight: 700;
  font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--muted); }
.table tr:hover td { background: rgba(255,45,85,.045); color: var(--text); }

/* ---------- админка ---------- */
.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  background: var(--panel); border-right: 1px solid var(--border); padding: 20px 14px;
  position: sticky; top: 0; height: 100vh;
}
.side .brand { margin-bottom: 26px; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px;
  color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 4px;
  border: 1px solid transparent;
}
.side-link:hover, .side-link.active { background: var(--surface2); color: #fff; border-color: var(--accent); }
.admin-main { padding: 26px 30px 60px; }
.admin-title { font-size: 25px; font-weight: 900; margin: 0 0 6px; letter-spacing: -.5px; }
.admin-sub { color: var(--muted2); font-size: 13.5px; margin: 0 0 22px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; }
.kpi {
  background: linear-gradient(180deg, var(--card), var(--panel));
  border: 1px solid var(--border); border-radius: 16px; padding: 18px;
}
.kpi .label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--muted2); }
.kpi .value { font-size: 29px; font-weight: 900; margin-top: 8px; letter-spacing: -.8px; }
.kpi .hint { font-size: 12px; color: var(--pink); margin-top: 4px; }

.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px; margin-top: 18px;
}
.panel h3 { margin: 0 0 14px; font-size: 15.5px; letter-spacing: -.2px; }

.chart { width: 100%; height: 190px; display: block; }
.legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- вход в админку ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.login-card {
  width: min(430px, 100%); background: linear-gradient(180deg, var(--card), #06050a);
  border: 1px solid var(--border2); border-radius: 22px; padding: 34px;
  box-shadow: 0 40px 90px -50px rgba(255, 45, 85, .8);
}
.login-card h1 { margin: 16px 0 6px; font-size: 23px; font-weight: 900; }
.login-card p.sub { margin: 0 0 22px; color: var(--muted2); font-size: 13.5px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase;
              color: var(--muted2); margin-bottom: 7px; font-weight: 700; }
.field input {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); color: #fff; font-size: 15px; outline: none;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,85,.16); }
.alert {
  background: rgba(255, 71, 87, .12); border: 1px solid rgba(255, 71, 87, .5);
  color: #ffb3bb; padding: 11px 14px; border-radius: 11px; font-size: 13.5px; margin-bottom: 16px;
}

footer {
  border-top: 1px solid var(--border); margin-top: 40px; padding: 26px 0 40px;
  color: var(--muted2); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
}
.tag { font-size: 11.5px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--border2);
       color: var(--muted); }
.mono { font-family: "JetBrains Mono", Consolas, monospace; font-size: 12.5px; }

/* --- живой статус узлов --- */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 14px; }
.status-card {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card), var(--panel)); border: 1px solid var(--border);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.status-card:hover { transform: translateY(-2px); border-color: var(--border2);
                     box-shadow: 0 18px 40px -30px rgba(255, 45, 85, .9); }
.status-card.ok { border-color: rgba(46, 230, 165, .35); }
.status-card.down { border-color: rgba(255, 71, 87, .35); }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; background: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 230, 165, .16); animation: pulse-dot 2.4s ease-in-out infinite;
}
.status-card.down .status-dot { background: #ff4757; box-shadow: 0 0 0 4px rgba(255, 71, 87, .16); }
.status-dot.wait { background: var(--muted2); box-shadow: 0 0 0 4px rgba(168, 161, 180, .14); }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .38; } }
.status-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status-meta b { font-size: 14.5px; font-weight: 800; color: var(--text);
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-meta small { font-size: 11.5px; color: var(--muted2); letter-spacing: .4px; }
.status-ping { margin-left: auto; font-family: "JetBrains Mono", Consolas, monospace;
               font-size: 12.5px; color: var(--green); }
.status-card.down .status-ping { color: #ff4757; }

/* --- вход / регистрация / кабинет --- */
.nav-login { color: var(--muted); font-size: 14px; text-decoration: none; padding: 9px 6px; }
.nav-login:hover { color: #fff; }
.nav-user { display: inline-flex; align-items: center; gap: 7px; }
.nav-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; border-radius: 7px; font-size: 11px; font-weight: 900;
  background: linear-gradient(140deg, #ff2d55, #c084fc); color: #fff;
}
.nav-vip {
  font-size: 9.5px; font-weight: 900; letter-spacing: .6px; color: #fff;
  background: linear-gradient(120deg, #ff2d55, #ff6b9d); border-radius: 6px; padding: 1px 5px;
}

.auth-shell { display: flex; justify-content: center; padding: 46px 0 30px; }
.auth-card {
  width: 100%; max-width: 430px;
  background: linear-gradient(165deg, rgba(18, 14, 22, .97), rgba(8, 7, 11, .97));
  border: 1px solid var(--border); border-radius: 22px; padding: 28px 26px;
  box-shadow: 0 40px 90px -55px rgba(255, 45, 85, .85);
}
.auth-card.wide { max-width: 940px; }
.auth-card h1 { margin: 0 0 6px; font-size: 25px; font-weight: 900; }
.auth-card p.sub { margin: 0 0 20px; color: var(--muted2); font-size: 13.5px; }
.auth-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.auth-head h1 { margin: 0; font-size: 22px; }
.auth-head .chip { margin-left: auto; }
.auth-alt { margin: 18px 0 0; font-size: 13px; color: var(--muted2); text-align: center; }
.auth-alt a { color: var(--pink); font-weight: 700; text-decoration: none; }
.btn.wide { width: 100%; justify-content: center; }

.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.acc-box {
  background: rgba(13, 11, 16, .9); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.acc-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted2); font-weight: 800; }
.acc-value { font-size: 19px; font-weight: 900; color: #fff; }
.acc-foot { font-size: 12px; color: var(--muted2); }
.acc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.acc-block {
  background: rgba(13, 11, 16, .9); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px;
}
.acc-block h2 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: #fff; }
.acc-block .btn { margin-top: 6px; }
.acc-h2 { margin: 24px 0 10px; font-size: 16px; font-weight: 800; color: #fff; }
.acc-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* --- блок VIP на лендинге --- */
.vip-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.vip-card {
  background: linear-gradient(160deg, rgba(255, 45, 85, .12), rgba(13, 11, 16, .96) 45%);
  border: 1px solid rgba(255, 45, 85, .35); border-radius: var(--radius);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 8px;
}
.vip-card h3 { margin: 0; font-size: 17px; font-weight: 900; color: #fff; }
.vip-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.vip-card ul { margin: 6px 0 12px; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.vip-card .price { font-size: 26px; font-weight: 900; color: #fff; }
.vip-card .price small { font-size: 12px; color: var(--muted2); font-weight: 700; margin-left: 6px; }

/* --- общие компоненты (используются и в кабинете, и в админке) --- */
.adm-form { display: flex; flex-direction: column; gap: 10px; }
.adm-form.row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.adm-form label { display: flex; flex-direction: column; gap: 5px; font-size: 11px;
                  text-transform: uppercase; letter-spacing: 1px; color: var(--muted2); font-weight: 800; }
.adm-form input, .adm-form select, .mini-select {
  background: #17111d; border: 1px solid #3a2b46; color: #fff;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; outline: none; min-width: 130px;
  font-family: inherit; width: 100%;
}
.adm-form input:focus, .adm-form select:focus { border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, .14); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted2); font-weight: 800; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.adm-table td { padding: 9px 10px; border-bottom: 1px solid rgba(36, 29, 46, .65); color: var(--text); }
.adm-table .right { text-align: right; }
.dim { color: var(--muted2); }
.dim.small, .small { font-size: 12px; }
.mono { font-family: "JetBrains Mono", Consolas, monospace; font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border2);
  text-transform: uppercase; letter-spacing: .6px; }
.chip.vip { color: #fff; background: linear-gradient(120deg, #ff2d55, #ff6b9d); border-color: transparent; }
.chip.free { color: var(--muted); background: rgba(168, 161, 180, .1); }
.chip.ban { color: #ff8f9b; background: rgba(255, 71, 87, .14); border-color: rgba(255, 71, 87, .45); }
.chip.ok { color: #7bffd0; background: rgba(46, 230, 165, .12); border-color: rgba(46, 230, 165, .4); }
.chip.wait { color: #ffe08a; background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .4); }
.chip.kind { color: var(--pink); background: rgba(255, 107, 157, .1); border-color: rgba(255, 107, 157, .3); }
.notice { border-radius: 12px; padding: 11px 14px; font-size: 13px; margin-bottom: 14px;
  border: 1px solid var(--border2); }
.notice.ok { background: rgba(46, 230, 165, .1); border-color: rgba(46, 230, 165, .4); color: #9dffe0; }
.notice.err { background: rgba(255, 71, 87, .12); border-color: rgba(255, 71, 87, .45); color: #ffb3bb; }
.adm-avatar { display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(140deg, #ff2d55, #c084fc); color: #fff;
  font-weight: 900; font-size: 13px; }
.adm-avatar.big { width: 54px; height: 54px; border-radius: 17px; font-size: 22px; }
