/* ============================================================
   HydraNetwork Store — Abyss theme (amber accent)
   Design language: dark glass surfaces, rounded-2xl cards,
   soft layered shadows, amber/gold accent (LeaderOS "Abyss").
   ============================================================ */
:root {
  --bg: #0a0a0f;
  --sf: #141418;
  --so: #1a1a22;
  --bd: #2a2a35;
  --ac: #ea8f00;
  --ah: #d07e00;
  --al: #1a1610;
  --ad: #ffcc60;
  --td: #e0e4ea;
  --tm: #8a90a0;
  --tt: #555a68;
  --sh: rgba(0, 0, 0, 0.5);
  --zone: #101018;
  --zone2: #0c0c12;
  --green: #22c55e;
  --red: #f87171;
  --aqua: #55d3ff;
  --bd40: color-mix(in srgb, var(--bd) 40%, transparent);
  --sf90: color-mix(in srgb, var(--sf) 92%, transparent);
}

/* ---- per-server identity (recolors the whole page on switch) ---- */
body[data-server="skyblock"] {
  --ac: #22c55e; --ah: #16a34a; --al: #0d1f12; --ad: #86efac;
  --zone: #0b1710; --zone2: #08110c;
  --bg: #080f0b;
}
body[data-server="boxpvp"] {
  --ac: #e04343; --ah: #c73232; --al: #2e0f0f; --ad: #ff9c9c;
  --zone: #1a0c0c; --zone2: #120808;
  --bg: #100808;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Ubuntu', system-ui, sans-serif;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 220, 35, 0.05), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(0, 180, 140, 0.04), transparent 55%),
    var(--bg);
  color: var(--td);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; cursor: pointer; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.page { padding: 28px 0 100px; }

/* ---- text & surface helpers (mirrors reference) ---- */
.t-d { color: var(--td); }
.t-m { color: var(--tm); }
.t-t { color: var(--tt); }
.t-ac { color: var(--ac); }
.t-w { color: #fff; }
.c-sf { background: var(--sf); }
.c-so { background: var(--so); }
.c-al { background: var(--al); }
.c-ac { background: var(--ac); }
.sh-c { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px -2px var(--sh); }
.sh-n { box-shadow: 0 2px 20px -2px var(--sh); }

/* ============================================================
   Buttons
   ============================================================ */
.abtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700; font-size: 14px;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1.4;
}
.abtn-ac { background: var(--ac); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px -2px var(--sh); }
.abtn-ac:hover { background: var(--ah); }
.abtn-ghost {
  background: rgba(255, 255, 255, 0.06); color: var(--td);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.abtn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.abtn-so { background: var(--so); color: var(--td); border: 1px solid var(--bd); }
.abtn-so:hover { background: color-mix(in srgb, var(--so) 85%, #fff); }
.abtn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.abtn-xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.abtn-lg { padding: 14px 26px; font-size: 15px; border-radius: 14px; }
.abtn-block { width: 100%; }
.abtn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ============================================================
   Top zone
   ============================================================ */
.top-zone {
  position: relative;
  background:
    radial-gradient(1000px 400px at 50% -80px, rgba(255, 220, 35, 0.10), transparent 65%),
    radial-gradient(700px 320px at 10% 0%, rgba(85, 211, 255, 0.06), transparent 55%),
    linear-gradient(180deg, var(--zone), var(--zone2));
  border-bottom: 1px solid var(--bd40);
  padding-bottom: 44px;
  overflow: hidden;
}
.ripple-ring {
  position: absolute; border-radius: 50%;
  border: 3px solid rgba(255, 220, 35, 0.14);
  pointer-events: none; z-index: 0;
  animation: ripple 6s ease-out infinite;
}
.rr1 { width: 120px; height: 120px; top: -40px; left: 12%; }
.rr2 { width: 200px; height: 200px; top: -80px; right: 8%; animation-delay: 2s; }
.rr3 { width: 150px; height: 150px; top: 40px; right: 26%; animation-delay: 4s; }
@keyframes ripple { 0% { transform: scale(0.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.sparkle {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; opacity: 0.5; z-index: 0; pointer-events: none;
  animation: sparkle 3s ease-in-out infinite;
}
.sp1 { top: 60px; left: 20%; } .sp2 { top: 90px; left: 60%; animation-delay: 0.6s; }
.sp3 { top: 30px; right: 30%; animation-delay: 1.2s; }
@keyframes sparkle { 0%, 100% { opacity: 0.15; transform: scale(0.7); } 50% { opacity: 0.7; transform: scale(1.2); } }

.header-row {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
  padding: 22px 0 8px;
}
.header-left { display: flex; justify-content: flex-start; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; }
.brand img { width: 64px; height: 64px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6)); }
.brand-text {
  display: none;
  font-size: 17px; font-weight: 800; letter-spacing: 0.5px; color: var(--td);
}
.brand-text span { color: var(--ac); }

.ip-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--sf);
  border: 1px solid var(--bd40);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px -2px var(--sh);
  transition: all 0.2s;
  position: relative;
}
.ip-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -6px var(--sh); }
.ip-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--al); border-radius: 12px; color: var(--ac);
}
.ip-text { text-align: left; }
.ip-text b { display: block; font-size: 13px; color: var(--td); line-height: 1.3; }
.ip-text small { color: var(--ac); font-size: 11px; font-weight: 600; }
.copy-toast {
  position: absolute; top: -42px; left: 50%; transform: translateX(-50%);
  background: var(--sf); border: 1px solid var(--bd);
  color: var(--td); font-size: 12px; font-weight: 700;
  padding: 7px 14px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  box-shadow: 0 8px 20px -6px var(--sh); white-space: nowrap;
}
.copy-toast.show { opacity: 1; }

/* ============================================================
   Glassy nav
   ============================================================ */
.nav {
  position: sticky; top: 12px; z-index: 100;
  max-width: 1400px; margin: 14px auto 0; padding: 0 16px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px;
  background: var(--sf90);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bd40);
  border-radius: 16px;
  box-shadow: 0 2px 20px -2px var(--sh);
}
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--tm);
  transition: all 0.2s;
}
.nav-link:hover { color: var(--td); background: var(--so); }
.nav-link.active { background: var(--ac); color: #fff; box-shadow: 0 4px 14px -4px var(--ac); }
.nav-user { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.user-chip {
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 6px 12px; border-radius: 12px;
  background: var(--so); border: 1px solid var(--bd);
  cursor: pointer; transition: all 0.2s;
}
.user-chip:hover { background: color-mix(in srgb, var(--so) 85%, #fff); }
.user-name { font-size: 13px; font-weight: 700; color: var(--td); line-height: 1.3; }
.user-credits { color: var(--aqua); font-size: 11px; font-weight: 600; }
.mobile-btn {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--so); border: 1px solid var(--bd);
  border-radius: 12px; color: var(--tm); font-size: 18px;
}

/* ============================================================
   Hero banner
   ============================================================ */
.hero { position: relative; z-index: 1; margin-top: 18px; }
.hero-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid var(--bd40);
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px -2px var(--sh), 0 24px 70px -30px rgba(0,0,0,.8);
  background:
    radial-gradient(800px 420px at 88% -10%, color-mix(in srgb, var(--ac) 24%, transparent), transparent 60%),
    radial-gradient(650px 420px at 0% 115%, color-mix(in srgb, var(--ac) 12%, transparent), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #16161c, #0b0b10 55%, #0a0a0f);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.25));
}
.hero-content { position: relative; z-index: 2; padding: 48px 40px; min-height: 380px; display: flex; flex-direction: column; justify-content: center; max-width: 720px; }
.hero-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; font-size: 28px;
  background: color-mix(in srgb, var(--sf) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--ac) 35%, transparent);
  border-radius: 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  margin-bottom: 18px;
  box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--ac) 60%, transparent);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: var(--ac); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  padding: 7px 14px; border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px -6px var(--ac);
}
.hero-title {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero-title span { color: var(--ad); }
.hero-sub { color: rgba(255, 255, 255, 0.72); font-size: 15px; font-weight: 500; max-width: 520px; margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero-stat { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.9); font-size: 13px; }
.hero-stat b { font-size: 16px; color: #fff; }
.hero-stat .lbl { color: rgba(255, 255, 255, 0.5); font-size: 12px; font-weight: 600; }
.divider { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.2); }

/* Server tabs */
.server-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.server-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px; font-weight: 700; color: var(--tm);
  background: var(--sf);
  border: 1px solid var(--bd);
  transition: all 0.2s;
}
.server-tab:hover { color: var(--td); transform: translateY(-1px); }
.server-tab.active {
  background: var(--al); border-color: var(--ac);
  color: var(--ad);
  box-shadow: 0 0 0 1px var(--ac), 0 6px 18px -8px var(--ac);
}
.server-tab.offline { opacity: 0.55; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tt); }
.dot.on { background: var(--green); box-shadow: 0 0 10px var(--green); }

/* Hero server selector */
.hero-server-selector { margin-bottom: 22px; }
.hero-server-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: 12px 44px 12px 18px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--td);
  background: var(--sf);
  border: 1px solid var(--bd); border-radius: 12px;
  cursor: pointer; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a90a0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.hero-server-select:hover { border-color: color-mix(in srgb, var(--ac) 45%, var(--bd)); }
.hero-server-select:focus { border-color: var(--ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 20%, transparent); }
.hero-server-select option { background: var(--sf); color: var(--td); }

/* Hero category strip (horizontal scroll) */
.hero-category-strip { margin-top: 20px; }
.hero-categories-scroll {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ac) 50%, transparent) transparent;
}
.hero-categories-scroll::-webkit-scrollbar { height: 8px; }
.hero-categories-scroll::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ac) 50%, transparent); border-radius: 8px; }
.hero-categories-scroll::-webkit-scrollbar-track { background: transparent; }
.hero-cat-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--sf);
  border: 1px solid var(--bd); border-radius: 14px;
  cursor: pointer; white-space: nowrap;
  scroll-snap-align: start;
  transition: all 0.2s;
}
.hero-cat-chip:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--ac) 45%, var(--bd)); box-shadow: 0 8px 22px -10px var(--sh); }
.hero-cat-chip.active {
  background: var(--al); border-color: var(--ac);
  box-shadow: 0 0 0 1px var(--ac), 0 6px 18px -8px var(--ac);
}
.hero-cat-icon { font-size: 20px; line-height: 1; }
.hero-cat-name { font-size: 14px; font-weight: 700; color: var(--td); }
.hero-cat-count { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--tt); }

/* ============================================================
   Quick actions
   ============================================================ */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 46px; }
.q-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px;
  background: var(--sf);
  border: 1px solid var(--bd40);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px -2px var(--sh);
  transition: all 0.2s;
  cursor: pointer; text-align: left;
}
.q-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -10px var(--sh); }
.q-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--al); border-radius: 14px; color: var(--ac); font-size: 20px;
}
.q-card.discord { background: #5865F2; border-color: #5865F2; }
.q-card.discord .q-icon { background: rgba(255, 255, 255, 0.15); color: #fff; }
.q-card.discord .q-title, .q-card.discord .q-desc, .q-card.discord .q-arrow { color: #fff; }
.q-body { flex: 1; }
.q-title { font-size: 14px; font-weight: 700; color: var(--td); margin-bottom: 2px; }
.q-desc { font-size: 12px; font-weight: 500; color: var(--tt); }
.q-arrow { color: var(--tt); font-weight: 800; transition: transform 0.2s; }
.q-card:hover .q-arrow { transform: translateX(4px); }

/* ============================================================
   Sections
   ============================================================ */
.section { margin-bottom: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-title { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; color: var(--td); }
.section-link { font-size: 13px; font-weight: 700; color: var(--ac); transition: opacity 0.2s; }
.section-link:hover { opacity: 0.8; }
.section-tag { color: var(--tt); font-size: 13px; font-weight: 500; }
.empty { color: var(--tm); padding: 28px 0; }

/* ============================================================
   Product cards
   ============================================================ */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.featured-strip {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ac) 50%, transparent) transparent;
}
.featured-strip::-webkit-scrollbar { height: 8px; }
.featured-strip::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ac) 50%, transparent); border-radius: 8px; }
.featured-strip::-webkit-scrollbar-track { background: transparent; }
.featured-strip .p-card { min-width: 300px; scroll-snap-align: start; }
.featured-strip .p-card .p-icon { width: 56px; height: 56px; font-size: 28px; }

/* Category filter chips */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.chip {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  color: var(--tm);
  background: var(--sf);
  border: 1px solid var(--bd);
  transition: all 0.2s;
}
.chip:hover { color: var(--td); border-color: color-mix(in srgb, var(--ac) 45%, var(--bd)); }
.chip.active {
  background: var(--ac); border-color: var(--ac); color: #fff;
  box-shadow: 0 4px 14px -4px var(--ac);
}

/* Page switch transition */
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-in { animation: pageIn 0.35s ease; }

/* Home layout: content + featured sidebar */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.home-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.side-card {
  padding: 18px;
  background: var(--sf);
  border: 1px solid var(--bd40);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px -2px var(--sh);
}
.side-card .section-head { margin-bottom: 12px; }
.side-card .section-title { font-size: 16px; }
.feat-list { display: flex; flex-direction: column; gap: 10px; }
.feat-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: var(--so); border: 1px solid var(--bd);
  cursor: pointer;
  transition: all 0.2s;
}
.feat-row:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--ac) 45%, var(--bd)); }
.feat-row .p-icon { width: 40px; height: 40px; font-size: 19px; flex-shrink: 0; }
.feat-row-body { flex: 1; min-width: 0; }
.feat-row .p-name { font-size: 13.5px; font-weight: 700; color: var(--td); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-row .p-price { margin-top: 2px; }
.feat-row .price-num { font-size: 15px; }
.p-server {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 6px;
  background: var(--so); border: 1px solid var(--bd);
  color: var(--tm);
  white-space: nowrap;
}
.p-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px;
  background: var(--sf);
  border: 1px solid var(--bd40);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px -2px var(--sh);
  cursor: pointer;
  transition: all 0.2s;
}
.p-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ac) 45%, var(--bd)); box-shadow: 0 14px 34px -12px var(--sh); }
.featured-grid .p-card { border-color: color-mix(in srgb, var(--ac) 35%, var(--bd)); }
.p-top { display: flex; justify-content: space-between; align-items: flex-start; }
.p-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 8px;
  background: var(--al); color: var(--ad);
  border: 1px solid color-mix(in srgb, var(--ac) 35%, transparent);
}
.p-badge.best { background: var(--ac); color: #fff; border-color: var(--ac); }
.p-badge.hidden { visibility: hidden; }
.p-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: var(--al); border-radius: 14px; color: var(--ac);
}
.p-name { font-size: 17px; font-weight: 700; color: var(--td); line-height: 1.3; }
.p-tag { color: var(--tm); font-size: 13px; }
.p-feats { list-style: none; color: var(--tm); font-size: 13px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.p-feats li { display: flex; align-items: baseline; gap: 6px; }
.p-feats li::before { content: '\2713'; color: var(--green); font-weight: 800; }
.p-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.p-price { display: flex; align-items: baseline; gap: 4px; }
.price-cur { font-size: 13px; font-weight: 800; color: var(--ac); }
.price-num { font-size: 21px; font-weight: 800; color: var(--ac); letter-spacing: -0.3px; }
.p-orig { color: var(--tt); text-decoration: line-through; font-size: 12px; margin-left: 4px; }
.credits-price .price-cur, .credits-price .price-num { color: var(--aqua); }

/* Tebex-style product card (art header, centered, full-width CTA) */
.p-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px;
  padding: 0 0 18px;
  background: var(--sf);
  border: 1px solid var(--bd40);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px -2px var(--sh);
  cursor: pointer;
  transition: all 0.2s;
  height: 100%;
}
.p-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ac) 45%, var(--bd)); box-shadow: 0 16px 40px -14px var(--sh); }
.p-art {
  position: relative; width: 100%;
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(240px 110px at 50% 0%, color-mix(in srgb, var(--ac) 16%, transparent), transparent 75%),
    var(--so);
  border-bottom: 1px solid var(--bd40);
}
.p-icon-lg { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
.p-card .p-badge { position: absolute; top: 12px; left: 12px; }
.p-card .p-name { padding: 12px 16px 0; font-size: 18px; font-weight: 800; }
.p-card .p-server { margin-top: -4px; }
.p-card .p-tag { padding: 0 16px; }
.p-card .p-feats { padding: 0 20px; align-items: center; }
.p-cta {
  width: 100%;
  margin-top: auto;
  padding: 14px 16px 0;
  border-top: 1px solid var(--bd40);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.p-cta .p-price { justify-content: center; }

/* Featured packages slider */
.home-featured { margin-bottom: 48px; }
.featured-scroll {
  display: flex; gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ac) 50%, transparent) transparent;
}
.featured-scroll::-webkit-scrollbar { height: 8px; }
.featured-scroll::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ac) 50%, transparent); border-radius: 8px; }
.featured-scroll::-webkit-scrollbar-track { background: transparent; }
.feat-card {
  flex: 1 0 280px; min-width: 280px; max-width: 340px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px;
  padding: 0 0 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 7%, var(--sf)), var(--sf));
  border: 1px solid color-mix(in srgb, var(--ac) 35%, var(--bd));
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.2s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -14px var(--sh); border-color: var(--ac); }
.feat-art {
  position: relative; width: 100%;
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(240px 110px at 50% 0%, color-mix(in srgb, var(--ac) 22%, transparent), transparent 75%);
  border-bottom: 1px solid var(--bd40);
}
.feat-icon-lg { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
.feat-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 8px;
  background: var(--ac); color: #fff;
  box-shadow: 0 4px 12px -4px var(--ac);
}
.feat-name { font-size: 17px; font-weight: 800; color: var(--td); padding: 12px 16px 0; line-height: 1.3; }
.feat-desc { color: var(--tm); font-size: 13px; padding: 0 16px; flex: 1; }
.feat-price .price-num { font-size: 20px; }
.credits-num { color: var(--aqua); }
.featured-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: -6px; }
.featured-prev, .featured-next {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--so); border: 1px solid var(--bd);
  color: var(--tm); font-size: 15px; font-weight: 800;
  transition: all 0.2s;
}
.featured-prev:hover, .featured-next:hover { color: var(--td); border-color: var(--ac); background: var(--al); }

/* ============================================================
   Category cards
   ============================================================ */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cat-card {
  display: block; width: 100%; text-align: left;
  padding: 22px;
  background: var(--sf);
  border: 1px solid var(--bd40);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px -2px var(--sh);
  transition: all 0.2s;
  cursor: pointer;
}
.cat-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ac) 45%, var(--bd)); box-shadow: 0 14px 34px -12px var(--sh); }
.cat-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--al); border-radius: 12px; color: var(--ac);
  margin-bottom: 14px;
}
.cat-name { font-size: 15px; font-weight: 700; color: var(--td); margin-bottom: 4px; }
.cat-desc { color: var(--tm); font-size: 13px; }
.cat-count {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ac);
  padding: 4px 10px; border-radius: 8px;
  background: var(--al); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent);
}

/* ============================================================
   Blog
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.blog-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px;
  background: var(--sf);
  border: 1px solid var(--bd40);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px -2px var(--sh);
  cursor: pointer;
  transition: all 0.2s;
}
.blog-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ac) 45%, var(--bd)); box-shadow: 0 14px 34px -12px var(--sh); }
.blog-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.blog-cat {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 8px;
  background: var(--al); color: var(--ac);
  border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent);
}
.blog-date { color: var(--tt); font-size: 12px; white-space: nowrap; }
.blog-title { font-size: 15px; font-weight: 700; color: var(--td); line-height: 1.35; }
.blog-excerpt { color: var(--tm); font-size: 13px; flex: 1; }
.blog-more { color: var(--ac); font-size: 13px; font-weight: 700; }
.blog-post h2 { font-size: 22px; font-weight: 800; color: var(--td); margin: 12px 0 14px; }
.blog-post .blog-post-content { color: var(--tm); font-size: 14px; line-height: 1.7; }

/* ============================================================
   Leaderboards (sidebars)
   ============================================================ */
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--so); border: 1px solid var(--bd);
}
.lb-rank {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  color: var(--tm);
  background: var(--sf); border-radius: 8px;
}
.lb-rank.top { background: var(--al); color: var(--ad); border: 1px solid color-mix(in srgb, var(--ac) 35%, transparent); }
.lb-rank-dot { color: var(--aqua); background: var(--sf); border: 1px solid var(--bd); }
.lb-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--td); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-val { font-size: 12.5px; font-weight: 700; color: var(--aqua); text-align: right; }
.lb-val small { display: block; color: var(--tt); font-size: 10.5px; font-weight: 500; }
.discord-card .section-title::before { content: '💬 '; }

/* ============================================================
   Product modal balance hint
   ============================================================ */
.prod-balance { text-align: center; color: var(--tm); font-size: 13px; margin-top: 2px; }
.prod-balance b { color: var(--aqua); }
.prod-balance .low { color: var(--red); font-weight: 600; }

/* ============================================================
   Credits banner
   ============================================================ */
.credits-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 34px 34px;
  background:
    radial-gradient(500px 240px at 90% -20%, rgba(255, 220, 35, 0.28), transparent 60%),
    linear-gradient(120deg, #241c0a, #1a1408);
  border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent);
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px -2px var(--sh);
}
.credits-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.credits-banner h2 { font-size: 24px; font-weight: 800; color: var(--ad); margin-bottom: 8px; }
.credits-banner p { color: var(--tm); max-width: 520px; font-size: 14px; }

/* ============================================================
   Welcome (logged out)
   ============================================================ */
.welcome { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 0 40px; }
.welcome img.logo { width: 128px; height: 128px; margin-bottom: 20px; filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.6)); }
.welcome h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; color: var(--td); margin-bottom: 12px; letter-spacing: -0.5px; }
.welcome h1 .accent { color: var(--ac); }
.welcome p { color: var(--tm); max-width: 460px; margin-bottom: 26px; }

/* ============================================================
   Toasts
   ============================================================ */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 5000; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--sf);
  border: 1px solid var(--bd);
  color: var(--td);
  font-size: 13px; font-weight: 600;
  padding: 13px 20px; border-radius: 14px;
  box-shadow: 0 10px 30px -8px var(--sh);
  max-width: 440px; text-align: center;
  opacity: 0; transition: opacity 0.25s;
}
.toast.show { opacity: 1; }
.toast.success { border-color: color-mix(in srgb, var(--green) 50%, transparent); color: var(--green); }
.toast.error { border-color: color-mix(in srgb, var(--red) 50%, transparent); color: var(--red); }

/* ============================================================
   Modals
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 8, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card {
  position: relative;
  width: 100%; max-width: 540px;
  max-height: 88vh; overflow-y: auto;
  padding: 28px;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 20px;
  box-shadow: 0 24px 80px -20px rgba(0, 0, 0, 0.8);
}
.modal-card-wide { max-width: 780px; }
.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--so); border: 1px solid var(--bd);
  color: var(--tm); font-size: 18px; line-height: 1;
  transition: all 0.2s;
}
.modal-x:hover { background: var(--red); border-color: var(--red); color: #fff; }
.modal-head { margin-bottom: 22px; text-align: center; }
.modal-logo { width: 64px; height: 64px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.account-skin { width: 100%; height: 100%; object-fit: contain; display: block; image-rendering: pixelated; border-radius: inherit; }
.modal-head h2 { font-size: 22px; font-weight: 800; color: var(--td); margin-bottom: 6px; }
.modal-head p { color: var(--tm); font-size: 13.5px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form label { display: flex; flex-direction: column; gap: 6px; color: var(--tm); font-size: 12.5px; font-weight: 600; }
.modal-form input {
  background: var(--zone);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 12px 14px; color: var(--td); font-size: 15px; width: 100%;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s;
}
.modal-form input:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 20%, transparent); }

/* ============================================================
   Account / admin
   ============================================================ */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.account-card { padding: 20px; text-align: center; background: var(--so); border: 1px solid var(--bd); border-radius: 14px; }
.account-card-label { color: var(--tt); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.account-card-value { font-size: 30px; font-weight: 800; color: var(--aqua); margin-top: 6px; }
.section-sub { font-size: 15px; font-weight: 800; margin: 20px 0 12px; color: var(--td); }
.section-sub::before { content: '\203A '; color: var(--ac); }
.account-orders, .account-tx { display: flex; flex-direction: column; gap: 6px; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px;
  background: var(--so); border: 1px solid var(--bd);
  border-radius: 12px; font-size: 13px;
}
.row small { color: var(--tt); }
.row-status {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 8px;
}
.row-status.delivered, .row-status.executed { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.row-status.paid { background: color-mix(in srgb, var(--ac) 15%, transparent); color: var(--ad); }
.row-status.pending { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }
.pos { color: var(--green); font-weight: 700; }
.neg { color: var(--red); font-weight: 700; }

/* Product modal */
.prod-modal-body { display: flex; flex-direction: column; gap: 18px; }
.prod-modal-icon {
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  margin: 0 auto;
  background: var(--al); border-radius: 18px; color: var(--ac);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 25%, transparent);
}
.prod-modal-info { text-align: center; }
.prod-modal-info h2 { font-size: 24px; font-weight: 800; color: var(--td); margin-bottom: 8px; }
.prod-modal-tag { color: var(--ad); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.prod-modal-desc { color: var(--tm); font-size: 14px; }
.tiers-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tier {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px;
  background: var(--so); border: 1px solid var(--bd);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.tier:hover { border-color: color-mix(in srgb, var(--ac) 45%, var(--bd)); }
.tier.active { border-color: var(--ac); background: var(--al); box-shadow: 0 0 0 1px var(--ac), 0 6px 18px -10px var(--ac); }
.tier-name { font-weight: 700; font-size: 13px; color: var(--td); }
.tier-price { color: var(--ac); font-size: 12px; font-weight: 700; }
.tier-price s { color: var(--tt); opacity: 0.8; }
.prod-modal-feats h4 { font-size: 13px; font-weight: 800; margin-bottom: 10px; color: var(--td); text-transform: uppercase; letter-spacing: 1px; }
.prod-modal-feats ul { list-style: none; color: var(--tm); font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.prod-modal-feats li { display: flex; align-items: baseline; gap: 6px; }
.prod-modal-feats li::before { content: '\2713'; color: var(--green); font-weight: 800; }
.prod-modal-price { display: flex; align-items: baseline; gap: 10px; padding-top: 16px; border-top: 1px solid var(--bd); }
.price-big { font-size: 30px; font-weight: 800; color: var(--ac); letter-spacing: -0.5px; }
.credits-big { color: var(--aqua); }
.price-per { color: var(--tt); font-size: 12px; }
.prod-modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.prod-modal-actions .abtn { flex: 1; min-width: 150px; }

/* Admin */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { padding: 18px; text-align: center; background: var(--so); border: 1px solid var(--bd); border-radius: 14px; }
.stat span { font-size: 24px; font-weight: 800; display: block; color: var(--ad); margin-bottom: 4px; }
.stat label { color: var(--tt); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.admin-servers, .admin-orders, .admin-queue, .admin-users { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.server-status { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 11px 14px; background: var(--so); border: 1px solid var(--bd); border-radius: 12px; }
.server-status b { text-transform: capitalize; }
.server-status.offline { opacity: 0.55; }
.admin-section-title { font-size: 13px; font-weight: 800; color: var(--ad); margin: 6px 0 12px; text-transform: uppercase; letter-spacing: 1px; }
.mono { font-family: 'Consolas', monospace; font-size: 12.5px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  margin-top: 30px;
  padding: 26px 0;
  text-align: center;
  color: var(--tt);
  font-size: 13px;
  border-top: 1px solid var(--bd40);
  background: linear-gradient(180deg, var(--zone), var(--zone2));
}
.footer b { color: var(--tm); font-size: 13px; display: block; margin-bottom: 6px; }

/* ============================================================
   Splash / loading screen
   ============================================================ */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1100px 620px at 50% -10%, #191922, #0a0a0f 62%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { text-align: center; }
.splash-logo-wrap { position: relative; width: 150px; height: 150px; margin: 0 auto 28px; }
.splash-logo-wrap::before {
  content: '';
  position: absolute; inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 35, 0.28), transparent 62%);
}
.splash-logo {
  position: absolute; inset: 10px;
  width: 130px; height: 130px;
  border-radius: 26px;
  animation: splashLogo 2.2s ease-in-out infinite;
}
.splash-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--ac);
  border-right-color: color-mix(in srgb, var(--ac) 35%, transparent);
  animation: splashSpin 1.3s linear infinite;
}
.splash-ring.r2 { inset: 18px; border-top-color: transparent; border-bottom-color: var(--ac); animation-duration: 2.1s; animation-direction: reverse; opacity: 0.7; }
@keyframes splashSpin { to { transform: rotate(360deg); } }
@keyframes splashLogo { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.07); filter: brightness(1.18); } }
.splash-title {
  font-size: 26px; font-weight: 900; letter-spacing: 7px; color: var(--td);
  animation: splashUp 0.9s ease both;
}
.splash-sub {
  margin-top: 10px; color: var(--tm);
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  animation: splashUp 0.9s 0.25s ease both;
}
@keyframes splashUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.splash-bar { width: 230px; height: 3px; margin: 34px auto 0; background: var(--so); border-radius: 4px; overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 42%; border-radius: 4px; background: linear-gradient(90deg, var(--ac), var(--ad)); animation: splashBar 1.2s ease-in-out infinite; }
@keyframes splashBar { 0% { transform: translateX(-130%); } 100% { transform: translateX(320%); } }

/* ============================================================
   Inline sign-in (logged out)
   ============================================================ */
.login-hero {
  max-width: 560px;
  margin: 40px auto;
  padding: 46px 42px;
  text-align: center;
  background: var(--sf);
  border: 1px solid var(--bd40);
  border-radius: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px -2px var(--sh);
}
.login-hero-logo { width: 88px; height: 88px; margin-bottom: 22px; border-radius: 20px; filter: drop-shadow(0 14px 30px rgba(0,0,0,0.55)); }
.login-hero h1 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; color: var(--td); letter-spacing: -0.5px; }
.login-hero h1 .accent { color: var(--ac); }
.login-hero p { color: var(--tm); margin: 12px auto 28px; max-width: 420px; font-size: 14px; }
.login-hero-form { display: flex; gap: 10px; }
.login-hero-form input {
  flex: 1; min-width: 0;
  padding: 15px 18px;
  font-size: 15px; font-weight: 600; color: var(--td);
  background: var(--so);
  border: 1px solid var(--bd);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
  text-transform: none;
}
.login-hero-form input::placeholder { color: var(--tt); font-weight: 500; }
.login-hero-form input:focus { border-color: var(--ac); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ac) 20%, transparent); }
.login-hero-form { flex-wrap: wrap; }
.login-hero-form input[type="password"] { flex-basis: 100%; }
.login-hero-form button { flex-shrink: 0; margin-left: auto; }
.login-hero-meta { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; color: var(--tt); font-size: 12.5px; }
.login-hero-meta .staff { color: var(--tm); font-weight: 700; text-decoration: underline; cursor: pointer; background: none; border: none; font-size: 12.5px; }
.login-hero-meta .staff:hover { color: var(--ac); }
@media (max-width: 520px) { .login-hero { padding: 32px 22px; } .login-hero-form { flex-direction: column; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .header-row { grid-template-columns: 1fr auto; }
  .header-left { display: none; }
  .brand { justify-content: flex-start; }
  .hero-content { padding: 36px 28px; min-height: 320px; }
  .home-grid { grid-template-columns: 1fr; }
  .home-side { position: static; }
}
@media (max-width: 760px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-links, .nav-user { display: none; width: 100%; }
  .nav.open .nav-links, .nav.open .nav-user { display: flex; }
  .mobile-btn { display: flex; }
  .nav-links { order: 3; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { flex-shrink: 0; }
  .nav-user { order: 4; justify-content: space-between; }
  .quick-actions { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .credits-banner-inner { flex-direction: column; text-align: center; }
  .hero-content { min-height: 300px; padding: 28px 20px; }
  .hero-title { font-size: 28px; }
  .hero-ctas .abtn { width: 100%; }
  .row { flex-wrap: wrap; }
  .prod-modal-actions .abtn { min-width: 100%; }
}

/* ===== v12: hub gamemodes, gallery, store sidebar layout ===== */
.art-img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.user-avatar { width: 26px; height: 26px; border-radius: 7px; background: var(--so); image-rendering: pixelated; flex: none; }

.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gm-card { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--sf); border: 1px solid var(--bd40); border-radius: 16px; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.gm-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ac) 45%, var(--bd)); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.gm-card.offline { opacity: .55; cursor: default; }
.gm-card.offline:hover { transform: none; box-shadow: none; border-color: var(--bd40); }
.gm-icon { width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--al); border-radius: 14px; }
.gm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gm-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--td); }
.gm-tag { color: var(--tm); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-cta { color: var(--ac); font-weight: 700; font-size: 13px; white-space: nowrap; }
.gm-card.offline .gm-cta { color: var(--tm); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery-item { position: relative; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--bd40); background: var(--so); cursor: zoom-in; transition: transform .18s ease, border-color .18s ease; }
.gallery-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ac) 45%, var(--bd)); }
.gallery-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 9px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.78)); text-transform: capitalize; letter-spacing: .3px; }

.gallery-modal-card { padding: 14px; }
.gallery-modal-card img { display: block; width: 100%; border-radius: 10px; background: var(--so); }
.gallery-modal-title { margin: 10px 4px 2px; font-weight: 700; color: var(--td); text-transform: capitalize; }

.store-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.store-head-info { display: flex; align-items: center; gap: 14px; }
.store-head-icon { width: 54px; height: 54px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 28px; background: var(--al); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); border-radius: 14px; }
.store-head h1 { font-size: 24px; font-weight: 800; color: var(--td); line-height: 1.2; }
.store-head h1 small { font-size: 12px; font-weight: 800; color: var(--ac); text-transform: uppercase; letter-spacing: 1.5px; margin-left: 8px; vertical-align: 2px; }
.store-head p { color: var(--tm); font-size: 13px; margin-top: 2px; }
.store-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.store-rate { font-size: 12px; font-weight: 700; color: var(--tm); background: var(--so); border: 1px solid var(--bd); padding: 7px 12px; border-radius: 10px; white-space: nowrap; }

.store-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.store-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.side-nav-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--tm); padding: 2px 4px 10px; }
.side-nav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid transparent; background: transparent; color: var(--td); font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; transition: background .15s ease, border-color .15s ease; }
.side-nav:hover { background: var(--so); }
.side-nav.active { background: var(--al); border-color: color-mix(in srgb, var(--ac) 35%, transparent); color: var(--ac); font-weight: 800; }
.sn-icon { width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.sn-icon .art-img { width: 20px; height: 20px; }
.sn-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-count { font-size: 11.5px; font-weight: 700; color: var(--tm); background: var(--so); border-radius: 999px; padding: 2px 8px; }
.side-nav.active .sn-count { color: var(--ac); background: color-mix(in srgb, var(--ac) 14%, transparent); }
.balance-card .balance-val { font-size: 22px; font-weight: 800; color: var(--td); padding: 4px 4px 12px; }
.balance-card .balance-val small { font-size: 12px; font-weight: 700; color: var(--tm); }

.store-main { min-width: 0; }
.store-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.store-count { font-size: 13px; color: var(--tm); font-weight: 600; }
.store-count b { color: var(--td); }
.sort-select { appearance: none; -webkit-appearance: none; background: var(--sf) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--bd40); color: var(--td); font-size: 12.5px; font-weight: 700; padding: 9px 32px 9px 14px; border-radius: 11px; cursor: pointer; }
.sort-select:hover { border-color: color-mix(in srgb, var(--ac) 40%, var(--bd)); }

@media (max-width: 900px) {
  .store-grid { grid-template-columns: 1fr; }
  .store-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .store-side > .side-card { flex: 1 1 240px; }
}

/* v15: welcome hero */
.welcome-hero { max-width: 780px; }
.welcome-hero .hero-sub b { color: var(--ac); }
.welcome-ip-row { display: flex; align-items: stretch; justify-content: center; gap: 10px; margin: 4px 0 2px; flex-wrap: wrap; }
.welcome-ip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: var(--so); border: 1px dashed var(--bd); padding: 10px 28px; border-radius: 14px; cursor: pointer; transition: border-color .18s, transform .18s; user-select: all; }
.welcome-ip:hover { border-color: var(--ac); transform: translateY(-1px); }
.wi-label { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--tm); font-weight: 800; }
.wi-value { font-size: 22px; font-weight: 800; color: var(--td); letter-spacing: .5px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }

/* v16: two-column welcome hero */
.welcome-hero { max-width: 1020px; flex-direction: row; align-items: center; gap: 48px; text-align: left; }
.hero-left { flex: 1.25; display: flex; flex-direction: column; align-items: flex-start; }
.hero-left .hero-title, .hero-left .hero-sub { text-align: left; }
.hero-right { flex: .75; display: flex; justify-content: center; }
.join-card { width: 100%; max-width: 320px; background: color-mix(in srgb, var(--so) 72%, transparent); border: 1px solid var(--bd); border-radius: 18px; padding: 22px; backdrop-filter: blur(10px); box-shadow: 0 18px 50px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 14px; }
.jc-label { font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--tm); }
.jc-ip { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--so); border: 1px dashed var(--bd); border-radius: 12px; padding: 14px 12px; cursor: pointer; transition: border-color .18s, transform .18s; user-select: all; }
.jc-ip:hover { border-color: var(--ac); transform: translateY(-1px); }
.jc-ip-value { font-size: 19px; font-weight: 800; color: var(--td); letter-spacing: .4px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.jc-copy { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ac); }
.jc-rows { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; border-top: 1px solid var(--bd); }
.jc-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tm); }
.jc-row b { color: var(--td); font-size: 13.5px; min-width: 26px; }
@media (max-width: 900px) {
  .welcome-hero { flex-direction: column; align-items: stretch; text-align: center; gap: 28px; }
  .hero-left { align-items: center; }
  .hero-left .hero-title, .hero-left .hero-sub { text-align: center; }
  .join-card { margin: 0 auto; }
}

/* v17: account modal head — full body skin left, identity right */
.account-head { display: flex; align-items: center; gap: 18px; text-align: left; }
.account-skin-wrap { width: 84px; height: 150px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: var(--so); border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; flex: none; }
.account-skin-body { max-height: 100%; max-width: 100%; width: auto; image-rendering: pixelated; display: block; }
.account-id h2 { font-size: 22px; font-weight: 800; color: var(--td); margin: 0 0 4px; text-align: left; }
.account-id p { margin: 0; color: var(--tm); font-size: 13.5px; text-align: left; }
.lb-avatar { width: 26px; height: 26px; border-radius: 6px; background: var(--so); border: 1px solid var(--bd); image-rendering: pixelated; flex: none; object-fit: cover; }

/* v20: no re-render jump — animate only on real view changes */
.page-in.no-anim { animation: none; }

/* v23: premium staggered card entrances */
.products-grid.stagger .p-card { animation: cardIn .26s ease-out both; animation-delay: calc(min(var(--i, 0), 8) * 40ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.side-nav { transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
@media (prefers-reduced-motion: reduce) { .products-grid .p-card { animation: none; } }

/* ============================================================
   v24: Hydra lobby palette — from server lobby header/scoreboard
   #FFDC23 gold + #FF2DF7 magenta gradient, cream #FFE7C3 accents
   ============================================================ */
:root {
  --ac: #ffdc23;
  --ah: #f5c900;
  --al: #201b09;
  --ad: #ffe7c3;
  --ac2: #ff2df7;
  --act: #241c00;
  --ag: linear-gradient(90deg, #ffdc23, #ff2df7);
}
body[data-server="skyblock"] { --act: #fff; --ag: linear-gradient(90deg, #22c55e, #38bdf8); }
body[data-server="boxpvp"] { --act: #fff; --ag: linear-gradient(90deg, #e04343, #fb923c); }

.abtn-ac { color: var(--act, #fff); }
.hero-badge {
  background: var(--ag);
  color: #241c00;
  box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--ac2) 40%, var(--ac));
}
.hero-title span, .brand-text span {
  background: var(--ag);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* v29: hub three-column row + live discord widget card */
.hub-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 26px; align-items: start; }
.hub-cols .side-card { margin: 0; height: 100%; }
.dcard { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.dcard-head { display: flex; align-items: center; gap: 11px; }
.dcard-logo { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #5865F2; color: #fff; box-shadow: 0 6px 16px -6px rgba(88,101,242,.75); }
.dcard-id b { display: block; font-size: 15px; color: var(--td); line-height: 1.3; }
.dcard-id span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tm); }
.dcard-dot { width: 8px; height: 8px; border-radius: 50%; background: #23a55a; box-shadow: 0 0 8px rgba(35,165,90,.9); }
.dcard-members { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dmem { position: relative; display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 10px; transition: background .15s; }
.dmem:hover { background: var(--al); }
.dmem img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.dst { position: absolute; left: 27px; top: 25px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--sf); background: #80848e; }
.st-online { background: #23a55a; }
.st-idle { background: #f0b232; }
.st-dnd { background: #f23f43; }
.dmem b { font-size: 13px; color: var(--td); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmem-more { font-size: 12px; color: var(--tm); padding: 4px 8px 0; }
@media (max-width: 1000px) { .hub-cols { grid-template-columns: 1fr; } }

/* v30: hero skin render + text selection polish */
.welcome-hero .hero-left { flex-direction: row; align-items: stretch; gap: 18px; }
.hero-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero-skin { flex: none; width: 150px; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.hero-skin img { width: 138px; image-rendering: pixelated; filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)); animation: skinFloat 4.5s ease-in-out infinite; }
.hero-skin::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 118px; height: 20px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ac) 40%, transparent), transparent); filter: blur(5px); }
@keyframes skinFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
::selection { background: var(--ac); color: #241c00; }
@media (max-width: 1150px) {
  .welcome-hero .hero-left { flex-direction: column; gap: 0; }
  .hero-skin { display: none; }
}

/* v31: basket + payments */
.cart-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--so); border: 1px solid var(--bd); color: var(--td); cursor: pointer; transition: all .18s; }
.cart-btn:hover { border-color: var(--ac); background: var(--al); }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; color: #241c00; background: var(--ac); border-radius: 9px; box-shadow: 0 3px 8px -2px var(--ac); }
.header-right { display: flex; align-items: center; gap: 10px; }
.cart-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cart-line { display: flex; align-items: center; gap: 11px; background: var(--sf90); border: 1px solid var(--bd40); border-radius: 13px; padding: 9px 11px; }
.cl-icon { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--al); border-radius: 10px; }
.cl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-info b { font-size: 14px; color: var(--td); line-height: 1.3; }
.cl-info small { color: var(--tm); font-size: 11.5px; }
.cl-qty { display: flex; align-items: center; gap: 7px; color: var(--td); font-size: 13px; font-weight: 700; }
.cl-qbtn { width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--bd); background: var(--so); color: var(--tm); font-size: 14px; font-weight: 800; cursor: pointer; transition: all .15s; line-height: 1; }
.cl-qbtn:hover:not(:disabled) { color: var(--td); border-color: var(--ac); background: var(--al); }
.cl-qbtn:disabled { opacity: .35; cursor: default; }
.cl-price { font-size: 14px; font-weight: 800; color: var(--td); min-width: 64px; text-align: right; }
.cl-remove { width: 26px; height: 26px; flex: none; border: none; background: transparent; color: var(--tm); font-size: 17px; cursor: pointer; border-radius: 8px; transition: all .15s; }
.cl-remove:hover { color: #f23f43; background: rgba(242,63,67,.1); }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 16px; padding: 13px 16px; background: var(--al); border: 1px dashed var(--bd); border-radius: 13px; }
.cart-total span { color: var(--tm); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.cart-total b { color: var(--td); font-size: 19px; }
.cart-total small { color: var(--tm); font-size: 12px; font-weight: 600; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pm-tile { display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 13px 14px; background: var(--sf90); border: 1.5px solid var(--bd40); border-radius: 14px; cursor: pointer; transition: all .18s; }
.pm-tile b { color: var(--td); font-size: 14px; }
.pm-tile span { color: var(--tm); font-size: 11.5px; line-height: 1.35; }
.pm-tile.active { border-color: var(--ac); background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 9%, var(--sf)), var(--sf)); }
.pm-tile.active::after { content: none; }
.pm-tile:disabled { opacity: .45; cursor: not-allowed; }
.pm-tile:not(:disabled):not(.active):hover { border-color: color-mix(in srgb, var(--ac) 50%, var(--bd)); }
.pp-note { margin-top: 10px; color: var(--tm); font-size: 11.5px; text-align: center; }
#paypal-buttons { min-height: 48px; }
#paypal-buttons iframe { border-radius: 10px !important; }
.cart-loading, .cart-empty { text-align: center; color: var(--tm); padding: 28px 0; }
@media (max-width: 560px) { .pay-methods { grid-template-columns: 1fr; } }

/* v33: Friends & Family flow */
.pm-ff { border-style: dashed; }
.pm-ff b::before { content: '\2666\00a0 '; color: var(--ac); }
.ff-done { display: flex; flex-direction: column; gap: 16px; }
.ff-code-wrap { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 10%, var(--sf)), var(--sf)); border: 1.5px solid color-mix(in srgb, var(--ac) 45%, var(--bd)); border-radius: 14px; }
.ff-label { color: var(--tm); font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; }
.ff-code-row { display: flex; align-items: center; gap: 12px; }
.ff-code-row b { font-size: 30px; letter-spacing: .08em; color: var(--td); font-family: var(--mono, monospace); }
.ff-steps { margin: 0; padding-left: 20px; color: var(--tm); font-size: 13.5px; line-height: 1.9; }
.ff-steps b { color: var(--td); }
.ff-link { color: var(--ac); font-weight: 600; text-decoration: none; }
.ff-link:hover { text-decoration: underline; }
.ff-admin-code { font-family: var(--mono, monospace); color: var(--ac); }
