/* Dark theme */
:root {
  --bg: #070b14;
  --bg-soft: #0c1222;
  --sidebar: #0a1020;
  --card: #121a2e;
  --card-2: #18243c;
  --line: rgba(90, 140, 255, 0.18);
  --text: #eef3ff;
  --muted: #9aabc9;
  --blue: #2f7bff;
  --blue-2: #6aa6ff;
  --red: #e10600;
  --red-2: #ff2d24;
  --gold: #f0c14a;
  --header: 72px;
  --side: 248px;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--red);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.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;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  height: var(--header);
  padding: 0 18px;
  background: rgba(7, 11, 20, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.logo img {
  display: block;
  height: 38px;
  width: auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: #fff;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  position: relative;
  border-radius: 2px;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  max-width: 460px;
  background: #10192d;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 10px 14px;
  font: inherit;
}

.search input::placeholder {
  color: #7e8eaf;
}

.search button {
  border: 0;
  background: transparent;
  color: var(--blue-2);
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-pill {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  line-height: 1.2;
}

.btn-red {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.35);
}

.btn-red:hover {
  background: var(--red-2);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--blue-2);
  color: #fff;
}

.btn-line {
  background: transparent;
  border-color: var(--blue);
  color: #fff;
}

.btn-line:hover {
  background: rgba(47, 123, 255, 0.18);
  color: #fff;
}

/* Sidebar */
.shell {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - var(--header));
}

.sidebar {
  width: var(--side);
  flex: 0 0 var(--side);
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 14px 12px 24px;
  position: sticky;
  top: var(--header);
  height: calc(100vh - var(--header));
  overflow: auto;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d5def2;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.sidebar a svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.sidebar a:hover,
.sidebar a[aria-current="page"] {
  background: #16213a;
  color: #fff;
}

.sidebar a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--blue);
}

.side-note {
  margin-top: 18px;
  padding: 12px;
  border-radius: 12px;
  background: #10192c;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  display: block;
}

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 800;
  font-size: 12px;
}

.backdrop {
  display: none;
}

.content {
  flex: 1;
  min-width: 0;
  padding-bottom: 48px;
}

/* Hero banner */
.hero {
  position: relative;
  min-height: 460px;
  margin: 18px 18px 0;
  border-radius: 22px;
  overflow: hidden;
  background-color: #123a9a;
  background-image: url("/img/banner/magnific_create-a-vibrant-and-enga_hE0WD4kvqL.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.hero-panel {
  width: min(680px, calc(100% - 32px));
  margin: 28px 16px;
  padding: 32px 28px;
  text-align: center;
  background: rgba(7, 14, 32, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  backdrop-filter: blur(8px);
}

.hero-panel h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-panel p {
  margin: 0 0 18px;
  color: #e4ecff;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.fine {
  margin: 14px 0 0;
  color: #c5d2ee;
  font-size: 13px;
}

/* Popular slots */
.block {
  margin: 28px 18px 0;
}

.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.block-head h2,
.prose h2,
.prose h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

.kicker {
  margin: 0 0 6px;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slots-rail {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 228px);
  gap: 14px;
  width: max-content;
}

.slots-grid a {
  display: block;
  line-height: 0;
  border-radius: 18px;
}

.slots-grid img {
  width: 228px;
  height: 216px;
  max-width: none;
  border-radius: 18px;
  display: block;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Breadcrumbs */
.crumbs {
  margin: 16px 18px 0;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #5d6e90;
}

.crumbs a {
  color: var(--blue-2);
  text-decoration: none;
  font-weight: 700;
}

/* Content */
.prose {
  margin: 22px 18px 0;
}

.panel {
  background: linear-gradient(180deg, rgba(24, 36, 60, 0.92), rgba(14, 22, 40, 0.92));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 8px;
  margin: 0 0 18px;
}

.panel h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.panel h3 {
  margin: 18px 0 8px;
  font-size: 20px;
  color: #fff;
}

.panel p,
.panel li {
  color: #d5def0;
}

.lead {
  font-size: 18px;
  color: #f3f6ff;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.stat-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 14px 0 18px;
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.stat,
.mini {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.stat strong,
.mini strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

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

.rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 18px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.rule::before,
.rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 18px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0 0 10px;
}

.steps li::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(47, 123, 255, 0.18);
  color: var(--blue-2);
  font-weight: 800;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  text-decoration: none;
  background: #10192d;
  border: 1px solid var(--line);
  color: #d7e3ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}

.toc a:hover {
  border-color: var(--blue);
  color: #fff;
}

.note {
  border-left: 3px solid var(--blue);
  background: rgba(47, 123, 255, 0.08);
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
  margin: 0 0 16px;
}

.warn {
  border-left-color: var(--red);
  background: rgba(225, 6, 0, 0.08);
}

.scene {
  margin: 0 0 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.scene img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

/* Tables */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #0e172b;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

th {
  background: #162444;
  color: #fff;
  font-size: 14px;
}

td {
  color: #d5def0;
}

/* FAQ */
.faq details {
  background: #10192d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
}

.faq details p {
  margin: 10px 0 0;
}

/* Providers */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.logo-row img {
  height: 28px;
  width: auto;
  max-width: 120px;
  background: #f4f7ff;
  border-radius: 8px;
  padding: 6px 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #080d18;
  padding: 28px 18px 36px;
}

.site-footer h2 {
  font-size: 16px;
  margin: 0 0 12px;
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pay-row img {
  height: 28px;
  width: auto;
  max-width: 92px;
  background: #10182c;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.legal-note {
  color: var(--muted);
  font-size: 13px;
  max-width: 860px;
}

/* Legal pages */
.lang-switch {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
}

.lang-switch a {
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
}

.lang-switch a[aria-current="true"] {
  background: var(--blue);
  border-color: var(--blue);
}

.lang-block + .lang-block {
  margin-top: 28px;
}

/* Go page */
.go-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.55), rgba(7, 11, 20, 0.82)),
    url("/img/banner/magnific_create-a-vibrant-and-enga_hE0WD4kvqL.png") center/cover no-repeat;
}

.go-card {
  width: min(520px, 100%);
  text-align: center;
  background: rgba(7, 14, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 32px 24px;
  backdrop-filter: blur(8px);
}

/* Responsive */
@media (max-width: 1100px) {
  .stat-grid,
  .card-grid,
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .search {
    display: none;
  }

  .topbar {
    gap: 10px;
    padding: 0 12px;
  }

  .lang-pill {
    display: none;
  }

  .btn-ghost {
    display: none;
  }

  .sidebar {
    position: fixed;
    z-index: 40;
    left: 0;
    top: var(--header);
    height: calc(100vh - var(--header));
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  body.nav-open .backdrop {
    display: block;
    position: fixed;
    inset: var(--header) 0 0 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 35;
  }

  .hero {
    min-height: 520px;
    margin: 12px;
    background-position: right center;
  }

  .hero-panel h1 {
    font-size: 32px;
  }

  .hero-panel p {
    font-size: 16px;
  }

  .block,
  .prose,
  .crumbs {
    margin-left: 12px;
    margin-right: 12px;
  }

  .stat-grid,
  .card-grid,
  .card-grid.cols-3,
  .card-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 16px 14px 4px;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  table {
    min-width: 0;
    background: transparent;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  tr {
    display: block;
    margin: 0 0 12px;
    padding: 8px 12px;
    background: #10192d;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: auto;
    border: 0;
    padding: 8px 0;
    text-align: right;
  }

  td::before {
    content: attr(data-label);
    color: var(--blue-2);
    font-weight: 800;
    text-align: left;
    flex: 1 1 42%;
  }
}

@media (max-width: 420px) {
  .logo img {
    height: 30px;
  }

  .btn {
    padding: 10px 12px;
  }

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