/* ===========================
   VARIABLES & RESET
=========================== */
:root {
  --bg:         #080b12;
  --bg-2:       #0d1120;
  --bg-3:       #111827;
  --glass:      rgba(255,255,255,0.04);
  --glass-b:    rgba(255,255,255,0.08);
  --border:     rgba(255,255,255,0.08);
  --border-h:   rgba(255,255,255,0.16);
  --accent:     #00e5b0;
  --accent-dim: rgba(0,229,176,0.15);
  --accent-2:   #0088ff;
  --text:       #e8edf5;
  --text-2:     #8b97aa;
  --text-3:     #4a5568;
  --danger:     #ff4d6a;
  --success:    #00e5b0;
  --warn:       #ffb547;
  --radius:     12px;
  --radius-lg:  20px;
  --nav-h:      64px;
  --font-main:  'DM Sans', sans-serif;
  --font-head:  'Syne', sans-serif;
  --font-mono:  'DM Mono', monospace;
  --shadow:     0 8px 40px rgba(0,0,0,0.5);
  --shadow-lg:  0 20px 80px rgba(0,0,0,0.7);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: radial-gradient(ellipse at 50% 50%, #1f1d2b, #060e2e);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  cursor: auto;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: none; font-family: var(--font-main); border: none; background: none; }
input, select, textarea { font-family: var(--font-main); }
ul { list-style: none; }

.hidden { display: none !important; }
.active { display: block; }

/* ===========================
   CUSTOM CURSOR
=========================== */

/* Убираем кастомный курсор (точку) */
.cursor {
  display: none !important;
}

/* Оставляем follower (большой круг) */
.cursor-follower {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(0,229,176,0.6);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.08s ease-out, 
              top 0.08s ease-out, 
              width 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55),
              height 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55),
              border-color 0.2s ease;
  box-shadow: 0 0 15px rgba(0,229,176,0.3);
  backdrop-filter: blur(2px);
}

.cursor-follower.hovering {
  width: 56px;
  height: 56px;
  border-color: rgba(0,136,255,0.8);
  border-width: 2.5px;
  box-shadow: 0 0 25px rgba(0,136,255,0.5);
}

/* НЕ скрываем системный курсор */
* {
  cursor: auto !important;
}

/* Для ссылок и кнопок оставляем системный курсор */
a, button, [onclick], .service-card, .feature-card, .nav-links a, 
.btn-primary, .btn-ghost, .tab-btn, .logo, .user-avatar,
.checkbox-label, input[type="checkbox"], input[type="radio"] {
  cursor: pointer !important;
}

/* Для полей ввода текста */
input, textarea, [contenteditable], select {
  cursor: text !important;
}


/* ===========================
   NAVBAR
=========================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  backdrop-filter: blur(15px);
  background: rgba(44, 48, 56, 0.347);
  border-bottom: 2px solid var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  white-space: nowrap;
  z-index: 101;
}

.logo-small-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.logo:hover .logo-small-icon {
  transform: rotate(360deg) scale(1.2);
}

.logo-text {
  max-width: 600px;
  margin-top: -100px;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.nav-active { color: var(--text); }

.nav-auth { margin-left: auto; z-index: 101; }

/* Бургер-кнопка */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 6px;
  margin-left: auto;
  order: 3;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобильная навигация */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(13, 17, 32, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  z-index: 100;
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: right 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-y: auto;
}

.mobile-nav-panel.open {
  right: 0;
}

.mobile-nav-panel a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  transition: all 0.2s;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a.nav-active {
  color: var(--text);
  background: var(--glass);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

.user-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  cursor: none;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.user-avatar:hover {
  border-color: var(--border-h);
  background: var(--glass);
}

.avatar-icon { max-width: 15px; }
.user-email { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-chevron { color: var(--text-2); font-size: 10px; }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 280px;
  background: rgba(13, 17, 32, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.user-dropdown-email {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  word-break: break-all;
}

.user-dropdown-balance {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
}

.user-dropdown-section {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.user-dropdown-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  margin-bottom: 8px;
}

.user-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  cursor: none;
  transition: color 0.2s;
}

.user-dropdown-item:hover { color: var(--accent); }

.user-dropdown-item .status {
  font-size: 11px;
  color: var(--text-3);
}

.user-dropdown-item .status.active { color: var(--accent); }

.user-dropdown-link {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
  cursor: none;
  background: transparent;
}

.user-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.user-dropdown-logout {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  color: var(--danger);
  font-size: 13px;
  cursor: none;
  transition: background 0.2s;
  background: transparent;
}

.user-dropdown-logout:hover {
  background: rgba(255, 77, 106, 0.1);
}

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  background: var(--accent);
  color: #080b12;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--border-h);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn-ghost:hover { background: var(--glass-b); border-color: rgba(255,255,255,0.25); }

.btn-large { padding: 14px 32px; font-size: 15px; }

.btn-danger-outline {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(255,77,106,0.4);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn-danger-outline:hover { background: rgba(255,77,106,0.1); border-color: var(--danger); }

.btn-secondary {
  background: var(--glass-b);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
}

.btn-secondary:hover { background: rgba(255,255,255,0.12); }

.btn-icon {
  background: var(--glass);
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-icon:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.btn-primary-small {
  background: var(--accent);
  color: #080b12;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary-small:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-secondary-small {
  background: var(--glass);
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  border: 1px solid var(--border);
  cursor: default;
}

.btn-back {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
}

.btn-back:hover { border-color: var(--accent); color: var(--accent); }

.full-width { width: 100%; }

/* ===========================
   PAGES
=========================== */
.page {
  min-height: calc(100vh - var(--nav-h));
  z-index: 1;
  padding-top: var(--nav-h);
  animation: fadeIn 0.4s ease;
}

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

/* ===========================
   HERO SECTION
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-logo {
  width: 260px;
  height: 160px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 68px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; margin-bottom: 10px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(0,229,176,0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0,229,176,0.06);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,229,176,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0,229,176,0); }
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 20px;
}

.phone-mockup {
  width: 160px;
  background: var(--bg-3);
  border: 1px solid var(--border-h);
  border-radius: 24px;
  padding: 16px 12px;
  box-shadow: 0 0 40px rgba(0,229,176,0.1), var(--shadow);
  overflow: hidden;
}

.phone-screen { display: flex; flex-direction: column; gap: 8px; }

.notif-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  animation: slideNotif 4s ease infinite;
}

.notif-2 { animation-delay: 1.3s; }
.notif-3 { animation-delay: 2.6s; }

@keyframes slideNotif {
  0%,80%,100% { opacity: 1; transform: translateX(0); }
  90% { opacity: 0.3; transform: translateX(-8px); }
}

.notif-app {
  display: block;
  font-size: 9px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 3px;
}

.notif-text { font-size: 10px; color: var(--text-2); }

.arrow-bridge {
  font-size: 28px;
  color: var(--accent);
  opacity: 0.6;
  animation: arrowPulse 2s ease infinite;
}

@keyframes arrowPulse { 
  0%,100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(6px); } 
}

.pc-mockup {
  width: 220px;
  height: 160px;
  background: var(--bg-3);
  border: 1px solid var(--border-h);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,136,255,0.1), var(--shadow);
}

.pc-bar {
  height: 28px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.pc-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.pc-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }

.pc-row {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-2);
  padding: 6px 8px;
  border-radius: 6px;
}

.pc-row.active { background: var(--accent-dim); color: var(--accent); }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,176,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,176,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #00e5b0, transparent); top: -20%; left: 10%; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #0088ff, transparent); bottom: 0; right: 5%; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #7c3aed, transparent); top: 30%; right: 25%; animation-delay: -6s; }

@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ===========================
   ANIMATIONS
=========================== */
.animate-up {
  opacity: 0;
  transform: translateY(24px);
  animation: animUp 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes animUp { 
  to { opacity: 1; transform: translateY(0); } 
}

/* ===========================
   FEATURES & SERVICES
=========================== */
.features {
  padding: 100px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.services-showcase {
  padding: 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: rgba(0,229,176,0.3);
  background: rgba(0,229,176,0.04);
  transform: translateY(-4px);
}

.service-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.service-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}

.service-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.service-badge.active { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(0,229,176,0.3); }
.service-badge.inactive { background: var(--glass); color: var(--text-3); border: 1px solid var(--border); }
.service-badge.in-development { background: rgba(255,181,71,0.15); color: var(--warn); border: 1px solid rgba(255,181,71,0.3); }

.service-desc {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(0,229,176,0.25);
  background: rgba(0,229,176,0.04);
  transform: translateY(-4px);
}

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

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p { color: var(--text-2); font-size: 14px; line-height: 1.7; }

.feature-badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.feature-badge.in-development {
  background: rgba(255,181,71,0.15);
  color: var(--warn);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===========================
   SECTION HEADERS
=========================== */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 56px;
  line-height: 1.1;
}

.page-header {
  padding: 56px 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.page-sub { color: var(--text-2); font-size: 16px; }

/* ===========================
   ROADMAP
=========================== */
.roadmap {
  padding: 80px 80px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  padding-left: 30px;
  border-left: 1px solid var(--border);
}

.roadmap-item {
  display: flex;
  gap: 24px;
  padding: 24px 0 24px 32px;
  position: relative;
}

.rm-marker {
  position: absolute;
  left: -18px;
  width: 34px;
  height: 34px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.roadmap-item.done .rm-marker { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.roadmap-item.current .rm-marker { border-color: var(--accent-2); color: var(--accent-2); background: rgba(0,136,255,0.12); }

.rm-quarter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.roadmap-item.done .rm-quarter { color: var(--accent); }
.roadmap-item.current .rm-quarter { color: var(--accent-2); }

.rm-content h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}

.rm-content p { color: var(--text-2); font-size: 14px; }

/* ===========================
   ABOUT & CTA
=========================== */
.about {
  padding: 80px 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.cta-section {
  padding: 60px 80px 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.cta-card {
  background: linear-gradient(135deg, var(--accent-dim), rgba(0,136,255,0.1));
  border: 1px solid rgba(0,229,176,0.3);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}

.cta-card h2 {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--text-2);
  font-size: 18px;
  margin-bottom: 32px;
}

/* ===========================
   SERVICE PAGE LAYOUT
=========================== */
.service-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 0 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.service-main { min-width: 0; }

.service-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.device-info-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.device-info-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.device-info-card .device-field { margin-bottom: 12px; }

.device-info-card .device-field label {
  font-size: 11px;
  color: var(--text-2);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}

.device-info-card .device-value {
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
  font-family: var(--font-mono);
}

/* ===========================
   MESSAGES
=========================== */
.tabs-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px 80px;
}

.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.tab-btn {
  padding: 10px 22px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
  cursor: pointer;
}

.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-btn:hover:not(.active) { color: var(--text); }

.tab-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filter-group { display: flex; gap: 10px; }

select {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 14px;
  font-size: 13px;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

select:hover, select:focus { border-color: var(--border-h); }
select option { background: var(--bg-2); }

.messages-list { display: flex; flex-direction: column; gap: 8px; }

.msg-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.msg-card:hover { border-color: var(--border-h); background: rgba(255,255,255,0.05); }
.msg-card.unread { border-left: 3px solid var(--accent); }

.msg-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }

.msg-sender {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.msg-app { font-size: 12px; color: var(--text-3); }

.msg-type {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.msg-type.sms { background: rgba(0,136,255,0.15); color: var(--accent-2); }
.msg-type.notification { background: rgba(0,229,176,0.1); color: var(--accent); }

.msg-text { font-size: 13px; color: var(--text); margin-bottom: 8px; word-break: break-word; }

.msg-meta { display: flex; align-items: center; gap: 12px; }

.msg-date { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }

.msg-read-badge { font-size: 10px; padding: 1px 6px; border-radius: 4px; }
.msg-read-badge.read { color: var(--text-3); }
.msg-read-badge.unread { color: var(--warn); }

.msg-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; justify-content: center; }

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all 0.2s;
  cursor: pointer;
}

.page-btn:hover { border-color: var(--border-h); color: var(--text); }
.page-btn.active-page { background: var(--accent); color: #080b12; border-color: var(--accent); }

/* ===========================
   DEVICE, BALANCE, SUBSCRIPTION CARDS
=========================== */
.device-card, .balance-card, .subscription-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 600px;
}

.device-field { margin-bottom: 20px; }

.device-field label {
  display: block;
  font-size: 11px;
  color: var(--text-2);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.device-value {
  font-family: var(--font-mono);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-key-val {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-2);
}

.balance-num {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 4px;
}

.balance-label { color: var(--text-2); font-size: 13px; margin-bottom: 24px; }

.sub-price {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
}

.sub-period { color: var(--text-2); font-size: 13px; margin-bottom: 24px; }

.status-active { color: var(--accent); font-weight: 600; }
.status-inactive { color: var(--text-2); }

/* ===========================
   FORMS
=========================== */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-row { display: flex; align-items: center; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.optional { font-size: 11px; color: var(--text-3); text-transform: none; letter-spacing: 0; }

/* ===========================
   TABLES
=========================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--glass); }

.amount-positive { color: var(--success); font-family: var(--font-mono); }
.amount-negative { color: var(--danger); font-family: var(--font-mono); }

/* ===========================
   REFERRALS
=========================== */
.ref-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 28px;
}

.ref-link-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.stat-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-val {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label { font-size: 12px; color: var(--text-2); }

/* ===========================
   SUPPORT
=========================== */
.support-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  padding: 0 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.glass-card h2 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
}

.support-right { display: flex; flex-direction: column; gap: 24px; }

.question-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.question-item:hover { border-color: var(--border-h); }

.q-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.q-text { color: var(--text-2); font-size: 13px; margin-bottom: 10px; }

.q-answer {
  background: rgba(0,229,176,0.05);
  border: 1px solid rgba(0,229,176,0.15);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  margin-top: 8px;
}

.q-answer-label {
  font-size: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.q-status-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.q-status-badge.answered { background: var(--accent-dim); color: var(--accent); }
.q-status-badge.pending { background: var(--glass); color: var(--text-3); }

.announce-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.ann-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ann-text { color: var(--text-2); font-size: 13px; margin-bottom: 10px; }
.ann-footer { display: flex; justify-content: space-between; align-items: center; }
.ann-date { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }

/* ===========================
   ADMIN PANEL
=========================== */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 80px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.admin-tab-btn {
  padding: 10px 24px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.admin-filters { margin-bottom: 20px; }

.admin-questions-list { display: flex; flex-direction: column; gap: 16px; }

.admin-question-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.admin-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.admin-question-user { font-weight: 600; color: var(--accent); }

.admin-question-status {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
}

.admin-question-status.answered { background: var(--accent-dim); color: var(--accent); }
.admin-question-status.pending { background: rgba(255, 181, 71, 0.15); color: var(--warn); }

.admin-question-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.admin-question-text {
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.6;
}

.admin-question-answer {
  background: var(--bg-3);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 8px;
}

.admin-question-answer-label {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.admin-answer-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.admin-answer-form textarea {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px;
  font-size: 13px;
  margin-bottom: 12px;
  resize: vertical;
}

.admin-announcement-form {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.admin-announcements-list { display: flex; flex-direction: column; gap: 16px; }

.admin-announcement-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.admin-announcement-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent);
}

.admin-announcement-date {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 12px;
}

/* ===========================
   MODALS
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(50px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: rgba(13, 17, 32, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

.modal-wide { max-width: 700px; }
.device-modal .modal-box { max-width: 500px; }

@keyframes modalIn { 
  from { opacity: 0; transform: scale(0.95) translateY(12px); } 
  to { opacity: 1; transform: scale(1) translateY(0); } 
}

.modal-close {
  position: sticky;
  top: 0;
  right: 0;
  float: right;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  width: 32px;
  height: 32px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
}

.modal-close:hover { border-color: var(--danger); color: var(--danger); background: rgba(255,77,106,0.1); }

.modal-logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 28px;
}

.modal-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  clear: both;
}

.modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.modal-tab {
  padding: 8px 20px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.modal-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.modal-tab:hover:not(.active) { color: var(--text); }

.modal-box .btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 10px;
  font-size: 13px;
  margin-top: 8px;
}

.modal-box .btn-ghost:hover {
  background: var(--glass);
  border-color: var(--border-h);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.amount-btn {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.amount-btn:hover, .amount-btn.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.deposit-link-url {
  display: block;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  word-break: break-all;
  margin-top: 8px;
}

.instruction-modal h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--accent);
  clear: both;
}

.instruction-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.instruction-step:last-child { border-bottom: none; padding-bottom: 0; }

.step-number {
  width: 32px;
  height: 32px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: var(--accent);
  flex-shrink: 0;
}

.step-content { flex: 1; }

.step-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.step-content p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.instruction-note {
  background: var(--accent-dim);
  border-radius: 10px;
  padding: 14px;
  margin-top: 20px;
}

.instruction-note p {
  color: var(--accent);
  font-size: 13px;
  margin: 0;
}

.instruction-step .btn-primary {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  margin-top: 8px;
}

.service-detail-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 80px 80px;
}

.service-detail-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.service-detail-icon { font-size: 64px; margin-bottom: 24px; }

.service-detail-card h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.service-detail-description {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.service-detail-price {
  margin-bottom: 32px;
  padding: 16px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: inline-block;
}

.price-amount {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
}

.price-period {
  font-size: 14px;
  color: var(--text-2);
  margin-left: 8px;
}

.service-detail-features {
  text-align: left;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-3);
  border-radius: var(--radius);
}

.service-detail-features h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-detail-features ul {
  list-style: none;
  padding: 0;
}

.service-detail-features li {
  padding: 8px 0;
  color: var(--text-2);
  font-size: 14px;
}

.service-detail-actions { margin-top: 24px; }
.service-detail-note { margin-top: 16px; font-size: 12px; color: var(--text-3); }

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 3.5s forwards;
  backdrop-filter: blur(12px);
  max-width: 360px;
}

.toast.success { background: rgba(0,229,176,0.1); border-color: rgba(0,229,176,0.3); color: var(--accent); }
.toast.error { background: rgba(255,77,106,0.1); border-color: rgba(255,77,106,0.3); color: var(--danger); }
.toast.info { background: rgba(0,136,255,0.1); border-color: rgba(0,136,255,0.3); color: var(--accent-2); }

@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(24px); } }

.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 60px;
  grid-column: 1 / -1;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loading-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: var(--text-2);
  gap: 12px;
}

.loading-inline .spinner { width: 20px; height: 20px; border-width: 2px; }

.empty-state {
  text-align: center;
  padding: 60px;
  color: var(--text-2);
}

.empty-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.empty-text { font-size: 14px; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

.btn-deposit {
  background: var(--accent);
  color: #080b12;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}

.btn-deposit:hover {
  opacity: 0.88;
}

.warning-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
}

.btn-danger {
  background: var(--danger);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  flex: 1;
}

.btn-danger:hover {
  opacity: 0.88;
}

.toast.warning {
  background: rgba(255, 181, 71, 0.15);
  border-color: rgba(255, 181, 71, 0.4);
  color: var(--warn);
}

.tariffs-header {
    text-align: center;
    padding: 40px 20px;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0 80px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.tariff-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
}

.tariff-card .btn-primary,
.tariff-card .btn-secondary {
  margin-top: auto;
  width: 100%;
}

.tariff-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,229,176,0.3);
}

.tariff-card.disabled {
    opacity: 0.6;
}

.tariff-name {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tariff-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.tariff-period {
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 24px;
}

.tariff-devices {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 12px;
}

.tariff-description {
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 24px;
}

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

.instructions-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 80px 80px;
}

.instruction-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  overflow: hidden;
}

.instruction-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.instruction-icon {
  font-size: 48px;
}

.instruction-title {
  flex: 1;
}

.instruction-title h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.instruction-content {
  padding: 32px;
}

.instruction-section {
  margin-bottom: 32px;
}

.instruction-section h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}

.instruction-section p {
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.instruction-list {
  padding-left: 24px;
  color: var(--text-2);
  line-height: 1.8;
}

.instruction-list li {
  margin-bottom: 8px;
}

.apk-download {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  margin: 20px 0;
  padding-top: 40px;
}

.apk-note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 20px;
}

.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 12px 16px;
  background: var(--glass);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--glass-b);
}

.faq-answer {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  padding: 16px;
  max-height: 200px;
}

.how-it-works {
  padding: 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,176,0.3);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: var(--accent);
  margin: 0 auto 16px;
}

.step-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.for-who {
  padding: 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.audience-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s;
}

.audience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,176,0.3);
}

.audience-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.audience-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.audience-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.app-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
}

.encryption {
  padding: 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.encryption-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.encryption-text p {
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.encryption-badge {
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,176,0.3);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-align: center;
}

.encryption-animation {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.encrypt-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-original, .message-encrypted {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-mono);
}

.message-original {
  color: var(--accent);
}

.message-encrypted {
  color: var(--text-2);
  font-family: monospace;
}

.message-original.pc {
  color: var(--accent-2);
}

.encrypt-arrow, .decrypt-arrow {
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,176,0.3);
  border-radius: var(--radius);
  padding: 4px 0;
  animation: pulse 2s ease infinite;
}

.tariffs-preview {
  padding: 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.tariffs-simple-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  margin-bottom: 32px;
}

.tariff-simple-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s;
}

.tariff-simple-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,176,0.3);
}

.tariff-simple-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tariff-simple-devices {
  font-size: 14px;
  color: var(--text-2);
}

.tariffs-more {
  margin-top: 24px;
}

.hero-micro {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 40px;
}

@media (max-width: 1200px) {
  .steps-grid, .audience-grid, .tariffs-simple-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .encryption-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .steps-grid, .audience-grid, .tariffs-simple-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 42px;
  }
  .hero-sub {
    font-size: 16px;
  }
}

.final-cta {
  padding: 80px 80px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.final-cta-container {
  background: linear-gradient(135deg, var(--accent-dim), rgba(0,136,255,0.1));
  border: 1px solid rgba(0,229,176,0.3);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}

.final-cta-title {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.final-cta-sub {
  color: var(--text-2);
  font-size: 18px;
  margin-bottom: 32px;
}

.final-cta-container {
  position: relative;
  overflow: hidden;
}

.final-cta-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,229,176,0.1), transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

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

/* ===========================
   FLOATING ORBS
=========================== */
.floating-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.65;
  pointer-events: none;
}

.floating-orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgb(41, 42, 138), rgba(255, 181, 71, 0.05));
  top: 50%;
  transform: translateY(-50%);
  left: 0%;
}

.floating-orb-2 {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(159, 87, 227, 0.8), rgba(0, 229, 176, 0.1));
  top: 50%;
  right: 20%;
  left: auto;
}

.floating-orb-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 200, 180, 0.7), rgba(0, 200, 180, 0.05));
  bottom: 50%;
  left: 30%;
  top: auto;
}

.floating-orb-4 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 136, 255, 0.75), rgba(0, 136, 255, 0.08));
  bottom: 5%;
  right: -5%;
  top: auto;
  left: auto;
}

/* ================================================================
   АДАПТИВНОСТЬ — ПЛАНШЕТЫ (≤1024px)
================================================================ */
@media (max-width: 1024px) {
  .nav-inner {
    padding: 0 20px;
    gap: 24px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .features,
  .how-it-works,
  .for-who,
  .encryption,
  .tariffs-preview,
  .final-cta {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 34px;
    margin-bottom: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .tariffs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px 60px;
  }

  .tariffs-simple-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .encryption-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-container {
    grid-template-columns: 1fr;
    padding: 0 20px 40px;
  }

  .service-sidebar {
    position: static;
  }

  .support-layout {
    grid-template-columns: 1fr;
    padding: 0 20px 40px;
  }

  .page-header {
    padding: 56px 20px 32px;
  }

  .page-title {
    font-size: 36px;
  }

  .hero-visual {
    flex-direction: column;
    gap: 16px;
  }

  .arrow-bridge {
    transform: rotate(90deg);
  }

  .phone-mockup {
    width: 140px;
  }

  .pc-mockup {
    width: 200px;
    height: 140px;
  }

  .instructions-container {
    padding: 20px 20px 60px;
  }

  .admin-container {
    padding: 20px;
  }

  .final-cta-container {
    padding: 40px 24px;
  }

  .final-cta-title {
    font-size: 28px;
  }

  .final-cta-sub {
    font-size: 15px;
  }

  .legal-container {
    padding-inline: 20px;
  }

  .modal-box {
    width: 95%;
    padding: 24px;
  }
}

/* ================================================================
   АДАПТИВНОСТЬ — МОБИЛЬНЫЕ (≤768px)
================================================================ */
@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
    --radius-lg: 14px;
    --radius: 10px;
  }

  body {
    font-size: 14px;
  }

  /* --- Навигация: десктопные ссылки скрыты, бургер виден --- */
  .nav-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  /* Перестраиваем порядок: лого слева, бургер справа */
  .nav-inner .logo {
    order: 1;
  }

  .nav-inner .nav-auth {
    order: 2;
    margin-left: auto;
  }

  .nav-inner .burger-btn {
    order: 3;
  }

  /* Мобильная панель */
  .mobile-nav-overlay {
    display: none;
  }

  .mobile-nav-overlay.open {
    display: block;
  }

  .mobile-nav-panel {
    display: flex;
  }

  /* --- Hero --- */
  .hero {
    min-height: auto;
    padding: 100px 16px 48px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .hero-visual {
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
  }

  .phone-mockup {
    width: 120px;
    border-radius: 18px;
    padding: 12px 10px;
  }

  .arrow-bridge {
    transform: rotate(90deg);
    font-size: 22px;
  }

  .pc-mockup {
    width: 180px;
    height: 120px;
  }

  .hero-micro {
    margin-bottom: 24px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 4px 12px;
  }

  .logo-text {
    max-width: 280px;
    margin-top: 0;
  }

  /* --- Секции --- */
  .features,
  .how-it-works,
  .for-who,
  .encryption,
  .tariffs-preview,
  .final-cta {
    padding: 40px 16px;
  }

  .section-label {
    font-size: 10px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 28px;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .tariffs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px 40px;
  }

  .tariffs-simple-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 20px;
  }

  .tariff-card {
    min-height: auto;
    padding: 24px;
  }

  .tariff-name {
    font-size: 20px;
  }

  .tariff-price {
    font-size: 28px;
  }

  .encryption-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .encryption-animation {
    padding: 20px;
  }

  .encryption-badge {
    font-size: 11px;
    padding: 12px;
  }

  /* --- Эхокамера --- */
  .service-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px 40px;
  }

  .service-sidebar {
    position: static;
    order: -1;
  }

  .tab-toolbar {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .filter-group {
    flex-direction: column;
    gap: 8px;
  }

  .filter-group select {
    width: 100%;
  }

  .msg-card {
    padding: 12px 14px;
    grid-template-columns: 1fr;
  }

  .msg-actions {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
  }

  /* --- Поддержка --- */
  .support-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px 40px;
  }

  .support-right {
    gap: 16px;
  }

  .glass-card {
    padding: 20px;
  }

  /* --- Инструкции --- */
  .instructions-container {
    padding: 20px 16px 40px;
  }

  .instruction-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .instruction-content {
    padding: 20px;
  }

  .instruction-section h3 {
    font-size: 16px;
  }

  .apk-download {
    padding: 20px;
  }

  /* --- Админка --- */
  .admin-container {
    padding: 16px;
  }

  .admin-tabs {
    gap: 4px;
  }

  .admin-tab-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .admin-question-card {
    padding: 16px;
  }

  /* --- Таблица транзакций (баланс) --- */
  .data-table {
    display: block;
    overflow-x: auto;
  }

  .data-table th,
  .data-table td {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 12px;
  }

  /* --- Страница заголовков --- */
  .page-header {
    padding: 40px 16px 24px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-sub {
    font-size: 14px;
  }

  /* --- Модалки --- */
  .modal-box {
    width: 95%;
    padding: 20px;
    max-height: 90vh;
    border-radius: var(--radius);
  }

  .modal-title {
    font-size: 18px;
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .amount-btn {
    padding: 10px;
    font-size: 13px;
  }

  .modal-tabs {
    gap: 2px;
  }

  .modal-tab {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* --- Уведомления (тосты) --- */
  #toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    max-width: 100%;
    font-size: 12px;
    padding: 10px 14px;
  }

  /* --- CTA финальный --- */
  .final-cta-container {
    padding: 32px 20px;
  }

  .final-cta-title {
    font-size: 22px;
  }

  .final-cta-sub {
    font-size: 14px;
  }

  /* --- Правовой раздел --- */
  .legal-container {
    padding-inline: 16px;
  }

  /* --- Статистика (рефералы) --- */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 14px 8px;
  }

  .stat-val {
    font-size: 22px;
  }

  .stat-label {
    font-size: 10px;
  }

  /* --- Реферальная ссылка --- */
  .ref-link-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  /* --- Шаги (в модалке) --- */
  .instruction-step {
    flex-direction: column;
    gap: 8px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  /* --- Кастомный курсор --- */
  .cursor-follower {
    display: none !important;
  }
}

/* ================================================================
   АДАПТИВНОСТЬ — МАЛЕНЬКИЕ ТЕЛЕФОНЫ (≤430px)
================================================================ */
@media (max-width: 430px) {
  :root {
    --nav-h: 52px;
  }

  .hero {
    padding: 80px 12px 32px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 13px;
  }

  .btn-large {
    padding: 12px 24px;
    font-size: 14px;
  }

  .tariffs-simple-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tariff-simple-card {
    padding: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .admin-tabs {
    flex-direction: column;
    gap: 4px;
  }

  .admin-tab-btn {
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .admin-tab-btn.active {
    border-bottom-color: var(--accent);
  }

  .user-email {
    max-width: 100px;
  }

  /* Навбар на очень маленьких */
  .nav-inner {
    padding: 0 10px;
    gap: 8px;
  }

  .logo {
    font-size: 15px;
  }

  .logo-small-icon {
    width: 26px;
    height: 26px;
  }

  .btn-primary {
    padding: 8px 16px;
    font-size: 13px;
  }

  .mobile-nav-panel {
    width: 260px;
    padding: 70px 20px 30px;
  }
}

.tariff-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 229, 176, 0.3);
}

.legal-container {
  padding-inline: 50px;
}