/* ═══════════════════════════════════════════════════════
   HIGH'S PVE — CANNABIS DARK THEME
   Built for PayNow.gg
   Branding: Smiley + cannabis leaf, yellow + green palette
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  /* Dark earthy base — feels like a late-night session */
  --background-color: #090c07;
  --surface-color: #0e1209;
  --card-color: rgba(14, 18, 9, 0.88);
  --card-border: rgba(74, 178, 60, 0.15);
  --card-border-hover: rgba(74, 178, 60, 0.5);

  /* Primary: cannabis leaf green */
  --primary-color: #4ab23c;
  --primary-rgb: 74, 178, 60;
  --primary-glow: rgba(74, 178, 60, 0.18);
  --primary-glow-strong: rgba(74, 178, 60, 0.38);

  /* Secondary: smiley yellow/gold */
  --secondary-color: #f5c518;
  --secondary-rgb: 245, 197, 24;

  /* Accent colours */
  --accent-red: #ff4455;
  --accent-orange: #ff8800;
  --accent-purple: #9d4edd;
  --accent-yellow: #f5c518;

  --text-primary: #edf0e8;
  --text-secondary: #8fa882;
  --text-muted: #445240;

  --content-color: #0e1209;
  --content-light-color: #131a0d;
  --content-width: 1280px;
  --hero-opacity: 0.28;
  --hero-position: center;

  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', 'Roboto Flex', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-neon: 0 0 20px var(--primary-glow), 0 0 40px rgba(74, 178, 60, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow-card-hover: 0 8px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--card-border-hover), 0 0 32px var(--primary-glow);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--background-color);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Background ── */
#appBg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#appBg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position);
  opacity: var(--hero-opacity);
  filter: saturate(0.7) brightness(0.6);
}

#appBg .fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(8, 11, 15, 0.4) 50%,
    rgba(8, 11, 15, 0.9) 85%,
    var(--background-color) 100%
  );
  z-index: 1;
}

/* ── Particle canvas ── */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Main app wrapper ── */
#storeApp {
  position: relative;
  z-index: 2;
}

/* ── Hero bar ── */
#heroBar {
  background: linear-gradient(
    to bottom,
    rgba(74, 178, 60, 0.04) 0%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(74, 178, 60, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Container ── */
.container { max-width: var(--content-width); }

/* ── Card base ── */
.card {
  background: var(--card-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-card-hover);
}

.card-inner {
  background: var(--content-light-color);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
}

/* ── Section headers ── */
.section-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--primary-color);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary-color);
}

/* ── Neon heading style ── */
.neon-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.neon-text {
  color: var(--primary-color);
  text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.6);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  padding: 0.625rem 1.25rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before { left: 100%; }

.btn-primary {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  background: #1aff99;
  box-shadow: 0 0 32px rgba(var(--primary-rgb), 0.5), 0 4px 16px rgba(var(--primary-rgb), 0.3);
  transform: translateY(-1px);
  color: #000;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
}

.btn-secondary:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: var(--primary-color);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.06);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.12);
}

.btn-danger {
  background: rgba(255, 68, 85, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(255, 68, 85, 0.25);
}

.btn-danger:hover {
  background: rgba(255, 68, 85, 0.2);
  border-color: var(--accent-red);
  box-shadow: 0 0 16px rgba(255, 68, 85, 0.2);
}

/* Shine animation for featured buttons */
@keyframes btn-shine {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: btn-shine 3s infinite;
}

/* ── Product Card ── */
.product-card {
  background: var(--card-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.03) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.product-card:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.product-card:hover::before { opacity: 1; }

.product-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.product-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.15);
  gap: 0.75rem;
}

.price-tag {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 0 0 12px rgba(var(--primary-rgb), 0.4);
  letter-spacing: 0.02em;
}

.price-original {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.sale-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 68, 85, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 68, 85, 0.3);
}

.product-label {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.2);
}

.out-of-stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 15, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  z-index: 3;
}

/* ── Sidebar ── */
.sidebar-card {
  background: var(--card-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.sidebar-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
}

.sidebar-item:hover,
.sidebar-item.active {
  color: var(--primary-color);
  background: rgba(var(--primary-rgb), 0.06);
  border-left-color: var(--primary-color);
}

.sidebar-item i {
  width: 1rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

.sidebar-item:hover i,
.sidebar-item.active i {
  opacity: 1;
  color: var(--primary-color);
}

/* ── Navigation ── */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.4));
}

.nav-store-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.nav-btn-server {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.nav-btn-server:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.15);
}

.nav-btn-discord {
  background: rgba(88, 101, 242, 0.12);
  color: #7289da;
  border: 1px solid rgba(88, 101, 242, 0.25);
}

.nav-btn-discord:hover {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.2);
}

.nav-btn-cart {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  position: relative;
}

.nav-btn-cart:hover {
  background: rgba(var(--primary-rgb), 0.18);
  border-color: rgba(var(--primary-rgb), 0.5);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.25);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary-color);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.6);
}

.nav-btn-account {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.08);
}

.nav-btn-account:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

/* Online indicator */
.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 6px var(--primary-color);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}

/* ── Hero section (below nav) ── */
.hero-section {
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(var(--primary-rgb), 0.3);
}

.hero-title .accent {
  color: var(--primary-color);
  text-shadow: 0 0 30px rgba(var(--primary-rgb), 0.8), 0 0 60px rgba(var(--primary-rgb), 0.4);
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  margin: 1.25rem auto;
  box-shadow: 0 0 8px var(--primary-color);
}

/* ── Stats strip ── */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.5rem;
  background: rgba(var(--primary-rgb), 0.04);
  border-top: 1px solid rgba(var(--primary-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.stat-label {
  color: var(--text-secondary);
}

/* ── Page Content Header ── */
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--primary-color); }

.breadcrumb-sep {
  color: var(--text-muted);
  font-size: 0.65rem;
}

/* ── Welcome Card (homepage) ── */
.welcome-card {
  background: var(--card-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.6;
}

.welcome-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Form inputs ── */
.input {
  width: 100%;
  padding: 0.6rem 0.875rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.input:focus {
  border-color: rgba(var(--primary-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.input::placeholder { color: var(--text-muted); }

.input-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.select {
  width: 100%;
  padding: 0.6rem 0.875rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b9ab5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.select:focus {
  border-color: rgba(var(--primary-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.select option {
  background: var(--surface-color);
  color: var(--text-primary);
}

/* ── Radio / Toggle ── */
.radio-group {
  display: flex;
  gap: 0.5rem;
}

.radio-btn {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.radio-btn.active,
.radio-btn:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-color);
}

/* ── Cart items ── */
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--card-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.cart-item:hover { border-color: rgba(var(--primary-rgb), 0.2); }

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-color);
  flex-shrink: 0;
}

.qty-input {
  width: 56px;
  padding: 0.35rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  text-align: center;
  outline: none;
  transition: border-color var(--transition-fast);
}

.qty-input:focus { border-color: rgba(var(--primary-rgb), 0.4); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-box {
  background: var(--surface-color);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 40px rgba(var(--primary-rgb), 0.08);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body { padding: 1.5rem; }

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.modal-close:hover {
  background: rgba(var(--accent-red), 0.1);
  border-color: rgba(var(--accent-red), 0.3);
  color: var(--accent-red);
}

/* ── Footer ── */
.footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 2rem 0 1.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}

.social-icon:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.3);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Payment method icons */
.payment-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.payment-icon {
  height: 22px;
  border-radius: 3px;
  opacity: 0.5;
  filter: grayscale(0.3);
  transition: opacity var(--transition-fast);
}

.payment-icon:hover { opacity: 0.9; }

/* ── Notification ── */
.notification-alert {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 300;
  max-width: 360px;
  width: 100%;
}

/* ── Loader ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(var(--primary-rgb), 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Glow pulse ── */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3); }
  50% { box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.6), 0 0 40px rgba(var(--primary-rgb), 0.2); }
}

.glow-pulse { animation: glow-pulse 2s ease-in-out infinite; }

/* ── Neon border ── */
@keyframes neon-border {
  0%, 100% { border-color: rgba(var(--primary-rgb), 0.3); }
  50% { border-color: rgba(var(--primary-rgb), 0.7); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-rgb), 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(var(--primary-rgb), 0.4); }

/* ── Utilities ── */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-neon { color: var(--primary-color); }
.text-cyan { color: var(--secondary-color); }
.text-red { color: var(--accent-red); }

.bg-card { background: var(--card-color); }
.border-neon { border-color: var(--card-border) !important; }
.rounded-xl { border-radius: var(--radius-xl); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-green {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
}

.tag-red {
  background: rgba(255, 68, 85, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(255, 68, 85, 0.25);
}

.tag-orange {
  background: rgba(255, 136, 0, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 136, 0, 0.25);
}

.tag-blue {
  background: rgba(0, 212, 255, 0.12);
  color: var(--secondary-color);
  border: 1px solid rgba(0, 212, 255, 0.25);
}

/* ── Subscription/one-time toggle ── */
.purchase-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-heading);
}

.purchase-toggle-opt {
  padding: 0.6rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.purchase-toggle-opt.active {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-color);
}

/* ── Mobile nav ── */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  cursor: pointer;
}

.mobile-categories {
  display: none;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
  gap: 0.5rem;
  background: rgba(0,0,0,0.2);
}

.mobile-cat-chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-cat-chip:hover,
.mobile-cat-chip.active {
  border-color: rgba(var(--primary-rgb), 0.4);
  color: var(--primary-color);
  background: rgba(var(--primary-rgb), 0.06);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { display: none !important; }
  .mobile-nav-toggle { display: flex; }
  .mobile-categories { display: flex; }

  .product-card:hover { transform: none; }

  .nav-bar {
    padding: 0 1rem;
    height: 56px;
  }

  .nav-store-name { font-size: 1rem; }

  .hero-section {
    padding: 1.5rem 1rem 1.5rem;
  }

  .stats-strip {
    gap: 1rem;
    padding: 0.75rem 1rem;
  }
}

@media (min-width: 769px) {
  .sidebar { display: flex !important; }
  .mobile-categories { display: none !important; }
  .mobile-nav-toggle { display: none !important; }
}

/* ── Modules (sidebar widgets) ── */
.module-widget {
  background: var(--card-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.module-widget-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Target PayNow's injected module styles */
.pn-module { margin-bottom: 0 !important; }

/* Override PayNow defaults for dark theme */
.recent-payments-item,
.payment-goal-widget {
  font-family: var(--font-body) !important;
  color: var(--text-primary) !important;
}

/* ── Page-specific: product detail ── */
.product-detail-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-color);
  border: 1px solid var(--card-border);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Account page ── */
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.875rem;
}

.account-row:last-child { border-bottom: none; }

/* ── Complete page ── */
.complete-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 32px rgba(var(--primary-rgb), 0.25);
  animation: glow-pulse 2s ease-in-out infinite;
}
