/* ═══════════════════════════════════════════════════
   ACCDEE — Dark Navy Neon Theme
   สีหลัก: #050d1a (bg) · #00d4ff (neon blue) · #00ff88 (green)
═══════════════════════════════════════════════════ */

/* ── RESET & BASE ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --neon-blue:    #00d4ff;
  --neon-purple:  #b400ff;
  --neon-green:   #00ff88;
  --neon-pink:    #ff0080;
  --bg-dark:      #050d1a;
  --bg-card:      #0a1628;
  --bg-card2:     #0f1e35;
  --text:         #ffffff;
  --muted:        rgba(255,255,255,0.55);
  --border:       rgba(0,212,255,0.18);
  --border-hover: rgba(0,212,255,0.4);
  --shadow-glow:  0 0 20px rgba(0,212,255,0.12);
  --nav-h:        64px;
  --radius:       12px;
}

html { scroll-behavior: smooth; }

/* ป้องกัน flash of unstyled content — JS จะ add class 'ready' หลัง checkAuth */
body {
  opacity: 0;
  transition: opacity 0.18s ease;
  background: var(--bg-dark);
  background-image: radial-gradient(rgba(0,212,255,0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--text);
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.ready { opacity: 1; }

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── INFINITE MARQUEE ───────────────────────────── */
.marquee-section {
  padding: 28px 0 20px;
  overflow: hidden;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}
.marquee-title {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 18px;
  opacity: 0.8;
}
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-card {
  flex-shrink: 0;
  width: 200px;
  height: 112px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}
.marquee-card:hover {
  border-color: var(--neon-blue);
  transform: scale(1.04);
}
.marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── ALERT BANNER ───────────────────────────────── */
.alert-banner {
  background: linear-gradient(90deg, var(--neon-blue) 0%, var(--neon-purple) 50%, var(--neon-blue) 100%);
  background-size: 200% auto;
  animation: bannerShift 4s linear infinite;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-align: center;
  padding: 7px 16px;
}
@keyframes bannerShift { to { background-position: 200% center; } }

/* ── NAVBAR ─────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  background: rgba(5,13,26,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: #fff;
  flex-shrink: 0;
}
.nav-logo span {
  color: var(--neon-blue);
  text-shadow: 0 0 14px rgba(0,212,255,0.7);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--neon-blue); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

#userNav {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav-balance {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon-green);
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 20px;
  padding: 4px 12px;
}

.nav-profile-btn { font-size: 0.82rem; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-username {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--neon-blue);
  border: 1px solid rgba(0,212,255,0.4);
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--neon-blue);
}

/* ── MOBILE DRAWER ──────────────────────────────── */
.nav-drawer { display: none; }

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.nav-drawer.open .drawer-overlay { display: block; }

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: #0b1a30;
  border-left: 1px solid var(--border);
  z-index: 1001;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.nav-drawer.open .drawer-panel { transform: translateX(0); }

.drawer-close {
  align-self: flex-end;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.drawer-logo { font-size: 1.3rem; }

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
}
.drawer-nav a:hover { background: rgba(0,212,255,0.08); color: var(--neon-blue); }

.drawer-balance {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-green);
}
.drawer-username {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.auth-btn {
  width: 100%;
  display: block;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s, transform 0.2s;
}
.auth-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── HERO CAROUSEL ──────────────────────────────── */
.hero-car {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.hc-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hc-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: brightness(0.92);
}

.hc-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 16px 20px 14px;
  background: linear-gradient(to top, rgba(5,13,26,0.75) 0%, transparent 100%);
}

/* ปุ่ม CTA ใต้ carousel */
.hero-cta-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 20px 16px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.hc-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.hc-dot.active {
  background: var(--neon-green);
  width: 24px;
  border-radius: 4px;
}

.hc-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero {
  padding: 10px 24px;
  font-size: 0.88rem;
  border-radius: 25px;
}

.hc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.hc-arrow:hover { background: rgba(0,212,255,0.3); }
.hc-prev { left: 14px; }
.hc-next { right: 14px; }

/* ── STATS BAR ──────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0,212,255,0.04) 50%, var(--bg-card) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-right: 1px solid var(--border);
  flex: 1;
  min-width: 140px;
}
.stat-item:last-child { border-right: none; }

.stat-ico { font-size: 1.3rem; flex-shrink: 0; }

.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-green);
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0,255,136,0.45);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── MARQUEE ─────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.marquee-track {
  display: flex;
  gap: 36px;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.fb { background: #1877f2; box-shadow: 0 0 6px #1877f2; }
.dot.bm { background: var(--neon-blue); box-shadow: 0 0 6px var(--neon-blue); }
.dot.tw { background: #1da1f2; box-shadow: 0 0 6px #1da1f2; }
.dot.ig { background: #e1306c; box-shadow: 0 0 6px #e1306c; }
.dot.tt { background: #ff0050; box-shadow: 0 0 6px #ff0050; }
.dot.nt { background: #e50914; box-shadow: 0 0 6px #e50914; }
.dot.gm { background: #ea4335; box-shadow: 0 0 6px #ea4335; }

/* ── SECTION ─────────────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-blue);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 40%, var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title::after {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  border-radius: 2px;
  margin: 14px auto 0;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── CATEGORY TABS ──────────────────────────────── */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.cat-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-tab:hover, .cat-tab.active {
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(180,0,255,0.15));
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

/* ── PRODUCT GRID ────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,212,255,0.2);
  border-color: var(--border-hover);
}
.product-card.featured {
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 28px rgba(0,212,255,0.18), inset 0 0 28px rgba(0,212,255,0.04);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.45s;
}
.product-card:hover .product-img { transform: scale(1.04); }

.pc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
}
.pc-badge-blue   { background: rgba(0,212,255,0.9);  color: #000; }
.pc-badge-green  { background: rgba(0,255,136,0.9);  color: #000; }
.pc-badge-purple { background: rgba(180,0,255,0.9);  color: #fff; }

.pc-body { padding: 16px 18px 18px; }

.pc-platform {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Platform colors */
.fb-color { color: #4a9eff; }
.tw-color { color: #1da1f2; }
.ig-color { color: #e1306c; }
.tt-color { color: #ff0050; }
.bm-color { color: var(--neon-blue); }
.gm-color { color: #ea4335; }
.nt-color { color: #e50914; }

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.tag-blue   { background: rgba(0,212,255,0.12); color: var(--neon-blue); border: 1px solid rgba(0,212,255,0.25); }
.tag-green  { background: rgba(0,255,136,0.12); color: var(--neon-green); border: 1px solid rgba(0,255,136,0.25); }
.tag-purple { background: rgba(180,0,255,0.12); color: #c77dff; border: 1px solid rgba(180,0,255,0.3); }
.tag-yellow { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.tag-red    { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 14px;
}

.price-block { line-height: 1.2; }

.price-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--neon-green);
}
.currency { font-size: 0.75rem; font-weight: 600; }

.contact-price {
  font-size: 0.9rem;
  color: var(--neon-blue);
}

.buy-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.buy-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: shimmerBtn 2.8s linear infinite;
}
@keyframes shimmerBtn {
  0%   { left: -80%; }
  100% { left: 160%; }
}
.buy-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,212,255,0.4);
}

.contact-btn {
  background: linear-gradient(135deg, #06c755, #05a843);
  color: #fff;
}

/* ── HIGH BUDGET SECTION ─────────────────────────── */
.highbudget-section {
  background: linear-gradient(180deg, rgba(0,255,136,0.03) 0%, transparent 100%);
  border-top: 1px solid rgba(0,255,136,0.12);
  border-bottom: 1px solid rgba(0,255,136,0.12);
  max-width: 100%;
  padding: 64px 0;
}
.highbudget-section .section-header {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.hb-tag {
  background: rgba(0,255,136,0.12) !important;
  border-color: rgba(0,255,136,0.3) !important;
  color: var(--neon-green) !important;
}

.hb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hb-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.hb-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,255,136,0.15);
  border-color: rgba(0,255,136,0.35);
}

.hb-img-wrap { position: relative; overflow: hidden; aspect-ratio: 1 / 1; }

.hb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.45s;
}
.hb-card:hover .hb-img { transform: scale(1.05); }

.hb-body { padding: 16px 18px 18px; }

.hb-platform {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.hb-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.hb-budget {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon-green);
  margin-bottom: 10px;
}

.hb-features {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
}
.hb-features span {
  font-size: 0.75rem;
  color: var(--muted);
}

.hb-btn {
  width: 100%;
  background: linear-gradient(135deg, #06c755, #05a843);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.hb-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.ig-btn { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.tt-btn { background: linear-gradient(135deg, #010101, #ff0050); }
.nt-btn { background: linear-gradient(135deg, #831010, #e50914); }

.hb-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(0,255,136,0.06);
  border: 1px solid rgba(0,255,136,0.18);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 1200px;
  margin: 24px auto 0;
  margin-left: 24px;
  margin-right: 24px;
}
.hb-notice strong { color: var(--neon-green); }

/* ── DIVIDER ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 24px;
}

/* ── FEATURES GRID ───────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(0,212,255,0.15);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,212,255,0.18);
  border-color: var(--border-hover);
  border-top-color: var(--neon-blue);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 12px;
  margin-bottom: 14px;
  transition: background 0.3s, box-shadow 0.3s;
}
.feature-card:hover .feature-icon {
  background: rgba(0,212,255,0.14);
  box-shadow: 0 0 18px rgba(0,212,255,0.25);
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--neon-blue);
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── CONTACT GRID ────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,212,255,0.15);
  border-color: var(--border-hover);
}

.line-card {
  border-color: rgba(6,199,85,0.35);
  box-shadow: 0 0 16px rgba(6,199,85,0.1);
}
.line-card:hover { border-color: #06c755; box-shadow: 0 0 24px rgba(6,199,85,0.25); }

.contact-ico { font-size: 1.8rem; flex-shrink: 0; }

.contact-platform {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 2px;
}

.contact-handle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-note {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── HOURS BLOCK ─────────────────────────────────── */
.hours-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 400px;
  margin: 0 auto;
}

.hours-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--neon-blue);
  margin-bottom: 14px;
}

.hour-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.82rem;
  color: var(--muted);
}
.hour-row:last-child { border-bottom: none; }

.hour-time {
  font-family: 'Space Mono', monospace;
  color: var(--neon-green);
  font-size: 0.78rem;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: #030a14;
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--neon-blue); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.75rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

.made-with {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: rgba(0,212,255,0.5);
}

/* ── PRODUCT MODAL ───────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.modal-product-icon {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
}

.modal-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--neon-green);
  text-align: center;
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 12px 14px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}
.modal-actions .btn-primary { flex: 1; }
.modal-actions .btn-ghost   { flex-shrink: 0; }

/* ── AUTH MODAL ──────────────────────────────────── */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-overlay.open { display: flex; }

.auth-modal {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 400px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.auth-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 4px;
  color: #fff;
}
.auth-logo span { color: var(--neon-blue); }

.auth-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.auth-tabs {
  display: flex;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  padding: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.auth-tab.active {
  background: var(--bg-card);
  color: var(--neon-blue);
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}

.auth-input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.88rem;
  transition: border-color 0.2s;
  outline: none;
}
.auth-input:focus { border-color: var(--neon-blue); }
.auth-input::placeholder { color: rgba(255,255,255,0.25); }

.auth-msg {
  min-height: 20px;
  font-size: 0.8rem;
  margin-bottom: 14px;
  border-radius: 6px;
  padding: 0 6px;
}
.auth-msg.error   { color: #f87171; background: rgba(239,68,68,0.08); padding: 6px 10px; }
.auth-msg.success { color: #34d399; background: rgba(52,211,153,0.08); padding: 6px 10px; }

.auth-switch {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}
.auth-switch a { color: var(--neon-blue); cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }

/* ── PAYMENT INFO (Topup) ─────────────────────────── */
.payment-info {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: 8px;
  flex-wrap: wrap;
}
.payment-row:last-child { border-bottom: none; }

.payment-label { font-size: 0.78rem; color: var(--muted); flex-shrink: 0; }
.payment-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ── TOAST ───────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { border-color: rgba(52,211,153,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }

/* ── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,0.5); }

/* ── PREMIUM POLISH ──────────────────────────────── */

/* Subtle glow on section tags */
.section-tag {
  box-shadow: 0 0 12px rgba(0,212,255,0.1);
}

/* HB card pulse border on featured */
.hb-card:first-child {
  border-color: rgba(0,255,136,0.28);
  box-shadow: 0 0 20px rgba(0,255,136,0.08);
}

/* Product card hover shine */
.product-card:hover {
  box-shadow: 0 16px 48px rgba(0,212,255,0.22);
}

/* Auth btn shimmer (reuse animation) */
.auth-btn {
  position: relative;
  overflow: hidden;
}
.auth-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmerBtn 3.5s linear infinite;
}

/* Contact card icons subtle glow */
.contact-ico {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.15));
}

/* Enhanced HB buttons */
.hb-btn {
  letter-spacing: 0.3px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Footer bottom accent */
.made-with {
  letter-spacing: 3px;
  color: rgba(0,212,255,0.6);
}

/* Toast enhanced */
.toast.success { border-color: rgba(0,255,136,0.5); background: rgba(5,13,26,0.95); }
.toast.error   { border-color: rgba(239,68,68,0.5);  background: rgba(5,13,26,0.95); }

/* Product card image overlay gradient on hover */
.product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(10,22,40,0.5) 100%);
  pointer-events: none;
}

/* HB budget text enhanced */
.hb-budget {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
}

/* Price Orbitron glow */
.price {
  text-shadow: 0 0 12px rgba(0,255,136,0.35);
}

/* ── REVIEWS ─────────────────────────────────────── */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.review-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-stars { color: #fbbf24; font-size: 1rem; letter-spacing: 2px; }

.review-comment {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
  flex: 1;
  font-style: italic;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.review-skeleton {
  height: 140px;
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }

  /* hero carousel mobile */
  .hero-car  { aspect-ratio: 16 / 9; }
  .hc-track  { height: 100%; }
  .hc-slide  { height: 100%; }
  .hc-img    { height: 100%; object-fit: contain; object-position: center center; }
  .hero-cta-bar { flex-direction: column; align-items: stretch; padding: 16px; }
  .btn-hero { text-align: center; padding: 14px 28px; font-size: 0.92rem; }

  .stat-item { flex: 0 0 50%; padding: 12px 16px; }

  .section { padding: 44px 16px; }

  /* Category tabs: scroll แนวนอนบน mobile */
  .cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { flex-shrink: 0; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .hb-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
  .hb-notice { margin-left: 16px; margin-right: 16px; }

  .features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  .contact-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand p { max-width: 100%; }

  /* Touch-friendly buy buttons */
  .buy-btn { padding: 11px 16px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  nav { padding: 0 16px; }

  .stat-item { flex: 0 0 50%; }
  .stat-item:nth-child(odd)  { border-right: 1px solid var(--border); }
  .stat-item:nth-child(n+3)  { border-top: 1px solid var(--border); }

  .product-grid  { grid-template-columns: 1fr; }
  .hb-grid       { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }

  .modal-actions { flex-direction: column; }
  .highbudget-section .section-header { padding: 0 16px; }

  /* hero carousel — mobile เล็ก */
  .hero-car { aspect-ratio: 16 / 9; }
  .hc-arrow { width: 36px; height: 36px; font-size: 13px; }
  .hc-prev  { left: 8px; }
  .hc-next  { right: 8px; }

  /* Auth / Profile modals — full screen on tiny phones */
  .auth-overlay { padding: 0; align-items: flex-end; }
  .auth-modal {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    max-width: 100%;
    padding: 24px 20px 32px;
  }

  /* Navbar profile button — compact */
  .nav-profile-btn { font-size: 0.78rem; padding: 5px 10px; }

  /* Topup overlay same treatment */
  #topupOverlay { padding: 0; align-items: flex-end; }
  #topupOverlay .auth-modal {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    max-width: 100%;
  }
}
