/* ============================================================
   KROMILLA BOTS — Design System
   Dark mode · Cyan accents · Premium tech aesthetic
   ============================================================ */

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

/* --- Custom Properties ------------------------------------- */
:root {
  /* Surfaces */
  --bg:           #0b0e14;
  --bg-raised:    #111620;
  --bg-panel:     #161c28;
  --bg-card:      #161c28;
  --bg-inset:     #1b2233;
  --bg-glass:     rgba(22, 28, 40, 0.65);

  /* Borders */
  --border:       #242d3d;
  --border-light: #2e3a4f;

  /* Text */
  --text:         #e8ecf4;
  --text-muted:   #8b95a8;
  --text-dim:     #5c6578;

  /* Accent */
  --cyan:         #3aa8d8;
  --cyan-glow:    rgba(58, 168, 216, 0.25);
  --cyan-soft:    rgba(58, 168, 216, 0.10);
  --cyan-dark:    #2a7fa6;

  /* Status */
  --green:        #34d399;
  --whatsapp:     #25D366;
  --amber:        #fbbf24;
  --red:          #f87171;

  /* Gradients */
  --grad-hero:    linear-gradient(135deg, #0b0e14 0%, #0f1923 40%, #111620 100%);
  --grad-card:    linear-gradient(145deg, var(--bg-panel) 0%, var(--bg-inset) 100%);
  --grad-cyan:    linear-gradient(135deg, #3aa8d8 0%, #2dd4bf 100%);
  --purple:       #a855f7;
  --grad-purple:  linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  --grad-glow:    radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), var(--cyan-glow) 0%, transparent 70%);

  /* Spacing */
  --wrap:         1200px;
  --gap:          clamp(1rem, 3vw, 2rem);
  --section-y:    clamp(4rem, 10vw, 8rem);

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.3);
  --shadow-md:  0 4px 12px rgba(0,0,0,.4);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.5);
  --shadow-glow: 0 0 30px var(--cyan-glow);

  /* Transitions */
  --ease:  cubic-bezier(.4, 0, .2, 1);
  --dur:   0.3s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: #5cc4ee; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* --- Utilities --------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

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

.mono { font-family: 'JetBrains Mono', monospace; }
.micro { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }

.icon {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.icon-solid {
  stroke: none !important;
  fill: currentColor;
}

.icon-solid path {
  stroke: none !important;
}

/* --- Animated background particles ------------------------- */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-particles .particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0%   { opacity: 0; transform: translateY(100vh) scale(0); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* --- Glow orbs --------------------------------------------- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb--hero {
  width: 600px; height: 600px;
  background: var(--cyan-glow);
  top: -200px; right: -200px;
  animation: pulse-orb 8s ease-in-out infinite alternate;
}

.glow-orb--left {
  width: 400px; height: 400px;
  background: rgba(45, 212, 191, 0.12);
  bottom: -100px; left: -150px;
  animation: pulse-orb 10s ease-in-out infinite alternate-reverse;
}

@keyframes pulse-orb {
  0%   { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.2); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.brand:hover { color: var(--cyan); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: var(--cyan-soft);
}

.nav a.active {
  color: var(--cyan);
  font-weight: 600;
  background: var(--cyan-soft);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--grad-cyan);
  color: #0b0e14;
  box-shadow: 0 2px 12px var(--cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--cyan-glow);
  color: #0b0e14;
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  color: #fff;
}

.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-whatsapp .icon { width: 20px; height: 20px; }

/* --- Mobile menu ------------------------------------------- */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}

.menu-btn:hover,
.menu-btn[aria-expanded="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  background: rgba(17, 22, 32, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.mobile-nav a {
  padding: 0.8rem 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: all var(--dur) var(--ease);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--cyan);
  padding-left: 0.75rem;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .mobile-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  font-weight: 700;
  text-align: center;
  border-radius: var(--r-md);
  border-bottom: none !important;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.mobile-nav .mobile-nav-cta:hover {
  filter: brightness(1.1);
  color: #ffffff !important;
  padding-left: 1rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(64px + var(--section-y));
  padding-bottom: var(--section-y);
  background: var(--grad-hero);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-copy h1 .highlight {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy .lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
}

.hero-stats .stat-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.hero-stats .stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

/* Hero visual — animated bot mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  width: 100%;
  max-width: 460px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.hero-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.hero-card .card-header .dot-group {
  display: flex;
  gap: 6px;
}

.hero-card .card-header .dot-group span {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.hero-card .card-header .dot-group span:nth-child(1) { background: var(--red); }
.hero-card .card-header .dot-group span:nth-child(2) { background: var(--amber); }
.hero-card .card-header .dot-group span:nth-child(3) { background: var(--green); }

.hero-card .card-header .card-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
}

.terminal-line .prompt { color: var(--cyan); font-weight: 600; flex-shrink: 0; }
.terminal-line .cmd { color: var(--text); }
.terminal-line .output { color: var(--green); }
.terminal-line .status { color: var(--amber); }

.typing-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--cyan);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Floating badges around hero card */
.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
  z-index: 5;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.float-badge:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.2);
  color: #fff;
}

.float-badge .badge-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

/* Explicit positions avoiding card overlap */
.float-badge--secure {
  top: 10%;
  right: -30px;
  animation-delay: 0s;
}

.float-badge--gaming {
  top: 55%;
  left: -45px;
  animation-delay: 2s;
}

.float-badge--discord {
  bottom: -15px;
  right: 25px;
  animation-delay: 4s;
}

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

/* ============================================================
   SECTIONS — Shared
   ============================================================ */
.section {
  position: relative;
  padding-block: var(--section-y);
  z-index: 1;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.sec-head {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.sec-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.sec-head .lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   MODULE CARDS (HOMEPAGE HUB)
   ============================================================ */
.module-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 980px) {
  .module-cards-grid {
    grid-template-columns: 1fr;
  }
}

.module-banner-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.module-banner-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-cyan);
  opacity: 0.9;
}

.module-banner-card.module--platform::before {
  background: var(--grad-purple);
}

.module-banner-card:hover {
  border-color: var(--border-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(58, 168, 216, 0.2);
}

.module-banner-card.module--platform:hover {
  box-shadow: var(--shadow-lg), 0 0 35px rgba(168, 85, 247, 0.25);
}

.module-banner-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(58, 168, 216, 0.1);
  border: 1px solid rgba(58, 168, 216, 0.3);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.module-banner-card.module--platform .module-banner-badge {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--purple);
}

.module-banner-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.module-banner-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.module-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.module-feature-tags span {
  padding: 0.35rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

.module-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: all var(--dur) var(--ease);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-cyan);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-tags span {
  padding: 0.25rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--dur) var(--ease);
}

.feature-item:hover {
  border-color: var(--border-light);
  background: var(--bg-panel);
}

.feature-item .fi-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.feature-item .fi-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--cyan);
  fill: none;
}

.feature-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   PRICING
/* Category tabs (Gaming vs Platform) */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.pricing-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}

.pricing-tab:hover {
  border-color: var(--border-light);
  color: var(--text);
  transform: translateY(-2px);
}

.pricing-tab.active {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 24px var(--cyan-glow);
}

.pricing-pane {
  display: none;
}

.pricing-pane.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

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

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
  max-width: 1140px;
  margin-inline: auto;
}

.plans-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
}

@media (max-width: 1120px) {
  .plans-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  .plans-grid--4 {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.plans-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1080px;
}

@media (max-width: 980px) {
  .plans-grid--3 {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }
}

.plan-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}

.plan-card.popular {
  border-color: var(--cyan);
  box-shadow: 0 0 40px var(--cyan-glow);
}

.plan-card.popular::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-cyan);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.85rem;
  background: var(--grad-cyan);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap !important;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.popular-tag--save {
  background: var(--bg-raised);
  color: var(--cyan);
  border: 1px solid rgba(58, 168, 216, 0.45);
}

.popular-tag--popular {
  background: var(--grad-cyan);
  color: #050b14;
  font-weight: 800;
  box-shadow: 0 0 16px var(--cyan-glow);
}

.popular-tag--best {
  background: var(--bg-raised);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.5);
}

.plan-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.plan-price .currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-price .amount {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.plan-price .period {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 500;
}

.plan-billed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.plan-billed strong {
  color: var(--cyan);
  font-weight: 700;
}

.pricing-trust-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.85rem 1.5rem;
  margin: 0 auto 2.5rem;
  max-width: 1040px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.trust-item strong {
  color: var(--text);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(58, 168, 216, 0.12);
  color: var(--cyan);
  flex-shrink: 0;
}

.trust-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

.plan-features {
  flex: 1;
  margin-bottom: 1.5rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-features li .check {
  width: 18px; height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 0.7rem;
}

.plan-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: all var(--dur) var(--ease);
}

.testimonial-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: var(--amber);
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cyan);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.faq-item.open {
  border-color: rgba(58, 168, 216, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--dur) var(--ease);
}

.faq-q:hover {
  color: var(--cyan);
}

.faq-item.open .faq-q {
  color: #fff;
}

.faq-q .faq-chevron,
.faq-q .chevron {
  width: 20px;
  height: 20px;
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
  color: var(--text-dim);
  fill: none !important;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-item.open .faq-chevron,
.faq-item.open .chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item.open .faq-a {
  max-height: 500px;
}

.faq-a-inner,
.faq-a p {
  padding: 0 1.5rem 1.35rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.cta-section {
  text-align: center;
  padding-block: var(--section-y);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 50% 50%, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.foot-brand .brand {
  font-size: 1.1rem;
}

.foot-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
}

.foot-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 1rem;
}

.foot-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.foot-col a:hover { color: var(--cyan); }

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.foot-socials {
  display: flex;
  gap: 1rem;
}

.foot-socials a {
  color: var(--text-dim);
  transition: color var(--dur) var(--ease);
}

.foot-socials a:hover { color: var(--cyan); }
.foot-socials a[aria-label="WhatsApp"]:hover { color: #25D366; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 4px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.lang-toggle button {
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}

.lang-toggle button.active {
  background: var(--cyan);
  color: var(--bg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .head-row {
    gap: 0.75rem;
  }
  .nav a {
    padding: 0.45rem 0.62rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 1060px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }

  .head-row {
    gap: 0.75rem;
  }

  .head-actions {
    margin-left: auto;
    gap: 0.6rem;
  }

  .mobile-nav[data-open] {
    display: flex;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-visual { margin-top: 1.5rem; max-width: 580px; margin-inline: auto; }
  .float-badge { display: none; }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .plans-grid--4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin-inline: auto;
  }

  .plans-grid--3 {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  .pricing-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding-inline: 1rem;
  }

  .head-row {
    height: 56px;
    gap: 0.5rem;
    justify-content: space-between;
  }

  .brand {
    font-size: 1rem;
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .brand img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .head-actions {
    margin-left: auto;
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .head-actions .btn {
    display: none !important;
  }

  .lang-toggle {
    padding: 2px;
    border-radius: var(--r-sm);
    flex-shrink: 0;
  }

  .lang-toggle button {
    padding: 0.22rem 0.45rem;
    font-size: 0.72rem;
  }

  .menu-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .hero {
    padding-top: calc(56px + 2rem) !important;
    padding-bottom: 2.75rem !important;
  }

  .hero-h1 {
    font-size: 2.15rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

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

  .plans-grid--4 {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .plan-card {
    padding: 1.6rem 1.25rem;
  }

  .pricing-tab {
    padding: 0.65rem 1.1rem;
    font-size: 0.84rem;
    width: 100%;
    justify-content: center;
  }

  .pricing-tabs {
    flex-direction: column;
    gap: 0.5rem;
    max-width: 380px;
    margin-inline: auto;
    margin-bottom: 2rem;
  }

  .plat-tabs {
    gap: 0.4rem;
    justify-content: center;
  }

  .plat-tab {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }

  .plat-card {
    padding: 1.5rem 1.25rem;
  }

  .plat-features-list {
    gap: 0.65rem;
  }

  .plat-actions {
    flex-direction: column;
    width: 100%;
  }

  .plat-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .module-banner-card {
    padding: 1.6rem 1.25rem;
  }

  .module-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .module-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .hero-h1 {
    font-size: 1.85rem;
  }

  .plan-price .amount {
    font-size: 2.2rem;
  }

  .plan-billed {
    font-size: 0.72rem;
    padding: 0.25rem 0.45rem;
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* Selection */
::selection {
  background: var(--cyan);
  color: var(--bg);
}


/* ============================================================
   AUTOMATIONS / GAME BOT FEATURES (TABS & 2-COL LIST)
   ============================================================ */
.automations-section {
  position: relative;
}

.auto-container {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.auto-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-cyan);
}

.auto-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.auto-tabs::-webkit-scrollbar {
  width: 4px;
}
.auto-tabs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.auto-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  user-select: none;
}

.auto-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.auto-tab.active {
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.35);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.08);
}

.auto-tab .auto-count {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}

.auto-tab.active .auto-count {
  color: var(--cyan);
  background: rgba(45, 212, 191, 0.18);
  font-weight: 700;
}

.auto-panels {
  min-height: 520px;
  padding-left: 0.5rem;
}

.auto-panel {
  display: none;
  animation: autoFadeIn 0.28s var(--ease);
}

.auto-panel.active {
  display: block;
}

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

.auto-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.auto-panel-head h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.auto-panel-count {
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  background: var(--cyan-soft);
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-sm);
  font-weight: 600;
}

.auto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 2rem;
}

.auto-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
  transition: color var(--dur) var(--ease);
}

.auto-item:hover {
  color: #fff;
}

.auto-check {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .auto-container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .auto-tabs {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }
  .auto-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .auto-panels {
    padding-left: 0;
  }
}

@media (max-width: 680px) {
  .auto-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ============================================================
   PLATFORM BOTS SECTION (Discord, Telegram, WhatsApp)
   ============================================================ */
.plat-section {
  position: relative;
}

.plat-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.plat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.plat-tab:hover {
  color: #fff;
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.plat-tab.active {
  color: #fff;
  background: var(--bg-inset);
}

.plat-tab[data-plat-tab="discord"].active {
  border-color: #5865F2;
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.25);
  color: #a5b4fc;
}

.plat-tab[data-plat-tab="telegram"].active {
  border-color: #229ED9;
  box-shadow: 0 0 25px rgba(34, 158, 217, 0.25);
  color: #7dd3fc;
}

.plat-tab[data-plat-tab="whatsapp"].active {
  border-color: #25D366;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.25);
  color: #86efac;
}

.plat-panel {
  display: none;
  animation: platFadeIn 0.35s ease;
}

.plat-panel.active {
  display: block;
}

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

.plat-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.plat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.plat-card--discord::before {
  background: linear-gradient(90deg, #5865F2, #818cf8);
}

.plat-card--telegram::before {
  background: linear-gradient(90deg, #229ED9, #38bdf8);
}

.plat-card--whatsapp::before {
  background: linear-gradient(90deg, #25D366, #34d399);
}

.plat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.plat-card--discord .plat-badge {
  background: rgba(88, 101, 242, 0.12);
  color: #818cf8;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.plat-card--telegram .plat-badge {
  background: rgba(34, 158, 217, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(34, 158, 217, 0.3);
}

.plat-card--whatsapp .plat-badge {
  background: rgba(37, 211, 102, 0.12);
  color: #34d399;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.plat-info h3 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.plat-info p.plat-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.plat-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plat-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.5;
}

.plat-feature-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(58, 168, 216, 0.15);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.plat-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.plat-terminal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83rem;
  position: relative;
}

.plat-terminal-box .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.plat-terminal-box .card-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.plat-terminal-box .term-row {
  margin-bottom: 0.55rem;
  line-height: 1.5;
}

.plat-terminal-box .term-row:last-child {
  margin-bottom: 0;
}

.plat-terminal-box .term-cmd {
  color: #fff;
  font-weight: 600;
}

.plat-terminal-box .term-prompt {
  color: var(--cyan);
  margin-right: 0.4rem;
}

.plat-terminal-box .term-ok {
  color: var(--green);
}

.plat-terminal-box .term-highlight {
  color: var(--amber);
}

.plat-terminal-box .term-info {
  color: var(--cyan);
}

.plat-terminal-box .term-dim {
  color: var(--text-dim);
}

@media (max-width: 980px) {
  .plat-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================================
   LEGAL PAGES (Terms & Privacy) & FOOTER LINKS
   ============================================================ */
/* Language switching for dual-language blocks */
html[data-lang="en"] .lang-es {
  display: none !important;
}
html[data-lang="es"] .lang-en {
  display: none !important;
}

.foot-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.foot-legal a {
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.foot-legal a:hover {
  color: var(--cyan);
}

.foot-sep {
  color: var(--border-light);
}

.legal-page {
  padding-top: 7rem;
  padding-bottom: 6rem;
  min-height: 100vh;
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.legal-back:hover {
  transform: translateX(-4px);
  color: #fff;
}

.legal-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #fff;
}

.legal-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: var(--cyan-soft);
  color: var(--cyan);
  border: 1px solid var(--cyan-dark);
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 5.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.legal-toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-toc-item a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
  line-height: 1.4;
}

.legal-toc-item a .toc-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 1.25rem;
}

.legal-toc-item a:hover {
  color: #fff;
  background: var(--bg-inset);
}

.legal-toc-item a:hover .toc-num {
  color: var(--cyan);
}

.legal-toc-item a.active {
  color: var(--cyan);
  background: var(--cyan-soft);
  font-weight: 600;
}

.legal-toc-item a.active .toc-num {
  color: var(--cyan);
}

.legal-content {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  line-height: 1.75;
  color: var(--text);
}

.legal-section {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: 6rem;
}

.legal-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.legal-section h2 .sec-num {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
}

.legal-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.legal-section ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.9rem;
}

.legal-callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-inset);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.9rem;
}

.legal-callout.warning {
  border-left-color: var(--amber);
  background: rgba(251, 191, 36, 0.05);
}

.legal-callout.danger {
  border-left-color: var(--red);
  background: rgba(248, 113, 113, 0.05);
}

.legal-callout h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .legal-sidebar {
    position: static;
  }
  .legal-toc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 600px) {
  .legal-toc-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BACK TO TOP & STICKY WHATSAPP SUPPORT WIDGET
   ============================================================ */
.back-to-top,
#back-to-top {
  position: fixed;
  bottom: 5.75rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-panel);
  color: var(--cyan);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  z-index: 90;
}

.back-to-top.visible,
#back-to-top.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0);
}

.back-to-top:hover,
#back-to-top:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: #fff;
  transform: translateY(-2px);
}

.wa-sticky-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.15rem 0.65rem 0.75rem;
  background: rgba(17, 22, 32, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(37, 211, 102, 0.2);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.wa-sticky-widget:hover {
  transform: translateY(-3px);
  border-color: #25D366;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 28px rgba(37, 211, 102, 0.38);
  color: #fff;
}

.wa-sticky-icon-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35);
}

.wa-sticky-icon-wrap svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.wa-online-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #34d399;
  border: 2px solid #111620;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.wa-sticky-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.wa-sticky-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
}

.wa-sticky-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .wa-sticky-widget {
    bottom: 1rem;
    right: 1rem;
    padding: 0.55rem 0.9rem 0.55rem 0.6rem;
    gap: 0.55rem;
  }

  .wa-sticky-icon-wrap {
    width: 36px;
    height: 36px;
  }

  .wa-sticky-icon-wrap svg {
    width: 19px;
    height: 19px;
  }

  .wa-sticky-status {
    font-size: 0.62rem;
  }

  .wa-sticky-label {
    font-size: 0.78rem;
  }

  .back-to-top,
  #back-to-top {
    bottom: 4.85rem;
    right: 1rem;
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   HOW IT WORKS (3 STEPS) + AUTO-PAUSE & ANTI-BAN BANNER
   ============================================================ */
.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  background: rgba(22, 28, 40, 0.78);
  border: 1px solid rgba(58, 168, 216, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.hero-trust-pill svg {
  width: 15px;
  height: 15px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.how-step-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.85rem;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  overflow: hidden;
}

.how-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-cyan);
  opacity: 0.65;
}

.how-step-card--highlight {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.12);
}

.how-step-card--highlight::before {
  background: linear-gradient(90deg, var(--green), var(--cyan));
  opacity: 1;
}

.how-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}

.how-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.how-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.how-step-card--highlight .how-step-num {
  color: var(--green);
}

.how-step-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--cyan-soft);
  color: var(--cyan);
  border: 1px solid rgba(58, 168, 216, 0.3);
}

.how-step-tag--green {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.35);
}

.how-step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.how-step-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.antiban-banner {
  background: linear-gradient(145deg, rgba(22, 28, 40, 0.95) 0%, rgba(17, 22, 32, 0.98) 100%);
  border: 1px solid rgba(58, 168, 216, 0.35);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(58, 168, 216, 0.12);
  position: relative;
  overflow: hidden;
}

.antiban-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.antiban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.antiban-title-wrap {
  max-width: 720px;
}

.antiban-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.antiban-badge svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.antiban-title-wrap h3 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.antiban-title-wrap p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.antiban-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.antiban-pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.15rem;
  background: rgba(11, 14, 20, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.antiban-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--cyan-soft);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.antiban-pillar-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.antiban-pillar h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.antiban-pillar p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 960px) {
  .how-steps-grid,
  .antiban-pillars {
    grid-template-columns: 1fr;
  }

  .antiban-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .hero-trust-pills {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .antiban-head .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   LORDS MOBILE COMMANDS PAGE & INTERACTIVE BUILDER
   ============================================================ */
.cmd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.cmd-breadcrumb a {
  color: var(--text-muted);
}

.cmd-breadcrumb a:hover {
  color: var(--cyan);
}

.cmd-builder-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(58, 168, 216, 0.12);
  position: relative;
  overflow: hidden;
}

.cmd-builder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-cyan);
}

.cmd-prefix-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cmd-prefix-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cmd-prefix-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.cmd-prefix-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cmd-prefix-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cmd-prefix-pills {
  display: inline-flex;
  gap: 0.35rem;
  background: var(--bg);
  padding: 0.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.cmd-prefix-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
}

.cmd-prefix-btn:hover {
  color: #fff;
  background: var(--bg-inset);
}

.cmd-prefix-btn.active {
  background: var(--cyan);
  color: var(--bg);
}

.cmd-prefix-custom input {
  width: 56px;
  height: 40px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
}

.cmd-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.cmd-mode-tab {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: all var(--dur) var(--ease);
}

.cmd-mode-tab:hover {
  color: #fff;
  border-color: var(--border-light);
}

.cmd-mode-tab.active {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 20px rgba(58, 168, 216, 0.15);
}

.cmd-builder-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2rem;
  align-items: stretch;
}

.cmd-bpanel {
  display: none;
  flex-direction: column;
  gap: 1.15rem;
}

.cmd-bpanel.active {
  display: flex;
}

.cmd-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cmd-multi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

.cmd-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cmd-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cmd-input,
.cmd-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.cmd-input:focus,
.cmd-select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}

.cmd-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.cmd-chip {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}

.cmd-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.cmd-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem 0;
}

.cmd-checkbox-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--cyan);
}

.cmd-output-box {
  height: 100%;
  background: var(--bg);
  border: 1px solid rgba(58, 168, 216, 0.35);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}

.cmd-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cmd-output-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: var(--cyan-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.cmd-output-channel {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.cmd-output-code-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  flex-wrap: wrap;
}

.cmd-output-code-wrap code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--green);
  word-break: break-all;
}

.cmd-output-preview {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

.cmd-preview-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cmd-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.cmd-preview-bot {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

/* Search & Filter Directory */
.cmd-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cmd-search-wrap {
  position: relative;
  max-width: 680px;
  width: 100%;
  margin-inline: auto;
}

.cmd-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--text-dim);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

.cmd-search-input {
  width: 100%;
  padding: 0.9rem 1.1rem 0.9rem 2.8rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.cmd-search-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}

.cmd-cat-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cmd-cat-pill,
.cmd-title-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}

.cmd-cat-pill:hover,
.cmd-title-pill:hover {
  color: #fff;
  border-color: var(--border-light);
}

.cmd-cat-pill.active,
.cmd-title-pill.active {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: #fff;
}

.cmd-cat-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
}

.cmd-results-meta {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
}

.cmd-table-container {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.cmd-table thead th {
  background: var(--bg-inset);
  padding: 0.95rem 1.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.cmd-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}

.cmd-table tbody tr:last-child {
  border-bottom: none;
}

.cmd-table tbody tr:hover {
  background: rgba(58, 168, 216, 0.04);
}

.cmd-table td {
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  vertical-align: middle;
  line-height: 1.5;
}

.cmd-code-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(58, 168, 216, 0.1);
  border: 1px solid rgba(58, 168, 216, 0.25);
  padding: 0.22rem 0.55rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.cmd-copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.68rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--green);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.cmd-copy-chip:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: #fff;
}

.cmd-copy-chip .copy-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.cmd-reply-cell {
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* 19 Kingdom Titles Grid */
.cmd-titles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.cmd-title-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.cmd-title-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
}

.cmd-title-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cmd-title-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.cmd-title-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.cmd-title-type--pos {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.cmd-title-type--neg {
  background: rgba(248, 113, 113, 0.12);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.cmd-title-effect {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cmd-title-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 960px) {
  .cmd-mode-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .cmd-builder-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cmd-multi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cmd-multi-grid .cmd-field-group:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .cmd-table-container {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .cmd-table thead {
    display: none;
  }

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

  .cmd-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .cmd-table tbody tr {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.1rem 1.15rem;
    box-shadow: var(--shadow-sm);
  }

  .cmd-table td {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .cmd-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .cmd-table td:first-child {
    padding-top: 0;
  }

  .cmd-table td::before {
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
  }

  .cmd-table .cmd-copy-chip {
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 680px) {
  .cmd-mode-tabs,
  .cmd-field-row {
    grid-template-columns: 1fr;
  }

  .cmd-builder-card {
    padding: 1.25rem 1rem;
  }

  .cmd-prefix-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding-bottom: 1.15rem;
    margin-bottom: 1.15rem;
  }

  .cmd-prefix-controls {
    width: 100%;
    justify-content: space-between;
  }

  .cmd-output-box {
    padding: 1.1rem;
  }

  .cmd-output-code-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .cmd-output-code-wrap code {
    font-size: 0.96rem;
    text-align: center;
    padding: 0.25rem 0;
  }

  .cmd-output-code-wrap .btn {
    width: 100%;
    justify-content: center;
  }

  .cmd-cat-pills {
    gap: 0.4rem;
  }

  .cmd-cat-pill,
  .cmd-title-pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }

  .cmd-results-meta {
    text-align: center;
  }

  .cmd-title-foot .cmd-copy-chip {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 400px) {
  .cmd-multi-grid {
    grid-template-columns: 1fr;
  }

  .cmd-prefix-btn {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}



