:root {
  --bg: #0b0c12;
  --surface: #12141c;
  --surface-soft: #161822;
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --card: #161822;
  --border: #2a2d3a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: 56px;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
.container { width: min(1140px, 92%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 18, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--text); }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: .85rem; }
.nav a { font-weight: 600; color: var(--muted); }
.nav a:hover, .nav a.active { color: #fff; }
.header-panel { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.header-tools { display: none; align-items: center; gap: .4rem; margin-left: auto; flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.lang-float {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
}
.lang-switch { position: relative; display: inline-flex; }
.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  height: 32px;
  padding: 0 .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #101218;
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}
.lang-switch-toggle:hover { border-color: #4c3a78; color: #fff; }
.lang-flag {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.lang-switch-caret {
  width: 10px;
  height: 10px;
  opacity: .7;
  transition: transform .15s ease;
}
.lang-switch.is-open .lang-switch-caret { transform: rotate(180deg); }
.lang-switch-drop {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  min-width: 100%;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #12141c;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  z-index: 80;
}
.lang-switch.is-open .lang-switch-drop { display: block; }
.lang-switch-opt {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .6rem;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}
.lang-switch-opt:hover,
.lang-switch-opt.is-active {
  background: rgba(139, 92, 246, .22);
  color: #fff;
}
.menu-toggle {
  display: none;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}
.menu-toggle-close {
  display: none;
  position: relative;
  width: 12px;
  height: 12px;
}
.menu-toggle-close::before,
.menu-toggle-close::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}
.menu-toggle-close::before { transform: rotate(45deg); }
.menu-toggle-close::after { transform: rotate(-45deg); }
.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 9, 13, .55);
}

.hero {
  background: radial-gradient(circle at 12% 10%, rgba(139, 92, 246, .22), transparent 32%), var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 4.6rem 0 4.2rem;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  pointer-events: none;
  opacity: .42;
}
.hero::before {
  width: 460px;
  height: 460px;
  left: -130px;
  top: -170px;
  background: radial-gradient(circle, rgba(139, 92, 246, .35) 0%, rgba(139, 92, 246, 0) 68%);
}
.hero::after {
  width: 380px;
  height: 380px;
  right: -90px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(56, 189, 248, .18) 0%, transparent 70%);
}
.page-intro {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}
.page-intro .lead { margin: 0 auto; max-width: 840px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
.hero .container { position: relative; z-index: 1; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 .7rem; letter-spacing: -.03em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin: 0 0 .8rem; }
.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 1.1rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-stats li {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius: 999px;
  padding: .38rem .75rem;
  font-size: .88rem;
  color: #d4d4d8;
}

.hero-card, .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem;
}
.hero-card { min-height: 240px; }
.card h3 { margin-top: 0; }
.card .price { font-size: 1.8rem; font-weight: 800; color: #fff; margin: .4rem 0 .15rem; }
.price-note { margin: 0 0 .7rem; color: var(--muted); font-size: .9rem; }
.card ul { padding-left: 1.1rem; color: var(--muted); line-height: 1.65; }
.card:hover, .hero-card:hover { border-color: #3f3358; }
.muted { color: var(--muted); }
.plan-extra-note { margin: 1.1rem 0 0; text-align: center; font-style: italic; color: var(--muted); }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan-card.is-featured { border-color: var(--primary); }
.plan-card h3 { padding-right: 2rem; }
.plan-card ul {
  flex: 1;
  margin: 0 0 1rem;
  text-align: left;
}
.plan-card .btn {
  margin-top: auto;
  width: 100%;
}
.grid-4[data-vibe-plans] { align-items: stretch; }
.plan-badge {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}
.plan-icon {
  width: 22px;
  height: 22px;
  display: block;
}
.plan-icon.is-spark { fill: #c4b5fd; width: 28px; height: 28px; }
.plan-icon.is-bolt { fill: #67e8f9; }
.plan-icon.is-star { fill: #f5c542; }
.plan-icon.is-fire .plan-fire-outer { fill: #ff6b3d; }
.plan-icon.is-fire .plan-fire-inner { fill: #ffd56a; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.05rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .18s ease;
}
.btn-primary { color: #fff; background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { border-color: var(--border); color: var(--text); background: transparent; }
.btn-secondary:hover { background: rgba(255,255,255,.04); }
.btn-sm { padding: .45rem .7rem; font-size: .88rem; }

.section { padding: 3.6rem 0; }
.section-head { margin-bottom: 1.2rem; }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.feature-kicker { color: var(--primary); font-size: .82rem; font-weight: 700; margin: 0 0 .35rem; text-transform: uppercase; letter-spacing: .04em; }

.faq-item {
  margin-bottom: .7rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1rem 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a p { margin: 0; padding: 0 1.1rem 1rem; }

.footer {
  background: #08090d;
  color: var(--muted);
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; line-height: 1.45; }
.footer a:hover { color: #fff; }

.tools { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  background: #0f1117;
  border-radius: 10px;
  padding: .7rem;
}
label { font-weight: 600; display: block; margin: .65rem 0 .35rem; }

.hero-slider-title { margin: .2rem 0 .3rem; }
.hero-slider-text { margin: 0; color: var(--muted); }
.animate-in { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; }
.animate-in.visible { opacity: 1; transform: none; }

.locations-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.location-flag {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: #1c1f2b;
  overflow: hidden;
}
.location-flag img { width: 100%; height: 100%; object-fit: cover; }
.location-type {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .28rem .6rem;
  font-size: .78rem;
  color: #d4d4d8;
  white-space: nowrap;
  flex-shrink: 0;
}
.locations-grid .card h3 { font-size: 1.05rem; overflow-wrap: anywhere; }
.legal-page h1 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin: 0 0 .85rem;
}
.legal-content h2 {
  font-size: 1.02rem;
  margin-top: 1.05rem;
  margin-bottom: .4rem;
}
.legal-content p, .legal-content li {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
}

.guide-code {
  display: block;
  margin: .5rem 0 0;
  padding: .7rem .85rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem;
  color: #e4e4e7;
  background: #0f1117;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.pay-row, .cta-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.pay-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .4rem .7rem;
  font-size: .88rem;
  color: #d4d4d8;
}
.partner-banner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.6rem;
  align-items: center;
  border-color: #4c3a78;
  padding: 1.6rem;
}
.partner-rate {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1;
}
.partner-rate span {
  display: block;
  margin-top: .45rem;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}
.partner-platforms { margin: 1rem 0 1.15rem; }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 20, 28, .92);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, border-color .18s ease, background .18s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}
.to-top svg { width: 18px; height: 18px; display: block; }
.to-top:hover { border-color: #4c3a78; background: #161822; }
.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
@media (min-width: 1181px) {
  .to-top { display: inline-flex; }
}

.tg-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: none;
  align-items: center;
  height: 32px;
  padding: 0 .7rem;
  background: #229ed9;
  color: #fff;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}
.admin-page .admin-sections details {
  border-color: var(--border);
  background: var(--card);
}
.admin-page .admin-sections summary { color: var(--text); }
.admin-page .hint { color: var(--muted); }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { min-height: 60px; position: relative; }
  .header-tools { display: flex; margin-left: auto; }
  .header-panel { margin-left: 0; }
  .header-inner:has(.header-panel.is-open) .menu-toggle {
    width: 32px;
    padding: 0;
    border-color: #4c3a78;
    color: #fff;
  }
  .header-inner:has(.header-panel.is-open) .menu-toggle-text { display: none; }
  .header-inner:has(.header-panel.is-open) .menu-toggle-close { display: block; }
  body.is-menu-open { overflow: hidden; }
  body.is-menu-open .menu-backdrop { display: block; }
  .header-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    z-index: 70;
    margin: 0;
    background: #101218;
    border-bottom: 1px solid var(--border);
    padding: .55rem 0 .9rem;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .header-panel.is-open { display: flex; }
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    width: 100%;
  }
  .nav a {
    display: block;
    padding: .7rem .85rem;
    border-radius: 12px;
    font-size: .95rem;
  }
  .nav a.active {
    color: #fff;
    background: rgba(139, 92, 246, .16);
  }
  .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    width: 100%;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
  }
  .header-actions .btn {
    width: 100%;
    padding: .7rem .8rem;
    font-size: .9rem;
  }
  .tg-float { display: inline-flex; }
  .site-header:has(.header-panel.is-open) ~ .tg-float,
  .site-header:has(.header-panel.is-open) ~ .lang-float { display: none; }
  .footer { padding: .7rem 0 .85rem; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    text-align: center;
  }
  .footer-inner p { font-size: .95rem; }
}

@media (max-width: 1100px) {
  .grid-4, .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3.2rem 0; }
}

@media (max-width: 700px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .tools, .locations-grid, .partner-banner { grid-template-columns: 1fr; }
  .container { width: min(1140px, calc(100% - 1.6rem)); }
  .hero, .page-intro { padding: 2.2rem 0; }
  .section { padding: 2.2rem 0; }
  .hero-actions .btn, .partner-banner .btn { width: 100%; }
  .locations-grid .card > div { flex-wrap: wrap; }
  body { padding-bottom: 56px; }
  .tg-float { right: 12px; bottom: 12px; }
  .lang-float { left: 12px; bottom: 12px; }
}

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