/* ================================================================
   Snow Store / DNS Studios — Dark E-Sports FiveM Theme
   Design Tokens & Specifications from ui_design_prompt.md
   ================================================================ */

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

/* ── 1. Design Tokens ─────────────────────────────────────────── */
:root {
  --color_01: #0c85e8;        /* primary blue — ปุ่มหลัก, icon bg, accent */
  --color_02: #218fe9;        /* primary blue hover */
  --color_bg_01: rgba(26, 30, 33, 0.92); /* main background */

  --bg-base:       #0c0e12;
  --bg-panel:      rgba(26, 30, 33, 0.92);
  --bg-header:     rgba(17, 17, 17, 0.75);
  --bg-card:       rgba(11, 14, 15, 0.55);
  --bg-card-hover: rgba(47, 47, 47, 0.6);
  --bg-card-active:rgba(55, 55, 55, 0.6);
  --bg-input:      #121318;
  --bg-dark:       #14161d;

  --border:        rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(255, 255, 255, 0.18);
  --border-focus:  #3b82f6;

  --accent:        #0c85e8;
  --accent-blue:   #3b82f6;
  --accent-grad:   linear-gradient(135deg, #0c85e8, #3b82f6);
  --accent-glow:   0 0 20px rgba(12, 133, 232, 0.4);

  --success:       #22c55e;
  --warning:       #eab308;
  --danger:        #ef4444;
  --info:          #06b6d4;

  --text-primary:  #ffffff;
  --text-secondary:rgba(255, 255, 255, 0.75);
  --text-muted:    rgba(255, 255, 255, 0.45);

  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --shadow-sm:     0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md:     0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg:     0 16px 48px rgba(0, 0, 0, 0.7);

  --transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body, button, input, select, textarea, optgroup {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Ensure FontAwesome pseudo-elements are never overridden */
.fa, .fas, .far, .fal, .fab, .fad,
.fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone, .fa-brands,
[class*="fa-"]::before, [class*="fa-"]::after {
  font-family: var(--fa-style-family, "Font Awesome 6 Free"), "Font Awesome 6 Brands" !important;
}
.fa-brands, [class*="fa-brands"]::before {
  font-family: "Font Awesome 6 Brands" !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Prompt', sans-serif;
  background: #090b10;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--color_02);
}

img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

/* ── 3. Custom Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(23, 23, 23, 0.45);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(77, 77, 77, 0.92);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color_01);
}

/* ── 4. Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #0c85e8 80%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--text-muted) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-center { text-align: center; }

/* ── 5. Layout Containers ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.page-wrapper {
  padding-top: 90px;
  padding-bottom: 4rem;
  min-height: calc(100vh - 80px);
  position: relative;
  z-index: 1;
}

/* ── 6. Utility Theme Classes ─────────────────────────────────── */
.theme-bg-main {
  background: var(--color_bg_01);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 0 3px rgba(0, 0, 0, 0.2) inset,
    0 0 0 3px rgba(0, 0, 0, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

.theme-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}

.theme-header-icon {
  background: var(--color_01);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.15) inset,
    0 0 10px rgba(0, 0, 0, 0.3) inset,
    0 0 0 1px var(--color_01) inset,
    0 0 16px rgba(0, 0, 0, 0.65);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.theme-card {
  background: var(--bg-card);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset, 0 0 12px rgba(0, 0, 0, 0.25) inset;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.theme-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 8px 24px rgba(0, 0, 0, 0.4);
}
.theme-card-active {
  background: var(--bg-card-active);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 0 20px rgba(12, 133, 232, 0.25);
  border-color: rgba(12, 133, 232, 0.4);
}

/* ── 7. Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.theme-btn-primary, .btn-primary {
  background: var(--color_01) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 4px 14px rgba(12, 133, 232, 0.35);
}
.theme-btn-primary:hover, .btn-primary:hover {
  background: var(--color_02) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 6px 20px rgba(12, 133, 232, 0.55);
  transform: translateY(-1px);
}

.theme-btn-secondary, .btn-ghost, .btn-secondary {
  background: rgba(62, 62, 62, 0.7) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.35) inset;
}
.theme-btn-secondary:hover, .btn-ghost:hover, .btn-secondary:hover {
  background: rgba(75, 75, 75, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.btn-discord {
  background: #5865F2 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 4px 16px rgba(88, 101, 242, 0.4);
  font-weight: 700;
}
.btn-discord:hover {
  background: #4752c4 !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 6px 22px rgba(88, 101, 242, 0.6);
  transform: translateY(-1px);
}

.btn-success {
  background: #16a34a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}
.btn-success:hover {
  background: #22c55e !important;
}

.btn-warning {
  background: #d97706 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.btn-warning:hover {
  background: #f59e0b !important;
}

.btn-danger {
  background: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: #ef4444 !important;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 6px;
}
.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  border-radius: 10px;
}
.btn-full { width: 100%; }

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,0.2) inset, 0 4px 14px rgba(12, 133, 232, 0.35); }
  50% { box-shadow: 0 0 0 1px rgba(0,0,0,0.2) inset, 0 4px 24px rgba(12, 133, 232, 0.7); }
}

/* ── 8. Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-primary {
  background: rgba(12, 133, 232, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(12, 133, 232, 0.3);
}
.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-warning {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── 9. Form Inputs ───────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: #15171e;
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* ── 10. Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(12, 14, 18, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.1rem;
}

.navbar-nav {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.35rem;
  background: rgba(18, 19, 24, 0.75);
  padding: 0.3rem 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-link {
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav-link.active {
  color: #fff;
  background: var(--color_01);
  box-shadow: 0 0 14px rgba(12, 133, 232, 0.4);
  font-weight: 600;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-point {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(12, 133, 232, 0.12);
  border: 1px solid rgba(12, 133, 232, 0.3);
  color: #38bdf8;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  z-index: 1100;
}
.dropdown.open .dropdown-menu {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease-out;
}
.dropdown-item {
  color: var(--text-secondary);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}
.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0;
}

.navbar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

/* ── 11. Hero Section ─────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
  position: relative;
}
.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(12, 133, 232, 0.25) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  z-index: -1;
}
.hero h1 {
  margin-bottom: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}
.hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 12. Server Grid & Showcase ────────────────────────────────── */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
  position: relative;
  overflow: hidden;
}
.server-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-grad);
  opacity: 0;
  transition: var(--transition);
}
.server-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.server-card:hover::after {
  opacity: 1;
}

.server-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color_01);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.server-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.server-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── 12. Partner Logo Marquee Slider ────────────────────────── */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  align-items: center;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.partner-logo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  min-width: 190px;
}

.partner-logo-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.25);
}

.partner-logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.partner-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.partner-card-sub {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--color_01);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 auto 1.25rem;
}
.feature-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  text-transform: uppercase;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── 13. Product / Shop Grid ──────────────────────────────────── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1) inset;
}
.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #14161d;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-price-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(12, 133, 232, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.product-sold-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.08);
}

.product-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: #fff;
}
.product-detail {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-actions {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  gap: 0.6rem;
}
.flex-1 { flex: 1; }

/* ── 14. Cards & Panels ───────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1) inset;
}
.card-header {
  padding: 1.25rem 1.5rem;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-body {
  padding: 1.5rem;
}

/* ── 15. Auth Pages & Topup Card ──────────────────────────────── */
.auth-wrapper {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card, .topup-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  position: relative;
}
.topup-card {
  max-width: 580px;
  margin: 0 auto;
}

.brand-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.brand-logo .icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--color_01);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1rem;
}
.brand-logo h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
}
.brand-logo .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.topup-icon-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.topup-icon-row img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

/* ── 16. Tables ───────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  width: 100%;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table th {
  padding: 0.9rem 1.25rem;
  background: #121318;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

/* ── 17. Modals & Alerts ──────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(8px);
}
.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}
.modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.alert {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.alert-info {
  background: rgba(12, 133, 232, 0.12);
  border: 1px solid rgba(12, 133, 232, 0.25);
  color: #7dd3fc;
}

/* ── 18. Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(12, 14, 18, 0.95);
  padding: 2rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ── 19. Admin Layout ────────────────────────────.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(16, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--stat-color, var(--color_01));
  box-shadow: 0 0 16px var(--stat-color, var(--color_01));
}

.stat-card:hover {
  background: rgba(22, 28, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(12, 133, 232, 0.15);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.08);
}

.stat-info-wrap {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
} min-height: 100vh;
  position: relative;
  z-index: 1;
}

.admin-topbar {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}
.admin-topbar h1 {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--stat-color, var(--color_01));
  box-shadow: 0 0 12px var(--stat-color, var(--color_01));
}
.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* File Input Dropzone */
.file-input-wrapper {
  background: var(--bg-input);
  border: 2px dashed rgba(12, 133, 232, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
}
.file-input-wrapper:hover {
  background: #171a22;
  border-color: var(--color_01);
  box-shadow: 0 0 16px rgba(12, 133, 232, 0.2);
}
.file-input-wrapper .file-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(12, 133, 232, 0.15);
  color: var(--color_01);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 0.75rem;
  transition: var(--transition);
}
.file-input-wrapper:hover .file-icon {
  background: var(--color_01);
  color: #fff;
  transform: scale(1.1);
}
.file-input-wrapper p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.file-input-wrapper small {
  display: block;
  font-size: 0.8rem;
  color: var(--success) !important;
  font-weight: 600;
  margin-top: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}
.file-input-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

/* ── 20. Keyframe Animations ──────────────────────────────────── */
/* ── 21. 404 Page ─────────────────────────────────────────────── */
.page-404 {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.page-404 .num {
  font-size: 8.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color_01);
  text-shadow: 0 0 35px rgba(12, 133, 232, 0.7), 0 0 70px rgba(12, 133, 232, 0.35);
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  display: inline-block;
  user-select: none;
}

.page-404 h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-404 p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up, .fade-slide-up {
  animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── 21. Responsive Media Queries ─────────────────────────────── */
@media (max-width: 868px) {
  .navbar-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .navbar-nav.open {
    display: flex;
  }
  .navbar-toggle {
    display: block;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-content {
    margin-left: 0;
    padding: 1.5rem 1rem;
  }
}