.diagonal-bg-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #0b0d17;
  clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: -1;
}

.highlight {
  color: #06b6d4;
  font-weight: bold;
}

.captcha-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 0px 20px 0px;
}

.site-header .has-dropdown > .dropdown li a {
  display: flex !important;
  align-items: center !important;
  padding: 0.6rem 0.75rem !important;
  font-size: 0.85rem !important;
  color: #f1f5f9 !important;
  gap: 0.5rem;
  line-height: 1.2 !important;
  min-height: unset !important;
  height: auto !important;
}

.site-header .has-dropdown > .dropdown li a i {
  font-size: 0.85rem !important;
  width: 16px !important;
  margin-right: 6px;
  line-height: 1 !important;
  text-align: center;
}

.site-header .has-dropdown > .dropdown li a:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-radius: 0.25rem;
}

/* Dropdown base */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #12121f;
  border-radius: 6px;
  padding: 4px 0;
  min-width: 240px;
  display: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.has-dropdown {
  position: relative;
}

/* Mostrar dropdown al hacer hover sobre el item padre */
.has-dropdown:hover .dropdown {
  display: block;
}

/* Ítems del menú */
.has-dropdown .dropdown li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f5f9;
  padding: 10px 16px;
  font-size: 0.85rem;
  text-decoration: none;
  line-height: 1.2;
  height: auto;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

/* Íconos dentro del menú */
.has-dropdown .dropdown li a i {
  font-size: 0.85rem;
  width: 16px;
  margin-right: 6px;
  text-align: center;
  line-height: 1;
  transition: color 0.2s;
}

/* Hover de los links */
.has-dropdown .dropdown li a:hover {
  background-color: #1e1e2e;
  color: #ffffff;
}

/* Hover de los íconos */
.has-dropdown .dropdown li a:hover i {
  color: #06b6d4;
}

@keyframes drakeShake {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  25% {
    transform: rotate(1deg) translateY(-2px);
  }
  50% {
    transform: rotate(-1deg) translateY(1px);
  }
  75% {
    transform: rotate(1.5deg) translateY(-1px);
  }
  100% {
    transform: rotate(0deg) translateY(0);
  }
}

@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   Section layout system - pure CSS, zero Tailwind dependency.
   Every section is a self-contained block.
   Remove a .ds-section div and nothing else breaks.
   ═══════════════════════════════════════════════════════ */

.ds-sections {
  display: flex;
  flex-direction: column;
}

/* Hide wrappers that have no real section inside */
.ds-section:empty,
.ds-section:not(:has(section)) {
  display: none;
}

/* Uniform vertical padding on every section (single source of truth) */
.ds-section > section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Separator between consecutive visible sections.
   Lives on the wrapper div, NOT inside the <section>,
   so spacing is symmetric: 3rem + 3rem above = 3rem + 3rem below. */
.ds-section + .ds-section::before {
  content: "";
  display: block;
  max-width: 20rem;
  height: 1px;
  margin: 3rem auto;
  background: linear-gradient(to right, transparent, rgba(139, 92, 246, 0.35), transparent);
}

/* ═══════════════════════════════════════════════════════
   Landing (fintech) brand system - 2026-06-18 redesign.
   Tokens + ambient motion + the continuous-flow layout for
   the landing route. Non-landing routes (purchase/history/
   transaction) render into #main_container and are NOT touched
   by the .ds-flow overrides below.
   ═══════════════════════════════════════════════════════ */

:root {
  --ds-grad: linear-gradient(118deg, #a855f7 2%, #6366f1 46%, #22d3ee 98%);
  --ds-indigo: #6366f1;
  --ds-ac: #8aa0ff; /* soft accent - eyebrows, links, icons */
  --ds-cy: #2dd4de;
  --ds-vio: #a855f7;
  --ds-grn: #34d399;
  --ds-tx2: #9aa6be; /* secondary text */
  --ds-tx3: #5e6b86; /* faint text / captions */
  --ds-line: rgba(255, 255, 255, 0.08);
  --ds-line2: rgba(255, 255, 255, 0.14);
}

/* ── Continuous-flow landing layout (scoped to .ds-sections.ds-flow) ── */
/* Generous vertical rhythm on the landing-only sections. #main_container
   is excluded so the shared route slot (purchase/history) keeps its 3rem. */
.ds-flow .ds-section:not(#main_container) > section {
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(72px, 8vw, 112px);
}
/* The design flows continuously - no hard separators between sections. */
.ds-flow .ds-section + .ds-section::before {
  display: none;
}
/* Header-offset for anchored sections (sticky header ≈ 100px). */
.ds-flow .ds-section {
  scroll-margin-top: 100px;
}

/* Standalone routed views: hide the marketing sections + page-update banner so
   only the loaded view (#main_container) and the footer remain. Toggled by
   $store.ui.routeStandalone (set in loadPartial). */
.ds-sections.route-standalone > #pageupdate,
.ds-sections.route-standalone > .ds-section:not(#main_container) {
  display: none;
}

/* ── Ambient aurora (page-level, behind all landing content) ── */
.ds-page {
  position: relative;
  background-color: oklch(var(--b1)); /* base-100 canvas, so the aurora reads on the page bg */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* Sticky footer: main grows to fill so the footer sits at the bottom even when
   a standalone routed view (history / checkout) is short. */
.ds-page .l-main { flex: 1 0 auto; }
.ds-aurora {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ds-page .l-main,
.ds-page .l-footer {
  position: relative;
  z-index: 1;
}

/* ── Soft surface band (How / FAQ), full-bleed, fades top & bottom ── */
.ds-soft-band {
  position: relative;
}
.ds-soft-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(124, 131, 255, 0.05) 16%, rgba(124, 131, 255, 0.05) 84%, transparent);
}
.ds-soft-band > .ds-band-inner {
  position: relative;
  z-index: 1;
}

/* ── Scroll reveal (gated on JS being live; safety net in landing.js) ── */
.reveal-on [data-reveal] {
  opacity: 0;
}
.reveal-on [data-reveal].rv-in {
  animation: revealIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Ambient motion helpers (applied via class so reduced-motion can kill them) ── */
.ds-anim-floaty {
  animation: floaty 7s ease-in-out infinite;
}
.ds-anim-sheen {
  background-size: 200% 100%;
  animation: sheen 6s linear infinite alternate;
}
.ds-anim-pulse-dot {
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* Hero top-up card showcase: game identity crossfade + slide between rotations.
   The credit amount rolls separately (JS count-up). Under reduced motion the JS
   never rotates, so .is-swapping is never applied and this stays settled. */
.hero-swap {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hero-swap.is-swapping {
  opacity: 0;
  transform: translateY(-8px);
}

/* ── Hero card: subtle animated shimmer border ──
   Ported from the frontpage handoff (magic-border), recolored to the
   violet→indigo→cyan brand and softened (no glossy shine sweep). */
.ds-magic-border {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.6), rgba(99, 102, 241, 0.5), rgba(45, 212, 222, 0.6));
  background-size: 400% 400%;
  animation: ds-shimmer 6s ease infinite;
}
@keyframes ds-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── "How it works" step cards: gradient icon tile + ghost number ── */
.ds-how-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--ds-line);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, background 0.2s;
}
.ds-how-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 131, 255, 0.4);
  background: rgba(255, 255, 255, 0.045);
}
.ds-how-num {
  position: absolute;
  top: 4px;
  right: 16px;
  z-index: 0;
  pointer-events: none;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 86px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.05);
}
.ds-how-ico {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ds-grad);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
  margin-bottom: 20px;
  font-size: 22px;
}
.ds-how-title {
  position: relative;
  z-index: 1;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 9px;
}
.ds-how-text {
  position: relative;
  z-index: 1;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ds-tx2);
  margin: 0;
}

/* ── FAQ accordion: grid-rows open animation + +/− chip toggle ── */
.ds-faq-item.open { border-color: rgba(124, 131, 255, 0.4); }
.ds-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  color: #fff;
}
.ds-faq-chip {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(124, 131, 255, 0.15);
}
.ds-faq-chip::before,
.ds-faq-chip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--ds-ac);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.2s;
}
.ds-faq-chip::after { transform: translate(-50%, -50%) rotate(90deg); }
.ds-faq-item.open .ds-faq-chip::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }
.ds-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.ds-faq-item.open .ds-faq-a { grid-template-rows: 1fr; }
.ds-faq-a-in { overflow: hidden; }
.ds-faq-a-in p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ds-tx2);
  margin: 0;
}

/* ── CTA band: static gradient-border frame around a dark panel ── */
.ds-grad-frame {
  background: linear-gradient(135deg, var(--ds-vio), var(--ds-indigo), var(--ds-cy));
  padding: 1.5px;
}

/* Keyboard focus ring for interactive controls. Low specificity via :where so
   element-specific focus styles (e.g. the history search) still win. */
:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
  outline: 2px solid var(--ds-ac);
  outline-offset: 2px;
}

/* ── Auth modals: soft brand glow on the panel + a gradient CTA with a lift ──
   Ported from the frontpage handoff (ambient glow + gradient/scale buttons),
   recolored to the violet→indigo→cyan brand. */
.ds-modal-glow {
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), 0 0 50px rgba(124, 131, 255, 0.22);
}
.ds-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.72rem 1.5rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  border: none;
  cursor: pointer;
  background: var(--ds-grad);
  background-size: 200% 100%;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-position 0.4s ease;
}
.ds-modal-cta:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.55);
  background-position: 100% 0;
}
.ds-modal-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Circular brand badge (mail / status icon) for the account modals. */
.ds-modal-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  background: var(--ds-grad);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4), 0 0 0 6px rgba(124, 131, 255, 0.1);
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(48px, -38px) scale(1.12); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-44px, 34px) scale(1.15); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.1); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

/* Respect reduced motion: kill ambient motion and reveal content outright. */
@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal] {
    opacity: 1 !important;
    animation: none !important;
  }
  .ds-aurora > *,
  .ds-anim-floaty,
  .ds-anim-sheen,
  .ds-anim-pulse-dot,
  .ds-magic-border,
  .ds-legal-panel {
    animation: none !important;
  }
  .ds-faq-a { transition: none; }
}

/* ═══════════════════════════════════════════════════════
   Legal modals (Terms / Privacy) - dark fintech restyle.
   ═══════════════════════════════════════════════════════ */
@keyframes modalIn {
  from { transform: translateY(12px); }
  to { transform: translateY(0); }
}
.ds-legal-panel { animation: modalIn 0.2s ease-out both; }

/* Body: only this region scrolls; thin custom scrollbar */
.ds-legal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.ds-legal-body::-webkit-scrollbar { width: 8px; }
.ds-legal-body::-webkit-scrollbar-track { background: transparent; }
.ds-legal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

/* Typography & rhythm (Inter body) */
.ds-legal-h {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 28px 0 8px;
}
.ds-legal-p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ds-tx2);
  margin: 0 0 10px;
}
.ds-legal-updated {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ds-tx3);
  margin: 2px 0 4px;
}
.ds-legal-name {
  color: #ebeff8;
  font-weight: 500;
}
.ds-legal-body a { color: var(--ds-ac); }
.ds-legal-body a:hover { text-decoration: underline; }

/* Lists: left bullet, no native markers, consistent gap */
.ds-legal-list {
  list-style: none;
  margin: 6px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ds-legal-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ds-tx2);
}
.ds-legal-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ds-ac);
}

/* Secondary "Close" button */
.ds-legal-close-btn {
  font-size: 14px;
  font-weight: 600;
  color: #ebeff8;
  padding: 10px 20px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s;
}
.ds-legal-close-btn:hover { background: rgba(255, 255, 255, 0.06); }

/* ═══════════════════════════════════════════════════════
   Account menu (header) - the "account bubble".
   Ported from the SlythPay "Header & Menus" design and mapped to
   DrakeSpot tokens (violet→indigo→cyan). Real account items only -
   no balance card (DrakeSpot carries no wallet balance).
   ═══════════════════════════════════════════════════════ */

/* Trigger chip */
.ds-acct-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.65rem 0.3rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--ds-line2);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.ds-acct-btn:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(255, 255, 255, 0.07);
}
.ds-acct-btn .who {
  display: flex;
  min-width: 0;
  line-height: 1.1;
  text-align: left;
}
.ds-acct-btn .who b {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}
.ds-acct-btn .chev {
  color: var(--ds-tx3);
  transition: transform 0.2s;
}

/* Avatar (gradient ring) */
.ds-avatar {
  height: 2rem;
  width: 2rem;
  flex: none;
  border-radius: 999px;
  background: var(--ds-grad);
  padding: 2px;
}
.ds-avatar > span {
  display: grid;
  place-items: center;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: #0e1424;
  color: #fff;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
}

/* The bubble */
.ds-acct-menu {
  width: 280px;
  overflow: hidden;
  background: #0e1424; /* solid, fully opaque - never reads transparent */
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 0.8rem;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* Head */
.ds-acct-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(180deg, #1b1338, #0e1424);
  border-bottom: 1px solid var(--ds-line);
}
.ds-acct-head .ds-avatar {
  height: 2.6rem;
  width: 2.6rem;
}
.ds-acct-head .ds-avatar > span {
  font-size: 1rem;
}
.ds-acct-head .info {
  min-width: 0;
  flex: 1;
}
.ds-acct-head .info .row1 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ds-acct-head .info b {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.ds-acct-head .info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  color: var(--ds-tx2);
}

/* Verified pill */
.ds-acct-badge {
  flex: none;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--ds-grad);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Action list */
.ds-acct-list {
  padding: 0.35rem;
}
.ds-acct-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.6rem 0.65rem;
  border: 0;
  border-radius: 0.55rem;
  background: none;
  cursor: pointer;
  color: var(--ds-tx2);
  font-size: 0.875rem;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.14s, color 0.14s;
}
.ds-acct-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.ds-acct-item svg {
  flex: none;
  color: var(--ds-tx3);
  transition: color 0.14s;
}
.ds-acct-item:hover svg {
  color: var(--ds-cy);
}
.ds-acct-sep {
  height: 1px;
  margin: 0.35rem 0.65rem;
  background: var(--ds-line);
}
.ds-acct-item.danger {
  color: #f87171;
}
.ds-acct-item.danger svg {
  color: #f87171;
}
.ds-acct-item.danger:hover {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}
.ds-acct-item.danger:hover svg {
  color: #fca5a5;
}
