/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #FF4D00;
  --accent-lt: #FFF1EC;
  --bg:        #F7F7F8;
  --surface:   #FFFFFF;
  --text:      #111111;
  --muted:     #888888;
  --border:    #EBEBEB;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 2px 16px rgba(0,0,0,.07);
  --nav-h:     72px;
  --top-h:     64px;
}

html {
  height: 100%;
  background: var(--surface); /* fills notch area on iPhone */
}
body {
  height: 100%;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;          /* no pull-to-refresh */
  -webkit-text-size-adjust: 100%;       /* prevent iOS text resize */
}

/* Remove tap flash on all tappable elements */
a, button, [onclick], label, .nav-btn, .store-card, .item-card, .chip, .food-chip, .settings-row {
  -webkit-tap-highlight-color: transparent;
}

/* Faster taps (remove 300ms delay) */
button, a, [onclick] {
  touch-action: manipulation;
}

/* Prevent iOS from zooming into inputs (requires font-size ≥ 16px) */
input, textarea, select {
  font-size: 16px !important;
}

#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow-x: clip;
}

/* ── TOP BAR ── */
#topbar {
  position: sticky; top: 0; z-index: 100;
  height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--surface);
  display: flex; align-items: center; justify-content: space-between;
  padding-left: 16px; padding-right: 16px;
  border-bottom: 1px solid var(--border);
}
.topbar-left { display: flex; align-items: center; gap: 10px; }

#location-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border-radius: 40px;
  padding: 8px 14px; cursor: pointer;
  font-size: 13px; font-weight: 500;
}
#location-pill svg { width: 16px; height: 16px; fill: var(--accent); stroke: none; }
#location-pill .chevron { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
#location-pill.open .chevron { transform: rotate(180deg); }

.addr-dd-backdrop { position: fixed; inset: 0; z-index: 148; }
.addr-dropdown {
  position: fixed; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--surface); border-radius: 0 0 20px 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  z-index: 149; padding: 14px 16px 18px;
  animation: ddSlideDown .18s ease;
}
.addr-dropdown.hidden { display: none; }
@keyframes ddSlideDown { from { opacity:0; transform: translateX(-50%) translateY(-8px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
.addr-dd-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.addr-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  transition: background .15s; margin-bottom: 6px;
  background: var(--bg);
}
.addr-dd-item:hover { background: var(--border); }
.addr-dd-item.active { background: linear-gradient(135deg,#b8d4f0,#cce0f7); }
.addr-dd-item-info { flex: 1; }
.addr-dd-item-info strong { font-size: 13px; font-weight: 600; display: block; color: var(--text); }
.addr-dd-item-info span { font-size: 12px; color: var(--muted); }
.addr-dd-item.active .addr-dd-item-info strong,
.addr-dd-item.active .addr-dd-item-info span { color: #1a3a5c; }
.addr-dd-check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.addr-dd-item.active .addr-dd-check { background: var(--accent); border-color: var(--accent); display: flex; align-items: center; justify-content: center; }
.addr-dd-add {
  width: 100%; padding: 9px; margin-top: 4px;
  background: none; border: 1.5px dashed var(--border);
  border-radius: 12px; color: var(--muted); font-size: 13px;
  font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .15s, color .15s;
}
.addr-dd-add:hover { border-color: var(--accent); color: var(--accent); }

.addr-dd-form-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.addr-dd-back { background: none; border: none; cursor: pointer; padding: 2px; color: var(--muted); display: flex; align-items: center; }
.addr-dd-chips { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.addr-dd-input {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 13px; font-family: inherit;
  background: var(--bg); color: var(--text); margin-bottom: 8px;
  box-sizing: border-box; outline: none; transition: border-color .15s;
}
.addr-dd-input:focus { border-color: var(--accent); }
.addr-dd-cancel { flex: 1; padding: 9px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; font-size: 13px; font-family: inherit; cursor: pointer; color: var(--muted); }
.addr-dd-save { flex: 2; padding: 9px; background: var(--accent); border: none; border-radius: 10px; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; color: #fff; }
.addr-dd-edit { background: none; border: none; cursor: pointer; padding: 4px; color: var(--muted); flex-shrink: 0; display: flex; align-items: center; }
.addr-dd-edit:hover { color: var(--accent); }

.icon-btn {
  position: relative; background: var(--bg); border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}

/* ── SCREENS ── */
.screen { display: none; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px); }
.screen.active { display: block; }

/* ── HERO ── */
.hero {
  background: var(--surface);
  padding: 28px 20px 20px;
}
.hero-sub { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.hero-title { font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }

.sticky-search {
  position: sticky;
  top: var(--top-h);
  z-index: 90;
  background: var(--surface);
  padding: 10px 20px 10px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-radius: 14px;
  padding: 12px 16px;
  border: 1.5px solid transparent;
  transition: border-color .2s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search-bar input { border: none; background: transparent; font-size: 14px; font-family: inherit; color: var(--text); flex: 1; outline: none; }
.search-bar input::placeholder { color: var(--muted); }

/* ── CHIPS ── */
.categories {
  display: flex; gap: 8px; overflow-x: auto; padding: 16px 20px;
  scrollbar-width: none; background: var(--surface); border-bottom: 1px solid var(--border);
}
.categories::-webkit-scrollbar { display: none; }

.chip {
  white-space: nowrap; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 500; font-family: inherit;
  padding: 8px 16px; border-radius: 40px; cursor: pointer;
  transition: all .15s;
}
.chip.active, .chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── FOOD QUICK PICKS ── */
.food-picks {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 16px;
}
.food-picks-label {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px;
  padding: 0 20px; margin-bottom: 10px;
}
.food-picks-row {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 20px; scrollbar-width: none;
}
.food-picks-row::-webkit-scrollbar { display: none; }

.food-chip {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex-shrink: 0; width: 66px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 10px 6px 8px;
  cursor: pointer; font-family: inherit;
  font-size: 11px; font-weight: 600; color: var(--muted);
  transition: all .15s;
}
.food-chip span { font-size: 26px; line-height: 1; }
.food-chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }
@media (hover: hover) and (pointer: fine) {
  .food-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }
}
.food-chip:active { transform: scale(.94); }

/* ── PROMO BANNER ── */
.promo-banner {
  margin: 16px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--radius);
  padding: 20px 20px;
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden; position: relative;
}
.promo-text { color: #fff; }
.promo-tag { font-size: 10px; font-weight: 700; letter-spacing: 1px; background: var(--accent); padding: 3px 8px; border-radius: 4px; display: inline-block; margin-bottom: 6px; }
.promo-text h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.promo-text p { font-size: 12px; color: rgba(255,255,255,.6); }
.promo-emoji { font-size: 56px; line-height: 1; }

/* ── SECTION ── */
.section { padding: 0 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-top: 20px; }
.section-header h2 { font-size: 18px; font-weight: 700; }
.muted { font-size: 13px; color: var(--muted); }

/* ── STORE GRID ── */
.store-grid { display: flex; flex-direction: column; gap: 14px; }

.store-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  border: 1px solid var(--border);
}
.store-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.store-card:active { transform: scale(.98); }

.store-thumb {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; position: relative;
}
.store-closed-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .5px;
  border-radius: 0;
}
.store-info { padding: 14px 16px 16px; }
.store-info-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.store-info h3 { font-size: 16px; font-weight: 700; }
.store-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.store-tag { font-size: 11px; background: var(--bg); color: var(--muted); padding: 3px 8px; border-radius: 20px; }
.store-meta { display: flex; gap: 14px; }
.meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.meta-item svg { width: 13px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.rating-badge {
  display: flex; align-items: center; gap: 4px;
  background: #F5F5F5; border-radius: 8px;
  padding: 4px 8px; font-size: 12px; font-weight: 600;
}
.rating-badge.good { background: #EDFAF1; color: #1A9E4A; }
.rating-badge svg { width: 12px; height: 12px; fill: #F5A623; stroke: none; }

/* ── STORE SCREEN ── */
.store-hero {
  position: relative; height: 200px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.store-hero-emoji {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 90px;
}
.store-hero-overlay {
  position: relative; z-index: 2; width: 100%;
  padding: 20px; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
}
.store-hero-overlay h2 { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.store-meta-row { display: flex; gap: 10px; }
.store-meta-row span { font-size: 12px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.15); backdrop-filter: blur(4px); padding: 3px 10px; border-radius: 20px; }

.store-body { background: var(--bg); }

.store-info-bar {
  background: var(--surface); padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px;
}
.store-info-bar p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.store-phone-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none;
}
.store-phone-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.store-phone-link:hover { opacity: .8; }

.cat-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 16px 20px;
  scrollbar-width: none; background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: var(--top-h); z-index: 10;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs--wrap { overflow-x: hidden; flex-wrap: wrap; }
.cat-tabs { transition: padding .2s ease; }
.cat-tab { transition: font-size .2s ease, padding .2s ease; }
.cat-tabs--compact { padding: 6px 20px 6px; }
.cat-tabs--compact .cat-tab { font-size: 11px; padding: 4px 10px; }
.cat-tab { white-space: nowrap; border: none; background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 500; font-family: inherit; padding: 7px 14px; border-radius: 8px; cursor: pointer; transition: all .15s; }
.cat-tab.active { background: var(--accent); color: #fff; }
.cat-tab--collab { background: linear-gradient(135deg,#7B1DB8,#CC1271) !important; color: #fff !important; font-weight: 700 !important; }
.cat-tab--collab.active { opacity: .85; }

.collab-divider-section { padding: 8px 0 4px; }
.collab-banner { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 16px; padding: 16px 18px; border-left: 4px solid var(--accent); margin: 0 4px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.collab-banner-emoji { font-size: 42px; line-height: 1; }
.collab-banner-label { font-size: 11px; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: .6px; }
.collab-banner-name { font-size: 17px; font-weight: 700; margin: 3px 0 0; color: var(--text); }

.item-grid { padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }

.cat-label { font-size: 16px; font-weight: 700; margin: 8px 0 8px; color: var(--text); }

.item-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.item-card {
  background: var(--surface); border-radius: var(--radius);
  display: flex; flex-direction: column;
  cursor: pointer; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform .15s;
}
.item-card:active { transform: scale(.98); }

.item-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
  padding: 8px;
  box-sizing: border-box;
}
.item-emoji { width: 100%; height: 100%; font-size: 52px; border-radius: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.item-product-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pm-product-img { width: 200px; height: 200px; object-fit: cover; display: block; border-radius: 12px; }

.item-card-add-btn {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform .1s, background .15s;
}
.item-card-add-btn:hover { background: #e64400; }
.item-card-add-btn:active { transform: scale(.88); }

.item-card-body { padding: 10px 10px 12px; display: flex; flex-direction: column; flex: 1; }
.item-card-body h4 { font-size: 12px; font-weight: 700; line-height: 1.35; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item-card-body p { font-size: 11px; color: var(--muted); line-height: 1.3; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.item-price { font-size: 14px; font-weight: 800; color: var(--text); }

.btn-add {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .1s, background .15s;
}
.btn-add:hover { background: #e64400; }
.btn-add:active { transform: scale(.88); }
.btn-add.in-cart { background: #111; }
.item-qty-controls { display: flex; align-items: center; gap: 6px; }
.item-qty-btn { width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--bg); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.item-qty-btn:hover { background: var(--border); }
.item-qty-btn--add { background: var(--accent); color: #fff; }
.item-qty-btn--add:hover { background: #e64400; }
.item-qty-num { font-size: 13px; font-weight: 700; min-width: 14px; text-align: center; }

/* ── BOTTOM NAV ── */
#bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-around;
  z-index: 100; padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: none; background: transparent; cursor: pointer;
  font-family: inherit; color: var(--muted); font-size: 11px; font-weight: 500;
  padding: 8px 20px; border-radius: 12px; transition: color .15s;
}
.nav-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn.active { color: var(--accent); }

.nav-icon-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.nav-badge {
  position: absolute; top: -7px; right: -10px;
  background: var(--accent); color: #fff;
  min-width: 20px; height: 20px; border-radius: 10px;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  border: 2.5px solid var(--surface);
  box-shadow: 0 1px 4px rgba(255,77,0,.4);
}

/* ── CART DRAWER ── */
.backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 200; backdrop-filter: blur(2px);
}
.drawer {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--surface); border-radius: 24px 24px 0 0;
  z-index: 201; max-height: 88vh;
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.drawer.hidden { display: none; }
.drawer-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 12px auto 0; flex-shrink: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 10px; flex-shrink: 0; }
.drawer-header h3 { font-size: 18px; font-weight: 700; }

.btn-clear-cart { background: none; border: none; font-size: 13px; color: var(--muted); cursor: pointer; padding: 4px 2px; font-family: inherit; transition: color .15s; }
.btn-clear-cart:hover { color: #e53935; }
.cart-items { flex: 1; overflow-y: auto; padding: 0 20px 12px; }

.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.ci-emoji { font-size: 32px; width: 48px; height: 48px; background: var(--bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.ci-emoji img { width: 48px; height: 48px; object-fit: cover; display: block; }
.ci-info { flex: 1; min-width: 0; }
.ci-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-info span { font-size: 12px; color: var(--muted); }
.ci-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border); background: transparent; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.qty-btn:hover { background: var(--bg); }
.qty-num { font-size: 14px; font-weight: 600; min-width: 18px; text-align: center; }

.cart-footer { padding: 12px 20px 24px; border-top: 1px solid var(--border); flex-shrink: 0; }
.cart-totals { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cart-totals .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.cart-totals .row.total { color: var(--text); font-weight: 700; font-size: 16px; }

.btn-primary {
  width: 100%; padding: 16px; border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700; font-family: inherit;
  border-radius: 14px; transition: background .15s, transform .1s;
}
.btn-primary:hover { background: #e64400; }
.btn-primary:active { transform: scale(.98); }

.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; flex: 1; }
.cart-empty-icon { font-size: 52px; margin-bottom: 12px; }
.cart-empty p { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.cart-empty span { font-size: 13px; color: var(--muted); text-align: center; }

/* ── PRODUCT MODAL ── */
.product-modal { max-height: 92vh; overflow: hidden; z-index: 202; }
.pm-hero { width: 100%; height: 220px; background: #fff !important; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.pm-hero span { font-size: 96px; line-height: 1; }
.pm-body { padding: 0 20px 32px; overflow-y: auto; }
.pm-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.pm-header h2 { font-size: 20px; font-weight: 800; flex: 1; }
.pm-price { font-size: 20px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.pm-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.pm-actions { display: flex; align-items: center; gap: 12px; }
.pm-qty-row { display: flex; align-items: center; gap: 12px; flex-shrink: 0; background: var(--bg); border-radius: 12px; padding: 8px 12px; }
.pm-qty-btn { width: 32px; height: 32px; font-size: 18px; }
.pm-add-btn { flex: 1; padding: 14px; font-size: 15px; }

/* ── MODAL ── */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
.modal.hidden { display: none; }
.modal-box { background: var(--surface); border-radius: 24px; padding: 32px 24px; width: 100%; max-width: 380px; text-align: center; }
.success-anim { font-size: 48px; margin-bottom: 8px; }
.modal-box h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.modal-box p { font-size: 14px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }

/* Receipt modal */
.receipt-box { padding: 24px 20px; max-height: 88vh; overflow-y: auto; text-align: left; }
.receipt-header { text-align: center; margin-bottom: 12px; }
.receipt-header h2 { margin-bottom: 2px; }
.receipt-order-num { font-size: 28px; font-weight: 900; color: var(--accent); letter-spacing: 1px; margin: 4px 0; }
.receipt-store-name { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.receipt-divider { height: 1px; background: var(--border); margin: 12px 0; }
.receipt-divider.dashed { background: none; border-top: 2px dashed var(--border); }
.receipt-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.receipt-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; gap: 8px; }
.receipt-row span:first-child { flex: 1; }
.receipt-row.muted { color: var(--muted); font-size: 13px; }
.receipt-row.total-row { font-size: 16px; font-weight: 800; margin-top: 4px; }
.receipt-meta { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.receipt-meta span { display: flex; align-items: center; gap: 6px; }

/* Order history number badge */
.ohc-num { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 20px; margin-right: 6px; }

.tracker { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 28px; }
.tracker-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0; }
.tracker-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--border); border: 2px solid var(--border); }
.tracker-step span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.tracker-step.done .tracker-dot { background: #1A9E4A; border-color: #1A9E4A; }
.tracker-step.active .tracker-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,77,0,.2); }
.tracker-line { flex: 0 0 48px; height: 2px; background: var(--border); margin: 0 8px; margin-bottom: 16px; }

/* Dispatch buttons on success modal */
.dispatch-btns { display: flex; gap: 10px; margin: 12px 0 10px; }
.btn-dispatch { flex: 1; padding: 11px 8px; border: 2px solid var(--accent); border-radius: 12px; background: white; color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s; }
.btn-dispatch:hover { background: var(--accent-lt); }
.btn-dispatch:active { background: var(--accent); color: white; }

/* Document modals (store receipt & kitchen ticket) */
.doc-box { padding: 20px; max-height: 88vh; overflow-y: auto; text-align: left; font-family: 'Courier New', monospace; font-size: 13px; max-width: 360px; }
.doc-header-text { text-align: center; margin-bottom: 8px; }
.doc-brand { font-size: 20px; font-weight: 900; letter-spacing: 2px; }
.doc-type { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted); margin-top: 2px; }
.doc-divider { text-align: center; color: var(--border); margin: 7px 0; font-size: 11px; }
.doc-meta-row { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0; font-size: 12px; }
.doc-meta-row span:last-child { text-align: right; max-width: 60%; }
.doc-meta-row.muted { color: var(--muted); }
.doc-meta-row.total { font-weight: 900; font-size: 15px; margin: 6px 0; }
.doc-items { margin: 4px 0; }
.doc-item-row { display: flex; justify-content: space-between; gap: 8px; margin: 3px 0; font-size: 12px; }
.doc-footer { text-align: center; font-size: 10px; color: var(--muted); margin-top: 12px; letter-spacing: 1px; }
.kt-header { text-align: center; margin-bottom: 4px; }
.kt-type { font-size: 14px; font-weight: 900; letter-spacing: 1px; }
.kt-store { font-size: 12px; color: var(--muted); }
.kt-order-num { font-size: 52px; font-weight: 900; text-align: center; margin: 8px 0; line-height: 1; color: var(--accent); }
.kt-items-label { font-weight: 700; font-size: 13px; margin: 6px 0 3px; }
.kt-item { margin: 5px 0; font-size: 14px; }
.kt-qty { color: var(--muted); }
.kt-comment-label { font-weight: 700; font-size: 12px; margin-top: 4px; }
.kt-comment { margin: 2px 0; font-style: italic; color: var(--muted); }
.kt-eta { text-align: center; font-weight: 700; font-size: 13px; margin-top: 8px; }
.doc-actions { display: flex; gap: 10px; margin-top: 16px; }
.btn-outline-doc { flex: 1; padding: 11px; border: 2px solid var(--border); border-radius: 12px; background: white; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; }
.btn-outline-doc:hover { background: var(--bg); }
.btn-outline-add { width: 100%; padding: 12px; border: 1.5px dashed var(--border); border-radius: 12px; background: var(--surface); color: var(--primary); font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; }
.doc-actions .btn-primary { flex: 1; }

/* ── PROFILE DRAWER ── */
.profile-drawer { max-height: 94vh; }
.history-drawer { max-height: 88vh; z-index: 202; }

/* Auth hero */
.profile-auth-hero { text-align: center; padding: 24px 20px 20px; }
.auth-avatar { font-size: 64px; margin-bottom: 12px; }
.profile-auth-hero h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.profile-auth-hero p { font-size: 14px; color: var(--muted); line-height: 1.5; }

.auth-otp-hint { font-size: 14px; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.auth-otp-hint strong { color: var(--text); }
.btn-ghost { width: 100%; margin-top: 10px; padding: 13px; border: none; background: transparent; font-family: inherit; font-size: 14px; color: var(--muted); cursor: pointer; border-radius: 12px; transition: background .15s; }
.btn-ghost:hover { background: var(--bg); }

/* Auth forms */
.auth-form { padding: 0 20px 28px; overflow-y: auto; }
.field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-group label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.field-group input { border: 1.5px solid var(--border); border-radius: 12px; padding: 13px 14px; font-size: 15px; font-family: inherit; color: var(--text); background: var(--bg); outline: none; transition: border-color .2s; }
.field-group input:focus { border-color: var(--accent); background: var(--surface); }
.field-row { display: flex; gap: 10px; }
.field-row .field-group { flex: 1; }
.input-with-icon { position: relative; }
.input-with-icon input { width: 100%; padding-right: 44px; }
.eye-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; }
.eye-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-error { font-size: 13px; color: #e53935; background: #fff5f5; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }

/* Profile logged-in */
.profile-header { display: flex; align-items: center; gap: 14px; padding: 20px 20px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.profile-header-clickable { display: flex; align-items: center; gap: 14px; flex: 1; cursor: pointer; border-radius: 12px; padding: 4px; margin: -4px; transition: background .15s; }
.profile-header-clickable:hover { background: var(--bg); }
.profile-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-header-info { flex: 1; }
.profile-header-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.profile-header-info span { font-size: 13px; color: var(--muted); }

.profile-body { flex: 1; overflow-y: auto; padding: 16px 20px 32px; }

.profile-section { margin-bottom: 24px; }
.profile-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.profile-section h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.profile-section-header h4 { margin-bottom: 0; }
.link-btn { background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }

.empty-state { font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 14px; text-align: center; }

/* Address cards */
.address-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg,#b8d4f0,#cce0f7); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.address-icon { font-size: 22px; }
.address-info { flex: 1; }
.address-info strong { font-size: 14px; color: #1a3a5c; display: block; margin-bottom: 2px; }
.address-info span { font-size: 12px; color: #4a6a8a; }
.address-delete { background: none; border: none; cursor: pointer; padding: 4px; }
.address-delete svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }

/* Payment cards */
.payment-card { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.payment-card.visa { background: linear-gradient(135deg,#b8d4f0,#cce0f7); }
.payment-card.mastercard { background: linear-gradient(135deg,#b8d4f0,#cce0f7); }
.payment-card.default-card { background: linear-gradient(135deg,#b8d4f0,#cce0f7); }
.payment-card.kaspi-card { background: linear-gradient(135deg,#ffd6d6,#ffb3b3); }
.payment-card.kaspi-card .payment-info strong { color: #7a0000; }
.payment-card.kaspi-card .payment-info span { color: #a33; }
.kaspi-badge { width: 36px; height: 36px; border-radius: 10px; background: #e40000; color: #fff; font-size: 18px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kaspi-icon { width: 34px; height: 34px; border-radius: 9px; background: #e40000; color: #fff; font-size: 16px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-style: normal; }
.checkout-option.kaspi-option.selected { border-color: #e40000; background: #fff0f0; }
.checkout-option.kaspi-option.selected .co-radio.selected { border-color: #e40000; background: #e40000; }
.payment-icon { font-size: 24px; }
.payment-info { flex: 1; }
.payment-info strong { font-size: 14px; color: #1a3a5c; display: block; margin-bottom: 2px; }
.payment-info span { font-size: 12px; color: #4a6a8a; }
.payment-delete { background: none; border: none; cursor: pointer; padding: 4px; }
.payment-delete svg { width: 16px; height: 16px; fill: none; stroke: #4a6a8a; stroke-width: 2; stroke-linecap: round; }

/* Order history */
.order-card { background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.order-card-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.order-card-top strong { font-size: 14px; }
.order-status { font-size: 12px; font-weight: 600; color: #1A9E4A; }
.order-card span { font-size: 12px; color: var(--muted); }

/* Settings */
.settings-list { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.settings-row:last-child { border-bottom: none; }
.settings-value { font-size: 13px; color: var(--muted); font-weight: 400; }

/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 24px; cursor: pointer; transition: .2s; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Profile menu rows */
.profile-menu-row {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: var(--bg); border: none;
  border-radius: 12px; padding: 14px 16px;
  cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--text); transition: background .15s;
}
.profile-menu-row:hover { background: #EBEBEB; }
.pmr-left { display: flex; align-items: center; gap: 10px; }
.pmr-icon { font-size: 18px; }
.pmr-right { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.pmr-right svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.orders-row { background: #FDEEE8; color: #a0522d; }
.orders-row:hover { background: #f9ddd1; }
.orders-row .pmr-left { color: #a0522d; }

/* Full-page order history */
.orders-page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: var(--top-h); z-index: 10;
}
.orders-page-header h2 { font-size: 18px; font-weight: 700; }
.orders-page-body { padding: 16px 20px 32px; }

/* Order cards in history screen */
.order-history-card {
  background: var(--bg); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 10px;
  border: 1px solid var(--border);
}
.ohc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.ohc-top strong { font-size: 15px; font-weight: 700; }
.ohc-num { font-size: 13px; font-weight: 400; color: var(--muted); }
.ohc-date { font-size: 12px; color: var(--muted); white-space: nowrap; margin-left: 8px; }
.ohc-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.ohc-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text); gap: 8px; }
.ohc-row.muted { color: var(--muted); font-size: 12px; }
.ohc-row.ohc-total { font-weight: 700; font-size: 14px; margin-top: 4px; }
.ohc-divider { height: 1px; background: var(--border); margin: 10px 0; }
.ohc-info-row { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.ohc-reorder { width: 100%; padding: 10px; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); font-size: 13px; font-weight: 700; font-family: inherit; border-radius: 10px; cursor: pointer; transition: all .15s; }
.ohc-reorder:hover { background: var(--accent-lt); }
.ohc-reorder--disabled { border-color: var(--border); color: var(--muted); cursor: not-allowed; }
.ohc-reorder--disabled:hover { background: transparent; }

/* Logout button */
.btn-logout { width: 100%; padding: 14px; border: 1.5px solid #e53935; background: transparent; color: #e53935; font-size: 15px; font-weight: 600; font-family: inherit; border-radius: 14px; cursor: pointer; margin-top: 8px; transition: all .15s; }
.btn-logout:hover { background: #fff5f5; }

/* Sheet modals (address / payment) */
.sheet-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.5); backdrop-filter: blur(2px); }
.sheet-modal.hidden { display: none; }
.sheet-box { background: var(--surface); border-radius: 24px 24px 0 0; width: 100%; max-width: 430px; padding: 20px 20px 36px; max-height: 90vh; overflow-y: auto; }
.sheet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sheet-header h3 { font-size: 18px; font-weight: 700; }
.card-note { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 16px; }

/* ── CHECKOUT DRAWER ── */
.checkout-drawer { max-height: 88vh; display: flex; flex-direction: column; }
.checkout-drawer .drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 12px; flex-shrink: 0; }
.checkout-drawer .drawer-header h3 { font-size: 17px; font-weight: 700; }

.checkout-body { flex: 1; overflow-y: auto; padding: 4px 0 8px; }

.checkout-section { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.checkout-section:last-child { border-bottom: none; }

.checkout-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.checkout-section-title h4 { font-size: 15px; font-weight: 700; }
.cs-icon { font-size: 18px; }

.checkout-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }

.checkout-option {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border-radius: 12px; padding: 12px 14px;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color .15s, background .15s;
}
.checkout-option.selected { border-color: var(--accent); background: var(--accent-lt); }
.checkout-option:active { transform: scale(.99); }

.co-left { display: flex; align-items: center; gap: 10px; }
.co-icon { font-size: 22px; }
.co-info strong { font-size: 13px; font-weight: 600; display: block; margin-bottom: 2px; }
.co-info span { font-size: 12px; color: var(--muted); }

.co-edit-btn {
  background: none; border: none; cursor: pointer; padding: 4px 6px;
  color: var(--muted); flex-shrink: 0; display: flex; align-items: center;
  border-radius: 6px; transition: color .15s, background .15s;
}
.co-edit-btn:hover { color: var(--accent); background: rgba(255,77,0,.08); }
.co-edit-btn svg { width: 15px; height: 15px; }

.co-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  transition: all .15s; position: relative;
}
.co-radio.selected { border-color: var(--accent); background: var(--accent); }
.co-radio.selected::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
}

.checkout-add-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1.5px dashed var(--border);
  border-radius: 12px; padding: 10px 14px; width: 100%;
  font-size: 13px; font-weight: 500; color: var(--muted);
  cursor: pointer; font-family: inherit; transition: border-color .15s, color .15s;
}
.checkout-add-btn:hover { border-color: var(--accent); color: var(--accent); }
.checkout-add-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.checkout-eta-info { font-size: 14px; color: var(--muted); }
.checkout-eta-info strong { color: var(--text); font-weight: 700; }

.checkout-textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; font-family: inherit;
  color: var(--text); background: var(--bg); resize: none; outline: none;
  transition: border-color .2s;
}
.checkout-textarea:focus { border-color: var(--accent); background: var(--surface); }

.checkout-summary { background: var(--surface); }
.cs-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.cs-row:last-child { margin-bottom: 0; }
.cs-row.total { color: var(--text); font-weight: 700; font-size: 16px; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px; }

.checkout-footer { padding: 12px 20px 28px; border-top: 1px solid var(--border); flex-shrink: 0; }
.checkout-error { font-size: 13px; color: #e53935; background: #fff5f5; border: 1px solid #ffcdd2; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; text-align: center; font-weight: 600; }
.checkout-section.section-error .checkout-section-title h4 { color: #e07070; }
.checkout-section.section-error .checkout-section-title .cs-icon { opacity: 0.6; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }
.btn-primary.shake { animation: shake 0.45s ease; }

/* ── INLINE FORMS (checkout) ── */
.inline-form {
  background: var(--bg); border-radius: 14px;
  padding: 16px; margin-top: 8px;
  border: 1.5px solid var(--border);
  animation: slideUp .2s ease;
}
.inline-form-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.inline-form .field-group { margin-bottom: 10px; }
.inline-form .field-group label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; display: block; margin-bottom: 5px; }
.inline-form .field-group input { border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--text); background: var(--surface); outline: none; width: 100%; transition: border-color .2s; }
.inline-form .field-group input:focus { border-color: var(--accent); }
.inline-form .field-row { display: flex; gap: 8px; }
.inline-form .field-row .field-group { flex: 1; }

.label-chips { display: flex; gap: 6px; margin-bottom: 0; }
.label-chip { border: 1.5px solid var(--border); background: var(--surface); font-size: 12px; font-weight: 500; font-family: inherit; padding: 6px 12px; border-radius: 20px; cursor: pointer; transition: all .15s; color: var(--text); }
.label-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.inline-form-actions { display: flex; gap: 8px; margin-top: 14px; }
.btn-inline-cancel { flex: 1; padding: 11px; border: 1.5px solid var(--border); background: var(--surface); border-radius: 10px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; color: var(--muted); }
.btn-inline-save { flex: 2; padding: 11px; border: none; background: var(--accent); color: #fff; border-radius: 10px; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background .15s; }
.btn-inline-save:hover { background: #e64400; }
.btn-inline-save:active { transform: scale(.98); }

/* ── LANGUAGE TOGGLE ── */
.lang-row { background: var(--accent-lt); transition: background .15s; }
.lang-row:hover { background: #ffe3d9; }
.lang-row:active { background: #ffd4c2; }
.lang-row .settings-value { color: var(--accent); font-weight: 700; font-size: 14px; }

/* ── UTILS ── */
.hidden { display: none !important; }

/* ── ANIMATIONS ── */
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.screen.active { animation: slideUp .25s ease; }

@keyframes pop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.pop { animation: pop .2s ease; }

/* ── AGE GATE MODAL ──────────────────────────────────────────────────────────── */
.age-gate-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(340px, calc(100vw - 48px));
  background: var(--card);
  border-radius: 24px;
  padding: 32px 24px 28px;
  z-index: 1100;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
#age-gate-backdrop { z-index: 1090; background: rgba(0,0,0,.6); }
.age-gate-modal { background: #ffffff; }
.age-gate-icon { font-size: 52px; line-height: 1; }
.age-gate-title { font-size: 20px; font-weight: 700; margin: 0; color: var(--text); }
.age-gate-text { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.age-gate-yes { width: 100%; margin-top: 8px; }
.age-gate-no {
  width: 100%; padding: 14px; border: none; background: none;
  color: var(--muted); font-size: 15px; cursor: pointer; border-radius: 12px;
}
.age-gate-no:hover { background: var(--surface); }

/* ── CASH CONFIRM CHECKBOX ───────────────────────────────────────────────────── */
.cash-confirm-label {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; padding: 4px 0;
}
.cash-confirm-label input[type="checkbox"] {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--accent); cursor: pointer;
}
.cash-confirm-label span {
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
