/* ==========================================================================
   TenderHelper 2.0 — Ultra-Premium Fintech & Cyber Design System
   Vanilla CSS • High-End Dark Obsidian Theme
   ========================================================================== */

:root {
  /* Colors */
  --bg-obsidian: #070a0e;
  --bg-surface: #0d1219;
  --bg-card: rgba(18, 25, 36, 0.75);
  --bg-card-hover: rgba(26, 36, 51, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(16, 185, 129, 0.35);

  /* Brand Accents */
  --accent-emerald: #10b981;
  --accent-emerald-dark: #059669;
  --accent-emerald-glow: rgba(16, 185, 129, 0.45);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-emerald: #34d399;
  --text-cyan: #22d3ee;
  --text-red: #f87171;
  --text-amber: #fbbf24;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Shadows & Glass */
  --shadow-card: 0 16px 36px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px -5px rgba(16, 185, 129, 0.3);
  --glass-blur: blur(16px);

  /* Layout */
  --container-width: 1240px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

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

body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Ambient Background Effects
   ========================================================================== */

.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  animation: pulse-orb 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
  top: -150px;
  left: 10%;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  top: 40%;
  right: -100px;
  animation-delay: 3s;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  bottom: -100px;
  left: 30%;
  animation-delay: 6s;
}

@keyframes pulse-orb {
  0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
  100% { transform: scale(1.15) translate(40px, 30px); opacity: 0.45; }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 85%);
}

/* ==========================================================================
   Typography & Gradients
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.font-mono {
  font-family: var(--font-mono);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #34d399 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-red {
  background: linear-gradient(135deg, #f87171 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald { color: var(--text-emerald); }
.text-cyan { color: var(--text-cyan); }
.text-amber { color: var(--text-amber); }
.text-red { color: var(--text-red); }

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */

.top-announcement {
  position: relative;
  z-index: 100;
  background: rgba(13, 18, 25, 0.9);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  padding: 8px 0;
  font-size: 0.825rem;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.announcement-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--text-emerald);
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.announcement-text {
  color: var(--text-secondary);
  text-align: center;
}

.announcement-link {
  color: var(--text-emerald);
  font-weight: 600;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.announcement-link:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Navbar & Mobile Menu
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 10, 14, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  background: rgba(7, 10, 14, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.logo-symbol {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: #000;
  letter-spacing: -0.5px;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: #fff;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.925rem;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-emerald);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 200;
  border-left: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.close-drawer-btn {
  font-size: 1.4rem;
  color: var(--text-secondary);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.mobile-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: 10px;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-xs {
  padding: 6px 12px;
  font-size: 0.785rem;
  border-radius: 8px;
}

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

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #0d9488 100%);
  color: #000;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.55);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-emerald);
  color: var(--text-emerald);
}

.glow-button {
  position: relative;
  overflow: hidden;
}

.glow-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: rotate(30deg) translate(-100%, -100%);
  transition: transform 0.6s ease;
}

.glow-button:hover::after {
  transform: rotate(30deg) translate(100%, 100%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--text-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-slate {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  z-index: 10;
  padding: 80px 0 100px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 4rem;
  letter-spacing: -1.5px;
  max-width: 900px;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 780px;
  margin-bottom: 40px;
}

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

.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 24px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  margin-bottom: 72px;
}

.metric-item {
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.metric-divider {
  width: 1px;
  height: 44px;
  background: var(--border-color);
}

/* Hero Visual Showcase */

.hero-visual {
  width: 100%;
  max-width: 1080px;
  position: relative;
}

.dashboard-mockup-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 50px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  position: relative;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.mockup-body {
  position: relative;
  background: #000;
}

.dashboard-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Hero Live Dashboard — точная копия рабочего окна TenderHelper
   Цвета взяты из реального интерфейса программы, не выдуманы.
   ========================================================================== */

.th-app {
  --th-bg: #1a1a2e;
  --th-panel: #16213e;
  --th-border: #2a3a5c;
  --th-accent: #00d4aa;
  --th-lead: #3ddc97;
  --th-outbid: #ffa657;
  --th-absent: #ff6b6b;
  --th-done: #c586c0;
  --th-done-bg: #2a1e2b;
  --th-absent-bg: #2b1e1e;

  background: var(--th-bg);
  color: #e8eaf0;
  font-family: var(--font-sans);
  padding: 14px 16px 0;
}

.th-toprow {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.72rem;
}

.th-label { color: var(--text-muted); }
.th-value { color: #e8eaf0; font-weight: 500; margin-left: 4px; }

.th-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.th-btn {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  color: #dfe4ee;
  background: var(--th-panel);
  border: 1px solid var(--th-border);
  border-radius: 6px;
  padding: 7px 10px;
  cursor: default;
}

.th-btn.primary {
  background: linear-gradient(135deg, #0f3460, #533483);
  border-color: transparent;
}

.th-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
  margin-top: 14px;
  font-size: 0.72rem;
}

.th-info-label { color: var(--text-muted); }
.th-info-value { color: #e8eaf0; margin-left: 4px; }
.th-info-value.th-lead { color: var(--th-lead); }

.th-conn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

.th-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--th-lead);
  margin-right: 2px;
}

.th-dot:not(:first-child) { margin-left: 8px; }

.th-table-scroll {
  margin-top: 14px;
  overflow-x: auto;
}

.th-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.68rem;
}

.th-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  padding: 6px 8px;
  border-bottom: 1px solid var(--th-border);
  white-space: nowrap;
}

.th-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(42, 58, 92, 0.5);
  white-space: nowrap;
}

.th-table tr[data-state="outbid"] .th-pos { color: var(--th-outbid); }
.th-table tr[data-state="lead"] .th-pos { color: var(--th-lead); }
.th-table tr[data-state="absent"] .th-pos { color: var(--th-absent); }
.th-table tr[data-state="absent"] { background: var(--th-absent-bg); }
.th-table tr[data-state="done"] .th-pos { color: var(--th-done); }
.th-table tr[data-state="done"] { background: var(--th-done-bg); }

.th-row-active { background: rgba(0, 212, 170, 0.06); }

.th-muted { color: var(--text-muted); }

.th-log-header {
  margin-top: 14px;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.th-log {
  margin-top: 6px;
  background: #0d1117;
  border: 1px solid var(--th-border);
  border-radius: 6px;
  padding: 8px 10px;
  height: 54px;
  overflow: hidden;
  font-family: 'Consolas', var(--font-mono);
  font-size: 0.66rem;
  color: #c9d1d9;
  line-height: 1.6;
}

.th-log div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.th-statusbar {
  display: flex;
  justify-content: space-between;
  margin: 12px -16px 0;
  padding: 8px 16px;
  border-top: 1px solid var(--th-border);
  background: var(--th-panel);
  font-size: 0.64rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .th-info { grid-template-columns: 1fr; }

  /* Кнопки в hero декоративные (disabled) — на телефоне только занимают место. */
  .th-buttons {
    display: none;
  }

  /* Полноценная таблица на 6 колонок нечитаема в карточке ~330px — превращаем
     строки в компактные карточки, как в симуляторе торгов ниже по странице. */
  .th-table-scroll {
    overflow-x: visible;
  }

  .th-table,
  .th-table thead,
  .th-table tbody,
  .th-table tr,
  .th-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .th-table thead {
    display: none;
  }

  .th-table tbody tr {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid var(--th-border, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
  }

  .th-table td {
    padding: 4px 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
    white-space: normal;
  }

  .th-table td::before {
    content: attr(data-label);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    flex-shrink: 0;
  }

  .th-toprow,
  .th-info { font-size: 0.78rem; }

  .th-log { font-size: 0.72rem; height: auto; min-height: 54px; }

  .th-statusbar { font-size: 0.7rem; flex-wrap: wrap; gap: 6px; }
}

.floating-badge {
  position: absolute;
  background: rgba(13, 18, 25, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 12px 18px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  animation: float 4s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.floating-badges-stack {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 2;
}

.badge-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 18, 25, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.64rem;
  color: var(--text-emerald);
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.badge-chip .badge-icon {
  font-size: 0.7rem;
  line-height: 1;
}

.badge-chip-amber {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--text-amber);
}

@media (max-width: 760px) {
  .floating-badges-stack {
    display: none;
  }
}

.badge-icon {
  font-size: 1.5rem;
}

.badge-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.badge-desc {
  font-size: 0.8rem;
}

/* ==========================================================================
   Section Headers & Common Styles
   ========================================================================== */

.section {
  position: relative;
  z-index: 10;
  padding: 90px 0;
}

.section-header {
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

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

/* ==========================================================================
   Problem vs Solution Comparison Section
   ========================================================================== */

.problem-section {
  background: radial-gradient(circle at 50% 50%, rgba(18, 25, 36, 0.5) 0%, transparent 70%);
}

.comparison-toggle-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.toggle-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: #fff;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.comparison-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 36px;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-smooth);
}

.compare-manual {
  border-left: 4px solid var(--accent-red);
}

.compare-auto {
  border-left: 4px solid var(--accent-emerald);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(18, 25, 36, 0.75) 100%);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.tag-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--text-red);
}

.tag-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--text-emerald);
}

.card-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-list li {
  font-size: 0.925rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Interactive Live Auction Simulator (#demo)
   ========================================================================== */

.demo-section {
  position: relative;
}

.demo-terminal-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mode-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.toggle-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

.mode-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.mode-text.active-mode {
  color: var(--text-emerald);
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
}

input:checked + .slider {
  background-color: var(--accent-emerald);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Trading Table */
.trading-table-container {
  overflow-x: auto;
}

.trading-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.trading-table th {
  padding: 16px 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.trading-table td {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.lot-row {
  transition: background var(--transition-fast);
}

.lot-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.platform-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.roseltorg { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.sber { background: rgba(16, 185, 129, 0.2); color: var(--text-emerald); }

.lot-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.lot-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timer-box {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  border: 1px solid var(--border-color);
}

.timer-box.urgent {
  color: var(--text-red);
  border-color: rgba(239, 68, 68, 0.5);
  animation: pulse-timer 1s infinite;
}

@keyframes pulse-timer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.price-value {
  font-size: 1.15rem;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-leading {
  background: rgba(16, 185, 129, 0.15);
  color: var(--text-emerald);
}

.status-outbid {
  background: rgba(239, 68, 68, 0.15);
  color: var(--text-red);
}

.status-won {
  background: rgba(245, 158, 11, 0.15);
  color: var(--text-amber);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.lot-actions {
  display: flex;
  gap: 8px;
}

.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

/* На мобильных строки таблицы превращаются в карточки: гориз. скролл
   пальцем по 9 колонкам — это плохой UX, читать список карточек проще. */
@media (max-width: 760px) {
  .trading-table-container {
    overflow-x: visible;
  }

  .trading-table,
  .trading-table thead,
  .trading-table tbody,
  .trading-table tr,
  .trading-table td {
    display: block;
    width: 100%;
  }

  .trading-table thead {
    display: none;
  }

  .trading-table tr.lot-row {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
  }

  .trading-table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
  }

  .trading-table td:last-child {
    border-bottom: none;
    justify-content: flex-start;
  }

  .trading-table td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    flex-shrink: 0;
  }

  .lot-title { font-size: 0.85rem; text-align: right; }
  .lot-meta { text-align: right; }
}

/* Terminal Console Logs */
.terminal-logs {
  background: #05070a;
  border-top: 1px solid var(--border-color);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-stream {
  padding: 16px 24px;
  max-height: 180px;
  overflow-y: auto;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-entry {
  line-height: 1.4;
}

.log-time { color: var(--text-muted); margin-right: 8px; }
.log-prefix { font-weight: 700; margin-right: 6px; }

.log-info .log-prefix { color: #60a5fa; }
.log-success .log-prefix { color: var(--text-emerald); }
.log-warning .log-prefix { color: var(--text-amber); }
.log-error .log-prefix { color: var(--text-red); }

/* ==========================================================================
   Key Features Grid
   ========================================================================== */

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--text-emerald); }
.icon-red { background: rgba(239, 68, 68, 0.15); color: var(--text-red); }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--text-cyan); }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--text-amber); }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Telegram Remote Control Section (#telegram-bot)
   ========================================================================== */

.telegram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.telegram-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 36px 0;
}

.tg-feature-item {
  display: flex;
  gap: 16px;
}

.tg-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tg-feature-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.tg-feature-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.trigger-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Smartphone Mockup */
.telegram-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 330px;
  height: 640px;
  background: #111827;
  border: 4px solid #334155;
  border-radius: 40px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(16, 185, 129, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 140px;
  height: 24px;
  background: #000;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.camera-lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e293b;
}

.speaker-grill {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: #1e293b;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0e1621;
  display: flex;
  flex-direction: column;
  padding-top: 28px;
}

.tg-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #17212b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tg-back-btn { font-size: 1.5rem; color: #5288c1; }

.tg-bot-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-emerald);
  color: #000;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.tg-bot-name { font-weight: 700; font-size: 0.85rem; color: #fff; }
.tg-bot-status { font-size: 0.68rem; color: #6c7883; }

.tg-chat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: radial-gradient(circle at 50% 50%, #111a24 0%, #0e1621 100%);
}

.tg-msg {
  background: #182533;
  border-radius: 12px;
  padding: 10px 12px;
  max-width: 90%;
  align-self: flex-start;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

.tg-msg-header {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.tg-msg-text {
  color: #f5f5f5;
  margin-bottom: 8px;
  line-height: 1.4;
}

.tg-inline-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.tg-btn {
  background: rgba(43, 82, 120, 0.4);
  color: #64b5ef;
  border: 1px solid rgba(43, 82, 120, 0.8);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}

.tg-btn:hover {
  background: rgba(43, 82, 120, 0.8);
  color: #fff;
}

/* Минимальная зона нажатия на телефоне — 44px по рекомендациям Apple/Google.
   На десктопе кнопки компактнее осознанно (курсор точнее пальца). */
@media (max-width: 760px) {
  .btn:not(.btn-sm):not(.btn-xs):not(.btn-lg):not(.btn-icon-only) {
    padding: 13px 20px;
  }

  .mobile-actions .btn {
    padding: 13px 20px;
    font-size: 0.95rem;
  }

  .modal-close {
    padding: 10px;
    line-height: 1;
  }

  .close-drawer-btn {
    padding: 10px;
    line-height: 1;
  }

  .btn-xs {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .tg-btn {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .lot-actions {
    flex-wrap: wrap;
  }
}

.tg-time {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  color: #6c7883;
}

.tg-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #17212b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tg-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
}

.floating-tg-preview-card {
  position: absolute;
  bottom: 20px;
  right: -50px;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
}

.tg-asset-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

.tg-card-caption {
  font-size: 0.68rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ==========================================================================
   Supported Platforms Section (#platforms)
   ========================================================================== */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-smooth);
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.platform-logo-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.bg-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.bg-emerald { background: rgba(16, 185, 129, 0.2); color: var(--text-emerald); }

.platform-url {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.platform-name {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.platform-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.platform-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.785rem;
  color: var(--text-emerald);
}

.platform-custom-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(13, 18, 25, 0.8) 100%);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  border-radius: 18px;
  gap: 24px;
  flex-wrap: wrap;
}

.banner-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.banner-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Interactive ROI / Profit Calculator (#calculator)
   ========================================================================== */

.calculator-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
}

.calc-sliders-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.slider-val {
  color: var(--text-emerald);
  font-weight: 700;
  font-size: 1.1rem;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-emerald);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-emerald);
  transition: transform 0.15s;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.725rem;
  color: var(--text-muted);
}

.result-card-glow {
  background: rgba(13, 18, 25, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.result-number {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 6px 0 8px;
}

.result-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-divider {
  height: 1px;
  background: var(--border-color);
  margin: 20px 0;
}

.calc-cta-wrapper {
  margin-top: 12px;
}

/* ==========================================================================
   How It Works — 4 Simple Steps (#how-it-works)
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  backdrop-filter: var(--glass-blur);
  transition: transform var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
}

.step-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-emerald);
  opacity: 0.4;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

/* ==========================================================================
   FAQ & Security Accordion (#faq)
   ========================================================================== */

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: rgba(16, 185, 129, 0.5);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-emerald);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Contact / Lead Form Section (#contact)
   ========================================================================== */

.contact-box-glow {
  background: linear-gradient(145deg, rgba(18, 25, 36, 0.9) 0%, rgba(13, 18, 25, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 28px;
  padding: 56px;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.9), 0 0 50px rgba(16, 185, 129, 0.15);
  max-width: 960px;
  margin: 0 auto;
}

.contact-form {
  margin-top: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.checkbox-group {
  display: flex;
  gap: 16px;
  align-items: center;
  height: 100%;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

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

.form-consent-row {
  margin-top: 20px;
}

.form-consent-row .checkbox-label {
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.form-consent-row .checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
}

.direct-tg-link {
  display: inline-block;
  margin-left: 8px;
  color: var(--text-emerald);
  font-weight: 600;
  transition: opacity var(--transition-fast);
}

.direct-tg-link:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: #05070a;
  border-top: 1px solid var(--border-color);
  padding: 72px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-size: 0.785rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.925rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Notification Toast & Modal
   ========================================================================== */

.notification-toast {
  position: fixed;
  bottom: 30px;
  right: -400px;
  width: 340px;
  background: var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-toast.show {
  right: 30px;
}

.toast-icon {
  font-size: 1.5rem;
}

.toast-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.toast-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
}

.modal-title { font-size: 0.9rem; font-weight: 700; }
.modal-close { font-size: 1.25rem; color: var(--text-secondary); }

.modal-body {
  padding: 24px;
}

.screenshot-mock-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.screenshot-lot-info {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

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

@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .telegram-grid { grid-template-columns: 1fr; }
  .calculator-box { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.25rem; }
  .hero-metrics { flex-direction: column; gap: 20px; padding: 24px; }
  .metric-divider { width: 40px; height: 1px; }
  .comparison-cards-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .contact-box-glow { padding: 32px 20px; }
  .floating-tg-preview-card { display: none; }
}
