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

:root {
  --bg: #080810;
  --bg2: #0e0e1a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-solid: #14142a;
  --surface2: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(108, 92, 231, 0.3);
  --text: #f0f0f5;
  --text-muted: #8888a8;
  --accent: #7c6cf0;
  --accent-light: #b8b0ff;
  --accent-dim: rgba(124, 108, 240, 0.12);
  --success: #00d4a0;
  --error: #ff6b5a;
  --glass-bg: rgba(16, 16, 32, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(16px);
  --radius: 16px;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Snow canvas */
#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ambient glow orbs */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

body::before {
  width: 500px;
  height: 500px;
  background: rgba(124, 108, 240, 0.08);
  top: -100px;
  right: -100px;
}

body::after {
  width: 400px;
  height: 400px;
  background: rgba(0, 212, 160, 0.05);
  bottom: -50px;
  left: -100px;
}

/* Navbar — glassmorphism */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(124, 108, 240, 0.3);
}

.logo span { color: var(--accent-light); }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-text-link {
  color: #fff; text-decoration: none; font-size: 0.82rem;
  font-weight: 600; padding: 8px 16px; border-radius: 10px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(124,108,240,0.15), rgba(0,229,255,0.1));
  border: 1px solid rgba(124,108,240,0.3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0.02em;
}
.nav-text-link:hover {
  color: #fff; background: linear-gradient(135deg, rgba(124,108,240,0.35), rgba(0,229,255,0.2));
  border-color: rgba(124,108,240,0.5);
  box-shadow: 0 0 16px rgba(124,108,240,0.3), 0 0 32px rgba(0,229,255,0.1);
  transform: translateY(-1px);
}
.nav-text-link.active {
  color: #fff; background: linear-gradient(135deg, #7c6cf0, rgba(0,229,255,0.3));
  border-color: #7c6cf0;
  box-shadow: 0 0 20px rgba(124,108,240,0.4);
}
.nav-text-link.highlight {
  background: linear-gradient(135deg, #7c6cf0, #00e5ff);
  border-color: transparent; color: #fff; font-weight: 700;
  box-shadow: 0 0 18px rgba(124,108,240,0.35), 0 0 36px rgba(0,229,255,0.15);
  animation: nav-pulse 2.5s ease-in-out infinite;
}
.nav-text-link.highlight:hover {
  box-shadow: 0 0 24px rgba(124,108,240,0.5), 0 0 48px rgba(0,229,255,0.25);
  transform: translateY(-2px);
}
@keyframes nav-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(124,108,240,0.35), 0 0 36px rgba(0,229,255,0.15); }
  50% { box-shadow: 0 0 24px rgba(124,108,240,0.5), 0 0 48px rgba(0,229,255,0.3); }
}
body.light-mode .nav-text-link {
  color: #333; background: rgba(124,108,240,0.08); border-color: rgba(124,108,240,0.2);
}
body.light-mode .nav-text-link:hover { color: #5b4ec7; background: rgba(124,108,240,0.15); }
body.light-mode .nav-text-link.highlight {
  color: #fff; background: linear-gradient(135deg, #7c6cf0, #00b8d4);
}
@media (max-width: 600px) {
  .nav-links { gap: 4px; }
  .nav-text-link { font-size: 0.7rem; padding: 6px 10px; }
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--glass-border);
  background: var(--surface);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 72px 24px 48px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* Loading */
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* Product card — glassmorphism */
.product-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px rgba(124, 108, 240, 0.12), 0 0 0 1px var(--border-glow);
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg2);
}

.product-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(124, 108, 240, 0.1), rgba(0, 212, 160, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-body {
  padding: 20px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-light);
  text-shadow: 0 0 12px rgba(184, 176, 255, 0.2);
}

.product-card.out-of-stock {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.out-of-stock-badge {
  font-size: 0.75rem;
  color: var(--error);
  background: rgba(255, 107, 90, 0.12);
  border: 1px solid rgba(255, 107, 90, 0.25);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.product-validity {
  font-size: 0.75rem;
  color: var(--success);
  background: rgba(0, 212, 160, 0.1);
  border: 1px solid rgba(0, 212, 160, 0.2);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* Buy button — glass glow */
.btn-buy {
  background: linear-gradient(135deg, var(--accent), #5a4bd4);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(124, 108, 240, 0.25);
}

.btn-buy:hover {
  box-shadow: 0 6px 24px rgba(124, 108, 240, 0.4);
  transform: translateY(-1px);
}

/* Modal — glassmorphism */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--text); }

.modal-product {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.modal-product img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg2);
  border: 1px solid var(--glass-border);
}

.modal-product h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-price {
  color: var(--accent-light);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 2px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(4px);
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 108, 240, 0.15);
}

/* Primary button — gradient glow */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), #5a4bd4);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(124, 108, 240, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(124, 108, 240, 0.45);
  transform: translateY(-1px);
}

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.order-success {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #00a87e);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(0, 212, 160, 0.3);
}

.order-success h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.order-success p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 60px;
}
.footer-inner p { margin: 4px 0; }
.footer-links { margin-top: 10px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.78rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-links span { color: var(--text-muted); }

/* ============ Admin styles ============ */
.admin-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  z-index: 1;
}

/* Login card — glassmorphism */
.login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 44px 36px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: fadeIn 0.4s ease;
}

.login-card h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: var(--accent-light);
  text-shadow: 0 0 20px rgba(184, 176, 255, 0.2);
}

.login-card .sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.login-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 12px;
  display: none;
}

/* Dashboard */
.dashboard {
  display: none;
  position: relative;
  z-index: 1;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-header h1 {
  font-size: 1.4rem;
  color: var(--accent-light);
  text-shadow: 0 0 16px rgba(184, 176, 255, 0.15);
}

.dash-actions {
  display: flex;
  gap: 8px;
}

.btn-outline {
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-outline:hover { background: var(--surface2); color: var(--text); border-color: var(--border-glow); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #5a4bd4);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(124, 108, 240, 0.2);
}

.btn-accent:hover { box-shadow: 0 4px 20px rgba(124, 108, 240, 0.35); }

/* Stat cards — glassmorphism */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--glass-border);
  transition: border-color 0.3s;
}

.stat-card:hover { border-color: var(--border-glow); }

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-light);
  text-shadow: 0 0 16px rgba(184, 176, 255, 0.15);
}

.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
}

/* Data tables — glassmorphism */
.data-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.2);
}

td {
  padding: 12px 16px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

tr:hover td { background: rgba(124, 108, 240, 0.04); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-pending { background: rgba(253, 203, 110, 0.15); color: #fdcb6e; }
.badge-paid { background: rgba(0, 212, 160, 0.15); color: #00d4a0; }
.badge-delivered { background: rgba(124, 108, 240, 0.15); color: #b8b0ff; }
.badge-cancelled { background: rgba(255, 107, 90, 0.15); color: #ff6b5a; }

.product-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--glass-border);
}

.action-btn {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  margin-right: 4px;
  transition: all 0.2s;
}

.action-btn:hover { background: var(--surface2); color: var(--text); border-color: var(--border-glow); }
.action-btn.danger:hover { background: rgba(255, 107, 90, 0.12); color: var(--error); border-color: rgba(255, 107, 90, 0.3); }

select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: inherit;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .products-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 20px; }
}

/* ===== EMAIL DELIVERY NOTICE ===== */
.email-delivery-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(124,108,240,0.08); border: 1px solid rgba(124,108,240,0.25);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
}
.email-delivery-notice .notice-icon {
  font-size: 1.4rem; line-height: 1; flex-shrink: 0; margin-top: 2px;
}
.email-delivery-notice strong { color: #b8b0ff; font-size: 0.85rem; }
.email-delivery-notice p {
  margin: 4px 0 0; font-size: 0.78rem; color: var(--text-muted); line-height: 1.5;
}
.email-delivery-notice p strong { color: #00e5ff; }
body.light-mode .email-delivery-notice {
  background: rgba(124,108,240,0.06); border-color: rgba(124,108,240,0.18);
}
body.light-mode .email-delivery-notice strong { color: #5b4ec7; }
body.light-mode .email-delivery-notice p strong { color: #0097a7; }

/* ===== STORE FILTERS ===== */
.store-filters {
  max-width: 900px; margin: 0 auto 24px; padding: 0 20px;
}
.search-wrap { margin-bottom: 14px; }
.search-wrap input {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(124,108,240,0.2);
  border-radius: 12px; color: var(--text); font-size: 0.95rem;
  font-family: inherit; outline: none; transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: rgba(124,108,240,0.5); }
.search-wrap input::placeholder { color: var(--text-muted); }

.category-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cat-tab {
  padding: 8px 18px; border-radius: 20px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted); font-size: 0.85rem; font-family: inherit;
  cursor: pointer; transition: all 0.2s;
}
.cat-tab:hover { border-color: rgba(124,108,240,0.3); color: var(--text); }
.cat-tab.active {
  background: rgba(124,108,240,0.15); border-color: rgba(124,108,240,0.4);
  color: #b8b0ff; font-weight: 600;
}

.product-category-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  background: rgba(124,108,240,0.12); border: 1px solid rgba(124,108,240,0.25);
  color: #b8b0ff; font-size: 0.7rem; font-weight: 600;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}

/* ===== STORE LIGHT MODE ===== */
body.light-mode {
  --bg: #f0f2f5;
  --bg2: #e4e6ea;
  --surface: rgba(0,0,0,0.04);
  --surface-solid: #fff;
  --surface2: rgba(0,0,0,0.06);
  --border: rgba(0,0,0,0.12);
  --text: #1a1a2e;
  --text-muted: #666;
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(0,0,0,0.1);
}
body.light-mode::before { background: rgba(124,108,240,0.05); }
body.light-mode::after { background: rgba(0,212,160,0.04); }
body.light-mode .navbar { background: rgba(255,255,255,0.7); }
body.light-mode .product-card { background: rgba(255,255,255,0.6); border-color: rgba(0,0,0,0.08); }
body.light-mode .product-card:hover { border-color: rgba(124,108,240,0.3); }
body.light-mode .modal-content { background: rgba(255,255,255,0.95); }
body.light-mode footer { background: rgba(255,255,255,0.5); border-color: rgba(0,0,0,0.08); }
body.light-mode input { background: rgba(0,0,0,0.04) !important; color: #1a1a2e !important; border-color: rgba(0,0,0,0.15) !important; }
body.light-mode .hero h1 { color: #1a1a2e; }
body.light-mode .hero p { color: #555; }
body.light-mode .search-wrap input { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); color: #1a1a2e; }
body.light-mode .cat-tab { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #666; }
body.light-mode .cat-tab.active { background: rgba(124,108,240,0.1); border-color: rgba(124,108,240,0.3); color: #7c6cf0; }
body.light-mode .product-category-badge { background: rgba(124,108,240,0.08); border-color: rgba(124,108,240,0.2); color: #7c6cf0; }

/* ===== STORE THEME TOGGLE ===== */
.store-theme-switch {
  position: relative; width: 44px; height: 24px; cursor: pointer;
}
.store-theme-switch input { opacity: 0; width: 0; height: 0; }
.store-theme-slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.12); border-radius: 24px;
  border: 1px solid rgba(124,108,240,0.3); transition: 0.3s;
}
.store-theme-slider::before {
  content: ""; position: absolute; height: 18px; width: 18px;
  left: 2px; bottom: 2px; background: #7c6cf0;
  border-radius: 50%; transition: 0.3s;
  box-shadow: 0 0 6px rgba(124,108,240,0.5);
}
.store-theme-switch input:checked + .store-theme-slider { background: rgba(0,229,255,0.12); }
.store-theme-switch input:checked + .store-theme-slider::before {
  transform: translateX(20px); background: #00e5ff;
  box-shadow: 0 0 6px rgba(0,229,255,0.5);
}

/* ===== ADMIN REVEAL BUTTON ===== */
.admin-reveal-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.15); font-size: 0.7rem;
  cursor: pointer; transition: all 0.3s; display: flex;
  align-items: center; justify-content: center;
}
.admin-reveal-btn:hover {
  color: #7c6cf0; border-color: rgba(124,108,240,0.4);
  background: rgba(124,108,240,0.08);
  box-shadow: 0 0 12px rgba(124,108,240,0.2);
}
body.light-mode .admin-reveal-btn { color: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.06); }
body.light-mode .admin-reveal-btn:hover { color: #7c6cf0; border-color: rgba(124,108,240,0.3); background: rgba(124,108,240,0.06); }

/* ===== STORE ADMIN SIDEBAR ===== */
.store-sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 500; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.store-sidebar-overlay.active { opacity: 1; pointer-events: auto; }

.store-sidebar {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
  background: rgba(10,10,20,0.9); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(124,108,240,0.25);
  z-index: 600; transition: right 0.3s ease;
}
.store-sidebar.open { right: 0; }
body.light-mode .store-sidebar { background: rgba(255,255,255,0.92); border-color: rgba(124,108,240,0.15); }

.store-sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; border-bottom: 1px solid rgba(124,108,240,0.2);
}
.store-sidebar-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted); font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.store-sidebar-close:hover { color: var(--error); }

/* ===== CONFIG REQUEST SECTION ===== */
.config-request-section {
  max-width: 600px; margin: 40px auto 0; padding: 0 20px 40px;
}
.config-request-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(124,108,240,0.2);
  border-radius: 16px; padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
body.light-mode .config-request-card {
  background: rgba(255,255,255,0.55); border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.config-request-title {
  font-size: 1.3rem; font-weight: 700; color: var(--accent-light, #7c6cf0);
  margin-bottom: 6px; text-align: center;
}
.config-request-sub {
  font-size: 0.85rem; color: var(--text-muted); text-align: center;
  margin-bottom: 20px; line-height: 1.5;
}
.config-request-form .form-group { margin-bottom: 14px; }
.config-request-form textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
  border-radius: 10px; color: var(--text); font-family: inherit;
  font-size: 0.9rem; resize: vertical;
}
body.light-mode .config-request-form textarea {
  background: rgba(0,0,0,0.04) !important; color: #1a1a2e !important;
  border-color: rgba(0,0,0,0.15) !important;
}
