:root {
  --primary: #0e9f6e;
  --primary-dark: #047857;
  --primary-soft: #dff8ed;
  --accent: #f59e0b;
  --ink: #10231c;
  --muted: #66736d;
  --muted-2: #93a19a;
  --line: #e3ebe7;
  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-soft: #eef5f1;
  --danger: #dc2626;
  --warning: #d97706;
  --info: #2563eb;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 18px 50px rgba(16, 35, 28, 0.12);
  --shadow-soft: 0 10px 28px rgba(16, 35, 28, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(14, 159, 110, 0.32); outline-offset: 3px; }

.app-root { min-height: 100dvh; }
.logo-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; }
.btn {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
  background: var(--surface-soft);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 14px 26px rgba(14, 159, 110, .24); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn.danger, .danger { color: var(--danger); }
.icon-btn { border: 0; background: var(--surface-soft); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }

.landing-shell {
  min-height: 100dvh;
  padding: 32px;
  background:
    radial-gradient(circle at 15% 20%, rgba(14, 159, 110, .18), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(245, 158, 11, .14), transparent 25%),
    linear-gradient(135deg, #f8fbf8, #edf6f2);
}
.landing-hero {
  min-height: calc(100dvh - 64px);
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 56px;
}
.landing-copy h1 { font-size: clamp(40px, 6vw, 76px); line-height: .96; letter-spacing: -.055em; margin: 22px 0; max-width: 760px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 560px; }
.eyebrow { color: var(--primary-dark); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; margin-top: 48px; }
.demo-note { display: inline-flex; margin-top: 22px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.68); color: var(--muted); font-weight: 700; box-shadow: var(--shadow-soft); }
.role-grid { display: grid; gap: 18px; }
.role-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.72);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform .24s ease, box-shadow .24s ease;
}
.role-card:nth-child(2) { transform: translateX(34px); }
.role-card:hover { transform: translateY(-4px); box-shadow: 0 26px 70px rgba(16,35,28,.16); }
.role-card:nth-child(2):hover { transform: translate(34px, -4px); }
.role-icon { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; color: white; background: var(--primary); }
.role-title { font-size: 22px; font-weight: 800; }
.role-copy { color: var(--muted); line-height: 1.55; }
.role-action { color: var(--primary-dark); font-weight: 800; }

.soft-bg { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 20% 20%, rgba(14,159,110,.20), transparent 28%), linear-gradient(135deg, #f6fbf8, #eaf4ef); }
.phone-layout { position: relative; min-height: 100dvh; display: grid; grid-template-columns: minmax(280px, 420px) 430px; align-items: center; justify-content: center; gap: 72px; padding: 48px 24px; }
.demo-caption { max-width: 420px; }
.demo-caption .brand { margin-bottom: 42px; }
.caption-kicker { color: var(--primary-dark); font-size: 13px; font-weight: 800; }
.demo-caption h1 { font-size: 38px; line-height: 1.08; letter-spacing: -.04em; margin: 12px 0; }
.demo-caption p { color: var(--muted); line-height: 1.7; }
.phone-frame { width: 390px; height: 820px; max-height: calc(100dvh - 42px); border-radius: 44px; padding: 14px; background: #14231e; box-shadow: 0 36px 100px rgba(16,35,28,.35); position: relative; }
.phone-speaker { position: absolute; top: 12px; left: 50%; width: 92px; height: 24px; border-radius: 999px; background: #14231e; transform: translateX(-50%); z-index: 3; }
.mobile-app { height: 100%; overflow: hidden; border-radius: 34px; background: var(--bg); position: relative; }
.role-switcher { position: fixed; top: 22px; right: 22px; z-index: 20; display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255,255,255,.84); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
.role-switcher a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-weight: 800; font-size: 13px; }
.role-switcher a.active { background: var(--primary); color: white; }

.mobile-screen { height: 100%; background: var(--bg); position: relative; overflow: hidden; }
.scroll-area { height: 100%; overflow-y: auto; padding: 18px 16px 22px; scrollbar-width: none; }
.scroll-area::-webkit-scrollbar { width: 0; height: 0; }
.with-tabs { padding-bottom: 98px; }
.mobile-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-top: 6px; }
.mobile-header > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mobile-header strong { display: block; font-size: 16px; }
.mobile-header span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.hero-card { padding: 24px; border-radius: 28px; color: white; background: linear-gradient(135deg, #0e9f6e, #047857); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero-card:after { content: ""; position: absolute; width: 160px; height: 160px; right: -45px; top: -45px; border-radius: 50%; background: rgba(255,255,255,.16); }
.hero-card p { margin: 0 0 10px; font-weight: 700; opacity: .86; }
.hero-card h2 { position: relative; margin: 0 0 22px; max-width: 290px; font-size: 28px; line-height: 1.08; letter-spacing: -.04em; }
.hero-card .btn { background: white; color: var(--primary-dark); }
.section-block, .status-card, .active-order-card, .profile-card, .fare-card, .metric-card, .search-panel, .promo-card { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-soft); }
.section-block { margin-top: 16px; }
.section-title, .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title h3, .card-head h2 { margin: 0; font-size: 16px; }
.section-title button, .card-head button:not(.btn) { border: 0; background: transparent; color: var(--primary-dark); font-weight: 800; }
.address-list, .list-stack { display: grid; gap: 10px; }
.address-item, .order-card { width: 100%; min-height: 64px; border: 0; border-radius: 16px; background: var(--surface-soft); padding: 12px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ink); }
.address-item span, .address-row span, .order-card span { min-width: 0; }
.address-item b, .address-row b, .order-card b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.address-item small, .address-row small, .order-card small { display: block; color: var(--muted); margin-top: 3px; }
.promo-card { margin-top: 16px; background: #fff8e6; box-shadow: none; border: 1px solid #fde8b4; }
.promo-card span { color: var(--warning); font-weight: 800; font-size: 12px; }
.promo-card strong { display: block; margin-top: 4px; }

.auth-screen { display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, rgba(14,159,110,.18), transparent 35%), var(--bg); }
.auth-card { width: min(100%, 330px); background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: 26px; }
.auth-card h1 { font-size: 28px; line-height: 1.08; letter-spacing: -.04em; margin: 18px 0 10px; }
.auth-card p { color: var(--muted); line-height: 1.6; }
.stack-form, .admin-form, .modal-card { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-weight: 800; font-size: 13px; color: var(--ink); }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 14px; padding: 0 13px; color: var(--ink); background: var(--surface); }
textarea { padding-top: 12px; resize: vertical; }
input::placeholder { color: #77847d; }
.helper, .field-error { font-size: 12px; color: var(--muted); font-weight: 600; }
.field-error:not(:empty) { color: var(--danger); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map { width: 100%; min-height: 220px; border-radius: 22px; overflow: hidden; background: #dfe9e4; box-shadow: var(--shadow-soft); z-index: 1; }
.map-tall { height: 250px; margin-bottom: 16px; }
.map-full { height: 360px; margin-bottom: 16px; }
.leaflet-container { font-family: inherit; }
.map-pin { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); color: white; font-weight: 900; border: 3px solid white; box-shadow: 0 8px 20px rgba(16,35,28,.22); }
.map-pin span { transform: rotate(45deg); line-height: 1; }
.pin-pickup { background: var(--primary); }
.pin-destination { background: var(--accent); }
.pin-driver { background: #155e75; }
.pin-muted { background: var(--muted-2); }
.radar-circle { animation: radar 1.8s ease-out infinite; }
.fare-card { display: grid; gap: 8px; }
.fare-card div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.fare-card span, .metric-card span { color: var(--muted); font-size: 12px; font-weight: 800; }
.fare-card strong { font-size: 24px; }
.fare-card small { color: var(--muted); line-height: 1.5; }
.payment-list { display: grid; gap: 9px; }
.payment-item { min-height: 54px; border-radius: 16px; border: 1px solid var(--line); padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); }
.payment-item span { display: flex; align-items: center; gap: 8px; }
.payment-item input { width: auto; min-height: auto; }
.payment-item.disabled { opacity: .58; }
.inline-note { border-radius: 14px; padding: 12px; background: #ecfdf5; color: var(--primary-dark); font-weight: 700; line-height: 1.5; }
.inline-note button { border: 0; background: transparent; color: var(--primary-dark); font-weight: 900; text-decoration: underline; }
.sticky-cta { width: 100%; }

.bottom-tabs { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 68px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 14px 36px rgba(16,35,28,.14); backdrop-filter: blur(18px); z-index: 10; }
.bottom-tabs button { border: 0; background: transparent; border-radius: 17px; color: var(--muted); display: grid; place-items: center; gap: 2px; font-size: 11px; font-weight: 800; }
.bottom-tabs button .icon { width: 19px; height: 19px; }
.bottom-tabs button.active { background: var(--primary-soft); color: var(--primary-dark); }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; border-radius: 999px; padding: 0 10px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.chip-success { background: #dcfce7; color: #166534; }
.chip-warn { background: #fef3c7; color: #92400e; }
.chip-info { background: #dbeafe; color: #1d4ed8; }
.chip-muted { background: #edf2ef; color: #66736d; }
.order-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.order-card strong { grid-column: 2; color: var(--primary-dark); }
.empty-state { min-height: 118px; border-radius: 18px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); background: var(--surface-soft); text-align: center; padding: 18px; }
.empty-state .icon { width: 30px; height: 30px; color: var(--primary); }
.driver-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface-soft); }
.avatar { width: 44px; height: 44px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; display: grid; place-items: center; font-weight: 900; }
.avatar.large { width: 72px; height: 72px; border-radius: 24px; font-size: 24px; margin: 0 auto 12px; }
.avatar.small { width: 34px; height: 34px; border-radius: 12px; font-size: 12px; }
.driver-card small { display: block; color: var(--muted); margin-top: 3px; }
.search-panel { text-align: center; }
.radar-dot { width: 78px; height: 78px; margin: -54px auto 14px; border-radius: 50%; background: var(--primary); border: 8px solid white; box-shadow: 0 0 0 18px rgba(14,159,110,.12); animation: pulse 1.6s ease-out infinite; }
.skeleton-line { height: 14px; border-radius: 999px; background: linear-gradient(90deg, #edf2ef, #f8fbf9, #edf2ef); margin: 12px auto 0; width: 82%; animation: shimmer 1.4s infinite; }
.skeleton-line.short { width: 48%; }
.route-summary { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 800; }
.route-summary b { height: 2px; background: var(--line); position: relative; }
.timeline { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; min-height: 54px; position: relative; color: var(--muted); }
.timeline li:after { content: ""; position: absolute; left: 16px; top: 32px; bottom: -4px; width: 2px; background: var(--line); }
.timeline li:last-child:after { display: none; }
.timeline span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-soft); font-weight: 900; z-index: 1; }
.timeline li.done span { background: var(--primary); color: white; }
.timeline li.current p { color: var(--ink); font-weight: 900; }
.profile-card { text-align: center; margin-bottom: 16px; }
.address-row { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.address-row:last-child { border-bottom: 0; }
.muted { color: var(--muted); }

.online-toggle { width: 100%; border: 0; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-soft); padding: 16px; min-height: 90px; display: grid; grid-template-columns: 54px 1fr; gap: 12px; text-align: left; align-items: center; margin-bottom: 14px; }
.online-toggle span { grid-row: span 2; width: 54px; height: 34px; border-radius: 999px; background: #cbd5cf; position: relative; }
.online-toggle span:after { content: ""; position: absolute; width: 26px; height: 26px; top: 4px; left: 4px; border-radius: 50%; background: white; transition: transform .2s ease; }
.online-toggle.on span { background: var(--primary); }
.online-toggle.on span:after { transform: translateX(20px); }
.online-toggle small { color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.metric-card strong { display: block; margin-top: 6px; font-size: 22px; }
.contact-row, .sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.bottom-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--surface); border-radius: 28px 28px 0 0; padding: 12px 16px 92px; box-shadow: 0 -20px 50px rgba(16,35,28,.18); animation: sheetIn .25s ease both; }
.sheet-handle { width: 46px; height: 5px; border-radius: 999px; background: var(--line); margin: 0 auto 14px; }
.incoming-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.incoming-head span { color: var(--primary-dark); font-weight: 900; font-size: 12px; }
.incoming-head h3 { margin: 4px 0 0; }
.count-ring { width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--primary) var(--value), var(--line) 0); display: grid; place-items: center; }
.count-ring b { width: 44px; height: 44px; border-radius: 50%; background: white; display: grid; place-items: center; }
.route-mini p { margin: 12px 0; padding-left: 12px; border-left: 3px solid var(--primary); }
.route-mini span { display: block; color: var(--muted); margin-top: 2px; }
.earning-row, .order-row { background: var(--surface); border-radius: 16px; padding: 12px; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; box-shadow: var(--shadow-soft); }
.order-row small { display: block; color: var(--muted); margin-top: 3px; }

.admin-root { background: #eef3f0; }
.admin-app { min-height: 100dvh; }
.admin-shell { min-height: 100dvh; display: grid; grid-template-columns: 280px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100dvh; padding: 22px; display: flex; flex-direction: column; gap: 22px; background: rgba(255,255,255,.74); backdrop-filter: blur(18px); }
.admin-brand { display: flex; align-items: center; gap: 12px; }
.admin-brand b { display: block; }
.admin-brand span { color: var(--muted); font-size: 12px; }
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar nav button { border: 0; min-height: 46px; border-radius: 999px; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 10px; padding: 0 14px; font-weight: 800; text-align: left; }
.admin-sidebar nav button.active { background: var(--primary); color: white; box-shadow: 0 12px 26px rgba(14,159,110,.22); }
.reset-btn { margin-top: auto; }
.admin-main { padding: 34px; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin-topbar p { margin: 0 0 6px; color: var(--primary-dark); font-weight: 900; }
.admin-topbar h1 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.admin-topbar span { color: var(--muted); font-weight: 700; }
.admin-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.kpi-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-card, .admin-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-soft); padding: 18px; border: 1px solid rgba(255,255,255,.72); }
.kpi-card { min-height: 150px; position: relative; overflow: hidden; }
.kpi-card > div { width: 42px; height: 42px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; margin-bottom: 12px; }
.kpi-card span { color: var(--muted); font-weight: 800; font-size: 12px; }
.kpi-card strong { display: block; font-size: 28px; margin-top: 5px; }
.sparkline { position: absolute; right: 14px; bottom: 14px; width: 108px; opacity: .85; }
.chart-card { min-height: 330px; }
.map-card { min-height: 330px; }
.latest-card { grid-column: 1 / -1; }
.admin-map { height: 250px; }
.bar-chart { width: 100%; height: 260px; }
.bar-chart text { fill: var(--muted); font-size: 12px; font-weight: 800; }
.full-card { min-height: 520px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.search-box { display: flex; align-items: center; gap: 8px; min-width: min(360px, 100%); background: var(--surface-soft); border-radius: 999px; padding: 0 14px; font-weight: 400; }
.search-box input { border: 0; background: transparent; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filter-chips button { min-height: 36px; border: 0; border-radius: 999px; padding: 0 12px; background: var(--surface-soft); color: var(--muted); font-weight: 800; }
.filter-chips button.active { background: var(--primary); color: white; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0 8px; min-width: 720px; }
th { color: var(--muted); font-size: 12px; text-align: left; padding: 0 12px; }
td { background: var(--surface-soft); padding: 14px 12px; vertical-align: middle; }
td:first-child { border-radius: 14px 0 0 14px; }
td:last-child { border-radius: 0 14px 14px 0; }
tr[data-open-order] { cursor: pointer; }
td small { display: block; color: var(--muted); margin-top: 3px; }
.table-person { display: flex; align-items: center; gap: 10px; }
.tariff-card { max-width: 760px; }
.admin-form { max-width: 460px; margin: 20px 0; }
.report-summary { max-width: 820px; margin: 0 0 18px; }
.drawer { position: fixed; top: 0; right: 0; width: min(420px, 100vw); height: 100dvh; background: var(--surface); box-shadow: -24px 0 70px rgba(16,35,28,.18); z-index: 30; padding: 28px; animation: drawerIn .22s ease both; }
.drawer-close { float: right; border: 0; background: var(--surface-soft); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.drawer h2 { margin-top: 54px; }
.drawer dl { display: grid; gap: 12px; }
.drawer dt { color: var(--muted); font-weight: 800; font-size: 12px; }
.drawer dd { margin: -8px 0 8px; font-weight: 700; }
.modal-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(16,35,28,.32); display: grid; place-items: center; padding: 18px; }
.modal-card { width: min(460px, 100%); background: var(--surface); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.check-row { display: flex; align-items: center; gap: 10px; }
.check-row input { width: auto; min-height: auto; }

.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 10px; pointer-events: none; }
.toast { max-width: min(360px, calc(100vw - 36px)); transform: translateY(12px); opacity: 0; border-radius: 16px; padding: 13px 16px; color: white; background: var(--ink); box-shadow: var(--shadow); transition: opacity .22s ease, transform .22s ease; font-weight: 800; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--primary-dark); }
.toast-info { background: #1d4ed8; }
.toast-error { background: var(--danger); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,159,110,.25); } 100% { box-shadow: 0 0 0 28px rgba(14,159,110,0); } }
@keyframes radar { 0% { opacity: .8; } 100% { opacity: .12; } }
@keyframes shimmer { 0% { background-position: -120px 0; } 100% { background-position: 120px 0; } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

@media (max-width: 1023px) {
  .landing-shell { padding: 18px; }
  .landing-hero { grid-template-columns: 1fr; gap: 24px; align-content: center; }
  .landing-copy h1 { font-size: clamp(36px, 12vw, 58px); }
  .role-card:nth-child(2), .role-card:nth-child(2):hover { transform: none; }
  .phone-layout { display: block; min-height: 100dvh; padding: 0; }
  .demo-caption, .phone-speaker { display: none; }
  .phone-frame { width: 100%; height: 100dvh; max-height: none; padding: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .mobile-app { border-radius: 0; }
  .role-switcher { left: 50%; right: auto; top: auto; bottom: 12px; transform: translateX(-50%); max-width: calc(100vw - 24px); overflow-x: auto; }
  .demo-shell .role-switcher { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-shell > *, .admin-sidebar, .admin-sidebar nav, .admin-main, .admin-grid > * { min-width: 0; max-width: 100%; }
  .admin-sidebar { position: static; height: auto; padding: 14px; gap: 12px; }
  .admin-sidebar nav { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .admin-sidebar nav button { flex: 0 0 auto; }
  .reset-btn { margin-top: 0; }
  .admin-main { padding: 18px; }
  .admin-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { align-items: stretch; flex-direction: column; }
  .filter-chips { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .landing-shell { padding: 14px; }
  .landing-copy h1 { letter-spacing: -.045em; }
  .role-card { min-height: auto; padding: 20px; }
  .scroll-area { padding-left: 14px; padding-right: 14px; }
  .form-grid-2, .summary-grid, .contact-row, .sheet-actions { grid-template-columns: 1fr; }
  .map-tall { height: 230px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .admin-topbar h1 { font-size: 28px; }
  .role-switcher a span { display: none; }
  .toast-root { left: 12px; right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
