/* S-DARK TOOLS — showcase 3 productos + panel Xiaomi */

:root {
  --bg: #050508;
  --surface: #0c0b12;
  --card: #110f18;
  --line: rgba(154, 54, 255, 0.22);
  --purple: #9a36ff;
  --purple-dim: #59327d;
  --cyan: #29d6ef;
  --green: #4ade80;
  --gold: #fbbf24;
  --text: #f4f3fa;
  --muted: #8b8499;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --mono: Consolas, "JetBrains Mono", monospace;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.u-hide { display: none !important; }

.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgba(154, 54, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 55% 40% at 85% 10%, rgba(41, 214, 239, 0.14), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(97, 36, 216, 0.2), transparent 45%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

.page-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* —— Header —— */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid rgba(48, 32, 63, 0.8);
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand.compact { flex: 1; justify-content: center; }
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--purple-dim);
  padding: 4px;
  background: #0a0a0f;
}
.brand-logo.sm { width: 36px; height: 36px; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.brand-text { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; }
.brand-text em { font-style: normal; color: var(--purple); font-weight: 800; }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-link {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(154, 54, 255, 0.12);
}
.nav-link.nav-tg:hover { color: #7dd3fc; }

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-select-wrap {
  flex-shrink: 0;
  margin: 0;
}
.lang-select {
  appearance: none;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  padding: 7px 28px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(89, 50, 125, 0.55);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%238b8499' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E")
    no-repeat right 6px center / 16px,
    rgba(17, 15, 24, 0.85);
  cursor: pointer;
  max-width: 118px;
}
.lang-select:hover { border-color: rgba(154, 54, 255, 0.45); }
.lang-select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(154, 54, 255, 0.25);
}
.lang-select-wrap-panel .lang-select { max-width: 104px; }

.topbar-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .topbar-end {
    flex: 1 1 100%;
    justify-content: center;
    order: 4;
    padding-top: 6px;
  }
  .lang-select { max-width: min(140px, 42vw); }
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: rgba(15, 17, 24, 0.9);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.status-pill.on {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.08);
  color: #bbf7d0;
}
.lamp {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #475569;
}
.lamp.on {
  background: var(--green);
  box-shadow: 0 0 10px var(--green), 0 0 22px rgba(74, 222, 128, 0.45);
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.65; transform: scale(0.9); } }

.btn-primary {
  border: none;
  border-radius: 11px;
  padding: 11px 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #6d28d9, var(--purple) 45%, #a855f7);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
  transition: transform 0.15s, filter 0.15s;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary.sm { padding: 9px 16px; font-size: 12px; }
.btn-primary.full { width: 100%; margin-top: 4px; }
.btn-primary.ghost {
  background: transparent;
  border: 1px solid rgba(154, 54, 255, 0.35);
  color: var(--muted);
  box-shadow: none;
}
.btn-back {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
}
.btn-back:hover { color: var(--cyan); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-reseller {
  padding: 9px 16px;
  border-radius: 11px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(234, 88, 12, 0.08));
  color: #fcd34d;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.btn-reseller:hover {
  transform: translateY(-1px);
  border-color: rgba(251, 191, 36, 0.75);
}
.btn-reseller.sm {
  padding: 8px 14px;
  font-size: 10px;
}

/* —— Showcase —— */
.showcase {
  flex: 1;
  padding: clamp(32px, 6vw, 56px) clamp(16px, 4vw, 40px) 40px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
/* —— Hero (landing principal) —— */
.hero {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 36px);
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(24px, 3vw, 48px);
  }
}
.hero-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #c084fc, var(--purple) 40%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px;
  max-width: 54ch;
}
.hero-detail {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(89, 50, 125, 0.4);
  background: rgba(17, 15, 24, 0.55);
}
.hero-detail-tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4b5fd;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(154, 54, 255, 0.12);
}
.hero-detail:nth-child(2) .hero-detail-tag {
  color: #67e8f9;
  background: rgba(41, 214, 239, 0.1);
}
.hero-detail:nth-child(3) .hero-detail-tag {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
}
.hero-detail-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.hero-detail-text strong { color: #c4bdcf; font-weight: 600; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-btn {
  padding: 12px 22px;
  font-size: 14px;
}
.hero-btn-outline {
  border: 1px solid rgba(154, 54, 255, 0.45);
}
.hero-visual {
  position: relative;
  min-height: 220px;
}
.hero-watermark {
  position: absolute;
  inset: 10% 5% 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}
.hero-watermark img {
  width: min(280px, 70%);
  opacity: 0.06;
  filter: saturate(1.15);
  mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, black 15%, transparent 70%);
}
.hero-mockup {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(154, 54, 255, 0.35);
  background: rgba(8, 7, 12, 0.6);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(154, 54, 255, 0.12);
}
.hero-mockup img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.hero-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: min(240px, 46vw);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(89, 50, 125, 0.55);
  background: rgba(17, 15, 24, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-family: var(--font);
  text-align: left;
  color: var(--text);
}
button.hero-float {
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
button.hero-float:hover {
  border-color: rgba(154, 54, 255, 0.65);
  transform: translateY(-2px);
}
.hero-float-tr { top: 8%; right: -4%; }
.hero-float-bl { bottom: 6%; left: -4%; }
@media (max-width: 959px) {
  .hero-float-tr { right: 0; top: 4%; }
  .hero-float-bl { left: 0; bottom: 0; }
}
.hero-float.is-on { border-color: rgba(74, 222, 128, 0.35); }
.hero-float.is-off { border-color: rgba(248, 113, 113, 0.35); }
.hero-float-ico {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(154, 54, 255, 0.15) center/20px no-repeat;
}
.hero-float-ico-check {
  background-color: rgba(251, 191, 36, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fbbf24' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}
.hero-float.is-on .hero-float-ico-check {
  background-color: rgba(74, 222, 128, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%234ade80' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}
.hero-float-ico-shield {
  background-color: rgba(41, 214, 239, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2329d6ef' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/%3E%3C/svg%3E");
}
.hero-float-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-float-title {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}
.hero-float-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

.hero-ribbon {
  list-style: none;
  margin: 0 0 clamp(36px, 5vw, 48px);
  padding: 14px clamp(12px, 3vw, 22px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
  border-radius: 16px;
  border: 1px solid rgba(89, 50, 125, 0.45);
  background: rgba(17, 15, 24, 0.65);
}
.hero-ribbon li {
  font-size: 11px;
  font-weight: 700;
  color: #c4b5fd;
  padding: 4px 10px 4px 22px;
  position: relative;
  white-space: nowrap;
}
.hero-ribbon li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fbbf24' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hero-ribbon-emoji li {
  padding: 4px 10px;
}
.hero-ribbon-emoji li::before {
  display: none;
}

.services-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto clamp(28px, 4vw, 36px);
}
.services-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fdba74;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.25);
}
.services-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.services-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.tools-grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 960px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}
@media (min-width: 1280px) {
  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(89, 50, 125, 0.45);
  background: linear-gradient(165deg, rgba(22, 16, 32, 0.95) 0%, rgba(8, 7, 12, 0.98) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  opacity: 0.85;
}
.tool-card[data-accent="cyan"]::before {
  background: linear-gradient(90deg, var(--cyan), #22d3ee);
}
.tool-card[data-accent="stealth"]::before {
  background: linear-gradient(90deg, #52525b, #a1a1aa 40%, #52525b);
}
.tool-card[data-accent="dns"]::before {
  background: linear-gradient(90deg, #059669, #22d3ee);
}
.tool-badge.dns {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}
.tool-preview[data-accent="dns"] {
  box-shadow: 0 20px 50px rgba(5, 150, 105, 0.22);
}
.dns-pcs-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.dns-pcs-list .muted {
  list-style: none;
  margin-left: -1.1rem;
}
.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(154, 54, 255, 0.65);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(154, 54, 255, 0.15);
}
.tool-card.featured {
  border-color: rgba(41, 214, 239, 0.35);
  background: linear-gradient(165deg, rgba(12, 24, 32, 0.95) 0%, rgba(8, 7, 12, 0.98) 100%);
}
.tool-card.featured:hover { border-color: rgba(41, 214, 239, 0.55); }

.tool-badge {
  align-self: flex-start;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(154, 54, 255, 0.12);
  color: #d8b4fe;
  margin-bottom: 12px;
}
.tool-badge.hot {
  background: rgba(41, 214, 239, 0.12);
  color: #67e8f9;
}
.tool-badge.stealth {
  background: rgba(113, 113, 122, 0.2);
  color: #d4d4d8;
}
.tool-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tool-tag {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
}
.tool-desc {
  margin: 0 0 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(72, 56, 96, 0.45);
  font-size: 12px;
  line-height: 1.45;
  color: #a9a4bc;
}
.tool-desc strong {
  color: #e8e6f0;
  font-weight: 600;
}

/* —— Vista previa real (captura Windows) —— */
.tool-preview {
  flex: 1;
  margin: 0 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(48, 35, 63, 0.9);
  background: #070808;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.45);
  transform: perspective(800px) rotateX(2deg);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tool-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  object-position: center center;
  vertical-align: middle;
  background: #070808;
}
.tool-card:hover .tool-preview {
  transform: perspective(800px) rotateX(0deg) scale(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 50px rgba(0, 0, 0, 0.55);
}
.tool-preview[data-accent="cyan"] {
  border-color: rgba(41, 214, 239, 0.25);
}
.tool-preview[data-accent="stealth"] {
  border-color: rgba(113, 113, 122, 0.45);
}

.modal-tool-preview {
  margin: 0 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(72, 56, 96, 0.55);
  overflow: hidden;
  background: #0a0a0c;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.modal-tool-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center center;
  background: #070808;
}

/* —— Miniaturas app (CSS puro, legacy) —— */
.mini {
  flex: 1;
  border-radius: 14px;
  border: 1px solid rgba(48, 35, 63, 0.9);
  background: #070808;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: perspective(800px) rotateX(2deg);
  transition: transform 0.3s;
}
.tool-card:hover .mini { transform: perspective(800px) rotateX(0deg) scale(1.02); }

.mini-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #121019;
  border-bottom: 1px solid #292034;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6e657e;
}
.mini-chrome.dark { background: #0a0a0c; }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3f3f46;
}
.dot:nth-child(1) { background: #ef4444; opacity: 0.7; }
.dot:nth-child(2) { background: #eab308; opacity: 0.7; }
.dot:nth-child(3) { background: #22c55e; opacity: 0.7; }
.mini-win-title { flex: 1; text-align: center; font-size: 7px; opacity: 0.9; }
.mini-logo { width: 14px; height: 14px; object-fit: contain; }
.mini-pill {
  font-size: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(41, 214, 239, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(41, 214, 239, 0.3);
}
.mini-lock, .eye { font-size: 10px; color: #71717a; }
.eye { color: #a1a1aa; }

.mini-layout {
  display: grid;
  grid-template-columns: 4px 52px 1fr;
  min-height: 118px;
}
.mini-layout.no-rail { grid-template-columns: 72px 1fr; }
.mini-layout.single-pane { grid-template-columns: 1fr; min-height: 100px; }
.mini-pane.blurred { filter: blur(0.3px); opacity: 0.92; }
.mini-obscure { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.mini-obscure span {
  height: 6px;
  border-radius: 3px;
  background: #27272a;
  width: 88%;
}
.mini-obscure span:nth-child(2) { width: 62%; opacity: 0.7; }
.mini-obscure span:nth-child(3) { width: 74%; opacity: 0.5; }
.mini-shield {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #71717a;
  text-align: center;
  padding: 6px;
  border: 1px dashed #3f3f46;
  border-radius: 6px;
}
.mini-rail {
  background: linear-gradient(180deg, var(--purple), #6124d8 60%, var(--cyan));
}
.mini-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 6px;
  background: #0c0b10;
  border-right: 1px solid #292034;
}
.mini-nav span {
  height: 6px;
  border-radius: 3px;
  background: #1f1a28;
}
.mini-nav span.active { background: linear-gradient(90deg, var(--purple), #7c3aed); width: 85%; }
.mini-nav.wide { padding: 8px; gap: 6px; }
.mini-nav.stealth span.active { background: #52525b; }

.mini-card-sel {
  font-size: 6px;
  font-weight: 700;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--purple-dim);
  color: #e9d5ff;
  background: #15101f;
}
.mini-card-dim {
  font-size: 6px;
  padding: 5px 6px;
  border-radius: 5px;
  background: #1a1f2a;
  color: #64748b;
  opacity: 0.8;
}

.mini-pane { padding: 10px 10px 8px; background: #100d17; }
.mini-h {
  height: 8px;
  width: 55%;
  border-radius: 4px;
  background: linear-gradient(90deg, #f4f3fa, #6e657e);
  opacity: 0.35;
  margin-bottom: 10px;
}
.mini-h.short { width: 40%; margin-bottom: 8px; }
.mini-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mini-row i {
  display: block;
  width: 36px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--purple-dim);
  background: #15101f;
}
.mini-log-lines { display: flex; flex-direction: column; gap: 4px; }
.mini-log-lines span {
  display: block;
  height: 5px;
  border-radius: 2px;
  background: rgba(41, 214, 239, 0.25);
  width: 90%;
}
.mini-log-lines span.dim { width: 60%; opacity: 0.4; }

.mini-chips {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.mini-chips i {
  font-style: normal;
  font-size: 6px;
  font-weight: 700;
  padding: 3px 5px;
  border-radius: 4px;
  background: #222;
  color: #a1a1aa;
}
.mini-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mini-matrix span {
  height: 14px;
  border-radius: 4px;
  background: #18181b;
  border: 1px solid #27272a;
}

.mini-log {
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 7px;
  color: #64748b;
  background: #0b0a0f;
  border-top: 1px solid #292034;
}
.mini-log .ok { color: #b76cff; font-weight: 700; margin-right: 4px; }
.mini-log.dim { color: #3f3f46; letter-spacing: 0.2em; }

.tool-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.tool-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  color: #042028;
  background: linear-gradient(135deg, var(--cyan), #0ea5e9);
  box-shadow: 0 8px 28px rgba(41, 214, 239, 0.25);
  transition: filter 0.15s, transform 0.15s;
}
.tool-download:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.tool-cta.violet {
  border-color: rgba(154, 54, 255, 0.55);
  color: #e9d5ff;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.35), rgba(154, 54, 255, 0.2));
}
.tool-download.violet {
  color: #f5f3ff;
  background: linear-gradient(135deg, #6d28d9, var(--purple));
  box-shadow: 0 8px 28px rgba(154, 54, 255, 0.28);
}
.tool-download.stealth {
  color: #f4f4f5;
  background: linear-gradient(135deg, #3f3f46, #52525b);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(161, 161, 170, 0.35);
}

.tool-card[data-accent="cyan"] .tool-cta {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: #042028;
}

.panel-download {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #042028;
  background: linear-gradient(135deg, var(--cyan), #0ea5e9);
}
.panel-download:hover { filter: brightness(1.08); }

.tool-cta {
  width: 100%;
  padding: 12px;
  border-radius: 11px;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #6d28d9, var(--purple));
  transition: filter 0.15s;
}
.tool-cta:hover { filter: brightness(1.1); }
.tool-cta.ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(154, 54, 255, 0.35);
  color: #d8b4fe;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 22px 16px 28px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(48, 32, 63, 0.6);
}
.foot .sep { opacity: 0.4; }
.foot-link {
  color: #7dd3fc;
  text-decoration: none;
}
.foot-link:hover { text-decoration: underline; }

.community-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(32px, 5vw, 48px);
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.35), rgba(15, 10, 28, 0.6));
}
.community-band h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}
.community-band p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.community-tg { white-space: nowrap; }

.how-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.how-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(48, 35, 63, 0.9);
  background: rgba(12, 10, 18, 0.65);
}
.how-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
}
.how-steps h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #e8e6f0;
}
.how-steps p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.modal-note-left {
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.modal-note-left a {
  color: #7dd3fc;
  font-weight: 600;
}

/* —— Panel —— */
.dash {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 40px) 56px;
  width: 100%;
}
.dash-hero h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; }
.dash-hero p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.dash-about {
  max-width: 640px;
  margin: 0 0 20px !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #b8b4c8 !important;
}
.dash-about strong { color: #e8e6f0; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .metrics { grid-template-columns: 1fr 1fr; } }
.metric {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(48, 35, 63, 0.8);
  background: var(--card);
}
.metric.hero-metric {
  grid-column: 1 / -1;
  border-color: rgba(154, 54, 255, 0.45);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.15), var(--card));
}
.metric span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.metric strong { font-size: 28px; color: var(--cyan); font-weight: 800; }
.metric strong.txt { font-size: 13px; color: var(--text); font-weight: 600; }

.console-block header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.console-block h2 { margin: 0; font-size: 18px; font-weight: 700; }
.console-block .hint { font-size: 12px; color: var(--muted); }
.table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(48, 35, 63, 0.9);
  overflow: auto;
  background: #0b0a0f;
}
table { width: 100%; border-collapse: collapse; font-size: 12px; font-family: var(--mono); }
th {
  text-align: left;
  padding: 12px 14px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid #292034;
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(41, 33, 52, 0.8);
  color: #cbd5e1;
}
tr:last-child td { border-bottom: none; }
.empty { text-align: center; color: var(--muted); padding: 28px !important; font-family: var(--font); }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}
.tag.ok { background: rgba(74, 222, 128, 0.12); color: #86efac; }

/* —— Modals —— */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}
.modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 32px 28px 28px;
  border-radius: 22px;
  border: 1px solid rgba(89, 50, 125, 0.5);
  background: linear-gradient(180deg, #14101c, #0a090f);
  box-shadow: var(--shadow);
}
.modal-lg { max-width: 460px; }
.modal-xl { max-width: 520px; }
.modal-scroll {
  max-height: min(88vh, 720px);
  overflow-y: auto;
}
.feature-blocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 12px;
  text-align: left;
}
.feature-blocks section {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(154, 54, 255, 0.22);
  background: rgba(17, 15, 24, 0.85);
}
.feature-blocks h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #c4b5fd;
  text-transform: uppercase;
}
.feature-blocks p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.feature-blocks strong { color: var(--text); font-weight: 600; }
.modal-note {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.modal-foot-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.modal-foot-stack .guide-link {
  font-size: 12px;
  color: #a78bfa;
  text-align: center;
  text-decoration: none;
}
.modal-foot-stack .guide-link:hover { text-decoration: underline; }

.guide-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px) 48px;
}
.guide-page .guide-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.guide-page .guide-top a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.guide-page .guide-top a:hover { color: var(--cyan); }
.guide-page h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
}
.guide-page .guide-tag {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}
.guide-page .feature-blocks { margin-top: 0; }
.guide-page .guide-hint {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(154, 54, 255, 0.35);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 16px;
  border: 2px solid var(--purple-dim);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
}
.modal-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.modal-icon.ring { border-color: #7c3aed; }
.modal-icon.stealth-ring {
  border-color: #52525b;
  font-size: 28px;
  color: #a1a1aa;
}
.modal h2 { text-align: center; margin: 0; font-size: 22px; font-weight: 800; }
.modal-lead { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 20px; }
.modal label {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}
.modal input {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #292034;
  background: #070808;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
}
.form-err { color: #fca5a5; font-size: 13px; text-align: center; margin: 0 0 8px; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.auth-tab {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #292034;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.auth-tab.active {
  border-color: rgba(154, 54, 255, 0.55);
  color: var(--text);
  background: rgba(124, 58, 237, 0.15);
}
.auth-forgot {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #c4b5fd;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.auth-hint {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 10px;
  text-align: center;
}
.credits-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
}
.credits-alert p {
  margin: 0;
  font-size: 13px;
  color: #fde68a;
}
.feature-list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.feature-list b { color: var(--cyan); font-weight: 600; }
.modal-foot {
  margin: 18px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}
.modal-foot code {
  font-family: var(--mono);
  font-size: 11px;
  color: #c4b5fd;
}
.modal-foot.muted { color: #52525b; }

.link-inline {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--cyan);
  text-decoration: underline;
  cursor: pointer;
}
.link-inline:hover { color: #67e8f9; }

.modal-title-block {
  text-align: center;
  margin-bottom: 16px;
  padding-right: 28px;
}
.modal-title-block h2 { margin: 0 0 6px; }
.modal-title-block .modal-lead { margin: 0; }
.modal-body-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.modal-body-text.modal-body-left {
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.modal-body-text strong { color: #c4bdcf; }
.ghost-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(154, 54, 255, 0.4);
  box-shadow: none !important;
}

.overlay-window { align-items: flex-start; padding: clamp(12px, 3vh, 28px) 16px; overflow-y: auto; }
.reseller-window {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(89, 50, 125, 0.55);
  background: linear-gradient(180deg, #14101c 0%, #0a090f 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.reseller-window-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 12px;
  border-bottom: 1px solid rgba(48, 35, 63, 0.8);
}
.reseller-window-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}
.reseller-window-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 28em;
}
.reseller-window-head .modal-close { position: static; flex-shrink: 0; }
.reseller-search-wrap { padding: 12px 22px 8px; }
.reseller-search-wrap input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid #292034;
  background: #070808;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}
.reseller-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reseller-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(48, 35, 63, 0.9);
  background: rgba(17, 15, 24, 0.95);
  transition: border-color 0.2s;
}
.reseller-card:hover { border-color: rgba(154, 54, 255, 0.45); }
.reseller-card.featured {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.06), rgba(17, 15, 24, 0.98));
}
.reseller-card-logo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #3f3f46;
  background: #0a0a0c;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reseller-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.reseller-initial {
  font-size: 28px;
  font-weight: 800;
  color: var(--purple);
}
.reseller-card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}
.reseller-line {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 4px;
  word-break: break-all;
}
.reseller-line:hover { color: var(--cyan); }
.reseller-line.wa { color: #86efac; }
.reseller-line.mail { color: #c4b5fd; font-size: 12px; }
.reseller-empty {
  text-align: center;
  color: var(--muted);
  padding: 32px 12px;
  font-size: 14px;
}
.reseller-window-foot {
  margin: 0;
  padding: 12px 22px 18px;
  font-size: 11px;
  color: #52525b;
  text-align: center;
  border-top: 1px solid rgba(48, 35, 63, 0.6);
}
.btn-ghost {
  border: 1px solid rgba(154, 54, 255, 0.35);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 11px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-ghost.sm { padding: 8px 12px; font-size: 10px; }
.btn-ghost:hover { border-color: var(--violet); color: var(--cyan); }

.status-rail {
  position: fixed;
  top: 88px;
  right: 12px;
  z-index: 30;
  width: 200px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(12, 10, 18, 0.92);
  border: 1px solid rgba(48, 35, 63, 0.9);
  backdrop-filter: blur(8px);
}
.status-rail-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet);
  margin: 0 0 10px;
}
.status-rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.status-rail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.status-rail-item.on .status-rail-tag { color: #3ddc84; }
.status-rail-item.off .status-rail-tag { color: #f87171; }
.status-rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-rail-item.on .status-rail-dot { background: #3ddc84; box-shadow: 0 0 8px rgba(61, 220, 132, 0.5); }
.status-rail-item.off .status-rail-dot { background: #f87171; }
.status-rail-item span:nth-child(2) { flex: 1; }
.status-rail-tag { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.status-rail-tg {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  text-align: center;
}
.status-rail-tg:hover { text-decoration: underline; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 8px;
}
.status-card {
  position: relative;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(48, 35, 63, 0.8);
  background: rgba(0, 0, 0, 0.25);
}
.status-card.on { border-color: rgba(61, 220, 132, 0.35); }
.status-card.off { border-color: rgba(248, 113, 113, 0.25); }
.status-card h3 { margin: 8px 0 4px; font-size: 16px; }
.status-card p { margin: 0; font-size: 12px; color: var(--muted); }
.status-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.status-card.on .status-card-badge { background: rgba(61, 220, 132, 0.15); color: #3ddc84; }
.status-card.off .status-card-badge { background: rgba(248, 113, 113, 0.15); color: #f87171; }

.channel-promo {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 720px;
  width: calc(100% - 32px);
  margin: auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(154, 54, 255, 0.4);
  background: linear-gradient(135deg, #1a1028 0%, #0c0a12 55%, #101018 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}
.channel-promo-status {
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.channel-promo-status-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet);
  margin: 0 0 12px;
}
.channel-promo-main { padding: 28px 26px 24px; }
.channel-promo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}
.channel-promo-brand em { color: var(--violet); font-style: normal; }
.channel-promo h2 { margin: 0 0 8px; font-size: 22px; }
.channel-promo-lead { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 18px; }
.channel-promo-actions { display: flex; flex-direction: column; gap: 10px; }
.channel-promo-foot { margin: 14px 0 0; font-size: 11px; color: #52525b; }
.reseller-line.tg { color: #7dd3fc; }
.reseller-badge {
  margin: 8px 0 0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--violet);
  letter-spacing: 0.06em;
}

.page-section {
  margin-top: 56px;
  padding: 28px clamp(16px, 4vw, 40px);
  border-radius: 20px;
  border: 1px solid rgba(48, 35, 63, 0.65);
  background: rgba(8, 7, 12, 0.55);
}
.page-section-head { text-align: center; margin-bottom: 24px; }
.page-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
}
.page-section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.page-section-meta {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  color: #52525b;
}
.page-reseller-search { max-width: 420px; margin: 0 auto 24px; }

.reseller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.reseller-tile {
  position: relative;
  text-align: center;
  padding: 24px 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(48, 35, 63, 0.9);
  background: rgba(12, 10, 18, 0.85);
  transition: border-color 0.2s, transform 0.15s;
}
.reseller-tile:hover {
  border-color: rgba(154, 54, 255, 0.45);
  transform: translateY(-2px);
}
.reseller-tile.featured {
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.reseller-tile-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
  white-space: nowrap;
}
.reseller-tile-logo {
  width: 88px;
  height: 88px;
  margin: 20px auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(154, 54, 255, 0.35);
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reseller-tile-logo img { width: 100%; height: 100%; object-fit: cover; }
.reseller-tile h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.reseller-tile-role {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}
.reseller-tile-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.reseller-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(48, 35, 63, 0.9);
  background: rgba(0, 0, 0, 0.25);
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.reseller-icon-btn:hover { border-color: rgba(154, 54, 255, 0.5); color: var(--text); }
.reseller-icon-btn.wa:hover { border-color: rgba(134, 239, 172, 0.45); color: #86efac; }
.reseller-icon-btn.tg:hover { border-color: rgba(125, 211, 252, 0.45); color: #7dd3fc; }
.reseller-icon-glyph {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.05);
}
.reseller-icon-btn.web .reseller-icon-glyph::before { content: "🌐"; font-size: 16px; }
.reseller-icon-btn.wa .reseller-icon-glyph::before { content: "💬"; }
.reseller-icon-btn.tg .reseller-icon-glyph::before { content: "✈️"; font-size: 15px; }
.reseller-icon-btn.mail .reseller-icon-glyph::before { content: "✉️"; font-size: 15px; }

/* —— Welcome overlay (Buy Credits — tema S-DARK) —— */
.overlay-welcome .overlay-bg {
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(12px);
}
.welcome-glow-frame {
  position: relative;
  max-width: 720px;
  width: calc(100% - 28px);
  margin: auto;
  padding: 2px;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(154, 54, 255, 0.75),
    rgba(41, 214, 239, 0.35) 45%,
    rgba(168, 85, 247, 0.55)
  );
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(154, 54, 255, 0.2);
}
.welcome-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, #1a1028 0%, var(--card) 42%, #0a090f 100%);
  border: 1px solid rgba(89, 50, 125, 0.55);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.welcome-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}
.welcome-watermark img {
  width: min(340px, 72vw);
  max-height: 55%;
  object-fit: contain;
  opacity: 0.07;
  filter: saturate(1.2) blur(0.2px);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, black 20%, transparent 72%);
}
.welcome-card-content {
  position: relative;
  z-index: 1;
  padding: 22px 24px 18px;
}
.welcome-card-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(154, 54, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(41, 214, 239, 0.08), transparent 50%);
  z-index: -1;
}
.welcome-close {
  top: 10px;
  right: 10px;
  z-index: 2;
}
.welcome-top-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.welcome-top-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--purple-dim);
  background: #0a0a0f;
  padding: 4px;
  box-shadow: 0 0 24px rgba(154, 54, 255, 0.25);
}
.welcome-top-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.welcome-top-name { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--text); }
.welcome-top-name em { color: var(--purple); font-style: normal; font-weight: 800; }
.welcome-title {
  text-align: center;
  margin: 0 0 10px;
  font-size: clamp(26px, 4.5vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
.welcome-brand-mark {
  background: linear-gradient(135deg, #c4b5fd, var(--purple) 50%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.welcome-lead {
  text-align: center;
  margin: 0 auto 22px;
  max-width: 480px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.welcome-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.welcome-pane {
  text-align: center;
  padding: 20px 16px 16px;
  border-radius: 16px;
  background: rgba(17, 15, 24, 0.72);
  backdrop-filter: blur(8px);
}
.welcome-pane-blue {
  border: 1px solid rgba(154, 54, 255, 0.45);
  box-shadow: 0 0 36px rgba(154, 54, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.welcome-pane-amber {
  border: 1px solid rgba(41, 214, 239, 0.35);
  box-shadow: 0 0 36px rgba(41, 214, 239, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.welcome-pane-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px;
}
.welcome-pane-icon.people {
  background-color: rgba(154, 54, 255, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23a78bfa' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
}
.welcome-pane-icon.bolt {
  background-color: rgba(41, 214, 239, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2329d6ef' viewBox='0 0 24 24'%3E%3Cpath d='M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66L13 3h1l-1 7h3.5c.49 0 .56.33.3.66L11 21z'/%3E%3C/svg%3E");
}
.welcome-pane h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; color: var(--text); }
.welcome-pane p { margin: 0 0 14px; font-size: 12px; color: var(--muted); line-height: 1.45; min-height: 52px; }
.welcome-link-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(154, 54, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.welcome-link-btn:hover {
  border-color: var(--purple);
  background: rgba(154, 54, 255, 0.12);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}
.welcome-link-btn.amber {
  border-color: rgba(41, 214, 239, 0.4);
  margin-bottom: 10px;
}
.welcome-link-btn.amber:hover {
  border-color: var(--cyan);
  background: rgba(41, 214, 239, 0.08);
  box-shadow: 0 4px 20px rgba(41, 214, 239, 0.12);
}
.welcome-link-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06) center/16px no-repeat;
}
.welcome-link-ico.chain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23a78bfa' viewBox='0 0 24 24'%3E%3Cpath d='M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z'/%3E%3C/svg%3E");
}
.welcome-link-ico.user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2329d6ef' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}
.welcome-link-label { flex: 1; line-height: 1.25; }
.welcome-link-arrow { color: var(--muted); font-size: 14px; flex-shrink: 0; }
.welcome-pay-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.welcome-pay-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(48, 35, 63, 0.9);
  background: rgba(0, 0, 0, 0.28);
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.15s, color 0.15s;
}
.welcome-pay-tile:hover {
  border-color: rgba(154, 54, 255, 0.45);
  color: var(--text);
}
.welcome-pay-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05) center/18px no-repeat;
}
.welcome-pay-ico.panel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23a78bfa' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12z'/%3E%3C/svg%3E");
}
.welcome-pay-ico.shop {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fbbf24' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12L8.1 13h7.45c.75 0 1.41-.41 1.75-1.03L21.7 4H5.21l-.94-2H1zm16 16c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
}
.welcome-pay-ico.tg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%237dd3fc' viewBox='0 0 24 24'%3E%3Cpath d='M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.48-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/%3E%3C/svg%3E");
}
.welcome-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(154, 54, 255, 0.18);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
.welcome-foot-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.welcome-foot-ico {
  width: 18px;
  height: 18px;
  background: center/contain no-repeat;
}
.welcome-foot-ico.bolt-sm {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2329d6ef' viewBox='0 0 24 24'%3E%3Cpath d='M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66L13 3h1l-1 7h3.5c.49 0 .56.33.3.66L11 21z'/%3E%3C/svg%3E");
}
.welcome-foot-ico.shield {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%234ade80' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z'/%3E%3C/svg%3E");
}
.welcome-foot-brand {
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.welcome-foot-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--purple-dim);
}

@media (max-width: 720px) {
  .welcome-glow-frame { max-width: 420px; }
  .welcome-cols { grid-template-columns: 1fr; }
  .welcome-foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .topbar-nav { order: 3; flex: 1 1 100%; justify-content: center; padding-top: 4px; }
}

@media (max-width: 640px) {
  .channel-promo { grid-template-columns: 1fr; max-width: 420px; }
  .channel-promo-status { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .status-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .reseller-card { grid-template-columns: 64px 1fr; gap: 10px; padding: 12px; }
}

@media (max-width: 640px) {
  .status-pill { display: none; }
  .btn-reseller { padding: 8px 12px; font-size: 10px; }
}
