/* ═══════════════════════════════════════════════════════════════
   Store CMS Portal — Premium Design System v3.0
   Bold, modern, professional grocery commerce UI
   Deep indigo + emerald accent, glassmorphism, gradient cards
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;

  /* NEW Deep Indigo + Emerald Brand */
  --color-text: #1e1b4b;
  --color-text-secondary: #4c4a6e;
  --color-text-tertiary: #8b8aa3;
  --color-bg: #ffffff;
  --color-bg-subtle: #fafaff;
  --color-bg-muted: #f0f0f8;
  --color-bg-wash: #e4e4f0;
  --color-border: #e0dff0;
  --color-border-light: #eeedf8;

  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-primary-darker: #3730a3;
  --color-primary-light: #e0e7ff;
  --color-primary-50: #eef2ff;

  --color-accent: #10b981;
  --color-accent-dark: #059669;
  --color-accent-light: #d1fae5;
  --color-accent-50: #ecfdf5;

  --color-warm: #f59e0b;
  --color-warm-light: #fef3c7;

  --color-danger: #ef4444;
  --color-danger-light: #fef2f2;
  --color-ink: #1e1b4b;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows – richer depth */
  --shadow-xs: 0 1px 2px rgba(30,27,75,0.04);
  --shadow-sm: 0 2px 6px rgba(30,27,75,0.06), 0 1px 2px rgba(30,27,75,0.04);
  --shadow-md: 0 4px 12px rgba(30,27,75,0.08), 0 2px 4px rgba(30,27,75,0.04);
  --shadow-lg: 0 12px 24px rgba(30,27,75,0.1), 0 4px 8px rgba(30,27,75,0.05);
  --shadow-xl: 0 24px 48px rgba(30,27,75,0.12), 0 8px 16px rgba(30,27,75,0.06);
  --shadow-ring: 0 0 0 3px rgba(79,70,229,0.15);
  --shadow-card: 0 2px 8px rgba(30,27,75,0.05), 0 0 0 1px rgba(30,27,75,0.03);
  --shadow-glow: 0 0 40px rgba(79,70,229,0.15);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.18s var(--ease);
  --transition-slow: 0.3s var(--ease);
}

html { scroll-behavior: smooth; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  font-size: 15px; line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-darker); }

/* ── Container ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: -0.03em; }
h1 { font-size: 2rem; font-weight: 800; margin: 0 0 0.5rem; color: var(--color-ink); line-height: 1.15; }
h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.75rem; color: var(--color-ink); line-height: 1.2; }
h3 { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--color-text); line-height: 1.3; }
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
}

/* ── Buttons — Bold & Modern ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.5rem 1rem; font-size: 0.8rem; font-weight: 600;
  border-radius: 6px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: all 0.15s ease;
  font-family: inherit; line-height: 1.5; white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--color-primary, #4f46e5);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 4px rgba(79,70,229,0.25);
}
.btn-primary:hover {
  background: var(--color-primary-dark, #4338ca);
  color: #fff;
  box-shadow: 0 3px 12px rgba(79,70,229,0.3);
}
.btn-outline {
  background: #fff;
  border: 1px solid var(--color-border, #e0dff0);
  color: var(--color-text, #334155);
}
.btn-outline:hover {
  border-color: var(--color-primary, #4f46e5);
  color: var(--color-primary-dark, #4338ca);
  background: var(--color-primary-50, #eef2ff);
}
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.75rem; }
.btn-xs { padding: 0.25rem 0.55rem; font-size: 0.7rem; border-radius: 5px; }
.btn-lg { padding: 0.65rem 1.4rem; font-size: 0.9rem; border-radius: 8px; }
.btn-white {
  background: #fff;
  color: var(--color-primary-darker, #312e81);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-weight: 600;
}
.btn-white:hover { background: var(--color-primary-light, #e0e7ff); color: var(--color-primary-darker, #312e81); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.btn-accent {
  background: var(--color-accent, #10b981);
  color: #fff; border-color: transparent;
  box-shadow: 0 1px 4px rgba(16,185,129,0.25);
}
.btn-accent:hover { background: #059669; box-shadow: 0 3px 12px rgba(16,185,129,0.3); color: #fff; }
.btn-danger { background: var(--color-danger, #ef4444); color: #fff; border-color: transparent; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-warning { background: #f59e0b; color: #fff; border-color: transparent; }
.btn-warning:hover { background: #d97706; color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ══════════════════════════════════════════════
   SITE HEADER — Glassmorphism Nav
   ══════════════════════════════════════════════ */
.site-header {
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(224,223,240,0.5);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 1.25rem; gap: 1rem;
}
.logo {
  font-weight: 800; font-size: 1.2rem; color: var(--color-primary-darker);
  text-decoration: none; display: flex; align-items: center; gap: 0.4rem;
  letter-spacing: -0.035em; white-space: nowrap;
}
.logo:hover { color: var(--color-primary); }
.logo-icon { font-size: 1.4rem; }
.logo-img { height: 32px; width: auto; border-radius: var(--radius-xs); }
.main-nav { display: flex; align-items: center; gap: 0.2rem; }
.main-nav a {
  color: var(--color-text-secondary); text-decoration: none; font-size: 0.9375rem;
  font-weight: 500; padding: 0.45rem 0.85rem; border-radius: var(--radius-sm);
  transition: all var(--transition); position: relative;
}
.main-nav a:hover { color: var(--color-primary); background: var(--color-primary-50); }
.main-nav a.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366f1 100%);
  box-shadow: 0 2px 8px rgba(79,70,229,0.25);
}
.main-nav a.active::after { display: none; }
.nav-mobile-extras a.active {
  color: var(--color-primary);
  font-weight: 600;
}
.nav-mobile-extras { display: none; }
.header-utils { display: flex; align-items: center; gap: 0.5rem; }

/* Cart link */
.cart-link {
  position: relative; text-decoration: none; font-size: 1.1rem; line-height: 1;
  display: flex; align-items: center; padding: 0.35rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.cart-link:hover { background: var(--color-bg-muted); }
.cart-count {
  position: absolute; top: -5px; right: -7px;
  background: linear-gradient(135deg, var(--color-danger) 0%, #f97316 100%);
  color: #fff; font-size: 0.6rem; font-weight: 700;
  min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: var(--radius-full); padding: 0 4px;
  box-shadow: 0 2px 6px rgba(239,68,68,0.3);
}
.cart-count:empty { display: none; }
.cart-link.active { color: var(--color-primary); }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
  width: 34px; height: 34px; position: relative; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 20px; height: 2px; background: var(--color-text);
  border-radius: 2px; position: absolute; left: 7px;
  transition: all 0.25s var(--ease);
}
.hamburger span:nth-child(1) { top: 8px; }
.hamburger span:nth-child(2) { top: 15px; }
.hamburger span:nth-child(3) { top: 22px; }
.hamburger.active span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* Nav overlay */
.nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(30,27,75,0.45);
  z-index: 90; opacity: 0; transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(6px);
}
.nav-overlay.active { display: block; opacity: 1; }

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .main-nav {
    position: fixed; top: 0; right: -320px; width: 320px; height: 100vh;
    background: #fff; z-index: 95; flex-direction: column; align-items: stretch;
    padding: 4.5rem 1.5rem 1.5rem; gap: 0;
    box-shadow: -12px 0 48px rgba(30,27,75,0.15);
    transition: right 0.3s var(--ease); overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav a {
    font-size: 0.95rem; padding: 0.75rem 0.6rem; border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--color-border-light);
  }
  .main-nav a.active { background: var(--color-primary-50); color: var(--color-primary); box-shadow: none; }
  .nav-mobile-extras { display: block; margin-top: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--color-border); }
  .nav-mobile-extras a { display: block; }
  .header-inner { padding: 0.5rem 0.75rem; }
  .cart-link { display: none; }
}

@media (max-width: 768px) {
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; position: relative; bottom: auto; box-shadow: none; }
  .dash-main { margin-left: 0; }
}

/* ── Language Selector ── */
.lang-selector { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.55rem;
  background: var(--color-bg); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-sans);
  font-size: 0.75rem; font-weight: 600; color: var(--color-text-secondary);
  transition: all var(--transition); line-height: 1;
}
.lang-trigger:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.lang-trigger svg { flex-shrink: 0; }
.lang-label { min-width: 16px; text-align: center; }
.lang-arrow { transition: transform 0.2s; }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; width: 180px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl); padding: 0.35rem; z-index: 200;
  display: none; animation: fadeSlideDown 0.15s var(--ease);
}
.lang-dropdown.open { display: block; }
.lang-dropdown-title {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-text-tertiary);
  padding: 0.4rem 0.5rem 0.3rem;
}
.lang-options { display: flex; flex-direction: column; }
.lang-option {
  background: none; border: none; text-align: left; padding: 0.4rem 0.5rem;
  font-size: 0.8125rem; font-family: var(--font-sans); cursor: pointer;
  border-radius: var(--radius-xs); color: var(--color-text);
  transition: all var(--transition);
}
.lang-option:hover { background: var(--color-bg-muted); }
.lang-option.active { background: var(--color-primary-50); color: var(--color-primary-darker); font-weight: 600; }
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hide Google Translate UI */
.goog-te-gadget-simple, .goog-te-gadget, .goog-te-gadget-icon { display: none !important; }
.goog-te-banner-frame, .goog-te-ftab-frame, #goog-gt-tt { display: none !important; }
body { top: 0 !important; }
.VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }

/* ══════════════════════════════════════════════
   HERO SECTION — Bold Gradient with Depth
   ══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 25%, #4338ca 55%, #6366f1 85%, #818cf8 100%);
  color: #fff; padding: 5rem 1rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 15% 40%, rgba(16,185,129,0.2), transparent),
    radial-gradient(ellipse 500px 400px at 85% 20%, rgba(139,92,246,0.25), transparent),
    radial-gradient(ellipse 300px 300px at 50% 80%, rgba(99,102,241,0.15), transparent);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: 2.75rem; margin-bottom: 0.75rem; letter-spacing: -0.04em; line-height: 1.1; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.hero p { font-size: 1.1rem; max-width: 560px; margin: 0 0 2rem; opacity: 0.92; line-height: 1.7; }
@media (min-width: 768px) { .hero { padding: 6rem 1rem; } .hero h1 { font-size: 3.5rem; } }
.hero-grid-shell { text-align: left; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr minmax(280px, 0.8fr);
  gap: 3rem;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy p { margin-left: 0; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-outline {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
}
.hero-outline:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.hero-panel { display: flex; justify-content: flex-end; }
.hero-panel-card {
  width: min(100%, 380px);
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
  backdrop-filter: blur(20px);
}
.hero-panel-title {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.hero-stat-list { display: grid; gap: 0.85rem; }
.hero-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.85rem;
}
.hero-stat strong { font-size: 1.6rem; color: #fff; font-weight: 800; }
.hero-stat span { color: rgba(255,255,255,0.7); text-align: right; font-size: 0.8125rem; }
.hero-panel-note { margin: 1.25rem 0 0; color: rgba(255,255,255,0.6); font-size: 0.8125rem; line-height: 1.55; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { justify-content: flex-start; }
}

/* ── Sections ── */
.section { padding: 2.5rem 0; }
.section-slab {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-primary-50) 100%);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-header h2 { margin-bottom: 0; }
.section-header a { font-size: 0.8125rem; font-weight: 600; color: var(--color-primary); }

/* ── Department Chips ── */
.dept-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dept-chip {
  background: var(--color-bg); padding: 0.45rem 0.9rem; border-radius: var(--radius-full);
  font-size: 0.8125rem; font-weight: 600; text-decoration: none; color: var(--color-text);
  border: 1.5px solid var(--color-border); transition: all var(--transition);
}
.dept-chip:hover {
  border-color: var(--color-primary); color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366f1 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79,70,229,0.25);
}
.dept-toggle-icon { font-size: 0.7em; opacity: 0.5; display: none; transition: transform 0.2s; }
.dept-toggle.open .dept-toggle-icon { transform: rotate(180deg); }
@media (max-width: 640px) {
  .dept-toggle-icon { display: inline; }
  .dept-toggle { display: flex; align-items: center; justify-content: space-between; }
  .dept-chips { display: none; }
  .dept-toggle.open + .dept-chips { display: flex; }
}

/* Feature Grid — Colored accent borders */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0; transition: opacity var(--transition-slow);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(79,70,229,0.2);
}
.feature-card:hover::before { opacity: 1; }
.feature-card h3 { margin-top: 0.85rem; }
.feature-card p { margin: 0; color: var(--color-text-secondary); font-size: 0.875rem; line-height: 1.65; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--color-primary-50) 0%, #ede9fe 100%);
}
.feature-card:nth-child(2) .feature-icon { background: linear-gradient(135deg, var(--color-accent-50) 0%, #d1fae5 100%); }
.feature-card:nth-child(3) .feature-icon { background: linear-gradient(135deg, var(--color-warm-light) 0%, #fef3c7 100%); }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ── Application Shell ── */
.application-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #fafaff 0%, var(--color-primary-50) 100%);
  padding: 2.5rem 1rem;
}
.application-card {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  background: var(--color-bg);
  padding: 2.5rem;
}
.application-header {
  display: flex; justify-content: space-between; gap: 1rem;
  align-items: flex-start; margin-bottom: 1.25rem;
}
.application-header p { margin: 0.35rem 0 0; color: var(--color-text-secondary); }
.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.application-grid > * { min-width: 0; }
.signature-pad {
  width: 100%; height: 160px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  touch-action: none;
  cursor: crosshair;
  display: block;
}
.inline-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
}
.document-sheet {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}
.document-header {
  display: flex; justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem; margin-bottom: 1.25rem;
}
.document-kicker {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
}
.document-meta { display: grid; gap: 0.6rem; }
.document-meta strong,
.document-grid strong,
.document-block strong {
  display: block; font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-text-tertiary); margin-bottom: 0.25rem;
}
.document-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem; margin-bottom: 1rem;
}
.document-block { margin-bottom: 1rem; }
.application-signature-image {
  display: block; max-width: 320px; width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
}
@media (max-width: 768px) {
  .application-header, .document-header, .application-grid, .document-grid { display: block; }
  .application-grid > *, .document-grid > * { margin-bottom: 0.85rem; }
}

/* ══════════════════════════════════════════════
   PRODUCT GRID & CARDS
   ══════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } }

.product-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--transition-slow);
  position: relative;
  box-shadow: var(--shadow-card);
}
.product-card:hover {
  border-color: rgba(79,70,229,0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-card .card-img { display: block; overflow: hidden; background: var(--color-bg-muted); aspect-ratio: 4/3; }
.product-card .card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .card-img img { transform: scale(1.06); }
.product-card .card-body { padding: 0.9rem 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.product-card .badges { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.product-card .badge {
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem; border-radius: var(--radius-full); display: inline-block;
}
.product-card .badge.sale { background: #fef2f2; color: #b91c1c; }
.product-card .badge.new { background: #eef2ff; color: #4338ca; }
.product-card .badge.best { background: #eff6ff; color: #1e40af; }
.product-card .badge.featured { background: #fefce8; color: #854d0e; }
.product-card .badge.diet { background: #f5f3ff; color: #6d28d9; }
.product-card .badge.in { background: #ecfdf5; color: #166534; }
.product-card .badge.low { background: #fefce8; color: #92400e; }
.product-card .badge.out { background: #f9fafb; color: #9ca3af; }
.product-card .card-title { font-size: 0.875rem; font-weight: 600; margin: 0; line-height: 1.35; }
.product-card .card-title a { color: var(--color-text); text-decoration: none; }
.product-card .card-title a:hover { color: var(--color-primary); }
.product-card .card-brand { font-size: 0.6875rem; color: var(--color-text-tertiary); }
.product-card .card-price { display: flex; align-items: baseline; gap: 0.35rem; margin-top: 0.15rem; }
.product-card .price { font-weight: 700; font-size: 1rem; color: var(--color-text); }
.product-card .price.sale { color: var(--color-danger); }
.product-card .price.orig { font-weight: 400; color: var(--color-text-tertiary); text-decoration: line-through; font-size: 0.8125rem; }
.product-card .unit { font-size: 0.6875rem; color: var(--color-text-tertiary); }
.product-card .card-actions { margin-top: auto; padding-top: 0.5rem; display: flex; gap: 0.4rem; }
.product-card .card-actions .btn { flex: 1; font-size: 0.75rem; padding: 0.4rem 0.5rem; }

/* ── Demo Notice ── */
.demo-notice {
  background: linear-gradient(135deg, var(--color-warm-light) 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  padding: 0.7rem 1rem; font-size: 0.8125rem; border-radius: var(--radius-md);
  color: #92400e; display: flex; align-items: center; gap: 0.5rem;
}
.demo-notice strong { font-weight: 700; }

/* ── Shop Filters ── */
.shop-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
  padding: 0.875rem 1.25rem; background: var(--color-bg);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  margin-bottom: 1.5rem; box-shadow: var(--shadow-xs);
}
.shop-filters input[type="text"],
.shop-filters select {
  font-family: var(--font-sans); font-size: 0.8125rem;
  padding: 0.45rem 0.7rem; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); background: var(--color-bg); color: var(--color-text);
  outline: none; transition: border-color var(--transition);
}
.shop-filters input[type="text"]:focus,
.shop-filters select:focus { border-color: var(--color-primary); box-shadow: var(--shadow-ring); }
.shop-filters label { font-size: 0.8125rem; display: flex; align-items: center; gap: 0.3rem; cursor: pointer; color: var(--color-text-secondary); }

/* ── Cart Page ── */
.cart-items { display: flex; flex-direction: column; gap: 0; }
.cart-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-light);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; background: var(--color-bg-muted); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.9375rem; }
.cart-item-meta { font-size: 0.75rem; color: var(--color-text-secondary); }
.cart-item-price { font-size: 0.8125rem; color: var(--color-text-secondary); margin-top: 0.15rem; }
.cart-item-qty select {
  font-family: var(--font-sans); font-size: 0.8125rem; padding: 0.35rem 0.5rem;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-bg); cursor: pointer;
}
.cart-item-total { font-weight: 700; font-size: 0.9375rem; min-width: 70px; text-align: right; }
.cart-item-remove {
  background: none; border: none; font-size: 1.2rem; color: var(--color-text-tertiary);
  cursor: pointer; padding: 0.25rem; line-height: 1; transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--color-danger); }
.cart-summary {
  background: linear-gradient(135deg, var(--color-bg-subtle) 0%, var(--color-primary-50) 100%);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.5rem; margin-top: 1.5rem;
}
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 0.3rem 0; }
.cart-summary-value { font-size: 1.25rem; font-weight: 700; }
.cart-summary-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--color-border);
}
@media (max-width: 600px) {
  .cart-item { flex-wrap: wrap; gap: 0.5rem; }
  .cart-item-total { min-width: auto; }
  .cart-summary-actions { flex-direction: column; }
  .cart-summary-actions .btn { width: 100%; }
}

/* ── Checkout ── */
.checkout-layout { max-width: 600px; }
.form-group { margin-bottom: 0.85rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--color-ink, #1e1b4b); }
.form-input {
  width: 100%; padding: 0.55rem 0.8rem; font-size: 0.875rem;
  border: 1px solid #e0dff0; border-radius: 6px;
  background: #fff; font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease; outline: none;
  color: var(--color-text, #334155);
}
.form-input:focus { border-color: var(--color-primary, #4f46e5); background: #fff; box-shadow: 0 0 0 3px rgba(79,70,229,0.08); }
textarea.form-input { resize: vertical; min-height: 80px; }
.fulfillment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.fulfillment-option { cursor: pointer; }
.fulfillment-option input { display: none; }
.fulfillment-card {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem;
  border: 2px solid var(--color-border); border-radius: var(--radius-md);
  transition: all var(--transition); text-align: center;
}
.fulfillment-option input:checked + .fulfillment-card {
  border-color: var(--color-primary); background: var(--color-primary-50);
}
.checkout-item { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.875rem; }

/* ══════════════════════════════════════════════
   SITE FOOTER — Premium Dark
   ══════════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(180deg, #1e1b4b 0%, #0f0e2a 100%);
  color: #a5a3c8;
  padding: 2rem 0 1rem;
  margin-top: auto;
  position: relative;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem;
}
.footer-brand {
  font-weight: 800; font-size: 1.05rem; color: #fff;
  margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.4rem;
  letter-spacing: -0.02em;
}
.footer-tagline { font-size: 0.75rem; color: #7c7a9e; line-height: 1.55; max-width: 300px; }
.footer-col h4 {
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #7c7a9e; margin: 0 0 0.5rem;
}
.footer-col a {
  display: block; font-size: 0.75rem; color: #a5a3c8; text-decoration: none;
  padding: 0.15rem 0; transition: color var(--transition);
}
.footer-col a:hover { color: #e0e7ff; }
.footer-bottom {
  margin-top: 1.25rem; padding-top: 0.75rem;
  border-top: 1px solid rgba(165,163,200,0.12);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.7rem; color: #5c5a7c;
}
.footer-bottom a { color: #7c7a9e; text-decoration: none; }
.footer-bottom a:hover { color: #e0e7ff; }
.footer-links { display: flex; gap: 1.25rem; }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}

/* Staff Access */
.staff-access-zone { position: absolute; right: 1.5rem; bottom: 1rem; opacity: 0.04; transition: opacity 0.3s var(--ease); }
.staff-access-zone:hover, .staff-access-zone:focus-within { opacity: 0.7; }
.staff-access-link { font-size: 0.6875rem; color: #7c7a9e; text-decoration: none; padding: 0.15rem 0.4rem; border-radius: var(--radius-xs); }
.staff-access-link:hover { text-decoration: underline; color: #a5a3c8; }

/* ── Product Detail ── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 1.5rem; }
.product-detail-img { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-muted); }
.product-detail-img img { width: 100%; display: block; }
.product-detail-gallery { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.product-detail-gallery img {
  width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm);
  border: 2px solid var(--color-border); cursor: pointer; transition: border-color var(--transition);
}
.product-detail-gallery img:hover { border-color: var(--color-primary); }
.product-detail-info h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.product-detail-meta { font-size: 0.875rem; color: var(--color-text-secondary); margin-bottom: 1rem; }
.product-detail-price { font-size: 1.75rem; font-weight: 700; color: var(--color-text); margin-bottom: 1rem; }
.product-detail-price .orig { font-size: 1.1rem; color: var(--color-text-tertiary); text-decoration: line-through; font-weight: 400; margin-left: 0.5rem; }
.product-detail-price .sale-price { color: var(--color-danger); }
.product-detail-desc { color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.8125rem; color: var(--color-text-tertiary); margin-bottom: 0.5rem; }
.breadcrumb a { color: var(--color-text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 0.4rem; opacity: 0.5; }

/* ══════════════════════════════════════════════
   AUTH / LOGIN PAGES
   ══════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 600px 400px at 30% 20%, rgba(79,70,229,0.1), transparent),
    radial-gradient(ellipse 400px 300px at 70% 80%, rgba(16,185,129,0.08), transparent),
    linear-gradient(180deg, #fafaff 0%, #eef2ff 100%);
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%; max-width: 420px; background: #fff;
  border-radius: 12px; box-shadow: 0 4px 24px rgba(30,27,75,0.08);
  padding: 2.5rem; border: 1px solid #e0dff0;
}
.auth-card .auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-card .auth-logo a {
  font-weight: 800; font-size: 1.3rem; color: var(--color-primary-darker);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
}
.auth-card h1 { text-align: center; font-size: 1.375rem; margin-bottom: 0.25rem; }
.auth-card .auth-subtitle { text-align: center; font-size: 0.8125rem; color: var(--color-text-secondary); margin-bottom: 1.75rem; }
.auth-card .form-group { margin-bottom: 1.1rem; }
.auth-card label {
  display: block; font-size: 0.9rem; font-weight: 600;
  color: var(--color-text); margin-bottom: 0.4rem;
}
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="number"],
.auth-card input[type="tel"],
.auth-card input[type="url"],
.auth-card input[type="date"],
.auth-card input[type="time"],
.auth-card select,
.auth-card textarea {
  width: 100%; padding: 0.6rem 0.8rem; font-size: 0.875rem;
  border: 1px solid #e0dff0; border-radius: 6px;
  background: #fff; font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease; outline: none;
  box-sizing: border-box;
}
.auth-card input:focus { border-color: var(--color-primary, #4f46e5); background: #fff; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.auth-card .btn { width: 100%; padding: 0.65rem; font-size: 0.9375rem; }
.auth-card .auth-footer { text-align: center; margin-top: 1.25rem; font-size: 0.8125rem; color: var(--color-text-secondary); }
.auth-card .auth-footer a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.auth-card .auth-footer a:hover { text-decoration: underline; }
.auth-error {
  background: #fef2f2; color: #b91c1c;
  padding: 0.6rem 0.85rem; border-radius: 6px;
  font-size: 0.8rem; margin-bottom: 1rem; border: 1px solid #fecaca;
}
.auth-success {
  background: #ecfdf5; color: #166534;
  padding: 0.6rem 0.85rem; border-radius: 6px;
  font-size: 0.8rem; margin-bottom: 1rem; border: 1px solid #bbf7d0;
}
.auth-demo-hint {
  background: var(--color-bg-muted); padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm); font-size: 0.6875rem;
  color: var(--color-text-secondary); margin-top: 1rem; text-align: center;
}

/* ══════════════════════════════════════════════
   DASHBOARD — Modern Admin with Gradient Accents
   ══════════════════════════════════════════════ */
.dash-layout { display: flex; min-height: 100vh; }

/* ── Sidebar — Deep Indigo ── */
.dash-sidebar {
  width: 270px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(99,102,241,0.15) 0%, transparent 50%),
    linear-gradient(180deg, #1e1b4b 0%, #161338 40%, #0f0d24 100%);
  color: #fff;
  padding: 0;
  display: flex; flex-direction: column; flex-shrink: 0;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow: 4px 0 24px rgba(0,0,0,0.18);
}
.portal-customer .dash-sidebar { background: linear-gradient(180deg, #134e4a 0%, #0a2d2b 100%); }
.portal-vendor .dash-sidebar { background: linear-gradient(180deg, #1e3a5f 0%, #0c1d33 100%); }
.portal-delivery .dash-sidebar { background: linear-gradient(180deg, #3b0764 0%, #1e0338 100%); }

.dash-sidebar-brand {
  padding: 1.2rem 1.25rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 800; font-size: 1rem; color: #fff;
  display: flex; align-items: center; gap: 0.6rem;
  letter-spacing: -0.02em;
  background: rgba(255,255,255,0.03);
}
.dash-sidebar-brand .brand-icon {
  font-size: 1.2rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.22);
  border-radius: 8px;
  flex-shrink: 0;
}
.dash-sidebar-user {
  padding: 0.8rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.85rem;
  background: rgba(255,255,255,0.025);
}
.dash-sidebar-user .user-name { font-weight: 600; color: rgba(255,255,255,0.95); font-size: 0.85rem; }
.dash-sidebar-user .user-role {
  font-size: 0.68rem; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.15rem; font-weight: 500;
}
.dash-sidebar-impersonation {
  margin: 0.8rem 0.9rem 0.25rem;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(129,140,248,0.22) 0%, rgba(16,185,129,0.14) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 30px rgba(2,6,23,0.18);
}
.impersonation-kicker {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.25rem;
}
.impersonation-target { font-weight: 700; color: #fff; font-size: 0.82rem; }
.impersonation-meta { font-size: 0.72rem; color: rgba(255,255,255,0.72); margin-top: 0.18rem; margin-bottom: 0.55rem; }
.sidebar-stop-impersonation {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.sidebar-stop-impersonation:hover { background: rgba(255,255,255,0.16); }

/* Sidebar navigation */
.dash-sidebar-nav { padding: 0.35rem 0 0.75rem; flex: 1; overflow-y: auto; }
.dash-sidebar-nav::-webkit-scrollbar { width: 4px; }
.dash-sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.dash-sidebar-nav a {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.52rem 1rem 0.52rem 1.25rem; font-size: 0.84rem; color: rgba(255,255,255,0.68);
  text-decoration: none; transition: all 0.15s ease;
  border-left: 3px solid transparent;
  font-weight: 500; margin: 0;
  border-radius: 0;
}
.dash-sidebar-nav a span {
  width: 24px; text-align: center; font-size: 1rem; flex-shrink: 0; opacity: 0.8;
  transition: opacity 0.15s ease;
}
.dash-sidebar-nav a:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.95);
}
.dash-sidebar-nav a:hover span { opacity: 1; }
.dash-sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(99,102,241,0.3) 0%, rgba(99,102,241,0.08) 100%);
  color: #fff;
  border-left-color: #818cf8;
  font-weight: 600;
}
.dash-sidebar-nav a.active span { opacity: 1; }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #ef4444; color: #fff; font-size: 0.65rem; font-weight: 700;
  border-radius: 10px; margin-left: auto; line-height: 1;
}
.dash-sidebar-nav a { position: relative; display: flex; align-items: center; }
.dash-sidebar-nav .nav-section {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.35);
  padding: 1rem 1.25rem 0.4rem; margin-top: 0.1rem;
  background: transparent; border: none; width: 100%;
  text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  -webkit-appearance: none; appearance: none;
  box-shadow: none; outline: none; line-height: 1.2;
  transition: color 0.15s ease;
}
.dash-sidebar-nav .nav-section:hover { color: rgba(255,255,255,0.6); }
.dash-sidebar-nav .nav-section[aria-expanded="true"] { color: rgba(255,255,255,0.55); }
.dash-sidebar-nav .nav-section::after {
  content: "›";
  font-size: 0.85em;
  line-height: 1;
  transition: transform 0.2s ease;
  margin-left: 0.5rem;
  opacity: 0.35;
  font-weight: 400;
}
.dash-sidebar-nav .nav-section[aria-expanded="true"]::after { transform: rotate(90deg); opacity: 0.5; }
.dash-sidebar-nav .nav-group {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 0.15rem;
}
.dash-sidebar-footer {
  padding: 0.9rem 1.25rem 1rem; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.76rem;
  background: rgba(0,0,0,0.1);
}
.dash-sidebar-footer a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.76rem; transition: color 0.15s; }
.dash-sidebar-footer a:hover { color: rgba(255,255,255,0.9); }

/* ── Main area ── */
.dash-main {
  flex: 1; margin-left: 270px;
  background: linear-gradient(180deg, #fafaff 0%, #f0f0f8 100%);
  min-height: 100vh;
}
.dash-topbar {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--color-border);
  padding: 0.7rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.dash-topbar h1 { font-size: 1rem; font-weight: 700; margin: 0; letter-spacing: -0.02em; color: var(--color-ink); }
.dash-topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.dash-content { padding: 1.25rem 1.5rem; max-width: 1440px; }

/* ── Dashboard Cards — Elevated ── */
.dash-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm, 8px);
  padding: 1.1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.15s ease;
}
.dash-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.dash-card.table-card { padding: 0; overflow-x: auto; }
.dash-card-title {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-text-secondary); margin-bottom: 0.5rem;
}
.dash-card-value { font-size: 1.875rem; font-weight: 800; color: var(--color-ink); letter-spacing: -0.025em; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.dash-stats-compact { margin-bottom: 1rem; }
.dash-stats-compact .dash-card { min-height: 0; }
.admin-hero-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e0dff0;
  border-radius: 10px;
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.admin-hero-title {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.85rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.admin-hero-copy {
  margin: 0;
  color: var(--color-text-secondary);
  max-width: 58rem;
}
.admin-overview-card { padding: 1rem 1rem 0.8rem; }
.compact-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.toolbar-search { width: 280px; max-width: 100%; }
.compact-table-wrap { margin-top: 0; }
.compact-table-wrap .dash-table th,
.compact-table-wrap .dash-table td {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.admin-empty-state {
  padding: 1.2rem 0.2rem 1rem;
  text-align: center;
}
.admin-empty-state h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}
.admin-empty-state p {
  margin: 0 0 0.75rem;
  color: var(--color-text-secondary);
}
.public-form-preview {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem;
}
.form-preview-shell {
  display: grid;
  gap: 0.85rem;
}
.preview-field {
  display: grid;
  gap: 0.35rem;
}
.preview-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink);
}
.public-form-preview input,
.public-form-preview select,
.public-form-preview textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.72rem 0.82rem;
  background: #fff;
  color: var(--color-text-secondary);
}
.preview-check {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500 !important;
}
.dash-stats .dash-stat-link { text-decoration: none; color: inherit; display: block; position: relative; overflow: hidden; }
.dash-stats .dash-stat-link::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #818cf8);
  opacity: 0; transition: opacity var(--transition);
}
.dash-stats .dash-stat-link:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.dash-stats .dash-stat-link:hover::before { opacity: 1; }
.dash-stats .dash-stat-link .dash-card-title { color: var(--color-primary); }
.dash-stats .dash-stat-hint { font-size: 0.6875rem; color: var(--color-text-tertiary); margin-top: 0.4rem; }
.dash-stats .dash-stat-link:nth-child(2)::before { background: linear-gradient(90deg, var(--color-accent), #34d399); }
.dash-stats .dash-stat-link:nth-child(2) .dash-card-title { color: var(--color-accent-dark); }
.dash-stats .dash-stat-link:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.dash-stats .dash-stat-link:nth-child(3) .dash-card-title { color: #b45309; }
.dash-stats .dash-stat-link:nth-child(4)::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.dash-stats .dash-stat-link:nth-child(4) .dash-card-title { color: #7c3aed; }

/* Hero banner in dashboard */
.dash-hero {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
  background: #fff;
  border: 1px solid #e0dff0;
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  position: relative; overflow: hidden;
}
.dash-hero::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.08), transparent);
}
.dash-surface { border-radius: var(--radius-lg); }

.admin-kpi-grid {
  display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 0.75rem;
}
.admin-kpi {
  background: #fafaff;
  border: 1px solid #e0dff0;
  border-radius: 8px;
  padding: 0.75rem 0.875rem;
}
.admin-kpi strong { display: block; font-size: 1.35rem; line-height: 1.1; color: var(--color-ink); }
.admin-kpi span {
  font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-text-secondary);
}

.dash-section {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.dash-section-copy p { margin: 0.25rem 0 0; color: var(--color-text-secondary); font-size: 0.875rem; }
.dash-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 900px) {
  .dash-hero { flex-direction: column; }
  .admin-kpi-grid { width: 100%; }
}

/* Empty state */
.empty-state {
  text-align: center; padding: 3rem 1.5rem;
  border: 1.5px dashed #d4d3e8;
  border-radius: 10px;
  background: #fafaff;
}
.empty-state p { margin: 0.5rem 0 1rem; color: var(--color-text-secondary); }

.note {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  color: var(--color-text-secondary, #64748b);
  font-size: 0.8rem;
}

/* Metric grid */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.metric-card { display: flex; gap: 0.9rem; align-items: flex-start; }
.metric-card .metric-icon {
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-50) 0%, #ede9fe 100%);
  color: var(--color-primary-darker);
  font-size: 1.15rem; flex-shrink: 0;
}
.metric-card .metric-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-text-secondary);
}
.metric-card .metric-value { font-size: 1.375rem; font-weight: 700; color: var(--color-ink); line-height: 1.1; margin-top: 0.15rem; }
.metric-card .metric-note { color: var(--color-text-secondary); font-size: 0.8125rem; margin-top: 0.2rem; }

/* Image preview modal */
.img-preview-modal {
  display: none; position: fixed; z-index: 99999;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(30,27,75,0.8);
  overflow: auto; backdrop-filter: blur(8px);
}
.img-preview-modal .modal-content {
  position: relative; background: var(--color-bg);
  margin: 5% auto; padding: 1.25rem;
  border-radius: var(--radius-xl);
  width: 90%; max-width: 900px;
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.img-preview-modal .modal-content img {
  max-width: 100%; max-height: 70vh; object-fit: contain;
  border-radius: var(--radius-sm); border: 1px solid var(--color-border);
}
.img-preview-modal .close {
  position: absolute; top: 0.75rem; right: 1rem;
  font-size: 1.5rem; font-weight: 600; color: var(--color-text-secondary);
  cursor: pointer; line-height: 1;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.img-preview-modal .close:hover { color: var(--color-danger); background: var(--color-danger-light); }
.img-preview-modal .modal-caption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--color-text-secondary); }

/* Dashboard info banner */
.dash-preview-banner {
  background: linear-gradient(135deg, var(--color-primary-50) 0%, #ede9fe 100%);
  border: 1.5px solid #c7d2fe;
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem; margin-bottom: 1.5rem;
  font-size: 0.8125rem; color: var(--color-primary-darker);
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.dash-preview-banner strong { font-weight: 700; }

/* Quick access grid */
.dash-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.admin-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.admin-grid.equal { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) { .admin-grid.equal { grid-template-columns: 1fr; } }
.admin-grid-top { align-items: start; }

.dash-quick-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  transition: all var(--transition); cursor: default;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.dash-quick-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--color-primary), #818cf8);
  opacity: 0; transition: opacity var(--transition);
}
.dash-quick-card:hover {
  border-color: rgba(79,70,229,0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.dash-quick-card:hover::before { opacity: 1; }
.dash-quick-card .qc-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  background: linear-gradient(135deg, var(--color-primary-50) 0%, #ede9fe 100%);
}
.dash-quick-card:nth-child(2) .qc-icon { background: linear-gradient(135deg, var(--color-accent-50) 0%, #d1fae5 100%); }
.dash-quick-card:nth-child(3) .qc-icon { background: linear-gradient(135deg, var(--color-warm-light) 0%, #fef3c7 100%); }
.dash-quick-card:nth-child(4) .qc-icon { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); }
.dash-quick-card .qc-label { font-weight: 600; font-size: 0.875rem; }
.dash-quick-card .qc-sub { font-size: 0.6875rem; color: var(--color-text-secondary); }

@media (max-width: 768px) {
  .dash-sidebar { display: none; }
  .dash-main { margin-left: 0; }
}

/* ══════════════════════════════════════════════
   ADMIN TABLES
   ══════════════════════════════════════════════ */
.admin-table, .data-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.admin-table th, .data-table th {
  text-align: left; padding: 0.65rem 1rem; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-tertiary, #94a3b8);
  border-bottom: 1px solid var(--color-border); background: var(--color-bg-subtle, #fafaff);
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: color 0.15s ease;
}
.admin-table th:hover, .data-table th:hover { color: var(--color-primary, #4f46e5); }
.admin-table th[data-sort-dir], .data-table th[data-sort-dir] { color: var(--color-primary, #4f46e5); }
.admin-table th .sort-indicator, .data-table th .sort-indicator { font-size: 0.6em; opacity: 0.7; margin-left: 2px; }
.admin-table td, .data-table td {
  padding: 0.6rem 1rem; border-bottom: 1px solid #f1f0f8;
  vertical-align: middle;
  word-break: break-word; color: var(--color-text, #334155);
}
.admin-table tr:hover td, .data-table tr:hover td { background: #f8f7ff; }
.admin-table .actions { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
.admin-table .actions a, .admin-table .actions button {
  font-size: 0.72rem; padding: 0.22rem 0.5rem; border-radius: 5px;
  text-decoration: none; border: 1px solid var(--color-border); background: #fff;
  color: var(--color-text-secondary); cursor: pointer; font-family: var(--font-sans);
  transition: all 0.15s ease;
}
.admin-table .actions a:hover, .admin-table .actions button:hover {
  border-color: var(--color-primary); color: var(--color-primary-dark); background: var(--color-primary-50, #eef2ff);
}
.admin-table .actions .btn-danger { color: var(--color-danger); border-color: #fecaca; }
.admin-table .actions .btn-danger:hover { background: var(--color-danger-light); }
.admin-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.85rem; flex-wrap: wrap; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg-subtle, #fafaff);
  border-bottom: 1px solid var(--color-border, #e0dff0);
  border-radius: var(--radius-sm, 8px) var(--radius-sm, 8px) 0 0;
}
.dash-card > .admin-toolbar:first-child { margin: -1.1rem -1.1rem 1rem; border-radius: 7px 7px 0 0; }
.admin-empty { text-align: center; padding: 2.5rem 1rem; color: var(--color-text-tertiary, #94a3b8); }
.admin-empty p { margin: 0.5rem 0; }

/* Inline forms */
.inline-form { display: flex; gap: 0.5rem; align-items: center; }
.inline-form select.form-control { font-size: 0.8125rem; padding: 0.4rem 0.5rem; }

/* Admin forms */
.admin-form { max-width: 640px; }
.admin-form .form-group { margin-bottom: 1rem; }
.admin-form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; }
.admin-form .form-input {
  width: 100%; padding: 0.55rem 0.75rem; font-size: 0.85rem;
  border: 1px solid #e0dff0; border-radius: 6px;
  background: #fff; font-family: inherit; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-form .form-input:focus { border-color: var(--color-primary, #4f46e5); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.admin-form select.form-input { appearance: auto; }
.admin-form textarea.form-input { resize: vertical; min-height: 80px; }

/* ══════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════ */
.text-muted { color: var(--color-text-secondary); }
.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.6875rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Cards */
.card {
  background: #fff; border: 1px solid #e0dff0;
  border-radius: 8px; padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Status badges */
.status {
  display: inline-flex; align-items: center; padding: 0.2rem 0.55rem;
  border-radius: 999px; font-size: 0.68rem;
  font-weight: 600; text-transform: capitalize; letter-spacing: 0.02em;
  line-height: 1.4;
}
.status-success { background: #ecfdf5; color: #065f46; }
.status-warning { background: #fffbeb; color: #92400e; }
.status-danger { background: #fef2f2; color: #991b1b; }
.status-info { background: #eff6ff; color: #1e40af; }
.status-neutral { background: #f3f4f6; color: #6b7280; }

/* ══════════════════════════════════════════════
   DESIGN SYSTEM EXTENSIONS
   ══════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 400px 300px at 80% 30%, rgba(129,140,248,0.2), transparent),
    radial-gradient(ellipse 300px 200px at 20% 70%, rgba(16,185,129,0.12), transparent);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: 2.25rem; margin: 0 0 0.5rem; font-weight: 800; }
.page-hero p { font-size: 1rem; max-width: 540px; opacity: .88; margin: 0; line-height: 1.6; }

.content-card {
  background: #fff;
  border: 1px solid #e0dff0;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 1rem;
  transition: box-shadow 0.15s ease;
}
.content-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.content-card,
.dash-card,
.form-card,
.settings-section,
.page-grid > *,
.admin-grid > * {
  min-width: 0;
}

.map-card {
  border: 1px solid #e0dff0;
  border-radius: 10px;
  overflow: hidden;
  background: #fafaff;
}
.map-card .map-inner {
  min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; padding: 1.75rem;
  text-align: center; color: var(--color-text-secondary);
}
.map-card .map-pin { font-size: 2.25rem; margin-bottom: .5rem; }

.page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 720px) {
  .page-grid { grid-template-columns: 1fr; }
  .dash-section { flex-direction: column; }
}

.form-card {
  background: #fff;
  border: 1px solid var(--color-border, #e0dff0);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.form-card label { font-weight: 600; color: var(--color-ink, #1e1b4b); font-size: 0.82rem; }
.compact-table-card .admin-empty { padding: 1.5rem 1rem; }
.customer-admin-grid .form-card,
.notifications-admin-grid .table-card,
.notification-side-card,
.customer-side-card { height: 100%; }
.compact-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.compact-kpi {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-subtle);
  padding: 0.8rem 0.85rem;
}
.compact-kpi strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--color-ink);
}
.compact-kpi span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compact-note-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.9rem;
}
.compact-note-item {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
}
.compact-note-item strong {
  display: block;
  font-size: 0.84rem;
  color: var(--color-ink);
  margin-bottom: 0.15rem;
}
.compact-note-item span {
  display: block;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.notification-side-card .form-grid {
  grid-template-columns: 1fr;
}
@media (max-width: 900px) {
  .compact-kpi-grid { grid-template-columns: 1fr; }
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid > * { min-width: 0; }
.form-span-full { grid-column: 1 / -1; }

.form-control {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border, #e0dff0);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  background: #fff;
  color: var(--color-text, #334155);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}
.form-control:focus {
  border-color: var(--color-primary, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.contact-action {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: #fff;
  border: 1px solid #e0dff0;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--color-primary, #4f46e5);
  text-decoration: none;
  transition: all 0.15s ease;
  font-weight: 500;
}
.contact-action:hover {
  background: var(--color-primary-50, #eef2ff);
  border-color: var(--color-primary, #4f46e5);
  transform: translateY(-1px);
  color: var(--color-primary-dark, #4338ca);
}

/* ══════════════════════════════════════════════
   RECIPIENT PICKER
   ══════════════════════════════════════════════ */
.picker-field {
  border: 1px solid #e0dff0;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  display: flex; justify-content: space-between; align-items: center;
  min-height: 38px;
  font-size: 0.85rem;
  color: var(--color-text, #334155);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.picker-field:hover, .picker-field:focus {
  border-color: var(--color-primary, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}
.picker-field .picker-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-field .picker-arrow { margin-left: 0.5rem; color: var(--color-text-tertiary); font-size: 0.75rem; }

.picker-dropdown {
  position: absolute; z-index: 1000;
  background: #fff;
  border: 1px solid #e0dff0;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(30,27,75,0.12);
  width: 100%; max-height: 220px;
  overflow: auto; display: none; margin-top: 2px;
}
.picker-dropdown.open { display: block; }
.picker-search {
  margin: 0.5rem; width: calc(100% - 1rem);
  padding: 0.4rem 0.6rem;
  border: 1px solid #e0dff0;
  border-radius: 6px;
  font-size: 0.8rem; font-family: inherit;
  outline: none;
}
.picker-search:focus { border-color: var(--color-primary); }
.picker-results { list-style: none; margin: 0; padding: 0; }
.picker-item {
  padding: 0.5rem 0.75rem; cursor: pointer;
  font-size: 0.8125rem; color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition);
}
.picker-item:last-child { border-bottom: none; }
.picker-item:hover { background: var(--color-primary-50); }
.picker-item .role { font-size: 0.6875rem; color: var(--color-text-tertiary); margin-left: 0.25rem; }
.picker-empty { padding: 0.75rem; font-size: 0.8125rem; color: var(--color-text-tertiary); text-align: center; }

/* ══════════════════════════════════════════════
   CMS PAGE EDITOR — Admin
   ══════════════════════════════════════════════ */
.page-editor-wrap { max-width: 900px; }
.page-editor-toolbar {
  display: flex; gap: 0.25rem; padding: 0.5rem;
  background: #fafaff;
  border: 1px solid #e0dff0;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  flex-wrap: wrap;
}
.page-editor-toolbar button {
  background: #fff; border: 1px solid #e0dff0;
  border-radius: 4px; padding: 0.3rem 0.55rem;
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  color: var(--color-text-secondary, #64748b); transition: all 0.15s ease;
  font-family: inherit;
}
.page-editor-toolbar button:hover {
  background: var(--color-primary-50, #eef2ff);
  border-color: var(--color-primary, #4f46e5);
  color: var(--color-primary, #4f46e5);
}
textarea.page-editor-content {
  width: 100%;
  border: 1px solid #e0dff0;
  border-radius: 0 0 6px 6px;
  padding: 1rem;
  background: #fff;
  line-height: 1.7;
  outline: none;
  color: var(--color-text, #334155);
}
textarea.page-editor-content:focus { border-color: var(--color-primary, #4f46e5); box-shadow: 0 0 0 3px rgba(79,70,229,0.08); }
.page-editor-content h1, .page-editor-content h2, .page-editor-content h3 { margin: 1rem 0 0.5rem; }
.page-editor-content p { margin: 0 0 0.75rem; }
.page-editor-content ul, .page-editor-content ol { margin: 0.5rem 0; padding-left: 1.5rem; }
.page-editor-content a { color: var(--color-primary); text-decoration: underline; }
.page-editor-content img { max-width: 100%; border-radius: var(--radius-sm); }
.page-editor-content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 1rem 0; padding: 0.5rem 1rem;
  background: var(--color-primary-50);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

/* Page editor sidebar (SEO, settings) */
.page-editor-sidebar {
  background: #fafaff;
  border: 1px solid #e0dff0;
  border-radius: 8px;
  padding: 1.25rem;
}
.page-editor-sidebar h3 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

/* Slug field with prefix */
.slug-field { display: flex; align-items: center; gap: 0; }
.slug-prefix {
  padding: 0.5rem 0.6rem;
  background: #f3f4f6;
  border: 1px solid #e0dff0;
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 0.75rem;
  color: var(--color-text-tertiary, #94a3b8);
  white-space: nowrap;
}
.slug-field .form-input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Success/error messages */
.alert {
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.alert-success {
  background: #ecfdf5; border: 1px solid #bbf7d0; color: #166534;
}
.alert-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
}
.alert-warning {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
}
.alert-info {
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
}

/* ══════════════════════════════════════════════
   CMS PUBLIC PAGE RENDERING
   ══════════════════════════════════════════════ */
.cms-page { padding: 2.5rem 0 3rem; }
.cms-page-header { margin-bottom: 2rem; }
.cms-page-header h1 { font-size: 2.25rem; margin-bottom: 0.5rem; }
.cms-page-header .page-meta { font-size: 0.8125rem; color: var(--color-text-secondary); }
.cms-page-body {
  font-size: 1rem; line-height: 1.8; color: var(--color-text);
  max-width: 740px;
}
.cms-page-body h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.cms-page-body h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.cms-page-body p { margin: 0 0 1rem; }
.cms-page-body ul, .cms-page-body ol { margin: 0.5rem 0 1rem; padding-left: 1.5rem; }
.cms-page-body img { max-width: 100%; border-radius: var(--radius-md); margin: 1rem 0; }
.cms-page-body blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.cms-page-body a { color: var(--color-primary); text-decoration: underline; }

/* ══════════════════════════════════════════════
   CONTACT PAGE — Modern Layout
   ══════════════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
.contact-info-card {
  background: #fff;
  border: 1px solid #e0dff0;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative; overflow: hidden;
}
.contact-info-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.contact-info-card h3 { margin-top: 0; font-size: 1.25rem; font-weight: 700; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-light);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary-50) 0%, #ede9fe 100%);
}
.contact-info-text { flex: 1; }
.contact-info-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-tertiary); }
.contact-info-value { font-size: 0.9375rem; font-weight: 500; color: var(--color-text); margin-top: 0.1rem; overflow-wrap: anywhere; }
.contact-info-value a { color: var(--color-primary); text-decoration: none; }
.contact-info-value a:hover { text-decoration: underline; }

.contact-map-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; padding: 2rem;
  text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
  min-height: 300px;
}
.contact-map-card .map-emoji { font-size: 3rem; margin-bottom: 1rem; }
.contact-map-card h3 { color: #fff; font-size: 1.125rem; margin-bottom: 0.35rem; }
.contact-map-card p { color: rgba(255,255,255,0.7); font-size: 0.875rem; margin: 0 0 1.25rem; max-width: 280px; overflow-wrap: anywhere; }

.contact-form-section {
  max-width: 700px;
  margin: 0 auto;
}
.contact-form-card {
  background: #fff;
  border: 1px solid #e0dff0;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.contact-form-card h3 { margin-top: 0; font-size: 1.25rem; }

/* Math captcha — see bottom of file for modern version */

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   HOMEPAGE TRUST STRIP
   ══════════════════════════════════════════════ */
.trust-strip {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border-light);
}
.trust-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.875rem; color: var(--color-text-secondary);
  font-weight: 500;
}
.trust-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--color-accent-50) 0%, #d1fae5 100%);
}

/* ══════════════════════════════════════════════
   ADMIN FORM SUBMISSIONS VIEWER
   ══════════════════════════════════════════════ */
.submission-detail {
  background: #fafaff;
  border: 1px solid #e0dff0;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 0.75rem;
}
.submission-field {
  display: grid; grid-template-columns: 120px 1fr; gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.8125rem;
}
.submission-field:last-child { border-bottom: none; }
.submission-field-key {
  font-weight: 600; color: var(--color-text-secondary);
  text-transform: capitalize;
}

/* ══════════════════════════════════════════════
   GOOGLE TRANSLATE PAGE STABILITY OVERRIDES
   ══════════════════════════════════════════════ */
html {
  scroll-behavior: auto !important;
  overflow-y: scroll !important;
}
html, body, body.translated-ltr, body.translated-rtl {
  top: 0 !important;
  margin-top: 0 !important;
}
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-ftab-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}
.store-cms-language-control,
.store-cms-language-select,
.store-cms-language-slot {
  display: none !important;
}
.lang-selector, .lang-trigger, .lang-dropdown, .lang-option {
  pointer-events: auto !important;
}

/* ── Nav Dropdown Menus ── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.nav-dropdown-toggle:hover {
  color: var(--color-primary);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.15s ease;
  z-index: 1000;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text, #1e1b4b);
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--color-bg-subtle, #f1f5f9);
  color: var(--color-primary);
}
@media (max-width: 768px) {
  .nav-dropdown {
    display: block;
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: transparent;
  }
}

/* ── Hero Background Video/Image ── */
.hero-bg-media {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(30,27,75,0.82) 0%, rgba(79,70,229,0.65) 100%);
  z-index: 1;
}
.impersonation-strip {
  background: linear-gradient(90deg, rgba(79,70,229,0.95) 0%, rgba(14,165,233,0.92) 100%);
  color: #fff;
}
.impersonation-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.impersonation-strip form { margin: 0; }
.impersonation-strip button {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.impersonation-strip button:hover { background: rgba(255,255,255,0.2); }
/* ── Footer Social Hover ── */
.footer-social a:hover {
  background: rgba(255,255,255,0.25);
}

/* ── Blog Grid & Cards ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border, #e2e8f0);
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}
.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.blog-card-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary, #94a3b8);
}
.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.4rem 0 0.5rem;
  line-height: 1.3;
}
.blog-card-title a {
  color: var(--color-text, #1e1b4b);
  text-decoration: none;
}
.blog-card-title a:hover {
  color: var(--color-primary);
}
.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #475569);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.blog-card-link:hover {
  text-decoration: underline;
}
.blog-content h2, .blog-content h3 {
  margin: 1.5rem 0 0.75rem;
}
.blog-content p {
  margin-bottom: 1rem;
}
.blog-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}
.blog-content ul, .blog-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.blog-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  background: var(--color-bg-subtle, #f8fafc);
  border-radius: 0 8px 8px 0;
}

/* ── Badge / Status Styles ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.badge-success, .badge-active, .badge-completed, .badge-paid, .badge-delivered {
  background: #ecfdf5;
  color: #065f46;
}
.badge-warning, .badge-pending, .badge-processing {
  background: #fffbeb;
  color: #92400e;
}
.badge-danger, .badge-failed, .badge-cancelled, .badge-overdue {
  background: #fef2f2;
  color: #991b1b;
}
.badge-info, .badge-draft, .badge-new {
  background: #eff6ff;
  color: #1e40af;
}
.badge-neutral, .badge-inactive {
  background: #f3f4f6;
  color: #6b7280;
}

/* ── Captcha Row ── */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--color-bg-subtle, #f1f5f9);
  border-radius: 8px;
  border: 1px solid var(--color-border, #e2e8f0);
}
.captcha-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}
.captcha-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}
.captcha-input {
  width: 70px;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--color-border, #e2e8f0);
  border-radius: 6px;
  background: #fff;
}
.captcha-input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}
