/* ============================================================
   PL8 FOOD & COFFEE — styles (customer site + kitchen board)
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #17120e;
  --card: #1d1712;
  --card-2: #241c15;
  --line: #322820;
  --text: #f4ede4;
  --muted: #a8988a;
  --accent: #15b100;
  --accent-2: #15b100;
  --green: #46c07a;
  --red: #e05c5c;
  --blue: #5ca8e0;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ambient glows */
.bg-glow { position: fixed; border-radius: 50%; filter: blur(120px); opacity: .35; pointer-events: none; z-index: 0; }
.bg-glow-1 { width: 540px; height: 540px; background: #5a3413; top: -180px; right: -140px; }
.bg-glow-2 { width: 480px; height: 480px; background: #2b1a0c; bottom: -160px; left: -160px; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(14, 11, 9, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo-plate {
  font-family: var(--font-body); font-weight: 800; letter-spacing: .08em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1c1104; padding: 5px 12px; border-radius: 8px; font-size: 15px;
  border: 2px solid #f7c682; box-shadow: 0 4px 16px rgba(232, 163, 76, .35);
}
.logo-plate.sm { font-size: 12px; padding: 3px 9px; }
.logo-text { font-family: var(--font-display); font-size: 19px; }
.logo-text em { color: var(--accent); font-style: italic; }
.header-nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.header-nav a:hover { color: var(--text); }
.ig-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 14px; }
.open-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.open-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
.open-badge.closed .dot { background: var(--red); box-shadow: 0 0 10px var(--red); animation: none; }
@keyframes pulse { 50% { opacity: .5; } }
.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 13px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  transition: .2s;
}
.cart-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800;
  background: var(--accent); color: #1c1104; border-radius: 99px; padding: 0 5px;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.cart-count.bump { transform: scale(1.45); }

.closed-banner {
  position: sticky; top: 73px; z-index: 40;
  text-align: center; padding: 10px 16px; font-size: 14px;
  background: linear-gradient(90deg, #3a1d16, #46261a);
  border-bottom: 1px solid #5b3423; color: #f2c9a8;
}

/* ---------------- hero ---------------- */
main { position: relative; z-index: 1; }
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) 24px 56px;
}
.hero-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.hero h1 { font-family: var(--font-display); font-size: clamp(38px, 5.4vw, 62px); line-height: 1.08; font-weight: 800; }
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, #f6d9a8 50%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 17px; max-width: 520px; margin: 20px 0 28px; }
.hero-sub strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; }
.hero-stats div { display: grid; }
.hero-stats strong { font-size: 17px; }
.hero-stats span { font-size: 12.5px; color: var(--muted); }

.hero-art { position: relative; height: 360px; }
.hero-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow);
}
.hero-card .emoji { font-size: 30px; }
.hero-card strong { display: block; font-size: 15px; }
.hero-card span:last-child { font-size: 12.5px; color: var(--muted); }
.hero-card div span { font-size: 12.5px; color: var(--muted); }
.hero-plate {
  position: absolute; font-weight: 800; letter-spacing: .1em; font-size: 13px;
  background: #f4ede4; color: #171310; border-radius: 10px; padding: 12px 18px;
  border: 3px solid #c9bfb2; box-shadow: var(--shadow);
}
.hero-plate span { background: #171310; color: #f4ede4; border-radius: 5px; padding: 2px 8px; margin-right: 8px; }
.float-1 { top: 8%; left: 6%; animation: float 6s ease-in-out infinite; }
.float-2 { top: 46%; right: 2%; animation: float 7s ease-in-out .8s infinite; }
.float-3 { bottom: 6%; left: 12%; animation: float 6.5s ease-in-out .4s infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 14px;
  padding: 12px 22px; border: 1px solid transparent; transition: .2s;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1c1104; box-shadow: 0 10px 30px rgba(232, 163, 76, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(232, 163, 76, .42); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
  background: var(--card-2); color: var(--muted); border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px;
}
.icon-btn:hover { color: var(--text); }

/* ---------------- sections ---------------- */
.section-title { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-top: 8px; }

.how { max-width: 1180px; margin: 0 auto; padding: 40px 24px 20px; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.how-step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 20px 22px;
}
.how-num {
  position: absolute; top: 14px; right: 16px; font-size: 40px; font-weight: 800;
  color: rgba(232, 163, 76, .14); font-family: var(--font-display);
}
.how-step .emoji { font-size: 30px; }
.how-step h3 { margin: 12px 0 6px; font-size: 16.5px; }
.how-step p { font-size: 13.5px; color: var(--muted); }

/* ---------------- menu ---------------- */
.menu-section { max-width: 1180px; margin: 0 auto; padding: 56px 24px 80px; }
.menu-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 28px 0 30px; }
.menu-tab {
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  padding: 10px 20px; border-radius: 99px; transition: .2s;
  background: var(--card); color: var(--muted); border: 1px solid var(--line);
}
.menu-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1c1104; border-color: transparent; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.menu-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s, border-color .2s; animation: cardIn .4s both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.menu-card:hover { transform: translateY(-4px); border-color: #4a3a29; }
.menu-card .emoji { font-size: 38px; }
.menu-card h3 { font-size: 17px; }
.menu-card .desc { font-size: 13px; color: var(--muted); flex: 1; }
.menu-card .card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.menu-card .price { font-weight: 800; color: var(--accent); font-size: 16px; }
.badge-popular {
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(232, 163, 76, .15); color: var(--accent); border: 1px solid rgba(232, 163, 76, .35);
  padding: 3px 9px; border-radius: 99px; width: fit-content;
}
.add-btn {
  font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer;
  background: var(--card-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 16px; transition: .2s;
}
.add-btn:hover:not(:disabled) { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1c1104; border-color: transparent; }
.add-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------------- footer ---------------- */
.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1180px; margin: 0 auto; padding: 28px 24px 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.site-footer > div:first-child { display: flex; align-items: center; gap: 12px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--text); }
.staff-link { display: none; }

/* ---------------- drawer ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s;
}
.overlay.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(420px, 100vw); display: flex; flex-direction: column;
  background: var(--bg-soft); border-left: 1px solid var(--line);
  transform: translateX(105%); transition: transform .32s cubic-bezier(.25, 1, .4, 1);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--font-display); font-size: 21px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 10px; }
.cart-empty .emoji { font-size: 44px; display: block; margin-bottom: 10px; }
.cart-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--line); animation: cardIn .3s both;
}
.cart-item .emoji { font-size: 26px; }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-info strong { font-size: 14.5px; display: block; }
.cart-item .ci-info span { font-size: 13px; color: var(--accent); font-weight: 700; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button {
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-weight: 800;
  background: var(--card-2); color: var(--text); border: 1px solid var(--line);
}
.qty button:hover { border-color: var(--accent); }
.qty span { min-width: 18px; text-align: center; font-weight: 700; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.track-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--accent); color: #fff; border-radius: 14px;
  padding: 12px 16px; margin-bottom: 16px; font-size: 14px; font-weight: 700;
}
.track-banner .btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 10px; white-space: nowrap; }
.total-row { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 14px; }
.total-row strong { color: var(--accent); font-size: 19px; }

/* ---------------- modal / checkout ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: flex;
  align-items: flex-start; justify-content: center;
  background: rgba(0, 0, 0, .65); backdrop-filter: blur(5px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 18px;
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: min(520px, 100%);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 28px; box-shadow: var(--shadow); animation: modalIn .3s cubic-bezier(.3, 1.4, .5, 1) both;
  margin: 18px 0;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 10; width: 40px; height: 40px; font-size: 18px; }
.step h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 4px; }
.muted { color: var(--muted); font-size: 14px; }
form label { display: block; font-size: 13px; font-weight: 700; margin-top: 15px; }
form input, form textarea {
  width: 100%; margin-top: 6px; font: inherit; font-size: 15px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--accent); }
form input.invalid { border-color: var(--red); }
.plate-input { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-summary {
  margin-top: 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; font-size: 13.5px;
}
.order-summary .os-row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.order-summary .os-total { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 9px; border-top: 1px dashed var(--line); font-weight: 800; font-size: 15px; color: var(--text); }
form .btn { margin-top: 20px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#toPayBtn { margin-top: 20px; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#cancelDetails { margin-top: 8px; cursor: pointer; }

.pay-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 20px 0 16px; }
.pay-total { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.pay-total strong { font-size: 26px; color: var(--accent); }
.ziina-mark { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
#backToDetails { margin-top: 10px; }
.pay-error { margin-top: 14px; color: var(--red); font-size: 13.5px; text-align: center; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; display: inline-block;
  border: 2.5px solid rgba(28, 17, 4, .3); border-top-color: #1c1104; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* tracking */
.track-head { text-align: center; margin-bottom: 20px; }
.check-anim {
  display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 12px;
  border-radius: 50%; font-size: 28px; font-weight: 800; color: #08210f;
  background: var(--green); animation: pop .5s cubic-bezier(.3, 1.8, .5, 1) both;
}
@keyframes pop { from { transform: scale(0); } }
.order-code { color: var(--accent); letter-spacing: .1em; }
.track-plate {
  text-align: center; font-weight: 800; letter-spacing: .12em; font-size: 16px;
  background: #f4ede4; color: #171310; border: 3px solid #c9bfb2; border-radius: 10px;
  padding: 9px; margin-bottom: 22px; text-transform: uppercase;
}
.track-steps { list-style: none; display: grid; gap: 4px; }
.track-steps li { display: flex; gap: 14px; padding: 10px 6px; border-radius: 12px; opacity: .38; transition: .3s; }
.track-steps li.active { opacity: 1; background: rgba(232, 163, 76, .07); }
.track-steps li.done { opacity: .8; }
.ts-dot {
  flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%;
  border: 2px solid var(--muted); display: grid; place-items: center; font-size: 13px;
}
li.active .ts-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 14px rgba(232, 163, 76, .6); animation: pulse 1.6s infinite; }
li.done .ts-dot { border-color: var(--green); background: var(--green); }
li.done .ts-dot::after { content: "✓"; color: #08210f; font-weight: 800; }
.track-steps strong { display: block; font-size: 14.5px; }
.track-steps li div span { font-size: 12.5px; color: var(--muted); }
#newOrderBtn { margin-top: 20px; }

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 120;
  background: var(--card); border: 1px solid var(--accent); color: var(--text);
  padding: 13px 22px; border-radius: 14px; font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow); animation: toastIn .3s cubic-bezier(.3, 1.5, .5, 1) both;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; } .delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; } .delay-4 { transition-delay: .4s; }

/* ============================================================
   KITCHEN BOARD
   ============================================================ */
.kitchen-body { background: #0b0d10; }
.k-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; z-index: 10; }
.k-login-card {
  width: min(380px, 100%); text-align: center;
  background: #14181d; border: 1px solid #232a33; border-radius: 22px; padding: 40px 32px;
}
.k-login-card h2 { font-family: var(--font-display); margin: 14px 0 6px; }
.k-login-card input {
  width: 100%; margin: 22px 0 14px; text-align: center; letter-spacing: .5em; font-size: 24px; font-weight: 800;
  background: #0b0d10; color: var(--text); border: 1px solid #232a33; border-radius: 14px; padding: 14px;
}
.k-login-card input:focus { outline: none; border-color: var(--accent); }
.pin-error { color: var(--red); font-size: 13.5px; min-height: 20px; }

.k-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px clamp(14px, 3vw, 32px); background: rgba(11, 13, 16, .9);
  backdrop-filter: blur(12px); border-bottom: 1px solid #232a33;
}
.k-title { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 17px; }
.k-stats { display: flex; gap: 26px; }
.k-stats div { display: grid; text-align: center; }
.k-stats strong { font-size: 19px; color: var(--accent); }
.k-stats span { font-size: 11.5px; color: var(--muted); }
.k-actions { display: flex; align-items: center; gap: 10px; }
.mode-pill {
  font-size: 11.5px; font-weight: 800; letter-spacing: .05em; padding: 5px 12px; border-radius: 99px;
}
.mode-pill.live { background: rgba(70, 192, 122, .15); color: var(--green); border: 1px solid rgba(70, 192, 122, .4); }
.mode-pill.demo { background: rgba(232, 163, 76, .13); color: var(--accent); border: 1px solid rgba(232, 163, 76, .4); }

.k-board {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 20px clamp(14px, 3vw, 32px) 40px; align-items: start;
}
.k-col { background: #12151a; border: 1px solid #232a33; border-radius: 18px; min-height: 300px; }
.k-col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #232a33; font-weight: 800; font-size: 14px;
}
.k-col-head .count {
  min-width: 26px; height: 26px; display: grid; place-items: center; padding: 0 7px;
  border-radius: 99px; font-size: 13px; background: #1d232b; color: var(--muted);
}
.k-col[data-col="new"] .k-col-head { color: var(--accent); }
.k-col[data-col="preparing"] .k-col-head { color: var(--blue); }
.k-col[data-col="ready"] .k-col-head { color: var(--green); }
.k-col-body { padding: 12px; display: grid; gap: 12px; }
.k-empty { text-align: center; color: #4a545f; font-size: 13px; padding: 30px 6px; }

.k-card {
  background: #171c22; border: 1px solid #262e38; border-radius: 15px; padding: 14px;
  animation: cardIn .35s both;
}
.k-card.flash { animation: flashIn 1.2s both; }
@keyframes flashIn {
  0% { opacity: 0; transform: scale(.94); box-shadow: 0 0 0 3px var(--accent); }
  40% { opacity: 1; transform: none; box-shadow: 0 0 0 3px var(--accent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.k-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.k-code { font-weight: 800; color: var(--accent); letter-spacing: .06em; font-size: 13.5px; }
.k-time { font-size: 11.5px; color: var(--muted); }
.k-cust { font-size: 14px; font-weight: 700; }
.k-phone { font-size: 12px; color: var(--muted); }
.k-plate {
  display: inline-block; margin: 8px 0; font-weight: 800; letter-spacing: .1em; font-size: 13px;
  background: #f4ede4; color: #171310; border: 2px solid #b9ac9c; border-radius: 7px; padding: 3px 10px;
  text-transform: uppercase;
}
.k-car { font-size: 12px; color: var(--muted); margin-left: 8px; }
.k-items { margin: 8px 0; display: grid; gap: 3px; }
.k-items div { font-size: 13.5px; display: flex; justify-content: space-between; }
.k-items .qty-x { color: var(--accent); font-weight: 800; margin-right: 6px; }
.k-notes {
  font-size: 12.5px; background: rgba(232, 163, 76, .08); border-left: 3px solid var(--accent);
  padding: 7px 10px; border-radius: 0 8px 8px 0; margin: 8px 0; color: #d8c5ac;
}
.k-paid { font-size: 11.5px; font-weight: 800; color: var(--green); }
.k-total { font-weight: 800; font-size: 14px; }
.k-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.k-advance {
  font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; border: none;
  border-radius: 10px; padding: 9px 14px; color: #10151b; transition: .15s;
}
.k-advance:hover { transform: translateY(-1px); filter: brightness(1.1); }
.adv-new { background: var(--blue); }
.adv-preparing { background: var(--green); }
.adv-ready { background: #cbd5df; }

.k-wait { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgba(92, 168, 224, .15); color: var(--blue); }
.k-wait-orange { background: rgba(245, 166, 35, .15); color: #f5a623; }
.k-wait-red { background: rgba(224, 92, 92, .15); color: var(--red); animation: pulse 1.6s infinite; }
.k-done { opacity: .6; border-color: var(--green); }
.k-delete {
  font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; border: none;
  border-radius: 10px; padding: 9px 14px; background: var(--red); color: #fff; transition: .15s;
}
.k-delete:hover { transform: translateY(-1px); filter: brightness(1.15); }
.k-unpaid { color: var(--red) !important; }
.k-fade-out { opacity: 0; transform: scale(.9); transition: opacity .6s, transform .6s; pointer-events: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .k-board { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .header-nav { display: none; }
}
@media (max-width: 620px) {
  .k-board { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .k-stats { display: none; }
  .hero-stats { gap: 20px; }
}

/* ---------------- language toggle ---------------- */
.lang-toggle {
  font: inherit; font-weight: 800; font-size: 13px; cursor: pointer;
  background: var(--card); color: var(--accent); border: 1px solid var(--line);
  border-radius: 99px; padding: 6px 14px; transition: .2s; white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--accent); background: var(--card-2); }

/* ---------------- menu images ---------------- */
.menu-img {
  width: 100%; height: 160px; object-fit: cover; border-radius: 12px;
  margin-bottom: 4px;
}

/* ---------------- Arabic font ---------------- */
html[lang="ar"] body {
  font-family: "Noto Kufi Arabic", "Inter", system-ui, sans-serif;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .logo-text,
html[lang="ar"] .section-title,
html[lang="ar"] .step h3,
html[lang="ar"] .drawer-head h3 {
  font-family: "Noto Kufi Arabic", "Playfair Display", Georgia, serif;
}

/* ---------------- RTL overrides ---------------- */
html[dir="rtl"] .drawer {
  right: auto; left: 0;
  border-left: none; border-right: 1px solid var(--line);
  transform: translateX(-105%);
}
html[dir="rtl"] .drawer.open { transform: none; }
html[dir="rtl"] .cart-count { right: auto; left: -6px; }
html[dir="rtl"] .hero-plate span { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] .how-num { right: auto; left: 16px; }
html[dir="rtl"] .modal-close { right: auto; left: 16px; }
html[dir="rtl"] .k-notes { border-left: none; border-right: 3px solid var(--accent); border-radius: 8px 0 0 8px; }
html[dir="rtl"] .hero-stats { direction: rtl; }
html[dir="rtl"] .order-summary .os-row { direction: rtl; }
html[dir="rtl"] .pay-total { direction: rtl; }
html[dir="rtl"] .total-row { direction: rtl; }
html[dir="rtl"] .cart-item { direction: rtl; }

/* ---------------- reviews ---------------- */
.reviews-section { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }
.reviews-summary { text-align: center; margin: 24px 0 16px; }
.reviews-avg { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; }
.avg-stars { color: #f5a623; font-size: 22px; letter-spacing: 2px; }
.reviews-avg strong { font-size: 24px; }
.reviews-avg span { color: var(--muted); font-size: 14px; }
.reviews-list { display: grid; gap: 14px; margin-bottom: 32px; }
.reviews-empty { text-align: center; color: var(--muted); padding: 30px 0; font-size: 14px; }
.review-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.review-head-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.review-head strong { font-size: 15px; }
.review-stars { color: #f5a623; letter-spacing: 1px; font-size: 14px; }
.review-delete-btn {
  flex: none; background: none; border: none; cursor: pointer;
  font-size: 16px; padding: 4px 7px; border-radius: 8px;
  opacity: .35; transition: opacity .2s, background .2s;
  line-height: 1;
}
.review-delete-btn:hover, .review-delete-btn:focus { opacity: 1; background: rgba(224, 92, 92, .12); }
.review-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.review-date { font-size: 11.5px; color: var(--muted); opacity: .6; display: block; margin-top: 8px; }
.review-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.review-form h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 14px; }
.star-rating { display: flex; gap: 6px; margin-bottom: 14px; }
.star-rating button {
  font-size: 28px; background: none; border: none; cursor: pointer;
  color: var(--line); transition: color .15s, transform .15s; padding: 0;
}
.star-rating button:hover, .star-rating button.active { color: #f5a623; transform: scale(1.15); }
.review-form input, .review-form textarea {
  width: 100%; font: inherit; font-size: 15px; margin-bottom: 12px;
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s;
}
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--accent); }
.review-form .btn { margin-top: 4px; }

/* ---------------- menu search ---------------- */
.menu-search { display: flex; justify-content: center; margin: 20px 0 4px; }
.menu-search-input {
  width: min(500px, 100%);
  font: inherit; font-size: 15px;
  background: var(--card); color: var(--text);
  border: 1.5px solid var(--line); border-radius: 99px;
  padding: 12px 22px;
  transition: border-color .2s, box-shadow .2s;
}
.menu-search-input::placeholder { color: var(--muted); }
.menu-search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21, 177, 0, .12); }
.menu-no-results { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 10px; font-size: 15px; }

/* ---------------- card inline qty controls ---------------- */
.card-qty { display: flex; align-items: center; gap: 8px; }
.card-qty button {
  width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-weight: 800; font-size: 17px;
  background: var(--accent); color: #1c1104; border: none;
  display: grid; place-items: center; transition: filter .15s, transform .15s; line-height: 1;
}
.card-qty button:hover { filter: brightness(1.12); transform: scale(1.08); }
.card-qty button:active { transform: scale(.95); }
.card-qty span { min-width: 22px; text-align: center; font-weight: 800; font-size: 15px; color: var(--text); }

/* ---------------- floating cart bar ---------------- */
.float-cart {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 80; width: min(440px, calc(100% - 32px));
}
.float-cart[hidden] { display: none; }
.float-cart:not([hidden]) { animation: floatCartIn .38s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes floatCartIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(.95); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.float-cart-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 15px 20px; border-radius: 18px;
  background: linear-gradient(135deg, #18c700, #15b100);
  color: #1c1104; font: inherit; font-weight: 800; font-size: 15px;
  border: none; cursor: pointer;
  box-shadow: 0 8px 32px rgba(21, 177, 0, .5);
  transition: transform .2s, box-shadow .2s;
}
.float-cart-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(21, 177, 0, .6); }
.float-cart-btn:active { transform: translateY(0); }
.float-cart-badge {
  background: rgba(28, 17, 4, .25); border-radius: 99px;
  min-width: 28px; height: 28px; display: grid; place-items: center;
  font-size: 14px; padding: 0 6px; flex: none;
}
.float-cart-label { flex: 1; text-align: center; }
.float-cart-price { font-size: 14px; opacity: .9; flex: none; }

html[dir="rtl"] .float-cart-label { text-align: center; }
html[dir="rtl"] .menu-search-input { text-align: right; }
