/* ═══════════════════════════════
   QUANTIA PREMIUM REDESIGN — premium.css
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800;900&display=swap');

/* ─── ROOT OVERRIDES ─── */
:root {
  --bg: #030508;
  --bg2: #06080f;
  --card: rgba(10, 14, 22, 0.7);
  --card2: rgba(12, 18, 30, 0.8);
  --border: rgba(139, 92, 246, 0.1);
  --border2: rgba(139, 92, 246, 0.2);
  --accent: #8b5cf6;
  --accent2: #a78bfa;
  --accent3: #c4b5fd;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted2: #cbd5e1;
  --radius: 14px;
  --radius-lg: 18px;
  --sidebar: 240px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
  --transition-fast: 0.2s var(--ease);
  --sidebar-bg: rgba(5, 7, 12, 0.95);
  --topbar-h: 62px;
  --font-heading: 'Manrope', 'Inter', sans-serif;
}

/* ─── BODY BACKGROUND ─── */
body {
  background: var(--bg);
  font-family: 'Inter', 'Manrope', sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* ─── GRID BG IMPROVED (Canvas Container) ─── */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background: #030407;
}

/* ═══════════════════════════════
   AUTH PAGES — REDESIGNED
═══════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  overflow: hidden;
}

.auth-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  background: linear-gradient(135deg, rgba(10, 8, 20, 0.98) 0%, rgba(15, 10, 30, 0.99) 100%);
  border-right: 1px solid rgba(139, 92, 246, 0.1);
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.15) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(60px);
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(99, 70, 200, 0.1) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(80px);
}

.auth-left-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-left-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.auth-left-logo img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.auth-left-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.auth-left-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.auth-left-tagline {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-left-tagline::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.auth-left-heading {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.auth-left-heading .highlight {
  background: linear-gradient(135deg, #8b5cf6, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-left-desc {
  font-size: 14px;
  color: rgba(148, 163, 184, 0.75);
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 36px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(139, 92, 246, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.08);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.auth-feature:hover {
  border-color: rgba(139, 92, 246, 0.18);
  background: rgba(139, 92, 246, 0.07);
}

.auth-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent2);
}

.auth-feature-icon svg {
  width: 15px;
  height: 15px;
}

.auth-feature-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(203, 213, 225, 0.85);
}

.auth-left-footer {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.35);
}

/* Right side — form */
.auth-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  background: var(--bg);
  position: relative;
}

.auth-right::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  background: rgba(10, 13, 22, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(139, 92, 246, 0.06);
  position: relative;
  z-index: 1;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  border-radius: 1px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.14);
  border-radius: 999px;
  padding: 7px 16px;
  width: fit-content;
  transition: all 0.3s ease;
}

.auth-logo:hover {
  border-color: rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.1);
}

.auth-logo .logo-mark img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.auth-logo span:last-child {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.auth-title {
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  text-align: left;
}

.auth-subtitle {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.6);
  margin-bottom: 24px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.65);
  text-transform: uppercase;
  margin-bottom: 7px;
  margin-top: 16px;
}

.form-label:first-of-type { margin-top: 0; }

.input-field {
  background: rgba(8, 10, 18, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: all 0.25s ease !important;
}

.input-field:focus {
  border-color: rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1), 0 0 20px rgba(139, 92, 246, 0.08) !important;
  background: rgba(10, 12, 22, 0.9) !important;
}

.input-field::placeholder {
  color: rgba(148, 163, 184, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 22px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-block {
  width: 100% !important;
}

.auth-card .btn {
  width: 100% !important;
  margin-top: 20px !important;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.2) inset !important;
  border: none !important;
  font-weight: 700 !important;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45), 0 0 0 1px rgba(167, 139, 250, 0.3) inset !important;
  background: linear-gradient(135deg, #9d72ff 0%, #8b5cf6 100%) !important;
}

.btn-primary:active {
  transform: translateY(0) !important;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.6);
}

.auth-switch a {
  color: var(--accent2);
  font-weight: 600;
  transition: color 0.2s;
}

.auth-switch a:hover {
  color: var(--accent3);
}

@media (max-width: 800px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-left {
    display: none;
  }
  .auth-right {
    padding: 40px 24px;
  }
}

/* ═══════════════════════════════
   SIDEBAR — PREMIUM REDESIGN
═══════════════════════════════ */

.sidebar {
  width: var(--sidebar);
  min-height: 100vh;
  background: var(--sidebar-bg) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-right: 1px solid rgba(139, 92, 246, 0.08) !important;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.2) 30%, rgba(139, 92, 246, 0.15) 70%, transparent);
  pointer-events: none;
}

.sidebar-logo {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.06) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.sidebar-logo .logo-mark {
  width: 32px;
  height: 32px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.15);
}

.sidebar-logo .logo-mark img.site-logo-image {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.sidebar-logo-text {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.sidebar-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.3);
  text-transform: uppercase;
  padding: 16px 16px 6px;
}

.sidebar-balance {
  margin: 12px 12px 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(99, 60, 200, 0.04) 100%);
  border: 1px solid rgba(139, 92, 246, 0.1);
  position: relative;
  overflow: hidden;
}

.sidebar-balance::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.sidebar-balance-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.5);
  margin-bottom: 6px;
}

.sidebar-balance-val {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1;
}

.sidebar-balance-btn {
  width: 100%;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.8) 0%, rgba(109, 60, 230, 0.9) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}

.sidebar-balance-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding: 4px 10px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px !important;
  color: rgba(148, 163, 184, 0.7);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.22s ease !important;
  cursor: pointer;
  border: 1px solid transparent !important;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
  text-decoration: none;
}

.nav-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(203, 213, 225, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
}

.nav-item:hover svg {
  opacity: 1;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 60, 200, 0.06) 100%) !important;
  border-color: rgba(139, 92, 246, 0.15) !important;
  color: var(--accent2) !important;
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.nav-item.active svg {
  opacity: 1;
  color: var(--accent2);
}

.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.sidebar-bottom {
  padding: 10px 10px 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.06);
}

.nav-item-danger {
  color: rgba(239, 68, 68, 0.55) !important;
}

.nav-item-danger:hover {
  background: rgba(239, 68, 68, 0.05) !important;
  color: rgba(239, 68, 68, 0.85) !important;
  border-color: rgba(239, 68, 68, 0.1) !important;
}

/* ═══════════════════════════════
   PANEL TOPBAR — REDESIGNED
═══════════════════════════════ */

.panel-topbar {
  height: var(--topbar-h) !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.07) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 5, 8, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.topbar-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

/* Топбар — кнопка Пополнить */
.topbar-actions .btn-secondary {
  background: rgba(139, 92, 246, 0.06) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  color: var(--accent2) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  transition: all 0.22s ease !important;
}

.topbar-actions .btn-secondary:hover {
  background: rgba(139, 92, 246, 0.12) !important;
  border-color: rgba(139, 92, 246, 0.35) !important;
  color: var(--accent3) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15) !important;
}

/* ═══════════════════════════════
   CARDS — GLASSMORPHISM UPGRADE
═══════════════════════════════ */

.card,
.detail-card,
.history-card,
.balance-card,
.tariff-panel,
.checkout-panel,
.review-card,
.news-item,
.info-stat-card,
.asc,
.empty-state {
  background: rgba(8, 12, 20, 0.65) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
}

.card:hover,
.detail-card:hover,
.balance-card:hover {
  border-color: rgba(139, 92, 246, 0.18) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(139, 92, 246, 0.06) inset !important;
}

/* ═══════════════════════════════
   CATALOG — SERVICE CARDS
═══════════════════════════════ */

.catalog-search {
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.1);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: all 0.25s ease;
  width: 260px;
}

.catalog-search:focus {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
  background: rgba(10, 14, 24, 0.85);
}

.catalog-search::placeholder {
  color: rgba(148, 163, 184, 0.35);
}

.catalog-search-wrap {
  position: relative;
}

.catalog-search-wrap::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(148,163,184,0.4)' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
}

.svc-card {
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(10, 14, 24, 0.9) 0%, rgba(8, 10, 20, 0.95) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
  border-radius: 16px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.svc-card:not(.unavailable):hover {
  border-color: rgba(139, 92, 246, 0.28) !important;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.08), 0 16px 48px rgba(0, 0, 0, 0.45) !important;
  transform: translateY(-5px) !important;
}

.svc-card:not(.unavailable):hover::before {
  opacity: 1;
}

/* Service card icon — улучшенная версия */
.svc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.28s ease;
  position: relative;
}

.svc-card-icon.svc-icon-blue {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.08);
}

.svc-card-icon.svc-icon-yellow {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.3);
  color: #fbbf24;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.08);
}

.svc-card-icon.svc-icon-green {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.08);
}

.svc-card-icon.svc-icon-pink {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.3);
  color: #f472b6;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.08);
}

.svc-card-icon.svc-icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
  color: #22d3ee;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.08);
}

.svc-card-icon.svc-icon-orange {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
  color: #fb923c;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.08);
}

.svc-card:not(.unavailable):hover .svc-card-icon {
  transform: scale(1.08) rotate(-2deg);
}

.svc-card-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.svc-card-desc {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.55);
  line-height: 1.45;
}

.svc-price-main {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.5);
}

.svc-price-main strong {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.svc-card-divider {
  height: 1px;
  background: rgba(139, 92, 246, 0.07);
  margin-bottom: 12px;
}

.svc-select-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(34, 211, 238, 0.7);
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.04);
  transition: all 0.25s ease;
  text-decoration: none;
}

.svc-card:not(.unavailable):hover .svc-select-link {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

/* Service card "недоступно" badge */
.status-badge.stopped {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: rgba(251, 191, 36, 0.7);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

/* ═══════════════════════════════
   ACTIVE SERVICES — TABS & CARDS
═══════════════════════════════ */

.tabs {
  display: flex;
  gap: 0;
  background: rgba(8, 12, 20, 0.7) !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 9px;
  border: none;
  background: none;
  color: rgba(148, 163, 184, 0.6);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
}

.tab-btn:hover {
  color: rgba(203, 213, 225, 0.8);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent2);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.12);
}

/* ═══════════════════════════════════════════════════
   ACTIVE SERVICE CARDS — PREMIUM REDESIGN
═══════════════════════════════════════════════════ */
.asc {
  position: relative;
  background: linear-gradient(135deg, rgba(12, 16, 28, 0.9) 0%, rgba(8, 10, 20, 0.95) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.12) !important;
  border-radius: 16px;
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35) !important;
}

.asc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.asc:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139,92,246,0.08) !important;
}
.asc:hover::before { opacity: 1; }

/* Status accent bar on left edge */
.asc-inner {
  padding: 20px 22px 18px;
  border-left: 3px solid transparent;
  transition: border-color 0.3s;
}
.asc--running .asc-inner  { border-left-color: rgba(74,222,128,0.7); }
.asc--pending .asc-inner  { border-left-color: rgba(96,165,250,0.7); }
.asc--stopped .asc-inner  { border-left-color: rgba(251,191,36,0.7); }
.asc--done    .asc-inner  { border-left-color: rgba(129,140,248,0.7); }
.asc--error   .asc-inner  { border-left-color: rgba(248,113,113,0.7); }

/* ── ASC Header ── */
.asc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.asc-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.asc-icon-chip {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.asc:hover .asc-icon-chip { transform: scale(1.08) rotate(-3deg); }

.asc-icon-running { background: rgba(34,197,94,0.12); color: #4ade80; box-shadow: 0 0 16px rgba(74,222,128,0.15); }
.asc-icon-pending { background: rgba(96,165,250,0.12); color: #60a5fa; box-shadow: 0 0 16px rgba(96,165,250,0.15); }
.asc-icon-stopped { background: rgba(251,191,36,0.12); color: #fbbf24; box-shadow: 0 0 16px rgba(251,191,36,0.12); }
.asc-icon-done    { background: rgba(129,140,248,0.12); color: #818cf8; box-shadow: 0 0 16px rgba(129,140,248,0.12); }
.asc-icon-error   { background: rgba(248,113,113,0.12); color: #f87171; box-shadow: 0 0 16px rgba(248,113,113,0.12); }

.asc-name {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.asc-tariff {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.5);
  font-weight: 500;
}

/* ── Status Badges ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.status-badge.running {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
  box-shadow: 0 0 12px rgba(74,222,128,0.1);
}
.status-badge.running::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.status-badge.pending, .status-badge.queued {
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.25);
  color: #60a5fa;
}
.status-badge.stopped {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  color: #fbbf24;
}
.status-badge.done, .status-badge.completed {
  background: rgba(129,140,248,0.1);
  border: 1px solid rgba(129,140,248,0.25);
  color: #818cf8;
}
.status-badge.error {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.25);
  color: #f87171;
}

/* ── Info Chips ── */
.asc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.asc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: rgba(148,163,184,0.7);
  font-weight: 500;
}
.asc-chip svg { opacity: 0.6; }
.asc-chip-accent {
  background: rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.18);
  color: rgba(167,139,250,0.9);
}

/* ── Progress ── */
.asc-progress-block {
  margin-bottom: 14px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa, #c4b5fd);
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(139,92,246,0.4);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  border-radius: 6px;
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}
.asc-pct {
  font-size: 12px;
  font-weight: 700;
  color: rgba(167,139,250,0.85);
  text-align: right;
}

/* ── Footer ── */
.asc-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 2px;
}

/* ═══════════════════════════════
   PAYMENTS — MODAL & BALANCE
═══════════════════════════════ */

.modal {
  background: rgba(8, 11, 20, 0.95) !important;
  border: 1px solid rgba(139, 92, 246, 0.15) !important;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.9), 0 0 60px rgba(139, 92, 246, 0.1) !important;
}

.modal-header {
  border-bottom: 1px solid rgba(139, 92, 246, 0.08) !important;
}

.modal-footer {
  border-top: 1px solid rgba(139, 92, 246, 0.08) !important;
}

.modal-overlay {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px) !important;
}

.quick-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.quick-btn:hover, .quick-btn.sel {
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--accent2);
  background: rgba(139, 92, 246, 0.07);
}

.pay-method {
  flex: 1;
  min-width: 100px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(8, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.7);
}

.pay-method:hover {
  border-color: rgba(139, 92, 246, 0.3);
  color: #fff;
}

.pay-method.sel {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.07);
  color: var(--accent2);
}

.deposit-summary {
  background: rgba(5, 8, 16, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 14px;
}

.balance-card {
  background: rgba(8, 12, 20, 0.7) !important;
  border: 1px solid rgba(139, 92, 246, 0.1) !important;
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.balance-amount {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

/* ═══════════════════════════════
   STAT CARDS
═══════════════════════════════ */

.stat-card, .info-stat-card {
  background: rgba(8, 12, 20, 0.65) !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.stat-card:hover, .info-stat-card:hover {
  border-color: rgba(139, 92, 246, 0.18) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25) !important;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.8;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════
   NEWS ITEMS
═══════════════════════════════ */

.news-item {
  background: rgba(8, 12, 20, 0.65) !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 10px;
  transition: border-color 0.25s ease !important;
}

.news-item:hover {
  border-color: rgba(139, 92, 246, 0.18) !important;
}

.news-date {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  opacity: 0.7;
}

/* ═══════════════════════════════
   REVIEWS
═══════════════════════════════ */

.review-card {
  background: rgba(8, 12, 20, 0.65) !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 10px;
  transition: border-color 0.25s ease !important;
}

.review-avatar {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 60, 200, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--accent2);
}

.rating-overview {
  background: rgba(8, 12, 20, 0.65) !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
}

/* ═══════════════════════════════
   ADMIN PANEL TABLE
═══════════════════════════════ */

.history-table thead th {
  background: rgba(139, 92, 246, 0.03);
  color: rgba(148, 163, 184, 0.45);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(139, 92, 246, 0.07) !important;
}

.history-table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.025) !important;
  color: rgba(148, 163, 184, 0.7);
}

.history-table tbody tr:hover td {
  background: rgba(139, 92, 246, 0.03);
}

/* ═══════════════════════════════
   PAGE TITLES
═══════════════════════════════ */

.page-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.5);
}

/* ═══════════════════════════════
   INFO — STAT CARDS
═══════════════════════════════ */

.info-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.info-stat-card {
  background: rgba(8, 12, 20, 0.65) !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.info-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0.5;
}

/* ═══════════════════════════════
   CATALOG BALANCE BAR
═══════════════════════════════ */

.catalog-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  padding: 10px 16px;
}

.catalog-topup-link {
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent2);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.catalog-topup-link:hover {
  color: var(--accent3);
}

/* ═══════════════════════════════
   SCROLLBAR
═══════════════════════════════ */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.35); }

/* ═══════════════════════════════
   PROFILE PAGE
═══════════════════════════════ */

.profile-user-card {
  background: linear-gradient(135deg, rgba(10, 14, 24, 0.85) 0%, rgba(8, 10, 20, 0.9) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.12) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.04) inset !important;
}

.user-card-name {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.pw-section {
  background: rgba(8, 12, 20, 0.65) !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
}

/* ═══════════════════════════════
   ALERTS
═══════════════════════════════ */

.alert-error {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: rgba(248, 113, 113, 0.9);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

.alert-success {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: rgba(74, 222, 128, 0.9);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* ═══════════════════════════════
   TARIFF ITEMS
═══════════════════════════════ */

.tariff-item {
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  margin-bottom: 7px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(5, 8, 16, 0.5);
}

.tariff-item:hover {
  border-color: rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.04);
}

.tariff-item.selected {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.07);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

/* ═══════════════════════════════
   MOBILE HEADER
═══════════════════════════════ */

.mobile-header {
  background: rgba(3, 5, 8, 0.95) !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.07) !important;
  backdrop-filter: blur(14px) !important;
}

/* ═══════════════════════════════
   BUTTONS — GLOBAL
═══════════════════════════════ */

.btn-danger {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: rgba(248, 113, 113, 0.85);
  border-radius: 8px;
  transition: all 0.22s ease;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.38);
  color: #f87171;
}

/* ═══════════════════════════════
   ACCOUNTS PAGE
═══════════════════════════════ */

/* Account cards */
.card.account-card,
.accounts-list .card {
  transition: all 0.25s ease !important;
}

/* ═══════════════════════════════
   EMPTY STATE
═══════════════════════════════ */

.empty-state {
  background: rgba(8, 12, 20, 0.5) !important;
  border: 1px dashed rgba(139, 92, 246, 0.12) !important;
}

.empty-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.7);
}

.empty-desc {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.45);
}

/* ═══════════════════════════════
   PAGE ENTER ANIMATIONS
═══════════════════════════════ */

.page-enter {
  animation: premiumPageEnter 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes premiumPageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════
   SVCLOG TERMINAL
═══════════════════════════════ */

.svc-log-tail {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(139, 92, 246, 0.07) !important;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 11.5px;
  color: rgba(203, 213, 225, 0.75);
  line-height: 1.6;
}

/* ═══════════════════════════════
   CATALOG TOOLBAR
═══════════════════════════════ */

.catalog-toolbar {
  margin-bottom: 20px;
}

/* ═══════════════════════════════
   ADMIN PANEL TABS
═══════════════════════════════ */

.admin-tabs, .admin-tab-btn {
  transition: all 0.22s ease;
}

/* ═══════════════════════════════
   DETAIL SUBTITLE
═══════════════════════════════ */

.detail-subtitle {
  font-size: 13.5px;
  color: rgba(148, 163, 184, 0.65);
  line-height: 1.7;
}

.detail-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════
   ADVANTAGE ICONS
═══════════════════════════════ */

.advantage-icon {
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(139, 92, 246, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════
   BALANCE LABEL
═══════════════════════════════ */

.balance-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.75;
}

.balance-refilled {
  font-size: 11.5px;
  color: rgba(148, 163, 184, 0.35);
  margin-top: 5px;
}

/* ═══════════════════════════════
   HISTORY TABLE
═══════════════════════════════ */

.history-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.history-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.07);
}

.history-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.history-count {
  font-size: 11.5px;
  color: rgba(148, 163, 184, 0.4);
}

/* ═══════════════════════════════
   MODAL IMPROVEMENTS
═══════════════════════════════ */

.modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.modal-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.5);
  text-transform: uppercase;
  margin-bottom: 8px;
  margin-top: 14px;
}

.modal-label:first-child { margin-top: 0; }

.modal-close {
  background: none;
  border: none;
  color: rgba(148, 163, 184, 0.4);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════════════
   INFO STAT CARDS — ENHANCED
═══════════════════════════════ */

.info-stat-card:nth-child(1)::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.info-stat-card:nth-child(2)::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.info-stat-card:nth-child(3)::before { background: linear-gradient(90deg, #10b981, #34d399); }

.info-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.info-stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.75;
}

/* ═══════════════════════════════
   PAGE HEADER IMPROVEMENTS
═══════════════════════════════ */

.page-header {
  margin-bottom: 24px;
  padding-bottom: 0;
}

/* ═══════════════════════════════
   REVIEW FORM MODAL
═══════════════════════════════ */

.star-pick {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 2px;
  color: rgba(255, 255, 255, 0.12);
  transition: color 0.2s ease, transform 0.2s ease;
}

.star-pick:hover, .star-pick.filled { color: #fbbf24; }
.star-pick:hover { transform: scale(1.12); }

/* ═══════════════════════════════
   PROMO TOGGLE
═══════════════════════════════ */

.promo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--accent2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
  margin-bottom: 4px;
  transition: color 0.2s ease;
  opacity: 0.85;
}

.promo-toggle:hover { opacity: 1; }

/* ═══════════════════════════════
   SUM ROW
═══════════════════════════════ */

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.55);
  padding: 3px 0;
}

.sum-row.total {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(139, 92, 246, 0.08);
  margin-top: 8px;
  padding-top: 10px;
}

.sum-row.total span:last-child { color: #4ade80; font-size: 16px; }

/* ═══════════════════════════════
   ACCOUNTS PAGE IMPROVEMENTS
═══════════════════════════════ */

.btn.btn-primary[type="button"] {
  width: auto;
  margin-top: 0;
}

/* Button width fix for inline usage */
.balance-actions .btn {
  width: auto;
  margin-top: 0;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.5);
  margin-bottom: 20px;
  transition: color 0.2s;
  text-decoration: none;
}

.back-link:hover { color: rgba(203, 213, 225, 0.85); }

/* ═══════════════════════════════
   CATALOG BALANCE BADGE
═══════════════════════════════ */

.catalog-balance-label {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.45);
}

.catalog-balance-val {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════
   RSORT TABS (Admin/Reviews)
═══════════════════════════════ */

.rsort-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.rsort-tab {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(148, 163, 184, 0.55);
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.rsort-tab:hover {
  color: rgba(203, 213, 225, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.rsort-tab.active {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.22);
  color: var(--accent2);
}

/* ═══════════════════════════════
   PROFILE STATS GRID
═══════════════════════════════ */

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

/* ═══════════════════════════════
   TARIFF PANEL
═══════════════════════════════ */

.tariff-panel {
  background: rgba(8, 12, 20, 0.65) !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
  border-radius: var(--radius-lg);
  padding: 22px;
}

.tariff-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

/* ═══════════════════════════════
   USER CARD PROFILE
═══════════════════════════════ */

.profile-user-card {
  background: linear-gradient(135deg, rgba(10, 14, 24, 0.9) 0%, rgba(8, 10, 20, 0.95) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.12) !important;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.04) inset !important;
  position: relative;
  overflow: hidden;
}

.profile-user-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ═══════════════════════════════
   ADMIN TABLE INPUT FIX
═══════════════════════════════ */

.history-table .input-field {
  padding: 7px 10px;
  font-size: 12px;
}

/* ═══════════════════════════════
   RESPONSIVE — STATS GRID
═══════════════════════════════ */

@media (max-width: 900px) {
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .profile-stats { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 32px 20px; }
}

/* ═══════════════════════════════
   SERVICE SETUP FORM
═══════════════════════════════ */

.setup-form-card {
  background: rgba(8, 12, 20, 0.65) !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ═══════════════════════════════
   LOGO IMAGE
═══════════════════════════════ */

.site-logo-image {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
}

/* ═══════════════════════════════
   ADDITIONAL AUTH FIX
═══════════════════════════════ */

/* Fix: auth-page без grid для обычных браузеров */
@supports not (display: grid) {
  .auth-page {
    display: flex;
    flex-direction: column;
  }
}

/* ═══════════════════════════════
   HIGHLIGHT EFFECT ON HOVER
═══════════════════════════════ */

.svc-card:not(.unavailable) {
  position: relative;
}

.svc-card:not(.unavailable)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.svc-card:not(.unavailable):hover::after {
  opacity: 1;
}

/* ═══════════════════════════════
   NAV BADGE ACTIVE SERVICES
═══════════════════════════════ */

.nav-badge {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
  margin-left: auto;
}

/* ═══════════════════════════════
   SMOOTH SCROLL
═══════════════════════════════ */

html {
  scroll-behavior: smooth;
}

/* ═══════════════════════════════
   TRANSITION FOR ALL INTERACTIVE
═══════════════════════════════ */

button, a, input, select, textarea {
  transition: all 0.2s ease;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.5);
  outline-offset: 2px;
}

/* ═══════════════════════════════
   SERVICE LOG TAIL — overflow fix
═══════════════════════════════ */
.svc-log-tail {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11.5px;
  color: rgba(148, 163, 184, 0.55);
  line-height: 1.6;
  padding: 10px 12px;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  border-left: 2px solid rgba(139,92,246,0.2);
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  overflow: hidden;
  max-height: 5em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ═══════════════════════════════
   DETAIL CARD — action footer
═══════════════════════════════ */
.svc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 8px;
}

/* ═══════════════════════════════
   QR PAGE
═══════════════════════════════ */
#qrImage {
  image-rendering: pixelated;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL FIX BLOCK — overrides any style.css corruption
   ═══════════════════════════════════════════════════════════════ */

/* ─── MISSING ALERT STYLES ─── */
.alert {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  margin-bottom: 16px !important;
}
.alert-error {
  background: rgba(239,68,68,0.08) !important;
  border: 1px solid rgba(239,68,68,0.3) !important;
  color: #f87171 !important;
}
.alert-success {
  background: rgba(34,197,94,0.08) !important;
  border: 1px solid rgba(34,197,94,0.3) !important;
  color: #4ade80 !important;
}

/* ─── BUTTON BASE RESET ─── */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 12px 22px !important;
  transition: all 0.25s var(--ease) !important;
  white-space: nowrap !important;
  width: auto !important;
  margin-top: 0 !important;
}

/* ─── BTN-BLOCK UTILITY ─── */
.btn-block,
.btn.btn-block {
  width: 100% !important;
  display: flex !important;
}

/* ─── AUTH FORM BUTTONS ─── */
.auth-card .btn,
form.auth-card .btn {
  width: 100% !important;
  margin-top: 20px !important;
}

/* ─── BTN SIZE VARIANTS ─── */
.btn-sm {
  padding: 7px 16px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
}
.btn-lg {
  padding: 14px 30px !important;
  font-size: 15px !important;
}

/* ─── PRIMARY BTN ─── */
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(139,92,246,0.3), 0 0 0 1px rgba(139,92,246,0.2) inset !important;
  border: none !important;
}
.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(139,92,246,0.45), 0 0 0 1px rgba(167,139,250,0.3) inset !important;
  background: linear-gradient(135deg, #9d72ff 0%, #8b5cf6 100%) !important;
}
.btn-primary:active { transform: translateY(0) !important; }

/* ─── SECONDARY BTN ─── */
.btn-secondary {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.85) !important;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.3) !important;
  transform: translateY(-1px) !important;
}

/* ─── DANGER BTN ─── */
.btn-danger {
  background: rgba(239,68,68,0.08) !important;
  border: 1px solid rgba(239,68,68,0.25) !important;
  color: #ef4444 !important;
}
.btn-danger:hover {
  background: rgba(239,68,68,0.15) !important;
  border-color: rgba(239,68,68,0.5) !important;
}

/* ─── SECTION-TAG FIX ─── */
.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

/* ─── BADGE & PULSE ─── */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139,92,246,0.07);
  border: 1px solid rgba(139,92,246,0.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.5;transform:scale(0.85)}
}

/* ─── NAVBAR AUTH BUTTONS FIX ─── */
.nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}
.nav-login {
  display: inline-flex !important;
  align-items: center !important;
  color: rgba(255,255,255,0.75) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  width: auto !important;
  margin-top: 0 !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.nav-login:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.06) !important;
}
.nav-actions .btn.btn-primary,
.nav-actions .btn-primary {
  width: auto !important;
  margin-top: 0 !important;
  padding: 9px 20px !important;
  font-size: 14px !important;
}

/* ─── CARD BASE FIX ─── */
.card {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

/* ─── ADMIN TABLE FIX ─── */
.history-table td form {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
.history-table td form .btn {
  flex-shrink: 0 !important;
}
.history-table td .input-field {
  width: 110px !important;
  min-width: 80px !important;
  flex-shrink: 0 !important;
}

/* ─── ADMIN USERS TABLE LAYOUT ─── */
.history-table tbody tr td:last-child {
  min-width: 280px;
}

/* ─── REVIEW MODAL LAYOUT FIX ─── */
.modal {
  width: 100% !important;
  max-width: 520px !important;
}
.modal .modal-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}
.modal .modal-footer .btn {
  width: auto !important;
  margin-top: 0 !important;
}
.modal .modal-body .btn {
  width: auto !important;
  margin-top: 0 !important;
}

/* ─── STAR PICKER INLINE FIX ─── */
.star-picker-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.star-picker {
  display: flex !important;
  gap: 6px !important;
}
.star-pick {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 28px !important;
  line-height: 1 !important;
  padding: 2px !important;
  color: rgba(255,255,255,0.15) !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
  width: auto !important;
  margin-top: 0 !important;
}
.star-pick:hover,
.star-pick.filled {
  color: #fbbf24 !important;
}
.star-pick:hover {
  transform: scale(1.15) !important;
}
.star-counter {
  font-size: 13px !important;
  color: var(--muted) !important;
}
.star-counter.has-value {
  color: #fbbf24 !important;
  font-weight: 700 !important;
}

/* ─── REVIEW FORM MODAL LAYOUT ─── */
#reviewModal .modal,
#depositModal .modal {
  max-height: 90vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* ─── FILE UPLOAD BUTTON FIX ─── */
.file-upload-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(139,92,246,0.08) !important;
  border: 1px solid rgba(139,92,246,0.2) !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  color: var(--accent2) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  width: auto !important;
  margin-top: 0 !important;
}
.file-upload-btn:hover {
  background: rgba(139,92,246,0.14) !important;
  border-color: rgba(139,92,246,0.35) !important;
}
.file-upload-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 8px !important;
}
.file-name-label {
  font-size: 12px !important;
  color: var(--muted) !important;
}

/* ─── INPUT FIELD FOCUS FIX ─── */
.input-field {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  width: 100% !important;
  outline: none !important;
  transition: all 0.3s ease !important;
}
.input-field:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12) !important;
  background: rgba(255,255,255,0.06) !important;
}

/* ─── ADMIN PROMO AND CREATE FORM BUTTONS ─── */
.tariff-panel .btn,
.tariff-panel form .btn {
  width: auto !important;
  display: inline-flex !important;
  margin-top: 10px !important;
}

/* ─── TOPBAR CREATE BUTTON FIX ─── */
.topbar-actions .btn,
.page-header .btn {
  width: auto !important;
  margin-top: 0 !important;
  display: inline-flex !important;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — COMPLETE OVERHAUL
   Covers: Landing page, Panel, Tables, Forms, Admin
   ═══════════════════════════════════════════════════════════ */

/* ─── Root mobile variable ─── */
:root {
  --mobile-hdr: 54px;
}

/* ─── TABLE WRAPPER (horizontal scroll on mobile) ─── */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

/* ─── ADMIN RESPONSIVE GRID ─── */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.setup-delay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ─── SIDEBAR CLOSE BUTTON ─── */
.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
  margin-left: auto;
}
.sidebar-close-btn:hover { color: #fff; }
.sidebar-close-btn svg { display: block; }

/* ─── LANDING NAV TOGGLE ─── */
.landing-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.landing-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.landing-nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
  transform-origin: center;
}
.landing-nav-toggle .bar + .bar { margin-top: 5px; }
.landing-nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.landing-nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.landing-nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── LANDING NAV MOBILE DRAWER ─── */
@media (max-width: 860px) {
  .landing-nav-toggle { display: flex; flex-direction: column; }

  .nav-links {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 5, 10, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px !important;
    z-index: 230;
    padding: 32px 24px;
    flex-wrap: nowrap !important;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  }
  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    font-size: 22px !important;
    font-weight: 700 !important;
    padding: 12px 0;
    text-align: center;
    width: 100%;
    color: rgba(255, 255, 255, 0.75) !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
  }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-links a:hover { color: #fff !important; background: none; }
  .nav-links a::after { display: none !important; }

  /* Mobile-only login/register buttons inside nav drawer */
  .nav-links-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
  }
  .nav-links-mobile-actions .nav-login {
    text-align: center;
    font-size: 15px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links-mobile-actions .btn {
    width: 100% !important;
    justify-content: center;
    padding: 14px !important;
    font-size: 15px !important;
  }

  /* Hide desktop nav actions on mobile (they appear in the drawer) */
  .nav-actions { display: none !important; }

  .navbar-inner { padding: 12px 16px; min-height: 62px; }
}

/* ─── LANDING GRIDS — MOBILE ─── */
@media (max-width: 900px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}
@media (max-width: 600px) {
  .feat-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .feat-card { padding: 22px !important; }
  .adv-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .steps-grid { gap: 12px !important; }
  .step-card { padding: 22px !important; }

  /* Hero spacing tighter on very small screens */
  .hero { padding: 80px 16px 48px !important; }
  .hero-h1 { font-size: 32px !important; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .section { padding: 48px 16px !important; }
  .section-inner { padding: 0 !important; }

  /* Landing footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ─── PANEL — SIDEBAR CLOSE BUTTON SHOW ON MOBILE ─── */
@media (max-width: 768px) {
  html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .panel-layout {
    flex-direction: column !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .mobile-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    box-sizing: border-box !important;
    z-index: 999 !important;
  }
  .sidebar-close-btn { display: block !important; }
  .sidebar-logo { padding: 14px 14px 12px; }

  /* Panel body padding tighter */
  .panel-body { padding: 16px !important; }
  .panel-topbar { padding: 0 16px !important; }

  /* Panel content must start below the sticky mobile header */
  .panel-content {
    margin-left: 0 !important;
    padding-top: var(--mobile-hdr) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  /* Topbar title smaller on mobile */
  .topbar-title { font-size: 13px !important; }

  /* Profile stats go 2-column on mobile */
  .profile-stats { grid-template-columns: repeat(2, 1fr) !important; }

  /* Catalog header wraps cleanly */
  .catalog-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .catalog-balance { width: 100%; }

  /* Tabs scroll horizontally */
  .tabs, .rsort-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }
  .tabs::-webkit-scrollbar,
  .rsort-tabs::-webkit-scrollbar { display: none; }

  /* Active service cards */
  .asc-chips { flex-wrap: wrap; gap: 6px; }
  .asc-footer { flex-wrap: wrap; }

  /* Detail layout stack */
  .detail-layout, .service-layout {
    grid-template-columns: 1fr !important;
  }

  /* Service setup delay grid */
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Service detail rail moves below */
  .service-rail { width: 100%; }

  /* Balance card stacks */
  .balance-card {
    flex-direction: column !important;
    gap: 16px;
  }
  .balance-actions { width: 100%; }
  .balance-actions .btn { width: 100%; justify-content: center; }

  /* Payment card layout */
  .balance-amount { font-size: 34px !important; }

  /* Modal fits screen */
  .modal { max-width: calc(100vw - 32px) !important; }
  .modal-body { padding: 16px !important; }
  .modal-header { padding: 14px 16px !important; }
  .modal-footer { padding: 14px 16px !important; }

  /* Quick amounts grid */
  .quick-amounts { grid-template-columns: repeat(4, 1fr) !important; }

  /* Pay methods wrap */
  .pay-methods { flex-direction: column; gap: 8px; }
  .pay-method { width: 100%; justify-content: center; }

  /* Admin forms responsive */
  .admin-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  /* Profile password form */
  .pw-fields { flex-direction: column !important; }
  .pw-fields .pw-input { min-width: 0 !important; }
  .pw-save-btn { width: 100% !important; }
}

@media (max-width: 480px) {
  .panel-body { padding: 12px !important; }

  /* Profile stats go 1-column on very small */
  .profile-stats { grid-template-columns: 1fr !important; }

  /* User card */
  .user-card-name { font-size: 22px !important; }

  /* Catalog single column */
  .catalog-grid { grid-template-columns: 1fr !important; }

  /* Admin form fields full-width on smallest screens */
  .admin-grid { grid-template-columns: 1fr !important; }

  /* Accounts QR image */
  .accounts-qr-wrap { max-width: 240px !important; margin: 0 auto; }

  /* History card headers */
  .history-hdr { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* Tabs smaller text */
  .tab-btn, .rsort-tab { font-size: 12px !important; padding: 8px 10px !important; }

  /* Service card */
  .svc-card-top { flex-direction: column; gap: 10px; }
  .svc-card-icon { width: 42px !important; height: 42px !important; }

  /* ASC name smaller */
  .asc-name { font-size: 14px !important; }

  /* Deposit modal quick amounts */
  .quick-amounts { grid-template-columns: repeat(2, 1fr) !important; }

  /* Page header title */
  .page-title { font-size: 18px !important; }

  /* Back link */
  .back-link { font-size: 12px !important; }
}

/* ─── TOUCH TARGETS — accessibility ─── */
@media (hover: none) and (pointer: coarse) {
  .nav-item { padding: 12px 12px !important; }
  .btn-sm { padding: 10px 14px !important; min-height: 40px; }
  .tab-btn, .rsort-tab { min-height: 42px; }
  .tariff-item { padding: 16px !important; }
  .quick-btn { min-height: 42px !important; }
  .pay-method { padding: 14px 16px !important; }
  .input-field { font-size: 16px !important; } /* prevents iOS zoom on focus */
  textarea.input-field { font-size: 16px !important; }
  select.input-field { font-size: 16px !important; }
  .sidebar-balance-btn { min-height: 38px; padding: 8px 14px !important; }
}

/* --- SIDEBAR LOGO FLEX (for close button alignment) --- */
.sidebar-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* --- HIDE MOBILE ACTIONS ON DESKTOP --- */
.nav-links-mobile-actions { display: none; }
@media (max-width: 860px) {
  .nav-links-mobile-actions { display: flex; }
}

/* --- SETUP DELAY GRID RESPONSIVE --- */
@media (max-width: 480px) {
  .setup-delay-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════════
   UI/UX PRO MAX — APPLIED IMPROVEMENTS
   Skill: ui-ux-pro-max v2.6.2 | Style: Modern Dark Cinema + Liquid Glass
   Palette: Premium Dark (#030508) + Purple Accent (#8b5cf6)
   Typography: Space Grotesk (headings) + Inter (body)
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. SPACE GROTESK — Tech Startup Heading Font (upgrade from Manrope) ─── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-heading: 'Space Grotesk', 'Manrope', 'Inter', sans-serif;
  /* CTA accent — slightly brighter indigo for higher contrast on dark bg */
  --accent-cta: #7c3aed;
  --accent-cta-hover: #8b5cf6;
  /* Skeleton shimmer colors */
  --skeleton-base: rgba(139, 92, 246, 0.05);
  --skeleton-shine: rgba(139, 92, 246, 0.12);
}

/* Apply heading font to all h-tags */
h1, h2, h3, h4, h5, h6,
.hero-h1, .auth-left-heading, .section-hdr h2,
.cta-box h2, .page-title, .sidebar-section-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* ─── 2. LANDING CARD HOVERS — unify to purple (remove legacy cyan) ─── */
/* Feature cards */
.feat-card:hover {
  border-color: rgba(139, 92, 246, 0.35) !important;
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.12), 0 8px 32px rgba(0, 0, 0, 0.35) !important;
  transform: translateY(-4px) !important;
}
.feat-icon {
  background: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid rgba(139, 92, 246, 0.22) !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.08) !important;
}

/* Pricing cards */
.price-card:hover {
  border-color: rgba(139, 92, 246, 0.35) !important;
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.12), 0 12px 40px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-4px) !important;
}
.price-icon {
  background: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.07) !important;
}

/* Step cards */
.step-card:hover {
  border-color: rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.1), 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-3px) !important;
}
.step-num-badge {
  background: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
}

/* Advantage cards */
.adv-card:hover {
  border-color: rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.1), 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-3px) !important;
}
.adv-icon {
  background: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

/* CTA box glow */
.cta-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 60, 220, 0.05)) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

/* ─── 3. SKELETON LOADING STATES ─── */
/* Use class="skeleton" on any placeholder element */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--skeleton-base) 25%,
    var(--skeleton-shine) 50%,
    var(--skeleton-base) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius);
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}

.skeleton * { visibility: hidden !important; }

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

/* Skeleton presets */
.skeleton-text {
  height: 14px;
  border-radius: 4px;
  display: block;
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}
.skeleton-text + .skeleton-text { margin-top: 8px; }
.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }

.skeleton-card {
  border-radius: var(--radius);
  min-height: 120px;
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

/* ─── 4. FOCUS-VISIBLE — upgraded to purple ring ─── */
:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.7) !important;
  outline-offset: 3px !important;
  border-radius: 4px !important;
}

/* Remove outline on mouse-click (only show on keyboard nav) */
:focus:not(:focus-visible) {
  outline: none !important;
}

/* ─── 5. PREFERS-REDUCED-MOTION — Accessibility ─── */
/* Respects user OS setting to disable animations (WCAG 2.1 AA) */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep skeleton visible but static */
  .skeleton,
  .skeleton-text,
  .skeleton-card {
    animation: none !important;
    background: var(--skeleton-base) !important;
  }
}

/* ─── 6. MICRO-ANIMATION POLISH — card lift easing (premium feel) ─── */
/* Upgrade transition easing on landing cards to the skill-recommended curve */
.feat-card,
.price-card,
.step-card,
.adv-card {
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}

/* ─── 7. INPUT FOCUS GLOW — premium interaction ─── */
.input-field:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
  outline: none !important;
}

/* ─── 8. BTN PRESSED STATE — haptic-like feedback ─── */
.btn:active {
  transform: scale(0.97) !important;
  transition-duration: 0.08s !important;
}

/* ─── 9. SECTION 3D CANVAS & TRANSPARENT BACKGROUNDS ─── */
.section {
  position: relative !important;
  overflow: hidden !important;
}

.section-inner {
  position: relative !important;
  z-index: 2 !important; /* Ensure content stays above the background 3D canvas */
}

/* Transparent section bg to let main interactive background particles pass through */
.section-dark {
  background: transparent !important;
  border-top: 1px solid rgba(139, 92, 246, 0.06);
  border-bottom: 1px solid rgba(139, 92, 246, 0.06);
}

/* 3D Visual overlay canvas container inside landing sections */
.section-3d-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 1 !important; /* Above main bg, below section text */
  opacity: 0.35;
}

/* ─── 10. PREMIUM CONTROL PANEL REDESIGN (Glassmorphism & Glows) ─── */

/* Glass sidebar skeleton */
.sidebar {
  background: rgba(5, 7, 12, 0.5) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-right: 1px solid rgba(139, 92, 246, 0.09) !important;
}

.sidebar-logo {
  border-bottom: 1px solid rgba(139, 92, 246, 0.09) !important;
}

.sidebar-bottom {
  border-top: 1px solid rgba(139, 92, 246, 0.09) !important;
}

/* Balance Box widget upgrade */
.sidebar-balance {
  background: rgba(139, 92, 246, 0.04) !important;
  border: 1px solid rgba(139, 92, 246, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.sidebar-balance-btn {
  background: var(--accent-cta) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sidebar-balance-btn:hover {
  background: var(--accent-cta-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
}

/* Sidebar navigation updates */
.nav-item {
  color: rgba(255, 255, 255, 0.6) !important;
  transition: all 0.22s ease !important;
  border: 1px solid transparent !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
}

.nav-item:hover {
  background: rgba(139, 92, 246, 0.05) !important;
  border-color: rgba(139, 92, 246, 0.08) !important;
  color: #ffffff !important;
}

.nav-item.active {
  background: rgba(139, 92, 246, 0.12) !important;
  border-color: rgba(139, 92, 246, 0.28) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.nav-item.active svg {
  color: var(--accent2) !important;
  filter: drop-shadow(0 0 4px rgba(217, 70, 239, 0.4)) !important;
}

/* Topbar & Mobile Header Glassmorphism */
.panel-topbar, .mobile-header {
  background: rgba(3, 5, 8, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.09) !important;
}

/* Panel Layout Cards (Catalog, Profile, Accounts, Reviews) */
.card, .stat-card, .tariff-item, .svc-item, .pay-method {
  background: rgba(10, 14, 22, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(139, 92, 246, 0.09) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card:hover, .stat-card:hover, .tariff-item:hover, .svc-item:hover, .pay-method:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.08), 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

/* Highlight badge */
.nav-badge {
  background: var(--accent2) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.3) !important;
}

/* ─── 11. PREMIUM AUTHENTICATION PAGES UPGRADE (Login / Register) ─── */

/* Make auth pages transparent so the 3D interactive particle background is visible */
.auth-page {
  background: transparent !important;
}

.auth-right {
  background: transparent !important;
}

/* Left promotional panel - glassmorphic treatment */
.auth-left {
  background: linear-gradient(135deg, rgba(8, 6, 16, 0.8) 0%, rgba(12, 8, 24, 0.85) 100%) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(139, 92, 246, 0.08) !important;
}

/* Make auth cards hover/glow premium */
.auth-card {
  background: rgba(10, 13, 22, 0.65) !important;
  border: 1px solid rgba(139, 92, 246, 0.16) !important;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(139, 92, 246, 0.08) !important;
}

/* Input elements style inside forms */
.auth-card .input-field {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-family: inherit !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.auth-card .input-field:focus {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18) !important;
}

/* Form labels alignment */
.form-label {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--muted) !important;
  margin-top: 16px !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Registration features layout polish */
.auth-feature {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 20px !important;
  background: rgba(139, 92, 246, 0.03) !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(139, 92, 246, 0.06) !important;
  transition: all 0.22s ease !important;
}

.auth-feature:hover {
  background: rgba(139, 92, 246, 0.06) !important;
  border-color: rgba(139, 92, 246, 0.14) !important;
  transform: translateX(4px) !important;
}

.auth-feature-icon {
  width: 32px !important;
  height: 32px !important;
  background: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--accent2) !important;
}

.auth-feature-icon svg {
  width: 16px !important;
  height: 16px !important;
}

.auth-feature-text {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--muted2) !important;
}

/* Form headers highlights */
.highlight {
  color: var(--accent2) !important;
  background: linear-gradient(90deg, #a78bfa, #f472b6);
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.auth-title {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  font-size: 26px !important;
  letter-spacing: -0.02em !important;
}






/* ═══════════════════════════════════════════════════════════
   LANDING PAGE — MOBILE UX IMPROVEMENTS
   ═══════════════════════════════════════════════════════════ */

/* 1. Smooth scrolling for all anchor links */
html {
  scroll-behavior: smooth;
}

/* 2. No horizontal overflow on the landing page */
body.landing-nav-open {
  overflow: hidden;
}
.landing-page {
  overflow-x: hidden;
}

/* 3. Prevent iOS Safari auto-zoom on focused inputs (must be ≥ 16px) */
@media (max-width: 768px) {
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* 4. CTA section — stack buttons full-width on small screens */
@media (max-width: 600px) {
  .cta-box {
    padding: 36px 20px !important;
  }
  .cta-btns {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .cta-btns .btn {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}

/* 5. Section header — text doesn't overflow on 360–375 px */
@media (max-width: 600px) {
  .section-hdr {
    margin-bottom: 36px !important;
  }
  .section-hdr p {
    max-width: 100% !important;
    font-size: 14px !important;
  }
}

/* 6. Hero — micro-adjustments for 360 px phones */
@media (max-width: 380px) {
  .hero-h1 {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }
  .hero-kicker {
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
  }
  .hero-p {
    font-size: 13.5px !important;
  }
  .hero {
    padding: 72px 14px 40px !important;
    min-height: unset !important;
  }
}

/* 7. FAQ — bigger tap targets on mobile */
@media (max-width: 768px) {
  details.faq-item summary {
    padding: 18px 18px !important;
    font-size: 14px !important;
    min-height: 52px !important;
  }
  .faq-answer {
    padding: 0 18px 0 18px !important;
  }
  details[open] .faq-answer {
    padding: 0 18px 16px 18px !important;
  }
}

/* 8. Footer bottom row — centre on mobile */
@media (max-width: 600px) {
  .footer-bottom-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px 16px !important;
  }
  .footer-tagline {
    margin-left: 0 !important;
    text-align: center !important;
  }
}

/* 9. Pricing card — inner content doesn't clip on 360 px */
@media (max-width: 480px) {
  .price-card {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .price-card .btn-block {
    margin-top: auto !important;
  }
  .price-checks {
    margin: 12px 0 !important;
  }
  .price-amount {
    margin: 12px 0 !important;
  }
}

/* 10. Advantage cards — icon stays fixed size on tiny screens */
@media (max-width: 480px) {
  .adv-card {
    padding: 18px !important;
    gap: 14px !important;
    align-items: flex-start !important;
  }
  .adv-icon {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
    border-radius: 10px !important;
  }
  .adv-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* 11. Step cards number badge on tiny screens */
@media (max-width: 380px) {
  .step-num-badge {
    font-size: 26px !important;
  }
}

/* 12. Navbar height correction for landing-page top padding at 860–768 px gap */
@media (min-width: 601px) and (max-width: 860px) {
  .landing-page {
    padding-top: 100px !important;
  }
}

/* 13. Buttons in hero/cta always easy to tap (min 48 px height) */
@media (max-width: 768px) {
  .btn-lg {
    min-height: 48px !important;
    padding: 13px 22px !important;
    font-size: 15px !important;
  }
}

/* ─── LANDING NAV DRAWER — SCROLLABLE ON SHORT MOBILE VIEWPORTS ─── */
@media (max-width: 860px) {
  .landing-navbar .nav-links {
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: max(88px, calc(env(safe-area-inset-top) + 72px));
    padding-right: max(24px, env(safe-area-inset-right));
    padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 24px));
    padding-left: max(24px, env(safe-area-inset-left));
  }

  .landing-navbar .nav-links > * {
    flex: 0 0 auto;
  }

  .landing-navbar .nav-links .nav-links-mobile-actions {
    flex: 0 0 auto;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Keep the page behind an open drawer still on compact headers as well. */
@media (max-width: 768px) {
  body.landing-nav-open {
    overflow-y: hidden !important;
    touch-action: none;
  }

  body.landing-nav-open .landing-navbar .nav-links {
    touch-action: pan-y;
  }
}

/* ─── PANEL SIDEBAR — SCROLLABLE OFF-CANVAS MENU ─── */
@media (max-width: 768px) {
  body.sidebar-open {
    overflow: hidden !important;
    touch-action: none;
  }

  .sidebar {
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .sidebar-nav {
    flex: 0 0 auto;
    overflow: visible;
  }

  .sidebar-bottom {
    flex: 0 0 auto;
  }
}

/* ─── LANDING HERO: COMPACT MOBILE HEADER & METRICS ─── */
@media (max-width: 768px) {
  /* Keep account actions beside the logo; the long navigation stays desktop-only. */
  .landing-navbar .nav-links,
  .landing-navbar .landing-nav-toggle {
    display: none !important;
  }

  .landing-navbar .navbar-inner {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .landing-navbar .nav-actions {
    display: flex !important;
    width: auto;
    margin-left: auto;
    gap: 4px;
    align-items: center;
  }

  .landing-navbar .nav-actions .nav-login {
    padding: 8px 7px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .landing-navbar .nav-actions .btn-sm {
    min-height: 36px !important;
    padding: 9px 10px !important;
    font-size: 11px !important;
    line-height: 1;
    white-space: nowrap;
  }

  /* The removed sticky actions must not leave a reserved strip below the page. */
  .landing-page {
    padding-bottom: 0 !important;
  }

  .landing-page .hero-stats {
    width: 100%;
    max-width: none;
    gap: 10px;
    margin-top: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .landing-page .hero-stat {
    min-height: 124px;
    padding: 18px 12px !important;
    text-align: left !important;
    background:
      radial-gradient(circle at 86% 9%, rgba(124, 58, 237, 0.18), transparent 43%),
      linear-gradient(145deg, #11111c 0%, #080910 68%, #06070b 100%) !important;
    border: 1px solid rgba(151, 104, 255, 0.3) !important;
    border-radius: 14px !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.045),
      0 12px 26px rgba(0, 0, 0, 0.32),
      0 0 20px rgba(97, 55, 180, 0.09) !important;
  }

  .landing-page .hero-stat::before {
    background: linear-gradient(90deg, rgba(175, 116, 255, 0.58), rgba(175, 116, 255, 0)) !important;
    inset: 0 auto auto 12px;
    width: 46px;
    height: 1px;
  }

  .landing-page .hero-stat:nth-child(n) {
    grid-column: auto;
    border-bottom: 1px solid rgba(151, 104, 255, 0.3) !important;
    border-right: 1px solid rgba(151, 104, 255, 0.3) !important;
  }

  .landing-page .hero-stat-val {
    font-size: clamp(24px, 7.1vw, 30px) !important;
    line-height: 1;
  }

  .landing-page .hero-stat-lbl {
    max-width: 110px;
    margin-top: 9px;
    font-size: 9px !important;
    line-height: 1.35;
    letter-spacing: 0.075em;
  }
}

@media (max-width: 380px) {
  .landing-navbar .nav-logo { gap: 7px; }
  .landing-navbar .nav-logo span { font-size: 15px; }
  .landing-navbar .logo-mark { width: 32px; height: 32px; }
  .landing-navbar .nav-actions .nav-login { font-size: 11px; padding-inline: 5px; }
  .landing-navbar .nav-actions .btn-sm { padding-inline: 8px !important; font-size: 10px !important; }
}

/* Landing hero metrics — compact Quantia cards, independent on desktop. */
.landing-page .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 920px);
  max-width: 920px;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.landing-page .hero-stat {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 118px;
  padding: 20px;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  overflow: hidden;
  background: #070b12;
  border: 1px solid rgba(104, 91, 181, 0.32);
  border-radius: 17px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.landing-page .hero-stat::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 2px;
  height: auto;
  background: linear-gradient(180deg, transparent, rgba(159, 103, 255, 0.9), transparent);
  opacity: 0.82;
}

.landing-page .hero-stat:hover {
  transform: translateY(-3px);
  background: #090d16;
  border-color: rgba(145, 110, 241, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 30px rgba(0, 0, 0, 0.28);
}

.landing-page .hero-stat-val {
  position: relative;
  z-index: 1;
  color: #f8f7ff;
  font-size: clamp(30px, 3vw, 36px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.landing-page .hero-stat-lbl {
  position: relative;
  z-index: 1;
  max-width: 145px;
  margin-top: 10px;
  color: #91a1c5;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .landing-page .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: none;
  }

  .landing-page .hero-stat {
    min-height: 124px;
    padding: 18px 14px !important;
    background: #070b12 !important;
    border: 1px solid rgba(104, 91, 181, 0.32) !important;
    border-radius: 15px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 8px 20px rgba(0, 0, 0, 0.22) !important;
  }

  .landing-page .hero-stat::before {
    inset: 17px auto 17px 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(159, 103, 255, 0.9), transparent) !important;
  }

  .landing-page .hero-stat-val {
    font-size: clamp(26px, 7vw, 31px) !important;
  }

  .landing-page .hero-stat-lbl {
    max-width: 118px;
    margin-top: 9px;
    font-size: 9px !important;
    letter-spacing: 0.07em;
  }
}

/* Landing mobile cleanup --------------------------------------------------
   The quick-action dock was removed from the landing template.  Keep this
   narrow guard for an old cached/injected dock without affecting hero or CTA
   buttons that belong to normal document flow. */
body:has(.landing-page) .mobile-quick-actions,
body:has(.landing-page) #mobileQuickActions,
body:has(.landing-page) #mobile-quick-actions,
body:has(.landing-page) .landing-quick-actions,
body:has(.landing-page) .landing-bottom-actions {
  display: none !important;
}

/* One compact, readable mobile hierarchy for the landing hero. */
@media (max-width: 768px) {
  .landing-page {
    padding-top: 82px !important;
    overflow-x: clip;
    touch-action: pan-y;
  }

  .landing-page .hero {
    min-height: auto !important;
    padding: 32px 16px 40px !important;
  }

  .landing-page .hero-inner {
    width: min(100%, 440px);
    margin: 0 auto;
  }

  .landing-page .hero-kicker {
    margin-bottom: 14px !important;
    padding: 7px 11px !important;
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
  }

  .landing-page .hero-h1 {
    margin-bottom: 14px !important;
    font-size: clamp(32px, 9.6vw, 44px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    overflow-wrap: anywhere;
  }

  .landing-page .hero-p {
    max-width: 35ch;
    margin: 0 auto 22px !important;
    font-size: 15.5px !important;
    font-weight: 500;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
  }

  .landing-page .hero-cta {
    gap: 10px !important;
    margin-bottom: 24px !important;
  }

  .landing-page .hero-cta .btn {
    min-height: 50px !important;
    font-size: 15px !important;
    line-height: 1.2;
  }

  .landing-page .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
  }

  .landing-page .hero-stat {
    min-height: 116px !important;
    padding: 17px 14px !important;
    border: 1px solid rgba(104, 91, 181, 0.34) !important;
    border-radius: 15px !important;
    background: #070b12 !important;
  }

  .landing-page .hero-stat-val {
    font-size: clamp(25px, 7.2vw, 31px) !important;
    line-height: 1 !important;
    letter-spacing: -0.05em !important;
  }

  .landing-page .hero-stat-lbl {
    margin-top: 8px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.055em !important;
  }
}

/* Preserve the requested single desktop row regardless of earlier rules. */
@media (min-width: 769px) {
  .landing-page .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ─── DEPOSIT MODAL — THREE PAYMENT METHODS ─── */
.pay-methods {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.pay-method {
  position: relative;
  min-width: 0;
  width: auto !important;
  padding: 12px 8px;
}

.pay-method.sel {
  border-color: rgba(139, 92, 246, 0.55) !important;
  background: rgba(139, 92, 246, 0.12) !important;
  color: var(--accent2) !important;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.08), 0 8px 22px rgba(139, 92, 246, 0.1) !important;
}

.pay-method--disabled,
.pay-method--disabled:hover {
  cursor: not-allowed !important;
  opacity: 0.48;
  color: rgba(203, 213, 225, 0.56) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  background: rgba(8, 10, 18, 0.34) !important;
  box-shadow: none !important;
  transform: none !important;
}

.pay-method-badge {
  background: rgba(148, 163, 184, 0.13);
  color: rgba(203, 213, 225, 0.65);
}

.pay-method-name {
  margin-top: 4px;
  font-size: 10.5px;
}

.pay-method-crypto-icon {
  color: #fbbf24;
}

.pay-method.sel .pay-comm {
  color: rgba(196, 181, 253, 0.78);
}

.modal-title-icon {
  background: rgba(139, 92, 246, 0.16);
  color: var(--accent2);
}

.deposit-hint {
  color: rgba(148, 163, 184, 0.62);
}
