/* =========================================================
   STRYKE — Minecraft Network Store
   Handcrafted stylesheet · gold / amber theme
   ========================================================= */

:root {
  /* Brand palette */
  --gold-light: #ffe27a;
  --gold: #ffc12b;
  --gold-deep: #f59e0b;
  --gold-dark: #b9760a;

  /* Surfaces */
  --bg-0: #0b0c10;
  --bg-1: #101218;
  --bg-2: #161924;
  --line: rgba(255, 255, 255, 0.08);

  /* Text */
  --text: #f4f5f8;
  --muted: #9aa0ad;
  --muted-2: #6f7682;

  /* Glass */
  --glass: rgba(22, 25, 36, 0.55);
  --glass-strong: rgba(20, 23, 33, 0.78);
  --glass-border: rgba(255, 255, 255, 0.09);

  /* Status */
  --online: #4ade80;
  --offline: #ef4444;

  /* Effects */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 14px 40px rgba(245, 158, 11, 0.28);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Rank gradients */
  --legend-grad: linear-gradient(135deg, #ff6b6b, #b80f0f);
  --vip-grad: linear-gradient(135deg, #ffe27a, #d99405);
  --mvp-grad: linear-gradient(135deg, #7cc6ff, #1e4fd1);
  --elite-grad: linear-gradient(135deg, #ff9ad1, #7a0b3b);

  /* Key gradients */
  --key-legend: linear-gradient(135deg, #ff7a7a, #a50d0d);
  --key-store: linear-gradient(135deg, #bfeaff, #3f8fd1);
  --key-custom: linear-gradient(135deg, #9bf6a3, #137a2c);
}

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

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

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Animated dark Minecraft backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 540px at 80% -10%, rgba(245, 158, 11, 0.16), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(255, 193, 43, 0.10), transparent 55%),
    linear-gradient(180deg, #0d0f15 0%, #0a0b10 55%, #08090d 100%);
}

/* Subtle pixel grid + slow drift */
body::after {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 78%);
  animation: drift 60s linear infinite;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-46px, -46px, 0); }
}

::selection { background: var(--gold); color: #1a1206; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1240px, 92%); margin-inline: auto; }

/* ---------- Loading screen ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #14161f, #08090d);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-box { display: grid; place-items: center; gap: 22px; }
.loader-box img { width: 120px; filter: drop-shadow(0 12px 24px rgba(245,158,11,0.4)); animation: bob 1.8s var(--ease) infinite; }
.loader-bar {
  width: 220px; height: 6px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.08); overflow: hidden;
}
.loader-bar i {
  display: block; height: 100%; width: 40%; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-deep));
  animation: load 1.1s var(--ease) infinite;
}
.loader-box span { color: var(--muted); letter-spacing: 0.35em; font-size: 0.72rem; text-transform: uppercase; }
@keyframes load { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(10, 11, 16, 0.6);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled { background: rgba(8, 9, 13, 0.92); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.04em; }
.brand img { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(245,158,11,0.5)); transition: transform 0.3s var(--ease); }
.brand:hover img { transform: scale(1.08) rotate(-3deg); }
.brand b {
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav-links { display: flex; gap: 6px; margin-inline: auto; }
.nav-links a {
  position: relative;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: #1a1206; background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); box-shadow: var(--shadow-gold); }
.nav-links a .dc { color: #8b93f8; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 0.86rem;
  letter-spacing: 0.02em; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:active { transform: scale(0.96); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); color: #1a1206; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 48px rgba(245,158,11,0.42); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--glass-border); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-discord { background: linear-gradient(135deg, #6f7bf7, #4c5bd4); color: #fff; }
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(88, 101, 242, 0.4); }
.btn-block { width: 100%; }

.profile-chip {
  display: none; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border);
  font-weight: 600; font-size: 0.84rem;
  transition: background 0.25s var(--ease);
}
.profile-chip.show { display: inline-flex; }
.profile-chip:hover { background: rgba(255, 255, 255, 0.12); }
.profile-chip img { width: 30px; height: 30px; border-radius: 8px; image-rendering: pixelated; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 30px; text-align: center; z-index: 0; }
.hero > :not(.embers) { position: relative; z-index: 1; }

/* Floating gold embers (subtle but visible) */
.embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ember {
  position: absolute; bottom: -14px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light) 0%, rgba(245, 158, 11, 0.35) 45%, rgba(245, 158, 11, 0) 70%);
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  12% { opacity: 0.9; }
  85% { opacity: 0.6; }
  100% { transform: translateY(-380px) scale(1.15); opacity: 0; }
}
.hero-logo {
  width: clamp(150px, 24vw, 250px);
  margin: 0 auto 8px;
  filter: drop-shadow(0 26px 48px rgba(245, 158, 11, 0.4));
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.95;
  background: linear-gradient(180deg, #fff6d8 0%, var(--gold) 45%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 8px 40px rgba(245, 158, 11, 0.25);
}
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 8px 18px; border-radius: 99px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--gold-light); font-weight: 700; letter-spacing: 0.18em; font-size: 0.78rem;
  backdrop-filter: blur(10px);
}
.hero .lead { max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: 1.02rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn-lg { padding: 15px 30px; font-size: 0.95rem; border-radius: 14px; }

/* Highlights strip */
.highlights { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.hl {
  flex: 1 1 210px; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 16px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.hl:hover { background: rgba(255, 255, 255, 0.04); transform: translateY(-3px); }
.hl .hl-i {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 13px;
  background: rgba(255, 193, 43, 0.12); border: 1px solid rgba(255, 193, 43, 0.28);
}
.hl .hl-i svg { width: 23px; height: 23px; color: var(--gold-light); }
.hl b { display: block; font-size: 0.95rem; }
.hl span { color: var(--muted); font-size: 0.8rem; }

/* ---------- Glass card base ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: var(--shadow);
}

/* ---------- Info row (IP + Discord cards) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 64px;
}
.card-pad { padding: 32px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-head .ico {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
}
.card-head h3 { font-size: 1.05rem; letter-spacing: 0.02em; }
.card-head p { color: var(--muted); font-size: 0.82rem; }

/* Server IP card */
.ip-box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35); border: 1px dashed rgba(255, 193, 43, 0.4);
  margin-bottom: 16px;
}
.ip-box .ip { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.02em; color: var(--gold-light); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 11px; font-weight: 700; font-size: 0.82rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); color: #1a1206;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.copy-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.copy-btn.copied { background: linear-gradient(135deg, #86efac, #16a34a); color: #06210f; }

.status-row { display: flex; gap: 14px; }
.stat {
  flex: 1; text-align: center; padding: 16px 10px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-border);
}
.stat .n { font-size: 1.7rem; font-weight: 900; color: var(--text); }
.stat .l { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.dot.on { background: var(--online); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); animation: pulse 2s infinite; }
.dot.off { background: var(--offline); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16); }
.dot.load { background: var(--muted); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }
.status-line { display: flex; align-items: center; font-weight: 700; font-size: 0.92rem; }

/* Discord card */
.discord-card { position: relative; overflow: hidden; }
.discord-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(111, 123, 247, 0.35), transparent 70%);
}
.discord-card p.body { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.dc-server {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: 16px; margin-bottom: 18px;
  background: rgba(111, 123, 247, 0.09); border: 1px solid rgba(111, 123, 247, 0.24);
}
.dc-server-ico {
  width: 54px; height: 54px; border-radius: 15px; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.5rem;
  background: linear-gradient(135deg, #6f7bf7, #4c5bd4);
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.35);
}
.dc-server-ico img { width: 100%; height: 100%; object-fit: cover; }
.dc-server-meta b { display: block; font-size: 1.08rem; }
.dc-server-meta span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.8rem; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--online);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); animation: pulse 2s infinite;
}
.dc-stats { display: flex; gap: 22px; margin-bottom: 18px; }
.dc-stats div b { display: block; font-size: 1.35rem; color: #b9c0ff; }
.dc-stats div span { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Profile bar ---------- */
.profile-bar {
  margin-top: 22px;
  display: flex; align-items: center; gap: 20px;
  padding: 18px 24px;
}
.profile-bar .avatar-wrap {
  width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
  display: grid; place-items: center; flex-shrink: 0;
}
.profile-bar .avatar-wrap img { width: 100%; height: 100%; image-rendering: pixelated; }
.profile-bar .avatar-wrap .ph { font-size: 1.6rem; color: var(--muted-2); }
.profile-bar .pinfo { flex: 1; }
.profile-bar .pinfo .hi { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.profile-bar .pinfo .name { font-size: 1.4rem; font-weight: 800; }
.profile-bar .pinfo .name.guest { color: var(--muted-2); }

/* ---------- Section headings ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; color: var(--gold); font-weight: 800;
  letter-spacing: 0.28em; font-size: 0.74rem; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: 0.01em; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- Store layout (sidebar + grid) ---------- */
.store-layout { display: grid; grid-template-columns: 260px 1fr; gap: 38px; align-items: start; }

.sidebar { position: sticky; top: 94px; padding: 24px; }
.sidebar h4 { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 8px 12px; }
.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 4px;
  color: var(--muted); font-weight: 600; font-size: 0.9rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.side-link .si { font-size: 1.15rem; width: 22px; text-align: center; }
.side-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); transform: translateX(3px); }
.side-link.active { background: linear-gradient(135deg, rgba(255,193,43,0.18), rgba(245,158,11,0.06)); color: var(--gold-light); border: 1px solid rgba(255,193,43,0.25); }
.side-sep { height: 1px; background: var(--line); margin: 14px 4px; }

.currency-pick { margin-top: 6px; }
.currency-pick label { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 4px 8px; }
.currency-pick select {
  width: 100%; padding: 11px 14px; border-radius: 12px; cursor: pointer;
  background: rgba(0, 0, 0, 0.4); color: var(--text);
  border: 1px solid var(--glass-border); font-family: inherit; font-weight: 600; font-size: 0.88rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffc12b' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.currency-pick select:focus { outline: none; border-color: var(--gold); }
/* Fix unreadable dropdown options (white-on-white on some browsers) */
.currency-pick select option {
  background: #161924;
  color: #f4f5f8;
  padding: 8px;
}

/* ---------- Rank / product cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; }

.product {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  padding: 32px 26px 28px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  text-align: center;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.product::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.16;
  background: var(--accent, var(--gold-grad));
  transition: opacity 0.4s var(--ease);
}
.product::after {
  content: ""; position: absolute; top: -50%; left: -60%; width: 60%; height: 200%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg); transition: left 0.7s var(--ease); pointer-events: none;
}
.product:hover { transform: translateY(-10px); box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5); border-color: rgba(255, 255, 255, 0.18); }
.product:hover::before { opacity: 0.3; }
.product:hover::after { left: 130%; }

.product .ribbon {
  position: absolute; top: 16px; right: -34px; transform: rotate(45deg);
  background: var(--accent, var(--gold)); color: #1a1206;
  font-size: 0.62rem; font-weight: 900; letter-spacing: 0.12em;
  padding: 5px 40px; text-transform: uppercase; box-shadow: var(--shadow-sm);
}

.product .icon {
  width: 92px; height: 92px; margin: 6px auto 16px;
  display: grid; place-items: center; border-radius: 20px;
  background: var(--accent, var(--gold-grad));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 2.6rem;
  transition: transform 0.4s var(--ease);
}
.product:hover .icon { transform: translateY(-4px) scale(1.05) rotate(-3deg); }
.product .icon img { width: 56px; height: 56px; image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45)); }
.product .icon svg { width: 48px; height: 48px; color: #fff; filter: drop-shadow(0 5px 9px rgba(0,0,0,0.45)); }

.product .pname { font-size: 1.45rem; font-weight: 900; letter-spacing: 0.02em; }
.product .psub { color: var(--muted); font-size: 0.8rem; margin-bottom: 14px; }
.product .price { font-size: 2rem; font-weight: 900; margin-bottom: 4px; }
.product .price small { font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.product .perks { list-style: none; text-align: left; margin: 16px 0 22px; display: grid; gap: 8px; }
.product .perks li { font-size: 0.82rem; color: var(--muted); display: flex; gap: 9px; align-items: flex-start; }
.product .perks li::before { content: "✦"; color: var(--gold); flex-shrink: 0; }

.buy-btn {
  width: 100%; padding: 13px; border-radius: 13px; font-weight: 800; letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(235,235,235,0.85)); color: #15171f;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  margin-top: auto; /* pin to bottom so all cards align */
}
.product:hover .buy-btn { background: var(--accent, var(--gold-grad)); color: #fff; box-shadow: var(--shadow-gold); }
.buy-btn:hover { filter: brightness(1.08); }
.buy-btn:active { transform: scale(0.97); }

/* Accent class assignment */
.acc-legend { --accent: var(--legend-grad); }
.acc-vip { --accent: var(--vip-grad); }
.acc-mvp { --accent: var(--mvp-grad); }
.acc-elite { --accent: var(--elite-grad); }
.acc-key-legend { --accent: var(--key-legend); }
.acc-key-store { --accent: var(--key-store); }
.acc-key-custom { --accent: var(--key-custom); }

/* ---------- Recent purchases ---------- */
.recent { padding: 26px; }
.recent h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 1.1rem; }
.recent .sub { color: var(--muted); font-size: 0.82rem; margin-bottom: 18px; }
.recent-list { display: grid; gap: 10px; }
.recent-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--glass-border);
  animation: slideIn 0.5s var(--ease) both;
}
.recent-item img { width: 38px; height: 38px; border-radius: 9px; image-rendering: pixelated; }
.recent-item .ri-main { flex: 1; min-width: 0; }
.recent-item .ri-main b { font-weight: 700; font-size: 0.9rem; }
.recent-item .ri-main span { display: block; color: var(--muted); font-size: 0.78rem; }
.recent-item .ri-tag {
  font-size: 0.72rem; font-weight: 800; padding: 5px 11px; border-radius: 99px;
  background: rgba(255, 193, 43, 0.14); color: var(--gold-light); white-space: nowrap;
}
.recent-item .ri-time { font-size: 0.72rem; color: var(--muted-2); white-space: nowrap; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.feature { padding: 32px; }
.feature .fi { font-size: 1.8rem; margin-bottom: 12px; }
.feature h4 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Support steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 36px; }
.step { padding: 30px 26px; text-align: center; transition: transform 0.35s var(--ease), border-color 0.35s var(--ease); }
.step:hover { transform: translateY(-6px); border-color: rgba(255, 193, 43, 0.3); }
.step .step-n {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 900; color: #1a1206;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  box-shadow: var(--shadow-gold);
}
.step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.88rem; }

.support-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 34px; flex-wrap: wrap;
}
.support-cta h3 { font-size: 1.3rem; margin-bottom: 4px; }
.support-cta p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 46px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.footer .brand { margin-bottom: 14px; }
.footer p.about { color: var(--muted); font-size: 0.88rem; max-width: 320px; }
.footer h5 { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer a.fl { display: block; color: var(--muted); font-size: 0.9rem; padding: 5px 0; transition: color 0.2s var(--ease), padding 0.2s var(--ease); }
.footer a.fl:hover { color: var(--gold-light); padding-left: 5px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.82rem;
}
.footer-bottom .made { color: var(--gold-light); font-weight: 800; letter-spacing: 0.14em; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 20px;
  background: rgba(5, 6, 9, 0.7); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  width: min(460px, 100%);
  padding: 32px;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s var(--ease);
}
.modal.open .modal-box { transform: none; }
.modal-box h3 { font-size: 1.4rem; margin-bottom: 6px; text-align: center; }
.modal-box p.m-sub { color: var(--muted); text-align: center; font-size: 0.9rem; margin-bottom: 22px; }
.modal-close { position: absolute; top: 18px; right: 22px; font-size: 1.6rem; color: var(--muted); line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: var(--text); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--glass-border); color: var(--text);
  font-family: inherit; font-size: 0.95rem; transition: border-color 0.25s var(--ease);
}
.field input:focus { outline: none; border-color: var(--gold); }
.field .err { color: #fca5a5; font-size: 0.78rem; margin-top: 7px; min-height: 1em; }

/* Purchase confirm */
.confirm-prod {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border); margin-bottom: 20px;
}
.confirm-prod .cp-ico {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.8rem; background: var(--accent, var(--gold-grad)); flex-shrink: 0;
}
.confirm-prod .cp-ico img { width: 38px; image-rendering: pixelated; }
.confirm-prod .cp-ico svg { width: 32px; height: 32px; color: #fff; }
.confirm-prod .cp-info b { font-size: 1.15rem; }
.confirm-prod .cp-info span { display: block; color: var(--muted); font-size: 0.82rem; }
.confirm-prod .cp-price { margin-left: auto; font-size: 1.5rem; font-weight: 900; color: var(--gold-light); }

.confirm-note {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 13px;
  background: rgba(111, 123, 247, 0.1); border: 1px solid rgba(111, 123, 247, 0.3);
  color: #c3c8ff; font-size: 0.86rem; margin-bottom: 22px;
}
.confirm-note .ci { font-size: 1.2rem; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.pay-methods span {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 6px 11px; border-radius: 8px; color: var(--muted);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border);
}

.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; }

/* Success state */
.success { text-align: center; display: none; }
.success.show { display: block; animation: slideIn 0.4s var(--ease); }
.success .check {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.2rem;
  background: linear-gradient(135deg, #86efac, #16a34a); color: #06210f;
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.4);
}
.purchase-form.hide { display: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120%);
  z-index: 1200; padding: 13px 22px; border-radius: 13px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
  font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 10px;
  transition: transform 0.45s var(--ease);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .ti { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .store-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar .side-nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .side-link { margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; gap: 4px; padding: 16px 5%;
    background: rgba(8, 9, 13, 0.97); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    transform: translateY(-130%); transition: transform 0.4s var(--ease);
    margin: 0;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 16px; }
  .burger { display: flex; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta .btn span.lbl { display: none; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .profile-bar { flex-wrap: wrap; }
}

@media (max-width: 460px) {
  .cards-grid { grid-template-columns: 1fr; }
  .status-row { flex-direction: column; }
  .dc-stats { gap: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
