:root {
  --bg: #f6f4ee;
  --card: #ffffff;
  --ink: #1d2420;
  --muted: #6b736d;
  --line: #e4e1d8;
  --green: #1f5f3f;
  --green-2: #2f7d55;
  --green-soft: #e3efe7;
  --tomato: #d9472b;
  --amber: #b7791f;
  --amber-soft: #fbf0d9;
  --blue: #2457a6;
  --blue-soft: #e4ecf8;
  --violet: #6b46c1;
  --violet-soft: #ece6f8;
  --grey-soft: #eeede9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,30,25,.06), 0 4px 14px rgba(20,30,25,.05);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, "Noto Sans Arabic", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { padding-bottom: env(safe-area-inset-bottom); -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green-2); }
.boot { padding: 40vh 0; text-align: center; color: var(--muted); }
[dir=rtl] .ltr { direction: ltr; unicode-bidi: embed; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--green); color: #fff;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 0;
}
.top-row { display: flex; align-items: center; gap: 10px; max-width: 1200px; margin: 0 auto; }
.brand { font-weight: 700; font-size: 17px; letter-spacing: .2px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; font-weight: 400; font-size: 12px; opacity: .75; }
.top .icon-btn { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 10px; padding: 7px 11px; font-size: 13px; cursor: pointer; }
.top .icon-btn:hover { background: rgba(255,255,255,.2); }
.tabs { display: flex; gap: 4px; overflow-x: auto; max-width: 1200px; margin: 8px auto 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  color: rgba(255,255,255,.75); text-decoration: none; padding: 10px 12px 11px; font-size: 14px; white-space: nowrap;
  border-bottom: 3px solid transparent; font-weight: 500;
}
.tabs a.on { color: #fff; border-bottom-color: #9ad6a6; }

main { max-width: 1200px; margin: 0 auto; padding: 16px; }
.narrow { max-width: 760px; }

/* ---------- basics ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1 { font-size: 22px; margin: 4px 0 12px; }
h2 { font-size: 17px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 0 0 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 11px;
  padding: 9px 14px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--ink);
  min-height: 40px;
}
.btn:hover { border-color: #cfcbbf; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-2); }
.btn.danger { color: var(--tomato); }
.btn.big { padding: 13px 20px; font-size: 16px; min-height: 50px; border-radius: 13px; }
.btn.block { width: 100%; }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: 13px; border-radius: 9px; }
.link { background: none; border: 0; color: var(--green-2); cursor: pointer; padding: 0; font-weight: 600; }

label.f { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
label.f > input, label.f > select, label.f > textarea { margin-top: 5px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=tel], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; min-height: 42px;
  font-size: 16px; /* stops iOS zoom */
}
input::placeholder, textarea::placeholder { color: #b9b6ac; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9ad6a6; border-color: var(--green-2); }
textarea { min-height: 70px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.s-new { background: var(--blue-soft); color: var(--blue); }
.s-preparing { background: var(--amber-soft); color: var(--amber); }
.s-ready { background: var(--violet-soft); color: var(--violet); }
.s-out_for_delivery { background: #e2f3f1; color: #17766c; }
.s-delivered { background: var(--green-soft); color: var(--green); }
.s-cancelled { background: var(--grey-soft); color: var(--muted); text-decoration: line-through; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--green-soft); color: var(--green); }
.tag.warn { background: #fde6e1; color: var(--tomato); }

.empty { text-align: center; padding: 40px 10px; color: var(--muted); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background:
  radial-gradient(circle at 20% 10%, #dcefe1 0, transparent 45%), radial-gradient(circle at 90% 90%, #fbe3da 0, transparent 40%), var(--bg); }
.login { width: 100%; max-width: 380px; }
.login .biglogo { display: block; width: 100%; max-width: 280px; margin: 0 auto 6px; }
.top .mark { height: 38px; width: auto; background: #fff; border-radius: 10px; padding: 3px 6px; flex-shrink: 0; }
.err { color: var(--tomato); font-size: 14px; min-height: 20px; }

/* ---------- customer ordering ---------- */
.order-head { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 14px; cursor: pointer; white-space: nowrap; font-weight: 500; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.plist { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cat-h { padding: 10px 16px 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; background: #faf9f5; border-bottom: 1px solid var(--line); }
.prow { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow.has { background: #f3faf5; }
.pname { font-weight: 600; font-size: 15px; }
.pname .alt { font-weight: 400; color: var(--muted); font-size: 13px; margin-inline-start: 6px; }
.pprice { font-size: 13px; color: var(--muted); }
.pprice b { color: var(--ink); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #fff; flex-shrink: 0; }
.stepper button { width: 38px; height: 40px; border: 0; background: #fff; font-size: 20px; cursor: pointer; color: var(--green); font-weight: 600; }
.stepper button:active { background: var(--green-soft); }
.stepper input { width: 56px; border: 0; text-align: center; padding: 0; min-height: 40px; border-radius: 0; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper input:focus { outline: none; background: #f3faf5; }
.cartbar {
  position: sticky; bottom: 0; z-index: 15; margin: 16px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(246,244,238,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
}
.cartbar .inner { max-width: 760px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.total { font-size: 20px; font-weight: 800; }

.progress { display: flex; gap: 4px; margin: 8px 0 4px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--grey-soft); }
.progress span.on { background: var(--green-2); }
.lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.lines td { padding: 6px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.lines tr:last-child td { border-bottom: 0; }
.lines td.r { text-align: end; white-space: nowrap; padding-inline-start: 10px; }
.changed { color: var(--amber); font-weight: 700; }

/* ---------- staff board ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=date] { width: auto; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 11px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--ink); color: #fff; }
.seg .count { opacity: .7; font-weight: 500; margin-inline-start: 3px; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; align-items: start; }
.ocard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; border-top: 4px solid var(--line); }
.ocard.st-new { border-top-color: var(--blue); }
.ocard.st-preparing { border-top-color: var(--amber); }
.ocard.st-ready { border-top-color: var(--violet); }
.ocard.st-out_for_delivery { border-top-color: #17766c; }
.ocard.st-delivered { border-top-color: var(--green-2); }
.ocard .oid { font-size: 13px; color: var(--muted); font-weight: 600; }
.ocard .cust { font-size: 17px; font-weight: 700; }
.ocard .note { background: var(--amber-soft); border-radius: 9px; padding: 8px 10px; font-size: 14px; margin: 8px 0; }
.ocard .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ocard .actions .btn { flex: 1; }
.packin { width: 76px !important; min-height: 32px !important; padding: 4px 8px !important; text-align: center; font-size: 15px !important; }
.new-pulse { animation: pulse 1.6s ease-out 3; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(36,87,166,.45); } 100% { box-shadow: 0 0 0 14px rgba(36,87,166,0); } }

table.t { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.t th { text-align: start; font-size: 12px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #faf9f5; position: sticky; top: 0; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: end; }
.tablewrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
table.t input { min-height: 34px; padding: 5px 8px; font-size: 15px; }
.inactive td { opacity: .5; }

/* ---------- modal & toast ---------- */
dialog#modal { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog#modal::backdrop { background: rgba(20,25,22,.45); }
#modal-body { padding: 20px; }
#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.bad { background: var(--tomato); }

.done { text-align: center; padding: 30px 10px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 34px; margin: 0 auto 12px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.kpi .v { font-size: 24px; font-weight: 800; }
.kpi .l { font-size: 13px; color: var(--muted); }

/* ---------- print ---------- */
#print { display: none; }
@media print {
  body > *:not(#print) { display: none !important; }
  #print { display: block; font-size: 13px; color: #000; }
  .slip { page-break-after: always; padding: 10px 4px; }
  .slip:last-child { page-break-after: auto; }
  .slip h2 { font-size: 20px; margin: 0; }
  .slip table { width: 100%; border-collapse: collapse; margin-top: 10px; }
  .slip th, .slip td { border-bottom: 1px solid #999; padding: 6px 4px; text-align: start; }
  .slip td.r, .slip th.r { text-align: end; }
  .box { display: inline-block; width: 14px; height: 14px; border: 1.5px solid #000; }
}

/* ---------- product pictures ---------- */
.pic { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 14px; object-fit: cover; line-height: 1; user-select: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
img.pic { background: #f3f1ea; }
.prow .pic { transition: transform .2s; }
.prow:active .pic { transform: scale(.94); }

/* ---------- animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: fadeUp .35s ease-out both; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .plist .prow { animation: fadeUp .35s ease-out both; }
  .plist .prow:nth-child(2) { animation-delay: .03s } .plist .prow:nth-child(3) { animation-delay: .06s }
  .plist .prow:nth-child(4) { animation-delay: .09s } .plist .prow:nth-child(5) { animation-delay: .12s }
  .plist .prow:nth-child(n+6) { animation-delay: .15s }
  .pic.pop { animation: pop .38s cubic-bezier(.3,1.6,.5,1); }
  @keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.22) rotate(-6deg); } 100% { transform: scale(1); } }
  .cartbar .inner.bump .total { animation: bump .35s ease-out; }
  @keyframes bump { 40% { transform: scale(1.08); color: var(--green-2); } }
  dialog#modal[open] { animation: sheetIn .28s cubic-bezier(.2,.9,.3,1.1); }
  @keyframes sheetIn { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
  .done .tick { animation: tickIn .5s cubic-bezier(.3,1.7,.5,1) both; }
  @keyframes tickIn { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
  .ocard { animation: fadeUp .3s ease-out both; }
  .btn { transition: transform .12s, background .15s, border-color .15s; }
  .btn:active:not(:disabled) { transform: scale(.96); }
  .chip { transition: background .2s, color .2s, transform .12s; }
  .chip:active { transform: scale(.95); }
  .login { animation: fadeUp .5s ease-out both; }
  .login .biglogo { animation: floaty 5s ease-in-out infinite; }
  @keyframes floaty { 50% { transform: translateY(-6px); } }
}
.flying { position: fixed; z-index: 200; pointer-events: none; transition: transform .6s cubic-bezier(.5,-0.2,.7,.9), opacity .6s; border-radius: 14px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confetti span { position: absolute; top: -40px; animation: fall 2.2s cubic-bezier(.25,.6,.5,1) forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(var(--r)); } }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--green-soft); border-top-color: var(--green); margin: 0 auto 14px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- view switch (store / list) ---------- */
.viewswitch { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.viewswitch button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--muted); }
.viewswitch button.on { background: var(--green); color: #fff; }

/* ---------- 3D store ---------- */
.store3d { position: relative; height: min(62vh, 560px); border-radius: var(--radius); overflow: hidden; background: #f4efe4; box-shadow: var(--shadow); touch-action: none; user-select: none; }
.store3d canvas { display: block; width: 100%; height: 100%; }
.store3d .hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(29,36,32,.78); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; pointer-events: none; transition: opacity .6s; white-space: nowrap; }
.store3d .aisle-nav { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.store3d .aisle-nav button { border: 0; background: rgba(255,255,255,.92); border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 13px; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.store3d .aisle-nav button.on { background: var(--green); color: #fff; }
.store3d .walk { position: absolute; right: 10px; bottom: 54px; display: flex; flex-direction: column; gap: 6px; }
.store3d .walk button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 20px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.store3d .fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); }
.pick { text-align: center; }
.pick .pic { margin: 0 auto 10px; }
.pick .stepper { margin: 14px auto; width: max-content; }
.pick .stepper button { width: 54px; height: 54px; font-size: 26px; }
.pick .stepper input { width: 80px; min-height: 54px; font-size: 22px; }

.pic.letter { color: #2f5d43; font-weight: 800; font-family: system-ui, Tahoma, sans-serif; }
.photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 340px; overflow: auto; margin-top: 10px; }
.photogrid button { border: 2px solid transparent; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #f3f1ea; aspect-ratio: 1; }
.photogrid button:hover { border-color: var(--green-2); }
.photogrid img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* =================== Modern refresh =================== */
:root {
  --bg: #f5f6f3;
  --ink: #15201a;
  --muted: #6f7a72;
  --line: #e6e9e3;
  --green: #17603d;
  --green-2: #1f7a4d;
  --green-soft: #e7f3ec;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(16,24,20,.04), 0 8px 24px rgba(16,24,20,.06);
  font-family: "Plus Jakarta Sans", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}
:lang(ar), [dir=rtl] { font-family: "Tajawal", "Plus Jakarta Sans", system-ui, sans-serif; }
body { background: var(--bg); }
h1 { font-weight: 800; letter-spacing: -.02em; }

/* header: light, glassy, logo-forward */
.top { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); color: var(--ink); border-bottom: 1px solid var(--line); }
.top .mark { background: none; padding: 0; height: 40px; border-radius: 0; }
.brand { font-weight: 800; font-size: 16px; }
.brand small { color: var(--muted); opacity: 1; font-weight: 500; }
.top .icon-btn { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-weight: 600; }
.top .icon-btn:hover { background: #fff; }
.tabs { gap: 6px; padding-bottom: 10px; }
.tabs a { color: var(--muted); border: 0; border-radius: 999px; padding: 8px 15px; font-weight: 600; }
.tabs a.on { background: var(--ink); color: #fff; }

.btn { border-radius: 14px; font-weight: 700; }
.btn.primary { background: var(--green); box-shadow: 0 6px 16px rgba(23,96,61,.22); }
.btn.big { border-radius: 16px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=tel], select, textarea { border-radius: 14px; background: #fff; }
input[type=search] { padding-inline-start: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236f7a72' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 14px center; }
[dir=rtl] input[type=search] { background-position: right 14px center; }
.card, .tablewrap, .kpi, .ocard { border-radius: var(--radius); }

/* greeting */
.hello { display: flex; align-items: end; justify-content: space-between; margin: 6px 0 14px; }
.hello h1 { margin: 2px 0 0; font-size: 26px; }

/* category chips */
.chip { border-radius: 999px; padding: 8px 15px; font-weight: 600; border-color: var(--line); }
.chip.on { background: var(--green); border-color: var(--green); }

/* view switch */
.viewswitch { border-radius: 18px; padding: 5px; border-color: var(--line); }
.viewswitch button { border-radius: 14px; }
.viewswitch button.on { background: var(--ink); }

/* product grid */
.pgrid { background: none; box-shadow: none; overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.pgrid .cat-h { grid-column: 1 / -1; background: none; border: 0; padding: 14px 2px 0; font-size: 13px; letter-spacing: .06em; color: var(--ink); }
.pcard { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; position: relative; transition: transform .15s, box-shadow .2s; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16,24,20,.1); }
.pcard.has { background: #fff; outline: 2px solid var(--green-2); outline-offset: -2px; }
.pimg { position: relative; aspect-ratio: 1 / .85; background: #f1f3ee; }
.pimg .pic { width: 100% !important; height: 100% !important; border-radius: 0; box-shadow: none; }
.pimg img.pic { object-fit: cover; }
.pimg .pic.letter { font-size: 44px !important; }
.addbtn { position: absolute; bottom: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--green); font-size: 26px; line-height: 1; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); display: grid; place-items: center; transition: transform .15s, background .2s, color .2s; }
.addbtn:hover { background: var(--green); color: #fff; }
.addbtn:active { transform: scale(.9); }
.pcard.has .addbtn { display: none; }
.pbody { padding: 10px 12px 4px; }
.pcard .pprice { font-size: 15px; color: var(--ink); }
.pcard .pprice b { font-weight: 800; }
.pcard .pprice span { color: var(--muted); font-size: 12px; font-weight: 500; }
.pcard .pname { font-weight: 600; font-size: 14px; line-height: 1.3; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .alt { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .stepper { display: none; margin: 8px 10px 12px; border-radius: 14px; border-color: var(--green-soft); background: var(--green-soft); justify-content: space-between; }
.pcard.has .stepper { display: flex; }
.pcard .stepper button { background: transparent; width: 40px; height: 38px; }
.pcard .stepper input { background: transparent; width: 100%; min-width: 0; flex: 1; min-height: 38px; }
.pcard:not(.has) .pbody { padding-bottom: 12px; }
@media (max-width: 380px) { .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* floating cart */
.cartbar { background: transparent; border: 0; backdrop-filter: none; padding-top: 0; }
.cartbar .inner { background: var(--ink); color: #fff; border-radius: 22px; padding: 10px 10px 10px 18px; box-shadow: 0 14px 34px rgba(16,24,20,.28); }
[dir=rtl] .cartbar .inner { padding: 10px 18px 10px 10px; }
.cartbar .muted { color: rgba(255,255,255,.7); }
.cartbar .total { color: #fff; font-size: 19px; }
.cartbar .btn.primary { background: #fff; color: var(--ink); box-shadow: none; }

/* login */
.login-wrap { background: radial-gradient(1200px 600px at 10% -10%, #dff0e5 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #fde6dc 0, transparent 55%), var(--bg); }
.login { border-radius: 28px; padding: 26px; box-shadow: 0 20px 60px rgba(16,24,20,.12); }

/* my orders & staff cards */
.badge { border-radius: 999px; padding: 4px 10px; }
.progress span { height: 7px; border-radius: 99px; }
.pcard .pprice b { font-weight: 600; font-size: 12px; color: var(--muted); }
.pcard .pprice b .num { font-weight: 800; font-size: 17px; color: var(--ink); }


/* =================== Landing / sign-in =================== */
.landing { min-height: 100vh; display: flex; flex-direction: column; background:
  radial-gradient(900px 520px at 0% 0%, #dcefe2 0, transparent 60%),
  radial-gradient(700px 480px at 100% 100%, #fde5d8 0, transparent 60%), #f7f8f4; }
.land-top { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 14px) 22px 0; max-width: 1180px; width: 100%; margin: 0 auto; }
.land-logo { height: 64px; width: auto; }
.pillbtn { border: 1px solid var(--line); background: rgba(255,255,255,.8); border-radius: 999px; padding: 8px 15px; font-weight: 700; cursor: pointer; }
.land-hero { flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; max-width: 1180px; width: 100%; margin: 0 auto; padding: 24px 22px 40px; }
.eyebrow { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--green); }
.land-copy h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.04; letter-spacing: -.035em; margin: 16px 0 14px; font-weight: 800; }
.land-copy h1 em { font-style: normal; color: var(--green); background: linear-gradient(transparent 62%, #cdebd8 62%); }
.lede { font-size: 18px; color: var(--muted); max-width: 520px; line-height: 1.55; margin: 0 0 22px; }
.feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 460px; }
.feats li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 16px; padding: 11px 14px; }
.feats .fi { width: 38px; height: 38px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.feats b { display: block; font-size: 15px; }
.feats small { color: var(--muted); font-size: 13px; }
.land-side { position: relative; display: grid; }
.land-side .login { position: relative; z-index: 2; width: 100%; max-width: 400px; justify-self: center; margin-top: 120px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.land-side .login h2 { font-size: 24px; margin: 0; font-weight: 800; }
.collage { position: absolute; inset: 0 0 auto 0; height: 300px; z-index: 1; opacity: 0; transition: opacity .6s; }
.collage.on { opacity: 1; }
.collage .tile { position: absolute; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 34px rgba(16,24,20,.16); border: 4px solid #fff; background: #eee; }
.collage .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage .t0 { width: 150px; height: 150px; left: 4%; top: 0; transform: rotate(-6deg); }
.collage .t1 { width: 120px; height: 120px; left: 34%; top: -14px; transform: rotate(4deg); }
.collage .t2 { width: 160px; height: 160px; right: 4%; top: 6px; transform: rotate(7deg); }
.collage .t3 { width: 100px; height: 100px; left: 22%; top: 120px; transform: rotate(3deg); }
.collage .t4 { width: 110px; height: 110px; right: 26%; top: 110px; transform: rotate(-5deg); }
.collage .t5 { width: 90px; height: 90px; right: 2%; top: 170px; transform: rotate(-8deg); }
@media (prefers-reduced-motion: no-preference) {
  .collage.on .tile { animation: tileIn .7s cubic-bezier(.2,.9,.3,1.2) both, bob 6s ease-in-out infinite; }
  .collage .t1 { animation-delay: .08s, 1s !important; } .collage .t2 { animation-delay: .16s, 2s !important; }
  .collage .t3 { animation-delay: .24s, .5s !important; } .collage .t4 { animation-delay: .32s, 1.5s !important; } .collage .t5 { animation-delay: .4s, 2.5s !important; }
  @keyframes tileIn { from { opacity: 0; translate: 0 20px; scale: .8; } }
  @keyframes bob { 50% { translate: 0 -8px; } }
  .land-copy > * { animation: fadeUp .6s ease-out both; }
  .land-copy > *:nth-child(2) { animation-delay: .08s } .land-copy > *:nth-child(3) { animation-delay: .16s } .land-copy > *:nth-child(4) { animation-delay: .24s }
}
.land-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 0 0 18px; }
@media (max-width: 860px) {
  .land-hero { grid-template-columns: 1fr; gap: 18px; padding-top: 6px; }
  .land-logo { height: 52px; }
  .land-copy h1 { font-size: 34px; margin-top: 12px; }
  .lede { font-size: 16px; margin-bottom: 14px; }
  .feats { grid-template-columns: 1fr; }
  .feats li { padding: 9px 12px; }
  .land-side .login { margin-top: 150px; }
  .collage { height: 220px; }
  .collage .t0 { width: 110px; height: 110px; } .collage .t2 { width: 120px; height: 120px; } .collage .t1 { width: 92px; height: 92px; }
  .collage .t3 { width: 80px; height: 80px; top: 96px; } .collage .t4 { width: 86px; height: 86px; top: 90px; } .collage .t5 { display: none; }
}


/* =================== Brand palette (from the logo): ivory · charcoal · sand =================== */
:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #1d1b18;
  --muted: #7a736a;
  --line: #ebe4d9;
  --sand: #e8cfb1;
  --sand-2: #b8916a;
  --sand-soft: #f5ece0;
  --green: #1d1b18;          /* primary actions use charcoal */
  --green-2: #3b3530;
  --green-soft: #f5ece0;     /* soft highlight uses light sand */
  --shadow: 0 1px 2px rgba(29,27,24,.04), 0 10px 30px rgba(29,27,24,.06);
}
.serif, h1, .land-side .login h2 { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -.01em; }
[dir=rtl] h1, [dir=rtl] .land-side .login h2 { font-family: "Tajawal", sans-serif; font-weight: 800; }
a { color: var(--sand-2); }
.btn.primary { background: var(--ink); border-color: var(--ink); box-shadow: 0 8px 20px rgba(29,27,24,.18); }
.btn.primary:hover { background: #33302b; }
.tabs a.on, .viewswitch button.on, .chip.on, .seg button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.top { background: rgba(250,247,242,.9); }
.top .mark { height: 44px; }
.top .icon-btn { background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sand); border-color: var(--sand-2); }
.pcard.has { outline-color: var(--sand-2); }
.pcard .stepper { background: var(--sand-soft); border-color: var(--sand-soft); }
.pcard .stepper button, .stepper button { color: var(--ink); }
.addbtn { color: var(--ink); }
.addbtn:hover { background: var(--ink); color: #fff; }
.pimg { background: var(--sand-soft); }
.cartbar .inner { background: var(--ink); }
.cartbar .btn.primary { background: var(--sand); color: var(--ink); }
.prow.has { background: var(--sand-soft); }
.cat-h, .pgrid .cat-h { font-family: "Fraunces", Georgia, serif; text-transform: none; letter-spacing: 0; font-size: 20px; font-weight: 600; }
[dir=rtl] .pgrid .cat-h { font-family: "Tajawal", sans-serif; font-weight: 800; }
.hello h1 { font-size: 30px; }
.progress span.on { background: var(--sand-2); }
.done .tick { background: var(--sand-soft); color: var(--ink); }
.spinner { border-color: var(--sand-soft); border-top-color: var(--ink); }
.tag { background: var(--sand-soft); color: #6b5238; }
#toast { background: var(--ink); }
.pic.letter { color: #6b5238; background: var(--sand-soft) !important; font-family: "Fraunces", Georgia, serif; }

/* landing: simple and calm */
.landing { background: radial-gradient(1000px 600px at 85% -10%, #f3e6d4 0, transparent 60%), var(--bg); }
.land-logo { height: 76px; }
.eyebrow { background: transparent; border: 1px solid var(--sand); color: #8a6a49; font-weight: 600; letter-spacing: .04em; }
.land-copy h1 { font-weight: 600; letter-spacing: -.02em; line-height: 1.06; }
.land-copy h1 em { background: none; color: var(--sand-2); font-style: italic; }
[dir=rtl] .land-copy h1 em { font-style: normal; }
.points { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink); font-size: 15px; margin: 4px 0 0; padding: 0; }
.points span { display: inline-flex; align-items: center; gap: 8px; }
.points span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sand-2); }
.land-side .login { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(29,27,24,.10); }
.collage .tile { border: 0; border-radius: 26px; box-shadow: 0 18px 40px rgba(29,27,24,.14); }
.collage .t0, .collage .t1, .collage .t2, .collage .t3, .collage .t4, .collage .t5 { rotate: 0deg; }
.collage .tile { transform: none !important; }
.points span { display: inline-block; position: relative; padding-inline-start: 15px; }
.points span::before { position: absolute; inset-inline-start: 0; top: .55em; }
@media (max-width: 860px) {
  .collage, .lede { display: none; }
  .land-side .login { margin-top: 4px; }
  .land-copy h1 { font-size: 32px; }
  .land-hero { gap: 22px; }
}
@media (max-width: 560px) {
  .brand { font-size: 0; }
  .brand small { font-size: 15px; color: var(--ink); font-weight: 700; display: block; }
}

.again { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 14px; background: #fff; border: 1px solid var(--line); }
.again-pics { display: flex; flex-shrink: 0; }
.again-pics .pic { border: 2px solid #fff; border-radius: 50%; margin-inline-start: -12px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.again-pics .pic:first-child { margin-inline-start: 0; }
.again .btn { flex-shrink: 0; }
@media (max-width: 420px) { .again { flex-wrap: wrap; } .again .btn { width: 100%; } }

.confetti .bit { border-radius: 2px; }
/* bigger logo on the landing page */
.land-top { align-items: flex-start; padding-top: calc(env(safe-area-inset-top) + 18px); }
.land-logo { height: clamp(120px, 14vw, 180px); width: auto; filter: drop-shadow(0 6px 14px rgba(29,27,24,.08)); }
@media (max-width: 860px) { .land-logo { height: 120px; } .land-hero { padding-top: 0; } }

/* studio look: item on white */
.pimg { background: #fff; border-bottom: 1px solid var(--line); }
.pimg img.pic { object-fit: contain; background: #fff; padding: 6%; }
img.pic { background: #fff; object-fit: contain; }
.again-pics img.pic { padding: 3px; }
.collage .tile { background: #fff; }
.collage .tile img { object-fit: contain; padding: 8%; }

/* basket contents shown over the 3D store */
.store3d { height: min(70vh, 640px); }
.basket-list { position: absolute; left: 10px; bottom: 12px; max-width: 58%; background: rgba(29,27,24,.86); color: #fff; border-radius: 16px; padding: 8px 10px; font-size: 12.5px; opacity: 0; transform: translateY(8px); transition: .3s; pointer-events: none; backdrop-filter: blur(6px); }
.basket-list.on { opacity: 1; transform: none; }
.basket-list .bl-head { font-weight: 800; margin-bottom: 4px; color: var(--sand); }
.basket-list .bl-row { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.basket-list .bl-row span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.basket-list .bl-row .pic { border-radius: 7px; }
.basket-list .bl-more { opacity: .7; }
[dir=rtl] .basket-list { left: auto; right: 10px; }
.store3d .hint { bottom: auto; top: 54px; }

/* truck mileage */
.odo-th{padding:0;border:0;background:#111;border-radius:8px;overflow:hidden;width:96px;height:64px;cursor:zoom-in;display:block;margin-bottom:4px}
.odo-th img{width:100%;height:100%;object-fit:cover;display:block}
table.odo td{vertical-align:top}
.tag.ok{background:#e6f4ea;color:#1e6b34}

/* view-only admin: hide controls that change things (the server blocks them anyway) */
body.viewonly .btn.primary:not([data-close]), body.viewonly [data-move], body.viewonly [data-savepack], body.viewonly [data-daftra], body.viewonly [data-edit], body.viewonly [data-wa],
body.viewonly [data-ve], body.viewonly [data-save], body.viewonly #vAdd, body.viewonly #vImp, body.viewonly #newIs, body.viewonly .addbtn { display:none !important }
body.viewonly select[data-driver], body.viewonly select[data-vd], body.viewonly select[data-st], body.viewonly .packin { pointer-events:none; opacity:.7 }

/* order slip — same layout as the Daftra invoice */
@media print {
  @page { size: A4; margin: 12mm; }
  .dslip { direction: ltr; text-align: left; color: #000; font-size: 12px; padding: 0; }
  .dslip, .dslip * { font-family: Arial, Helvetica, sans-serif !important; }
  .dslip .dh { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; }
  .dslip .dh-title { font-size: 22px; font-weight: 700; }
  .dslip .dh-contact { text-align: center; padding-top: 10px; line-height: 1.5; }
  .dslip .dh-logo { text-align: right; }
  .dslip .dh-logo img { max-height: 95px; max-width: 200px; }
  .dslip .drule { border-top: 3px double #000; margin: 26px 0 18px; }
  .dslip .dmeta { display: flex; justify-content: space-between; flex-direction: row-reverse; margin-bottom: 26px; }
  .dslip .dto { direction: rtl; }
  .dslip .dno { width: auto !important; margin: 0 !important; border-collapse: collapse; }
  .dslip .dno td, .dslip .dno th { border: 0 !important; padding: 1px 6px !important; font-size: 11px; }
  .dslip .dno th { font-weight: 700; text-align: right; }
  .dslip table.dtab { width: 100%; border-collapse: collapse; margin: 0; }
  .dslip table.dtab th { background: #e9e9e9; font-weight: 700; border: 1px solid #000 !important; padding: 6px 4px; text-align: center; font-size: 11.5px; }
  .dslip table.dtab td { border: 1px solid #000 !important; padding: 5px 6px; text-align: center; }
  .dslip table.dtab td.ar { direction: rtl; text-align: right; }
  .dslip table.dtot { width: 38% !important; margin: 0 !important; border-collapse: collapse; }
  .dslip table.dtot td, .dslip table.dtot th { border: 0 !important; padding: 5px 6px !important; }
  .dslip table.dtot th { text-align: right; }
  .dslip table.dtot tr.grand td, .dslip table.dtot tr.grand th { background: #e9e9e9; border-top: 2px solid #000 !important; font-size: 13px; font-weight: 700; }
  .dslip .dnote { margin-top: 14px; }
  .dslip .dsign { display: flex; gap: 24px; margin-top: 48px; }
  .dslip .dsign div { flex: 1; font-size: 11px; }
  .dslip .dsign span { display: block; border-bottom: 1px solid #000; height: 34px; }
}

/* live map */
.mapwrap { display: grid; grid-template-columns: 1fr 240px; gap: 12px; margin: 10px 0; }
#map { height: min(72vh, 680px); border-radius: 16px; overflow: hidden; background: #e8e4dc; }
.maplist { display: flex; flex-direction: column; gap: 8px; max-height: min(72vh, 680px); overflow: auto; }
.mapitem { display: flex; gap: 10px; align-items: flex-start; text-align: start; background: #fff; border: 1px solid #ece6dc; border-radius: 12px; padding: 10px; cursor: pointer; font: inherit; color: inherit; }
.mapitem:disabled { opacity: .55; cursor: default; }
.mapitem i { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: none; }
.livetxt { color: #1e8449; font-weight: 600; }
.truckpin { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 2px solid var(--c); border-radius: 999px; padding: 2px 8px 2px 4px; box-shadow: 0 2px 6px rgba(0,0,0,.25); white-space: nowrap; transform: translate(-50%, -50%); font: 600 12px/1.2 system-ui, sans-serif; }
.truckpin span { font-size: 16px; }
.truckpin.live { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent), 0 2px 6px rgba(0,0,0,.25); }
@media (max-width: 760px) { .mapwrap { grid-template-columns: 1fr; } .maplist { flex-direction: row; overflow-x: auto; } .mapitem { min-width: 170px; } }

.losscard { margin-top: 16px; border: 1px solid #f3c3b8; background: #fffaf8; }
.losscard h3 { font-size: 15px; margin: 10px 0 6px; }
.lossv { color: #b3261e; font-weight: 700; }
.unitcard { margin-top: 16px; border: 1px solid #ecd9a8; background: #fffdf5; }
tr.pflag td { background: #fff4f1; }

/* ================= 3D landing page ================= */
.lp { --lp-ink: #1d1b18; --lp-sand: #e8cfb1; --lp-sand2: #b8916a; --lp-cream: #faf7f2; --lp-leaf: #3f7d2c; background: var(--lp-cream); color: var(--lp-ink); overflow-x: hidden; }
.lp h1, .lp h2, .lp h3 { color: var(--lp-ink); }
.lp-top { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: calc(env(safe-area-inset-top) + 10px) clamp(14px, 4vw, 40px) 10px; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.lp-top.solid { background: rgba(250,247,242,.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(29,27,24,.08); }
.lp-brand img { height: 58px; display: block; transition: height .3s; }
.lp-top.solid .lp-brand img { height: 46px; }
.lp-nav { display: flex; gap: 24px; margin-inline-start: auto; }
.lp-nav a { color: var(--lp-ink); text-decoration: none; font-weight: 600; font-size: 15px; opacity: .78; }
.lp-nav a:hover { opacity: 1; }
.lp-actions { display: flex; gap: 10px; align-items: center; }
.lp-hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden;
  background: radial-gradient(1200px 700px at 78% 30%, #f6e6d0 0, transparent 62%), radial-gradient(900px 600px at 10% 90%, #eef3e3 0, transparent 60%), var(--lp-cream); }
.lp-3d { position: absolute; inset: 0; z-index: 0; }
.lp-3d canvas { display: block; }
.lp-3d.off { display: none; }
.lp-hero-in { position: relative; z-index: 2; width: min(1180px, 100%); margin: 0 auto; padding: 120px clamp(16px, 4vw, 40px) 90px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; pointer-events: none; }
.lp-hero-in > * { pointer-events: auto; }
.lp-copy h1 { font-size: clamp(40px, 6.4vw, 82px); line-height: 1.0; letter-spacing: -.03em; margin: 18px 0 16px; font-weight: 600; text-shadow: 0 2px 30px rgba(250,247,242,.9); }
.lp-copy h1 em { color: var(--lp-sand2); font-style: italic; }
[dir=rtl] .lp-copy h1 em { font-style: normal; }
.lp-copy .lede { font-size: clamp(16px, 1.6vw, 20px); max-width: 520px; color: #4a453f; text-shadow: 0 1px 18px rgba(250,247,242,.95); }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lp .btn.ghost { background: rgba(255,255,255,.7); border: 1px solid rgba(29,27,24,.14); backdrop-filter: blur(6px); }
.lp .btn.light { background: #fff; color: var(--lp-ink); border: 0; }
.lp .btn.ghost.light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.lp-login { background: rgba(255,255,255,.88) !important; backdrop-filter: blur(16px); border: 1px solid rgba(29,27,24,.08); box-shadow: 0 30px 80px rgba(29,27,24,.16); max-width: 390px; justify-self: end; width: 100%; }
.lp-login h2 { margin: 0; font-size: 26px; }
.lp-down { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); width: 30px; height: 48px; border-radius: 20px; border: 2px solid rgba(29,27,24,.35); background: transparent; cursor: pointer; }
.lp-down span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 4px; background: rgba(29,27,24,.5); animation: lpDown 1.8s ease-in-out infinite; }
@keyframes lpDown { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

.lp-stats { position: relative; z-index: 4; width: min(1080px, calc(100% - 32px)); margin: -46px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--lp-ink); color: #fff; border-radius: 22px; box-shadow: 0 30px 70px rgba(29,27,24,.25); overflow: hidden; }
.lp-stats > div { padding: 24px 18px; text-align: center; border-inline-end: 1px solid rgba(255,255,255,.08); }
.lp-stats > div:last-child { border: 0; }
.lp-stats b { display: block; font-family: "Fraunces", Georgia, serif; font-size: clamp(26px, 3vw, 38px); font-weight: 600; color: var(--lp-sand); }
.lp-stats span { font-size: 13px; opacity: .75; }

.lp-sec { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.lp-wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.lp-wrap.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.lp h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 18px; font-weight: 600; }
.lp p { line-height: 1.7; color: #4a453f; }
.lp .eyebrow.light { color: var(--lp-sand); border-color: rgba(232,207,177,.4); }
.lp-sign { display: flex; flex-direction: column; margin-top: 22px; }
.lp-sign b { font-family: "Fraunces", Georgia, serif; font-size: 20px; }
.lp-sign span { color: var(--lp-sand2); font-size: 14px; }

.lp-stack { position: relative; height: 460px; perspective: 1200px; }
.lp-stack .st { position: absolute; border-radius: 24px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 24px 60px rgba(29,27,24,.18); background: #fff; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.lp-stack .st img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-stack .s0 { width: 52%; height: 58%; left: 4%; top: 4%; transform: rotate(-5deg) translateZ(0); }
.lp-stack .s1 { width: 44%; height: 46%; right: 2%; top: 0; transform: rotate(6deg); }
.lp-stack .s2 { width: 40%; height: 40%; left: 28%; top: 44%; transform: rotate(2deg); z-index: 2; }
.lp-stack .s3 { width: 34%; height: 34%; right: 4%; bottom: 4%; transform: rotate(-4deg); }
.lp-stack .s4 { width: 28%; height: 28%; left: 0; bottom: 2%; transform: rotate(7deg); }
.lp-stack:hover .st { transform: rotate(0) scale(1.03); }

.lp-values { background: linear-gradient(180deg, transparent, #f3ebe0 30%, #f3ebe0 70%, transparent); }
.lp-mission { max-width: 820px; margin: 0 auto 50px; text-align: center; }
.lp-cards.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1000px; }
.lp-card { background: #fff; border-radius: 22px; padding: 26px 22px; border: 1px solid rgba(29,27,24,.06); box-shadow: 0 10px 30px rgba(29,27,24,.06); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, box-shadow .25s; transform-style: preserve-3d; }
.lp-card:hover { box-shadow: 0 24px 50px rgba(29,27,24,.14); }
.lp-card .ic { font-size: 30px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: #f6efe5; margin-bottom: 14px; transform: translateZ(30px); }
.lp-card h3 { margin: 0 0 8px; font-size: 19px; transform: translateZ(20px); }
.lp-card p { margin: 0; font-size: 14.5px; }
.lp-card.num .n { font-family: "Fraunces", Georgia, serif; font-size: 44px; color: var(--lp-sand); line-height: 1; margin-bottom: 14px; transform: translateZ(30px); }

.lp-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.lp-lists h3 { margin: 0 0 12px; }
.lp-lists p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.lp-lists span { background: #fff; border: 1px solid rgba(29,27,24,.08); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--lp-ink); }
.lp-marquee { margin-top: 50px; display: grid; gap: 16px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq { overflow: hidden; direction: ltr; }
.mq-in { display: flex; gap: 16px; width: max-content; animation: mq 60s linear infinite; }
.mq.rev .mq-in { animation-direction: reverse; animation-duration: 70s; }
.mq-i { width: 180px; height: 180px; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 10px 26px rgba(29,27,24,.1); flex: none; }
.mq-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes mq { to { transform: translateX(-50%); } }

.lp-meat { background: radial-gradient(900px 500px at 80% 50%, #3a1716 0, transparent 60%), #1a1311; color: #fff; overflow: hidden; }
.lp-meat h2 { color: #fff; }
.lp-meat p, .lp-meat li { color: rgba(255,255,255,.82); }
.lp-butcher { width: 230px; display: block; margin-bottom: 20px; background: #fff; border-radius: 18px; padding: 16px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.lp-meatlist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.lp-meatlist li { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); font-weight: 600; font-size: 17px; }
.lp-meatlist li span { opacity: .7; font-weight: 500; }
.lp-packs { position: relative; display: grid; grid-template-columns: 0.72fr 1fr; gap: 18px; align-items: center; --k: 0; }
.lp-packs .pk { width: 100%; height: auto; display: block; filter: drop-shadow(0 26px 34px rgba(0,0,0,.55)); transition: transform .25s ease; }
.lp-packs .p1 { grid-row: span 2; transform: translateY(calc(var(--k) * 24px)); }
.lp-packs .p2 { transform: translateY(calc(var(--k) * -18px)); }
.lp-packs .p3 { transform: translateY(calc(var(--k) * 30px)); }
.lp-packs .pk:hover { transform: scale(1.04); }

.lp-partners { padding-top: 40px; text-align: center; }
.lp-plist { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
.lp-plist span { font-family: "Fraunces", Georgia, serif; font-size: clamp(20px, 2.4vw, 28px); padding: 18px 30px; border-radius: 999px; background: #fff; border: 1px solid rgba(29,27,24,.08); box-shadow: 0 8px 22px rgba(29,27,24,.06); }

.lp-contact { background: var(--lp-ink); color: #fff; border-radius: 36px 36px 0 0; }
.lp-contact h2 { color: #fff; }
.lp-contacts { display: grid; gap: 12px; }
.lp-contacts a { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.lp-contacts a:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.lp-contacts i { grid-row: span 2; font-style: normal; font-size: 22px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(232,207,177,.15); }
.lp-contacts span { font-size: 12px; opacity: .6; }
.lp-contacts b { font-weight: 600; }
.lp-foot { background: var(--lp-ink); color: rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; gap: 14px; padding: 20px 16px 30px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.08); }
.lp-foot img { height: 34px; filter: brightness(1.1); background: #fff; border-radius: 8px; padding: 3px 6px; }

/* reveal */
.lp .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.lp .rv.in { opacity: 1; transform: none; }
.lp-card.rv.in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
@media (prefers-reduced-motion: reduce) { .lp .rv { opacity: 1; transform: none; transition: none; } .mq-in { animation: none; } }

@media (max-width: 900px) {
  .lp-nav { display: none; }
  .lp-actions { margin-inline-start: auto; }
  .lp-hero-in { grid-template-columns: 1fr; padding-top: 110px; gap: 26px; text-align: center; }
  .lp-copy .lede { margin-inline: auto; }
  .lp-cta { justify-content: center; }
  .lp-login { justify-self: center; text-align: start; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .lp-stats > div:nth-child(2) { border-inline-end: 0; }
  .lp-stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .lp-wrap.two { grid-template-columns: 1fr; }
  .lp-cards.four { grid-template-columns: 1fr 1fr; }
  .lp-lists { grid-template-columns: 1fr; }
  .lp-stack { height: 340px; }
  .lp-packs { gap: 10px; }
  .mq-i { width: 130px; height: 130px; }
  .lp-brand img { height: 46px; }
  .lp-down { display: none; }
}
@media (max-width: 520px) { .lp-cards.four { grid-template-columns: 1fr; } .lp-plist span { padding: 12px 20px; } }
input.secret { -webkit-text-security: disc; text-security: disc; font-family: monospace; }

.photopick { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.photopick .pp-box { background: var(--card, #fff); width: min(440px, 100%); border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 10px; text-align: center; }
.photopick .btn.big { padding: 16px; font-size: 18px; justify-content: center; }

.lp-plogos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 900px; margin: 26px auto 0; }
.lp-plogos figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lp-plogo { width: 150px; height: 150px; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 14px 34px rgba(60,40,20,.16), 0 0 0 6px #fff, 0 0 0 7px rgba(0,0,0,.06); transition: transform .3s ease, box-shadow .3s ease; }
.lp-plogo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-plogos figure:hover .lp-plogo { transform: translateY(-6px) scale(1.04); box-shadow: 0 22px 44px rgba(60,40,20,.22), 0 0 0 6px #fff, 0 0 0 7px rgba(0,0,0,.06); }
.lp-plogos figcaption { font-weight: 700; font-size: 15px; }
@media (max-width: 700px) { .lp-plogos { grid-template-columns: repeat(2, 1fr); gap: 22px; } .lp-plogo { width: 120px; height: 120px; } }
