/* ═══════════════════════════════════════════════════════════
   🎣 РЫБАЛКА — Основной стиль
   ═══════════════════════════════════════════════════════════ */

/* ── CSS-переменные ───────────────────────────────────── */
:root {
  --water-deep:   #0d1b2a;
  --water-dark:   #1b3a4b;
  --water-mid:    #2a6f8f;
  --water-light:  #5ba4c7;
  --sky-top:      #87ceeb;
  --sky-bottom:   #e0f0ff;
  --sunset:       #f4a460;
  --sunset-glow:  #ff7b42;
  --green:        #3a7d44;
  --green-light:  #5cb85c;
  --sand:         #f5e6d3;
  --white:        #ffffff;
  --text-dark:    #1a2a3a;
  --text-mid:     #4a5a6a;
  --text-light:   #7a8a9a;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.18);
  --radius:       16px;
  --radius-sm:    10px;
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Сброс ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Rubik', 'Segoe UI', system-ui, sans-serif;
  background: #f0f5fa;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Анимированный фон ────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(91, 164, 199, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(244, 164, 96, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(58, 125, 68, 0.04) 0%, transparent 50%);
  z-index: -1;
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(1%, -0.5%) rotate(0.5deg); }
  66% { transform: translate(-0.5%, 1%) rotate(-0.3deg); }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-light); }

/* ═══════════════════════════════════════════════════════════
   НАВБАР
   ═══════════════════════════════════════════════════════════ */

.navbar {
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none !important;
}

.logo-icon {
  font-size: 28px;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.nav-links { display: flex; gap: 8px; align-items: center; }

.nav-links a {
  color: #bcc8d4;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

.nav-links .btn-reg {
  background: linear-gradient(135deg, var(--sunset-glow), var(--sunset));
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 123, 66, 0.3);
}
.nav-links .btn-reg:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 123, 66, 0.45);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  background: linear-gradient(170deg,
    #0d1b2a 0%,
    #132e3f 20%,
    #1a4a5f 40%,
    #2a6f8f 60%,
    #4a9fbf 75%,
    #87ceeb 90%,
    #c5e8f7 100%
  );
  padding: 100px 24px 140px;
  text-align: center;
  overflow: hidden;
}

/* Солнце */
.hero::before {
  content: '';
  position: absolute;
  top: 30px;
  right: 15%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,200,100,0.9) 0%, rgba(255,150,60,0.6) 30%, rgba(255,100,40,0.2) 60%, transparent 70%);
  border-radius: 50%;
  animation: sunGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sunGlow {
  0%, 100% { box-shadow: 0 0 60px 30px rgba(255,160,60,0.3); }
  50% { box-shadow: 0 0 100px 50px rgba(255,180,80,0.5); }
}

/* Облака */
.hero-clouds {
  position: absolute;
  top: 40px;
  left: 10%;
  pointer-events: none;
}
.hero-clouds span {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  margin: 0 8px;
}
.hero-clouds .c1 { width: 100px; height: 30px; animation: cloudDrift 25s linear infinite; }
.hero-clouds .c2 { width: 70px; height: 22px; animation: cloudDrift 20s linear infinite 5s; }
.hero-clouds .c3 { width: 120px; height: 35px; animation: cloudDrift 30s linear infinite 10s; }

@keyframes cloudDrift {
  from { transform: translateX(-20px); opacity: 0.3; }
  50% { opacity: 0.7; }
  to { transform: translateX(1200px); opacity: 0.3; }
}

/* Рыба в воде */
.hero-fish {
  position: absolute;
  bottom: 60px;
  font-size: 32px;
  pointer-events: none;
  animation: fishSwim 24s ease-in-out infinite;
}

.hero-fish.f2 { bottom: 40px; animation-delay: -9s; animation-duration: 30s; font-size: 24px; }
.hero-fish.f3 { bottom: 80px; animation-delay: -18s; animation-duration: 36s; font-size: 20px; }

@keyframes fishSwim {
  0% { left: -10%; transform: translateY(0) scaleX(1); }
  40% { transform: translateY(-15px) scaleX(1); }
  50% { left: 105%; transform: translateY(-10px) scaleX(1); }
  51% { transform: translateY(-10px) scaleX(-1); }
  90% { transform: translateY(5px) scaleX(-1); }
  100% { left: -10%; transform: translateY(0) scaleX(-1); }
}

/* Волны */
.hero-waves {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.hero-waves svg { width: 100%; height: 80px; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   КНОПКИ
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sunset-glow), var(--sunset));
  color: #fff;
  box-shadow: 0 8px 25px rgba(255, 123, 66, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 123, 66, 0.5);
  color: #fff;
}

.btn-outline {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.25);
  border-color: #fff;
  color: #fff;
}

.btn-green {
  background: #3a7d44;
  background: linear-gradient(135deg, #3a7d44, #5cb85c);
  color: #fff;
  box-shadow: 0 8px 25px rgba(58, 125, 68, 0.3);
}
.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(58, 125, 68, 0.4);
  color: #fff;
}

.btn-block { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   ФИЧИ-КАРТОЧКИ
   ═══════════════════════════════════════════════════════════ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding: 60px 0 50px;
  position: relative;
}

.features-title {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 10px;
}

.features-title h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.features-title p {
  color: var(--text-mid);
  font-size: 16px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  transition: var(--transition);
}
.feature-card:nth-child(2)::before { background: var(--sunset); }
.feature-card:nth-child(3)::before { background: var(--water-mid); }
.feature-card:nth-child(4)::before { background: var(--green); }

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { width: 100%; border-radius: 0; }

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-mid);
  line-height: 1.6;
  font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════
   ФОРМЫ
   ═══════════════════════════════════════════════════════════ */

.auth-wrapper {
  min-height: calc(100vh - 64px - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-form {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  padding: 44px 36px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
}

.auth-form-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-form-header .icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.auth-form-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.auth-form-header p {
  color: var(--text-light);
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Rubik', sans-serif;
  transition: var(--transition);
  outline: none;
  background: #f8fafc;
  color: var(--text-dark);
}
.form-input:focus {
  border-color: var(--water-mid);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(42, 111, 143, 0.1);
}
.form-input::placeholder { color: #b0bec5; }

.form-submit {
  margin-top: 28px;
}

.auth-link {
  text-align: center;
  margin-top: 24px;
  color: var(--text-light);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   АЛЕРТЫ
   ═══════════════════════════════════════════════════════════ */

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}
.alert-error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fed7d7;
}
.alert-error::before { content: '⚠️'; }

/* ═══════════════════════════════════════════════════════════
   ПРОФИЛЬ
   ═══════════════════════════════════════════════════════════ */

.profile-wrapper {
  max-width: 650px;
  margin: 50px auto;
  padding: 0 24px;
}

.profile-header {
  background: linear-gradient(135deg, #0d1b2a, #1b3a4b);
  border-radius: 20px;
  padding: 48px 36px 36px;
  text-align: center;
  color: #fff;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(91,164,199,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--sunset), var(--sunset-glow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  box-shadow: 0 8px 30px rgba(244, 164, 96, 0.4);
  position: relative;
  z-index: 1;
}

.profile-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.profile-header .email {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.profile-section {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.04);
}

.profile-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-section p {
  color: var(--text-light);
  font-size: 15px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.stat-card .stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--water-mid);
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ── Плашка связи ─────────────────────── */

.contact-banner {
  background: #eef1f5;
  border-radius: 16px;
  padding: 20px 28px;
  text-align: center;
  color: var(--text-mid);
  margin-bottom: 16px;
  border: 1px solid #dde1e7;
}

.contact-text {
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

.contact-text a {
  color: var(--water-mid);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-text a:hover {
  color: var(--water-dark);
}

/* ── Плашка поддержки ─────────────────────── */

.support-banner {
  background: linear-gradient(135deg, #3a7d44, #4caf50);
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 25px rgba(58, 125, 68, 0.3);
  margin-bottom: 20px;
}

.support-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.support-text {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.95);
}

.support-text strong {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.support-text a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support-text a:hover {
  color: #e0ffe0;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid #fecaca;
  border-radius: 50px;
  color: #dc2626;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Montserrat', sans-serif;
  text-decoration: none !important;
}
.btn-logout:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

/* ═══════════════════════════════════════════════════════════
   ГЛАВНАЯ — СЕКЦИИ
   ═══════════════════════════════════════════════════════════ */

.section-cta {
  text-align: center;
  padding: 40px 24px 70px;
}

.section-cta .btn {
  font-size: 18px;
  padding: 18px 44px;
}

/* ═══════════════════════════════════════════════════════════
   ФУТЕР
   ═══════════════════════════════════════════════════════════ */

footer {
  background: var(--water-deep);
  color: #8aa0b0;
  text-align: center;
  padding: 28px 0;
  margin-top: auto;
  font-size: 14px;
  border-top: 3px solid rgba(255,255,255,0.05);
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer .footer-fish {
  font-size: 18px;
  animation: bob 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   АДАПТИВ
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero-content h1 { font-size: 30px; }
  .hero-content p { font-size: 15px; }
  .hero { padding: 60px 20px 100px; }

  .features { grid-template-columns: 1fr; }

  .profile-stats { grid-template-columns: 1fr; }

  .auth-form { padding: 30px 22px; }

  .navbar .container { height: 56px; }
  .logo { font-size: 18px; }
  .nav-links a { font-size: 13px; padding: 6px 10px; }

  footer .container { flex-direction: column; text-align: center; }

  /* Профиль */
  .profile-wrapper { padding: 0 12px; margin: 24px auto; }
  .profile-header { padding: 32px 18px 24px; }
  .profile-section { padding: 18px 14px; }

  /* VPN — мобилка */
  .vpn-server-card { padding: 14px 12px; }
  .vpn-server-header { gap: 6px; }
  .vpn-server-meta { gap: 4px; flex-wrap: wrap; }
  .vpn-server-ping,
  .vpn-server-online { font-size: 11px; padding: 2px 6px; }
  .vpn-server-status { font-size: 11px; padding: 2px 8px; }
  .vpn-server-name { font-size: 14px; }
  .vpn-config-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vpn-config-row .vpn-config-info { min-width: 0; }
  .vpn-config-actions { gap: 8px; }
  .vpn-config-actions .btn-sm { padding: 8px 14px; font-size: 15px; }
  .vpn-add-btn .btn { font-size: 14px; padding: 10px 20px; }
  .vpn-traffic { flex-wrap: wrap; gap: 4px; }
  .vpn-traffic span { font-size: 11px; }
  .vpn-config-name { font-size: 15px; }
}

@media (max-width: 400px) {
  .hero-content h1 { font-size: 24px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .nav-links { gap: 4px; }
  .nav-links a { font-size: 12px; padding: 5px 8px; }

  /* VPN — очень узкий экран */
  .vpn-server-header { flex-direction: column; align-items: flex-start; }
  .vpn-server-meta { width: 100%; }
  .vpn-config-actions { gap: 8px; }
  .vpn-config-actions .btn-sm { padding: 8px 14px; font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   АЛЕРТ — УСПЕХ
   ═══════════════════════════════════════════════════════════ */

.alert-success {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
}
.alert-success::before { content: '✅'; }

/* ═══════════════════════════════════════════════════════════
   БЛОК ВЕРИФИКАЦИИ В ПРОФИЛЕ
   ═══════════════════════════════════════════════════════════ */

.pending-block {
  text-align: center;
}

.pending-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.pending-block h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.pending-block p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ── Шаги верификации ─────────────────────── */

.pending-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
  background: #f7fafc;
  border-radius: 12px;
  padding: 8px;
}

.pending-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}

.pending-step.current {
  background: #fffbeb;
  color: #92400e;
  font-weight: 600;
  box-shadow: 0 0 0 2px #fef3c7;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
}

.pending-step.current .step-num {
  background: #fef3c7;
  color: #92400e;
}

.step-check,
.step-spin,
.step-lock {
  margin-left: auto;
  font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════
   АДМИНКА
   ═══════════════════════════════════════════════════════════ */

.admin-wrapper {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 24px;
}

.admin-header {
  background: linear-gradient(135deg, #0d1b2a, #1b3a4b);
  border-radius: 20px;
  padding: 32px 36px;
  margin-bottom: 24px;
  color: #fff;
  text-align: center;
}

.admin-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.admin-table-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #edf2f7;
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #f7fafc;
  color: var(--text-dark);
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: #f7fafc;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Бейджи ─────────────────────────────── */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-admin {
  background: #fef3c7;
  color: #92400e;
}

.badge-user {
  background: #edf2f7;
  color: #4a5568;
}

.badge-active {
  background: #c6f6d5;
  color: #276749;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-rejected {
  background: #fed7d7;
  color: #c53030;
}

/* ── Кнопки действий ─────────────────────── */

.admin-actions {
  text-align: center;
}

.btn-approve,
.btn-reject,
.btn-unlock {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: var(--transition);
  line-height: 1;
}

.btn-approve:hover {
  background: #c6f6d5;
}

.btn-reject:hover {
  background: #fed7d7;
}

.btn-unlock:hover {
  background: #e0f0ff;
}

/* ── Заблокированная строка ──────────────── */

.row-locked {
  background: #fff5f5 !important;
}

.badge-locked {
  background: #fed7d7;
  color: #c53030;
  margin-left: 6px;
}

.no-action {
  color: #cbd5e0;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   VPN СЕКЦИЯ В ПРОФИЛЕ
   ═══════════════════════════════════════════════════════════ */

.vpn-msg {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.vpn-msg-success {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
}

.vpn-msg-error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fed7d7;
}

.vpn-limit-counter {
  text-align: center;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 16px;
  padding: 8px 16px;
  background: #f0f5fa;
  border-radius: 8px;
}

.vpn-limit-full {
  color: #c53030;
  font-weight: 600;
}

.vpn-empty {
  text-align: center;
  padding: 24px;
}

.vpn-empty p {
  color: var(--text-mid);
  margin-bottom: 20px;
  font-size: 15px;
}

/* ── Карточка сервера ───────────────────────── */

.vpn-server-card {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.vpn-server-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.vpn-server-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.vpn-server-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.vpn-server-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

.vpn-server-ping {
  font-size: 12px;
  font-weight: 500;
  color: #4a5568;
  padding: 3px 8px;
  background: #edf2f7;
  border-radius: 50px;
}

.vpn-ping-good {
  color: #22543d;
  background: #c6f6d5;
}

.vpn-ping-bad {
  color: #742a2a;
  background: #fed7d7;
}

.vpn-server-online {
  font-size: 12px;
  font-weight: 500;
  color: #4a5568;
  padding: 3px 8px;
  background: #edf2f7;
  border-radius: 50px;
}

.vpn-online-good {
  color: #22543d;
  background: #c6f6d5;
}

.vpn-online-bad {
  color: #742a2a;
  background: #fed7d7;
}

/* ── Конфиг внутри сервера ──────────────────── */

.vpn-config-info {
  margin-bottom: 18px;
}

.vpn-config-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.vpn-protocol-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #4a5568;
  background: #edf2f7;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vpn-status {
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

.vpn-online {
  color: #276749;
  background: #c6f6d5;
}

.vpn-offline {
  color: #718096;
  background: #edf2f7;
}

.vpn-traffic {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-mid);
}

.vpn-traffic span {
  background: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* ── Кнопки действий ───────────────────────── */

.vpn-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.vpn-actions .btn-primary {
  color: #fff;
}

.vpn-actions .btn-outline {
  background: var(--white);
  color: var(--text-dark);
  border: 2px solid #e2e8f0;
  backdrop-filter: none;
}

.vpn-actions .btn-outline:hover {
  background: #f0f5fa;
  border-color: var(--sunset);
  color: var(--sunset);
}

.vpn-actions .btn-green {
  color: #fff;
}

.vpn-recreate-form {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.btn-danger-outline {
  display: inline-block;
  background: none;
  border: 1px solid #fc8181;
  color: #c53030;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.btn-danger-outline:hover {
  background: #fff5f5;
  color: #9b2c2c;
}

.btn-green:disabled {
  background: #cbd5e0;
  color: #718096;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-sm {
  padding: 4px 12px;
  font-size: 14px;
  border-radius: 6px;
}

/* ── Строка конфига ────────────────────────── */

.vpn-config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
  flex-wrap: wrap;
}

.vpn-config-row:last-of-type {
  border-bottom: none;
}

.vpn-config-row .vpn-config-info {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.vpn-config-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.vpn-add-btn {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  margin-top: 12px;
}

/* ── Страницы QR и vpn-url ─────────────────── */

.vpn-page-wrapper {
  max-width: 560px;
  margin: 40px auto;
  padding: 0 24px;
  text-align: center;
}

.vpn-page-wrapper h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.vpn-page-wrapper > p {
  color: var(--text-mid);
  font-size: 15px;
  margin-bottom: 24px;
}

.vpn-qr-container {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.vpn-qr-image {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.vpn-url-container {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.vpn-url-btn {
  font-size: 16px;
  padding: 14px 32px;
  color: #fff;
}

.vpn-url-text {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.vpn-url-text p {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.vpn-url-text code {
  display: block;
  background: #f7fafc;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  word-break: break-all;
  color: var(--text-dark);
  border: 1px solid #e2e8f0;
}

.vpn-back {
  margin-top: 24px;
}

.vpn-back .btn-outline {
  background: var(--white);
  color: var(--text-dark);
  border: 2px solid #e2e8f0;
  backdrop-filter: none;
}

.vpn-back .btn-outline:hover {
  background: #f0f5fa;
  border-color: var(--sunset);
  color: var(--sunset);
}

/* ═══════════════════════════════════════════════════════════
   СПИННЕР ЗАГРУЗКИ
   ═══════════════════════════════════════════════════════════ */

.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--water-mid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-text {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
}

/* ── Спиннер на кнопке ─────────────────── */

.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Скелетон (плейсхолдеры пока грузятся данные) ─── */

.vpn-skeleton {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}

.vpn-skeleton-row {
  height: 16px;
  background: linear-gradient(90deg, #e2e8f0 25%, #edf2f7 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

.vpn-skeleton-row:first-child {
  width: 60%;
  height: 20px;
}

.vpn-skeleton-row:last-child {
  width: 40%;
  margin-bottom: 0;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Ошибка загрузки ────────────────────── */

.vpn-load-error {
  text-align: center;
  padding: 24px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 12px;
  color: #c53030;
}

.vpn-load-error button {
  margin-top: 12px;
  background: none;
  border: 1px solid #fc8181;
  color: #c53030;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.vpn-load-error button:hover {
  background: #fed7d7;
}
