/* ==========================================================
   KULINO POS — Design System
   Mobile-first. Premium, warm, restrained.
   ========================================================== */

:root {
  --dark: #111827;
  --accent: #F05A3C;
  --accent-dark: #D8492D;
  --cream: #FAF7F2;
  --white: #FFFDF9;
  --muted: #667085;
  --border: #E7E2DA;
  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #DC2626;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 12px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 8px 24px rgba(17, 24, 39, 0.12);

  --font-sans: 'Manrope', 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-h: 56px;
  --nav-h: 64px;
  --cartbar-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

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

button { font-family: inherit; cursor: pointer; }

input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* prevents iOS zoom-on-focus */
}

::-webkit-scrollbar { height: 6px; width: 6px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------- Layout shell ---------- */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.app-header__brand .dot { color: var(--accent); }

.app-header__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
}
.icon-btn:active { background: var(--cream); }

.app-main {
  flex: 1;
  padding-bottom: calc(var(--nav-h) + 12px);
  min-width: 0;
}

.app-main--pos { padding-bottom: 0; }

.container { padding: 16px; max-width: 1200px; margin: 0 auto; }

/* ---------- Mobile bottom nav ---------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  height: var(--nav-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav__item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.bottom-nav__item svg { width: 22px; height: 22px; }

.bottom-nav__item.is-active { color: var(--accent); }
.bottom-nav__item.is-primary {
  color: var(--white);
}
.bottom-nav__item.is-primary .bottom-nav__icon-wrap {
  background: var(--accent);
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-top: -18px;
  box-shadow: var(--shadow-md);
}

/* ---------- Desktop sidebar / layout ---------- */
.desktop-layout { display: flex; min-height: 100vh; }

.sidebar {
  display: none;
  width: 220px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar__brand {
  font-weight: 800;
  font-size: 18px;
  padding: 0 8px 20px;
  letter-spacing: -0.01em;
}
.sidebar__brand .dot { color: var(--accent); }

.sidebar__nav { display: flex; flex-direction: column; gap: 2px; }

.sidebar__link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.sidebar__link svg { width: 18px; height: 18px; }
.sidebar__link.is-active { background: var(--cream); color: var(--dark); }
.sidebar__link:hover { background: var(--cream); }

.content-area { flex: 1; min-width: 0; }

@media (min-width: 1024px) {
  .sidebar { display: flex; flex-direction: column; }
  .bottom-nav { display: none; }
  .app-header { display: none; }
  .app-main { padding-bottom: 0; }
  .container { padding: 24px 32px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  background: var(--dark);
  color: var(--white);
  transition: transform .05s ease, opacity .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline { background: var(--white); color: var(--dark); border-color: var(--border); }
.btn-ghost { background: transparent; color: var(--dark); border-color: transparent; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 16px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 700;
  margin-bottom: 6px; color: var(--dark);
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--dark);
}
textarea.input { min-height: 88px; padding: 12px 14px; resize: vertical; }
.input:focus, select.input:focus, textarea.input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 90, 60, 0.15);
}
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: 20px; height: 20px; }

.error-banner {
  background: #FDECEA; color: var(--danger);
  border: 1px solid #F5C6C0;
  border-radius: var(--radius-md);
  padding: 12px 14px; font-size: 14px; margin-bottom: 16px;
}
.success-banner {
  background: #EAF7EE; color: var(--success);
  border: 1px solid #C7E9CF;
  border-radius: var(--radius-md);
  padding: 12px 14px; font-size: 14px; margin-bottom: 16px;
}

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.badge-success { background: #EAF7EE; color: var(--success); }
.badge-warning { background: #FEF3E2; color: var(--warning); }
.badge-danger { background: #FDECEA; color: var(--danger); }
.badge-muted { background: var(--cream); color: var(--muted); }

/* ================================================================
   POS
   ================================================================ */
.pos-layout { display: flex; flex-direction: column; height: 100%; }

.pos-search {
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.pos-search__box {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--cream);
}
.pos-search__box input {
  border: none; background: transparent; flex: 1; height: 100%;
  font-size: 15px;
}
.pos-search__box input:focus { outline: none; }
.pos-search__box svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }

.pos-categories {
  display: flex; gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.pos-categories::-webkit-scrollbar { display: none; }
.pos-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px; font-weight: 700;
  color: var(--muted);
  min-height: 36px;
}
.pos-chip.is-active { background: var(--dark); color: var(--white); border-color: var(--dark); }

.pos-products {
  flex: 1;
  padding: 12px 12px calc(var(--cartbar-h) + var(--nav-h) + 24px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-content: start;
}

@media (min-width: 480px) {
  .pos-products { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.product-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--border);
}
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__image svg { width: 32px; height: 32px; }

.product-card__name {
  font-size: 13.5px; font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.product-card__price { font-size: 13.5px; font-weight: 800; color: var(--accent); }

.product-card__action { margin-top: 2px; }

.qty-add-btn {
  width: 100%; min-height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--white);
  color: var(--accent);
  font-weight: 700; font-size: 12.5px;
}
.qty-add-btn:active { background: var(--accent); color: var(--white); }

.qty-stepper {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--accent);
  border-radius: var(--radius-sm);
  height: 36px;
  padding: 0 2px;
}
.qty-stepper button {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: none; background: transparent;
  color: var(--white); font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qty-stepper button:active { background: rgba(255,255,255,0.2); }
.qty-stepper .qty-value { color: var(--white); font-weight: 800; font-size: 14px; min-width: 20px; text-align: center; }

.pos-empty { padding: 48px 24px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.pos-empty svg { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--border); }

/* Sticky cart bar */
.cart-bar {
  position: fixed;
  left: 0; right: 0;
  bottom: var(--nav-h);
  z-index: 35;
  background: var(--dark);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  min-height: var(--cartbar-h);
}
.cart-bar.is-visible { display: flex; }
.cart-bar__info { display: flex; flex-direction: column; gap: 2px; }
.cart-bar__count { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 600; }
.cart-bar__total { font-size: 16px; font-weight: 800; }
.cart-bar__btn {
  background: var(--accent); color: var(--white);
  border-radius: var(--radius-md);
  padding: 0 20px; min-height: 44px;
  font-weight: 700; font-size: 14px;
  border: none;
}

@media (min-width: 1024px) {
  .cart-bar { display: none !important; }
}

/* Desktop split POS */
.pos-root { display: flex; flex-direction: column; min-height: 0; }
.pos-cart-panel { display: none; }

@media (min-width: 1024px) {
  .pos-root {
    display: grid;
    grid-template-columns: 1fr 380px;
    height: 100vh;
  }
  .pos-catalog { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--border); height: 100vh; overflow-y: auto; }
  .pos-cart-panel { display: flex; flex-direction: column; background: var(--white); height: 100vh; }
  .pos-cart-panel__body { flex: 1; overflow-y: auto; padding: 12px 16px; }
  .pos-cart-panel__header { padding: 16px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 15px; }
  .pos-cart-panel__footer { border-top: 1px solid var(--border); padding: 16px; }
  .pos-products { padding: 16px; grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .pos-products { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Bottom sheet / cart ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(17,24,39,0.45);
  z-index: 50; display: none;
}
.sheet-backdrop.is-open { display: block; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 51;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  max-height: 88vh;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .25s ease;
  box-shadow: 0 -8px 24px rgba(17,24,39,0.15);
}
.sheet.is-open { transform: translateY(0); }

.sheet__handle {
  width: 40px; height: 4px; border-radius: 4px;
  background: var(--border);
  margin: 10px auto;
}

.sheet__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.sheet__title { font-weight: 800; font-size: 16px; }

.sheet__body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.sheet__footer { border-top: 1px solid var(--border); padding: 14px 16px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); background: var(--white); }

@media (min-width: 1024px) {
  .sheet-backdrop.cart-backdrop, .sheet.cart-sheet { display: none !important; }
}

@media (min-width: 640px) {
  .sheet.modal-sheet {
    left: 50%;
    right: auto;
    bottom: 24px;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    transform: translate(-50%, 120%);
  }
  .sheet.modal-sheet.is-open { transform: translate(-50%, 0); }
}

.cart-item {
  display: flex; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.cart-item__price { font-size: 13px; color: var(--muted); }
.cart-item__note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cart-item__note input {
  width: 100%; border: 1px dashed var(--border); border-radius: 6px;
  padding: 6px 8px; font-size: 12.5px; margin-top: 4px; background: var(--cream);
}
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.cart-item__subtotal { font-weight: 800; font-size: 13.5px; }

.cart-empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.cart-empty svg { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--border); }

.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; color: var(--muted); }
.summary-row.is-total { font-size: 17px; font-weight: 800; color: var(--dark); padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--border); }

.discount-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-top: 1px dashed var(--border); margin-top: 6px;
}
.discount-row button { font-size: 13px; font-weight: 700; color: var(--accent); background: none; border: none; }

/* ---------- Payment screen ---------- */
.pay-total {
  text-align: center; padding: 20px 16px;
  background: var(--dark); color: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
}
.pay-total__label { font-size: 12px; opacity: 0.7; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pay-total__amount { font-size: 30px; font-weight: 800; margin-top: 4px; }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-method {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 84px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-weight: 700; font-size: 13.5px;
}
.pay-method svg { width: 24px; height: 24px; color: var(--muted); }
.pay-method.is-selected { border-color: var(--accent); background: #FFF3F0; }
.pay-method.is-selected svg { color: var(--accent); }

.quick-amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.quick-amount-btn {
  min-height: 44px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--white);
  font-weight: 700; font-size: 14px;
}
.quick-amount-btn.is-selected { border-color: var(--accent); color: var(--accent); background: #FFF3F0; }

.change-box {
  background: var(--cream); border-radius: var(--radius-md);
  padding: 14px; text-align: center; margin-top: 12px;
}
.change-box__label { font-size: 12px; color: var(--muted); font-weight: 700; }
.change-box__amount { font-size: 22px; font-weight: 800; margin-top: 2px; }
.change-box__amount.is-negative { color: var(--danger); }

/* ---------- Receipt ---------- */
.receipt-wrap { max-width: 380px; margin: 0 auto; padding: 24px 16px; }
.receipt {
  background: var(--white); border: 1px dashed var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  font-size: 13.5px;
}
.receipt__success {
  text-align: center; margin-bottom: 16px;
}
.receipt__success svg { width: 48px; height: 48px; color: var(--success); margin: 0 auto 8px; }
.receipt__success div { font-weight: 800; font-size: 16px; }
.receipt__center { text-align: center; }
.receipt__brand { font-weight: 800; font-size: 15px; }
.receipt__business { font-size: 13px; margin-top: 2px; }
.receipt__meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.receipt hr { border: none; border-top: 1px dashed var(--border); margin: 14px 0; }
.receipt-line { display: flex; justify-content: space-between; margin-bottom: 8px; }
.receipt-line__name { font-weight: 700; }
.receipt-line__qty { color: var(--muted); font-size: 12px; }
.receipt-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

@media print {
  .no-print { display: none !important; }
  .receipt-wrap { padding: 0; max-width: none; }
  .receipt { border: none; }
  body { background: var(--white); }
}

/* ---------- Tables (desktop) / cards (mobile) ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }

.table-wrap { display: none; }
.list-cards { display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 768px) {
  .table-wrap { display: block; overflow-x: auto; }
  .list-cards { display: none; }
}

.list-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; }
.list-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.list-card__title { font-weight: 800; font-size: 14px; }
.list-card__sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.list-card__amount { font-weight: 800; font-size: 15px; }
.list-card__row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

/* ---------- Dashboard ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; }
.stat-card__label { font-size: 12px; color: var(--muted); font-weight: 700; }
.stat-card__value { font-size: 20px; font-weight: 800; margin-top: 6px; }
.stat-card__value.accent { color: var(--accent); }

.section-title { font-size: 15px; font-weight: 800; margin: 20px 0 10px; }

.chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 8px 4px 0; }
.chart-bar { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; opacity: 0.85; }
.chart-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 4px; padding: 0 4px; }

.top-product-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.top-product-row:last-child { border-bottom: none; }

/* ---------- Auth ---------- */
.auth-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--cream);
}
.auth-card { width: 100%; max-width: 380px; }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo__name { font-weight: 800; font-size: 22px; }
.auth-logo__name .dot { color: var(--accent); }
.auth-logo__tagline { font-size: 13px; color: var(--muted); margin-top: 4px; }
.auth-demo { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Misc ---------- */
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.page-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.page-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px);
  transform: translate(-50%, 0);
  background: var(--dark); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 600;
  z-index: 60; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
  max-width: 90vw; text-align: center;
}
.toast.is-visible { opacity: 1; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--border); }
.empty-state__title { font-weight: 800; color: var(--dark); margin-bottom: 4px; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(17,24,39,0.45);
  z-index: 55; display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 640px) { .modal-backdrop { align-items: center; } }
.modal-box {
  background: var(--white); width: 100%; max-width: 420px;
  border-radius: 20px 20px 0 0; padding: 20px; max-height: 90vh; overflow-y: auto;
}
@media (min-width: 640px) { .modal-box { border-radius: var(--radius-lg); } }
