/* ============================================================
   PESAWARAN FOOD - Material Design 3 (Android-style)
   Tema: Hijau (#16A34A) + Oranye (#F97316) · Font Poppins
   ============================================================ */

:root {
  /* Material 3 color roles */
  --md-primary: #16A34A;
  --md-primary-dark: #15803D;
  --md-on-primary: #FFFFFF;
  --md-primary-container: #C7F2D6;
  --md-on-primary-container: #00391A;

  --md-secondary: #F97316;
  --md-secondary-container: #FFE0C2;
  --md-on-secondary-container: #5A2600;

  --md-surface: #FFFFFF;
  --md-surface-1: #F7FBF7;
  --md-surface-2: #F0F6F1;
  --md-surface-variant: #DDE5DD;
  --md-on-surface: #191D19;
  --md-on-surface-variant: #5C6660;
  --md-outline: #E1E7E2;
  --md-outline-strong: #C2CAC4;

  --md-bg: #F4F8F4;
  --md-error: #DC2626;
  --md-error-container: #FFDAD6;
  --md-warning: #B45309;
  --md-info: #1D4ED8;

  /* Elevation (Material shadows) */
  --el-1: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.10);
  --el-2: 0 1px 2px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.10);
  --el-3: 0 4px 8px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.08);
  --el-fab: 0 6px 16px rgba(22,163,74,.35);

  /* Shape (Material rounding) */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 28px;
  --r-full: 999px;

  --maxw: 480px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--md-bg);
  color: var(--md-on-surface);
  line-height: 1.5;
  font-size: 14px;
  padding-bottom: 92px;
  letter-spacing: .1px;
}

.app {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--md-bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Ripple effect (Material touch feedback) ===== */
.ripple { position: relative; overflow: hidden; }
.ripple-ink {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(0,0,0,.12); pointer-events: none;
  animation: ripple .55s ease-out;
}
.ripple-ink.light { background: rgba(255,255,255,.4); }
@keyframes ripple { to { transform: scale(2.5); opacity: 0; } }

/* ===== Material Top App Bar (hero header) ===== */
.topbar {
  background: linear-gradient(140deg, var(--md-primary) 0%, var(--md-primary-dark) 100%);
  color: var(--md-on-primary);
  padding: 20px 18px 22px;
  position: relative;
  box-shadow: var(--el-2);
}
.topbar.with-curve { border-radius: 0 0 var(--r-xl) var(--r-xl); }
.topbar h1 { font-size: 20px; font-weight: 700; letter-spacing: .15px; }
.topbar .subtitle { font-size: 12.5px; opacity: .9; margin-top: 2px; font-weight: 400; }
.topbar-row { display: flex; align-items: center; gap: 14px; }
.topbar-row .grow { flex: 1; min-width: 0; }

.greeting { font-size: 12.5px; opacity: .9; font-weight: 400; }
.greeting strong { display: block; font-size: 19px; font-weight: 700; margin-top: 2px; }

.chip-pill {
  background: rgba(255,255,255,.2); color: #fff; padding: 7px 14px;
  border-radius: var(--r-full); font-size: 12.5px; font-weight: 600;
  border: none; cursor: pointer; backdrop-filter: blur(4px);
}

/* ===== Material Search (filled) ===== */
.searchbar {
  display: flex; align-items: center; gap: 12px;
  background: var(--md-surface); border-radius: var(--r-full);
  padding: 13px 20px; margin-top: 16px; box-shadow: var(--el-1);
}
.searchbar input { border: none; outline: none; flex: 1; font-size: 14px; background: transparent; font-family: inherit; color: var(--md-on-surface); }
.searchbar input::placeholder { color: var(--md-on-surface-variant); }
.searchbar svg { color: var(--md-primary); flex-shrink: 0; }

/* ===== Section ===== */
.section { padding: 20px 18px 4px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 17px; font-weight: 700; letter-spacing: .1px; }
.section-head a { font-size: 13px; color: var(--md-primary); font-weight: 600; }

/* ===== Material Chips (categories) ===== */
.cat-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 68px; cursor: pointer; }
.cat-icon {
  width: 60px; height: 60px; border-radius: 20px;
  background: var(--md-primary-container); color: var(--md-on-primary-container);
  display: grid; place-items: center; font-size: 26px;
  transition: transform .18s cubic-bezier(.2,0,0,1), background .18s;
  box-shadow: var(--el-1);
}
.cat-item:active .cat-icon { transform: scale(.9); }
.cat-item.active .cat-icon { background: var(--md-primary); color: #fff; box-shadow: var(--el-2); }
.cat-label { font-size: 11.5px; text-align: center; color: var(--md-on-surface-variant); font-weight: 500; }
.cat-item.active .cat-label { color: var(--md-primary); font-weight: 600; }

/* ===== Promo banner (filled card) ===== */
.banner {
  margin: 4px 18px 0; border-radius: var(--r-md);
  background: linear-gradient(125deg, var(--md-secondary) 0%, #FB923C 100%);
  color: #fff; padding: 22px; position: relative; overflow: hidden;
  box-shadow: 0 6px 16px rgba(249,115,22,.28);
}
.banner::after { content: ''; position: absolute; right: -28px; top: -28px; width: 130px; height: 130px; background: rgba(255,255,255,.14); border-radius: 50%; }
.banner::before { content: ''; position: absolute; right: 30px; bottom: -40px; width: 90px; height: 90px; background: rgba(255,255,255,.1); border-radius: 50%; }
.banner h3 { font-size: 19px; font-weight: 800; position: relative; letter-spacing: .15px; }
.banner p { font-size: 13px; opacity: .95; margin-top: 4px; position: relative; font-weight: 400; }

/* ===== Material Elevated Cards (product grid) ===== */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 6px 18px 20px; }
.card {
  background: var(--md-surface); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--el-1); transition: transform .18s cubic-bezier(.2,0,0,1), box-shadow .18s;
  position: relative;
}
.card:active { transform: scale(.97); box-shadow: var(--el-3); }
.card-img { width: 100%; aspect-ratio: 1.25; object-fit: cover; background: var(--md-primary-container); }
.card-body { padding: 11px 13px 13px; }
.card-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.card-sub { font-size: 11.5px; color: var(--md-on-surface-variant); margin-top: 2px; }
.card-price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 10px; }
.price { font-size: 15px; font-weight: 800; color: var(--md-primary); letter-spacing: 0; }
.price-old { font-size: 11px; color: var(--md-on-surface-variant); text-decoration: line-through; }
.discount-badge {
  position: absolute; top: 10px; left: 10px; background: var(--md-secondary);
  color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: var(--r-full);
  box-shadow: var(--el-1);
}
.fav-btn {
  position: absolute; top: 9px; right: 9px; width: 32px; height: 32px;
  background: rgba(255,255,255,.94); border-radius: 50%; display: grid; place-items: center;
  border: none; cursor: pointer; color: var(--md-on-surface-variant); box-shadow: var(--el-1);
}
.fav-btn.active { color: var(--md-error); }
.btn-add {
  width: 36px; height: 36px; border-radius: 12px; border: none;
  background: var(--md-primary); color: #fff; font-size: 22px; cursor: pointer;
  display: grid; place-items: center; line-height: 1; box-shadow: var(--el-1);
  transition: transform .15s;
}
.btn-add:active { transform: scale(.88); background: var(--md-primary-dark); }

/* ===== Material Buttons (filled / tonal / text — pill shaped) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--r-full); border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 600; font-family: inherit; transition: box-shadow .18s, transform .12s, background .18s;
  letter-spacing: .2px;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--md-primary); color: #fff; box-shadow: var(--el-1); }
.btn-primary:active { background: var(--md-primary-dark); box-shadow: var(--el-2); }
.btn-orange { background: var(--md-secondary); color: #fff; box-shadow: var(--el-1); }
.btn-outline { background: transparent; color: var(--md-primary); border: 1.5px solid var(--md-outline-strong); }
.btn-tonal { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-danger { background: var(--md-error); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ===== Material FAB (Floating Action Button) ===== */
.fab {
  position: fixed; bottom: 104px; right: 50%; margin-right: calc(-1 * var(--maxw) / 2 + 18px);
  width: 58px; height: 58px; border-radius: var(--r-md);
  background: var(--md-secondary); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--el-fab); z-index: 45;
  font-size: 28px; transition: transform .18s;
}
.fab:active { transform: scale(.92); }
.fab.extended { width: auto; padding: 0 22px; gap: 10px; font-size: 15px; font-weight: 600; border-radius: var(--r-md); }
@media (max-width: 520px) { .fab { right: 18px; margin-right: 0; } }

/* ===== Material Text Fields (filled) ===== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; color: var(--md-on-surface-variant); letter-spacing: .2px; }
.form-control {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--md-outline); 
  border-radius: var(--r-sm); font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .18s, box-shadow .18s; background: var(--md-surface); color: var(--md-on-surface);
}
.form-control:focus { border-color: var(--md-primary); box-shadow: 0 0 0 3px var(--md-primary-container); }
textarea.form-control { resize: vertical; min-height: 84px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235C6660' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
input[type=file].form-control { padding: 11px 14px; }

/* ===== Auth pages ===== */
.auth-wrap { padding: 32px 24px; min-height: 100vh; display: flex; flex-direction: column; }
.auth-logo { text-align: center; margin: 28px 0 26px; }
.auth-logo .emoji { font-size: 58px; filter: drop-shadow(0 4px 8px rgba(22,163,74,.2)); }
.auth-logo h1 { font-size: 27px; font-weight: 800; color: var(--md-primary); margin-top: 8px; letter-spacing: .2px; }
.auth-logo p { color: var(--md-on-surface-variant); font-size: 14px; }
.auth-card { background: var(--md-surface); border-radius: var(--r-lg); padding: 26px 22px; box-shadow: var(--el-2); }
.auth-card h2 { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.auth-card .muted { color: var(--md-on-surface-variant); font-size: 13.5px; margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--md-on-surface-variant); }
.auth-foot a { color: var(--md-primary); font-weight: 700; }

.role-picker { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.role-opt { border: 1.5px solid var(--md-outline); border-radius: var(--r-sm); padding: 14px 6px; text-align: center; cursor: pointer; transition: .18s; }
.role-opt.active { border-color: var(--md-primary); background: var(--md-primary-container); border-width: 2px; }
.role-opt .ic { font-size: 26px; }
.role-opt .lbl { font-size: 11.5px; font-weight: 600; margin-top: 5px; }

/* ===== Material 3 Navigation Bar (bottom) ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw); background: var(--md-surface-2);
  display: flex; justify-content: space-around; align-items: stretch;
  padding: 12px 6px calc(14px + env(safe-area-inset-bottom)); 
  box-shadow: 0 -1px 0 var(--md-outline); z-index: 50;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--md-on-surface-variant); font-size: 11px; font-weight: 500; flex: 1; position: relative; padding-top: 2px; }
.nav-item .nav-pill {
  display: grid; place-items: center; width: 60px; height: 32px; border-radius: var(--r-full);
  transition: background .2s cubic-bezier(.2,0,0,1); position: relative;
}
.nav-item svg { width: 24px; height: 24px; transition: transform .2s; }
.nav-item.active { color: var(--md-on-surface); font-weight: 600; }
.nav-item.active .nav-pill { background: var(--md-primary-container); }
.nav-item.active svg { color: var(--md-on-primary-container); }
.nav-badge {
  position: absolute; top: -2px; right: 8px;
  background: var(--md-error); color: #fff; font-size: 9.5px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: var(--r-full); display: grid; place-items: center; padding: 0 4px;
  border: 2px solid var(--md-surface-2);
}

/* ===== List items (Material list) ===== */
.list-item {
  display: flex; gap: 14px; background: var(--md-surface); border-radius: var(--r-md);
  padding: 13px; margin: 0 18px 12px; box-shadow: var(--el-1); align-items: center;
}
.list-item img { width: 70px; height: 70px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; background: var(--md-primary-container); }
.list-item .info { flex: 1; min-width: 0; }
.list-item .info h4 { font-size: 14.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.list-item .info .p { color: var(--md-primary); font-weight: 700; font-size: 14px; margin-top: 3px; }

/* Quantity stepper (Material) */
.qty { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.qty button { width: 30px; height: 30px; border-radius: 10px; border: 1.5px solid var(--md-outline-strong); background: var(--md-surface); font-size: 17px; cursor: pointer; display: grid; place-items: center; color: var(--md-on-surface); }
.qty button:active { background: var(--md-surface-2); }
.qty .num { font-weight: 700; min-width: 24px; text-align: center; }

/* ===== Summary / checkout cards ===== */
.summary { background: var(--md-surface); border-radius: var(--r-md); padding: 18px; margin: 0 18px 14px; box-shadow: var(--el-1); }
.summary h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 9px; color: var(--md-on-surface-variant); }
.summary-row.total { border-top: 1.5px solid var(--md-outline); padding-top: 12px; margin-top: 6px; color: var(--md-on-surface); font-weight: 800; font-size: 16px; }
.summary-row.total .price { font-size: 18px; }

/* Payment options (Material radio cards) */
.pay-opt { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid var(--md-outline); border-radius: var(--r-sm); margin-bottom: 11px; cursor: pointer; transition: .18s; }
.pay-opt.active { border-color: var(--md-primary); background: var(--md-primary-container); border-width: 2px; }
.pay-opt .ic { font-size: 24px; }
.pay-opt .grow { flex: 1; }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--md-primary); }

/* ===== Sticky checkout bar ===== */
.checkout-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw); background: var(--md-surface); padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 16px rgba(0,0,0,.1); display: flex; align-items: center; gap: 16px; z-index: 40;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.checkout-bar .total-info { flex: 1; }
.checkout-bar .total-info span { font-size: 12px; color: var(--md-on-surface-variant); }
.checkout-bar .total-info strong { display: block; font-size: 20px; color: var(--md-primary); }
.qty + .btn, .checkout-bar .qty { flex-shrink: 0; }

/* ===== Material Badges (chips) ===== */
.badge { display: inline-block; padding: 5px 12px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 600; }
.badge-warning { background: #FEF0C7; color: var(--md-warning); }
.badge-info { background: #DBE4FF; color: var(--md-info); }
.badge-primary { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.badge-success { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.badge-danger { background: var(--md-error-container); color: #B3261E; }
.badge-secondary { background: var(--md-surface-variant); color: var(--md-on-surface-variant); }

/* ===== Order card ===== */
.order-card { background: var(--md-surface); border-radius: var(--r-md); padding: 16px; margin: 0 18px 12px; box-shadow: var(--el-1); }
.order-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.order-card .num { font-weight: 700; font-size: 14px; }
.order-card .meta { font-size: 12.5px; color: var(--md-on-surface-variant); }
.order-card .divider { border-top: 1px solid var(--md-outline); margin: 12px 0; }
.order-card .foot { display: flex; align-items: center; justify-content: space-between; }

/* ===== Empty state ===== */
.empty { text-align: center; padding: 64px 32px; color: var(--md-on-surface-variant); }
.empty .ic { font-size: 60px; opacity: .35; }
.empty p { margin-top: 16px; font-size: 15px; }

/* ===== Flash (Material snackbar style banner) ===== */
.flash { padding: 14px 18px; border-radius: var(--r-sm); margin: 16px 18px 0; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: var(--el-1); }
.flash-success { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.flash-error { background: var(--md-error-container); color: #B3261E; }
.flash-info { background: #DBE4FF; color: var(--md-info); }

/* ===== Material Tabs ===== */
.tabs { display: flex; background: var(--md-surface); border-bottom: 1px solid var(--md-outline); position: sticky; top: 0; z-index: 30; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1; padding: 15px 18px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--md-on-surface-variant); border-bottom: 3px solid transparent; white-space: nowrap; cursor: pointer; transition: .18s; }
.tab.active { color: var(--md-primary); border-bottom-color: var(--md-primary); }

/* ===== Profile ===== */
.profile-head { background: linear-gradient(140deg, var(--md-primary) 0%, var(--md-primary-dark) 100%); color: #fff; padding: 28px 18px; text-align: center; border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: var(--el-2); }
.profile-head .avatar { width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,.22); margin: 0 auto 12px; display: grid; place-items: center; font-size: 40px; border: 3px solid rgba(255,255,255,.4); overflow: hidden; }
.profile-head h2 { font-size: 20px; font-weight: 700; }
.profile-head p { font-size: 13px; opacity: .9; }
.profile-stats { display: flex; justify-content: center; gap: 36px; margin-top: 18px; }
.profile-stats .st { text-align: center; }
.profile-stats .st b { font-size: 21px; display: block; font-weight: 700; }
.profile-stats .st span { font-size: 11.5px; opacity: .9; }

.menu-card { background: var(--md-surface); border-radius: var(--r-md); margin: 16px 18px; box-shadow: var(--el-1); overflow: hidden; }
.menu-card .ttl { font-size: 11.5px; font-weight: 700; color: var(--md-on-surface-variant); padding: 16px 18px 8px; text-transform: uppercase; letter-spacing: .06em; }
.menu-row { display: flex; align-items: center; gap: 16px; padding: 15px 18px; border-top: 1px solid var(--md-outline); cursor: pointer; }
.menu-row:first-of-type { border-top: none; }
.menu-row .mic { width: 40px; height: 40px; border-radius: 12px; background: var(--md-primary-container); color: var(--md-on-primary-container); display: grid; place-items: center; font-size: 19px; }
.menu-row .mtitle { flex: 1; font-size: 14.5px; font-weight: 500; }
.menu-row .arr { color: var(--md-on-surface-variant); font-size: 18px; }

/* ===== Dashboard stat cards (Material elevated) ===== */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }
.stat-card { background: var(--md-surface); border-radius: var(--r-md); padding: 18px; box-shadow: var(--el-1); }
.stat-card .label { font-size: 12px; color: var(--md-on-surface-variant); font-weight: 500; }
.stat-card .value { font-size: 28px; font-weight: 800; margin-top: 6px; }
.stat-card.green .value { color: var(--md-primary); }
.stat-card.orange .value { color: var(--md-secondary); }
.stat-card.blue .value { color: var(--md-info); }
.stat-card.red .value { color: var(--md-error); }

/* ===== Detail page ===== */
.detail-img { width: 100%; aspect-ratio: 1.05; object-fit: cover; background: var(--md-primary-container); }
.detail-body { padding: 20px 18px; background: var(--md-surface); border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: -22px; position: relative; }
.detail-body h1 { font-size: 22px; font-weight: 800; letter-spacing: .15px; }
.detail-meta { display: flex; align-items: center; gap: 16px; margin-top: 10px; color: var(--md-on-surface-variant); font-size: 13px; flex-wrap: wrap; }
.detail-price { font-size: 26px; font-weight: 800; color: var(--md-primary); margin: 16px 0; }
.detail-desc { color: var(--md-on-surface-variant); font-size: 14px; line-height: 1.75; }
.detail-section-title { font-weight: 700; font-size: 15px; margin: 20px 0 12px; }

.back-btn { position: absolute; top: 16px; left: 16px; width: 42px; height: 42px; background: rgba(255,255,255,.95); border-radius: 50%; display: grid; place-items: center; z-index: 5; box-shadow: var(--el-2); }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.muted { color: var(--md-on-surface-variant); font-size: 13px; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.divider-line { border-top: 1px solid var(--md-outline); margin: 16px 0; }
.p-16 { padding: 18px; }
.hidden { display: none !important; }

/* Desktop framing — looks like phone */
@media (min-width: 520px) {
  body { background: #C8D6CC; padding: 0; }
  .app { min-height: 100vh; box-shadow: 0 0 60px rgba(0,0,0,.18); }
}

/* ===== PWA Install banner ===== */
#installBar {
  position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw); padding: 0 14px; z-index: 60;
}
.install-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--md-surface); border-radius: var(--r-md);
  padding: 12px 14px; box-shadow: var(--el-3); border: 1px solid var(--md-outline);
}
.install-ic { font-size: 30px; flex-shrink: 0; }
.install-txt { flex: 1; min-width: 0; }
.install-txt strong { display: block; font-size: 14px; font-weight: 700; }
.install-txt span { font-size: 11.5px; color: var(--md-on-surface-variant); }
.install-btn {
  background: var(--md-primary); color: #fff; border: none; cursor: pointer;
  padding: 9px 18px; border-radius: var(--r-full); font-size: 13px; font-weight: 700; font-family: inherit;
  flex-shrink: 0;
}
.install-x {
  background: transparent; border: none; cursor: pointer; color: var(--md-on-surface-variant);
  font-size: 22px; line-height: 1; padding: 2px 6px; flex-shrink: 0;
}
