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

html, body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 15px;
}

html {
  min-height: 100%;
  background: #050816;
}

body.app-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  /* Default text is dark so white cards are readable */
  color: #0f172a;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 26%),
    radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.16), transparent 20%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.1), transparent 24%),
    linear-gradient(180deg, #050816 0%, #0b1220 48%, #0f172a 100%);
}

body.app-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
  opacity: 0.55;
  z-index: 0;
}

body.app-shell::after {
  content: '';
  position: fixed;
  inset: auto 0 0 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 8, 22, 0), rgba(5, 8, 22, 0.72));
  z-index: 0;
}

body.app-shell > div {
  position: relative;
  z-index: 1;
}

:root {
  --ui-bg: #f7f9fc;
  --ui-surface: #ffffff;
  --ui-border: #e8ecf0;
  --ui-text: #0f172a;
  --ui-muted: #64748b;
  --ui-brand: #f97316;
  --ui-brand-hover: #ea580c;
  --ui-radius-md: 14px;
  --ui-radius-lg: 16px;
  --ui-shadow-sm: 0 1px 4px rgba(15,23,42,0.05), 0 4px 12px rgba(15,23,42,0.04);
  --ui-shadow-md: 0 6px 18px rgba(15,23,42,0.09);
}

/* ─── Scrollbar ────────────────────────────────────────── */
*::-webkit-scrollbar { height: 6px; width: 6px; }
*::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ─── Main content area — light background for readability ── */
body.app-shell main {
  background: #f1f5f9;
  min-height: 100vh;
}

/* ─── Ensure white cards always have dark readable text ──── */
body.app-shell .bg-white,
body.app-shell .ui-panel,
body.app-shell .stat-tile,
body.app-shell .chart-shell,
body.app-shell section.rounded-2xl,
body.app-shell div.rounded-2xl,
body.app-shell table {
  color: #0f172a;
}

/* Table cells always dark */
body.app-shell td,
body.app-shell th {
  color: #0f172a;
}

/* Muted/secondary text in cards */
body.app-shell .text-slate-500 { color: #64748b !important; }
body.app-shell .text-slate-600 { color: #475569 !important; }
body.app-shell .text-slate-700 { color: #334155 !important; }
body.app-shell .text-slate-900 { color: #0f172a !important; }

/* Header bar stays dark with light text */
body.app-shell header .text-white { color: #ffffff !important; }
body.app-shell header .text-slate-400 { color: #94a3b8 !important; }
body.app-shell header .text-slate-100 { color: #f1f5f9 !important; }
body.app-shell header .text-cyan-300 { color: #67e8f9 !important; }

/* Sidebar stays dark with light text */
body.app-shell aside .text-white { color: #ffffff !important; }
body.app-shell aside .text-slate-300 { color: #cbd5e1 !important; }
body.app-shell aside .text-slate-400 { color: #94a3b8 !important; }
body.app-shell aside .text-slate-500 { color: #64748b !important; }

/* ─── Alert auto-dismiss transition ───────────────────── */
[data-alert] { transition: all 260ms ease; }

/* ─── Soft inputs / selects (used in dashboard forms) ─── */
.soft-input {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  transition: border-color 160ms, box-shadow 160ms;
}
.soft-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
select.soft-input { padding-right: 28px; cursor: pointer; }

.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms, transform 100ms;
}
.soft-button:hover { background: #1e293b; }
.soft-button:active { transform: scale(0.97); }

/* ─── UI Panel (card container) ───────────────────────── */
.ui-panel {
  background: #ffffff;
  color: var(--ui-text);
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(15,23,42,0.05), 0 4px 12px rgba(15,23,42,0.04);
  transition: box-shadow 200ms;
}
.ui-panel:hover { box-shadow: 0 2px 8px rgba(15,23,42,0.08), 0 8px 20px rgba(15,23,42,0.06); }

/* ─── Metric Cards (big KPI cards) ────────────────────── */
.metric-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 28px 24px 24px;
  margin-bottom: 4px;
  color: #ffffff;
  animation: cardEntrance 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.metric-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.metric-card > * { position: relative; }
.metric-card h3 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.metric-card--orange { background: linear-gradient(135deg, #ea580c 0%, #f97316 60%, #fb923c 100%); }
.metric-card--green  { background: linear-gradient(135deg, #059669 0%, #10b981 60%, #34d399 100%); }
.metric-card--blue   { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 60%, #60a5fa 100%); }
.metric-card--purple { background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 60%, #a78bfa 100%); }

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.metric-card:nth-child(1) { animation-delay: 0ms; }
.metric-card:nth-child(2) { animation-delay: 80ms; }
.metric-card:nth-child(3) { animation-delay: 160ms; }

/* ─── Stat Tiles (secondary stats row) ────────────────── */
.stat-tile {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  padding: 20px 16px;
  margin-bottom: 2px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  transition: box-shadow 180ms, transform 180ms;
  animation: cardEntrance 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.stat-tile:hover { box-shadow: 0 4px 14px rgba(15,23,42,0.1); transform: translateY(-2px); }
.stat-tile:nth-child(1) { animation-delay: 0ms; }
.stat-tile:nth-child(2) { animation-delay: 60ms; }
.stat-tile:nth-child(3) { animation-delay: 120ms; }
.stat-tile:nth-child(4) { animation-delay: 180ms; }
.stat-tile:nth-child(5) { animation-delay: 240ms; }

/* ─── Chart Shell ──────────────────────────────────────── */
.chart-shell {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(15,23,42,0.04);
  animation: cardEntrance 0.6s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.25s;
}
.chart-shell h3 { font-size: 14px; font-weight: 700; color: #0f172a; }

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

@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(34, 211, 238, 0); }
  50% { box-shadow: 0 0 28px rgba(34, 211, 238, 0.16); }
}

.reveal-up {
  animation: floatIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stagger-1 { animation-delay: 0.08s; }
.stagger-2 { animation-delay: 0.16s; }
.stagger-3 { animation-delay: 0.24s; }
.stagger-4 { animation-delay: 0.32s; }
.stagger-5 { animation-delay: 0.40s; }

.page-hero,
.page-card {
  position: relative;
}

.page-hero::after,
.page-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 25%, transparent 75%, rgba(255,255,255,0.04));
  opacity: 0.55;
}

.upload-dropzone {
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragging {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.25);
  animation: softPulse 2.4s ease-in-out infinite;
}

.preview-frame {
  border-radius: 1.5rem;
}

.placement-chip {
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.placement-chip:hover {
  transform: translateY(-1px);
}

.submit-glow {
  position: relative;
  overflow: hidden;
}

.submit-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.18), transparent 35%, transparent 65%, rgba(255,255,255,0.12));
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.submit-glow:hover::before {
  transform: translateX(120%);
}

/* ─── Auth Pages (login / register fallback when CDN is unavailable) ─── */
body.auth-page {
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 32%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 30%),
    linear-gradient(135deg, #e2e8f0 0%, #f8fafc 40%, #eef2ff 100%);
  color: var(--ui-text);
}

body.auth-page .auth-shell {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

body.auth-page .auth-card {
  width: min(1100px, 100%);
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 24px;
  background: var(--ui-surface);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: 1fr;
}

body.auth-page .auth-panel,
body.auth-page .auth-form {
  padding: 28px;
}

body.auth-page .auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(160deg, #0f172a 0%, #111827 55%, #1e293b 100%);
  color: #fff;
}

body.auth-page .auth-brand h1,
body.auth-page .auth-form h2 {
  letter-spacing: -0.03em;
}

body.auth-page .auth-brand ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: #dbeafe;
  font-size: 0.94rem;
}

body.auth-page .auth-brand li::before {
  content: '•';
  margin-right: 8px;
  color: #f97316;
}

body.auth-page .auth-form {
  background: rgba(255, 255, 255, 0.96);
}

body.auth-page .auth-field {
  display: block;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms, transform 120ms;
}

body.auth-page .auth-field:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

body.auth-page .auth-button,
body.auth-page .auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 120ms, box-shadow 160ms, background 160ms;
}

body.auth-page .auth-button {
  border: none;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.16);
}

body.auth-page .auth-button:hover,
body.auth-page .auth-link:hover {
  transform: translateY(-1px);
}

body.auth-page .auth-link {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 12px 20px rgba(16, 185, 129, 0.18);
}

@media (min-width: 768px) {
  body.auth-page .auth-card {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── System Settings ─────────────────────────────────── */
.settings-page {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 28%),
    radial-gradient(circle at left bottom, rgba(249, 115, 22, 0.08), transparent 24%),
    #f4f7fb;
}

.settings-shell {
  display: grid;
  gap: 18px;
}

.settings-hero {
  background: linear-gradient(135deg, #0f172a 0%, #111827 55%, #1e293b 100%);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.18);
}

.settings-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}

.settings-hero h2 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.settings-hero p {
  margin-top: 6px;
  max-width: 58rem;
  color: #cbd5e1;
}

.settings-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
}

.settings-grid {
  display: grid;
  gap: 16px;
}

.settings-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5eaf1;
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--ui-shadow-sm);
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.settings-card-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}

.settings-card-subtitle {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.92rem;
}

.settings-grid-2 {
  display: grid;
  gap: 12px;
}

.settings-grid-2.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-field,
.settings-select,
.settings-textarea {
  width: 100%;
  border: 1px solid #d7dde6;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  color: #0f172a;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms, transform 120ms;
}

.settings-textarea {
  min-height: 108px;
  resize: vertical;
}

.settings-field:focus,
.settings-select:focus,
.settings-textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.settings-file {
  width: 100%;
  border: 1px dashed #cfd8e3;
  border-radius: 14px;
  padding: 11px 14px;
  background: #f8fafc;
  color: #475569;
}

.settings-switches {
  display: grid;
  gap: 10px;
}

.settings-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d7dde6;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: #0f172a;
  font-size: 0.95rem;
}

.settings-switch input {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
}

.settings-note {
  margin-top: 10px;
  font-size: 0.84rem;
  color: #64748b;
}

.settings-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.settings-link:hover { text-decoration: underline; }

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.settings-primary,
.settings-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 120ms, box-shadow 160ms, background 160ms;
}

.settings-primary {
  border: none;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.14);
}

.settings-primary:hover,
.settings-secondary:hover {
  transform: translateY(-1px);
}

.settings-secondary {
  border: 1px solid #d7dde6;
  background: #fff;
  color: #0f172a;
}

.settings-alert {
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 0.94rem;
}

@media (max-width: 768px) {
  .settings-grid-2.cols-2 {
    grid-template-columns: 1fr;
  }
}

body.auth-page .auth-brand.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  body.auth-page .auth-brand.hidden {
    display: flex !important;
  }
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff1f2;
  color: #be123c;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms, transform 120ms, box-shadow 160ms;
}

.danger-button:hover {
  background: #ffe4e6;
  box-shadow: 0 8px 16px rgba(190, 18, 60, 0.12);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────
   LANDING PAGE STYLES
   ───────────────────────────────────────────────────────── */
.landing-page {
  background: var(--ui-bg);
  color: var(--ui-text);
  line-height: 1.6;
}

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

/* Nav */
.landing-hero {
  background: linear-gradient(135deg, #0f172a 0%, #111827 70%, #1e293b 100%);
  color: #fff;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(249,115,22,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 40% 60% at 5% 80%, rgba(59,130,246,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  transition: color 180ms, background 180ms;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.brand span { color: #f97316; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--ui-brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(249,115,22,0.28);
  transition: background 160ms, transform 120ms, box-shadow 160ms;
}
.nav-cta:hover { background: var(--ui-brand-hover); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(249,115,22,0.36); }

/* Hero */
.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 0;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(249,115,22,0.4);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fba96a;
  background: rgba(249,115,22,0.08);
  margin-bottom: 1.2rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #f97316;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.7); }
}

.hero-copy h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
}
.hero-copy h2 em {
  font-style: normal;
  color: #f97316;
}

.hero-subtitle {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 50ch;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--ui-brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(249,115,22,0.35);
}
.btn-primary:hover { background: var(--ui-brand-hover); box-shadow: 0 10px 24px rgba(249,115,22,0.45); }

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.btn-secondary:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.18); }

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.2);
  color: #cbd5e1;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: #fff; background: rgba(255,255,255,0.06); }

.btn-outline {
  border: 1px solid rgba(249,115,22,0.5);
  color: #fb923c;
}
.btn-outline:hover { background: rgba(249,115,22,0.1); border-color: #f97316; }

/* Hero image */
.hero-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  min-height: 280px;
  position: relative;
}
.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}
.hero-image { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Stats strip */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-top: -1.25rem;
  position: relative;
  z-index: 4;
}

.stat-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  padding: 1.1rem 1rem;
  box-shadow: var(--ui-shadow-sm);
  transition: transform 200ms, box-shadow 200ms;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--ui-shadow-md); }
.stat-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}
.stat-card h3 { margin: 0; font-size: 1.2rem; font-weight: 800; color: #0f172a; }
.stat-card p { margin: 0.25rem 0 0; font-size: 0.82rem; color: #64748b; }

/* Sections */
.section { padding: 4rem 0; }
.section-muted { background: #f1f5f9; border-block: 1px solid #e2e8f0; }

.section-head { margin-bottom: 1.5rem; }
.section-head h3 { margin: 0; font-size: 1.6rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.section-head h3 span { color: #f97316; }
.section-head p { margin: 0.4rem 0 0; color: #64748b; font-size: 0.95rem; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.product-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  overflow: hidden;
  box-shadow: var(--ui-shadow-sm);
  transition: transform 200ms, box-shadow 200ms;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--ui-shadow-md); }
.product-card img { width: 100%; height: 200px; object-fit: cover; display: block; }

.product-info { padding: 1rem; }
.product-info h4 { margin: 0; font-size: 0.95rem; font-weight: 700; color: #0f172a; }
.product-info .price { margin: 0.4rem 0 0; font-size: 1.05rem; font-weight: 800; color: #f97316; }
.product-info .category { margin: 0.2rem 0 0; font-size: 0.75rem; color: #94a3b8; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.feature-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--ui-shadow-sm);
  transition: box-shadow 180ms, transform 180ms;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--ui-shadow-md); }
.feature-card::before { content: '✓'; color: #f97316; font-weight: 800; font-size: 0.9rem; }

/* Custom order CTA */
.custom-order {
  background: linear-gradient(135deg, #0a0f1e 0%, #1e293b 100%);
  border-block: 1px solid rgba(255,255,255,0.06);
}
.custom-order-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.custom-order h3 { margin: 0; font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.custom-order p { margin: 0.4rem 0 0; color: #94a3b8; }

/* Steps */
.steps-grid, .support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.step-card, .support-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  padding: 1.2rem 1rem;
  box-shadow: var(--ui-shadow-sm);
}
.step-card span {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 10px;
  background: #fff7ed;
  color: #f97316;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid #fed7aa;
}
.step-card h4, .support-card h4 { margin: 0.7rem 0 0.3rem; font-size: 1rem; font-weight: 700; color: #0f172a; }
.step-card p, .support-card p { margin: 0; font-size: 0.88rem; color: #64748b; line-height: 1.6; }

/* Branch list */
.branch-list {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  padding: 1.1rem;
  color: #334155;
  font-size: 0.95rem;
  line-height: 2;
  box-shadow: var(--ui-shadow-sm);
}

/* Footer */
.landing-footer {
  border-top: 1px solid #e8ecf0;
  background: #fff;
  padding: 1.25rem 0;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .info-strip, .steps-grid, .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .landing-nav { flex-wrap: wrap; gap: 0.75rem; }
  .nav-links { order: 3; width: 100%; }
  .brand { font-size: 1rem; }
  .product-grid { grid-template-columns: 1fr; }
  .custom-order-inner { flex-direction: column; align-items: flex-start; }
}

/* Sidebar compact group tweaks: reduce vertical gap when group label is hidden */
.compact-group {
  margin-top: -8px;
}
.compact-group .space-y-1 {
  margin-top: 6px;
}
@media (max-width: 767px) {
  /* Slightly smaller adjustment for mobile nav */
  .compact-group { margin-top: -6px; }
  .compact-group .space-y-1 { margin-top: 4px; }
}
