/* ============================================================
   NAJD MIL — Premium Design System
   Brand: Minimal White & Gold | Emirati Heritage
   ============================================================ */

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Brand Colors */
  --gold: #D7A449;
  --gold-light: #E8C06B;
  --gold-dark: #B8862E;
  --gold-text-a11y: #8A6416;
  --gold-bg-a11y: #97690F;
  --gold-pale: #F5EDD6;
  --gold-xpale: #FAF5E9;
  --white: #FFFFFF;
  --off-white: #FAFAF8;
  --sand: #F2EAD8;
  --sand-dark: #E8DBC4;
  --beige: #EDE5D0;
  --warm-gray: #9E9489;
  --charcoal: #2C2416;
  --brown: #5A4228;
  --text-primary: #1E1811;
  --text-secondary: #6B5E4A;
  --text-muted: #9E9489;
  --border-light: #EDE5D0;
  --border-gold: rgba(215, 164, 73, 0.3);
  --success: #27AE60;
  --warning: #E67E22;
  --danger: #E74C3C;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(44, 36, 22, 0.05);
  --shadow-sm: 0 1px 3px rgba(44, 36, 22, 0.06), 0 1px 2px rgba(44, 36, 22, 0.04);
  --shadow-md: 0 4px 16px rgba(44, 36, 22, 0.08), 0 2px 6px rgba(44, 36, 22, 0.05);
  --shadow-lg: 0 10px 40px rgba(44, 36, 22, 0.12), 0 4px 12px rgba(44, 36, 22, 0.06);
  --shadow-xl: 0 20px 60px rgba(44, 36, 22, 0.16), 0 8px 20px rgba(44, 36, 22, 0.08);
  --shadow-gold: 0 4px 20px rgba(215, 164, 73, 0.25);
  --shadow-gold-lg: 0 8px 32px rgba(215, 164, 73, 0.35);

  /* Typography */
  --font-en: 'Inter', 'Segoe UI', sans-serif;
  --font-ar: 'Tajawal', 'Noto Naskh Arabic', 'Arial', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-2xl: 48px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-md: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max: 1280px;
  --sidebar-width: 260px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

ul {
  list-style: none;
}

input,
textarea,
select {
  outline: none;
  font: inherit;
}

/* ─── Typography ───────────────────────────────────────────── */
.text-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-ar {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
  line-height: 1.9;
}

.text-gold {
  color: var(--gold-text-a11y);
}

.text-gold-dark {
  color: var(--gold-text-a11y);
}

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

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

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.2;
  font-weight: 700;
}

/* ─── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all var(--transition-md);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(255, 255, 255, 0.15);
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--gold-bg-a11y);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(215, 164, 73, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--white);
  color: var(--gold-text-a11y);
  border: 1.5px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--gold-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-text-a11y);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--gold-text-a11y);
  background: var(--gold-xpale);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--brown);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn-xl {
  padding: 18px 48px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-sm {
  width: 36px;
  height: 36px;
}

/* ─── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-body {
  padding: var(--space-lg);
}

.card-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.card-gold {
  border: 1.5px solid var(--border-gold);
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-pale) 100%);
}

/* ─── Product Cards ─────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card__image {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image {
  transform: scale(1.04);
}

.product-card__image-wrap {
  overflow: hidden;
  position: relative;
  background: var(--sand);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.product-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  border: 1px solid var(--border-light);
}

.product-card__wishlist:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.product-card__body {
  padding: var(--space-md);
}

.product-card__name-ar {
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.product-card__name-en {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.product-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-text-a11y);
}

.product-card__price-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ─── Analytics/Stats Cards ────────────────────────────────── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.3rem;
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-card__trend {
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stat-card__trend.up {
  color: var(--success);
}

.stat-card__trend.down {
  color: var(--danger);
}

/* ─── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-gold {
  background: var(--gold-pale);
  color: var(--gold-text-a11y);
  border: 1px solid var(--border-gold);
}

.badge-success {
  background: #E8F7F0;
  color: #27AE60;
}

.badge-warning {
  background: #FFF3E0;
  color: #E67E22;
}

.badge-danger {
  background: #FDECEA;
  color: #E74C3C;
}

.badge-neutral {
  background: var(--beige);
  color: var(--text-secondary);
}

.badge-new {
  background: var(--charcoal);
  color: var(--gold-light);
}

/* ─── Form Elements ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215, 164, 73, 0.15);
}

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

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

.form-select {
  appearance: none;
  cursor: pointer;
}

/* Search input with icon */
.search-wrap {
  position: relative;
}

.search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-wrap .form-input {
  padding-left: 42px;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  background: var(--gold-xpale);
  cursor: pointer;
  transition: all var(--transition-md);
}

.upload-zone:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.upload-zone__icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

/* ─── Dividers & Section Separators ────────────────────────── */
.divider-gold {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold-light) 60%, transparent 100%);
  border: none;
  margin: var(--space-xl) 0;
}

.divider {
  height: 1px;
  background: var(--border-light);
  border: none;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: var(--gold-pale);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-text-a11y);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-tag::before,
.section-tag::after {
  content: '◆';
  font-size: 0.5em;
  opacity: 0.6;
}

/* ─── Emirati Geometric Pattern ─────────────────────────────── */
.geo-pattern {
  background-image:
    repeating-linear-gradient(45deg,
      rgba(215, 164, 73, 0.06) 0px,
      rgba(215, 164, 73, 0.06) 1px,
      transparent 1px,
      transparent 20px),
    repeating-linear-gradient(-45deg,
      rgba(215, 164, 73, 0.06) 0px,
      rgba(215, 164, 73, 0.06) 1px,
      transparent 1px,
      transparent 20px);
}

.grain-texture {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ─── Table ─────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  background: var(--gold-xpale);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
}

.table tbody tr:hover {
  background: var(--off-white);
}

/* ─── Stars (Rating) ────────────────────────────────────────── */
.stars {
  color: var(--gold);
  letter-spacing: 2px;
}

/* ─── Navigation ─────────────────────────────────────────────── */
.navbar {
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition-md);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

/* ─── Sidebar (Admin) ───────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  overflow-y: auto;
}

.sidebar-logo {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.sidebar-nav {
  padding: var(--space-md);
  flex: 1;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  margin-bottom: 2px;
  cursor: pointer;
}

.sidebar-nav-item:hover {
  background: var(--gold-xpale);
  color: var(--gold-text-a11y);
}

.sidebar-nav-item.active {
  background: var(--gold-pale);
  color: var(--gold-text-a11y);
  font-weight: 600;
  border-left: 3px solid var(--gold);
}

.sidebar-nav-item .nav-icon {
  width: 20px;
  text-align: center;
  color: inherit;
  transition: color var(--transition-fast);
}

.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-md) 14px var(--space-xs);
}

/* ─── Admin Layout ──────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--off-white);
}

.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.admin-topbar {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-content {
  padding: var(--space-xl);
}

/* ─── Page Header ───────────────────────────────────────────── */
.page-header {
  margin-bottom: var(--space-xl);
}

.page-header h1 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─── Tabs ──────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--beige);
  padding: 4px;
  border-radius: var(--radius-lg);
  width: fit-content;
}

.tab {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab.active {
  background: var(--white);
  color: var(--gold-text-a11y);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.tab:hover:not(.active) {
  color: var(--gold-text-a11y);
}

/* ─── Toast / Notification ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 1000;
  animation: slideInRight 0.3s ease both;
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-gold {
  border-left: 4px solid var(--gold);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── Modal ─────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 22, 14, 0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-xl);
  width: 100%;
  max-width: 540px;
  position: relative;
  animation: scaleIn 0.25s ease both;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─── Quantity Stepper ──────────────────────────────────────── */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.qty-stepper button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.qty-stepper button:hover {
  background: var(--gold-pale);
  color: var(--gold-text-a11y);
}

.qty-stepper input {
  width: 44px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: none;
}

/* ─── Range Pills (weight) ──────────────────────────────────── */
.weight-pill {
  padding: 6px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.weight-pill:hover {
  border-color: var(--gold);
  color: var(--gold-text-a11y);
}

.weight-pill.selected {
  background: var(--gold-bg-a11y);
  color: var(--white);
  border-color: var(--gold-bg-a11y);
  box-shadow: var(--shadow-gold);
}

/* ─── Progress Bar ──────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--beige);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ─── Avatar ────────────────────────────────────────────────── */
.avatar {
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-text-a11y);
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.avatar-md {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.1rem;
}

/* ─── Chart placeholder ─────────────────────────────────────── */
.chart-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.chart-area {
  width: 100%;
  height: 220px;
  position: relative;
}

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--sand);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 3px;
}

/* ─── Utility ───────────────────────────────────────────────── */
.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.flex-1 {
  flex: 1;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-xs {
  gap: var(--space-xs);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.p-lg {
  padding: var(--space-lg);
}

.p-xl {
  padding: var(--space-xl);
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-gold {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(215, 164, 73, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(215, 164, 73, 0);
  }
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease both;
}

.animate-fadeInUp {
  animation: fadeInUp 0.7s ease both;
}

/* ─── Section Spacing ───────────────────────────────────────── */
.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-bg-sand {
  background: var(--sand);
}

.section-bg-beige {
  background: var(--beige);
}

.section-bg-offwhite {
  background: var(--off-white);
}

/* ─── Section Title ─────────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-sm {
    padding: var(--space-xl) 0;
  }

  .admin-main {
    margin-left: 0;
  }
}