/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --green-50:  #F1F8E9;
  --green-100: #DCEDC8;
  --green-200: #C5E1A5;
  --green-300: #AED581;
  --green-400: #9CCC65;
  --green-500: #8BC34A;
  --green-600: #7CB342;
  --green-700: #558B2F;
  --green-800: #33691E;
  --green-900: #1B5E20;
  --primary:   #4CAF50;
  --primary-light: #8BC34A;
  --primary-dark:  #2E7D32;
  --white: #ffffff;
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --shadow:    0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,.10), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 50px -5px rgba(0,0,0,.15);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Navigation ─────────────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--green-100);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 var(--green-100), var(--shadow);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.navbar-brand img { width: 38px; height: 38px; border-radius: 8px; object-fit: contain; }

.navbar-logo-text { line-height: 1.1; }
.navbar-logo-text .brand-name { font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); }
.navbar-logo-text .brand-sub  { font-size: .7rem; font-weight: 500; color: var(--green-700); letter-spacing: .06em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: .25rem; flex: 1; justify-content: center; }

.nav-link {
  padding: .5rem 1rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
}
.nav-link:hover { background: var(--green-50); color: var(--primary-dark); }
.nav-link.active { background: var(--green-100); color: var(--primary-dark); font-weight: 600; }

.nav-staff-btn {
  padding: .5rem 1.1rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white !important;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(76,175,80,.3);
}
.nav-staff-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(76,175,80,.4);
  background: linear-gradient(135deg, var(--green-600), var(--primary-dark));
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; background: none; border: none; }
.hamburger span { width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--primary-dark) 40%, var(--primary) 80%, var(--primary-light) 100%);
  color: white;
  padding: 7rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; max-width: 780px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}

.hero h1 span { color: var(--green-300); }

.hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-white {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

.btn-outline-white {
  background: rgba(255,255,255,.12);
  color: white;
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}
.btn-outline-white:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  box-shadow: 0 4px 16px rgba(76,175,80,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(76,175,80,.45); background: linear-gradient(135deg, var(--green-600), var(--primary-dark)); }

.btn-discord {
  background: #5865F2;
  color: white;
  box-shadow: 0 4px 16px rgba(88,101,242,.35);
}
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(88,101,242,.45); background: #4752C4; }

.btn-danger { background: #EF4444; color: white; }
.btn-danger:hover { background: #DC2626; transform: translateY(-1px); }

.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ─── Sections ───────────────────────────────────────────────── */
.section { padding: 5rem 2rem; }
.section-center { text-align: center; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 99px;
  padding: .3rem .85rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--gray-800);
  margin-bottom: .75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* ─── Feature Cards (Home) ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-300); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--green-200);
}

.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-800); margin-bottom: .5rem; }
.feature-card p  { font-size: .9rem; color: var(--gray-500); line-height: 1.65; }

/* ─── Stats ──────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.stat-item { text-align: center; }
.stat-item .stat-val { font-size: 2.5rem; font-weight: 900; color: var(--primary-dark); line-height: 1; }
.stat-item .stat-lbl { font-size: .85rem; color: var(--gray-500); margin-top: .25rem; font-weight: 500; }

/* ─── Coming Soon ────────────────────────────────────────────── */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
}

.coming-soon-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--green-100), var(--green-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 2rem;
  border: 2px solid var(--green-300);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.coming-soon h2 { font-size: 2.2rem; font-weight: 800; color: var(--gray-800); margin-bottom: .75rem; }
.coming-soon p  { font-size: 1.05rem; color: var(--gray-500); max-width: 420px; }

/* ─── Product Grid ───────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: var(--green-300); }

.product-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: linear-gradient(135deg, var(--green-100), var(--green-200));
}

.product-image-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--green-100), var(--green-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; }

.product-name { font-size: 1.15rem; font-weight: 700; color: var(--gray-800); }
.product-description { font-size: .9rem; color: var(--gray-500); line-height: 1.65; flex: 1; }

.product-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.product-help-text {
  font-size: .78rem;
  color: var(--gray-400);
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--gray-100);
  cursor: pointer;
  transition: color var(--transition);
  text-align: center;
}
.product-help-text:hover { color: var(--primary); }
.product-help-text::before { content: '💬 '; }

/* ─── Help Section (bottom of products) ─────────────────────── */
.help-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.help-banner h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: .75rem; }
.help-banner p  { font-size: 1rem; color: rgba(255,255,255,.85); margin-bottom: 1.75rem; }

/* ─── Help Page ──────────────────────────────────────────────── */
.help-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.help-hero h1 { font-size: 2.8rem; font-weight: 900; letter-spacing: -.02em; margin-bottom: .75rem; }
.help-hero p  { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto; }

.discord-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}
.discord-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }

.discord-logo {
  width: 72px;
  height: 72px;
  background: #5865F2;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.discord-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: .5rem; }
.discord-card p  { color: var(--gray-500); font-size: .95rem; margin-bottom: 1.75rem; }

.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }

.faq-item {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--green-300); }

.faq-q {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-800);
}

.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--primary); transition: var(--transition); }
.faq-item.open .faq-q::after { content: '−'; }

.faq-a {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding: 3rem 2rem 2rem;
  text-align: center;
}
footer .footer-brand { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: .5rem; }
footer p { font-size: .875rem; color: var(--gray-400); }
footer .footer-links { display: flex; gap: 1.5rem; justify-content: center; margin: 1rem 0; }
footer .footer-links a { color: var(--gray-400); font-size: .875rem; transition: color var(--transition); }
footer .footer-links a:hover { color: var(--primary-light); }
footer .footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 1.5rem 0; }

/* ─── Staff Login ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: white;
  border-radius: var(--radius-xl, 24px);
  padding: 3rem 2.5rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.auth-logo {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 20px rgba(76,175,80,.35);
}

.auth-card h2 { font-size: 1.6rem; font-weight: 800; color: var(--gray-800); margin-bottom: .5rem; }
.auth-card .auth-subtitle { font-size: .9rem; color: var(--gray-500); margin-bottom: 2rem; }

.auth-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .875rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.auth-note {
  margin-top: 1.5rem;
  font-size: .8rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ─── Staff Dashboard ─────────────────────────────────────────── */
.dashboard-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: #1F2937;
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sidebar-title { font-size: .95rem; font-weight: 700; }
.sidebar-sub   { font-size: .7rem; color: rgba(255,255,255,.45); margin-top: .1rem; }

.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }

.sidebar-section-label {
  padding: .5rem 1.5rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.5rem;
  cursor: pointer;
  border-radius: 0;
  transition: all var(--transition);
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  font-weight: 500;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.sidebar-item:hover { background: rgba(255,255,255,.07); color: white; }
.sidebar-item.active { background: rgba(76,175,80,.2); color: var(--green-300); border-right: 3px solid var(--primary-light); }
.sidebar-item .item-icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-name  { font-size: .85rem; font-weight: 600; color: white; }
.user-role  { font-size: .72rem; color: var(--green-400); font-weight: 500; }

/* Main content */
.main-content { margin-left: 260px; flex: 1; display: flex; flex-direction: column; }

.topbar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); }
.topbar-subtitle { font-size: .8rem; color: var(--gray-500); }

.content-area { padding: 2rem; flex: 1; }

/* Tab Panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Cards */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title { font-size: 1rem; font-weight: 700; color: var(--gray-800); }
.card-body  { padding: 1.5rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: .5rem; }
.form-label .optional { font-weight: 400; color: var(--gray-400); font-size: .8rem; }

.form-control {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--gray-800);
  background: white;
  transition: all var(--transition);
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(76,175,80,.12); }

textarea.form-control { resize: vertical; min-height: 110px; }

/* Image Upload Zone */
.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--gray-50);
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: var(--green-50); }

.upload-zone .upload-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.upload-zone p { font-size: .9rem; color: var(--gray-500); }
.upload-zone span { color: var(--primary); font-weight: 600; }
.upload-zone input { display: none; }

.upload-preview {
  display: none;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 1rem;
}
.upload-preview img { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius-sm); }
.upload-preview .remove-img {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,.55);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.upload-preview .remove-img:hover { background: rgba(239,68,68,.85); }

/* Product list in dashboard */
.product-list { display: flex; flex-direction: column; gap: 1rem; }

.product-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.product-list-item:hover { border-color: var(--green-300); background: var(--green-50); }

.product-list-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--green-100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  overflow: hidden;
}
.product-list-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-list-info { flex: 1; min-width: 0; }
.product-list-name { font-weight: 600; font-size: .9rem; color: var(--gray-800); }
.product-list-meta { font-size: .78rem; color: var(--gray-400); margin-top: .2rem; }

/* Users table */
.users-table { width: 100%; border-collapse: collapse; }
.users-table th { background: var(--gray-50); padding: .75rem 1rem; text-align: left; font-size: .8rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--gray-200); }
.users-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: .875rem; color: var(--gray-700); }
.users-table tr:last-child td { border-bottom: none; }
.users-table tr:hover td { background: var(--gray-50); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
}
.badge-green { background: var(--green-100); color: var(--green-800); }
.badge-gray  { background: var(--gray-100); color: var(--gray-600); }
.badge-blue  { background: #EFF6FF; color: #1D4ED8; }

/* Alerts / Toast */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: var(--gray-800);
  color: white;
  padding: .85rem 1.25rem;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 260px;
  animation: slideInRight .25s ease forwards;
}
.toast.success { background: var(--primary-dark); }
.toast.error   { background: #DC2626; }

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-400);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { font-size: .9rem; }

/* Checkbox */
.checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .875rem; color: var(--gray-700); }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 45; display: none; }
  .sidebar-overlay.show { display: block; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: white; padding: 1rem; flex-direction: column; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .section { padding: 3.5rem 1.5rem; }
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .content-area { padding: 1.5rem 1rem; }
  .topbar { padding: 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .auth-card { padding: 2rem 1.5rem; }
}

/* ─── Product badge overlay ──────────────────────────────────── */
.product-badge { position: absolute; top: .75rem; left: .75rem; padding: .25rem .65rem; border-radius: 99px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.badge-new      { background: #10B981; color: white; }
.badge-sale     { background: #EF4444; color: white; }
.badge-featured { background: #F59E0B; color: white; }
.badge-draft    { background: #6B7280; color: white; }

/* Product card image container needs position:relative */
.product-image-container { position: relative; }

/* ─── Category tabs ──────────────────────────────────────────── */
.category-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cat-tab { padding: .45rem 1.1rem; border-radius: 99px; font-size: .85rem; font-weight: 600; cursor: pointer; border: 1.5px solid var(--gray-200); background: white; color: var(--gray-600); transition: all var(--transition); }
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.cat-tab .cat-count { font-size: .72rem; margin-left: .3rem; opacity: .7; }

/* ─── Announcement banner ────────────────────────────────────── */
.announcement-banner { padding: .75rem 2rem; text-align: center; font-size: .88rem; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: .75rem; position: relative; }
.announcement-banner .ann-dismiss { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1.1rem; opacity: .6; transition: opacity var(--transition); }
.announcement-banner .ann-dismiss:hover { opacity: 1; }
.ann-info    { background: #EFF6FF; color: #1D4ED8; border-bottom: 1px solid #BFDBFE; }
.ann-success { background: #F0FDF4; color: #166534; border-bottom: 1px solid #BBF7D0; }
.ann-warning { background: #FFFBEB; color: #92400E; border-bottom: 1px solid #FDE68A; }
.ann-sale    { background: linear-gradient(135deg, #EF4444, #F97316); color: white; }

/* ─── Comments ───────────────────────────────────────────────── */
.comments-section { border-top: 1px solid var(--gray-100); margin-top: .75rem; padding-top: .75rem; }
.comments-toggle { background: none; border: none; cursor: pointer; font-size: .82rem; color: var(--gray-400); font-weight: 500; transition: color var(--transition); padding: 0; }
.comments-toggle:hover { color: var(--primary); }
.comments-body { display: none; margin-top: 1rem; }
.comments-body.open { display: block; }
.comment-item { padding: .75rem; background: var(--gray-50); border-radius: 8px; margin-bottom: .6rem; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; }
.comment-author { font-size: .82rem; font-weight: 600; color: var(--gray-700); }
.comment-date   { font-size: .75rem; color: var(--gray-400); }
.comment-text   { font-size: .85rem; color: var(--gray-600); line-height: 1.55; }
.stars { color: #F59E0B; font-size: .85rem; letter-spacing: .05em; }
.comment-form-area { margin-top: .75rem; padding: .75rem; background: white; border: 1px solid var(--gray-200); border-radius: 8px; }
.star-input { display: flex; gap: .2rem; margin-bottom: .6rem; }
.star-input button { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--gray-300); transition: color var(--transition); padding: 0; }
.star-input button.active, .star-input button:hover { color: #F59E0B; }

/* ─── Analytics ──────────────────────────────────────────────── */
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.analytics-stat { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.analytics-stat .stat-n { font-size: 2rem; font-weight: 800; color: var(--primary-dark); }
.analytics-stat .stat-l { font-size: .8rem; color: var(--gray-500); margin-top: .2rem; }

/* ─── Drag handle ────────────────────────────────────────────── */
.drag-handle { cursor: grab; color: var(--gray-300); font-size: 1.1rem; padding: .25rem; user-select: none; flex-shrink: 0; }
.drag-handle:hover { color: var(--gray-500); }
.product-list-item.dragging { opacity: .4; }
.product-list-item.drag-over-top    { border-top: 2px solid var(--primary); }
.product-list-item.drag-over-bottom { border-bottom: 2px solid var(--primary); }

/* ─── Activity log ───────────────────────────────────────────── */
.activity-item { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--gray-100); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: .4rem; flex-shrink: 0; }
.activity-detail { font-size: .875rem; color: var(--gray-700); }
.activity-meta   { font-size: .75rem; color: var(--gray-400); margin-top: .15rem; }

/* ─── Robux price ────────────────────────────────────────────── */
.robux-price {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  border: 1px solid var(--green-300);
  color: var(--green-800);
  font-size: .82rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 99px;
  letter-spacing: .01em;
}

/* ─── Vendr nav (hidden by default, shown for admins) ────────── */
#vendrNavSection { display: none; }
#vendrNavBtn     { display: none; }

/* ─── Theme Toggle Button ────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  padding: .3rem .6rem;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--gray-100); border-color: var(--gray-300); }

/* ─── Dark Mode ──────────────────────────────────────────────── */
html[data-theme="dark"] {
  color-scheme: dark;
  --gray-50:  #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  --shadow:    0 1px 3px rgba(0,0,0,.5);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.6);
  --shadow-xl: 0 20px 40px rgba(0,0,0,.7);
}

html[data-theme="dark"] body { background: #0f172a; color: #e2e8f0; }

/* Navbar */
html[data-theme="dark"] .navbar { background: #1e293b; border-bottom-color: #334155; }
html[data-theme="dark"] .nav-link { color: #cbd5e1; }
html[data-theme="dark"] .nav-link:hover { color: var(--primary); background: rgba(76,175,80,.1); }
html[data-theme="dark"] .nav-link.active { color: var(--primary); background: rgba(76,175,80,.1); }
html[data-theme="dark"] .hamburger span { background: #e2e8f0; }

/* Cards & surfaces */
html[data-theme="dark"] .card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .discord-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .coming-soon,
html[data-theme="dark"] .help-banner { background: #1e293b !important; border-color: #334155 !important; }

/* Sections with hardcoded white backgrounds */
html[data-theme="dark"] .about-section { background: #1e293b !important; }
html[data-theme="dark"] section[style*="background: white"],
html[data-theme="dark"] section[style*="background:white"] { background: #1e293b !important; }

/* Text */
html[data-theme="dark"] .section-title { color: #f1f5f9; }
html[data-theme="dark"] .section-subtitle { color: #94a3b8; }
html[data-theme="dark"] .faq-q { color: #f1f5f9; }
html[data-theme="dark"] .faq-a { color: #94a3b8; }
html[data-theme="dark"] .product-name { color: #f1f5f9; }
html[data-theme="dark"] .product-description { color: #94a3b8; }
html[data-theme="dark"] .team-name { color: #f1f5f9; }
html[data-theme="dark"] .feature-card h3 { color: #f1f5f9; }
html[data-theme="dark"] .feature-card p { color: #94a3b8; }

/* Forms */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-input,
html[data-theme="dark"] select.form-control,
html[data-theme="dark"] select.form-input { background: #0f172a; border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-input:focus { border-color: var(--primary); background: #0f172a; box-shadow: 0 0 0 3px rgba(76,175,80,.15); }
html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] .form-input::placeholder { color: #475569; }

/* Footer */
html[data-theme="dark"] footer { background: #1e293b; border-top-color: #334155; }
html[data-theme="dark"] footer, html[data-theme="dark"] footer a { color: #94a3b8; }
html[data-theme="dark"] .footer-divider { border-color: #334155; }

/* Category tabs */
html[data-theme="dark"] .cat-tab { background: #1e293b; border-color: #334155; color: #cbd5e1; }
html[data-theme="dark"] .cat-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
html[data-theme="dark"] .cat-count { background: rgba(255,255,255,.15); }

/* Comments */
html[data-theme="dark"] .comment-item { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .comments-toggle { background: #1e293b; color: #cbd5e1; border-color: #334155; }
html[data-theme="dark"] .comment-form-area { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .comment-author { color: #f1f5f9; }
html[data-theme="dark"] .comment-text { color: #cbd5e1; }

/* Activity */
html[data-theme="dark"] .activity-item { border-bottom-color: #334155; }
html[data-theme="dark"] .activity-detail { color: #e2e8f0; }

/* Robux price */
html[data-theme="dark"] .robux-price { background: rgba(76,175,80,.15); border-color: rgba(76,175,80,.3); color: #86efac; }

/* Stats */
html[data-theme="dark"] .stat-item .stat-val { color: var(--primary-light); }
html[data-theme="dark"] .stat-item .stat-lbl { color: #94a3b8; }

/* Mobile nav dropdown */
html[data-theme="dark"] .nav-links { background: #1e293b; border-bottom-color: #334155; }

/* Badges */
html[data-theme="dark"] .badge-gray { background: #334155; color: #cbd5e1; }

/* ── Dashboard specific ───────────────────────────────────────── */
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .content-area,
html[data-theme="dark"] .tab-panel { background: #0f172a; }
html[data-theme="dark"] .topbar { background: #1e293b !important; border-bottom-color: #334155 !important; }
html[data-theme="dark"] .topbar-title { color: #f1f5f9 !important; }
html[data-theme="dark"] .topbar-subtitle { color: #94a3b8 !important; }
html[data-theme="dark"] .card-title { color: #f1f5f9; }
html[data-theme="dark"] .card-header { background: #1e293b; border-bottom-color: #334155; }
html[data-theme="dark"] .modal-backdrop { background: rgba(0,0,0,.7); }
html[data-theme="dark"] .modal,
html[data-theme="dark"] .modal-backdrop > div { background: #1e293b !important; border-color: #334155 !important; }
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .modal-title { color: #f1f5f9; }
html[data-theme="dark"] .users-table th { background: #0f172a; border-color: #334155; color: #94a3b8; }
html[data-theme="dark"] .users-table td { border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .users-table tr:hover td { background: #1e293b; }
html[data-theme="dark"] .product-list-item { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .product-list-item:hover { background: rgba(255,255,255,.04); }
html[data-theme="dark"] .upload-zone { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .discord-preview { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .form-label { color: #cbd5e1; }
html[data-theme="dark"] .sidebar { background: #1F2937; }
html[data-theme="dark"] .sidebar-item { color: rgba(255,255,255,.6); }
html[data-theme="dark"] .sidebar-item:hover,
html[data-theme="dark"] .sidebar-item.active { background: rgba(76,175,80,.2); color: #4ade80; }
html[data-theme="dark"] .sidebar-section-label { color: rgba(255,255,255,.3); }
html[data-theme="dark"] .sidebar-footer { border-top-color: rgba(255,255,255,.08); }
