/* Hyperion premium layer: a warm-gold, server-list inspired finish on top of
   the existing storefront system. Loaded last so it can refine, not replace,
   the layouts in styles.css and professional.css. */
:root {
  /* Authoritative Hyperion palette: one warm white, one muted grey, one gold. */
  --bg: #0a0c10;
  --sf: #12161c;
  --so: #1a2027;
  --bd: #2b333c;
  --td: #f2efe8;
  --tm: #9aa3ad;
  --tt: #6b747e;
  --ac: #d9b26a;
  --ah: #c49a52;
  --ad: #f0d7a1;
  --al: #211b10;
  --aqua: #f0d7a1;
  --zone: #101419;
  --zone2: #0b0e12;
  --gold: #d9b26a;
  --gold-bright: #f0d7a1;
  --gold-deep: #a9823f;
  --gold-rgb: 217, 178, 106;
  --gold-line: rgba(217, 178, 106, .22);
  --panel: #151a20;
  --panel-2: #1b2229;
  --panel-3: #222a32;
  --line: #333c46;
  --line-soft: rgba(255, 255, 255, .07);
  --shadow-lg: 0 30px 70px -42px rgba(0, 0, 0, .95);
}

html { scrollbar-color: #3b444e #101419; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #101419; }
::-webkit-scrollbar-thumb { background: #3a434d; border: 3px solid #101419; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #55606b; }
::selection { background: rgba(217, 178, 106, .3); color: #fff; }

body {
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(217, 178, 106, .09), transparent 62%),
    radial-gradient(760px 440px at 92% 0%, rgba(112, 143, 168, .07), transparent 60%),
    #0a0c10;
}
body::before {
  display: block;
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}
/* Keep page layers above the decorative background. Never include `.modal`
   here: it must stay `position: fixed` so dialogs overlay the viewport instead
   of rendering in normal flow at the bottom of the document. */
#app, #admin-page, .toast-wrap { position: relative; z-index: 1; }

/* Header ------------------------------------------------------------------ */
.top-zone.site-header {
  position: sticky;
  top: 0;
  background: rgba(11, 14, 18, .82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 18px 40px -34px #000;
}
.top-zone.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 178, 106, .38), transparent);
}
.site-header .brand { transition: transform .18s ease; }
.site-header .brand:hover { transform: translateY(-1px); }
.site-header .brand img { filter: drop-shadow(0 6px 18px rgba(217, 178, 106, .18)); }
.site-header .nav-link { position: relative; transition: color .18s ease, background .18s ease; }
.site-header .nav-link.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.site-header .header-right .abtn-ac { box-shadow: 0 10px 24px -14px rgba(217, 178, 106, .7); }

/* Hero -------------------------------------------------------------------- */
.hero-banner {
  background:
    radial-gradient(720px 300px at 82% 8%, rgba(217, 178, 106, .13), transparent 66%),
    radial-gradient(520px 320px at 12% 110%, rgba(93, 120, 143, .12), transparent 66%),
    linear-gradient(112deg, #1d2429 0%, #151a20 58%, #241f16 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), var(--shadow-lg);
  overflow: hidden;
}
.hero-banner::before {
  border-color: rgba(217, 178, 106, .16);
  box-shadow: 0 0 0 55px rgba(217, 178, 106, .03), 0 0 0 110px rgba(217, 178, 106, .022);
}
.hero-badge { display: inline-flex; align-items: center; gap: 9px; }
.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 178, 106, .12), 0 0 14px rgba(217, 178, 106, .5);
}
.hero-title { text-wrap: balance; }
.hero-title span {
  background: linear-gradient(100deg, #f0d7a1 8%, #d9b26a 55%, #b98a45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { color: #c3c7ca; }
.join-card {
  background: linear-gradient(160deg, rgba(27, 34, 41, .96), rgba(17, 22, 27, .96));
  border: 1px solid rgba(217, 178, 106, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px -40px #000;
}
.join-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .8;
}
.jc-ip { transition: border-color .18s ease, background .18s ease; }
.jc-ip:hover { border-color: rgba(217, 178, 106, .6); background: #232b33; }
.jc-row .dot.on { background: #6ee7a8; box-shadow: 0 0 10px rgba(110, 231, 168, .6); }

/* Shared surfaces --------------------------------------------------------- */
.showcase-heading h2, .quick-help h2 { text-wrap: balance; }
.showcase-kicker { display: inline-flex; align-items: center; gap: 8px; }
.showcase-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
  opacity: .75;
}
.rank-select, .rank-preview, .journey-step, .mc-list-card, .side-card, .blog-card,
.p-card, .quick-help, .leaderboard-link-card, .modal-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 24px 55px -45px #000;
}
.rank-select { transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.rank-select:hover { transform: translateY(-2px); background: #1b2229; }
.rank-select.active {
  background: linear-gradient(150deg, #2a251c, #1d1c19);
  border-color: rgba(217, 178, 106, .65);
}
.rank-preview { background: linear-gradient(160deg, #1a2128, #161b21); }
.rank-preview-copy h3 { letter-spacing: -.04em; }
.rank-preview-buy strong { color: var(--gold-bright); }
.journey-step { transition: transform .18s ease, border-color .18s ease; }
.journey-step:hover { transform: translateY(-2px); border-color: rgba(217, 178, 106, .4); }
.p-card { position: relative; overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.p-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 178, 106, .5), transparent);
  opacity: 0;
  transition: opacity .18s ease;
}
.p-card:hover::after { opacity: 1; }
.p-card:hover { box-shadow: 0 24px 50px -30px #000; }
.abtn { transition: transform .15s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.abtn:active { transform: translateY(1px); }
.abtn-ac { box-shadow: 0 12px 28px -18px rgba(217, 178, 106, .8); }
.abtn-ac:hover { box-shadow: 0 16px 34px -18px rgba(217, 178, 106, .9); }

/* Network status: the server-list signature block ------------------------- */
.mc-list-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #171e24, #12171c);
  border-color: rgba(217, 178, 106, .2);
}
.mc-list-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 178, 106, .55), transparent);
}
.mc-list-title { color: #f2efe8; display: inline-flex; align-items: center; gap: 9px; }
.mc-list-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 0 4px rgba(110, 231, 168, .12), 0 0 12px rgba(110, 231, 168, .5);
}
.mc-row {
  background: linear-gradient(110deg, #202830, #1a2027);
  border-color: #3a444f;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.mc-row:hover { background: linear-gradient(110deg, #252e37, #1c232b); }
.mc-icon { border: 1px solid rgba(217, 178, 106, .22); box-shadow: 0 6px 18px -8px #000; }
.mc-name { letter-spacing: -.01em; }
.mc-players {
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(110, 231, 168, .1);
  border: 1px solid rgba(110, 231, 168, .24);
  color: #a7edc4;
}
.mc-row.off .mc-players { background: rgba(255, 138, 138, .1); border-color: rgba(255, 138, 138, .22); color: #ffb0b0; }
.mc-addr { color: #6b747e; }
.mc-sample { border-top-color: rgba(255, 255, 255, .07); }

/* Sale ribbon ------------------------------------------------------------- */
.sale-banner {
  background: linear-gradient(100deg, rgba(217, 178, 106, .16), rgba(217, 178, 106, .05) 60%, rgba(217, 178, 106, .12));
  border-color: rgba(217, 178, 106, .45);
}
.sale-banner strong { color: var(--gold-bright); }

/* Admin: transactions and staff ------------------------------------------ */
.admin-tx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.admin-tx-stat {
  position: relative;
  overflow: hidden;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(155deg, #1b2229, #151a20);
}
.admin-tx-stat small { display: block; color: #6b747e; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-tx-stat b { display: block; margin: 5px 0 2px; color: #f2efe8; font-size: 26px; line-height: 1; }
.admin-tx-stat span { color: #9aa3ad; font-size: 12px; }
.admin-tx-stat.pending { border-color: rgba(217, 178, 106, .5); background: linear-gradient(155deg, rgba(217, 178, 106, .14), #171c21 70%); }
.admin-tx-stat.pending b { color: var(--gold-bright); }
.admin-tx-stat.delivered { border-color: rgba(110, 231, 168, .3); }
.admin-tx-stat.rejected { border-color: rgba(255, 138, 138, .3); }
.admin-tx-stat.refunded { border-color: rgba(147, 166, 184, .3); }
.abtn-danger { background: #3a1d1f; border: 1px solid #7c3b40; color: #ffb9bc; }
.abtn-danger:hover { background: #482326; border-color: #a34c53; color: #ffd1d3; }
.admin-reject-form { margin-top: 12px; padding: 12px; border: 1px solid rgba(255, 138, 138, .28); border-radius: 9px; background: rgba(255, 138, 138, .05); }
.admin-reject-form textarea { min-height: 56px; }
.row-status.rejected { background: rgba(255, 138, 138, .14); color: #ff9d9d; }
.row-status.active { background: rgba(110, 231, 168, .14); color: #7fe2aa; }
.row-status.disabled { background: rgba(147, 166, 184, .16); color: #a9b5c0; }
.staff-list { max-height: none; }
.staff-record { flex-wrap: wrap; }
.staff-owner-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid rgba(217, 178, 106, .4); border-radius: 99px; color: var(--gold-bright); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.staff-perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.staff-perm-group { padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #171d23; }
.staff-perm-group h5 { margin: 0 0 8px; color: var(--gold-bright); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.staff-perm { display: flex; align-items: flex-start; gap: 9px; padding: 7px 8px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; }
.staff-perm:hover { background: rgba(255, 255, 255, .03); }
.staff-perm.on { border-color: rgba(217, 178, 106, .22); background: rgba(217, 178, 106, .06); }
.staff-perm input { width: auto !important; margin-top: 2px; accent-color: var(--gold); }
.staff-perm b { display: block; color: #f2efe8; font-size: 12px; }
.staff-perm small { display: block; margin-top: 2px; color: #6b747e; font-size: 10.5px; line-height: 1.45; }
.staff-detail .admin-detail-grid select { width: 100%; padding: 8px 10px; color: var(--td); background: #11171c; border: 1px solid #43505b; border-radius: 7px; font: inherit; font-size: 12px; }

/* Accessibility: comfortable tap areas without changing the visual rhythm. */
.footer-links button,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
}
.abtn-xs { min-height: 34px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .admin-tx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-perm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .site-header .nav-link { display: inline-flex; align-items: center; min-height: 40px; }
  .site-header .nav-link.active::after { display: none; }
  .admin-tx-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-tx-stat { padding: 12px; }
  .admin-tx-stat b { font-size: 22px; }
  .hero-title span { background: none; -webkit-text-fill-color: currentColor; color: var(--gold-bright); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .site-header .brand, .rank-select, .journey-step, .p-card, .abtn, .mc-row { transition: none !important; }
}

/* ============================================================
   Loading screen: Hyperion crest
   ============================================================ */
body.splash-active { overflow: hidden; }

#splash.splash {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(760px 520px at 50% 38%, rgba(217, 178, 106, .09), transparent 68%),
    radial-gradient(1100px 720px at 50% -20%, #171c22, #0a0c10 62%);
  transition: opacity .6s ease, visibility .6s ease;
  animation: splashFallback .6s ease 14s forwards;
}
#splash.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 50% 46%, #000 0%, transparent 72%);
}
#splash.splash::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(0, 0, 0, .5) 100%);
}
#splash.splash.done { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-aurora {
  position: absolute;
  inset: -22%;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background:
    radial-gradient(closest-side at 42% 42%, rgba(217, 178, 106, .18), transparent 70%),
    radial-gradient(closest-side at 62% 58%, rgba(120, 146, 172, .12), transparent 72%);
  filter: blur(28px);
  animation: splashDrift 12s ease-in-out infinite alternate;
}
.splash-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: splashRise .8s cubic-bezier(.2, .8, .2, 1) both;
}
.splash-crest {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 36px;
  display: grid;
  place-items: center;
}
.splash-halo {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 178, 106, .22), transparent 62%);
  filter: blur(7px);
  animation: splashBreathe 4.6s ease-in-out infinite;
}
.splash-ring {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(217, 178, 106, .16);
  border-radius: 50%;
}
.splash-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-top-color: rgba(240, 215, 161, .85);
  border-right-color: rgba(217, 178, 106, .28);
  border-radius: 50%;
  animation: splashSpin 3.8s linear infinite;
}
.splash-ring-2 {
  inset: -24px;
  border-style: dashed;
  opacity: .34;
  animation: splashSpin 26s linear infinite reverse;
}
.splash-ring-2::before { display: none; }
.splash-logo {
  position: relative;
  inset: auto;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 18px rgba(217, 178, 106, .2));
  animation: splashBreathe 4.6s ease-in-out infinite;
}
.splash-wordmark {
  font-size: clamp(34px, 7vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .16em;
  text-indent: .16em;
  text-transform: uppercase;
  color: var(--td);
  background: linear-gradient(180deg, #fff 0%, var(--td) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.splash-network {
  margin-top: 12px;
  color: var(--ac);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .58em;
  text-indent: .58em;
  text-transform: uppercase;
}
.splash-flour {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(260px, 70vw);
  margin: 22px auto 0;
  animation: splashRise .8s .08s cubic-bezier(.2, .8, .2, 1) both;
}
.splash-flour i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 178, 106, .55), transparent);
}
.splash-flour b { color: var(--ac); font-size: 10px; line-height: 1; }
.splash-sub {
  margin-top: 16px;
  color: var(--tm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-indent: .26em;
  text-transform: uppercase;
  animation: splashRise .8s .14s cubic-bezier(.2, .8, .2, 1) both;
}
.splash-track {
  position: relative;
  width: min(280px, 72vw);
  height: 2px;
  margin-top: 30px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.splash-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--ac) 35%, var(--ad) 70%, transparent);
  box-shadow: 0 0 14px rgba(217, 178, 106, .5);
  animation: splashTrack 1.5s cubic-bezier(.4, 0, .2, 1) infinite;
}
.splash-domain {
  margin-top: 18px;
  color: var(--tt);
  font-size: 10px;
  letter-spacing: .22em;
}

@keyframes splashRise {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes splashSpin { to { transform: rotate(360deg); } }
@keyframes splashBreathe {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.035); }
}
@keyframes splashTrack {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(300%); }
}
@keyframes splashDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1%, 0) scale(1.06); }
}
@keyframes splashFallback {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (max-width: 520px) {
  .splash-crest { width: 108px; height: 108px; margin-bottom: 30px; }
  .splash-logo { width: 78px; height: 78px; border-radius: 20px; }
  .splash-wordmark { letter-spacing: .12em; text-indent: .12em; }
  .splash-network { letter-spacing: .42em; text-indent: .42em; }
  .splash-sub { letter-spacing: .18em; text-indent: .18em; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #splash.splash, #splash.splash * { animation: none !important; }
  #splash.splash { transition-duration: .01ms; }
  .splash-track span { width: 100%; opacity: .7; }
}
