@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --gold-50: #FFF8E1;
  --gold-100: #FFECB3;
  --gold-200: #FFE082;
  --gold-300: #FFD54F;
  --gold-400: #FFCA28;
  --gold-500: #FABC02;
  --gold-600: #E0A800;
  --gold-700: #C68F00;

  --navy-50: #EEF0F4;
  --navy-100: #D5DAE3;
  --navy-200: #B5BDCC;
  --navy-300: #8E99B0;
  --navy-400: #5E6B85;
  --navy-500: #26314F;
  --navy-600: #1F2942;
  --navy-700: #182032;
  --navy-800: #11172A;
  --navy-900: #0A0F1C;

  --success: #16A34A;
  --success-bg: #DCFCE7;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --error: #DC2626;
  --error-bg: #FEE2E2;
  --info: #2563EB;
  --info-bg: #DBEAFE;

  --bg: var(--navy-50);
  --surface: #FFFFFF;
  --text: var(--navy-500);
  --text-muted: var(--navy-400);
  --border: var(--navy-100);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-1: 0 1px 2px rgba(38, 49, 79, 0.06);
  --shadow-2: 0 4px 8px rgba(38, 49, 79, 0.08);
  --shadow-3: 0 12px 24px rgba(38, 49, 79, 0.10);
  --shadow-hero: 0 30px 70px -25px rgba(10, 15, 28, 0.55);

  --font: 'Tajawal', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* ensure the hidden attribute beats component display rules (e.g. .btn) */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
}
.en { font-family: var(--font-en); direction: ltr; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ─────────────────────────────────────── Brand mark ─── */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; color: var(--navy-700);
}
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gold-500); color: var(--navy-700);
  object-fit: cover; display: inline-block;
  box-shadow: var(--shadow-1);
}
.brand.on-dark { color: #fff; }
.brand .sub { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* ─────────────────────────────────────── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px;
  border-radius: var(--radius-md);
  font-weight: 700; font-size: 16px;
  border: none; cursor: pointer;
  white-space: nowrap;
  transition: background .16s var(--ease-out), transform .12s var(--ease-out), box-shadow .16s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold-500); color: var(--navy-500); box-shadow: 0 8px 20px -8px rgba(250,188,2,.7); }
.btn-primary:hover { background: var(--gold-400); }
.btn-primary:active { background: var(--gold-600); }
.btn-secondary { background: var(--navy-500); color: #fff; }
.btn-secondary:hover { background: var(--navy-600); }
.btn-ghost { background: transparent; color: var(--navy-500); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--navy-50); }
.btn-block { width: 100%; }
.btn-lg { height: 56px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; }

/* ─────────────────────────────────────── Landing ─── */
.landing {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(120% 90% at 80% 0%, var(--navy-700) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #fff;
  display: flex; flex-direction: column;
}
.landing::before {
  /* soft gold glow */
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(40% 35% at 12% 18%, rgba(250,188,2,.16), transparent 70%),
    radial-gradient(45% 40% at 90% 85%, rgba(250,188,2,.10), transparent 70%);
  pointer-events: none;
}
.landing-top {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
}
.landing-top .skip {
  color: var(--navy-200); font-weight: 600; font-size: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 8px 16px; border-radius: var(--radius-full);
  transition: background .16s var(--ease-out);
}
.landing-top .skip:hover { background: rgba(255,255,255,.12); }

.slides {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 12px clamp(20px, 5vw, 56px) 0;
}
.slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px);
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility .45s;
}
.slide.active { opacity: 1; visibility: visible; }
/* staggered "stack" entrance for the active slide's contents */
.slide.active .slide-eyebrow { animation: stackIn .55s var(--ease-out) .05s both; }
.slide.active .slide-copy h1 { animation: stackIn .55s var(--ease-out) .13s both; }
.slide.active .slide-copy p  { animation: stackIn .55s var(--ease-out) .21s both; }
.slide.active .slide-cta     { animation: stackIn .55s var(--ease-out) .29s both; }
.slide.active .slide-art     { animation: stackInArt .6s var(--ease-out) .12s both; }
.slide-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-300); font-weight: 700; font-size: 14px;
  background: rgba(250,188,2,.10); border: 1px solid rgba(250,188,2,.25);
  padding: 7px 16px; border-radius: var(--radius-full);
  margin-bottom: 22px;
}
.slide h1 {
  font-size: clamp(32px, 5vw, 52px); line-height: 1.15; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
.slide h1 .accent { color: var(--gold-400); }
.slide p {
  font-size: clamp(16px, 2vw, 19px); color: var(--navy-200); max-width: 30em;
  margin-bottom: 32px;
}
.slide-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.slide-art {
  position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 400px;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  background: linear-gradient(160deg, var(--navy-600), var(--navy-800));
  border: 1px solid rgba(255,255,255,.08);
}
.slide-art img { width: 100%; height: 100%; object-fit: cover; }
/* Placeholder shown until real images are dropped in */
.slide-art .placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--navy-300);
  background:
    radial-gradient(60% 60% at 50% 35%, rgba(250,188,2,.14), transparent 70%),
    linear-gradient(160deg, var(--navy-600), var(--navy-800));
}
.slide-art .placeholder svg { width: 56px; height: 56px; color: var(--gold-400); opacity: .85; }
.slide-art .placeholder span { font-size: 13px; font-weight: 600; }

/* dots */
.slide-dots {
  position: relative; z-index: 3;
  display: flex; gap: 10px; justify-content: center; align-items: center;
  padding: 28px 0 40px;
}
.slide-dots button {
  width: 9px; height: 9px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.25); border: none; cursor: pointer; padding: 0;
  transition: all .25s var(--ease-out);
}
.slide-dots button.active { width: 30px; background: var(--gold-500); }

/* ─────────────────────────────────────── Form view ─── */
.form-view {
  display: none;
  background: var(--bg);
}
/* app-style layout: fixed header + footer, scrollable middle. The middle owns the
   scroll so step changes can reset it deterministically (window scroll fought
   mobile scroll-anchoring and left new steps scrolled mid-page). */
.form-view.active {
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
}
.form-header {
  background: #fff; border-bottom: 1px solid var(--border);
  flex-shrink: 0; z-index: 20;
}
.form-scroll {
  flex: 1; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.form-header .inner {
  max-width: 720px; margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 24px);
  display: flex; align-items: center; justify-content: space-between;
}
.steps {
  display: flex; align-items: center; gap: 6px;
  max-width: 720px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px) 14px;
}
.steps .step { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.steps .step .bar { height: 5px; border-radius: var(--radius-full); background: var(--navy-100); transition: background .3s var(--ease-out); }
.steps .step.active .bar, .steps .step.done .bar { background: var(--gold-500); }
.steps .step .name { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.steps .step.active .name { color: var(--navy-700); }

.form-wrap { max-width: 720px; margin: 0 auto; padding: clamp(24px, 5vw, 40px) clamp(16px, 4vw, 24px) 40px; }
.fstep { display: none; }
.fstep.active { display: block; }
/* cascade each field of the active step in */
.fstep.active > * { animation: stackIn .5s var(--ease-out) both; }
.fstep.active > *:nth-child(1) { animation-delay: .02s; }
.fstep.active > *:nth-child(2) { animation-delay: .09s; }
.fstep.active > *:nth-child(3) { animation-delay: .16s; }
.fstep.active > *:nth-child(4) { animation-delay: .23s; }
.fstep.active > *:nth-child(5) { animation-delay: .30s; }
.fstep.active > *:nth-child(6) { animation-delay: .37s; }

@keyframes stackIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stackInArt { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.fstep h2 { font-size: 26px; font-weight: 800; color: var(--navy-700); letter-spacing: -0.01em; }
.fstep .lead { color: var(--text-muted); margin-top: 6px; margin-bottom: 28px; font-size: 15px; }

/* ─────────────────────────────────────── Fields ─── */
.field-group { margin-bottom: 20px; }
.field-group > label {
  display: block; font-weight: 700; font-size: 14px; color: var(--navy-700); margin-bottom: 8px;
}
.field-group .hint { font-weight: 500; color: var(--text-muted); font-size: 13px; }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: #fff;
  font: inherit; font-size: 16px; color: var(--text);
  transition: border-color .16s, box-shadow .16s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--navy-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(38,49,79,.12);
}
.input.error, .select.error, .textarea.error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(220,38,38,.10); }
.field-error { color: var(--error); font-size: 13px; font-weight: 600; margin-top: 6px; display: none; }
.field-error.show { display: block; }

/* phone field with prefix — single joined control; prefix forced LTR so "+964" reads correctly in RTL */
.phone-field {
  display: flex; align-items: stretch;
  direction: ltr; /* prefix sits on the left, number on the right */
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; overflow: hidden;
  transition: border-color .16s, box-shadow .16s;
}
.phone-field:focus-within { border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(38,49,79,.12); }
.phone-field:has(.input.error) { border-color: var(--error); box-shadow: 0 0 0 3px rgba(220,38,38,.10); }
.phone-field .prefix {
  display: inline-flex; align-items: center; padding: 0 16px;
  background: var(--navy-50); color: var(--navy-700);
  font-weight: 700; font-family: var(--font-en);
  direction: ltr; border-right: 1px solid var(--border);
}
.phone-field .input {
  flex: 1; border: none; border-radius: 0; background: transparent;
  text-align: left; direction: ltr;
}
.phone-field .input:focus { box-shadow: none; }

/* service chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-full);
  background: #fff; border: 1.5px solid var(--border);
  font-weight: 600; font-size: 15px; color: var(--navy-700); cursor: pointer;
  transition: all .15s var(--ease-out);
}
.chip:hover { border-color: var(--navy-300); }
.chip svg { width: 18px; height: 18px; color: var(--text-muted); }
.chip.selected { background: var(--gold-50); border-color: var(--gold-500); color: var(--navy-700); }
.chip.selected svg { color: var(--gold-700); }

/* map */
.map-box {
  position: relative;
  height: 320px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-1);
}
#map { width: 100%; height: 100%; }
.map-search {
  position: absolute; top: 12px; inset-inline: 12px; z-index: 1000;
  display: flex; gap: 8px;
}
.map-search input {
  flex: 1; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0 14px; font: inherit; font-size: 15px; background: #fff; box-shadow: var(--shadow-2);
}
.map-search input:focus { outline: none; border-color: var(--navy-500); }
.map-hint { font-size: 13px; color: var(--text-muted); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.map-coords { font-family: var(--font-en); font-size: 12px; color: var(--navy-400); }
.leaflet-container { font-family: var(--font); }

/* nav buttons — flex footer pinned below the scroll area */
.form-nav {
  flex-shrink: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(38,49,79,.06);
  padding-bottom: env(safe-area-inset-bottom);
}
.form-nav .inner {
  max-width: 720px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 24px);
  display: flex; gap: 12px; align-items: center;
}
.form-nav .spacer { flex: 1; }

/* review list */
.review { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.review .row {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.review .row:last-child { border-bottom: none; }
.review .row .k { color: var(--text-muted); font-weight: 600; font-size: 14px; }
.review .row .v { font-weight: 700; color: var(--navy-700); text-align: end; }

/* success */
.success {
  min-height: 100vh; min-height: 100dvh; display: none; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px; background: var(--bg);
}
.success.active { display: flex; }
.success .check {
  width: 96px; height: 96px; border-radius: var(--radius-full);
  background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; animation: pop .5s var(--ease-out);
}
.success .check svg { width: 48px; height: 48px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.success h2 { font-size: 30px; font-weight: 800; color: var(--navy-700); margin-bottom: 12px; }
.success p { color: var(--text-muted); max-width: 30em; margin-bottom: 28px; }

/* ─────────────────────────────────────── Admin ─── */
.admin-login {
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(120% 90% at 80% 0%, var(--navy-700), var(--navy-900));
}
.admin-login .card {
  width: 100%; max-width: 400px; background: #fff;
  border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-3);
  animation: stackInArt .5s var(--ease-out) both;
}

/* dashboard entrance — keyed off .active (added once) so it won't replay on filter/search re-renders */
.admin-shell.active .kpis    { animation: stackIn .5s var(--ease-out) .04s both; }
.admin-shell.active .toolbar { animation: stackIn .5s var(--ease-out) .12s both; }
.admin-shell.active .panel   { animation: stackIn .5s var(--ease-out) .20s both; }
.admin-login h1 { font-size: 22px; font-weight: 800; color: var(--navy-700); margin: 20px 0 4px; }
.admin-login .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

.admin-shell { display: none; min-height: 100vh; flex-direction: column; }
.admin-shell.active { display: flex; }
.admin-topbar {
  height: 68px; background: var(--navy-700); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 28px); flex-shrink: 0;
}
.admin-topbar .logout {
  color: var(--navy-200); font-weight: 600; font-size: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 9px 18px; border-radius: var(--radius-full); cursor: pointer;
}
.admin-topbar .logout:hover { background: rgba(255,255,255,.16); }
.admin-main { flex: 1; padding: clamp(16px, 4vw, 32px); max-width: 1280px; margin: 0 auto; width: 100%; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.kpi .label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.kpi .value { font-size: 34px; font-weight: 800; color: var(--navy-700); margin-top: 6px; font-family: var(--font-en); }

.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .search { flex: 1; min-width: 200px; }
.toolbar .search .input { min-height: 46px; }
.seg { display: inline-flex; background: var(--navy-100); border-radius: var(--radius-full); padding: 4px; gap: 2px; }
.seg button {
  border: none; background: transparent; cursor: pointer;
  padding: 7px 16px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 14px; color: var(--navy-400);
}
.seg button.active { background: #fff; color: var(--navy-700); box-shadow: var(--shadow-1); }

.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: start; padding: 13px 18px; font-size: 12px; font-weight: 700;
  color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--navy-50);
  white-space: nowrap;
}
table.data td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--navy-700); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--navy-50); }
table.data .name { font-weight: 700; }
table.data .muted { color: var(--text-muted); font-weight: 500; font-size: 13px; }
table.data a.tel { color: var(--navy-700); font-weight: 700; font-family: var(--font-en); direction: ltr; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.pill.new { background: var(--gold-50); color: #92400E; }
.pill.contacted { background: var(--success-bg); color: var(--success); }
.pill.archived { background: var(--navy-100); color: var(--navy-400); }

.row-actions { display: flex; gap: 6px; }
.mini-btn {
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  padding: 6px 12px; border-radius: var(--radius-md); font-weight: 700; font-size: 13px; color: var(--navy-700);
  display: inline-flex; align-items: center; gap: 5px;
}
.mini-btn:hover { background: var(--navy-50); }
.mini-btn svg { width: 15px; height: 15px; }
.mini-btn.map-link { color: var(--info); border-color: var(--info-bg); }

.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty svg { width: 44px; height: 44px; color: var(--navy-200); margin-bottom: 14px; }

.toast {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 9999;
  background: var(--navy-700); color: #fff; padding: 14px 20px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-3);
  font-weight: 600; opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--error); }

/* Tablet: single column hero */
@media (max-width: 860px) {
  .slide {
    grid-template-columns: 1fr; text-align: center; gap: 26px;
    align-content: safe center; overflow-y: auto; padding-block: 12px;
  }
  .slide-art { order: -1; max-width: 300px; margin: 0 auto; aspect-ratio: 4/5; }
  .slide p { margin-inline: auto; }
  .slide-cta { justify-content: center; }
}

/* Phone: the primary surface — full-screen hero, bigger image, full-width CTAs */
@media (max-width: 560px) {
  .landing-top { padding: 14px 18px; }
  .brand { font-size: 17px; }
  .brand .mark { width: 32px; height: 32px; }
  .landing-top .skip { font-size: 12px; padding: 7px 13px; }

  .slides { padding: 4px 18px 0; }
  /* center vertically to use the available height; "safe" falls back to top if it can't fit */
  .slide { align-content: safe center; gap: 22px; }
  .slide-art { max-width: min(72vw, 320px); }
  .slide-eyebrow { margin-bottom: 4px; font-size: 12px; padding: 6px 13px; }
  .slide h1 { font-size: 27px; margin-bottom: 10px; }
  .slide p { font-size: 15px; margin-bottom: 4px; }
  .slide-cta { width: 100%; }
  .slide-cta .btn { width: 100%; }
  .slide-dots { padding: 14px 0 max(18px, env(safe-area-inset-bottom)); }

  .form-header .inner { padding: 14px 16px; }
  .steps .step .name { font-size: 11px; }
  .fstep h2 { font-size: 22px; }
  .fstep .lead { font-size: 14px; margin-bottom: 22px; }
  .map-box { height: 280px; }
  .map-search input { height: 42px; font-size: 14px; }
  .chip { padding: 10px 15px; font-size: 14px; }
  .success h2 { font-size: 25px; }

  .admin-topbar { height: 60px; }
  .admin-topbar .logout { padding: 8px 14px; font-size: 13px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
  .kpi { padding: 16px; }
  .kpi .value { font-size: 28px; }
  .toolbar .search { min-width: 100%; }
  .seg { width: 100%; justify-content: space-between; }
  .seg button { flex: 1; padding: 8px 6px; font-size: 13px; }
  table.data th, table.data td { padding: 11px 12px; font-size: 13px; }
  table.data { min-width: 720px; }
}

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