/* ============================================================
   css/style.css — Neon54 | Neumorphic Pastel Neon Theme
   Prefix: n54-  (all custom classes)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 150px; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ol, ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* ── Palette ── */
  --bg:            #E6E6FA;
  --bg-deep:       #d6d6ee;
  --surface:       #E6E6FA;
  --cyan:          #00FFFF;
  --cyan-glow:     rgba(0, 255, 255, 0.45);
  --pink:          #FF69B4;
  --pink-glow:     rgba(255, 105, 180, 0.45);
  --primary:       #6a35d4;
  --primary-lt:    #9160e8;
  --txt:           #2e2e52;
  --txt-muted:     #7272a0;
  --border:        #cfcfea;

  /* ── Neumorphic Shadows ── */
  --neu-out:       6px 6px 14px #c8c8e8, -6px -6px 14px #ffffff;
  --neu-out-sm:    3px 3px 8px  #c8c8e8, -3px -3px 8px  #ffffff;
  --neu-out-lg:    10px 10px 22px #c0c0e0, -10px -10px 22px #ffffff;
  --neu-in:        inset 5px 5px 11px #c4c4e4, inset -5px -5px 11px #ffffff;
  --neu-hover:     9px 9px 20px #b8b8da, -9px -9px 20px #ffffff;

  /* ── Typography ── */
  --ff-head:       'Syne', sans-serif;
  --ff-body:       'DM Sans', sans-serif;

  /* ── Spacing & Radius ── */
  --r-xs:          6px;
  --r-sm:          10px;
  --r-md:          16px;
  --r-lg:          24px;
  --r-xl:          32px;
  --r-pill:        999px;

  /* ── Header height ── */
  --header-h:      68px;

  /* ── Transitions ── */
  --tr:            0.25s ease;
  --tr-slow:       0.4s ease;
}

/* ─── CONTAINER ─────────────────────────────────────────── */
.n54-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── HEADER / TOPBAR ───────────────────────────────────── */
.n54-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(180, 180, 220, 0.35);
  border-bottom: 1px solid var(--border);
}

.n54-bar__in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.n54-logo {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  line-height: 1;
}

.n54-logo em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}

/* ── Navigation ── */
.n54-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.n54-nav__lnk {
  display: inline-block;
  padding: 6px 11px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--txt);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background var(--tr), color var(--tr);
}

.n54-nav__lnk:hover {
  background: var(--bg-deep);
  color: var(--primary);
}

.n54-nav__lnk--on {
  color: var(--primary);
  font-weight: 700;
}

/* Dropdown group */
.n54-nav__grp {
  position: relative;
}

.n54-nav__drp {
  position: absolute;
  left: 0;
  min-width: 190px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--neu-out-lg);
  border: 1px solid var(--border);
  padding: 8px;
  display: none;
  z-index: 200;
}

.n54-nav__grp:hover .n54-nav__drp {
  display: block;
}

.n54-nav__drp a {
  display: block;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--txt);
  border-radius: var(--r-sm);
  transition: background var(--tr), color var(--tr);
}

.n54-nav__drp a:hover {
  background: var(--bg-deep);
  color: var(--primary);
}

/* Auth buttons cluster */
.n54-bar__auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Mobile hamburger */
.n54-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: var(--r-sm);
  box-shadow: var(--neu-out-sm);
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.n54-toggle span,
.n54-toggle::before,
.n54-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
  pointer-events: none;
}

.n54-toggle::before { content: ''; }
.n54-toggle::after  { content: ''; }

/* ─── BUTTONS ───────────────────────────────────────────── */
.n54-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
  border: none;
  transition: transform var(--tr), box-shadow var(--tr);
  white-space: nowrap;
}

.n54-btn:hover {
  transform: translateY(-1px);
}

/* Primary */
.n54-btn--prime {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
  color: #fff;
  box-shadow: var(--neu-out-sm);
}

.n54-btn--prime:hover {
  box-shadow: 0 6px 20px rgba(106, 53, 212, 0.4);
}

/* Ghost / Outline */
.n54-btn--ghost {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--neu-out-sm);
  border: 1.5px solid var(--border);
}

.n54-btn--ghost:hover {
  color: var(--pink);
  border-color: var(--pink);
}

/* CTA — neon pop, only these glow */
.n54-btn--fire {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--pink) 100%);
  color: #1a0033;
  font-size: 1.0625rem;
  padding: 15px 36px;
  font-weight: 700;
  border-radius: var(--r-pill);
  box-shadow: 0 0 20px var(--cyan-glow), 0 0 20px var(--pink-glow);
  letter-spacing: 0.2px;
  border: none;
}

.n54-btn--fire:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px var(--cyan-glow), 0 0 34px var(--pink-glow);
}

/* Small */
.n54-btn--xs {
  padding: 6px 14px;
  font-size: 0.75rem;
}

/* ─── HERO / SPLASH ─────────────────────────────────────── */
.n54-splash {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 70px 20px 60px;
}

.n54-splash__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(140deg, #dbd6f5 0%, #e8efff 50%, #f0ddf8 100%);
}

.n54-splash__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 20% 50%, rgba(0, 255, 255, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 55% 70% at 80% 50%, rgba(255, 105, 180, 0.12) 0%, transparent 65%);
}

.n54-splash__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, rgba(106, 53, 212, 0.07) 0%, transparent 60%);
}

.n54-splash__cnt {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.n54-splash__ttl {
  font-family: var(--ff-head);
  font-size: clamp(1.875rem, 4.5vw, 3.125rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.18;
  margin-bottom: 6px;
}

.n54-splash__ttl span {
  color: var(--pink);
  text-shadow: 0 0 16px rgba(255, 105, 180, 0.45);
}

/* Bonus box inside hero */
.n54-splash__box {
  background: var(--surface);
  box-shadow: var(--neu-out);
  border-radius: var(--r-lg);
  padding: 22px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 16px auto 22px;
  max-width: 360px;
  width: 100%;
  border: 1px solid var(--border);
}

.n54-splash__blbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--txt-muted);
}

.n54-splash__bval {
  font-family: var(--ff-head);
  font-size: 2.625rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.n54-splash__bdsc {
  font-size: 0.82rem;
  color: var(--txt-muted);
  line-height: 1.5;
}

/* ─── CATEGORIES BAR ────────────────────────────────────── */
.n54-cats {
  background: var(--surface);
  box-shadow: var(--neu-out-sm);
  padding: 14px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.n54-cats .n54-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.n54-cat {
  display: inline-block;
  padding: 7px 20px;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--txt);
  box-shadow: var(--neu-out-sm);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  font-family: var(--ff-body);
  transition: background var(--tr), color var(--tr), box-shadow var(--tr);
}

.n54-cat:hover,
.n54-cat.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(106, 53, 212, 0.35);
}

/* ─── MAIN ──────────────────────────────────────────────── */
.n54-main {
  padding: 44px 20px 64px;
}

/* ─── CONTENT SECTIONS ──────────────────────────────────── */
.n54-sec {
  margin-bottom: 52px;
}

.n54-sec h2 {
  font-family: var(--ff-head);
  font-size: 1.5625rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 22px;
  line-height: 1.25;
}

.n54-sec h3 {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 22px 0 10px;
  line-height: 1.3;
}

.n54-sec p {
  color: var(--txt-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.n54-sec .n54-lead {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--txt);
  line-height: 1.75;
  margin-bottom: 18px;
}

.n54-sec ol {
  padding-left: 22px;
  list-style: decimal;
  margin-bottom: 16px;
}

.n54-sec ul {
  padding-left: 22px;
  list-style: disc;
  margin-bottom: 16px;
}

.n54-sec ol li::marker,
.n54-sec ul li::marker {
  color: var(--primary);
  font-weight: 700;
}

.n54-sec li {
  color: var(--txt-muted);
  line-height: 1.75;
  margin-bottom: 7px;
}

.n54-sec a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(106, 53, 212, 0.35);
  text-underline-offset: 2px;
  transition: color var(--tr), text-decoration-color var(--tr);
}

.n54-sec a:hover {
  color: var(--pink);
  text-decoration-color: var(--pink-glow);
}

/* ─── BONUS CARDS ───────────────────────────────────────── */
.n54-bcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.n54-bcard {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 26px 22px;
  box-shadow: var(--neu-out);
  border: 1px solid var(--border);
  transition: box-shadow var(--tr), transform var(--tr);
}

.n54-bcard:hover {
  box-shadow: var(--neu-hover);
  transform: translateY(-3px);
}

.n54-bcard h4 {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.n54-bcard p {
  font-size: 0.875rem;
  color: var(--txt-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ─── TABLE ─────────────────────────────────────────────── */
.n54-twrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: var(--r-md);
  box-shadow: var(--neu-out);
}

.n54-tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  min-width: 520px;
}

.n54-tbl th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 13px 16px;
  text-align: left;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.n54-tbl th:first-child { border-top-left-radius: var(--r-md); }
.n54-tbl th:last-child  { border-top-right-radius: var(--r-md); }

.n54-tbl td {
  padding: 11px 16px;
  font-size: 0.875rem;
  color: var(--txt-muted);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.n54-tbl tr:last-child td { border-bottom: none; }

.n54-tbl tr:hover td {
  background: var(--bg-deep);
  color: var(--txt);
}

/* ─── FAQ ────────────────────────────────────────────────── */
.n54-faqlist {
  margin: 22px 0;
}

.n54-faqlist dt {
  border-left: 3px solid var(--primary);
  background: var(--bg-deep);
  padding: 10px 16px;
  font-weight: 600;
  color: var(--txt);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
}

.n54-faqlist dd {
  color: var(--txt-muted);
  padding: 8px 18px 14px 18px;
  line-height: 1.75;
  font-size: 0.875rem;
}

/* ── Accordion FAQ ── */
.n54-faq__item {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--neu-out);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 10px;
  transition: box-shadow var(--tr);
}

.n54-faq__item.is-open {
  box-shadow: var(--neu-in);
}

.n54-faq__q {
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--txt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  user-select: none;
  transition: color var(--tr);
  line-height: 1.4;
}

.n54-faq__q:hover { color: var(--primary); }

.n54-faq__q::after {
  content: '+';
  font-family: var(--ff-head);
  font-size: 1.35rem;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--tr-slow);
  font-weight: 400;
}

.n54-faq__item.is-open .n54-faq__q {
  color: var(--primary);
}

.n54-faq__item.is-open .n54-faq__q::after {
  transform: rotate(45deg);
}

.n54-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--tr-slow);
}

.n54-faq__item.is-open .n54-faq__a {
  max-height: 520px;
}

.n54-faq__a p {
  padding: 0 20px 18px;
  font-size: 0.875rem;
  color: var(--txt-muted);
  line-height: 1.75;
  margin-bottom: 0;
}

/* ─── CARDS GRID ────────────────────────────────────────── */
.n54-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.n54-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 28px 24px;
  box-shadow: var(--neu-out);
  border: 1px solid var(--border);
  transition: box-shadow var(--tr), transform var(--tr);
}

.n54-card:hover {
  box-shadow: var(--neu-hover);
  transform: translateY(-2px);
}

.n54-card__ico {
  font-size: 2.25rem;
  margin-bottom: 14px;
  line-height: 1;
}

.n54-card h3 {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.n54-card p {
  font-size: 0.875rem;
  color: var(--txt-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ─── TWO-COLUMN LAYOUT ─────────────────────────────────── */
.n54-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin: 24px 0;
}

.n54-duo--mid { align-items: center; }

.n54-duo__txt h3 {
  font-family: var(--ff-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.25;
}

.n54-duo__txt p {
  color: var(--txt-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.n54-duo__med {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--neu-out);
}

/* ─── STATS BAR ─────────────────────────────────────────── */
.n54-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--neu-out);
  padding: 28px 24px;
  margin: 24px 0;
  text-align: center;
  border: 1px solid var(--border);
}

.n54-stat__val {
  font-family: var(--ff-head);
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.n54-stat__lbl {
  font-size: 0.72rem;
  color: var(--txt-muted);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-weight: 600;
}

/* ─── CTA BLOCK ─────────────────────────────────────────── */
.n54-cta-blk {
  background: linear-gradient(140deg, #dcd6f8 0%, #e6deff 50%, #f0e4ff 100%);
  border-radius: var(--r-xl);
  padding: 52px 36px;
  text-align: center;
  box-shadow: var(--neu-out);
  border: 1px solid var(--border);
  margin: 36px 0;
}

.n54-cta-blk h2 {
  font-family: var(--ff-head);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.2;
  border: none;
  padding: 0;
}

.n54-cta-blk p {
  color: var(--txt-muted);
  margin-bottom: 26px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
}

/* ─── NUMBERED LIST ─────────────────────────────────────── */
.n54-numlist {
  counter-reset: n54c;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.n54-numlist li {
  counter-increment: n54c;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: var(--neu-out-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--txt-muted);
  line-height: 1.65;
}

.n54-numlist li::before {
  content: counter(n54c);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--ff-head);
  margin-top: 1px;
}

/* ─── STYLED LIST ───────────────────────────────────────── */
.n54-slist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 16px 0;
}

.n54-slist li {
  padding: 9px 14px 9px 38px;
  position: relative;
  color: var(--txt-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  background: var(--surface);
  border-radius: var(--r-sm);
  box-shadow: var(--neu-out-sm);
  border: 1px solid var(--border);
}

.n54-slist li::before {
  content: '✦';
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 0.7rem;
  text-shadow: 0 0 8px var(--cyan-glow);
}

/* ─── FOOTER ────────────────────────────────────────────── */
.n54-foot {
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(180, 180, 220, 0.25);
  padding: 52px 0 0;
}

.n54-foot__in {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.n54-foot__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.n54-foot__brand .n54-logo {
  font-size: 1.25rem;
  display: inline-block;
  margin-bottom: 12px;
}

.n54-foot__brand p {
  font-size: 0.8125rem;
  color: var(--txt-muted);
  max-width: 210px;
  line-height: 1.65;
}

.n54-foot__lnks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
}

.n54-foot__lnks a {
  font-size: 0.8125rem;
  color: var(--txt-muted);
  transition: color var(--tr);
}

.n54-foot__lnks a:hover { color: var(--primary); }

.n54-foot__col h4 {
  font-family: var(--ff-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--txt);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.n54-foot__col ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  list-style: none;
  padding: 0;
}

.n54-foot__col ul a {
  font-size: 0.8125rem;
  color: var(--txt-muted);
  transition: color var(--tr);
}

.n54-foot__col ul a:hover { color: var(--primary); }

/* Bottom bar */
.n54-foot__btm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.n54-foot__btmlnks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.n54-foot__btmlnks a {
  font-size: 0.74rem;
  color: var(--txt-muted);
  transition: color var(--tr);
}

.n54-foot__btmlnks a:hover { color: var(--primary); }

/* Language switcher */
.n54-foot__lang {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.n54-foot__langlnk {
  font-size: 0.74rem;
  color: var(--txt-muted);
  padding: 3px 9px;
  border-radius: var(--r-xs);
  transition: background var(--tr), color var(--tr);
}

.n54-foot__langlnk:hover,
.n54-foot__langlnk.active {
  background: var(--primary);
  color: #fff;
}

/* Disclaimer */
.n54-foot__disc {
  font-size: 0.73rem;
  color: var(--txt-muted);
  line-height: 1.65;
  text-align: center;
  padding: 16px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* Badges row */
.n54-foot__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 14px 0 6px;
}

/* Copyright */
.n54-foot__copy {
  font-size: 0.74rem;
  color: var(--txt-muted);
  text-align: center;
  padding: 10px 0 22px;
}

/* ─── BADGE ─────────────────────────────────────────────── */
.n54-badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: var(--bg-deep);
  color: var(--txt-muted);
  box-shadow: var(--neu-out-sm);
}

.n54-badge--cyan {
  background: rgba(0, 255, 255, 0.14);
  color: #006f6f;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.18);
}

.n54-badge--pink {
  background: rgba(255, 105, 180, 0.14);
  color: #9a2f6e;
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.18);
}

/* ─── PAGE HEADER ───────────────────────────────────────── */
.n54-pghead {
  background: var(--surface);
  box-shadow: var(--neu-out-sm);
  border-bottom: 1px solid var(--border);
  padding: 36px 20px;
  text-align: center;
}

.n54-pghead h1 {
  font-family: var(--ff-head);
  font-size: clamp(1.5rem, 3.5vw, 2.375rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

/* ─── BREADCRUMB ────────────────────────────────────────── */
.n54-crumb {
  font-size: 0.8125rem;
  color: var(--txt-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.n54-crumb a {
  color: var(--primary);
  transition: color var(--tr);
}

.n54-crumb a:hover { color: var(--pink); }

.n54-crumb span { opacity: 0.55; }

/* ─── MODAL ─────────────────────────────────────────────── */
.n54-modal {
  position: fixed;
  inset: 0;
  background: rgba(40, 38, 72, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tr), visibility var(--tr);
  padding: 20px;
}

.n54-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.n54-modal__box {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 44px 38px;
  box-shadow: 0 24px 64px rgba(80, 55, 160, 0.22);
  position: relative;
  max-width: 500px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
}

.n54-modal__cls {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.625rem;
  line-height: 1;
  color: var(--txt-muted);
  cursor: pointer;
  padding: 6px;
  transition: color var(--tr), transform var(--tr);
  font-family: var(--ff-head);
}

.n54-modal__cls:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

/* ─── BACK TO TOP ───────────────────────────────────────── */
.n54-totop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--cyan) 0%, var(--pink) 100%);
  box-shadow: 0 0 18px var(--cyan-glow), 0 0 18px var(--pink-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a0033;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr), transform var(--tr), box-shadow var(--tr);
  z-index: 90;
  font-family: var(--ff-head);
}

.n54-totop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.n54-totop:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px var(--cyan-glow), 0 0 28px var(--pink-glow);
}

/* ─── PLACEHOLDER IMAGE ─────────────────────────────────── */
.n54-phimg {
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: var(--neu-in);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ─── WHEEL BUTTON (special trigger) ───────────────────── */
.n54-wheel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--pink) 100%);
  color: #1a0033;
  box-shadow: 0 0 22px var(--cyan-glow), 0 0 22px var(--pink-glow);
  transition: transform var(--tr), box-shadow var(--tr);
}

.n54-wheel-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 36px var(--cyan-glow), 0 0 36px var(--pink-glow);
}

/* ─── RESPONSIVE: ≤ 1080px ──────────────────────────────── */
@media (max-width: 1080px) {

  /* Hide nav & auth; show hamburger */
  .n54-nav,
  .n54-bar__auth {
    display: none;
  }

  .n54-toggle {
    display: flex;
  }

  /* Open state — nav slides down */
  .n54-bar.nav-open {
    position: sticky;
  }

  .n54-bar.nav-open .n54-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(160, 150, 220, 0.25);
    padding: 12px 16px 16px;
    gap: 2px;
    z-index: 99;
  }

  .n54-bar.nav-open .n54-bar__auth {
    display: flex;
    position: absolute;
    top: calc(var(--header-h) + 200px);
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(160, 150, 220, 0.2);
    z-index: 98;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .n54-nav__lnk {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.9375rem;
  }

  .n54-nav__drp {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    padding: 4px 0 4px 14px;
    margin-left: 14px;
    background: transparent;
  }

  .n54-nav__grp:hover .n54-nav__drp,
  .n54-nav__grp.is-open .n54-nav__drp {
    display: block;
  }

  /* Grid adjustments */
  .n54-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .n54-foot__top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* ─── RESPONSIVE: ≤ 768px ───────────────────────────────── */
@media (max-width: 768px) {

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

  .n54-duo {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .n54-foot__top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .n54-foot__btm {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .n54-bcards {
    grid-template-columns: 1fr;
  }

  .n54-cta-blk {
    padding: 36px 22px;
  }
}

/* ─── RESPONSIVE: ≤ 600px ───────────────────────────────── */
@media (max-width: 600px) {

  .n54-splash {
    min-height: 260px;
    padding: 44px 16px 40px;
  }

  .n54-splash__ttl {
    font-size: 1.5625rem;
  }

  .n54-splash__box {
    padding: 18px 22px;
    max-width: 100%;
  }

  .n54-splash__bval {
    font-size: 2.125rem;
  }

  .n54-main {
    padding: 28px 14px 52px;
  }

  .n54-sec {
    margin-bottom: 36px;
  }

  .n54-sec h2 {
    font-size: 1.3125rem;
  }

  .n54-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 16px;
    gap: 12px;
  }

  .n54-stat__val {
    font-size: 1.625rem;
  }

  .n54-btn--fire {
    width: 100%;
    padding: 15px 24px;
  }

  .n54-cta-blk {
    padding: 30px 18px;
    border-radius: var(--r-lg);
    margin: 24px 0;
  }

  .n54-cta-blk h2 {
    font-size: 1.4rem;
  }

  .n54-modal__box {
    padding: 28px 20px;
    border-radius: var(--r-lg);
  }

  .n54-pghead {
    padding: 24px 16px;
  }

  .n54-totop {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }

  .n54-foot__brand p {
    max-width: 100%;
  }

  .n54-twrap {
    border-radius: var(--r-sm);
  }
}
