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

:root {
  --bg:         #0d0d0d;
  --bg2:        #111111;
  --surface:    #181818;
  --surface2:   #1f1f1f;
  --border:     rgba(255,255,255,0.06);
  --border2:    rgba(255,255,255,0.12);
  --gold:       #f5c800;
  --gold2:      #c89a00;
  --gold-light: #ffd84d;
  --gold-glow:  rgba(245,200,0,0.15);
  --gold-dim:   rgba(245,200,0,0.08);
  --text:       #e8e8e8;
  --text-muted: #6b6b6b;
  --text-sub:   #9a9a9a;
  --red:        #ef4444;
  --green:      #22c55e;
  --radius:     4px;
  --radius-md:  8px;
  --radius-lg:  12px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Kanit', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  height: 62px;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245,200,0,0.12);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

/* Brand */
.nav-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0;
}
.nav-brand-icon {
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 22px;
}
.nav-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 800; font-style: italic;
  color: var(--text); letter-spacing: 0.04em; line-height: 1;
  text-transform: uppercase;
}
.nav-brand-name span { color: var(--gold); }

/* Nav menu */
.nav-menu {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 99px; padding: 4px 6px;
}
.nav-menu-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  color: var(--text-muted); cursor: pointer; border: none; background: none;
  font-family: 'Kanit', sans-serif;
  transition: all .18s;
}
.nav-menu-item.active {
  background: var(--gold);
  color: #000;
}
.nav-menu-item:hover:not(.active) {
  color: var(--text); background: rgba(255,255,255,0.07);
}
.nav-menu-item i { font-size: 12px; }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-cart {
  position: relative; color: var(--text-muted); font-size: 18px;
  cursor: pointer; text-decoration: none;
  transition: color .2s;
}
.nav-cart:hover { color: var(--text); }
.nav-cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 99px; padding: 1px 5px; min-width: 16px; text-align: center;
}

/* User chip */
.nav-user {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  border-radius: 99px; padding: 4px 12px 4px 4px;
  cursor: pointer; transition: border-color .2s;
}
.nav-user:hover { border-color: rgba(245,200,0,0.4); }
.nav-user-avatar {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  background: var(--surface2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--gold);
  border: 2px solid rgba(245,200,0,0.3);
}
.nav-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-user-info { line-height: 1.2; }
.nav-user-name { font-size: 12px; font-weight: 600; color: var(--text); }
.nav-user-coin { font-size: 11px; font-weight: 700; color: var(--gold); }

/* User Dropdown */
.nav-user-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  width: 240px;
  background: #1a1a1a;
  border: 1px solid rgba(245,200,0,0.15);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  z-index: 300;
  animation: dropdown-in .15s ease;
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.nav-user:hover .nav-user-dropdown { display: block; }

.dropdown-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dropdown-avatar {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  background: var(--surface2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--gold);
  border: 2px solid rgba(245,200,0,0.3);
}
.dropdown-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropdown-user-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.dropdown-user-email { font-size: 11px; color: var(--text-muted); }
.dropdown-coin {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(245,200,0,0.1); border: 1px solid rgba(245,200,0,0.2);
  border-radius: 6px; padding: 2px 8px; margin-top: 4px;
  font-size: 12px; font-weight: 700; color: var(--gold);
}

.dropdown-menu { padding: 6px; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-sub);
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
  border: none; background: none; width: 100%; text-align: left;
  font-family: 'Kanit', sans-serif;
}
.dropdown-item i { width: 16px; text-align: center; font-size: 13px; }
.dropdown-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.dropdown-item.danger { color: #f87171; }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.1); }
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 4px 0; }

/* Login btn */
.btn-login {
  display: flex; align-items: center; gap: 8px;
  background: #5865F2; color: #fff;
  border: none; border-radius: 8px; padding: 8px 18px;
  font-size: 13px; font-family: 'Kanit', sans-serif; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: opacity .15s;
}
.btn-login:hover { opacity: .88; }

/* ══════════════════════════════
   HERO / SLIDER
══════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0d0d0d 0%, #141200 50%, #0d0d0d 100%);
  min-height: 420px;
  display: flex; align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 10% 50%, rgba(245,200,0,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 50%, rgba(245,200,0,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(rgba(245,200,0,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,200,0,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto; padding: 60px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  width: 100%;
}

/* Left: Text */
.hero-text {}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.hero-eyebrow::before {
  content: '';
  display: block; width: 24px; height: 2px; background: var(--gold);
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 5vw, 64px); font-weight: 900; font-style: italic;
  line-height: 1; text-transform: uppercase; color: #fff;
  margin-bottom: 8px;
}
.hero-title-gold {
  display: block; color: var(--gold);
  text-shadow: 0 0 40px rgba(245,200,0,0.4);
}
.hero-desc {
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
  max-width: 400px; margin-bottom: 28px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #000;
  border: none; border-radius: var(--radius-md); padding: 12px 26px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700; font-style: italic; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-sub);
  border: 1px solid var(--border2); border-radius: var(--radius-md); padding: 12px 22px;
  font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer;
  font-family: 'Kanit', sans-serif;
  transition: border-color .15s, color .15s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Right: Slider */
.hero-slider {
  position: relative;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(245,200,0,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,200,0,0.05);
  aspect-ratio: 16/10;
  background: var(--surface);
}
.slider-track { display: flex; height: 100%; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.slide {
  flex: 0 0 100%; height: 100%; position: relative; overflow: hidden;
}
.slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.slide-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1500, #0d0d0d);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--gold);
}
.slide-placeholder i { font-size: 36px; opacity: .4; }
.slide-placeholder p { font-size: 13px; color: var(--text-muted); }

/* Slide overlay text */
.slide-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 20px 20px 16px;
}
.slide-overlay-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.slide-overlay-sub { font-size: 12px; color: var(--gold); font-weight: 600; }

.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; font-size: 12px;
  transition: background .15s; z-index: 10;
}
.slider-nav:hover { background: rgba(245,200,0,0.3); border-color: var(--gold); color: var(--gold); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.slider-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer; transition: all .2s;
}
.slider-dot.active { background: var(--gold); width: 18px; border-radius: 3px; }

/* ══════════════════════════════
   WALLET BAR (เมื่อ login)
══════════════════════════════ */
.wallet-bar {
  background: rgba(245,200,0,0.05);
  border-bottom: 1px solid rgba(245,200,0,0.1);
  padding: 10px 40px;
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.wallet-bar-coin {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--gold);
}
.wallet-bar-coin i { font-size: 13px; }
.wallet-bar-label { font-size: 12px; color: var(--text-muted); font-weight: 400; }

.btn-topup {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: #000;
  border: none; border-radius: 6px; padding: 7px 18px;
  font-size: 12px; font-family: 'Kanit', sans-serif; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: opacity .15s;
}
.btn-topup:hover { opacity: .88; }

/* ══════════════════════════════
   ANNOUNCEMENT
══════════════════════════════ */
.announcement {
  max-width: 1280px; margin: 28px auto 0; padding: 0 40px;
}
.announcement-box {
  background: rgba(245,200,0,0.06);
  border: 1px solid rgba(245,200,0,0.2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex; align-items: flex-start; gap: 12px;
}
.announcement-icon { color: var(--gold); font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.announcement-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.announcement-text { font-size: 13px; color: var(--text-sub); line-height: 1.6; }

/* ══════════════════════════════
   SECTION HEADING
══════════════════════════════ */
.section-heading {
  text-align: center; margin-bottom: 36px;
}
.section-heading-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 8px;
}
.section-heading-eyebrow::before,
.section-heading-eyebrow::after {
  content: ''; flex: 1; max-width: 60px; height: 1px; background: rgba(245,200,0,0.3);
}
.section-heading-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 4vw, 42px); font-weight: 900; font-style: italic;
  text-transform: uppercase; color: #fff; line-height: 1;
}
.section-heading-sub { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ══════════════════════════════
   CONTENT AREA
══════════════════════════════ */
.main-content {
  max-width: 1280px; margin: 0 auto; padding: 48px 40px 80px;
}

/* Tabs */
.tab-bar {
  display: flex; align-items: center; gap: 4px; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 20px 10px; border: none; background: none;
  font-family: 'Kanit', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; letter-spacing: 0.04em;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .15s;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-badge {
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 99px; padding: 1px 6px; min-width: 16px; text-align: center;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Category */
.cat-label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; margin-top: 36px;
}
.cat-label:first-child { margin-top: 0; }
.cat-label-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted); white-space: nowrap;
}
.cat-label-line { flex: 1; height: 1px; background: var(--border); }

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

/* Item Card */
.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,200,0,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,200,0,0.08);
}

.item-img-wrap {
  position: relative; aspect-ratio: 16/10;
  background: var(--surface2); overflow: hidden;
}
.item-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.item-card:hover .item-img { transform: scale(1.06); }
.item-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--text-muted);
  background: linear-gradient(135deg, var(--surface2), #111);
}

/* Price badge on image */
.item-price-badge {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(6px);
  border: 1px solid rgba(245,200,0,0.4);
  border-radius: 6px; padding: 3px 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--gold);
}

.item-hot-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--gold); color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 900; font-style: italic; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: 4px; padding: 2px 8px;
}

.item-stock-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  border-radius: 5px; padding: 2px 8px;
  font-size: 10px; font-weight: 600; color: var(--text-muted);
}
.item-stock-badge.low { color: #fb923c; }
.item-stock-badge.out { color: var(--red); }

/* Tag chips */
.item-tags {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  padding: 10px 12px 0;
}
.item-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--text-muted); background: var(--surface2);
  border: 1px solid var(--border2); border-radius: 4px; padding: 1px 7px;
  text-transform: uppercase;
}
.item-tag-type { color: var(--text-muted); }
.item-tag-esx  { background: rgba(245,200,0,0.08); border-color: rgba(245,200,0,0.2); color: var(--gold); }
.item-tag-ver  { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2); color: #a5b4fc; }

.item-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.item-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.item-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; flex: 1; }

.item-footer {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.btn-details {
  display: flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--border2);
  border-radius: 6px; padding: 6px 10px;
  font-size: 11px; font-family: 'Kanit', sans-serif; font-weight: 500;
  color: var(--text-muted); cursor: pointer; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.btn-details:hover { border-color: var(--gold); color: var(--gold); }
.btn-details i { font-size: 11px; }

.btn-add {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--gold); color: #000;
  border: none; border-radius: 6px; padding: 7px;
  font-size: 12px; font-family: 'Kanit', sans-serif; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: opacity .15s;
}
.btn-add:hover { opacity: .88; }
.btn-add:disabled {
  background: var(--surface2); color: var(--text-muted);
  cursor: not-allowed; border: 1px solid var(--border);
}

/* Flash */
.flash-wrap { max-width: 1280px; margin: 16px auto 0; padding: 0 40px; }
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500; margin-bottom: 8px;
}
.flash-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #4ade80; }
.flash-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.25);  color: #f87171; }

/* ══════════════════════════════
   ORDERS
══════════════════════════════ */
.order-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden;
  transition: border-color .2s;
}
.order-card:hover { border-color: var(--border2); }
.order-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.order-ref { font-size: 11px; font-weight: 700; color: var(--text-muted); font-family: monospace; }
.order-date { font-size: 11px; color: var(--text-muted); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; border-radius: 5px; padding: 3px 10px;
}
.badge-pending   { background: rgba(245,200,0,0.1);  color: var(--gold);  border: 1px solid rgba(245,200,0,0.25); }
.badge-delivered { background: rgba(34,197,94,0.1);  color: var(--green); border: 1px solid rgba(34,197,94,0.25); }
.badge-failed    { background: rgba(239,68,68,0.1);  color: #f87171;      border: 1px solid rgba(239,68,68,0.25); }
.badge-none      { background: rgba(255,255,255,.04); color: var(--text-muted); border: 1px solid var(--border); }

.order-body { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.order-item-img {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover;
  background: var(--surface2); flex-shrink: 0;
}
.order-item-img-placeholder {
  width: 52px; height: 52px; border-radius: 8px;
  background: var(--surface2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text-muted);
}
.order-item-info { flex: 1; min-width: 0; }
.order-item-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.order-item-meta { font-size: 12px; color: var(--text-muted); }
.order-item-meta span + span::before { content: ' · '; }
.order-price { font-size: 15px; font-weight: 700; color: var(--gold); text-align: right; }
.order-price-label { font-size: 11px; color: var(--text-muted); }
.order-fail-reason {
  margin: 0 16px 12px;
  padding: 8px 12px;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  border-radius: 6px; font-size: 12px; color: #f87171;
}

/* Empty */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty-state i { font-size: 44px; margin-bottom: 14px; display: block; opacity: .25; }
.empty-state p { font-size: 14px; }

/* ══════════════════════════════
   MODAL
══════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
  z-index: 500; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface); border: 1px solid rgba(245,200,0,0.2);
  border-radius: 16px; width: 100%; max-width: 400px; overflow: hidden;
  animation: modal-in .2s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-img { width: 100%; aspect-ratio: 16/7; object-fit: cover; background: var(--surface2); }
.modal-img-placeholder {
  width: 100%; aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--surface2), #111);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--text-muted);
}
.modal-body { padding: 22px; }
.modal-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.modal-sub   { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.qty-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.qty-ctrl {
  display: flex; align-items: center;
  background: var(--surface2); border: 1px solid var(--border2); border-radius: 8px; overflow: hidden;
}
.qty-btn { width: 36px; height: 36px; background: none; border: none; color: var(--text); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: rgba(255,255,255,0.06); }
.qty-input {
  width: 44px; text-align: center; background: none; border: none;
  color: var(--text); font-size: 14px; font-family: 'Kanit', sans-serif; font-weight: 600;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.summary-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gold-dim); border: 1px solid rgba(245,200,0,0.2);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 12px;
}
.summary-label { font-size: 12px; color: var(--text-muted); }
.summary-total { font-size: 18px; font-weight: 700; color: var(--gold); display: flex; align-items: center; gap: 5px; }
.coin-check { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.coin-check.ok  { color: var(--green); }
.coin-check.low { color: var(--red); }
.modal-actions { display: flex; gap: 8px; }
.btn-cancel {
  flex: 1; background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 8px; padding: 10px; color: var(--text-muted);
  font-size: 13px; font-family: 'Kanit', sans-serif; font-weight: 500; cursor: pointer;
}
.btn-cancel:hover { background: var(--border2); }
.btn-confirm {
  flex: 2; background: var(--gold); border: none; border-radius: 8px;
  padding: 10px; color: #000; font-size: 14px;
  font-family: 'Kanit', sans-serif; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-confirm:hover { opacity: .9; }
.btn-confirm:disabled { background: var(--surface2); color: var(--text-muted); cursor: not-allowed; border: 1px solid var(--border); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.shop-footer {
  background: #0a0a0a; border-top: 1px solid var(--border);
  padding: 20px 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 800; font-style: italic;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; }
  .hero-slider { max-width: 100%; }
  .main-content { padding: 32px 24px 60px; }
  .navbar { padding: 0 20px; }
  .wallet-bar { padding: 10px 20px; }
  .announcement { padding: 0 20px; }
  .nav-menu { display: none; }
}
@media (max-width: 540px) {
  .items-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-title { font-size: 32px; }
  .shop-footer { padding: 16px 20px; }
}