
/* SolidVPN Portal – lightweight production CSS (no external deps) */
:root{
  --bg:#0b1020;
  --bg2:#0c1636;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.09);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.65);
  --line:rgba(255,255,255,.10);
  --brand:#6ee7ff;
  --brand2:#a78bfa;
  --ok:#34d399;
  --warn:#fbbf24;
  --bad:#fb7185;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius:16px;
  --radius2:22px;
  --max:1180px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(1200px 600px at 15% 0%, rgba(110,231,255,.18), transparent 55%),
              radial-gradient(1000px 650px at 95% 10%, rgba(167,139,250,.18), transparent 55%),
              radial-gradient(900px 700px at 50% 110%, rgba(52,211,153,.10), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.topbar{
  position:sticky; top:0; z-index:40;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(11,16,32,.75), rgba(11,16,32,.40));
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
}
.brand .logo{
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  overflow:hidden;
}
.brand .logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.brand .title{font-weight:700; letter-spacing:.2px}
.brand .subtitle{font-size:12px; color:var(--muted); margin-top:2px}
.navlinks{display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  font-weight:600; font-size:13px;
}
.pill:hover{transform: translateY(-1px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18)}
.pill.primary{
  background: linear-gradient(90deg, rgba(110,231,255,.20), rgba(167,139,250,.18));
  border-color: rgba(110,231,255,.28);
}
.pill.danger{border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.10)}
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size:12px; color:var(--muted);
}
.hero{
  padding:42px 0 26px 0;
}
.heroGrid{
  display:grid; grid-template-columns: 1.2fr .8fr; gap:18px;
}
@media (max-width: 980px){ .heroGrid{grid-template-columns:1fr; } }
.h1{font-size:40px; line-height:1.05; margin:0 0 10px 0; letter-spacing:-.6px}
@media (max-width: 620px){ .h1{font-size:32px} }
.lead{font-size:16px; line-height:1.55; color:var(--muted); margin:0 0 18px 0}
.kpiRow{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.kpi{
  padding:10px 12px; border-radius: var(--radius);
  border:1px solid var(--line); background: var(--card);
  min-width: 170px;
}
.kpi .k{font-size:12px; color:var(--muted)}
.kpi .v{font-size:15px; font-weight:700; margin-top:4px}
.card{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.card.pad{padding:16px}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
@media (max-width: 920px){ .grid2{grid-template-columns:1fr} }
.grid3{display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px}
@media (max-width: 980px){ .grid3{grid-template-columns:1fr 1fr} }
@media (max-width: 640px){ .grid3{grid-template-columns:1fr} }

.section{padding:18px 0 26px 0}
.h2{font-size:18px; margin:0 0 10px 0}
.small{font-size:13px; color:var(--muted)}
.muted{color:var(--muted)}
.hr{height:1px; background:var(--line); margin:14px 0}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight:700;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  text-decoration:none;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22)}
.btn.primary{
  background: linear-gradient(90deg, rgba(110,231,255,.22), rgba(167,139,250,.20));
  border-color: rgba(110,231,255,.35);
}
.btn.ok{background: rgba(52,211,153,.16); border-color: rgba(52,211,153,.34)}
.btn.ghost{background: transparent}
.btn.disabled, .btn[disabled]{opacity:.55; cursor:not-allowed}
.input, .select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
textarea{min-height:120px; resize:vertical}
.input:focus,.select:focus,textarea:focus{border-color: rgba(110,231,255,.45); box-shadow: 0 0 0 3px rgba(110,231,255,.08)}
.formRow{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width: 720px){ .formRow{grid-template-columns:1fr} }
.table{width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border-radius: var(--radius); border:1px solid var(--line)}
.table th, .table td{padding:12px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top}
.table th{font-size:12px; color:var(--muted); font-weight:700; background: rgba(255,255,255,.04)}
.table tr:last-child td{border-bottom:0}
.code{
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  overflow:auto;
  word-break: break-all;
}
.toast{
  border:1px solid var(--line);
  border-left: 3px solid rgba(110,231,255,.55);
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding: 12px 12px;
}
.toast.ok{border-left-color: rgba(52,211,153,.65)}
.toast.bad{border-left-color: rgba(251,113,133,.75)}
.footer{
  padding:28px 0 34px 0;
  color: var(--muted);
  font-size:12px;
}
/* --- Plans: location filter --- */
/* =========================
   /plans page styles
   ========================= */

/* Базовые утилиты */
.section {
  width: 100%;
}

.h2 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0;
  color: #f4f7ff;
}

.small {
  font-size: 14px;
  line-height: 1.45;
  color: #cfd8ef;
}

.muted {
  color: rgba(207, 216, 239, 0.78);
}

/* Карточки */
.card {
  background:
    radial-gradient(1200px 500px at -10% -20%, rgba(80, 120, 255, 0.18), transparent 55%),
    radial-gradient(900px 400px at 120% 120%, rgba(66, 153, 225, 0.12), transparent 55%),
    rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 30px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(8px);
}

.pad {
  padding: 18px;
}

.hr {
  height: 1px;
  background: rgba(148, 163, 184, 0.16);
  margin: 14px 0;
  border-radius: 1px;
}

/* Бейджи */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe6ff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* Сетка тарифов */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Поля формы */
.input {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.75);
  color: #f4f7ff;
  padding: 0 12px;
  outline: none;
  box-sizing: border-box;
}

.input:focus {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: .18s ease;
  box-sizing: border-box;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #eef6ff;
  background: linear-gradient(180deg, rgba(59,130,246,.28), rgba(37,99,235,.22));
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.btn.primary:hover {
  background: linear-gradient(180deg, rgba(59,130,246,.34), rgba(37,99,235,.26));
  border-color: rgba(96, 165, 250, 0.62);
}

/* =========================
   Локации (chips)
   ========================= */

.plan-location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plan-loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #dbe6ff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.03);
  transition: .18s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.plan-loc-chip:hover {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(59,130,246,0.08);
  transform: translateY(-1px);
}

.plan-loc-chip.is-active {
  color: #eff6ff;
  border-color: rgba(96, 165, 250, 0.65);
  background: linear-gradient(180deg, rgba(59,130,246,.16), rgba(37,99,235,.10));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 0 3px rgba(59,130,246,.10);
}

.plan-loc-chip > span {
  display: inline-block;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
  white-space: normal;           /* чтобы название было видно и могло переноситься */
  overflow-wrap: anywhere;
}

.plan-loc-chip > span small {
  font-size: 12px;
  font-weight: 700;
  color: rgba(219, 230, 255, 0.92);
}

.plan-loc-chip > em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: #eaf2ff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148, 163, 184, 0.16);
  flex-shrink: 0;
}

/* Мобильный селект показываем только на маленьких экранах */
.plans-loc-select-form {
  display: none;
}

/* =========================
   Карточки тарифов (косметика)
   ========================= */

.grid3 .card .badge {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.grid3 .card > div[style*="font-size:18px"] {
  color: #f4f7ff;
}

.grid3 .card b {
  color: #eef4ff;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1100px) {
  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .h2 {
    font-size: 24px;
  }

  .pad {
    padding: 14px;
  }

  .grid3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* На мобиле удобнее select, а чипы скрываем */
  .plans-loc-select-form {
    display: block;
  }

  .plan-location-chips {
    display: none;
  }

  .btn,
  .btn.primary {
    min-height: 40px;
    padding: 0 14px;
  }

  .badge {
    min-height: 26px;
    font-size: 12px;
    padding: 3px 9px;
  }
}

