/* ============================================
   KOOMPIR KIOSK v3 — 24" Touchscreen
   Brand: Bebas Neue + DM Sans
   Colors: Amber #F5A623, BG #0a0a0a
   Three modes: Attract, Learn, Order
   ============================================ */

:root {
  --amber: #F5A623;
  --bg: #0a0a0a;
  --surface: #121214;
  --surface2: #1c1c1e;
  --white: #FFFFFF;
  --red: #E53E3E;
  --green: #10b981;
  --muted: #9ca3af;
  --border: #27272a;
  --font-title: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* DAY THEME (white) — applied automatically between sunrise & sunset
   in Miami. Overrides the dark variables so existing selectors don't
   need to change. `--white` historically means "primary foreground"
   in this codebase, so we override it to a dark color for day mode. */
:root[data-theme="day"] {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface2: #e7e7ea;
  --white: #1a1a1a;          /* primary text/foreground */
  --red: #c0392b;
  --green: #0c8a5d;
  --muted: #6b6b6b;
  --border: #d8d8d8;
  --amber: #C8521A;          /* darker amber so it stays readable on white */
}

/* ============ DAY THEME — VIDEO/IMAGE OVERLAY FIXES ============
   Many surfaces sit on top of a video or image background with their own
   built-in dark gradient (e.g. category picker cards, attract LEARN button,
   learn-detail back button). For those, the text MUST stay white in day mode
   too — flipping it to dark makes it invisible against the video. */
:root[data-theme="day"] .cat-pick-label,
:root[data-theme="day"] .attract-btn-learn,
:root[data-theme="day"] .learn-detail-back-btn {
  color: #ffffff !important;
}
/* Strengthen the dark gradient on category picker so labels are super readable
   against bright food videos (kumpir, doner, etc. can be visually noisy) */
:root[data-theme="day"] .cat-pick-overlay {
  background: linear-gradient(to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.25) 60%,
    rgba(0,0,0,.05) 100%);
}
/* Videos look washed out at 0.8 opacity against a white background.
   Crank to full opacity in day mode so they stand out as their own surface. */
:root[data-theme="day"] .cat-pick-vid {
  opacity: 1;
}
/* Lift the category cards off the white background with a real shadow
   (in dark mode they sit on black, no lift needed). */
:root[data-theme="day"] .cat-pick-card {
  background: #2a2a2a; /* dark fallback while video loads */
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
/* Same lift for category banner (single video at top of order screen) */
:root[data-theme="day"] .cat-banner {
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
/* Attract LEARN MORE button is a translucent pill on the attract video.
   Tweak it slightly for day mode — still translucent white, just thicker
   border so it doesn't get lost. */
:root[data-theme="day"] .attract-btn-learn {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.4);
}
/* Same for learn-detail back/build buttons */
:root[data-theme="day"] .learn-detail-back-btn {
  background: rgba(0,0,0,0.6);
  border: 1.5px solid rgba(255,255,255,0.35);
}

/* ============ DAY THEME — MODALS STAY DARK ============
   All popup modals (.modal-box: döner/kumpir customization, drinks upsell,
   tip, email, payment choice, counter) float on a dark backdrop
   (rgba(0,0,0,.85)) and have a hardcoded dark box background (#151517).
   They look great as dark "islands" in both themes — the problem is only
   that day-mode flips --white to dark, making text invisible on the dark box.
   Fix: re-declare the full palette scoped to .modal-box back to the DARK
   theme values. Every child (titles, ingredient toggles, sauce chips,
   buttons) inherits these and renders correctly in one shot — no need to
   touch individual selectors. */
:root[data-theme="day"] .modal-box,
:root[data-theme="day"] .idle-box {
  --white: #FFFFFF;
  --muted: #9ca3af;
  --surface: #121214;
  --surface2: #1c1c1e;
  --border: #27272a;
  --amber: #F5A623;
  --red: #E53E3E;
  --green: #10b981;
  /* CRITICAL: set an explicit base text color. Many elements (modal title,
     ingredient names) don't reference var(--white) — they just INHERIT color
     from <body>, which is dark in day mode. Re-declaring variables alone
     doesn't fix inherited color; we must set color directly here so every
     child that relies on inheritance renders white inside the dark modal. */
  color: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; /* cursor: none -- TEMP off for testing; re-enable before kiosk deploy */ }
html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ============ MODE SYSTEM ============ */
.mode { position: fixed; inset: 0; display: none; z-index: 1; }
.mode.active { display: flex; flex-direction: column; z-index: 10; }

/* ============ ATTRACT MODE ============ */
#attractMode { background: var(--bg); }

.attract-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity .6s ease;
}

.video-logo-overlay {
  position: absolute; top: 0; left: 0;
  z-index: 25;
  width: 220px; height: 160px;
  border-radius: 0 0 18px 0;
  overflow: hidden;
  pointer-events: none;
  background: #0a0a0a;
}
.video-logo-overlay video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #0a0a0a;
}
.attract-gradient {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.15) 0%, transparent 30%, transparent 50%, rgba(0,0,0,.7) 75%, rgba(0,0,0,.92) 100%),
    linear-gradient(to right, rgba(0,0,0,.1) 0%, transparent 100%);
  pointer-events: none;
}

/* Fun Facts — DISABLED */
.fun-fact { display: none; }

/* Video navigation arrows */
.video-nav {
  position: absolute;
  top: 50%; left: 0; right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  transform: translateY(-50%);
  pointer-events: none;
}
.video-nav-btn {
  pointer-events: auto;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  transition: all .15s;
  font-family: var(--font-body);
}
.video-nav-btn .nav-arrow { font-size: 28px; line-height: 1; }
.video-nav-btn .nav-label { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.video-nav-btn:active { transform: scale(.9); background: rgba(245,166,35,.3); border-color: var(--amber); }

/* Bottom CTA bar */
/* Touch prompt - center of attract screen */
.touch-prompt {
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
  pointer-events: none;
  font-family: var(--font-title);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--white);
  letter-spacing: .06em;
  text-shadow: 0 2px 20px rgba(0,0,0,.7);
  transition: opacity .4s ease;
}
@keyframes pulseGlow {
  0%,100% { opacity: .7; }
  50% { opacity: 1; }
}

/* Center CTA block: ORDER NOW + LEARN MORE + ESPAÑOL stacked */
.attract-center-cta {
  position: absolute;
  bottom: 100px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 25;
}

/* Language selector — now inside attract-center-cta, no longer absolute */
.lang-selector {
  display: flex;
  gap: 16px;
}
.lang-btn {
  padding: 14px 48px;
  border-radius: 30px;
  border: 2px solid var(--amber);
  background: var(--amber);
  backdrop-filter: blur(8px);
  color: #000;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all .2s;
}
.lang-btn:active { transform: scale(.95); }
.lang-btn.active {
  background: var(--amber);
  color: #000;
  border-color: var(--amber);
}

.attract-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 20;
  padding: 0 4vw 5vh;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.attract-logo-text {
  font-family: var(--font-title);
  font-size: clamp(48px, 7vw, 96px);
  color: var(--amber);
  letter-spacing: .06em;
  line-height: .92;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.attract-logo-sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 18px);
  color: rgba(255,255,255,.7);
  margin-top: 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.attract-cta-row { display: flex; gap: 16px; }
.attract-btn {
  border: none; cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(14px, 1.5vw, 20px);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 18px 36px;
  border-radius: 14px;
  transition: all .4s ease;
}
.attract-btn:active { transform: scale(.97); }
.attract-btn-order {
  background: var(--amber); color: #000;
  box-shadow: 0 6px 30px rgba(245,166,35,.3);
}
.attract-btn-learn {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
}

/* ============ LEARN MODE ============ */
#learnMode { background: var(--bg); flex-direction: column; }

.topbar-btn {
  background: none; border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 10px;
  cursor: pointer; text-transform: uppercase;
  letter-spacing: .04em;
  transition: all .12s;
}
.topbar-btn:active { transform: scale(.97); }
.topbar-btn-accent {
  background: var(--amber); color: #000; border-color: var(--amber);
}

.learn-topbar, .order-topbar {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(0,0,0,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.topbar-title {
  font-family: var(--font-title);
  font-size: 28px; letter-spacing: .06em;
  color: var(--amber);
}

/* Learn cards grid */
.learn-cards {
  flex: 1; overflow-y: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: min-content;
  gap: 16px;
  align-content: start;
  -webkit-overflow-scrolling: touch;
}
.learn-cards::-webkit-scrollbar { width: 4px; }
.learn-cards::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 2px; }

.learn-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  aspect-ratio: 16 / 10;
}
.learn-card:active { transform: scale(.98); box-shadow: 0 2px 10px rgba(245,166,35,.3); }
.learn-card-img, .learn-card-vid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  background: var(--surface2);
}
.learn-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.05) 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
  z-index: 2;
}
.learn-card-title {
  font-family: var(--font-title);
  font-size: clamp(22px, 2.5vw, 30px); letter-spacing: .04em;
  color: var(--amber);
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.learn-card-desc {
  font-size: 12px; color: rgba(255,255,255,.8);
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.learn-card-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tag-popular { background: var(--amber); color: #000; }
.tag-new { background: var(--red); color: #fff; }
.tag-classic { background: rgba(255,255,255,.15); color: var(--white); }

/* Learn detail — video full screen, yazılar overlay */
.learn-detail {
  position: absolute; inset: 0;
  background: var(--bg);
  z-index: 30;
  display: none;
}
.learn-detail.active { display: block; }

/* Video full screen arka plan */
.learn-detail-hero-wrap {
  position: absolute; inset: 0;
}
.learn-detail-hero {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.learn-detail-hero-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.55) 0%,
      transparent 30%,
      transparent 45%,
      rgba(0,0,0,.75) 70%,
      rgba(0,0,0,.95) 100%);
  pointer-events: none;
}
.learn-detail-hero-nav { display: none; }

/* Üst butonlar — her zaman görünür */
.learn-detail-nav-row {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
}

/* Alt içerik — scrollable overlay */
.learn-detail-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}

/* Sol gradient şerit — scroll okları burada */
.learn-detail-left-strip {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(to right, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 65%, transparent 100%);
  position: relative;
  z-index: 2;
}
.ld-arr-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(245,166,35,.45);
  background: rgba(14,14,16,.82);
  color: var(--amber);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s, background .12s;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 16px rgba(0,0,0,.7);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.ld-arr-btn.ld-arr-visible {
  opacity: 1;
  pointer-events: auto;
}
.ld-arr-btn:active {
  background: var(--amber);
  color: #000;
  border-color: var(--amber);
}

.learn-detail-scroll-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 32px 48px 20px;
}

.learn-detail-back-btn,
.learn-detail-build-btn {
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,.25);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: all .15s;
}
.learn-detail-back-btn:active { background: rgba(255,255,255,.2); }
.learn-detail-build-btn {
  background: var(--amber);
  color: #000;
  border-color: var(--amber);
}
.learn-detail-build-btn:active { background: #e09520; }

.learn-detail-title {
  font-family: var(--font-title);
  font-size: clamp(44px, 6vw, 72px);
  color: var(--amber);
  letter-spacing: .04em;
  margin-bottom: 8px;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.learn-detail-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  margin-bottom: 18px;
  line-height: 1.5;
}
.learn-detail-content {
  font-size: 16px;
  color: rgba(255,255,255,.88);
  line-height: 1.8;
}
.learn-detail-content h3 {
  font-family: var(--font-title);
  font-size: 28px; color: var(--amber);
  margin: 20px 0 6px; letter-spacing: .03em;
}
.learn-detail-content ul {
  padding-left: 20px; margin: 10px 0;
}
.learn-detail-content li { margin-bottom: 8px; }

/* Fun facts in learn detail */
.learn-facts {
  margin-top: 32px;
  background: rgba(245,166,35,.06);
  border: 1px solid rgba(245,166,35,.2);
  border-radius: 16px;
  padding: 20px 24px;
}
.learn-facts-title {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--amber);
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.learn-fact-item {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  line-height: 1.5;
}
.learn-fact-item:last-child { border-bottom: none; }

/* ============ ORDER MODE ============ */
#orderMode { flex-direction: column; background: var(--bg); }

.order-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr 400px;
  overflow: hidden;
}

/* Sidebar */
.order-sidebar {
  background: var(--surface);
  border-right: 2px solid var(--border);
  padding: 16px 0;
  overflow-y: auto;
}
.order-sidebar::-webkit-scrollbar { display: none; }
.cat-btn {
  display: block; width: 100%;
  padding: 22px 24px;
  border: none; background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 20px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-align: left;
  cursor: pointer;
  transition: all .12s;
  border-left: 6px solid transparent;
}
.cat-btn:active, .cat-btn.active {
  background: rgba(245,166,35,.12);
  color: var(--amber);
  border-left-color: var(--amber);
}

/* Main menu area */
.order-main {
  padding: 20px 24px 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.order-main::-webkit-scrollbar { width: 4px; }
.order-main::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 2px; }

/* Scroll arrow buttons — fixed overlay on body, NOT inside scrollable element */
.scroll-arrows-float {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 500;
  pointer-events: none;
}
.scroll-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px solid rgba(245,166,35,0.45);
  background: rgba(14,14,16,0.96);
  color: var(--amber);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.75);
  transition: background 0.12s, opacity 0.18s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  opacity: 0;
}
.scroll-btn.scroll-visible {
  opacity: 1;
  pointer-events: all;
}
.scroll-btn:active {
  background: var(--amber);
  color: #000;
  border-color: var(--amber);
}

/* Category video banner */
.cat-banner {
  position: relative;
  width: 100%; height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}
.cat-banner-vid {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  display: flex; align-items: center;
  padding: 0 28px;
}
.cat-banner-title {
  font-family: var(--font-title);
  font-size: 36px;
  color: var(--amber);
  letter-spacing: .06em;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.section-label {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--amber);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.protein-warn {
  background: rgba(220,38,38,.15);
  border: 1.5px solid var(--red);
  color: var(--red);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
  text-align: center;
  letter-spacing: .02em;
}
@keyframes proteinShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(6px); }
}
.protein-warn-shake { animation: proteinShake .35s ease; }

/* Build base info bar (auto-selected) */
.build-base-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245,166,35,.13);
  border: 1.5px solid rgba(245,166,35,.30);
  border: 1px solid rgba(245,166,35,.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.build-base-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,166,35,0.6);
  margin-bottom: 2px;
}
.build-base-name {
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--amber);
  letter-spacing: .04em;
}
.build-base-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--amber);
}

/* Menu item cards */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.menu-card:active { transform: scale(.98); }
.menu-card.selected { border-color: var(--amber); background: rgba(245,166,35,.08); }
.menu-card.unavailable { opacity: .35; pointer-events: none; filter: grayscale(1); }
.menu-card-img {
  width: 100%; height: 150px;
  object-fit: cover; display: block;
  background: var(--surface2);
}
.menu-card-placeholder {
  width: 100%; height: 150px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800;
  color: var(--muted);
  background: var(--surface2);
}
.menu-card-body {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
}
.menu-card-name { font-size: 14px; font-weight: 800; line-height: 1.2; }
.menu-card-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.menu-card-price { font-size: 14px; font-weight: 700; color: var(--amber); flex-shrink: 0; margin-left: 10px; }
.menu-card-add {
  width: 30px; height: 30px;
  background: var(--amber); border-radius: 50%;
  display: grid; place-items: center;
  color: #000; font-weight: 900; font-size: 18px;
  flex-shrink: 0; margin-left: 8px;
}

/* Addon items (proteins, toppings) */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px; margin-bottom: 20px;
}
.addon-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer; transition: all .12s;
  gap: 8px;
}
.addon-item:active { transform: scale(.98); }
.addon-item.selected { border-color: var(--amber); background: rgba(245,166,35,.1); }
.addon-item.unavailable { opacity: .4; pointer-events: none; }
.addon-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.addon-name { font-size: 13px; font-weight: 700; line-height: 1.2; }
.addon-badge {
  display: inline-block;
  font-size: 9px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #000;
  background: var(--amber);
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
  line-height: 1.3;
}
.addon-detail {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
}
.addon-price { font-size: 12px; color: var(--amber); font-weight: 700; flex-shrink: 0; white-space: nowrap; }

/* Build your own add button */
.build-add-btn {
  display: block; width: 100%; max-width: 400px;
  margin: 10px auto 20px;
  padding: 16px;
  border: none; border-radius: 12px;
  background: var(--amber); color: #000;
  font-family: var(--font-body);
  font-size: 16px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer;
}
.build-add-btn:active { transform: scale(.98); }

/* Cart toggle in header */
.cart-toggle { position: relative; }
.cart-icon-wrap { display: flex; align-items: center; gap: 6px; }
.cart-count {
  background: var(--amber); color: #000;
  font-size: 12px; font-weight: 800;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Build preview in cart — receipt style */
.build-preview {
  padding: 10px 16px 0;
  border-bottom: 1px dashed var(--border);
}
.bp-wrap {
  background: rgba(245,166,35,.06);
  border: 1.5px dashed rgba(245,166,35,.4);
  border-radius: 12px;
  padding: 10px 12px 8px;
  margin-bottom: 4px;
}
.bp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.bp-cancel {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
}
.bp-cancel:active { color: var(--red); background: rgba(239,68,68,.15); }
.bp-row-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,.25);
  font-size: 12px;
  cursor: pointer;
  padding: 0 0 0 6px;
  line-height: 1;
  flex-shrink: 0;
  transition: color .12s;
}
.bp-row-remove:active { color: var(--red); }
.bp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
}
.bp-row-base { border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 6px; margin-bottom: 3px; }
.bp-row-base .bp-name { font-size: 14px; font-weight: 800; color: var(--amber); }
.bp-row-base .bp-price { font-size: 14px; font-weight: 800; color: var(--amber); }
.bp-row-addon .bp-name, .bp-row-sauce .bp-name { font-size: 12px; font-weight: 600; color: var(--white); }
.bp-row-sauce .bp-name { color: var(--muted); }
.bp-price { font-size: 11px; font-weight: 700; color: rgba(245,166,35,.7); white-space: nowrap; margin-left: 8px; }
.bp-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 6px;
  padding-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bp-total-price { font-size: 15px; font-weight: 800; color: var(--amber); }

/* Old single-card preview fallback */
.ci-preview {
  border: 1px dashed var(--amber);
  background: rgba(245,166,35,.05);
}

/* Badge: BUILDING... (in build preview) */
.ci-building-badge {
  display: inline-block;
  background: var(--amber);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  animation: pulseBadge 1.5s ease-in-out infinite;
}
@keyframes pulseBadge {
  0%,100% { opacity: .7; }
  50% { opacity: 1; }
}

/* Badge: IN CART (on confirmed cart items) */
.ci-cart-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.ci-in-cart {
  border-left: 3px solid var(--green);
}

/* Right cart panel */
.order-cart {
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cart-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: #000;
}
.cart-head h2 {
  font-family: var(--font-body);
  font-size: 22px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--amber);
}
.cart-items {
  flex: 1; overflow-y: auto;
  padding: 12px 18px;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.cart-items::-webkit-scrollbar { width: 3px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.cart-empty {
  text-align: center; color: var(--muted);
  padding: 40px 16px; font-size: 16px; font-weight: 600;
}

/* Cart item rows */
.ci {
  display: flex; flex-direction: column;
  padding: 10px; margin-bottom: 8px;
  background: var(--surface2); border-radius: 10px;
  border: 1px solid var(--border);
}
.ci-top-row { display: flex; justify-content: space-between; align-items: center; }
.ci-info { flex: 1; }
.ci-name { font-size: 17px; font-weight: 800; }
.ci-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ci-expand-hint {
  font-size: 9px; font-weight: 700;
  color: rgba(245,166,35,0.45);
  letter-spacing: .04em;
  margin-left: 5px;
  vertical-align: middle;
  text-transform: uppercase;
}
.ci-detail-rows {
  display: none;
  margin-top: 8px;
  background: rgba(245,166,35,.06);
  border: 1.5px dashed rgba(245,166,35,.4);
  border-radius: 10px;
  padding: 8px 12px;
}
.ci-expanded .ci-detail-rows { display: block; }
.ci-expanded .ci-expand-hint .ci-arrow { transform: rotate(180deg); display: inline-block; }
.ci-expandable { cursor: pointer; }
.ci-expandable:active { background: rgba(245,166,35,.06); }
.ci-right { display: flex; align-items: center; gap: 8px; margin-left: 8px; flex-shrink: 0; }
.ci-price { font-size: 17px; font-weight: 700; color: var(--amber); min-width: 60px; text-align: right; }

/* Qty control */
.qty { display: flex; align-items: center; background: var(--surface); border-radius: 16px; border: 1px solid var(--border); }
.qty button {
  width: 28px; height: 28px; border: none; background: none;
  color: var(--white); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.qty span { width: 20px; text-align: center; font-size: 12px; font-weight: 800; }

/* Remove item */
.ci-remove {
  width: 24px; height: 24px; border-radius: 50%;
  border: none; background: rgba(239,68,68,.15);
  color: var(--red); font-size: 14px;
  cursor: pointer; display: grid; place-items: center;
}
.ci-remove:active { background: var(--red); color: #fff; }

/* Edit item (koompir / fries) — re-opens build screen with current selections */
.ci-edit {
  width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(245, 166, 35, 0.18);
  color: var(--amber); font-size: 13px;
  cursor: pointer; display: grid; place-items: center;
  font-weight: 700;
}
.ci-edit:active { background: var(--amber); color: #fff; }

/* Doner ingredient tags in cart */
.ci-ing-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ci-ing { font-size: 11px; color: #bbb; background: rgba(255,255,255,0.07); padding: 2px 7px; border-radius: 4px; }
.ci-ing-rm { color: var(--red); text-decoration: line-through; background: rgba(239,68,68,0.1); }
.ci-ing-sauce { color: var(--amber); background: rgba(245,166,35,0.1); }

/* Cart totals */
.cart-totals { padding: 12px 18px; border-top: 1px solid var(--border); }
.ct-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 16px; color: var(--muted); }
.ct-row span:last-child { color: var(--white); }
.ct-row.grand {
  font-size: 24px; font-weight: 800; color: var(--amber);
  padding-top: 12px; border-top: 1px dashed var(--border); margin-top: 8px;
}
.ct-row.grand span { color: var(--amber); }

/* Instagram promo — boosted to actually catch the customer's eye.
   Pulse glow + animated shine sweep + bigger emoji + clearer hierarchy. */
.insta-promo {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  margin: 4px 16px 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #833AB4 0%, #C13584 35%, #FD1D1D 65%, #F77737 100%);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(253, 29, 29, 0.55), 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: instaPulse 2.4s ease-in-out infinite;
}
/* Diagonal shine sweep that travels across the box every few seconds */
.insta-promo::before {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 220%; height: 220%;
  background: linear-gradient(45deg,
    transparent 30%,
    rgba(255,255,255,0.18) 50%,
    transparent 70%);
  transform: translateX(-100%) translateY(-100%);
  animation: instaShine 3.6s ease-in-out infinite;
  pointer-events: none;
}
.insta-icon {
  font-size: 50px; line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
  animation: instaWiggle 2.4s ease-in-out infinite;
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.insta-text {
  position: relative; z-index: 1;
  font-size: 14px; font-weight: 600; line-height: 1.4;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.insta-text strong {
  display: block;
  font-size: 21px; font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.insta-handle {
  display: inline-block;
  color: #FFE082; font-weight: 800;
  background: rgba(0,0,0,0.22);
  padding: 1px 7px; border-radius: 5px;
}

@keyframes instaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(253, 29, 29, 0.45); }
  50%      { box-shadow: 0 0 0 12px rgba(253, 29, 29, 0); }
}
@keyframes instaShine {
  0%   { transform: translateX(-100%) translateY(-100%); }
  60%, 100% { transform: translateX(100%) translateY(100%); }
}
@keyframes instaWiggle {
  0%, 92%, 100% { transform: rotate(0deg) scale(1); }
  94%           { transform: rotate(-8deg) scale(1.08); }
  96%           { transform: rotate(8deg)  scale(1.08); }
  98%           { transform: rotate(-4deg) scale(1.04); }
}

/* Payment buttons */
.cart-actions { padding: 10px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.pay-btn {
  width: 100%; padding: 22px;
  border: none; border-radius: 14px;
  font-family: var(--font-body);
  font-size: 22px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em;
  cursor: pointer; transition: all .12s;
  display: flex; flex-direction: column; align-items: center;
}
.pay-btn:active:not(:disabled) { transform: scale(.98); }
.pay-btn:disabled { opacity: .4; cursor: not-allowed; }
.pay-sub { font-size: 10px; font-weight: 600; opacity: .7; margin-top: 2px; text-transform: none; }
.pay-qr { background: var(--amber); color: #000; }
.pay-counter { background: var(--surface2); color: var(--white); border: 1px solid var(--border); }
/* Clear order button — was a tiny underlined link below CHECKOUT, customers
   never found it. Now an outlined ghost-button that sits *above* the Instagram
   promo, just under the cart totals. Visible without competing with CHECKOUT. */
.clear-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  width: calc(100% - 32px);
  margin: 4px 16px 10px;
  padding: 13px 16px;
  background: rgba(231, 76, 60, 0.06);
  border: 1.5px solid rgba(231, 76, 60, 0.4);
  border-radius: 12px;
  color: var(--red);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .12s, border-color .15s;
}
.clear-btn:active {
  transform: scale(0.98);
  background: rgba(231, 76, 60, 0.16);
  border-color: rgba(231, 76, 60, 0.7);
}

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 100;
}
.modal-overlay.active { display: flex; }
.modal-box {
  width: 90%; max-width: 520px;
  background: #151517;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  padding: 24px;
  max-height: 85vh; overflow-y: auto;
  animation: modalIn .3s cubic-bezier(.16,1,.3,1);
}
@keyframes modalIn {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-title {
  font-family: var(--font-body);
  font-size: 18px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 4px;
}
.modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.modal-cancel {
  margin-top: 16px; padding: 12px 28px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--white);
  font-size: 13px; font-weight: 700; cursor: pointer;
}

/* Back button in checkout modals */
.modal-back-btn {
  display: block;
  margin: 20px auto 0;
  padding: 10px 24px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .03em;
}
.modal-back-btn:active { color: var(--white); }

/* QR modal */
/* QR modal — yatay split: sol = bilgi, sağ = QR (imleç sol tarafta kalır, Live Text tetiklenmez) */
.modal-qr {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  max-width: 680px;
  padding: 40px;
}
.qr-info-side {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qr-info-side .modal-title { text-align: left; margin-bottom: 0; }
.qr-info-side .modal-sub   { text-align: left; margin-bottom: 0; }
.qr-code-side {
  flex-shrink: 0;
}
.qr-container {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  display: inline-block;
}
.qr-container canvas { width: 280px !important; height: 280px !important; display: block; }
.qr-container img, .qr-container a { display: none !important; }
.qr-total { font-size: 32px; font-weight: 800; color: var(--amber); }
.qr-status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--border); border-top-color: var(--amber);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Counter/Success modal */
.modal-counter { text-align: center; padding: 32px 24px; }
.modal-check { font-size: 48px; margin-bottom: 12px; }
.modal-title-success { color: var(--green); font-size: 22px; margin-bottom: 16px; }
.modal-order-id {
  font-size: 48px; font-weight: 900;
  color: var(--white); letter-spacing: 4px;
  background: var(--surface);
  border: 2px solid var(--amber);
  border-radius: 14px;
  padding: 20px; margin-bottom: 16px;
  font-family: var(--font-title);
}
.modal-msg { font-size: 15px; font-weight: 800; color: var(--amber); text-transform: uppercase; margin-bottom: 16px; }
.modal-countdown { font-size: 12px; color: var(--muted); margin-bottom: 16px; }

/* Home button on order confirmation */
.counter-home-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  margin-top: 8px;
  transition: all .12s;
}
.counter-home-btn:active { transform: scale(.97); }

/* Customize modal */
.ingredient-list { margin-bottom: 16px; }
.ing-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.ing-row.locked { opacity: .6; }
.ing-name { font-weight: 700; font-size: 14px; }
.ing-detail { font-size: 11px; color: var(--muted); }
.ing-toggle {
  width: 44px; height: 26px;
  border-radius: 13px; border: none;
  background: var(--green); cursor: pointer;
  position: relative; transition: all .2s;
}
.ing-toggle.off { background: var(--border); }
.ing-toggle::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%; background: #fff;
  transition: all .2s;
}
.ing-toggle.off::after { left: 21px; }

.customize-btns { display: flex; gap: 10px; margin-top: 16px; }
.btn-add-to-cart {
  flex: 1; padding: 14px;
  border: none; border-radius: 12px;
  background: var(--amber); color: #000;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 800;
  text-transform: uppercase; cursor: pointer;
}
.btn-cancel-custom {
  padding: 14px 20px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; color: var(--white);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700; cursor: pointer;
}

/* Variant (drink) chips */
.variant-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.variant-chip {
  padding: 10px 18px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: all .12s;
}
.variant-chip.selected { background: var(--amber); color: #000; border-color: var(--amber); }

/* Sauce validation error */
.sauce-error {
  color: #ff4444; font-size: 20px; font-weight: 800;
  margin-bottom: 10px; letter-spacing: .02em;
  text-transform: uppercase;
}
.variant-wrap.shake-error {
  animation: shakeWarn .5s ease;
  border: 2px solid #ff4444; border-radius: 12px; padding: 8px;
}
@keyframes shakeWarn {
  0%,100% { transform: translateX(0); }
  15% { transform: translateX(-12px); }
  30% { transform: translateX(12px); }
  45% { transform: translateX(-8px); }
  60% { transform: translateX(8px); }
  75% { transform: translateX(-4px); }
  90% { transform: translateX(4px); }
}

/* ============ UPSELL MODAL ============ */
.modal-upsell { max-width: 600px; text-align: center; }
.upsell-title {
  font-family: var(--font-title);
  font-size: 32px;
  color: var(--amber);
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.upsell-sub {
  font-size: 14px; color: var(--muted); margin-bottom: 20px;
}
.upsell-drinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.upsell-drink-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all .12s;
  text-align: center;
}
.upsell-drink-card:active { transform: scale(.97); border-color: var(--amber); }
.upsell-drink-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: var(--muted);
  margin: 0 auto 8px;
}
.upsell-drink-img {
  width: 80px; height: 80px;
  object-fit: contain;
  margin: 0 auto 8px;
  display: block;
}
.upsell-drink-name {
  font-size: 13px; font-weight: 700; margin-bottom: 4px;
}
.upsell-drink-price {
  font-size: 13px; font-weight: 800; color: var(--amber);
}
.upsell-actions {
  display: flex; gap: 12px; justify-content: center; margin-top: 12px;
}
.upsell-skip {
  padding: 14px 28px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.upsell-skip:active { transform: scale(.97); }

/* ============ TIP MODAL ============ */
.modal-tip { max-width: 500px; text-align: center; }
.tip-title {
  font-family: var(--font-title);
  font-size: 32px;
  color: var(--amber);
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.tip-sub {
  font-size: 14px; color: var(--muted); margin-bottom: 20px;
}
.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.tip-opt {
  padding: 14px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px; font-weight: 700;
  color: var(--white);
  cursor: pointer;
  text-align: center;
  transition: all .12s;
  font-family: var(--font-body);
}
.tip-opt:active { transform: scale(.97); }
.tip-opt.selected {
  background: var(--amber);
  color: #000;
  border-color: var(--amber);
}
.tip-skip-opt {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 28px;
  color: var(--muted);
}

.tip-custom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}
.tip-custom-input {
  width: 100px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px; font-weight: 700;
  text-align: center;
  outline: none;
}
.tip-custom-input:focus { border-color: var(--amber); }

.tip-summary {
  background: var(--surface);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.tip-continue-btn {
  padding: 14px 32px;
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .12s;
}
.tip-continue-btn:active:not(:disabled) { transform: scale(.97); }
.tip-continue-btn.disabled,
.tip-continue-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* ============ EMAIL MODAL ============ */
.modal-email { max-width: 450px; text-align: center; }
.email-input {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px; font-weight: 600;
  text-align: center;
  outline: none;
  margin-bottom: 8px;
}
.email-input:focus { border-color: var(--amber); }
.email-input::placeholder { color: var(--muted); }
.email-error {
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ============ PAYMENT CHOICE MODAL ============ */
/* Payment choice — yan yana: SCAN & PAY solda, PAY AT COUNTER sağda
   Kullanıcı sola basar → imleç sol yarıda → QR modal'da QR sağda → Live Text tetiklenmez */
.modal-payment-choice { max-width: 660px; text-align: center; }
.payment-total-display {
  font-family: var(--font-title);
  font-size: 48px;
  color: var(--amber);
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.payment-tip-note {
  font-size: 13px;
  color: var(--green);
  margin-bottom: 20px;
}
.payment-choice-btns {
  display: flex; flex-direction: row; gap: 20px;
  margin-top: 8px;
}
.pay-choice-btn {
  flex: 1;
  padding: 22px 16px;
  border: none;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 16px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .12s;
  line-height: 1.4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.pay-choice-btn:active { transform: scale(.98); }
.pay-choice-btn small {
  font-size: 11px; font-weight: 600;
  opacity: .7; text-transform: none;
}
.pay-choice-scan {
  background: var(--amber); color: #000;
}
.pay-choice-counter {
  background: var(--surface2); color: var(--white);
  border: 1px solid var(--border);
}

/* ============ IDLE WARNING ============ */
.idle-warning {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 500;
}
.idle-warning.active { display: flex; }
.idle-box { text-align: center; }
.idle-title { font-family: var(--font-title); font-size: 48px; color: var(--amber); margin-bottom: 12px; }
.idle-sub { font-size: 16px; color: var(--muted); margin-bottom: 24px; }

/* ============ TOAST ============ */
.toast {
  position: fixed; top: 16px; left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--green); color: #000;
  padding: 12px 24px; border-radius: 30px;
  font-weight: 800; font-size: 13px;
  z-index: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transition: transform .4s cubic-bezier(.175,.885,.32,1.275);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============ VIRTUAL KEYBOARD ============ */
#vKeyboard {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #161618;
  border-top: 2px solid rgba(245,166,35,0.22);
  padding: 14px 14px 28px;
  z-index: 5000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 -16px 60px rgba(0,0,0,0.85);
}
#vKeyboard.kb-visible { transform: translateY(0); }
.kb-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 8px;
}
.kb-key {
  height: 62px;
  min-width: 52px;
  padding: 0 4px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #2c2c2e;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.08s, transform 0.07s;
  flex: 1;
  max-width: 78px;
}
.kb-key:active {
  background: var(--amber);
  color: #000;
  transform: scale(0.9);
}
.kb-key-wide {
  min-width: 82px;
  max-width: 130px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}
.kb-key-space {
  flex: 5;
  max-width: 340px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.5);
}
.kb-key-done {
  background: var(--amber);
  color: #000;
  min-width: 110px;
  max-width: 170px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
}
.kb-key-done:active { background: #c8870f; color: #000; transform: scale(0.9); }
.kb-key-back {
  background: #2a1a1a;
  color: #ff7a7a;
  font-size: 22px;
}
.kb-key-back:active { background: #ff4444; color: #fff; }
.kb-key-accent {
  background: #1e1e10;
  color: var(--amber);
}
.kb-key-accent:active { background: var(--amber); color: #000; }

/* shift email modal up when keyboard open */
body.keyboard-open #emailModal .modal-box {
  transform: translateY(-150px);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
/* active input highlight */
.email-input.kb-active {
  border-color: var(--amber) !important;
  box-shadow: 0 0 0 3px rgba(245,166,35,0.2);
}


/* ============ CATEGORY PICKER ============ */
.cat-picker-mode {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10% 20px;
  overflow: hidden;
}
.cat-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  height: 100%;
  flex: 1;
}
.cat-pick-card {
  position: relative;
  background: rgba(20,14,6,.9);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .1s, border-color .15s;
}
.cat-pick-card:active { transform: scale(.97); border-color: var(--amber); }
.cat-pick-vid {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: .80;
  display: block;
}
.cat-pick-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.08) 55%);
  pointer-events: none;
}
.cat-pick-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 12px 20px;
  font-family: var(--font-title);
  font-size: clamp(22px, 2.4vw, 38px);
  color: var(--white);
  text-align: center;
  letter-spacing: .08em;
  text-shadow: 0 2px 12px rgba(0,0,0,.95);
  z-index: 2;
}

/* ============ QR PAYMENT RECEIVED BUTTON ============ */
/* Payment success full-screen */
.payment-success-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a1a0f;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.payment-success-screen.active { display: flex; }
.pss-inner { text-align: center; padding: 40px; }
.pss-check {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: #1a7a3a;
  color: #fff;
  font-size: 64px;
  line-height: 120px;
  margin: 0 auto 32px;
}
.pss-title {
  font-family: var(--font-title);
  font-size: clamp(36px, 5vw, 64px);
  color: #4ade80;
  letter-spacing: .08em;
  margin: 0 0 16px;
}
.pss-sub {
  font-size: 20px;
  color: rgba(255,255,255,.7);
  margin: 0 0 48px;
}
.pss-home-btn {
  display: inline-block;
  padding: 18px 48px;
  background: #1a7a3a;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s;
}
.pss-home-btn:active { background: #145e2c; }
.pss-countdown {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255,255,255,.4);
  letter-spacing: .06em;
}

/* Instagram CTA on success screen — subtle, integrated, NOT a popup.
   Sits below BACK TO HOME at the bottom of the success screen.
   Customer is parked here for 10s anyway, low-pressure conversion moment. */
.pss-insta {
  margin: 56px auto 0;
  padding: 18px 22px;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg,
    rgba(131, 58, 180, 0.18) 0%,
    rgba(193, 53, 132, 0.18) 35%,
    rgba(253, 29, 29, 0.18) 65%,
    rgba(247, 119, 55, 0.18) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  text-align: left;
}
.pss-insta-icon {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.pss-insta-text {
  flex: 1;
}
.pss-insta-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 800;
  color: #FFE082;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.pss-insta-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
}
.pss-insta-handle {
  color: #fff;
  font-weight: 800;
}
.pss-insta-qr {
  width: 84px;
  height: 84px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pss-insta-qr canvas,
.pss-insta-qr img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  pointer-events: none;
}
