:root {
  color-scheme: light;
  --bg: #0b0c0f;
  --bg-soft: #111319;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --panel: rgba(16, 18, 24, 0.92);
  --text: #f7f7f7;
  --muted: #b0b3ba;
  --accent: #ff7a00;
  --accent-2: #46c773;
  --danger: #ff6b6b;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", "Helvetica Neue", sans-serif;
  background: radial-gradient(circle at 18% 42%, rgba(255, 122, 0, 0.28), transparent 48%),
    radial-gradient(circle at 82% 30%, rgba(70, 199, 115, 0.18), transparent 46%),
    radial-gradient(circle at 78% 86%, rgba(90, 124, 255, 0.16), transparent 50%),
    linear-gradient(180deg, #0a0b0f 0%, #0b0d12 45%, #0a0b10 100%);
  color: var(--text);
  min-height: 100vh;
  scroll-behavior: smooth;
}

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

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.7;
}

.glow-left {
  background: radial-gradient(circle, rgba(255, 122, 0, 0.35), transparent 70%);
  top: -140px;
  left: -120px;
}

.glow-right {
  background: radial-gradient(circle, rgba(70, 199, 115, 0.4), transparent 70%);
  top: -180px;
  right: -140px;
}

.grid-dust {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.28;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 96px;
  display: grid;
  gap: 72px;
}

.page-centered {
  max-width: 980px;
  padding-top: 72px;
}

.hero-title {
  text-align: center;
  margin: 0 0 28px;
  width: min(1200px, 100%);
  max-width: 1200px;
  justify-self: center;
  padding: 0 24px;
  box-sizing: border-box;
}

.hero-title h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.08;
  white-space: nowrap;
}

.hero-title p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(12, 17, 27, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(90, 124, 255, 0.4));
}

.brand-name {
  font-size: 18px;
  text-transform: none;
  color: #dfe6fb;
}

.nav-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-select select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 6px;
  transition: color 0.2s ease;
}

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

.pill-button {
  padding: 10px 18px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #0b0c0f;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(12, 17, 27, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pill-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.pill-button:active {
  transform: translateY(0);
}

.button.wide {
  width: 100%;
}

.button.compact {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 10px;
}

.pill-button.outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.pill-button.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.oauth-status {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.oauth-status.ok {
  color: var(--accent);
}

.oauth-status.warn {
  color: var(--danger);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(90, 124, 255, 0.18);
  color: #d7def8;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: var(--border);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 18px 0 12px;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.hero-metrics div {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-metrics strong {
  font-size: 16px;
  margin-top: 6px;
  display: inline-block;
}

.hero-panel {
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.hero-panel .auth-card-hero {
  padding: 20px;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 22, 0.45);
}

.hero-panel .auth-card-hero .panel-header h3 {
  font-size: 18px;
}

.panel-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.panel-status-title {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-status-value {
  font-size: 20px;
  font-weight: 600;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.panel-row strong {
  color: var(--text);
  font-weight: 600;
}

.section {
  display: grid;
  gap: 28px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.compare-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: var(--border);
  display: grid;
  gap: 16px;
}

.compare-card.featured {
  background: linear-gradient(140deg, rgba(90, 124, 255, 0.22), rgba(75, 209, 160, 0.12));
  border: 1px solid rgba(90, 124, 255, 0.35);
}

.compare-card h3 {
  margin: 0;
  font-size: 22px;
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.compare-list li::before {
  content: "●";
  color: var(--accent);
  margin-right: 10px;
}

.compare-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.benefit-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: var(--border);
  box-shadow: var(--shadow-soft);
}

.benefit-card h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.dashboard-left,
.dashboard-right {
  display: grid;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.panel.auth-card {
  background: var(--panel);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.panel.auth-card .panel-header h3,
.panel.auth-card .panel-header p,
.panel.auth-card .hint {
  color: var(--text);
}

.panel.auth-card .hint {
  color: var(--muted);
}

.panel.auth-card .user-pill {
  background: rgba(6, 10, 22, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.panel.auth-card .button.primary {
  background: linear-gradient(135deg, #4bd1a0, #5a7cff);
  color: #0c111b;
  box-shadow: 0 16px 40px rgba(75, 209, 160, 0.3);
}

.panel.auth-card .button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel.auth-card .actions {
  flex-direction: column;
  align-items: stretch;
}

.panel.auth-card .actions .button {
  width: 100%;
}

.panel-header h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.panel-header p {
  margin: 0 0 16px;
  color: var(--muted);
}

.form-row {
  display: flex;
  gap: 12px;
}

.user-pill {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(6, 10, 22, 0.35);
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
}

input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 22, 0.5);
  color: var(--text);
  font-size: 14px;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.button {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button.disabled {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}

.button:active {
  transform: translateY(1px);
}

.primary {
  background: linear-gradient(135deg, #ff7a00, #ff9f2e);
  color: #111319;
  box-shadow: 0 16px 40px rgba(255, 122, 0, 0.35);
}

.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.danger {
  background: rgba(255, 107, 107, 0.18);
  color: #ffd7d7;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.center-card {
  display: flex;
  justify-content: center;
}

.main-card {
  width: min(880px, 100%);
  background: rgba(12, 13, 17, 0.94);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 28px 28px 20px;
  display: grid;
  gap: 30px;
}

.comparison-section {
  margin-top: 40px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff9f2e;
  border: 1px solid rgba(255, 122, 0, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 12px;
}

.comparison-section h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 3.6vw, 36px);
}

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 24px;
  text-align: left;
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
}

.comparison-left {
  display: grid;
  gap: 16px;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-label {
  font-style: italic;
  color: var(--muted);
}

.comparison-list {
  display: grid;
  gap: 10px;
}

.comparison-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.comparison-list strong {
  color: var(--text);
  font-weight: 600;
}

.comparison-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
  font-weight: 600;
}

.comparison-right {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.comparison-highlight {
  font-size: 28px;
  font-weight: 700;
}

.comparison-right p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.setup-demo {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.demo-window {
  width: min(900px, 100%);
  background: rgba(12, 13, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.demo-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.demo-title .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

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

.demo-url {
  margin-left: auto;
  opacity: 0.7;
}

.demo-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: 22px;
}

.demo-steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  opacity: 0.35;
}

.step.is-done {
  opacity: 0.8;
}

.step.is-active {
  opacity: 1;
}

.step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  font-size: 12px;
}

.step.is-done .step-icon {
  background: rgba(70, 199, 115, 0.2);
  border-color: rgba(70, 199, 115, 0.5);
  color: #66f0a1;
}

.step.is-active .step-icon {
  background: rgba(255, 122, 0, 0.25);
  border-color: rgba(255, 122, 0, 0.6);
  color: #ff9f2e;
}

.step-title {
  font-weight: 600;
  font-size: 14px;
}

.step-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.demo-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.demo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 20%, rgba(255, 122, 0, 0.18), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.demo-card-inner {
  width: 100%;
  background: rgba(12, 13, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.demo-panel {
  width: 100%;
  display: none;
  position: absolute;
  inset: 0;
  padding: 18px;
  align-items: center;
  justify-content: center;
}

.demo-panel.active {
  display: flex;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  width: 100%;
  align-content: center;
}

.panel-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  place-items: center;
  gap: 8px;
}

.panel-tile.active {
  border-color: rgba(255, 122, 0, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 122, 0, 0.25) inset;
}

.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
}

.tile-icon.telegram {
  background-image: url("/static/icons/telegram-filled.svg");
  background-color: rgba(0, 136, 204, 0.18);
}

.tile-icon.whatsapp {
  background-image: url("/static/icons/whatsapp.svg");
  background-color: rgba(37, 211, 102, 0.18);
}

.tile-icon.discord {
  background-image: url("/static/icons/discord.svg");
  background-color: rgba(88, 101, 242, 0.2);
}

.tile-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.panel-metrics {
  display: grid;
  gap: 14px;
  width: min(360px, 100%);
}

.metric-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.metric-mini {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.metric-title {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.metric-value {
  font-weight: 600;
}

.metric-value.accent {
  color: #ff9f2e;
}

.metric-value.success {
  color: #66f0a1;
}

.metric-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.metric-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #ff7a00, #ff9f2e);
  animation: barPulse 3s ease-in-out infinite;
}

.sync-panel {
  background: rgba(12, 13, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 14px;
  text-align: center;
  width: min(360px, 100%);
}

.sync-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sync-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 20px;
}

.sync-tile.active {
  border-color: rgba(255, 122, 0, 0.6);
  color: #ff9f2e;
}

.sync-arrow {
  color: var(--muted);
}

.demo-chip {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff9f2e;
  border: 1px solid rgba(255, 122, 0, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.demo-icon {
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.8;
}

.demo-name {
  font-size: 16px;
  font-weight: 600;
}

.demo-status {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #66f0a1;
}

.demo-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0 10px;
}

.demo-bar span {
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #46c773, #ff7a00);
  animation: barPulse 3s ease-in-out infinite;
}

.demo-sync {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

@keyframes barPulse {
  0% { width: 25%; }
  50% { width: 75%; }
  100% { width: 25%; }
}

.benefits-section {
  margin-top: 54px;
  text-align: center;
}

.benefits-section h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.2vw, 32px);
}

.benefits-section p {
  margin: 0 0 26px;
  color: var(--muted);
}

.marquee {
  display: grid;
  gap: 14px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-row {
  display: flex;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.marquee-track-group {
  display: flex;
  gap: 14px;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: marquee-left 26s linear infinite;
}

.marquee-track {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 0 0 auto;
}

.marquee-row.reverse .marquee-track-group {
  animation-name: marquee-right;
}

.marquee-row:hover .marquee-track-group {
  animation-play-state: paused;
}

.marquee-track span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (max-width: 900px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .comparison-left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
  }
  .comparison-right {
    padding-left: 0;
  }
  .demo-body {
    grid-template-columns: 1fr;
  }
}

.card-section h2 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}


.choice-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.choice-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.choice-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.choice-label {
  font-size: 14px;
  color: var(--text);
}

.choice-btn.active {
  border-color: rgba(255, 122, 0, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 122, 0, 0.25) inset;
}

.choice-btn:not(.active):not(.disabled):hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.choice-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.choice-btn .choice-note {
  display: inline;
  font-size: 11px;
  color: var(--muted);
  margin-left: 2px;
}

.auth-block {
  display: grid;
  gap: 12px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4bd1a0, #5a7cff);
  background-size: cover;
  background-position: center;
}

.user-meta {
  display: grid;
  gap: 2px;
  flex: 1;
}

.user-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-email {
  font-size: 12px;
  color: var(--muted);
}

.icon-link {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 12px;
}

.icon-link.compact {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.auth-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.control-hub {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(160deg, rgba(9, 13, 22, 0.82), rgba(15, 22, 38, 0.68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  display: grid;
  gap: 12px;
}

.control-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.control-hub-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(227, 236, 255, 0.9);
  text-transform: uppercase;
}

.control-hub-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.control-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 22, 0.4);
  padding: 10px 12px;
}

.control-card-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.control-card-value {
  font-size: 13px;
  color: rgba(232, 238, 255, 0.95);
}

.control-card-value-muted {
  color: rgba(198, 207, 228, 0.72);
}

.control-card-links {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-link {
  color: rgba(205, 215, 238, 0.72);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 12px;
}

.mini-link-btn {
  border: 0;
  background: transparent;
  color: rgba(205, 215, 238, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 12px;
  padding: 0;
  cursor: pointer;
}

.mini-link-btn:hover,
.mini-link:hover {
  color: rgba(235, 241, 255, 0.92);
}

.control-card-anim {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
}

.hub-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.hub-pulse span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4ad092, #6a8bff);
  box-shadow: 0 0 10px rgba(74, 208, 146, 0.35);
  animation: hub-pulse 1.4s ease-in-out infinite;
}

.hub-pulse span:nth-child(1) { animation-delay: 0s; }
.hub-pulse span:nth-child(2) { animation-delay: 0.2s; }
.hub-pulse span:nth-child(3) { animation-delay: 0.4s; }

.hub-anim-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(156, 255, 210, 0.9);
}

@keyframes hub-pulse {
  0%, 100% { transform: scale(0.75); opacity: 0.45; }
  50% { transform: scale(1.1); opacity: 1; }
}

.billing-panel {
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  gap: 6px;
}

.credit-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e7ecff;
  font-size: 12px;
  white-space: nowrap;
}

.billing-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.billing-actions input {
  flex: 1;
  width: 280px;
  max-width: 100%;
  min-width: 220px;
}

#topupBtn {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .control-hub-grid {
    grid-template-columns: 1fr;
  }
}

.auth-typing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: 34px;
  font-weight: 700;
}

.auth-typing-static {
  color: #f5f6fa;
}

.auth-typing-word {
  color: #ff9f2e;
}

.auth-typing-word {
  min-width: 0;
  display: inline-block;
  color: var(--text);
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  padding-right: 6px;
  margin-right: 2px;
}


.auth-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.auth-details p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.auth-pill {
  font-size: 12px;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.02em;
}

.auth-note .highlight {
  color: #ff9f2e;
  margin-left: 6px;
}

.auth-highlight {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 16px;
  row-gap: 6px;
  flex-wrap: wrap;
}

.auth-highlight .subtle,
.auth-highlight .highlight {
  margin: 0;
}

.deploy-limited {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #ff9f2e;
}

.button.google {
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px rgba(60, 64, 67, 0.15);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.google-btn-left {
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  align-self: flex-start;
  width: fit-content;
}

.google-btn-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}

.google-btn-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.google-btn-label {
  font-weight: 600;
  font-size: 13px;
}

.deploy-btn {
  font-size: 13px;
}

.subtle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.subtle.highlight {
  color: #ff9f2e;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.7);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(860px, 94vw);
  background: rgba(8, 9, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  z-index: 1;
  pointer-events: auto;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon {
  width: 26px;
  height: 26px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.modal-sub {
  margin: 18px 0 12px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.modal-steps {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.modal-steps {
  counter-reset: step;
}

.modal-steps li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.modal-steps li {
  line-height: 1.5;
}

.no-wrap {
  white-space: nowrap;
}
.modal-steps li::before {
  content: "";
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.modal-label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
  text-transform: none;
}

.modal-link {
  color: #4aa3ff;
  text-decoration: none;
}

.modal-link:hover {
  text-decoration: underline;
}

.modal-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 12px;
}

.modal-cta {
  margin-top: 20px;
  width: 100%;
  font-weight: 700;
}

.modal-left input#telegramTokenInput {
  width: 100%;
  font-size: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.modal-error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #ff8f8f;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(46, 204, 113, 0.18);
  color: #b9f6d2;
  border: 1px solid rgba(46, 204, 113, 0.35);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  z-index: 300;
}

.modal-right {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d8b98f, #f2d7a6);
  padding: 26px;
}

.modal-left {
  padding: 28px 28px 30px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(180deg, rgba(10, 12, 16, 0.96), rgba(8, 10, 14, 0.98));
  font-size: 14px;
}

.modal-right {
  padding: 28px;
}

.phone-placeholder {
  width: min(320px, 100%);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(180deg, rgba(24, 27, 35, 0.95), rgba(8, 10, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}

.phone-placeholder::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 70px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.phone-placeholder::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 60% 20%, rgba(120, 140, 255, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(16, 18, 26, 0.75), rgba(10, 12, 18, 0.92));
}

@media (max-width: 820px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-right {
    order: -1;
  }
}

.status-panel {
  display: grid;
  gap: 20px;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: var(--border);
}

.status-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-value {
  font-size: 18px;
  font-weight: 600;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.stat {
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  border-radius: 14px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  font-size: 14px;
  word-break: break-all;
}

.status-inline {
  color: var(--accent);
}

.timestamp {
  color: var(--muted);
  font-size: 12px;
}

.status-orb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4b5563;
  box-shadow: 0 0 0 6px rgba(75, 209, 160, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.status-orb.running {
  background: #4bd1a0;
  box-shadow: 0 0 0 8px rgba(75, 209, 160, 0.28);
}

.status-orb.error {
  background: var(--danger);
  box-shadow: 0 0 0 8px rgba(255, 107, 107, 0.3);
}

.cta {
  background: linear-gradient(120deg, rgba(90, 124, 255, 0.25), rgba(75, 209, 160, 0.2));
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.cta-content h2 {
  margin: 0 0 8px;
}

.cta-content p {
  margin: 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 104px 18px 72px;
  }

  .form-row {
    flex-direction: column;
  }

  .nav-inner {
    padding: 14px 18px;
  }

  .nav-buttons {
    width: 100%;
    justify-content: flex-end;
  }
}
