/* =========================================================
   NUSANTARA WISATA — Design Tokens & Core Stylesheet
   Modern, Clean, Royal Blue Professional Theme
   ========================================================= */

:root {
  /* Colors - Royal Blue & Slate Professional Palette */
  --primary:         #2563EB;   /* Royal Blue */
  --primary-hover:   #1D4ED8;   /* Royal Blue Darker */
  --primary-light:   #EFF6FF;   /* Soft Blue Accent */
  --primary-dark:    #1E40AF;
  
  --slate-900:       #0F172A;   /* Deep Slate - Heading text */
  --slate-800:       #1E293B;
  --slate-700:       #334155;   /* Body text */
  --slate-500:       #64748B;   /* Muted text */
  --slate-400:       #94A3B8;
  --slate-200:       #E2E8F0;   /* Borders, dividers */
  --slate-100:       #F1F5F9;   /* Alternating backgrounds */
  --slate-50:        #F8FAFC;   /* Main page background */
  --white:           #FFFFFF;
  
  --success:         #059669;   /* Confirmed/Active */
  --warning:         #D97706;   /* Muted Alert/Stars */
  --danger:          #DC2626;   /* Cancelled/Alert */
  
  /* Typography - Helvetica / Sans-serif */
  --font-sans:       "Helvetica Neue", Helvetica, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:       SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Layout tokens */
  --radius-sm:       6px;
  --radius-md:       10px;
  --radius-lg:       16px;
  --radius-full:     9999px;
  
  --shadow-sm:       0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md:       0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg:       0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
  --shadow-xl:       0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.12);
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-700);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.85rem; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin: 0 0 1em;
  color: var(--slate-700);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.75em;
}

.eyebrow-line {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--primary);
}

/* ---------- Decorative Geometric Divider ---------- */
.motif-divider {
  height: 1px;
  width: 100%;
  background: var(--slate-200);
  position: relative;
}

.motif-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border: 2px solid var(--slate-50);
}

.motif-rule {
  border: none;
  height: 1px;
  background: var(--slate-200);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.5em;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-gold {
  background: var(--warning);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
  background: #B45309;
}

.btn-outline {
  background: transparent;
  border-color: var(--slate-200);
  color: var(--slate-700);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-700);
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--slate-100);
}

.btn-sm {
  padding: 0.45em 1em;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

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

.btn-danger:hover {
  background: #B91C1C;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.nav-links {
  display: flex;
  gap: 2em;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--slate-700);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  gap: 0.75em;
  align-items: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0;
  background: radial-gradient(1000px 500px at 85% 10%, rgba(37, 99, 235, 0.05), transparent 70%), var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  margin-bottom: 0.4em;
  letter-spacing: -0.03em;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--slate-500);
  max-width: 48ch;
  margin-bottom: 2em;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin-bottom: 2.5em;
}

.hero-stats {
  display: flex;
  gap: 2.5em;
  flex-wrap: wrap;
}

.hero-stats div b {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--slate-900);
  display: block;
}

.hero-stats div span {
  font-size: 0.72rem;
  color: var(--slate-500);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/14;
  box-shadow: var(--shadow-xl);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art .tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Sections ---------- */
section {
  padding: 80px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2em;
  margin-bottom: 3em;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  max-width: 24ch;
}

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

.card-dest {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card-dest:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-400);
}

.card-dest .thumb {
  aspect-ratio: 16/10;
  background: var(--slate-100);
  position: relative;
}

.card-dest .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-dest .thumb .cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4em 0.8em;
  border-radius: var(--radius-sm);
}

.card-dest .body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-dest h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3em;
  font-weight: 700;
}

.card-dest .loc {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.8em;
  display: flex;
  gap: 4px;
  align-items: center;
}

.card-dest p {
  font-size: 0.88rem;
  color: var(--slate-700);
  margin-bottom: 1.25em;
  flex: 1;
}

.card-dest .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--slate-500);
  border-top: 1px solid var(--slate-200);
  padding-top: 14px;
}

.card-dest .foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Weather chip */
.chip-weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  padding: 0.4em 1em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
}

/* ---------- Product cards ---------- */
.card-product {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.card-product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-400);
}

.card-product .thumb {
  aspect-ratio: 1/1;
  background: var(--slate-100);
}

.card-product .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-product .body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  flex: 1;
}

.card-product h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-800);
  margin: 0;
  line-height: 1.3;
}

.card-product .price {
  font-family: var(--font-sans);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.card-product .seller {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-bottom: 0.5em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Panels / Containers ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.panel h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75em;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 10px;
}

.panel p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 80px 0 30px;
  border-top: 1px solid var(--slate-800);
}

footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

footer a {
  font-size: 0.88rem;
  display: block;
  margin-bottom: 0.75em;
  color: var(--slate-400);
}

footer a:hover {
  color: var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 24px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
}

/* ---------- AI Assistant Widget ---------- */
.ai-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  border: none;
  transition: all var(--transition-fast);
}

.ai-fab:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.ai-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 80;
  width: 380px;
  max-width: 88vw;
  height: 500px;
  max-height: 70vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.ai-panel.open {
  display: flex;
}

.ai-head {
  background: var(--slate-900);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-head-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-head b {
  font-size: 0.95rem;
}

.ai-head span {
  font-size: 0.72rem;
  color: var(--slate-400);
}

.ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--slate-50);
}

.ai-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ai-msg.user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 2px;
}

.ai-msg.bot {
  align-self: flex-start;
  background: var(--white);
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
  border-bottom-left-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.ai-input {
  display: flex;
  border-top: 1px solid var(--slate-200);
  padding: 12px;
  gap: 8px;
  background: var(--white);
}

.ai-input input {
  flex: 1;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.88rem;
  outline: none;
}

.ai-input input:focus {
  border-color: var(--primary);
}

.ai-input button {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-input button:hover {
  background: var(--primary-hover);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.92rem;
  outline: none;
  transition: all var(--transition-fast);
}

.field input::placeholder {
  color: var(--slate-400);
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hint {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 0.4em;
}

.error-text {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.5em;
  display: none;
  font-weight: 600;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.35em 0.8em;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.badge-pending { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.badge-confirmed { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.badge-processing { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.badge-shipped { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.badge-completed { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.badge-cancelled { background: #FEF2F2; color: #B91C1C; border-color: #FCA5A5; }

/* ---------- Dashboard Shell ---------- */
.dash {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.dash-side {
  background: var(--slate-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 30px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--slate-800);
}

.dash-side .brand {
  color: var(--white);
  margin-bottom: 2.5em;
  padding: 0 8px;
}

.dash-side .brand-icon {
  background: var(--primary);
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 0.85em;
  padding: 0.8em 1em;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--slate-400);
  transition: all var(--transition-fast);
}

.dash-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.dash-nav a.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.dash-main {
  padding: 40px;
  background: var(--slate-50);
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 1.5em;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 24px;
}

.dash-topbar h2 {
  margin: 0;
}

.role-pill {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.4em 1em;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card .num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.1;
}

.stat-card .lbl {
  font-size: 0.72rem;
  color: var(--slate-500);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
}

thead {
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}

th, td {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--slate-200);
}

th {
  font-weight: 700;
  color: var(--slate-800);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--slate-50);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-head h3 {
  margin: 0;
  font-size: 1.2rem;
  border-bottom: none;
  padding-bottom: 0;
}

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  animation: modalAppear 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalAppear {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--slate-400);
}

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

.modal h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.25em;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 12px;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--slate-200);
}

.tab {
  padding: 0.8em 1.25em;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-500);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  color: var(--primary);
  border-color: var(--primary);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--slate-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.empty-state svg {
  color: var(--slate-400);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 200;
  background: var(--slate-900);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}

.toast.show {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from { transform: translateY(-12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Cart Floating Button ---------- */
.cart-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 80;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.9em 1.5em;
  box-shadow: var(--shadow-xl);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.cart-fab:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.cart-fab .count {
  background: var(--white);
  color: var(--primary);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Responsive ---------- */
.nav-burger {
  display: none;
}
.nav-mobile-menu {
  display: none;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  #detail-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  
  /* Mobile Hamburger */
  .nav-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--slate-800);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
  }
  .nav-burger:hover {
    background: var(--slate-50);
  }
  
  /* Mobile Menu Panel */
  .nav-mobile-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 0 solid var(--slate-200);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease, border-width 0.3s ease;
    z-index: 1000;
  }
  .nav-mobile-menu.active {
    max-height: 400px;
    padding: 12px 24px 24px;
    border-bottom-width: 1px;
  }
  .nav-mobile-menu a {
    padding: 12px 0;
    color: var(--slate-700);
    font-weight: 600;
    font-size: 0.96rem;
    border-bottom: 1px solid var(--slate-100);
    transition: color var(--transition-fast);
  }
  .nav-mobile-menu a:hover {
    color: var(--primary);
  }
  .nav-mobile-menu a.btn {
    border-bottom: none;
    margin-top: 12px;
    justify-content: center;
  }
  
  /* Dashboard Responsive Topbar */
  .dash { grid-template-columns: 1fr; }
  .dash-side {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 100;
    border-right: none;
    border-bottom: 1px solid var(--slate-800);
  }
  .dash-side .brand {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    padding: 0;
  }
  .dash-side > div:last-child {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0 !important;
    padding: 0 !important;
  }
  .dash-nav {
    grid-column: 1 / span 2;
    grid-row: 2;
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    margin-top: 4px;
    scrollbar-width: none;
  }
  .dash-nav::-webkit-scrollbar {
    display: none;
  }
  .dash-nav a {
    margin-bottom: 0;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .dash-main { padding: 24px 16px; }
  
  /* Table scrollability on small viewports */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
