/* ============================================================
   Wi-Fi Кремёнки — Captive Portal Styles
   ============================================================ */

/* ============================================================
   PayInfo — реквизиты, оферта, тарифы
   ============================================================ */
.pay-page {
  background: var(--bg, #0f172a);
  color: var(--text, #f1f5f9);
  min-height: 100vh;
}
.pay-page .container { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.pay-page header {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface, #1e293b) 0%, var(--bg, #0f172a) 100%);
}
.pay-page .pay-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.pay-page .logo { font-size: 48px; margin-bottom: 8px; display: block; }
.pay-page header h1 {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pay-page header p { color: var(--text-muted, #94a3b8); font-size: 1.15rem; margin-top: 12px; }
.pay-page .cards { padding: 40px 0; }
.pay-page .card {
  background: var(--surface, #1e293b);
  border-radius: 16px; padding: 32px; margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s, border-color 0.2s;
}
.pay-page .card:hover { transform: translateY(-2px); border-color: var(--primary, #2563eb); }
.pay-page .card h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }
.pay-page .card p { color: var(--text-muted, #94a3b8); }
.pay-page .card-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.pay-page .cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  padding: 14px 32px; background: var(--primary, #2563eb); color: #fff;
  text-decoration: none; border-radius: 12px; font-weight: 600; font-size: 1.1rem;
  transition: background 0.2s, transform 0.15s;
}
.pay-page .cta:hover { background: var(--primary-dark, #1d4ed8); transform: scale(1.02); }
.pay-page .cta-sub { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--text-muted, #94a3b8); }
.pay-page .cta-arrow { font-size: 1.3rem; }
.pay-page .plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.pay-page .plan { background: rgba(255,255,255,0.04); border-radius: 12px; padding: 20px; text-align: center; border: 1px solid rgba(255,255,255,0.06); }
.pay-page .plan-price { font-size: 2rem; font-weight: 800; color: #60a5fa; margin: 8px 0; }
.pay-page .plan-label { color: var(--text-muted, #94a3b8); font-size: 0.95rem; }
.pay-page .pay-section { padding: 40px 0 0; }
.pay-page .pay-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; text-align: center; }
.pay-page .pay-card { background: var(--surface, #1e293b); border-radius: 16px; padding: 32px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.06); }
.pay-page .pay-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; color: #60a5fa; }
.pay-page .field { margin-bottom: 14px; }
.pay-page .field:last-child { margin-bottom: 0; }
.pay-page .field-label { font-size: 0.85rem; color: var(--text-muted, #94a3b8); margin-bottom: 2px; }
.pay-page .field-value { font-size: 1.05rem; }
.pay-page .offer-text { color: var(--text-muted, #94a3b8); font-size: 0.95rem; line-height: 1.7; }
.pay-page .offer-text p { margin-bottom: 12px; }
.pay-page .offer-text p:last-child { margin-bottom: 0; }
.pay-page .offer-text a { color: var(--primary, #2563eb); }
.pay-page footer { text-align: center; padding: 40px 0; color: var(--text-muted, #94a3b8); font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 40px; }
.pay-page footer a { color: var(--primary, #2563eb); }
@media (max-width: 600px) {
  .pay-page header { padding: 40px 0 30px; }
  .pay-page header h1 { font-size: 1.8rem; }
  .pay-page .plans-grid { grid-template-columns: 1fr; }
  .pay-page .pay-card { padding: 20px; }
}

/* ---------- CSS Variables / Theme ---------- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #0ea5e9;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
  --sidebar-width: 250px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  min-height: 100vh;
  line-height: 1.5;
}

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

img { max-width: 100%; height: auto; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.main-content {
  min-height: calc(100vh - 120px);
  padding: 24px 16px;
}

.page-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.page-wrapper-wide {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- NavBar ---------- */
.navbar {
  background: var(--primary, #1890ff);
  padding: 8px 24px;
  height: var(--navbar-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-brand:hover { text-decoration: none; }
.navbar-brand .brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}
.navbar-brand .brand-icon {
  font-size: 1.5rem;
}

.navbar-links {
  display: flex;
  gap: 4px;
}

.navbar-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition);
}
.navbar-links a:hover {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
  color: #fff;
}
.navbar-links a.router-link-active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-800);
  color: var(--gray-400);
  text-align: center;
  padding: 16px;
  font-size: 0.8rem;
}

/* ============================================================
   Landing Page (WifiLanding from wifi.kremlan.ru)
   ============================================================ */
.landing-header {
  text-align: center;
  padding: 48px 24px 32px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.landing-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: 16px;
  display: inline-block;
}
.landing-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}
.landing-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}
.landing-page .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}
.landing-page .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px 0;
}
.landing-page .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.landing-page .card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
.landing-page .card-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}
.landing-page .card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}
.landing-page .card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 12px;
}
.landing-page .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}
.landing-page .cta:hover { background: var(--primary-dark); transform: scale(1.02); }
.landing-page .cta-arrow { font-size: 1.2rem; }
.landing-page .cta-sub { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--text-muted); }

.landing-page .plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.landing-page .plan {
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border);
}
.landing-page .plan .plan-label { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 4px; }
.landing-page .plan .plan-price { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 8px 0; }

/* Pay section */
.landing-page .pay-section { padding: 40px 0; }
.landing-page .pay-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; text-align: center; color: var(--text); }
.landing-page .pay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.landing-page .pay-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 16px; color: var(--text); }
.landing-page .field {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.landing-page .field:last-child { border-bottom: none; }
.landing-page .field-label { font-weight: 600; min-width: 140px; color: var(--text-muted); }
.landing-page .field-value { color: var(--text); }
.landing-page .offer-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.landing-page .offer-text p { margin-bottom: 12px; }
.landing-page .offer-text p:last-child { margin-bottom: 0; }
.landing-page .offer-text a { color: var(--primary); }

.landing-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.landing-footer a { color: var(--primary); text-decoration: none; }
.landing-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .landing-page .cards { grid-template-columns: 1fr; }
  .landing-page .plans-grid { grid-template-columns: 1fr; }
  .landing-page .field { flex-direction: column; gap: 2px; }
  .landing-page .field-label { min-width: auto; }
  .landing-header h1 { font-size: 1.5rem; }
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
}
.card-header {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ---------- Map/List Grid ---------- */
.map-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.map-column {
  min-height: 300px;
}
.map-column .map-container {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.list-column {
  min-height: 300px;
}
.list-column .card {
  margin-bottom: 0;
}
.list-column .card-header {
  margin-top: 0;
}
.h-full {
  height: 100%;
}
@media (max-width: 768px) {
  .map-list-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-success:hover:not(:disabled) {
  background: #059669;
  border-color: #059669;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-outline {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: #fff;
  transition: border-color var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-input::placeholder { color: var(--gray-400); }
.form-textarea { resize: vertical; min-height: 80px; }

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
/* 🔒 Подсказка про VPN (когда сервер видит клиента как внешнего) */
.vpn-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
}

/* ---------- Loading / Spinner ---------- */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }

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

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

/* ---------- Tables ---------- */
.table-container {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
thead th {
  background: var(--gray-100);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-200);
}
tbody tr:hover {
  background: var(--gray-50);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-gray { background: var(--gray-200); color: var(--gray-600); }

/* ---------- Utility ---------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--gray-500); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ---------- Login / Register ---------- */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--body-bg, #f0f2f5);
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card, 0 20px 27px rgba(0, 0, 0, 0.05));
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 24px;
}
.auth-card .auth-logo-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.auth-card .auth-logo h1 {
  font-size: 1.5rem;
  color: var(--primary);
}
.auth-card .auth-logo p {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: 4px;
}
.auth-card .ap-info-banner {
  margin-top: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  text-align: center;
}
.auth-card .ap-info-banner .ap-info-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
}
.auth-card .ap-info-banner .ap-info-ssid {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 2px;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.tariff-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.tariff-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.tariff-option:hover {
  border-color: var(--primary-light);
}
.tariff-option.selected {
  border-color: var(--primary);
  background: #eff6ff;
}
.tariff-option .tariff-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tariff-option.selected .tariff-radio {
  border-color: var(--primary);
}
.tariff-option.selected .tariff-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}
.tariff-option .tariff-info {
  flex: 1;
}
.tariff-option .tariff-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.tariff-option .tariff-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
}
.tariff-option .tariff-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ---------- Admin Layout ---------- */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 120px);
}

.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--gray-800);
  color: #fff;
  flex-shrink: 0;
  padding-top: 8px;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.admin-sidebar .sidebar-header {
  padding: 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  font-weight: 600;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: all var(--transition);
}
.admin-sidebar a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
}
.admin-sidebar a.router-link-active {
  background: var(--primary);
  color: #fff;
}
.admin-sidebar .sidebar-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.admin-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  max-width: calc(100% - var(--sidebar-width));
}

.admin-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-content-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ---------- Dashboard Stats Grid ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 4px;
}
.stat-card .stat-change {
  font-size: 0.8rem;
  margin-top: 4px;
}
.stat-card .stat-change.positive { color: var(--success); }
.stat-card .stat-change.negative { color: var(--danger); }

.stat-card.stat-blue { border-left: 4px solid var(--primary); }
.stat-card.stat-green { border-left: 4px solid var(--success); }
.stat-card.stat-yellow { border-left: 4px solid var(--warning); }
.stat-card.stat-red { border-left: 4px solid var(--danger); }
.stat-card.stat-purple { border-left: 4px solid #8b5cf6; }
.stat-card.stat-cyan { border-left: 4px solid var(--secondary); }

/* ---------- Map ---------- */
.map-wrapper {
  position: relative;
}
.map-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.map-btn {
  background: #fff;
  border: 2px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0,0,0,0.15);
  transition: background 0.15s;
  text-align: left;
  white-space: nowrap;
}
.map-btn:hover {
  background: #f4f4f4;
}
.map-container {
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

/* ---------- Payment Methods ---------- */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.payment-method:hover {
  border-color: var(--primary-light);
}
.payment-method.selected {
  border-color: var(--primary);
  background: #eff6ff;
}
.payment-method .pm-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.payment-method.selected .pm-radio {
  border-color: var(--primary);
}
.payment-method.selected .pm-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}
.payment-method .pm-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.payment-method .pm-info {
  flex: 1;
}
.payment-method .pm-name {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Page Header / Hero ---------- */
.page-header {
  text-align: center;
  padding: 40px 0;
}
.page-header-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- About Sections ---------- */
.about-section {
  margin-bottom: 32px;
}
.about-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-800);
}
.about-section p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 8px;
}
.contact-list {
  list-style: none;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--gray-600);
}
.contact-list li .contact-icon {
  width: 20px;
  text-align: center;
  color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }
  .navbar-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 8px;
    box-shadow: var(--shadow-lg);
  }
  .navbar-links.open {
    display: flex;
  }
  .admin-sidebar {
    width: 60px;
    overflow: hidden;
  }
  .admin-sidebar a span:not(.sidebar-icon) {
    display: none;
  }
  .admin-sidebar .sidebar-header {
    display: none;
  }
  .admin-content {
    max-width: calc(100% - 60px);
    padding: 16px;
  }
  .auth-card {
    padding: 24px;
    margin: 0 12px;
  }
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .page-header h1 {
    font-size: 1.5rem;
  }
}

/* ---------- Session Banner (NavBar) ---------- */
.session-banner {
  background: linear-gradient(135deg, #065f46, #047857);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.session-banner-icon {
  font-size: 1rem;
}
.session-banner-text {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.session-timer {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  padding: 2px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.session-banner-btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 3px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: background var(--transition);
}
.session-banner-btn:hover {
  background: rgba(255,255,255,0.35);
  color: #fff;
  text-decoration: none;
}

/* ---------- Active Session Card (Login/Payment) ---------- */
.active-session-card {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px solid #6ee7b7;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}
.active-session-card .session-status-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
.active-session-card h3 {
  font-size: 1.1rem;
  color: #065f46;
  margin-bottom: 16px;
}
.session-details {
  max-width: 320px;
  margin: 0 auto 16px;
}
.session-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.session-detail-row:last-child {
  border-bottom: none;
}
.detail-label {
  color: var(--gray-500);
  font-size: 0.875rem;
}
.detail-value {
  font-weight: 600;
  font-size: 0.95rem;
}
.timer-row .detail-label {
  font-weight: 600;
}
.session-timer-value {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 1px;
}
.session-actions {
  margin-top: 8px;
}

/* ---------- Tariff Grid (Payment page) ---------- */
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.tariff-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.tariff-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}
.tariff-card.selected {
  border-color: var(--primary);
  background: #eff6ff;
}
.tariff-card-header {
  margin-bottom: 12px;
}
.tariff-card-name {
  font-weight: 700;
  font-size: 1rem;
}
.tariff-card-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}
.tariff-card-body {
  font-size: 0.8rem;
  color: var(--gray-500);
}
.tariff-card-duration {
  margin-top: 6px;
  color: var(--gray-600);
  font-size: 0.85rem;
}
.tariff-card-check {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.payment-tariff-summary {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}
.summary-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 2px solid var(--gray-200);
  font-weight: 700;
  font-size: 1rem;
}

.payment-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 16px;
}
.payment-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.payment-header {
  text-align: center;
  margin-bottom: 24px;
}
.payment-header-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.payment-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
}
.payment-header p {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: 4px;
}
.more-tariffs {
  text-align: center;
  margin-bottom: 20px;
}

/* ---------- Tariff duration badge ---------- */
.tariff-duration {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 2px;
}
.tariff-duration::before {
  content: '\23F1';
  margin-right: 2px;
}

/* ---------- No Wi-Fi banner ---------- */
.no-wifi-banner {
  text-align: center;
  padding: 40px 20px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  margin: 16px 0;
}
.no-wifi-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.no-wifi-text {
  font-size: 1.1rem;
  color: #9a3412;
  margin-bottom: 8px;
}

/* ---------- Free tariff card (Login page) ---------- */
.free-tariff-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
  margin: 16px 0;
}
.free-tariff-card:hover {
  border-color: #22c55e;
  box-shadow: var(--shadow-md);
}
.free-tariff-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.free-tariff-info {
  flex: 1;
}
.free-tariff-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: #166534;
}
.free-tariff-desc {
  font-size: 0.85rem;
  color: #15803d;
  margin-top: 2px;
}
.free-tariff-duration {
  font-size: 0.8rem;
  color: #16a34a;
  margin-top: 4px;
}
.tariff-card.free {
  border-color: #86efac;
  background: #f0fdf4;
}

/* ---------- Tariff active badge ---------- */
.tariff-active-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #22c55e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

/* ---------- Active session card (Login page) ---------- */
.active-session-card {
  text-align: center;
  padding: 24px;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--radius-lg);
  margin: 16px 0;
}
.session-status-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}
.session-details {
  margin: 16px 0;
  text-align: left;
}
.session-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}
.session-detail-row:last-child {
  border-bottom: none;
}
.detail-label {
  color: var(--gray-500);
  font-size: 0.9rem;
}
.detail-value {
  font-weight: 600;
  font-size: 0.9rem;
}
.session-timer-value {
  color: #22c55e;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---------- DB Browser ---------- */
.db-browser-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.db-sidebar {
  width: 280px;
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
}
.db-sidebar .card-header {
  padding: 12px 16px;
  margin: 0;
}
.db-table-list {
  max-height: 500px;
  overflow-y: auto;
}
.db-table-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background var(--transition);
  border-bottom: 1px solid var(--gray-100);
}
.db-table-item:hover {
  background: var(--gray-50);
}
.db-table-item.active {
  background: #eff6ff;
  color: var(--primary);
  font-weight: 600;
}
.db-table-item:last-child {
  border-bottom: none;
}
.db-table-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-table-count {
  background: var(--gray-200);
  color: var(--gray-600);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
}
.db-table-item.active .db-table-count {
  background: var(--primary);
  color: #fff;
}
.db-content {
  flex: 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}
.db-content .card-header {
  padding: 12px 16px;
  margin: 0;
}
.db-row-count {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-left: 8px;
}
.db-empty {
  padding: 40px;
  text-align: center;
  color: var(--gray-400);
}
.db-table-wrapper {
  overflow-x: auto;
}
.db-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.db-data-table thead th {
  background: var(--gray-100);
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.db-data-table tbody td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--gray-200);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-data-table tbody tr:hover {
  background: var(--gray-50);
}
.db-row-num {
  color: var(--gray-400);
  font-size: 0.75rem;
  width: 40px;
  text-align: center;
}
.db-null {
  color: var(--gray-400);
  font-style: italic;
}
/* ---------- Phone Auth ---------- */
.auth-divider {
  text-align: center;
  color: var(--gray-400, #9ca3af);
  font-size: 0.85rem;
  margin: 20px 0;
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--gray-200, #e5e7eb);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.phone-auth-section {
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  padding: 16px;
  margin-bottom: 12px;
}
.phone-auth-section .form-label {
  font-size: 0.85rem;
  color: var(--gray-600, #4b5563);
  margin-bottom: 6px;
}
.phone-auth-section input.form-input {
  background: #fff;
}

.telegram-link-card {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-lg, 12px);
  padding: 16px;
  margin-bottom: 12px;
}
.telegram-link-card .form-label {
  font-size: 0.85rem;
  color: #4338ca;
}

.authed-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-lg, 12px);
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
}
.authed-banner h3 {
  font-size: 1.1rem;
  color: #065f46;
  margin: 8px 0;
}
.authed-banner .session-status-icon {
  font-size: 2rem;
}

.success-banner {
  background: #d1fae5;
  border-radius: var(--radius, 8px);
  padding: 12px;
  margin-top: 12px;
}
.success-banner p {
  color: #065f46;
  font-weight: 600;
  font-size: 0.9rem;
}

.no-wifi-banner {
  text-align: center;
  padding: 24px 16px;
  background: var(--gray-50, #f9fafb);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--gray-200, #e5e7eb);
  margin-bottom: 16px;
}
.no-wifi-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
.no-wifi-text {
  color: var(--gray-600, #4b5563);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.offline-pay-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-lg, 12px);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.offline-pay-banner h3 {
  font-size: 1.1rem;
  color: #065f46;
  margin: 8px 0;
}
.offline-pay-banner .session-status-icon {
  font-size: 2rem;
}

.phone-prompt {
  margin-bottom: 16px;
}

/* ---------- Bootstrap Aliases ---------- */
.badge-secondary {
  background: var(--gray-200, #e5e7eb);
  color: var(--gray-600, #4b5563);
}
.gap-1 { gap: 4px; }
.font-mono { font-family: 'Courier New', 'SF Mono', 'Fira Code', monospace; }
.log-container {
  background: #1e293b;
  color: #e2e8f0;
  font-family: 'Courier New', 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  padding: 16px;
  border-radius: var(--radius, 8px);
  overflow-x: auto;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
}


/* ═══════════════════════════════════════════════════
   Landing page (WifiLanding) — Light theme
   ═══════════════════════════════════════════════════ */

.landing-page {
  background: var(--body-bg, #f0f2f5);
  color: var(--text-primary, #1a1a2e);
  min-height: 100vh;
}

.landing-header {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(180deg, rgba(24,144,255,0.06) 0%, transparent 100%);
}
.landing-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(24,144,255,0.15);
}
.landing-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 16px;
  color: var(--primary, #1890ff);
}
.landing-header p {
  font-size: 1.1rem;
  color: var(--gray-500, #6b7280);
  margin-top: 8px;
}

.landing-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.landing-page .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.landing-page .card {
  background: #fff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card, 0 4px 12px rgba(0, 0, 0, 0.05));
  color: var(--text-primary, #1a1a2e);
  transition: transform var(--transition), box-shadow var(--transition);
}
.landing-page .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.landing-page .card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}
.landing-page .card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary, #1a1a2e);
}
.landing-page .card p {
  color: var(--gray-500, #6b7280);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Plans grid inside landing */
.landing-page .plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.landing-page .plan {
  text-align: center;
  padding: 16px 8px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color, #e5e7eb);
}
.landing-page .plan .plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1890ff;
  margin: 6px 0;
}
.landing-page .plan .plan-label {
  font-size: 0.8rem;
  color: var(--gray-500, #6b7280);
}

/* CTA buttons on landing */
.landing-page .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1890ff, #096dd9);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}
.landing-page .cta:hover {
  background: linear-gradient(135deg, #40a9ff, #1890ff);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(24,144,255,0.4);
  transform: translateY(-2px);
}
.landing-page .cta-arrow {
  transition: transform var(--transition);
}
.landing-page .cta:hover .cta-arrow {
  transform: translateX(4px);
}
.landing-page .cta-sub {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}

/* Pay section on landing */
.landing-page .pay-section {
  background: var(--gray-50, #f9fafb);
  margin-top: 40px;
  padding: 60px 0;
}
.landing-page .pay-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-primary, #1a1a2e);
}
.landing-page .pay-card {
  background: #fff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.landing-page .pay-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1890ff;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  padding-bottom: 8px;
}

/* Field rows */
.landing-page .field {
  display: flex;
  gap: 12px;
  padding: 6px 0;
}
.landing-page .field-label {
  min-width: 140px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-500, #6b7280);
}
.landing-page .field-value {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary, #1a1a2e);
}
.landing-page .offer-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-500, #6b7280);
}
.landing-page .offer-text a {
  color: #1890ff;
  text-decoration: underline;
}
.landing-page .offer-text strong {
  color: var(--text-primary, #1a1a2e);
}

/* Landing footer */
.landing-page .landing-footer {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--border-color, #e5e7eb);
  margin-top: 40px;
}
.landing-page .landing-footer a {
  color: var(--gray-500, #6b7280);
  font-size: 0.9rem;
}
.landing-page .landing-footer a:hover {
  color: #1890ff;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════
   PayInfo page (standalone /pay/)
   ═══════════════════════════════════════════════════ */
.pay-page {
  padding: 40px 0;
  background: var(--body-bg);
  min-height: 100vh;
}
.pay-page .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}
.pay-page h1 {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.pay-page .pay-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}
.pay-page .card {
  margin-bottom: 20px;
}
.pay-page .field {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.pay-page .field:last-child { border-bottom: none; }
.pay-page .field-label {
  min-width: 140px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.pay-page .field-value {
  flex: 1;
  font-size: 0.9rem;
}
.pay-page .offer-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.pay-page .offer-text strong { color: var(--text-primary); }
.pay-page .offer-text a { color: var(--primary); }

/* ═══════════════════════════════════════════════════
   Login page (standalone) — auth gradients
   ═══════════════════════════════════════════════════ */

/* Wait — auth-container already defined above with gradient bg */

/* Existing layout-class overrides for Admin/Login */
.auth-card .auth-logo-img {
  width: 120px;
  height: 120px;
}
.landing-logo {
  width: 120px;
  height: 120px;
}

/* ==========================================================
   Auth Page (/auth) — отдельная страница авторизации
   ========================================================== */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-header h1 {
  font-size: 1.4rem;
  margin: 0 0 4px;
}
.auth-step {
  animation: fadeIn 0.3s ease;
}
.auth-success {
  text-align: center;
  padding: 24px 0;
}
.success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.form-input-lg {
  padding: 14px 16px;
  font-size: 1.1rem;
  border-radius: var(--radius);
  border: 2px solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.form-input-lg:focus {
  outline: none;
  border-color: var(--primary);
}
.auth-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================
   Account Page (/account) — личный кабинет
   ========================================================== */
.account-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
}
.account-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--gray-500);
}
.auth-required {
  max-width: 440px;
  margin: 60px auto;
  padding: 0 16px;
}
.profile-card .profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-card h2 {
  margin: 0;
  font-size: 1.2rem;
}
.verified-badge {
  font-size: 0.85rem;
  color: var(--green-600);
  margin-top: 8px;
}
.profile-actions {
  display: flex;
  gap: 8px;
}
.btn-danger-outline {
  color: var(--red-600, #dc2626);
  border-color: var(--red-600, #dc2626);
}
.btn-danger-outline:hover {
  background: #fef2f2;
}
.session-card .session-info {
  text-align: center;
  padding: 12px 0;
}
.session-card .session-plan {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: capitalize;
}
.session-card .session-timer {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.session-card .no-session {
  text-align: center;
  padding: 16px 0;
}
.devices-card .device-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.devices-card .device-row:last-child {
  border-bottom: none;
}
.device-mac {
  font-family: monospace;
  font-size: 0.9rem;
}
.device-pending {
  background: #fffbeb;
  margin-top: 4px;
  padding: 8px;
  border-radius: var(--radius);
}
.btn-xs {
  padding: 4px 10px;
  font-size: 0.8rem;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th {
  text-align: left;
  padding: 8px 4px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  color: var(--gray-500);
}
.data-table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--border-color);
}
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-success { background: #d1fae5; color: #065f46; }
.status-completed { background: #e5e7eb; color: #374151; }
.status-failed { background: #fee2e2; color: #991b1b; }
.status-refunded { background: #dbeafe; color: #1e40af; }
.pagination-info a {
  color: var(--primary);
  text-decoration: none;
}
.pagination-info a:hover {
  text-decoration: underline;
}
.telegram-card {
  background: #f0f9ff;
  border-color: #bae6fd;
}
.edit-profile {
  padding: 16px;
  background: var(--bg-subtle, #f9fafb);
  border-radius: var(--radius);
}

