@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ── Palette — ARK Logo (electric blue gem + amber fire) ─────────────────── */
:root {
  --bg:       #04070f;
  --bg2:      #070b16;
  --bg3:      #0a1020;
  --card:     #080d1c;
  --card-h:   #0c1428;
  --border:   #101d35;
  --border2:  #182a48;

  /* Primary — electric blue from the ARK logo gem */
  --crystal:       #3399ff;
  --crystal-dim:   #1166cc;
  --crystal-glow:  rgba(51, 153, 255, 0.15);

  /* Secondary — amber/fire from logo star */
  --fire:      #ff8800;
  --fire-dim:  #cc5500;
  --fire-glow: rgba(255, 136, 0, 0.18);

  /* Aurora — purple from the logo halo */
  --aurora:    #6633bb;

  /* Legacy aliases */
  --blue:       #3399ff;
  --blue-dim:   #1166cc;
  --teal:       #3399ff;
  --teal-dim:   #1166cc;
  --teal-glow:  rgba(51, 153, 255, 0.15);
  --amber:      #ff8800;
  --amber-dim:  #cc5500;
  --amber-glow: rgba(255, 136, 0, 0.18);
  --glow-blue:  rgba(51, 153, 255, 0.12);
  --glow-amber: rgba(255, 136, 0, 0.14);

  --green:    #00dd77;
  --red:      #ff2244;
  --purple:   #8844ff;

  --text:      #c8d8f4;
  --text-dim:  #5a7898;
  --text-muted:#2c4060;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color .2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--crystal);
  box-shadow: 0 0 0 2px var(--crystal-glow);
}
label {
  font-size: 12px; color: var(--text-dim);
  display: block; margin-bottom: 5px;
  letter-spacing: .06em; text-transform: uppercase;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--crystal-dim); }

/* ── Util ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.flex { display: flex; }
.w-full { width: 100%; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 5px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  transition: all .2s; position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, #008866 0%, #005544 100%);
  color: #fff;
  box-shadow: 0 0 18px rgba(0,232,176,.25), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #00ccaa 0%, #008866 100%);
  box-shadow: 0 0 30px rgba(0,232,176,.45);
  transform: translateY(-1px);
}
.btn-amber, .btn-fire {
  background: linear-gradient(135deg, #cc5500 0%, #882200 100%);
  color: #fff;
  box-shadow: 0 0 18px rgba(255,98,0,.3), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-amber:hover, .btn-fire:hover {
  background: linear-gradient(135deg, #ff7700 0%, #cc4400 100%);
  box-shadow: 0 0 30px rgba(255,98,0,.5);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text-dim);
}
.btn-ghost:hover { border-color: var(--crystal); color: var(--crystal); }
.btn-danger {
  background: linear-gradient(135deg, #cc1133 0%, #880022 100%);
  color: #fff;
}
.btn-danger:hover { background: linear-gradient(135deg, #ff2244 0%, #cc1133 100%); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn:disabled { opacity: .4; pointer-events: none; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 8, 12, .95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,232,176,.1);
  padding: 0 24px;
}
.header-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 16px;
}
.header-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-logo img {
  height: 42px; width: auto;
  filter: drop-shadow(0 0 14px rgba(0,232,176,.35)) drop-shadow(0 0 30px rgba(255,98,0,.2));
}
.header-logo-text {
  font-family: 'Orbitron', monospace; font-size: 15px; font-weight: 900;
  letter-spacing: .18em;
  background: linear-gradient(135deg, #00e8b0 20%, #ff6200 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header-nav { display: flex; align-items: center; gap: 2px; }
.header-nav-link {
  padding: 7px 13px; border-radius: 4px; font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim);
  transition: all .2s;
}
.header-nav-link:hover { color: var(--crystal); background: var(--crystal-glow); }
.header-nav-link.active { color: var(--crystal); }
.header-right { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 5px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.cart-btn:hover { border-color: var(--fire); color: var(--fire); }
.cart-count {
  background: var(--fire); color: #fff; font-family: 'Orbitron', monospace;
  font-size: 10px; font-weight: 700; border-radius: 50%;
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
}
.cart-count.hidden { display: none; }
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 5px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .2s;
}
.user-btn:hover { border-color: var(--crystal); }
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--crystal), var(--fire));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #000;
}
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; min-width: 170px; overflow: hidden;
  box-shadow: 0 16px 50px rgba(0,0,0,.6);
}
.user-dropdown a {
  display: block; padding: 10px 16px; font-size: 13px; color: var(--text-dim);
  transition: all .15s;
}
.user-dropdown a:hover { background: var(--bg2); color: var(--text); }
.user-dropdown .divider { height: 1px; background: var(--border); margin: 3px 0; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 460px; display: flex; align-items: center; justify-content: center;
  text-align: center;
}
/* Wallpaper slideshow */
.hero-bg {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
  opacity: 0;
  animation: hero-cycle 24s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s;   background-image: url('/assets/wallpapers/ark_abf0008b.jpg'); }
.hero-slide:nth-child(2) { animation-delay: 6s;    background-image: url('/assets/wallpapers/ark_f9e156d2.jpg'); }
.hero-slide:nth-child(3) { animation-delay: 12s;   background-image: url('/assets/wallpapers/ark_10222daf.jpg'); }
.hero-slide:nth-child(4) { animation-delay: 18s;   background-image: url('/assets/wallpapers/ark_f0ed123c.jpg'); }
@keyframes hero-cycle {
  0%   { opacity: 0; transform: scale(1.03); }
  5%   { opacity: 1; transform: scale(1.03); }
  22%  { opacity: 1; transform: scale(1); }
  27%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(4,7,15,.6) 0%, rgba(4,7,15,.2) 40%, rgba(4,7,15,.65) 75%, rgba(4,7,15,1) 100%),
    linear-gradient(135deg, rgba(10,20,60,.35) 0%, transparent 50%);
}
.hero-hex-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(60deg, rgba(0,232,176,.035) 1px, transparent 1px),
    linear-gradient(-60deg, rgba(0,232,176,.035) 1px, transparent 1px),
    linear-gradient(rgba(0,232,176,.02) 1px, transparent 1px);
  background-size: 44px 76px, 44px 76px, 44px 76px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 70px 20px 80px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.hero-logo {
  width: 200px; height: auto;
  filter: drop-shadow(0 0 28px rgba(51,153,255,.55)) drop-shadow(0 0 60px rgba(255,136,0,.3));
  animation: logo-pulse 4s ease-in-out infinite;
}
@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 28px rgba(51,153,255,.55)) drop-shadow(0 0 60px rgba(255,136,0,.3)); }
  50%       { filter: drop-shadow(0 0 46px rgba(51,153,255,.8)) drop-shadow(0 0 90px rgba(255,136,0,.45)); }
}
.hero-sub {
  font-size: 14px; color: rgba(196,216,239,.65); letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500;
}
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid rgba(0,232,176,.2);
  background: rgba(0,232,176,.06);
  font-size: 12px; color: rgba(196,216,239,.7); font-weight: 600; letter-spacing: .06em;
  backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ── Hub nav (below hero) ───────────────────────────────────────────────── */
.hub-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.hub-nav-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.hub-nav-inner::-webkit-scrollbar { display: none; }
.hub-nav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-dim); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .2s; text-decoration: none;
}
a.hub-nav-item:hover { color: var(--crystal); border-bottom-color: var(--crystal); }
.hub-nav-static { cursor: default; }
.hub-nav-icon { font-size: 15px; }
.hub-nav-count {
  background: var(--crystal); color: #000;
  font-size: 10px; font-weight: 800; font-family: 'Orbitron', monospace;
  border-radius: 10px; padding: 1px 6px;
}
.hub-nav-sep { flex: 1; min-width: 20px; }

/* Keep community-strip alias for other pages */
.community-strip { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 20px 24px; }
.community-strip-inner { max-width: 1300px; margin: 0 auto; display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.comm-stat { text-align: center; }
.comm-stat-value { font-family: 'Orbitron', monospace; font-size: 26px; font-weight: 700; color: var(--crystal); }
.comm-stat-label { font-size: 11px; color: var(--text-dim); letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.comm-divider { width: 1px; background: var(--border2); height: 40px; }

/* ── Category bar ───────────────────────────────────────────────────────── */
.category-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 62px; z-index: 90;
}
.category-bar-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none;
}
.category-bar-inner::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0; padding: 11px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 2px solid transparent; transition: all .2s;
  white-space: nowrap;
}
.cat-tab:hover { color: var(--text-dim); border-bottom-color: var(--border2); }
.cat-tab.active { color: var(--crystal); border-bottom-color: var(--crystal); }

/* ── Shop Layout ────────────────────────────────────────────────────────── */
.shop-main { max-width: 1300px; margin: 0 auto; padding: 28px 24px 60px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.section-title {
  font-family: 'Orbitron', monospace; font-size: 16px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.section-title span { color: var(--crystal); }
.item-count { font-size: 12px; color: var(--text-muted); }

/* ── Items Grid ─────────────────────────────────────────────────────────── */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ── Item Card — Image-first ────────────────────────────────────────────── */
.item-card {
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  cursor: pointer;
}
.item-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(0,232,176,.1);
}

/* Image wrapper */
.item-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #050e18 0%, #030b10 100%);
}
.item-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.item-card:hover .item-image-wrap img { transform: scale(1.07); }

/* Placeholder when no image */
.item-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #050e18 0%, #030b10 100%);
  font-size: 52px;
}

/* Overlay slides up on hover */
.item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,8,12,.96) 0%, rgba(4,8,12,.7) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
  opacity: 0; transition: opacity .25s;
}
.item-card:hover .item-overlay { opacity: 1; }
.item-overlay-desc {
  font-size: 13px; color: rgba(196,216,239,.8); line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.item-overlay-btn {
  width: 100%; padding: 9px 16px; border-radius: 5px;
  background: linear-gradient(135deg, #cc5500, #882200);
  color: #fff; font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  border: none; cursor: pointer;
  box-shadow: 0 0 20px rgba(255,98,0,.4);
  transition: all .2s;
}
.item-overlay-btn:hover {
  background: linear-gradient(135deg, #ff7700, #cc4400);
  box-shadow: 0 0 30px rgba(255,98,0,.6);
}

/* Info bar */
.item-info-bar {
  padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--card);
  border-top: 1px solid var(--border);
}
.item-info-left { min-width: 0; }
.item-name {
  font-family: 'Orbitron', monospace; font-size: 11px; font-weight: 700;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: .04em;
}
.item-cat { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.item-price {
  font-family: 'Orbitron', monospace; font-size: 14px; font-weight: 700;
  color: var(--fire); white-space: nowrap; flex-shrink: 0;
}
.item-price small { font-size: 10px; opacity: .7; }
.item-quick-add {
  width: 30px; height: 30px; border-radius: 5px; flex-shrink: 0;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--crystal); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.item-quick-add:hover {
  background: rgba(0,232,176,.1); border-color: var(--crystal);
  box-shadow: 0 0 12px var(--crystal-glow);
}
.item-stock-out { font-size: 10px; color: var(--red); font-weight: 700; letter-spacing: .05em; }

/* ── Cart Sidebar ───────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; width: 360px;
  background: var(--bg3); border-left: 1px solid var(--border);
  z-index: 201; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,.6);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header {
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-title {
  font-family: 'Orbitron', monospace; font-size: 13px; font-weight: 700; letter-spacing: .12em;
}
.cart-close {
  width: 30px; height: 30px; border-radius: 5px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.cart-close:hover { border-color: var(--red); color: var(--red); }
.cart-items { flex: 1; overflow-y: auto; padding: 14px; }
.cart-empty {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--text-muted); font-size: 13px;
}
.cart-empty-icon { font-size: 44px; opacity: .3; }
.cart-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--bg2); border-radius: 6px;
  border: 1px solid var(--border); margin-bottom: 8px;
}
.cart-item-icon { font-size: 26px; flex-shrink: 0; width: 36px; text-align: center; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 11px; color: var(--fire); font-family: 'Orbitron', monospace; }
.cart-item-qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.qty-btn {
  width: 22px; height: 22px; border-radius: 3px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 13px;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.qty-btn:hover { border-color: var(--crystal); color: var(--crystal); }
.qty-num { font-size: 12px; font-weight: 600; width: 18px; text-align: center; }
.cart-remove { color: var(--text-muted); font-size: 14px; padding: 4px; transition: color .15s; }
.cart-remove:hover { color: var(--red); }
.cart-footer {
  padding: 14px 20px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.cart-total { display: flex; align-items: center; justify-content: space-between; }
.cart-total-label { color: var(--text-dim); font-size: 13px; font-weight: 500; }
.cart-total-value { font-family: 'Orbitron', monospace; font-size: 20px; font-weight: 700; color: var(--fire); }

/* ── Modals ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.8);
  z-index: 300; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s; padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; width: 100%; max-width: 440px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  transform: scale(.95); transition: transform .2s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: 'Orbitron', monospace; font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.modal-close {
  width: 28px; height: 28px; border-radius: 4px;
  border: 1px solid var(--border); color: var(--text-dim); font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-body { padding: 22px; }

.auth-tabs { display: flex; margin-bottom: 20px; border-radius: 5px; overflow: hidden; border: 1px solid var(--border); }
.auth-tab {
  flex: 1; padding: 9px; text-align: center; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg2); transition: all .2s;
}
.auth-tab.active { background: var(--bg3); color: var(--crystal); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.payment-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.payment-method-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: 7px;
  border: 1.5px solid var(--border); background: var(--bg2);
  color: var(--text); font-size: 14px; font-weight: 600; text-align: left;
  transition: all .2s;
}
.payment-method-btn:hover { border-color: var(--crystal); background: var(--crystal-glow); }
.pm-icon { font-size: 24px; }
.pm-info { flex: 1; }
.pm-title { font-weight: 700; }
.pm-sub { font-size: 12px; color: var(--text-muted); font-weight: 400; }

.pix-container { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pix-qr { width: 190px; height: 190px; border-radius: 6px; border: 2px solid var(--border); background: #fff; padding: 8px; }
.pix-qr img { width: 100%; height: 100%; }
.pix-code-box {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 5px;
  padding: 10px 12px; font-size: 11px; color: var(--text-dim);
  word-break: break-all; text-align: left; font-family: monospace; width: 100%;
}
.pix-timer { font-size: 12px; color: var(--text-muted); }
.pix-timer span { color: var(--fire); font-weight: 700; font-family: 'Orbitron', monospace; }

/* ── Community pages ────────────────────────────────────────────────────── */
.page-hero {
  position: relative; overflow: hidden;
  padding: 60px 24px 50px; text-align: center;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(0,80,40,.4), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero-title {
  font-family: 'Orbitron', monospace; font-size: 32px; font-weight: 900;
  letter-spacing: .14em; color: var(--text);
}
.page-hero-title span { color: var(--crystal); }
.page-hero-sub { font-size: 14px; color: var(--text-dim); margin-top: 8px; letter-spacing: .1em; }

.page-content { max-width: 1300px; margin: 0 auto; padding: 32px 24px 60px; }

/* Player cards */
.players-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.player-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 20px; display: flex; gap: 16px; align-items: flex-start;
  transition: all .2s;
}
.player-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.player-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--crystal), var(--fire));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace; font-size: 18px; font-weight: 900; color: #000;
  overflow: hidden;
}
.player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-info { flex: 1; min-width: 0; }
.player-name {
  font-family: 'Orbitron', monospace; font-size: 13px; font-weight: 700;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-tribe { font-size: 12px; color: var(--crystal); margin-bottom: 8px; }
.player-stats { display: flex; gap: 14px; }
.player-stat { text-align: center; }
.player-stat-val { font-family: 'Orbitron', monospace; font-size: 14px; font-weight: 700; color: var(--fire); }
.player-stat-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.player-bio { font-size: 12px; color: var(--text-dim); margin-top: 8px; line-height: 1.4; }
.player-featured {
  border-color: rgba(0,232,176,.3);
  box-shadow: 0 0 0 1px rgba(0,232,176,.15), 0 0 30px rgba(0,232,176,.08);
}

/* Tribe rankings */
.tribes-list { display: flex; flex-direction: column; gap: 10px; }
.tribe-row {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 20px; display: flex; align-items: center; gap: 16px;
  transition: all .2s;
}
.tribe-row:hover { border-color: var(--border2); }
.tribe-rank {
  font-family: 'Orbitron', monospace; font-size: 20px; font-weight: 900;
  color: var(--text-muted); width: 32px; text-align: center; flex-shrink: 0;
}
.tribe-rank.top1 { color: #ffd700; }
.tribe-rank.top2 { color: #c0c0c0; }
.tribe-rank.top3 { color: #cd7f32; }
.tribe-logo {
  width: 44px; height: 44px; border-radius: 6px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  border: 1px solid var(--border); overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.tribe-logo img { width: 100%; height: 100%; object-fit: cover; }
.tribe-info { flex: 1; min-width: 0; }
.tribe-name { font-family: 'Orbitron', monospace; font-size: 14px; font-weight: 700; }
.tribe-tag { font-size: 11px; color: var(--crystal); letter-spacing: .08em; }
.tribe-desc { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.tribe-stats { display: flex; gap: 20px; flex-shrink: 0; }
.tribe-stat-val { font-family: 'Orbitron', monospace; font-size: 16px; font-weight: 700; color: var(--text); }
.tribe-stat-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }

/* News section */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.news-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  transition: all .2s;
}
.news-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.news-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 16px; }
.news-card-title { font-family: 'Orbitron', monospace; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.news-card-text { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.news-card-date { font-size: 11px; color: var(--text-muted); margin-top: 10px; }
.pinned-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fire); background: var(--fire-glow); padding: 3px 8px; border-radius: 3px;
  border: 1px solid rgba(255,98,0,.25);
}

/* ── Toast ──────────────────────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-radius: 7px; min-width: 260px;
  background: var(--bg3); border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  animation: slide-in .25s ease; font-size: 13px; font-weight: 500;
}
.toast.success { border-color: var(--green); }
.toast.error   { border-color: var(--red); }
.toast.info    { border-color: var(--crystal); }
.toast-icon { font-size: 16px; }
@keyframes slide-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ── Loading ────────────────────────────────────────────────────────────── */
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--crystal); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-loader { display: flex; align-items: center; justify-content: center; min-height: 260px; }
.skeleton { background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 220px; border-radius: 8px; }

/* ── Dashboard ──────────────────────────────────────────────────────────── */
.dashboard-layout { max-width: 1100px; margin: 0 auto; padding: 28px 24px; display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.dash-sidebar { display: flex; flex-direction: column; gap: 4px; }
.dash-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); cursor: pointer; transition: all .2s;
}
.dash-nav-item:hover { background: var(--bg3); color: var(--text-dim); }
.dash-nav-item.active { background: var(--crystal-glow); color: var(--crystal); }
.dash-nav-item .icon { font-size: 16px; width: 22px; text-align: center; }
.dash-content { min-width: 0; }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.profile-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 22px; }
.profile-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.profile-avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--crystal), var(--fire)); display: flex; align-items: center; justify-content: center; font-family: 'Orbitron', monospace; font-size: 20px; font-weight: 900; color: #000; flex-shrink: 0; }
.profile-name { font-family: 'Orbitron', monospace; font-size: 16px; font-weight: 700; }
.profile-email { font-size: 12px; color: var(--text-dim); }

/* ── Admin ──────────────────────────────────────────────────────────────── */
.admin-layout { max-width: 1300px; margin: 0 auto; padding: 28px 24px; }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tab { padding: 8px 16px; border-radius: 5px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); background: var(--bg2); border: 1px solid var(--border); transition: all .2s; }
.admin-tab:hover { color: var(--text); border-color: var(--border2); }
.admin-tab.active { background: var(--crystal-glow); color: var(--crystal); border-color: rgba(0,232,176,.3); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 18px 22px; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.stat-value { font-family: 'Orbitron', monospace; font-size: 26px; font-weight: 700; color: var(--text); }
.stat-value.revenue { color: var(--green); }
.stat-value.amber { color: var(--fire); }
.data-table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.data-table-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.data-table-title { font-family: 'Orbitron', monospace; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 9px 14px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); background: rgba(255,255,255,.015); border-bottom: 1px solid var(--border); }
.data-table td { padding: 11px 14px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.03); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.012); }
.table-actions { display: flex; gap: 6px; }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.form-card-title { font-family: 'Orbitron', monospace; font-size: 13px; font-weight: 700; letter-spacing: .08em; margin-bottom: 18px; }
.admin-form { display: grid; gap: 14px; }
.rcon-help { background: var(--bg2); border: 1px solid var(--border); border-radius: 5px; padding: 10px 14px; font-size: 11px; color: var(--text-dim); line-height: 1.6; }
.rcon-help code { color: var(--crystal); background: rgba(0,232,176,.08); padding: 1px 4px; border-radius: 3px; }

/* Orders / badges */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { text-align: left; padding: 9px 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.orders-table td { padding: 11px 12px; font-size: 13px; border-bottom: 1px solid var(--border); }
.orders-table tr:last-child td { border-bottom: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.badge-paid      { background: rgba(0,221,119,.12); color: var(--green); border: 1px solid rgba(0,221,119,.25); }
.badge-pending   { background: rgba(255,98,0,.12); color: var(--fire); border: 1px solid rgba(255,98,0,.25); }
.badge-failed    { background: rgba(255,34,68,.12); color: var(--red); border: 1px solid rgba(255,34,68,.25); }
.badge-delivered { background: rgba(0,221,119,.08); color: #00cc66; border: 1px solid rgba(0,221,119,.18); }
.badge-info      { background: rgba(0,232,176,.1); color: var(--crystal); border: 1px solid rgba(0,232,176,.2); }
/* Rarity (kept for backward compat, visually neutral) */
.rarity-common, .rarity-rare, .rarity-epic, .rarity-legendary { display: none; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { margin-top: 60px; padding: 28px 24px; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 12px; }
.site-footer img { height: 28px; opacity: .4; margin-bottom: 10px; }
.footer-links { display: flex; justify-content: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); transition: color .2s; font-size: 12px; }
.footer-links a:hover { color: var(--crystal); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title { font-size: 34px; }
  .hero-logo { width: 100px; }
  .items-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .cart-sidebar { width: 100%; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-sidebar { flex-direction: row; overflow-x: auto; }
  .form-row { grid-template-columns: 1fr; }
  .header-logo-text { display: none; }
  .header-nav { display: none; }
  .tribe-stats { display: none; }
}
