/* =============================================
   GLOBAL DESIGN SYSTEM
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.6);
  --text-primary: #f1f1f5;
  --text-secondary: #9898b0;
  --text-muted: #5a5a72;
  --accent: #6366f1;
  --accent-hover: #4f52e8;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-card: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.05) 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-accent: 0 8px 32px rgba(99,102,241,0.25);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth!important; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.navbar-brand .brand-icon {
  width: 36px; height: 36px;
  background: var(--gradient-hero);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.navbar-actions { display: flex; align-items: center; gap: 12px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.2);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: var(--radius-sm); }

/* =============================================
   LANDING PAGE
   ============================================= */
.landing-page { overflow-x: hidden; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 2rem 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.2) 0%, transparent 70%);
  filter: blur(60px);
  animation: pulse-glow 6s ease-in-out infinite;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(236,72,153,0.12) 0%, transparent 70%);
  filter: blur(80px);
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.hero-content { max-width: 760px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 500; color: #a5b4fc;
  margin-bottom: 32px;
  animation: fade-up 0.6s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fade-up 0.6s 0.1s ease both;
}
.hero h1 .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 40px;
  animation: fade-up 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap;
  animation: fade-up 0.6s 0.3s ease both;
}

/* Stats strip */
.stats-strip {
  padding: 32px 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.stats-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; text-align: center;
}
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* Features */
.features {
  padding: 100px 2rem;
  max-width: 1100px; margin: 0 auto;
}
.section-title {
  text-align: center; margin-bottom: 70px;
}
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-title p { color: var(--text-secondary); font-size: 1rem; max-width: 520px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover { transform: translateY(-4px); background: var(--bg-card-hover); border-color: rgba(255,255,255,0.12); box-shadow: var(--shadow-md); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  background: var(--gradient-card);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* CTA Section */
.cta-section {
  padding: 100px 2rem;
  text-align: center;
}
.cta-box {
  max-width: 680px; margin: 0 auto;
  padding: 60px 48px;
  background: var(--gradient-card);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(99,102,241,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-box p { color: var(--text-secondary); margin-bottom: 32px; }

/* Footer */
footer {
  padding: 32px 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute; top: -20%; left: 30%;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%);
  filter: blur(80px); pointer-events: none;
}

.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
  animation: fade-up 0.5s ease both;
}

.auth-header { text-align: center; margin-bottom: 36px; }
.auth-logo {
  width: 60px; height: 60px;
  background: var(--gradient-hero);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 20px;
  box-shadow: var(--shadow-accent);
}
.auth-header h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.auth-header p { color: var(--text-secondary); font-size: 0.9rem; }

/* Form */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
}
.form-control {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit; font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--border-focus);
  background: rgba(99,102,241,0.05);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-control::placeholder { color: var(--text-muted); }

.form-control.error { border-color: rgba(239,68,68,0.5); }

.input-wrapper { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1rem; pointer-events: none;
}
.input-wrapper .form-control { padding-left: 42px; }

.form-submit { margin-top: 8px; width: 100%; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  animation: fade-up 0.3s ease;
}
.alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
}
.alert-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  color: #86efac;
}

.auth-footer { text-align: center; margin-top: 28px; color: var(--text-muted); font-size: 0.85rem; }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { color: #818cf8; }

/* =============================================
   DASHBOARD
   ============================================= */
.dashboard-layout {
  display: flex; min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 0;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 50;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-brand {
  width: 36px; height: 36px;
  background: var(--gradient-hero);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.sidebar-title { font-weight: 700; font-size: 1rem; }
.sidebar-subtitle { font-size: 0.75rem; color: var(--text-muted); }

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section-label {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  padding: 8px 8px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 2px 0;
  border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: all var(--transition);
}
.nav-item:hover, .nav-item.active {
  background: rgba(99,102,241,0.1);
  color: var(--text-primary);
}
.nav-item.active { color: #a5b4fc; }
.nav-item .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.user-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}
.user-avatar {
  width: 34px; height: 34px;
  background: var(--gradient-hero);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.85rem; font-weight: 600; }
.user-role { font-size: 0.73rem; color: var(--text-muted); }

/* Main dashboard content */
.dashboard-main {
  margin-left: 260px;
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
}

.dashboard-topbar {
  padding: 0 32px;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 40;
}
.topbar-left h2 { font-size: 1.1rem; font-weight: 600; }
.topbar-left p { font-size: 0.8rem; color: var(--text-muted); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.dashboard-content { padding: 32px; flex: 1; }

/* Summary Cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-bottom: 32px;
}
.summary-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: flex-start; justify-content: space-between;
  transition: all var(--transition);
}
.summary-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: rgba(255,255,255,0.12); }
.summary-card-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.summary-card-value { font-size: 2rem; font-weight: 800; }
.summary-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.icon-blue { background: rgba(99,102,241,0.15); }
.icon-green { background: rgba(34,197,94,0.15); }
.icon-yellow { background: rgba(245,158,11,0.15); }
.icon-pink { background: rgba(236,72,153,0.15); }

/* Products Panel */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-title { font-size: 1rem; font-weight: 600; }
.panel-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* Table */
.table-wrapper { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem;
}
th {
  padding: 12px 20px;
  text-align: left;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

.product-name { font-weight: 600; color: var(--text-primary) !important; }

.product-main-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}

.product-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-category {
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.2);
}
.badge-stock-ok { background: rgba(34,197,94,0.1); color: #86efac; border: 1px solid rgba(34,197,94,0.2); }
.badge-stock-low { background: rgba(245,158,11,0.1); color: #fcd34d; border: 1px solid rgba(245,158,11,0.2); }
.badge-stock-out { background: rgba(239,68,68,0.1); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 40px;
  color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; /* Changed from center to allow scrolling long content */
  justify-content: center;
  padding: 2rem;
  overflow-y: auto; /* Allow overlay scroll */
  animation: fade-in 0.2s ease;
}
.modal-overlay.hidden { display: none; }

.modal {
  width: 100%; max-width: 800px; /* Increased max-width */
  background: #15151f;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: scale-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  
  margin: auto 0; /* Center vertically if space allows, otherwise scroll */
  display: flex; 
  flex-direction: column;
  /* Removed max-height constraint on modal itself to let overlay handle scroll if needed */
}
.modal-header {
  padding: 24px 28px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05); /* Added separator */
}
.modal-header h3 { font-size: 1.15rem; font-weight: 700; }
.modal-body { 
  padding: 24px 28px; 
  /* Removed overflow-y: auto from here to let whole page scroll */
}
.modal-footer {
  padding: 20px 28px 24px;
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.05); /* Added separator */
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.order-status-select {
  min-width: 160px;
}

.order-status-select option {
  background: #ffffff;
  color: #0f172a;
}

.order-status-select.status-in-review {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
}

.order-status-select.status-approved {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.order-status-select.status-dispatched {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.45);
  color: #93c5fd;
}

.order-status-select.status-canceled {
  background: rgba(107, 114, 128, 0.2);
  border-color: rgba(107, 114, 128, 0.45);
  color: #d1d5db;
}

.order-status-select.status-rejected {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* =============================================
   TOAST
   ============================================= */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 300;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  padding: 14px 18px;
  background: #1e1e2e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  display: flex; align-items: center; gap: 10px;
  animation: toast-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
  max-width: 320px;
}
.toast-success { border-color: rgba(34,197,94,0.3); }
.toast-success .toast-icon { color: var(--success); }
.toast-error { border-color: rgba(239,68,68,0.3); }
.toast-error .toast-icon { color: var(--danger); }
.toast-out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }
@keyframes toast-out { to{opacity:0;transform:translateX(30px)} }

/* =============================================
   UTILITIES
   ============================================= */
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform var(--transition); }
  .dashboard-main { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .auth-card { padding: 32px 24px; }
}
/* Public Site Styles */

.font-serif {
  font-family: 'Playfair Display', serif;
}

.font-display {
  font-family: 'Public Sans', sans-serif;
}

header img.logo {
  width: 100px;
  height: 100px;
  /* background: var(--gradient-hero); */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.bg-background-primary {
  background-color: #f9ebd4;
}

/* Mobile cart overlay adjustments */
#cartOverlay.opacity-0 {
  pointer-events: none;
}

