/* ==========================================================================
   INFERNAL — Executive / Official Roblox License Platform Theme
   Graphite dark-gray canvas, floating header pill, framed license console,
   KPI bento cards and a single indigo accent.
   Loaded after styles.css so it wins every earlier theme block.
   ========================================================================== */

:root {
  --bg: #060606;
  --bg-2: #040405;
  --fg: #f6f6f7;
  --card: rgba(21, 21, 21, 0.82);
  --card-hover: rgba(29, 29, 31, 0.92);
  --card-fg: #f6f6f7;
  --muted: #6366f1;
  --muted-2: #6366f1;
  --secondary: rgba(27, 27, 28, 0.8);
  --border: rgba(185, 185, 190, 0.16);
  --border-soft: rgba(185, 185, 190, 0.1);
  --primary: #6366f1;
  --primary-fg: #ffffff;
  --emerald: #6366f1;
  --amber: #cccccf;
  --ring: #6366f1;
  --accent: #6366f1;
  --accent-2: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.16);
  --glow: rgba(99, 102, 241, 0.42);
  --glow-soft: rgba(99, 102, 241, 0.14);

  --inf-bg-0: #060606;
  --inf-bg-1: #101011;
  --inf-navy: #151516;
  --inf-blue: #6366f1;
  --inf-blue-2: #6366f1;
  --inf-cyan: #6366f1;
  --inf-line: rgba(99, 102, 241, 0.13);
}

/* --------------------------------------------------------------------------
   Canvas: flat graphite with a soft top wash (legacy moving grid disabled)
   -------------------------------------------------------------------------- */

html {
  background: var(--inf-bg-0);
}

body {
  background-color: var(--inf-bg-0);
  background-image:
    radial-gradient(1280px 640px at 50% -14%, rgba(99, 102, 241, 0.19), transparent 64%),
    radial-gradient(920px 520px at 104% 10%, rgba(99, 102, 241, 0.08), transparent 66%),
    radial-gradient(880px 620px at -6% 86%, rgba(78, 78, 82, 0.18), transparent 68%),
    linear-gradient(180deg, #060606 0%, #101010 38%, #151516 68%, #060607 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--fg);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
}

/* Old decorative layers are replaced by the INFERNAL canvas. */
.site::before,
.site::after {
  display: none !important;
}

/* Moving grid — one direction (upward), fixed behind content. */
body::before {
  content: "";
  position: fixed;
  inset: -80px 0 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, var(--inf-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--inf-line) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-position: 0 0, 0 0;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.52) 56%, rgba(0, 0, 0, 0) 94%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.52) 56%, rgba(0, 0, 0, 0) 94%);
  animation: inf-grid-move 8s linear infinite;
  pointer-events: none;
  will-change: background-position;
}

/* Subtle architectural ambient wash above the grid, below the content. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(48% 36% at 20% 10%, rgba(99, 102, 241, 0.12), transparent 70%),
    radial-gradient(38% 32% at 82% 20%, rgba(99, 102, 241, 0.08), transparent 72%),
    radial-gradient(54% 46% at 60% 88%, rgba(70, 70, 72, 0.18), transparent 74%),
    radial-gradient(125% 95% at 50% 50%, transparent 45%, rgba(5, 5, 5, 0.72) 100%);
  pointer-events: none;
}

.site,
.auth-page,
.admin-shell {
  position: relative;
  z-index: 1;
}

/* Consistent container geometry across all customer pages */
.container,
.topup-container {
  max-width: 1180px !important;
  padding-inline: clamp(16px, 3vw, 28px);
}

/* The top-up page ships its own charcoal variables in styles.css; bring it
   back onto the INFERNAL navy canvas without touching that legacy block. */
html[data-page="topup"] body {
  --tp-bg: var(--inf-bg-0);
  --tp-surface: rgba(22, 22, 22, 0.9);
  --tp-surface-2: rgba(31, 31, 33, 0.94);
  --tp-border: rgba(185, 185, 190, 0.16);
  --tp-border-strong: rgba(185, 185, 190, 0.36);
  --tp-text: #f6f6f7;
  --tp-muted: #6366f1;
  --tp-muted-2: #6366f1;
  --tp-ok: var(--inf-cyan);
  --tp-warn: #cccccf;
  --tp-bad: #ff7a90;
  background-color: var(--inf-bg-0);
  background-image:
    radial-gradient(1280px 640px at 50% -14%, rgba(99, 102, 241, 0.19), transparent 64%),
    radial-gradient(920px 520px at 104% 10%, rgba(99, 102, 241, 0.08), transparent 66%),
    radial-gradient(880px 620px at -6% 86%, rgba(78, 78, 82, 0.18), transparent 68%),
    linear-gradient(180deg, #060606 0%, #101010 38%, #151516 68%, #060607 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

::selection {
  background: rgba(99, 102, 241, 0.42);
  color: #ffffff;
}

/* Scrollbar */
* {
  scrollbar-color: rgba(99, 102, 241, 0.48) rgba(11, 11, 11, 0.92);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(9, 9, 9, 0.92);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #535357);
  border-radius: 999px;
  border: 2px solid rgba(9, 9, 9, 0.92);
}

/* --------------------------------------------------------------------------
   Header / Formal Navigation Bar
   -------------------------------------------------------------------------- */

.nav,
.nav.is-scrolled {
  height: 64px;
  background: rgba(10, 10, 11, 0.8);
  border-bottom: 1px solid rgba(185, 185, 190, 0.15);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav.is-scrolled {
  background: rgba(8, 8, 8, 0.92);
  border-bottom-color: rgba(185, 185, 190, 0.24);
  box-shadow: 0 18px 42px -28px rgba(31, 31, 33, 0.95);
}

.nav-inner {
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

@media (max-width: 767px) {
  .nav-inner {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.brand:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(185, 185, 190, 0.18);
}

.brand img,
.auth-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.55));
  animation: none;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff 0%, #e9e9ea 65%, #cdcdd0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-name::after {
  content: "LICENSE";
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(185, 185, 190, 0.24);
  background: rgba(99, 102, 241, 0.12);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #cdcdd0;
  -webkit-text-fill-color: #cdcdd0;
}

@media (max-width: 480px) {
  .brand-name::after {
    display: none;
  }
}

/* Formal centered navigation pill dock on desktop */
@media (min-width: 768px) {
  .nav-links {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(185, 185, 190, 0.16);
    background: rgba(17, 17, 17, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
}

.nav-link {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.1);
  transform: none;
}

.nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.24), rgba(104, 104, 109, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(185, 185, 190, 0.28);
  text-shadow: none;
}

.nav-link::after {
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #6366f1, #6366f1, transparent);
  box-shadow: none;
}

.nav-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  height: 34px;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid rgba(185, 185, 190, 0.18);
  background: rgba(17, 17, 17, 0.78);
}

.lang-btn {
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lang-btn.is-active {
  background: linear-gradient(135deg, #6366f1, #6366f1);
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(99, 102, 241, 0.75);
}

.icon-btn,
.admin-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(185, 185, 190, 0.18);
  background: rgba(17, 17, 17, 0.78);
  color: var(--muted);
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.admin-btn:hover,
.icon-btn:hover {
  color: #ffffff;
  border-color: rgba(185, 185, 190, 0.45);
  background: rgba(99, 102, 241, 0.14);
  box-shadow: none;
}

.login-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(185, 185, 190, 0.36);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.28), rgba(79, 79, 83, 0.34));
  color: #f9f9fa;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.login-btn:hover {
  border-color: rgba(191, 191, 194, 0.68);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.42), rgba(96, 96, 100, 0.48));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px -10px rgba(99, 102, 241, 0.75);
}

.nav-balance {
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid rgba(185, 185, 190, 0.28);
  background: rgba(32, 32, 34, 0.78);
  color: #f1f1f2;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   Buttons — Executive Software Controls
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease,
    border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  border: 1px solid rgba(191, 191, 194, 0.48);
  background: linear-gradient(180deg, #6366f1 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow:
    0 12px 28px -12px rgba(99, 102, 241, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: none;
}

.btn-primary .icon {
  opacity: 1;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.24) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform 0.65s var(--ease);
  pointer-events: none;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #6366f1 0%, #6366f1 100%);
  border-color: rgba(204, 204, 207, 0.72);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 16px 34px -12px rgba(99, 102, 241, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.btn-primary:hover::after {
  transform: translateX(130%);
}

.btn-primary .btn-arrow {
  transition: transform 0.2s var(--ease);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-secondary {
  border: 1px solid rgba(185, 185, 190, 0.26);
  background: rgba(25, 25, 27, 0.78);
  color: #f0f0f1;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: rgba(185, 185, 190, 0.55);
  background: rgba(106, 106, 110, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px rgba(99, 102, 241, 0.65);
}

/* --------------------------------------------------------------------------
   Homepage Vertical Rhythm & Hero Section
   -------------------------------------------------------------------------- */

body.is-home main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px) 0 clamp(44px, 5vw, 68px);
}

.hero-section {
  padding: 0;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: clamp(34px, 4.4vw, 54px) clamp(24px, 4vw, 56px);
  border: 1px solid rgba(185, 185, 190, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(960px 360px at 50% -15%, rgba(99, 102, 241, 0.22), transparent 64%),
    linear-gradient(180deg, rgba(26, 26, 28, 0.92) 0%, rgba(15, 15, 16, 0.96) 62%, rgba(10, 10, 11, 0.98) 100%);
  box-shadow:
    0 32px 80px -48px rgba(43, 43, 45, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  transform: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Specular top architectural hairline */
.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.75) 35%, rgba(99, 102, 241, 0.85) 50%, rgba(99, 102, 241, 0.75) 65%, transparent 100%);
  opacity: 0.85;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: 19px;
  background:
    radial-gradient(560px 240px at 50% 0%, rgba(99, 102, 241, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-card:hover {
  border-color: rgba(185, 185, 190, 0.34);
  box-shadow:
    0 36px 90px -48px rgba(90, 90, 94, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(95% 85% at 50% 0%, #000 15%, transparent 80%);
  mask-image: radial-gradient(95% 85% at 50% 0%, #000 15%, transparent 80%);
  animation: inf-grid-move 10s linear infinite;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  filter: blur(54px);
  pointer-events: none;
}

.hero-orb-a {
  top: -90px;
  right: -50px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
}

.hero-orb-b {
  bottom: -120px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
}

/* Stationary subtle emblem watermark — no spinning toy effect */
.hero-card .hero-watermark {
  display: block;
  inset: 0;
  margin: auto;
  width: clamp(220px, 26vw, 310px);
  height: auto;
  transform: none;
  opacity: 0.032;
  filter: saturate(1.1) brightness(1.15);
  animation: none;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 15%, #e6e6e8 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 28px rgba(83, 83, 87, 0.35));
  animation: none;
  text-wrap: balance;
}

.hero-copy p {
  margin: 14px auto 0;
  max-width: 600px;
  font-size: clamp(13.5px, 1.5vw, 15.5px);
  line-height: 1.75;
  color: #bbbbbe;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 2px;
}

.hero-actions .btn {
  height: 44px;
  padding: 0 24px;
  font-size: 13.5px;
  border-radius: 11px;
}

/* Formal 3-item license specification strip inside `.hero-card` */
.hero-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(185, 185, 190, 0.14);
}

.hero-chips > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(185, 185, 190, 0.16);
  background: rgba(22, 22, 22, 0.72);
  color: #ededee;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hero-chips > span:hover {
  border-color: rgba(185, 185, 190, 0.34);
  background: rgba(35, 35, 37, 0.86);
}

.hero-chips .icon {
  width: 14px;
  height: 14px;
  color: var(--inf-cyan);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Homepage Contact Strip (`#home-contact`)
   -------------------------------------------------------------------------- */

.home-contact-section {
  padding: 0;
}

.home-contact {
  padding: 22px 24px;
  border: 1px solid rgba(185, 185, 190, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 24, 25, 0.84), rgba(13, 13, 13, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-contact-link {
  border: 1px solid rgba(185, 185, 190, 0.22);
  border-radius: 10px;
  background: rgba(31, 31, 33, 0.78);
  color: #f1f1f2;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.home-contact-link:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 185, 190, 0.52);
  background: rgba(99, 102, 241, 0.18);
}

/* --------------------------------------------------------------------------
   Store / Official Software License Checkout (`store.html`)
   -------------------------------------------------------------------------- */

.rent-main {
  padding: clamp(20px, 2.8vw, 32px) 0 clamp(48px, 5vw, 76px);
}

.breadcrumb {
  margin-bottom: 10px;
  font-size: 12px;
}

.store-back,
.breadcrumb a,
.breadcrumb-current {
  color: var(--muted);
}

.store-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.18s ease, transform 0.18s ease;
}

.store-back:hover,
.breadcrumb a:hover {
  color: #ffffff;
}

.rent-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 36px);
  border: 1px solid rgba(185, 185, 190, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(85% 120% at 50% 0%, rgba(99, 102, 241, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(27, 27, 29, 0.92) 0%, rgba(14, 14, 15, 0.97) 100%);
  box-shadow:
    0 28px 70px -44px rgba(43, 43, 45, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  transform: none !important;
}

.rent-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.72), rgba(99, 102, 241, 0.8), rgba(99, 102, 241, 0.72), transparent);
}

.rent-hero-top {
  gap: 24px;
  align-items: center;
}

.rent-logo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 1px solid rgba(185, 185, 190, 0.34);
  background:
    radial-gradient(circle at 30% 25%, rgba(99, 102, 241, 0.24), transparent 65%),
    rgba(22, 22, 22, 0.92);
  box-shadow:
    0 16px 36px -18px rgba(99, 102, 241, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.rent-badges {
  gap: 8px;
  margin-bottom: 10px;
}

.store-version,
.store-AIO-badge,
.store-maps-badge {
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.store-version {
  border: 1px solid rgba(185, 185, 190, 0.32);
  background: rgba(99, 102, 241, 0.16);
  color: #e6e6e8;
  font-family: var(--font-mono);
}

.store-AIO-badge {
  border: 1px solid rgba(99, 102, 241, 0.34);
  background: rgba(99, 102, 241, 0.12);
  color: #c4c4c7;
}

.store-maps-badge {
  border: 1px solid rgba(185, 185, 190, 0.22);
  background: rgba(29, 29, 30, 0.78);
  color: #d3d3d5;
}

.rent-hero-copy h1 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #f9f9fa;
}

.rent-tagline {
  margin-top: 6px;
  font-size: 13.5px;
  color: #c5c5c8;
}

.rent-desc {
  margin-top: 8px;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.store-chips {
  margin-top: 14px;
  gap: 8px;
}

.store-chip {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(185, 185, 190, 0.18);
  background: rgba(22, 22, 22, 0.74);
  color: #e9e9ea;
  font-size: 11.5px;
  font-weight: 600;
}

.store-chip .icon {
  color: var(--inf-cyan);
}

/* Store 2-column checkout grid */
.rent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.rent-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rent-card {
  padding: 24px;
  border: 1px solid rgba(185, 185, 190, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(25, 25, 27, 0.88) 0%, rgba(14, 14, 15, 0.95) 100%);
  box-shadow:
    0 24px 56px -38px rgba(28, 28, 30, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.rent-buy {
  border-color: rgba(185, 185, 190, 0.26);
  background:
    radial-gradient(380px 200px at 100% 0%, rgba(99, 102, 241, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(29, 29, 30, 0.94) 0%, rgba(14, 14, 15, 0.98) 100%);
}

.rent-card-head {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(185, 185, 190, 0.12);
}

.rent-card-head h2,
.buy-title-row h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f8f8f9;
}

.rent-count {
  border: 1px solid rgba(185, 185, 190, 0.24);
  background: rgba(99, 102, 241, 0.12);
  color: #dbdbde;
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
}

.rent-features {
  gap: 10px;
}

.rent-features li {
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid rgba(185, 185, 190, 0.14);
  background: rgba(19, 19, 20, 0.72);
  color: #eeeeef;
  font-size: 12.5px;
  font-weight: 500;
}

.rent-steps {
  gap: 12px;
}

.rent-steps li {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(185, 185, 190, 0.14);
  background: rgba(19, 19, 20, 0.68);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(185, 185, 190, 0.36);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.28), rgba(84, 84, 88, 0.28));
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

/* Plan selector cards inside `.rent-buy` */
.buy-instant {
  border: 1px solid rgba(99, 102, 241, 0.34);
  background: rgba(99, 102, 241, 0.12);
  color: #bdbdc1;
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
}

.rent-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.plan-option {
  position: relative;
  padding: 14px 15px;
  border-radius: 13px;
  border: 1px solid rgba(185, 185, 190, 0.18);
  background: rgba(19, 19, 20, 0.78);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.plan-option:hover {
  border-color: rgba(185, 185, 190, 0.38);
  background: rgba(29, 29, 30, 0.88);
  transform: translateY(-1px);
}

.plan-option.is-selected {
  border-color: rgba(99, 102, 241, 0.78);
  background:
    radial-gradient(220px 120px at 85% 0%, rgba(99, 102, 241, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(56, 56, 58, 0.92), rgba(26, 26, 27, 0.96));
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.32),
    0 16px 34px -22px rgba(99, 102, 241, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.plan-option-price,
.buy-summary strong,
#rent-summary-balance,
#rent-summary-total {
  font-variant-numeric: tabular-nums;
}

.plan-popular {
  background: linear-gradient(135deg, #6366f1, #6366f1);
  color: #0d0d0e;
  font-weight: 800;
}

/* Formal checkout summary table */
.buy-summary {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid rgba(185, 185, 190, 0.16);
  background: rgba(15, 15, 16, 0.82);
}

.buy-summary > div {
  padding: 7px 0;
  font-size: 12.5px;
}

.buy-summary > div + div {
  border-top: 1px solid rgba(185, 185, 190, 0.08);
}

.buy-summary-total {
  margin-top: 4px;
  padding-top: 11px !important;
  border-top: 1px solid rgba(185, 185, 190, 0.2) !important;
}

.buy-summary-total strong {
  font-size: 18px;
  font-weight: 800;
  color: #bdbdc1;
}

.rent-cta {
  height: 46px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
}

.buy-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(185, 185, 190, 0.1);
  justify-content: center;
  color: var(--muted);
  font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Top-up Page (`topup.html`) — Formal Financial Telemetry Layout
   -------------------------------------------------------------------------- */

.topup-main {
  padding: clamp(20px, 2.8vw, 32px) 0 clamp(48px, 5vw, 76px);
}

html[data-page="topup"] .topup-balance-card,
html[data-page="topup"] .topup-panel,
html[data-page="topup"] .topup-side-card,
html[data-page="topup"] .topup-switch {
  border-color: rgba(185, 185, 190, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(25, 25, 27, 0.88) 0%, rgba(14, 14, 15, 0.95) 100%);
  box-shadow:
    0 22px 52px -36px rgba(28, 28, 30, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

html[data-page="topup"] .topup-balance-value strong {
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

html[data-page="topup"] .topup-tab.is-active {
  border-color: rgba(99, 102, 241, 0.68);
  background:
    radial-gradient(240px 110px at 85% 0%, rgba(99, 102, 241, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(56, 56, 58, 0.92), rgba(26, 26, 27, 0.96));
  box-shadow:    0 14px 32px -22px rgba(99, 102, 241, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-page="topup"] .topup-amount-btn {
  border-radius: 12px;
  border-color: rgba(185, 185, 190, 0.16);
  background: rgba(22, 22, 22, 0.72);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

html[data-page="topup"] .topup-amount-btn:hover {
  border-color: rgba(185, 185, 190, 0.36);
  background: rgba(36, 36, 38, 0.84);
}

html[data-page="topup"] .topup-amount-btn.is-active {
  border-color: rgba(99, 102, 241, 0.72);
  background:
    linear-gradient(180deg, rgba(62, 62, 64, 0.9), rgba(29, 29, 31, 0.94));
  color: #ffffff;
  box-shadow: 0 10px 24px -16px rgba(99, 102, 241, 0.65);
}

html[data-page="topup"] .topup-step-label span {
  background: linear-gradient(135deg, #6366f1, #6366f1);
  color: #0f0f10;
  font-weight: 800;
}

html[data-page="topup"] .topup-bank-card {
  border-color: rgba(185, 185, 190, 0.22);
  background: rgba(18, 18, 18, 0.82);
  border-radius: 13px;
}

/* --------------------------------------------------------------------------
   My Keys Vault (`my-keys.html`) & Auth (`login.html`) & Admin (`admin.html`)
   -------------------------------------------------------------------------- */

.keys-main {
  padding: clamp(20px, 2.8vw, 32px) 0 clamp(48px, 5vw, 76px);
}

.keys-head {
  padding: 24px 26px;
  border: 1px solid rgba(185, 185, 190, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(640px 220px at 0% 0%, rgba(99, 102, 241, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(25, 25, 27, 0.9) 0%, rgba(14, 14, 15, 0.96) 100%);
  box-shadow:
    0 24px 56px -38px rgba(28, 28, 30, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.keys-card,
.key-card {
  border: 1px solid rgba(185, 185, 190, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(25, 25, 27, 0.88) 0%, rgba(14, 14, 15, 0.95) 100%);
  box-shadow:
    0 22px 50px -36px rgba(28, 28, 30, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.key-code,
.rent-key {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* Auth / Login surface */
.auth-nav {
  border-bottom: 1px solid rgba(185, 185, 190, 0.14);
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(20px);
}

.auth-card {
  border: 1px solid rgba(185, 185, 190, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(520px 220px at 50% 0%, rgba(99, 102, 241, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(26, 26, 28, 0.92) 0%, rgba(14, 14, 15, 0.97) 100%);
  box-shadow:
    0 32px 76px -44px rgba(35, 35, 37, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.auth-tab.is-active {
  background: linear-gradient(180deg, #6366f1 0%, #6366f1 100%);
  color: #ffffff;
}

/* Admin entry card on login.html?next=admin.html */
.auth-admin {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(99, 102, 241, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(320px 140px at 12% 0%, rgba(99, 102, 241, 0.22), transparent 72%),
    rgba(99, 102, 241, 0.07);
}

.auth-admin[hidden] {
  display: none;
}

.auth-admin-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  color: #c7c9ff;
}

.auth-admin-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  color: #a3a3ad;
}

.auth-admin-btn {
  height: 34px;
  font-size: 11.5px;
  font-weight: 600;
}

.auth-admin-hint {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: #fbbf24;
}

.auth-admin-hint[hidden] {
  display: none;
}

/* Admin navy polish */
.admin-side,
.admin-sidebar {
  background:
    radial-gradient(420px 240px at 50% -10%, rgba(99, 102, 241, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(18, 18, 19, 0.98), rgba(9, 9, 10, 0.99));
  border-color: rgba(185, 185, 190, 0.16);
}

.admin-card,
.admin-panel {
  border-color: rgba(185, 185, 190, 0.18);
  background:
    linear-gradient(180deg, rgba(25, 25, 27, 0.88) 0%, rgba(14, 14, 15, 0.95) 100%);
}

/* Inputs, dialogs, and tables */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border-color: rgba(185, 185, 190, 0.2);
  background: rgba(15, 15, 16, 0.82);
  color: #f6f6f7;
  border-radius: 10px;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(99, 102, 241, 0.72);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

.rent-dialog-panel,
.menu-panel {
  border: 1px solid rgba(185, 185, 190, 0.24);
  background:
    radial-gradient(480px 220px at 50% 0%, rgba(99, 102, 241, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(25, 25, 26, 0.96), rgba(12, 12, 12, 0.99));
  box-shadow: 0 32px 80px -36px rgba(15, 15, 15, 0.95);
}

/* --------------------------------------------------------------------------
   VFX Layers (added by vfx.js) — Toned down for crisp high-DPI formal finish
   -------------------------------------------------------------------------- */

.inf-scanlines {
  position: fixed;
  inset: -10px;
  z-index: 3;
  background: repeating-linear-gradient(
    180deg,
    rgba(185, 185, 190, 0.025) 0px,
    rgba(185, 185, 190, 0.025) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.1;
  pointer-events: none;
}

.kraken-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.kraken-fx i {
  position: absolute;
  bottom: -20px;
  left: var(--x, 50%);
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(191, 191, 194, 0.65), rgba(99, 102, 241, 0));
  opacity: 0.35;
  animation: inf-particle var(--t, 16s) linear var(--delay, 0s) infinite;
}

/* Scroll reveal states */
.vfx-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.vfx-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.vfx-ready [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.vfx-ready [data-reveal-stagger].is-revealed > * {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes inf-grid-move {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 -64px, 0 -64px;
  }
}

@keyframes inf-particle {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 0.38;
  }
  80% {
    opacity: 0.28;
  }
  100% {
    transform: translateY(-105vh) scale(1.1);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Responsive Layout Breakpoints
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .rent-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero-chips {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rent-plans {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    width: 100%;
  }

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

  .inf-scanlines {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Accessibility: respect reduced motion
   -------------------------------------------------------------------------- */

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

  body::before,
  body::after,
  .hero-grid {
    animation: none !important;
  }

  .vfx-ready [data-reveal],
  .vfx-ready [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
  }

  .inf-scanlines {
    display: none;
  }
}
/* ==========================================================================
   XENON-STYLE DARK-GRAY REDESIGN (appended override layer)
   Monochrome graphite surfaces + a single indigo accent, floating header
   pill, oversized gradient wordmark and KPI bento.
   ========================================================================== */

:root {
  --bg: #08090a;
  --bg-2: #050506;
  --fg: #f4f4f5;
  --card: rgba(24, 24, 26, 0.86);
  --card-hover: rgba(31, 31, 34, 0.94);
  --card-fg: #f4f4f5;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --secondary: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.07);
  --primary: #6366f1;
  --primary-fg: #ffffff;
  --emerald: #818cf8;
  --amber: #d4d4d8;
  --ring: #6366f1;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.16);
  --glow: rgba(99, 102, 241, 0.42);
  --glow-soft: rgba(99, 102, 241, 0.14);

  --inf-bg-0: #08090a;
  --inf-bg-1: #0b0b0c;
  --inf-navy: #151517;
  --inf-blue: #6366f1;
  --inf-blue-2: #818cf8;
  --inf-cyan: #a5b4fc;
  --inf-line: rgba(255, 255, 255, 0.05);
}

/* ---------- Canvas: flat graphite, no moving grid ---------- */

html {
  background: #08090a;
}

body,
html[data-page="topup"] body {
  background-color: #08090a;
  background-image:
    radial-gradient(1100px 560px at 50% -16%, rgba(255, 255, 255, 0.06), transparent 68%),
    linear-gradient(180deg, #08090a 0%, #0a0a0b 52%, #08090a 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--fg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block !important;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  background-position: 0 0, 0 0;
  -webkit-mask-image: radial-gradient(90% 78% at 50% 20%, #000 0%, rgba(0, 0, 0, 0.55) 52%, transparent 88%);
  mask-image: radial-gradient(90% 78% at 50% 20%, #000 0%, rgba(0, 0, 0, 0.55) 52%, transparent 88%);
  animation: inf-grid-slide 16s linear infinite;
  pointer-events: none;
  will-change: background-position;
}

@keyframes inf-grid-slide {
  from { background-position: 0 0, 0 0; }
  to { background-position: 72px 0, 72px 0; }
}

body::after {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(255, 255, 255, 0.025), transparent 70%),
    radial-gradient(130% 100% at 50% 45%, transparent 52%, rgba(0, 0, 0, 0.55) 100%);
}

::selection {
  background: rgba(99, 102, 241, 0.45);
  color: #ffffff;
}

::-webkit-scrollbar-track {
  background: #0a0a0b;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2d;
  border: 2px solid #0a0a0b;
}

* {
  scrollbar-color: #2f2f33 #0a0a0b;
}

/* ---------- Floating header pill ---------- */

.site {
  padding-top: 92px;
}

.nav,
.nav.is-scrolled {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(1120px, calc(100vw - 32px));
  height: 62px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
}

/* The top-up page ships its own opaque charcoal header in styles.css.
   Override it with the same specificity so every page keeps the transparent
   floating header (text only, over the sliding grid). */
html[data-page="topup"] .nav,
html[data-page="topup"] .nav.is-scrolled {
  background: transparent;
  background-image: none;
  border: 0;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-inner {
  height: 60px;
  padding-inline: 10px;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
}

.brand {
  gap: 9px;
  padding: 4px 6px;
  border-radius: 6px;
  border-color: transparent;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: transparent;
}

.brand img,
.auth-brand img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  filter: none;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
}

.brand-name::after {
  display: none;
}

.nav-links {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-link {
  height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: #d4d4d8;
}

.nav-links .nav-link .icon {
  display: none;
}

.nav-links .nav-link {
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  opacity: 0.5;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
  opacity: 0.82;
  background: transparent;
  box-shadow: none;
}

.nav-link.is-active {
  color: #ffffff;
  opacity: 1;
  background: transparent;
  box-shadow: none;
}

.nav-link::after {
  display: none;
}

.nav-actions {
  gap: 8px;
}

.lang-switch {
  height: 36px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #a1a1aa;
}

.lang-btn.is-active {
  background: #6366f1;
  color: #ffffff;
  box-shadow: none;
}

.icon-btn,
.admin-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
}

.admin-btn:hover,
.icon-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.login-btn,
.nav-user {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.login-btn:hover,
.nav-user:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: none;
  box-shadow: none;
}

.login-btn .icon,
.nav-user .icon {
  width: 18px;
  height: 18px;
  color: inherit;
}

.nav-balance {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f4f5;
  box-shadow: none;
  text-decoration: none;
}

a.nav-balance:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

/* ---------- Shared buttons ---------- */

.btn-primary,
.btn-secondary {
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.btn-primary {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px -16px rgba(99, 102, 241, 0.9);
}

.btn-primary:hover {
  background: #575ae8;
  border-color: #575ae8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 14px 30px -16px rgba(99, 102, 241, 0.95);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Homepage hero (Xenon-style) ---------- */

body.is-home main {
  display: block;
  gap: 0;
  padding: 0;
}

.hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 92px);
  min-height: calc(100dvh - 92px);
  padding: clamp(24px, 4vw, 56px) 0;
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.hero-title {
  margin: 0;
  font-size: clamp(52px, 8.4vw, 104px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #56565e 0%, #c2c2c9 40%, #ffffff 62%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: none;
  animation: none;
  text-wrap: balance;
}

.hero-tagline {
  margin: 20px 0 0;
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 500;
  line-height: 1.5;
  color: #e4e4e7;
}

.hero-desc {
  margin: 10px auto 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.7;
  color: #8f8f96;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn .icon {
  transition: transform 0.2s ease;
}

.hero-btn-primary {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 26px -16px rgba(99, 102, 241, 0.95);
}

.hero-btn-primary:hover {
  background: #575ae8;
  border-color: #575ae8;
  transform: translateY(-1px);
}

.hero-btn-primary:hover .icon {
  transform: translateX(3px);
}

.hero-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: none;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.hero-chips > li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-chips > li:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: #e4e4e7;
}

.hero-chips .icon {
  width: 13px;
  height: 13px;
  color: #818cf8;
}

/* ---------- Contact strip ---------- */

.home-contact-section {
  padding: 0 0 clamp(48px, 6vw, 88px);
  margin-top: 0;
}

.home-contact {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(40, 40, 40, 0.26);
  box-shadow: inset 2px 4px 16px 0 rgba(248, 248, 248, 0.045);
}

.home-contact-link {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
}

.home-contact-link:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Neutralise remaining accent surfaces ---------- */

.rent-hero {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(99, 102, 241, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(26, 26, 28, 0.94) 0%, rgba(10, 10, 11, 0.97) 100%);
  box-shadow: 0 30px 80px -52px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.plan-card,
.plan-option,
.rent-features,
.rent-steps,
.rent-buy,
.buy-summary,
.auth-card {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(40, 40, 40, 0.24);
}

.plan-card.is-popular {
  border-color: rgba(99, 102, 241, 0.5);
  background:
    radial-gradient(340px 180px at 82% 0%, rgba(99, 102, 241, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(32, 32, 35, 0.95), rgba(10, 10, 12, 0.96));
  box-shadow: 0 26px 70px -40px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.plan-badge {
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 0 18px -4px rgba(99, 102, 241, 0.9);
}

.section-title h2 {
  background: linear-gradient(100deg, #ffffff 10%, #d4d4d8 60%, #8f8f96 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section-title .icon {
  color: #a5b4fc;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.45));
}

.section-head::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08), transparent 80%);
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .hero-title {
    font-size: clamp(52px, 12vw, 84px);
  }
}

@media (max-width: 767px) {
  .site {
    padding-top: 82px;
  }

  .nav-links {
    display: none;
  }

  .nav,
  .nav.is-scrolled {
    top: 10px;
    width: calc(100vw - 20px);
    height: 58px;
  }

  .nav-inner {
    height: 56px;
    padding-inline: 8px;
  }

  .brand-name {
    font-size: 13px;
  }

  .login-btn {
    width: 36px;
    height: 36px;
    padding: 0;
  }

  .login-btn .icon {
    margin: 0;
  }

  .login-btn span {
    display: none;
  }

  .lang-switch {
    height: 34px;
  }

  .icon-btn,
  .admin-btn {
    width: 34px;
    height: 34px;
  }

  .hero-section {
    min-height: calc(100vh - 82px);
    min-height: calc(100dvh - 82px);
    padding: 20px 0 32px;
  }

  .hero-title {
    font-size: clamp(44px, 14vw, 64px);
  }

  .hero-tagline {
    margin-top: 16px;
    font-size: 14.5px;
  }

  .hero-desc {
    font-size: 13px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-btn {
    transition: none !important;
  }
}

/* ---------- Header alignment: centered nav links ---------- */
@media (min-width: 768px) {
  .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
  }

  .nav-links {
    grid-column: 2;
    justify-self: center;
    margin-left: 0;
  }

  .nav-actions {
    grid-column: 3;
    justify-self: end;
  }
}

/* ---------- Page transitions ---------- */

@keyframes inf-page-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.994);
    filter: blur(6px);
  }
  60% {
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes inf-nav-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

main {
  animation: inf-page-in 0.62s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

.nav {
  animation: inf-nav-in 0.5s cubic-bezier(0.22, 0.8, 0.28, 1) backwards;
}

body.is-leaving main {
  animation: none;
  opacity: 0;
  transform: translateY(-10px) scale(0.996);
  filter: blur(4px);
  transition:
    opacity 0.24s ease,
    transform 0.24s cubic-bezier(0.4, 0, 1, 1),
    filter 0.24s ease;
}

body.is-leaving .nav {
  opacity: 0;
  transition: opacity 0.18s ease;
}

body.is-leaving .toast {
  opacity: 0;
  transition: opacity 0.18s ease;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  main,
  .nav {
    animation: none !important;
  }

  body.is-leaving main,
  body.is-leaving .nav,
  body.is-leaving .toast {
    transition: none !important;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Even canvas: flat graphite + dithered glow
   The old layered near-black gradients (#08090a -> #0a0a0b) only differ by a
   couple of 8-bit levels, so they rendered as uneven blocks/bands. The canvas
   is now a single flat base with one soft glow, dithered by a fine noise layer.
   -------------------------------------------------------------------------- */

html {
  background-color: #08090a;
}

body,
html[data-page="topup"] body {
  background-color: #08090a;
  background-image:
    radial-gradient(820px 460px at 50% 6%, rgba(99, 102, 241, 0.075), transparent 72%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body::after {
  background: none;
}

/* The old scanline veil adds a faint screen-door texture; the flat canvas
   reads cleaner without it. */
.inf-scanlines {
  display: none;
}

/* --------------------------------------------------------------------------
   Homepage footer — recent purchase + socials (index.html only)
   -------------------------------------------------------------------------- */

.home-footer {
  position: relative;
  z-index: 1;
  padding: 40px 0 72px;
}

.home-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.recent-purchase {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(560px, 100%);
  padding: 16px 26px 16px 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(38, 38, 41, 0.55);
  box-shadow:
    0 30px 70px -46px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.recent-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(99, 102, 241, 0.35));
}

.recent-lines {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  transition: opacity 0.17s ease, transform 0.17s ease;
}

.recent-purchase.is-swapping .recent-lines {
  opacity: 0;
  transform: translateY(4px);
}

.recent-count {
  flex: 0 0 auto;
  margin-left: 4px;
  padding: 4px 9px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  color: #a5b4fc;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Store sidebar placement: fills the left column under the steps card. */
.store-recent {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.recent-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 5px;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #85858d;
}

.recent-lead {
  color: #85858d;
}

.recent-user {
  color: #e4e4e7;
}

.recent-amount {
  color: #7c9dff;
  font-weight: 600;
}

.recent-time {
  color: #9a9aa2;
}

.recent-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: #f4f4f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.socials-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1;
  color: #9a9aa2;
  text-align: center;
}

.socials-dot {
  font-size: 11px;
  color: #5f5f68;
}

.socials-dot[hidden] {
  display: none;
}

.socials-label span {
  margin: 0;
  color: inherit;
}

.socials-label .socials-dot {
  color: #5f5f68;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 46px);
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.socials a {
  position: relative;
  padding: 2px 0;
  font-size: clamp(22px, 3.1vw, 30px);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: #ffffff;
  opacity: 0.38;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

/* Equal outer boxes so the middle word lands exactly on the page axis under
   the label, while Youtube/Instagram stay close to it. */
.socials a:first-child,
.socials a:last-child {
  min-width: 4.9em;
  text-align: center;
}

.socials a:hover,
.socials a:focus-visible,
.socials a:active {
  opacity: 1;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.3);
  outline: none;
}

@media (max-width: 639px) {
  .home-footer {
    padding: 24px 0 56px;
  }

  .home-footer-inner {
    gap: 18px;
  }

  .recent-purchase {
    gap: 12px;
    padding: 12px 16px;
    border-radius: 22px;
  }

  .recent-logo {
    width: 42px;
    height: 42px;
  }

  .recent-meta {
    font-size: 10.5px;
  }

  .recent-title {
    font-size: 13.5px;
  }

  .recent-count {
    padding: 3px 7px;
    font-size: 9.5px;
  }

  .socials {
    gap: 14px;
    width: 100%;
  }

  .socials a {
    font-size: 19px;
  }
}

@media (max-width: 479px) {
  /* Narrow phones: keep the title readable and drop the optional counter. */
  .recent-count {
    display: none;
  }
}

/* Fine grain dither — kills 8-bit banding without adding visible texture. */
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.045;
}

/* ---------- Manual key stock + separated key/script ---------- */
.buy-summary-value.buy-stock-value {
  color: var(--fg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#rent-stock-row.is-out .buy-stock-value,
#rent-stock-row.is-out > span:first-child {
  color: var(--muted-2);
}

.store-cta.is-disabled,
.store-cta[aria-disabled="true"] {
  opacity: 0.38;
  pointer-events: none;
  filter: grayscale(0.4);
  cursor: not-allowed;
}

.key-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(185, 185, 190, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.key-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted-2, #8f8f99);
}

.key-section .key-value-row {
  margin: 0;
}

@media (max-width: 560px) {
  .key-section .key-value-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .key-section .key-value-row .btn {
    width: 100%;
  }
}

.key-card.is-expired {
  opacity: 0.62;
}

.key-card.is-expired .key-value-row .btn {
  opacity: 0.5;
}

/* Footer words that have no URL yet stay visible but are not links. */
.socials .social-word {
  padding: 2px 0;
  font-size: clamp(22px, 3.1vw, 30px);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: #ffffff;
  opacity: 0.38;
  cursor: default;
  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.socials .social-word:hover {
  opacity: 0.88;
}

.socials > .social-word:first-child,
.socials > .social-word:last-child {
  min-width: 4.9em;
  text-align: center;
}

/* ---------- sold-out plans: dim + not clickable, no wording ---------- */
.plan-option.is-out {
  /* entry animations animate opacity, so this must win the cascade */
  opacity: 0.38 !important;
}

.plan-option.is-out:disabled {
  cursor: not-allowed;
}

.plan-option.is-out:hover {
  border-color: var(--border);
  background: transparent;
}

.plan-option.is-out.is-selected {
  border-color: var(--border);
  box-shadow: none;
  background: transparent;
}
