*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#0a0a0a;color:white;font-family:Arial,Helvetica,sans-serif}button,input,textarea,select{font:inherit}button{border:0;cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}.header{position:sticky;top:0;z-index:40;background:rgba(10,10,10,.92);border-bottom:1px solid rgba(255,255,255,.10);backdrop-filter:blur(10px);padding:16px clamp(16px,4vw,46px);display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{display:flex;align-items:center;gap:12px}.logo{width:46px;height:46px;border-radius:16px;background:#dc2626;display:grid;place-items:center;font-size:23px;font-weight:900;box-shadow:0 14px 30px rgba(220,38,38,.28)}.brand b{display:block;font-size:19px}.brand span{display:block;color:#aaa;font-size:12px}.nav{display:flex;gap:22px;color:#ddd;font-size:14px}.actions{display:flex;gap:8px;flex-wrap:wrap}.btn,.langBtn{display:inline-block;padding:11px 15px;border-radius:15px;background:#222;font-weight:800}.btn.red,.langBtn.active{background:#dc2626}.btn.white{background:white;color:#111}.full{width:100%;margin-top:10px}.wrap{max-width:1200px;margin:auto;padding:64px 16px}.hero{display:grid;grid-template-columns:1.04fr .96fr;gap:38px;align-items:center;min-height:calc(100vh - 80px)}.pill{display:inline-block;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);border-radius:999px;padding:10px 14px;color:#eee}.hero h1{font-size:clamp(42px,7vw,78px);line-height:.92;margin:24px 0 18px;letter-spacing:-2px}.hero p{color:#d4d4d4;font-size:18px;line-height:1.6}.heroBtns{display:flex;gap:12px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:28px}.stat,.card,.box,.login-box,.order-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:26px}.stat{padding:16px}.stat span{color:#aaa}.heroImage{position:relative}.heroImage img{width:100%;height:430px;object-fit:cover;border-radius:32px;box-shadow:0 30px 85px rgba(0,0,0,.50)}.heroFloat{position:absolute;bottom:20px;left:20px;right:20px;background:rgba(10,10,10,.82);border:1px solid rgba(255,255,255,.12);border-radius:24px;padding:18px;display:flex;justify-content:space-between;gap:12px;align-items:center;backdrop-filter:blur(10px)}.price{color:#f87171;font-weight:900}.sectionHead{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:26px}.redText{color:#f87171;font-weight:900}h2{font-size:clamp(30px,4vw,44px);margin:8px 0 0}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.card{overflow:hidden}.cardImg{height:210px;position:relative}.cardImg img{width:100%;height:100%;object-fit:cover}.badge{position:absolute;top:14px;inset-inline-start:14px;background:#dc2626;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900}.cardBody{padding:20px}.cardRow{display:flex;justify-content:space-between;gap:12px}.card h3{margin:0 0 8px}.card p{color:#bdbdbd;line-height:1.45}.extrasGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}.extra{text-align:start;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.10);border-radius:18px;padding:16px;color:white}.extra.active{background:rgba(220,38,38,.24);border-color:#ef4444}.checkout{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}.box{padding:22px}.cartItem{display:flex;align-items:center;gap:14px;background:rgba(0,0,0,.35);border-radius:20px;padding:12px;margin:10px 0}.cartInfo{flex:1}.cartInfo span,.muted{color:#aaa}.qty{display:flex;align-items:center;gap:8px}.qty button{width:36px;height:36px;border-radius:12px;background:rgba(255,255,255,.10)}input,textarea,select{width:100%;background:#080808;color:white;border:1px solid rgba(255,255,255,.13);border-radius:16px;padding:14px;outline:none;margin:6px 0}textarea{min-height:100px}.summary{background:rgba(0,0,0,.35);border-radius:18px;padding:16px;margin:14px 0;display:grid;gap:10px}.summary div{display:flex;justify-content:space-between}.summary .total{border-top:1px solid rgba(255,255,255,.10);padding-top:12px;font-size:20px}.aboutGrid{display:grid;grid-template-columns:2fr 1fr;gap:20px}.aboutRed{background:#dc2626;border-radius:26px;padding:28px}.accessBtn{position:fixed;bottom:22px;right:22px;width:60px;height:60px;border-radius:50%;background:#dc2626;color:white;font-size:27px;box-shadow:0 18px 45px rgba(220,38,38,.34);z-index:80}.accessPanel{position:fixed;bottom:92px;right:22px;width:min(370px,calc(100% - 44px));background:#111;border:1px solid rgba(255,255,255,.16);border-radius:24px;padding:18px;z-index:81;box-shadow:0 24px 80px rgba(0,0,0,.70);display:grid;gap:10px}.hidden{display:none}.large{font-size:120%}.contrast{background:#000!important;color:#fff!important}.login-wrap{min-height:72vh;display:grid;place-items:center;padding:24px}.login-box{width:min(440px,92vw);padding:24px}.admin-head{display:flex;justify-content:space-between}.order-card{padding:16px;margin:12px 0;display:grid;grid-template-columns:1fr 230px;gap:16px}.admin-side{display:grid;gap:8px}pre{white-space:pre-wrap;background:rgba(0,0,0,.45);padding:12px;border-radius:14px;max-height:210px;overflow:auto}footer{text-align:center;color:#777;border-top:1px solid rgba(255,255,255,.10);padding:30px}[dir=rtl] .accessBtn{right:auto;left:22px}[dir=rtl] .accessPanel{right:auto;left:22px}@media(max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.nav{display:none}.hero,.checkout,.aboutGrid,.order-card{grid-template-columns:1fr}.extrasGrid,.stats{grid-template-columns:1fr 1fr}}@media(max-width:560px){.header{flex-wrap:wrap}.wrap{padding:44px 14px}.heroImage img{height:310px}.grid,.extrasGrid,.stats{grid-template-columns:1fr}.cartItem{align-items:stretch;flex-direction:column}}


/* STEP 1 FIXES: accessibility, hero click, stat spacing, equal card buttons */
.stat{display:flex;flex-direction:column;gap:8px;min-height:92px;justify-content:center;line-height:1.25}.stat b{display:block;font-size:22px;letter-spacing:.2px}.stat span{display:block;font-size:15px;line-height:1.35}.heroFloat{cursor:pointer;transition:transform .18s ease,background .18s ease,border-color .18s ease}.heroFloat:hover{transform:translateY(-3px);background:rgba(20,20,20,.9);border-color:rgba(248,113,113,.35)}.heroFloat .miniAdd{background:#dc2626;color:#fff;border-radius:999px;padding:9px 12px;font-weight:900;margin-inline-start:10px;white-space:nowrap}.grid{align-items:stretch}.card{height:100%;display:flex;flex-direction:column}.cardBody{display:flex;flex-direction:column;flex:1}.cardRow{flex:1}.card .btn.full{margin-top:auto;text-align:center}.accessBtn{background:linear-gradient(135deg,#ef4444,#b91c1c)!important;border:3px solid rgba(255,255,255,.22);box-shadow:0 18px 45px rgba(220,38,38,.45),0 0 0 8px rgba(220,38,38,.12)!important;display:grid;place-items:center;transition:transform .18s ease,box-shadow .18s ease}.accessBtn:hover{transform:translateY(-3px) scale(1.04);box-shadow:0 24px 60px rgba(220,38,38,.55),0 0 0 10px rgba(220,38,38,.14)!important}.accessPanel{background:linear-gradient(180deg,#18181b,#09090b)!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:0 30px 90px rgba(0,0,0,.72)!important}.accessPanel h3{margin:0 0 8px}.accessPanel .btn{text-align:center}.admin-alert{background:rgba(34,197,94,.16);border:1px solid rgba(34,197,94,.35);color:#bbf7d0;border-radius:18px;padding:14px 16px;margin:0 0 18px}.admin-side .btn{cursor:pointer}
@media(max-width:560px){.stat{min-height:auto}.heroFloat{display:grid;grid-template-columns:1fr;align-items:start}.heroFloat .miniAdd{margin-inline-start:0;margin-top:8px;text-align:center}}


/* STEP 2 FIXES — clickable Samurai + equal card buttons */
.heroImage,
.hero-image,
.heroImg {
  cursor: pointer !important;
}

.heroImage:hover,
.hero-image:hover,
.heroImg:hover {
  transform: translateY(-2px);
  transition: transform .18s ease, filter .18s ease;
  filter: brightness(1.05);
}

.heroImage::after,
.hero-image::after,
.heroImg::after {
  content: "לחצו להזמנה / Нажмите, чтобы заказать";
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  background: #dc2626;
  color: #fff;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  pointer-events: none;
}

.card {
  display: flex !important;
  flex-direction: column !important;
}

.cardImg,
.card-image,
.product-image {
  flex: 0 0 auto !important;
}

.cardBody,
.card-body,
.product-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.cardRow,
.product-title-row {
  flex: 1 1 auto !important;
}

.cardBody .btn.full,
.card-body .btn.full,
.product-body .full,
.product-body button {
  margin-top: auto !important;
}

.grid,
.cards {
  align-items: stretch !important;
}

@media (max-width: 560px) {
  .heroImage::after,
  .hero-image::after,
  .heroImg::after {
    font-size: 11px;
    top: 12px;
    inset-inline-end: 12px;
  }
}


/* STEP 3 FIXES — language-specific Samurai hint + smaller Samurai button */
.heroImage::after,
.hero-image::after,
.heroImg::after {
  content: "Нажмите, чтобы заказать" !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
  max-width: 240px !important;
  white-space: nowrap !important;
}

html[dir="rtl"] .heroImage::after,
html[dir="rtl"] .hero-image::after,
html[dir="rtl"] .heroImg::after,
[dir="rtl"] .heroImage::after,
[dir="rtl"] .hero-image::after,
[dir="rtl"] .heroImg::after {
  content: "לחצו להזמנה" !important;
}

.heroFloat .btn,
.heroFloat button,
.heroFloat .full,
.hero-float .btn,
.hero-float button,
.hero-float .full,
.floating .btn,
.floating button,
.floating .full {
  width: auto !important;
  min-width: 0 !important;
  padding: 9px 14px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  margin-top: 0 !important;
  white-space: nowrap !important;
}

.heroFloat,
.hero-float,
.floating {
  gap: 10px !important;
}

@media (max-width: 560px) {
  .heroImage::after,
  .hero-image::after,
  .heroImg::after {
    font-size: 11px !important;
    padding: 7px 10px !important;
    max-width: 190px !important;
  }

  .heroFloat .btn,
  .heroFloat button,
  .hero-float .btn,
  .hero-float button,
  .floating .btn,
  .floating button {
    font-size: 12px !important;
    padding: 8px 10px !important;
  }
}


/* STEP4 Samurai layout fix */
.heroFloat{
display:flex!important;
justify-content:space-between!important;
align-items:center!important;
}
.heroFloat > div:first-child{
display:flex!important;
flex-direction:column!important;
gap:4px;
}
.heroFloat > div:last-child{
display:flex!important;
align-items:center!important;
gap:12px!important;
flex-shrink:0!important;
}
.heroFloat .miniAdd{
display:inline-flex!important;
align-items:center;
justify-content:center;
background:#ef4444;
padding:10px 16px;
border-radius:999px;
font-weight:800;
white-space:nowrap;
}
.heroFloat .price{
font-size:26px;
font-weight:900;
white-space:nowrap;
}


/* STEP 5 — ADMIN ONLY readability. Does not affect client site or Samurai. */
.admin-page .wrap {
  max-width: 1280px !important;
}

.admin-page .admin-head h1 {
  font-size: 42px !important;
  margin-bottom: 26px !important;
}

.admin-page .order-card {
  grid-template-columns: 1fr 250px !important;
  gap: 24px !important;
  padding: 26px !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.075) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
}

.admin-page .order-card h3 {
  font-size: 28px !important;
  margin: 0 0 16px !important;
  color: #fff !important;
  letter-spacing: .3px !important;
}

.admin-page .admin-customer {
  display: grid !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
}

.admin-page .admin-customer div {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #fff !important;
}

.admin-page .admin-customer span {
  width: 30px !important;
  display: inline-grid !important;
  place-items: center !important;
}

.admin-page .admin-items {
  background: rgba(0,0,0,.45) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 20px !important;
  padding: 18px !important;
  display: grid !important;
  gap: 12px !important;
}

.admin-page .admin-item-line {
  display: grid !important;
  grid-template-columns: 1fr auto auto !important;
  gap: 18px !important;
  align-items: center !important;
  font-size: 21px !important;
  line-height: 1.35 !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.admin-page .admin-item-line strong {
  color: #fff !important;
}

.admin-page .admin-item-line span {
  color: #fca5a5 !important;
  font-weight: 900 !important;
}

.admin-page .admin-item-line b {
  color: #ff7474 !important;
  font-size: 22px !important;
  white-space: nowrap !important;
}

.admin-page .admin-item-total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 10px !important;
  font-size: 24px !important;
  font-weight: 900 !important;
}

.admin-page .admin-item-total b,
.admin-page .admin-side .price {
  color: #ff7474 !important;
  font-size: 32px !important;
}

.admin-page .admin-side label {
  font-size: 17px !important;
  font-weight: 900 !important;
  margin-top: 10px !important;
}

.admin-page .admin-side select {
  min-height: 52px !important;
  font-size: 18px !important;
  border-radius: 16px !important;
}

.admin-page .admin-side .btn {
  min-height: 54px !important;
  font-size: 18px !important;
}

@media (max-width: 800px) {
  .admin-page .order-card {
    grid-template-columns: 1fr !important;
  }
  .admin-page .admin-item-line {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  .admin-page .admin-customer {
    font-size: 18px !important;
  }
}


/* STEP 6 — required checkout fields */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .22) !important;
  background: rgba(239, 68, 68, .08) !important;
}


/* STEP 7 — visible admin order comment */
.admin-order-note {
  margin: 14px 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(220, 38, 38, .16);
  border: 1px solid rgba(248, 113, 113, .35);
  color: #fff;
}

.admin-order-note b {
  display: block;
  font-size: 19px;
  margin-bottom: 8px;
  color: #fecaca;
}

.admin-order-note span {
  display: block;
  font-size: 20px;
  line-height: 1.45;
  color: #ffffff;
}


/* STEP 8 — show customer comment in current admin layout */
.admin-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 14px 0 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(220, 38, 38, .16);
  border: 1px solid rgba(248, 113, 113, .35);
  color: #fff;
}

.admin-note > span {
  font-size: 24px;
  line-height: 1;
  margin-top: 2px;
}

.admin-note b {
  display: block;
  font-size: 18px;
  color: #fecaca;
  margin-bottom: 6px;
}

.admin-note p {
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 1.45 !important;
  color: #ffffff !important;
}


/* STEP 9 — show extras in admin */
.admin-extras {
  margin: 14px 0 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}

.admin-extras > b {
  display: block;
  font-size: 19px;
  margin-bottom: 10px;
  color: #fecaca;
}

.admin-extra-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 18px;
  color: #fff;
}

.admin-extra-row:first-of-type {
  border-top: 0;
}

.admin-extra-row strong {
  color: #ff7474;
  white-space: nowrap;
}

/* STEP 10 — phone validation enabled */


/* STEP 12 — email notification status in admin */
.admin-notification-status {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}

.admin-notification-status strong {
  color: #fecaca;
}


/* STEP 17 — admin order counters */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 18px 0 28px;
}

.admin-stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  padding: 18px 16px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
}

.admin-stat-card span {
  font-size: 28px;
  line-height: 1;
}

.admin-stat-card b {
  font-size: 38px;
  line-height: 1;
  color: #ff7474;
}

.admin-stat-card small {
  font-size: 15px;
  color: #f5f5f5;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .admin-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-stat-card {
    min-height: 110px;
    padding: 14px;
  }

  .admin-stat-card b {
    font-size: 30px;
  }
}

/* STEP 17.1 — admin order counters fixed */


/* STEP 17.3 — remove duplicate contacts near about */
.aboutSingle {
  grid-template-columns: 1fr !important;
}

.aboutSingle .aboutRed {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.aboutSingle .aboutRed p {
  max-width: 980px;
  font-size: 19px;
  line-height: 1.65;
}


/* STEP 20.4 — server-side admin search */
.admin-search-panel {
  margin: 18px 0 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
}

.admin-search-panel label {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #fecaca;
  margin-bottom: 10px;
}

.admin-search-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
}

.admin-search-row input {
  margin: 0 !important;
  min-height: 54px;
  font-size: 18px;
}

.admin-search-row .btn {
  min-height: 54px;
  white-space: nowrap;
}

.admin-search-empty {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(220,38,38,.14);
  border: 1px solid rgba(248,113,113,.35);
  color: #fecaca;
  font-weight: 900;
}

.admin-found-count {
  display: inline-block;
  margin-inline-start: 12px;
  font-size: 18px;
  color: #fecaca;
}

@media (max-width: 760px) {
  .admin-search-row {
    grid-template-columns: 1fr;
  }
}


/* STEP 21 — admin status filters */
.admin-stat-link {
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.admin-stat-link:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 113, 113, .55);
}

.admin-stat-link.active {
  border-color: rgba(248, 113, 113, .85) !important;
  box-shadow: 0 0 0 1px rgba(248,113,113,.45), 0 20px 55px rgba(220,38,38,.22) !important;
}

.admin-filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}

.admin-active-filter {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-weight: 800;
}

.admin-active-filter b {
  color: #ff7474;
}


/* STEP 22 — newest orders first note */
.admin-sort-note {
  display: inline-flex;
  margin: 10px 0 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: #f5f5f5;
  font-weight: 900;
  font-size: 14px;
}


/* STEP 23 — archive orders */
.admin-archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 14px;
}

.admin-archive-tabs .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}


/* STEP 23.1 — archive button fix */
.admin-archive-form {
  margin-top: 12px;
}

.admin-archive-form .btn {
  min-height: 54px;
}


/* STEP 24 — edit order */
.admin-edit-order-form {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(248,113,113,.28);
}

.admin-edit-order-form h3,
.admin-edit-order-form h4 {
  margin: 0 0 14px;
  color: #fecaca;
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.admin-edit-order-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
  color: #fff;
}

.admin-edit-order-form textarea {
  min-height: 90px;
}

.admin-edit-line {
  display: grid;
  grid-template-columns: 1fr 110px 130px;
  gap: 10px;
  margin: 10px 0;
}

.admin-edit-extra-line {
  grid-template-columns: 1fr 130px;
}

.admin-edit-new {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.admin-edit-total-preview {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.32);
  color: #fecaca;
  font-weight: 900;
}

.admin-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 760px) {
  .admin-edit-grid,
  .admin-edit-line,
  .admin-edit-extra-line {
    grid-template-columns: 1fr;
  }
}


/* STEP 25 — order history */
.admin-history {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
}

.admin-history h4 {
  margin: 0 0 12px;
  color: #fecaca;
  font-size: 18px;
}

.admin-history-line {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.admin-history-line:first-of-type {
  border-top: 0;
}

.admin-history-line span {
  color: #aaa;
  font-weight: 800;
  font-size: 14px;
}

.admin-history-line b {
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .admin-history-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


/* STEP 26-27 SAFE — clickable phone and WhatsApp */
.admin-phone-row {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.admin-phone-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.45);
}

.admin-phone-link:hover {
  color: #fecaca;
}

.admin-wa-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,.14);
  border: 1px solid rgba(34,197,94,.35);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.admin-wa-link:hover {
  background: rgba(34,197,94,.22);
}


/* STEP 26-27.1 — keep all email status badges visible */
.admin-email-badges-fix,
.admin-badges,
.order-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  overflow: visible !important;
  max-width: 100% !important;
}

.admin-email-badges-fix > *,
.admin-badges > *,
.order-badges > * {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}


/* STEP 28 — clients, discounts, print */
.admin-customer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}

.admin-customer-stats strong { color: #fecaca; }

.admin-customer-stats span,
.admin-customer-stats a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.admin-customer-stats a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(220,38,38,.18);
  border: 1px solid rgba(248,113,113,.35);
}

.admin-discount-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #fecaca;
  font-weight: 900;
}

.admin-discount-line b { color: #ff7474; }


/* STEP 28.1 — discount fields visible */
.admin-discount-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #fecaca;
  font-weight: 900;
}

.admin-discount-line b {
  color: #ff7474;
}


/* STEP 29 — private admin notes */
.admin-private-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
}

.admin-private-note form {
  display: grid;
  gap: 10px;
}

.admin-private-note label {
  display: grid;
  gap: 8px;
  font-weight: 900;
  color: #fecaca;
}

.admin-private-note textarea {
  min-height: 95px;
  resize: vertical;
  font-size: 16px;
}

.admin-private-note small {
  color: #aaa;
  font-weight: 800;
}

.admin-private-note .btn {
  justify-self: start;
}


/* STEP 30 FIXED — dashboard statistics */
.admin-dashboard-stats {
  margin: 22px 0 24px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
}

.admin-dashboard-stats h2 {
  margin: 0 0 16px;
  color: #fff7bf;
  font-size: 28px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.admin-dashboard-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
}

.admin-dashboard-card span {
  display: block;
  color: #fff7bf;
  font-weight: 900;
  margin-bottom: 8px;
}

.admin-dashboard-card b {
  display: block;
  color: #ff7474;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}

.admin-dashboard-card small {
  color: #fff;
  font-weight: 800;
}

.admin-top-clients {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.admin-top-clients h3 {
  margin: 0 0 6px;
  color: #fecaca;
}

.admin-top-clients a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.admin-top-clients strong {
  color: #ff7474;
}

@media (max-width: 700px) {
  .admin-top-clients a {
    grid-template-columns: 1fr;
  }
}


/* STEP 31.1 — Kaido Sushi public contacts */
.contact-link {
  color: inherit;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.45);
}

.contact-link:hover {
  color: #fecaca;
}


/* STEP 31.4 — menu category strip */
.menu-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.menu-category-chip {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.menu-category-chip.active {
  background: linear-gradient(135deg, #ef4444, #991b1b);
  border-color: rgba(248,113,113,.55);
  box-shadow: 0 10px 25px rgba(239,68,68,.18);
}

.menu-category-chip.disabled {
  opacity: .55;
  cursor: not-allowed;
}


/* STEP 31.5 — header cart total */
.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(220, 38, 38, .18);
  border: 1px solid rgba(248, 113, 113, .38);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.header-cart-btn:hover {
  background: rgba(220, 38, 38, .28);
}

.header-cart-btn b {
  color: #fecaca;
  font-size: 14px;
}

/* STEP 31.5.1 — header cart count + sum fix */
.header-cart-btn {
  min-width: 92px;
  justify-content: center;
}


/* STEP 31.6 — top menu dropdown */
.nav-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-menu-wrap > a {
  color: inherit;
  text-decoration: none;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(18, 18, 18, .98);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 45px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
  z-index: 100;
}

.nav-menu-wrap:hover .nav-dropdown,
.nav-menu-wrap:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: rgba(239,68,68,.18);
  color: #fecaca;
}

@media (max-width: 800px) {
  .nav-dropdown {
    left: auto;
    right: 0;
    transform: translateY(8px);
  }

  .nav-menu-wrap:hover .nav-dropdown,
  .nav-menu-wrap:focus-within .nav-dropdown {
    transform: translateY(0);
  }
}


/* STEP 31.6.1 — keep dropdown open while moving mouse down */
.nav-menu-wrap {
  padding: 14px 0;
  margin: -14px 0;
}

.nav-menu-wrap::after {
  content: "";
  position: absolute;
  left: -30px;
  right: -30px;
  top: 100%;
  height: 18px;
}

.nav-dropdown {
  top: 100% !important;
}


/* STEP 31.8.1 — real category filtering */
.menu-product-card {
  transition: opacity .15s ease;
}

.nav-dropdown a.active,
.menu-category-chip.active {
  outline: 1px solid rgba(248,113,113,.55);
}


/* STEP 31.8.2 — real category filter fix */
.menu-product-card[style*="display: none"] {
  display: none !important;
}


/* STEP 31.8.3 — strong category separation */
.menu-section.is-signature .menu-product-card:not(.cat-signature) {
  display: none !important;
}

.menu-section.is-maki .menu-product-card:not(.cat-maki) {
  display: none !important;
}

.menu-product-card[hidden] {
  display: none !important;
}


/* STEP 31.9 — futomaki category */
.menu-section.is-futomaki .menu-product-card:not(.cat-futomaki) {
  display: none !important;
}

.menu-section.is-tempura .menu-product-card:not(.cat-tempura){display:none !important;}


/* STEP 33 — nigiri category */
.menu-section.is-nigiri .menu-product-card:not(.cat-nigiri) {
  display: none !important;
}

/* STEP 34 — remaining known categories */
.menu-section.is-poke .menu-product-card:not(.cat-poke),
.menu-section.is-wok .menu-product-card:not(.cat-wok),
.menu-section.is-hot .menu-product-card:not(.cat-hot),
.menu-section.is-drinks .menu-product-card:not(.cat-drinks),
.menu-section.is-desserts .menu-product-card:not(.cat-desserts) {
  display: none !important;
}

/* STEP 35 — Wolt visible menu sync */
.menu-section.is-new .menu-product-card:not(.cat-new) { display: none !important; }
.menu-section.is-lunch .menu-product-card:not(.cat-lunch) { display: none !important; }
.menu-section.is-sets .menu-product-card:not(.cat-sets) { display: none !important; }
.menu-section.is-signature .menu-product-card:not(.cat-signature) { display: none !important; }
.menu-section.is-classic .menu-product-card:not(.cat-classic) { display: none !important; }
.menu-section.is-build .menu-product-card:not(.cat-build) { display: none !important; }
.menu-section.is-futomaki .menu-product-card:not(.cat-futomaki) { display: none !important; }
.menu-section.is-maki .menu-product-card:not(.cat-maki) { display: none !important; }
.menu-section.is-specials .menu-product-card:not(.cat-specials) { display: none !important; }
.menu-section.is-korean .menu-product-card:not(.cat-korean) { display: none !important; }
.menu-section.is-nigiri .menu-product-card:not(.cat-nigiri) { display: none !important; }
.menu-section.is-tempura .menu-product-card:not(.cat-tempura) { display: none !important; }
.menu-section.is-gunkan .menu-product-card:not(.cat-gunkan) { display: none !important; }
.menu-section.is-hot .menu-product-card:not(.cat-hot) { display: none !important; }
.menu-section.is-drinks .menu-product-card:not(.cat-drinks) { display: none !important; }
.menu-section.is-cocktails .menu-product-card:not(.cat-cocktails) { display: none !important; }
.menu-category-strip{max-height:190px;overflow:auto;padding-bottom:4px;}

/* STEP 35.3 — delivery zones */
.delivery-zone-note{margin:-6px 0 8px;color:#fecaca;font-weight:800;font-size:14px;}

/* STEP 36.4 — mysql dynamic menu */


/* STEP 36.5.2 — stable admin header layout */
.admin-top {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 74px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px;
  padding: 12px 28px !important;
  box-sizing: border-box;
  background: rgba(5,5,5,.96);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.admin-top .brand {
  flex: 0 0 auto;
  min-width: 210px;
  display: flex !important;
  align-items: center !important;
}

.admin-top .actions {
  flex: 1 1 auto;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 !important;
  padding: 0 !important;
}

.admin-top .actions .btn,
.admin-top .actions .langBtn {
  white-space: nowrap;
  margin: 0 !important;
}

[dir="rtl"] .admin-top {
  flex-direction: row-reverse;
}

[dir="rtl"] .admin-top .actions {
  justify-content: flex-start !important;
  flex-direction: row-reverse;
}

@media (max-width: 760px) {
  .admin-top {
    position: relative;
    align-items: flex-start !important;
    flex-direction: column !important;
    padding: 14px !important;
  }

  [dir="rtl"] .admin-top {
    flex-direction: column !important;
  }

  .admin-top .brand {
    min-width: 0;
  }

  .admin-top .actions,
  [dir="rtl"] .admin-top .actions {
    width: 100%;
    justify-content: flex-start !important;
    flex-direction: row !important;
  }
}


/* STEP 36.5.16 — FINAL clean admin Hebrew font system
   This replaces the previous accumulated font patches. */
html[lang="he"] body.admin-page,
html[lang="he"] body.admin-page *,
html[lang="he"] body.admin-page input,
html[lang="he"] body.admin-page textarea,
html[lang="he"] body.admin-page select,
html[lang="he"] body.admin-page button,
html[lang="he"] body.admin-page a {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
  font-stretch: normal !important;
  font-variant: normal !important;
  letter-spacing: 0 !important;
}

html[lang="he"] body.admin-page h1,
html[lang="he"] body.admin-page h2,
html[lang="he"] body.admin-page h3,
html[lang="he"] body.admin-page .admin-head h1,
html[lang="he"] body.admin-page .admin-dashboard-stats > h2,
html[lang="he"] body.admin-page .box h2 {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  paint-order: normal !important;
  filter: none !important;
}

html[lang="he"] body.admin-page .admin-stat-card span,
html[lang="he"] body.admin-page .admin-stat-card small,
html[lang="he"] body.admin-page .admin-dashboard-card span,
html[lang="he"] body.admin-page .admin-dashboard-card small,
html[lang="he"] body.admin-page .admin-active-filter,
html[lang="he"] body.admin-page .admin-sort-note,
html[lang="he"] body.admin-page .admin-found-count,
html[lang="he"] body.admin-page .btn,
html[lang="he"] body.admin-page .langBtn,
html[lang="he"] body.admin-page label {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

html[lang="he"] body.admin-page .admin-stat-card b,
html[lang="he"] body.admin-page .admin-dashboard-card b {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/* Custom upload button */
.admin-file-upload {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  width: 100%;
}
.admin-file-input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.admin-file-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  background: rgba(255,255,255,.10) !important;
  color: #fff !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
.admin-file-btn:hover { background: rgba(255,255,255,.16) !important; }
.admin-file-name {
  color: #aaa !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}


/* STEP 36.5.17 — products checkbox row fix */
.admin-checkbox-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-top: 14px !important;
}

.admin-checkbox-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  width: auto !important;
}

.admin-checkbox-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.admin-checkbox-label span {
  display: inline-block !important;
  line-height: 1 !important;
}

[dir="rtl"] .admin-checkbox-actions {
  justify-content: flex-start !important;
  flex-direction: row !important;
}

[dir="rtl"] .admin-checkbox-label {
  flex-direction: row-reverse !important;
}


/* STEP 39 — product delete button */
.admin-delete-product-btn {
  border-color: rgba(248,113,113,.45) !important;
  color: #fecaca !important;
}
.admin-delete-product-btn:hover {
  background: rgba(220,38,38,.18) !important;
}


/* STEP 42 — extras admin */
.admin-extra-grid input {
  width: 100%;
}
.admin-extra-grid .admin-checkbox-label {
  min-height: 44px;
}


/* STEP 47 — smart checkout payment choice */
.payment-choice {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}
.payment-option input {
  width: 18px;
  height: 18px;
}
.payment-option:has(input:checked) {
  border-color: rgba(239, 68, 68, .75);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, .25);
}


/* STEP 48 — footer and legal pages */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.12);
  background: #080808;
  margin-top: 40px;
  padding: 26px 0;
}
.footer-inner {
  display: grid;
  gap: 14px;
}
.footer-copy {
  color: #f5f5f5;
  font-weight: 800;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.footer-links a {
  color: #fca5a5;
  font-weight: 800;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-allergens {
  color: #d4d4d4;
  font-size: 14px;
  line-height: 1.6;
}
.legal-page {
  padding-top: 40px;
  padding-bottom: 40px;
}
.legal-text {
  color: #f5f5f5;
  line-height: 1.8;
  font-size: 18px;
  white-space: normal;
}


/* STEP 48.1 — clean footer/legal links placement */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.12);
  background: #080808;
  margin-top: 34px;
  padding: 20px 0 24px;
  color: #f5f5f5;
}
.footer-inner {
  display: grid;
  gap: 10px;
  text-align: center;
}
.footer-copy {
  font-weight: 800;
  color: #f5f5f5;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}
.footer-links a {
  color: #fca5a5;
  font-weight: 800;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-allergens {
  color: #d4d4d4;
  font-size: 14px;
  line-height: 1.6;
  max-width: 920px;
  margin: 0 auto;
}
.legal-page {
  padding-top: 40px;
  padding-bottom: 40px;
}
.legal-text {
  color: #f5f5f5;
  line-height: 1.8;
  font-size: 18px;
}


/* STEP 48.2.1 — clean WhatsApp contact button */
.contact-content {
  line-height: 1.9;
  font-weight: 700;
}
.contact-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #22c55e;
  color: #04110a !important;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(34,197,94,.18);
}
.contact-whatsapp-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}


/* STEP 48.3 — restaurant settings contacts/social buttons */
.contact-list p {
  margin: 8px 0;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.contact-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: #171717;
  color: #fff !important;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.contact-action-btn.whatsapp {
  border-color: rgba(34,197,94,.45);
  color: #bbf7d0 !important;
}
.contact-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(239,68,68,.75);
}


/* STEP 49 — Accessibility Pro */
:root {
  --access-font-scale: 0;
}
body {
  font-size: calc(16px + (var(--access-font-scale) * 2px));
}
.accessBtn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 18px 40px rgba(220, 38, 38, .35);
  font-size: 28px;
  border: 2px solid rgba(255,255,255,.2);
}
.accessPanel {
  position: fixed;
  right: 22px;
  bottom: 96px;
  width: min(380px, calc(100vw - 34px));
  z-index: 9999;
  background: #171717;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.accessPanel.hidden {
  display: none;
}
.access-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.access-head h3 {
  margin: 0 0 14px;
}
.access-close {
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 4px 8px;
}
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.accessPanel .btn {
  min-height: 46px;
  border-radius: 14px;
  background: #272727;
}
.accessPanel .btn.red {
  background: #dc2626;
  margin-top: 12px;
}
.access-statement-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: #fca5a5;
  font-weight: 900;
  text-decoration: underline;
}

body.access-readable,
body.access-readable * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
}

body.access-contrast {
  background: #000 !important;
  color: #fff !important;
}
body.access-contrast * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
body.access-contrast a,
body.access-contrast button {
  color: #ffff00 !important;
}

body.access-invert header,
body.access-invert main,
body.access-invert footer {
  filter: invert(1);
}
body.access-grayscale header,
body.access-grayscale main,
body.access-grayscale footer {
  filter: grayscale(1);
}
body.access-links a {
  text-decoration: underline !important;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
body.access-headings h1,
body.access-headings h2,
body.access-headings h3 {
  outline: 3px solid #facc15;
  outline-offset: 6px;
}
body.access-focus *:focus {
  outline: 4px solid #facc15 !important;
  outline-offset: 4px !important;
}
body.access-stop-animations *,
body.access-stop-animations *::before,
body.access-stop-animations *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (max-width: 520px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
  .accessBtn {
    width: 56px;
    height: 56px;
  }
}


/* STEP 49B — WCAG/IS 5568 audit fixes */
.skip-link{position:fixed;top:12px;left:12px;z-index:10000;background:#fff;color:#000!important;padding:12px 16px;border-radius:12px;font-weight:900;transform:translateY(-160%);transition:transform .15s ease}
.skip-link:focus{transform:translateY(0);outline:4px solid #facc15}
.sr-field{display:grid;gap:6px}.sr-field>span{font-size:14px;color:#d4d4d4;font-weight:800}

[aria-live]{scroll-margin-top:120px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}


/* STEP 49C — keep accessibility widget fixed while visual filters are active */
.accessBtn,
.accessPanel {
  transform: none;
  filter: none !important;
}
body.access-invert .accessBtn,
body.access-invert .accessPanel,
body.access-grayscale .accessBtn,
body.access-grayscale .accessPanel {
  filter: none !important;
}


/* STEP 49D.1 — Hebrew font rollback
   Normal site typography is preserved.
   Readable font is applied only when user enables accessibility readable-font mode. */
body.access-readable,
body.access-readable * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
}


/* STEP 49E — targeted Hebrew menu/buttons font + calmer focus */
html[lang="he"] .category-tab,
html[lang="he"] .category-tabs button,
html[lang="he"] .nav-dropdown a,
html[lang="he"] .product-card .btn,
html[lang="he"] button[onclick^="addToCart"],
html[lang="he"] .cart .btn,
html[lang="he"] #checkout-submit-btn {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}

/* Normal focus: visible but not aggressive */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(239,68,68,.75) !important;
  outline-offset: 3px !important;
}

/* Strong yellow focus only when user enables keyboard-navigation accessibility mode */
body.access-focus button:focus,
body.access-focus a:focus,
body.access-focus input:focus,
body.access-focus textarea:focus,
body.access-focus select:focus,
body.access-focus [tabindex]:focus {
  outline: 4px solid #facc15 !important;
  outline-offset: 4px !important;
}


/* STEP 49F — exact Hebrew add-to-cart/category typography fix */
html[lang="he"] #menu,
html[lang="he"] #menu .category-tab,
html[lang="he"] #menu .category-tabs button,
html[lang="he"] #menu button,
html[lang="he"] #menu .btn,
html[lang="he"] #menu [onclick*="addToCart"],
html[lang="he"] #menu .product-card button,
html[lang="he"] #menu .product-card .btn {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}

/* Keep Hebrew add-to-cart text clean even if inherited from decorative product card styles */
html[lang="he"] button,
html[lang="he"] button span {
  font-variant-ligatures: normal !important;
}


/* STEP 49G — Hebrew UI font rendering audit fix
   Fixes decorative/heavy "Torah-style" rendering only for Hebrew interface controls:
   menu category chips, add-to-cart buttons, product names/prices, and footer links.
   Does not change Cardcom, data, orders or accessibility logic. */
html[lang="he"] :where(
  #menu .pill,
  #menu .category-tab,
  #menu .category-tabs,
  #menu .category-tabs *,
  #menu .product-card h3,
  #menu .product-card .price,
  #menu .product-card .btn,
  #menu .product-card button,
  #menu button,
  #menu a,
  .site-footer,
  .site-footer *,
  .footer-links,
  .footer-links *,
  .footer-copy,
  .footer-allergens
) {
  font-family: Arial, "Segoe UI", Helvetica, sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-stretch: normal !important;
  font-variant: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: "kern" 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  paint-order: normal !important;
}

/* Keep add-to-cart buttons bold but clean and readable in Hebrew */
html[lang="he"] #menu .product-card .btn,
html[lang="he"] #menu .product-card button,
html[lang="he"] #menu button[onclick*="addToCart"] {
  font-family: Arial, "Segoe UI", Helvetica, sans-serif !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

/* Hebrew category chips should look like modern UI badges, not display headings */
html[lang="he"] #menu .category-tab,
html[lang="he"] #menu .category-tabs button,
html[lang="he"] #menu .pill {
  font-family: Arial, "Segoe UI", Helvetica, sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

/* Footer legal links: clean Hebrew legal text */
html[lang="he"] .site-footer a,
html[lang="he"] .footer-links a {
  font-family: Arial, "Segoe UI", Helvetica, sans-serif !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Let main hero/title design stay as designed; this fix is not global. */


/* STEP 49H — Hebrew UI components typography fix
   Footer is intentionally NOT touched. */
html[lang="he"] #menu h1,
html[lang="he"] #menu h2,
html[lang="he"] #menu h3,
html[lang="he"] #menu .section-title,
html[lang="he"] #menu .menu-title,
html[lang="he"] #menu .pill,
html[lang="he"] #menu .product-card .btn,
html[lang="he"] #menu .product-card button,
html[lang="he"] #menu button[onclick*="addToCart"],
html[lang="he"] #cart .btn,
html[lang="he"] #cart button,
html[lang="he"] #cart .payment-option,
html[lang="he"] #cart .payment-option *,
html[lang="he"] #checkout-submit-btn,
html[lang="he"] .delivery-note,
html[lang="he"] .delivery-info,
html[lang="he"] .cart-total-row,
html[lang="he"] .cart-summary,
html[lang="he"] .accessPanel,
html[lang="he"] .accessPanel *,
html[lang="he"] .accessBtn {
  font-family: Arial, "Segoe UI", Helvetica, sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  paint-order: normal !important;
}

html[lang="he"] #menu .product-card .btn,
html[lang="he"] #menu .product-card button,
html[lang="he"] #checkout-submit-btn,
html[lang="he"] .accessPanel .btn {
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

html[lang="he"] #menu h2,
html[lang="he"] .accessPanel h3 {
  font-weight: 800 !important;
}


/* STEP 49I — Final Hebrew UI polish
   Visual typography only. Accessibility logic and Cardcom are untouched. */

/* Mobile/dropdown menu category list */
html[lang="he"] .nav-menu-wrap,
html[lang="he"] .nav-menu-wrap *,
html[lang="he"] .nav-dropdown,
html[lang="he"] .nav-dropdown *,
html[lang="he"] .mobile-menu,
html[lang="he"] .mobile-menu *,
html[lang="he"] .menu-drawer,
html[lang="he"] .menu-drawer *,
html[lang="he"] .category-dropdown,
html[lang="he"] .category-dropdown * {
  font-family: Arial, "Segoe UI", Helvetica, sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: normal !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/* Main menu title: בחרו הזמנה */
html[lang="he"] #menu > h1,
html[lang="he"] #menu > h2,
html[lang="he"] #menu .section-title,
html[lang="he"] #menu .menu-heading,
html[lang="he"] #menu-title {
  font-family: Arial, "Segoe UI", Helvetica, sans-serif !important;
  font-weight: 800 !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: normal !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/* Delivery/minimum-order helper lines */
html[lang="he"] #cart small,
html[lang="he"] #cart .muted,
html[lang="he"] #cart .hint,
html[lang="he"] #cart .delivery-note,
html[lang="he"] #cart .delivery-info,
html[lang="he"] #cart .delivery-price,
html[lang="he"] #cart .minimum-order,
html[lang="he"] #cart label,
html[lang="he"] #cart label *,
html[lang="he"] #cart .sr-field,
html[lang="he"] #cart .sr-field * {
  font-family: Arial, "Segoe UI", Helvetica, sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: normal !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/* Accessibility panel: only visual font cleanup, no behavior changes */
html[lang="he"] .accessPanel,
html[lang="he"] .accessPanel *,
html[lang="he"] .accessPanel h3,
html[lang="he"] .accessPanel button,
html[lang="he"] .accessPanel a,
html[lang="he"] .accessPanel .btn,
html[lang="he"] .access-head,
html[lang="he"] .access-head * {
  font-family: Arial, "Segoe UI", Helvetica, sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: normal !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}
html[lang="he"] .accessPanel h3,
html[lang="he"] .accessPanel .btn,
html[lang="he"] .accessPanel button {
  font-weight: 800 !important;
}


/* STEP 49J — Exact Hebrew selectors font cleanup from DevTools screenshots
   Exact classes/IDs:
   div.sectionHead, span.redText, h2#menu-title,
   p#delivery-zone-note.delivery-zone-note,
   h3#access-title, .access-grid button.btn.full.
   Visual typography only; no JS behavior changes. */
html[lang="he"] div.sectionHead,
html[lang="he"] div.sectionHead *,
html[lang="he"] span.redText,
html[lang="he"] h2#menu-title,
html[lang="he"] #menu-title,
html[lang="he"] p#delivery-zone-note,
html[lang="he"] #delivery-zone-note,
html[lang="he"] .delivery-zone-note,
html[lang="he"] h3#access-title,
html[lang="he"] #access-title,
html[lang="he"] .access-grid button.btn.full,
html[lang="he"] .access-grid button,
html[lang="he"] .accessPanel button.btn.full,
html[lang="he"] .accessPanel button,
html[lang="he"] .accessPanel a,
html[lang="he"] .accessPanel h3 {
  font-family: Arial, "Segoe UI", Helvetica, sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  paint-order: normal !important;
  direction: inherit;
}

html[lang="he"] h2#menu-title,
html[lang="he"] #menu-title {
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

html[lang="he"] span.redText,
html[lang="he"] #delivery-zone-note,
html[lang="he"] .delivery-zone-note {
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

html[lang="he"] h3#access-title,
html[lang="he"] #access-title,
html[lang="he"] .access-grid button.btn.full,
html[lang="he"] .accessPanel button.btn.full {
    font-weight: 600 !important;
    line-height: 1.25 !important;
}


/* STEP 49K — Final Hebrew font force fix by real DevTools selectors
   Targets only the remaining problematic Hebrew UI components:
   .heroBtns, h2#menu-title, h3#access-title, .access-grid, #delivery-zone-note.
   Footer, Cardcom and accessibility logic are not changed. */
html[lang="he"] .heroBtns,
html[lang="he"] .heroBtns *,
html[lang="he"] h2#menu-title,
html[lang="he"] #menu-title,
html[lang="he"] h3#access-title,
html[lang="he"] #access-title,
html[lang="he"] div.access-grid,
html[lang="he"] div.access-grid *,
html[lang="he"] .access-grid button.btn.full,
html[lang="he"] p#delivery-zone-note,
html[lang="he"] #delivery-zone-note,
html[lang="he"] .delivery-zone-note,
body[dir="rtl"] .heroBtns,
body[dir="rtl"] .heroBtns *,
body[dir="rtl"] h2#menu-title,
body[dir="rtl"] #menu-title,
body[dir="rtl"] h3#access-title,
body[dir="rtl"] #access-title,
body[dir="rtl"] div.access-grid,
body[dir="rtl"] div.access-grid *,
body[dir="rtl"] .access-grid button.btn.full,
body[dir="rtl"] p#delivery-zone-note,
body[dir="rtl"] #delivery-zone-note,
body[dir="rtl"] .delivery-zone-note {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: normal !important;
  font-synthesis: none !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  text-transform: none !important;
  text-decoration-thickness: auto !important;
  text-shadow: none !important;
  -webkit-text-stroke-width: 0 !important;
  -webkit-text-stroke-color: transparent !important;
  -webkit-text-fill-color: currentColor !important;
  paint-order: normal !important;
}

/* Exact title weights */
html[lang="he"] h2#menu-title,
html[lang="he"] #menu-title,
body[dir="rtl"] h2#menu-title,
body[dir="rtl"] #menu-title {
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

/* Accessibility panel buttons and title — visual only */
html[lang="he"] h3#access-title,
html[lang="he"] #access-title,
html[lang="he"] .access-grid button.btn.full,
html[lang="he"] .accessPanel .btn.full,
body[dir="rtl"] h3#access-title,
body[dir="rtl"] #access-title,
body[dir="rtl"] .access-grid button.btn.full,
body[dir="rtl"] .accessPanel .btn.full {
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

/* Delivery note */
html[lang="he"] p#delivery-zone-note,
html[lang="he"] #delivery-zone-note,
body[dir="rtl"] p#delivery-zone-note,
body[dir="rtl"] #delivery-zone-note {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}


/* STEP 49L — Hebrew font weight final fix
   User verified the problem is caused by font-weight:800.
   Keep fonts clean, but use normal readable UI weight. */
html[lang="he"] h2#menu-title,
html[lang="he"] #menu-title,
body[dir="rtl"] h2#menu-title,
body[dir="rtl"] #menu-title,
html[lang="he"] h3#access-title,
html[lang="he"] #access-title,
body[dir="rtl"] h3#access-title,
body[dir="rtl"] #access-title {
  font-weight: 600 !important;
}

html[lang="he"] .access-grid button.btn.full,
html[lang="he"] .accessPanel .btn.full,
body[dir="rtl"] .access-grid button.btn.full,
body[dir="rtl"] .accessPanel .btn.full,
html[lang="he"] .heroBtns *,
body[dir="rtl"] .heroBtns *,
html[lang="he"] p#delivery-zone-note,
html[lang="he"] #delivery-zone-note,
body[dir="rtl"] p#delivery-zone-note,
body[dir="rtl"] #delivery-zone-note {
  font-weight: 600 !important;
}

/* Keep CTA buttons a little stronger, but not heavy display-bold */
html[lang="he"] #checkout-submit-btn,
body[dir="rtl"] #checkout-submit-btn,
html[lang="he"] #menu button[onclick*="addToCart"],
body[dir="rtl"] #menu button[onclick*="addToCart"] {
  font-weight: 700 !important;
}


/* STEP 50 — Thank you and order tracking */
.thank-wrap {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
}
.thank-card {
  width: min(820px, 100%);
  padding: clamp(26px, 5vw, 46px);
  border-radius: 34px;
  background: radial-gradient(circle at top, rgba(220,38,38,.20), rgba(255,255,255,.06) 45%, rgba(0,0,0,.22));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 90px rgba(0,0,0,.42);
  text-align: center;
}
.thank-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(34,197,94,.14);
  border: 1px solid rgba(34,197,94,.35);
  font-size: 42px;
}
.thank-card h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
  margin: 16px 0;
}
.thank-subtitle {
  color: #e5e5e5;
  font-size: 19px;
  line-height: 1.6;
}
.thank-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 26px 0;
}
.thank-details div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
  display: grid;
  gap: 7px;
}
.thank-details span {
  color: #aaa;
  font-weight: 800;
}
.thank-details b {
  color: #fff;
  font-size: 20px;
}
.thank-note,
.thank-missing {
  color: #fecaca;
  font-weight: 800;
  line-height: 1.6;
}
.thank-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.thank-actions .btn {
  min-width: 180px;
}
.track-steps {
  display: grid;
  gap: 12px;
  margin: 26px 0;
  text-align: start;
}
.track-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #aaa;
}
.track-step span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  font-weight: 900;
}
.track-step.active {
  color: #fff;
  border-color: rgba(34,197,94,.38);
  background: rgba(34,197,94,.10);
}
.track-step.active span {
  background: #22c55e;
  color: #04110a;
}
.track-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 22px auto;
  max-width: 560px;
}
.track-search input {
  margin: 0;
}
@media (max-width: 640px) {
  .thank-details {
    grid-template-columns: 1fr;
  }
  .track-search {
    grid-template-columns: 1fr;
  }
  .thank-actions .btn {
    width: 100%;
  }
}


/* STEP 52 — Working hours / Israel time */
.order-hours-notice {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(220,38,38,.16);
  border: 1px solid rgba(248,113,113,.38);
  color: #fecaca;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}
#checkout-submit-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.25);
}


/* STEP 53 — Kaido Admin Dashboard v1 */
.admin-dashboard-title-row{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}
.admin-live-clock{padding:13px 16px;border-radius:18px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);display:grid;gap:3px;min-width:260px}
.admin-live-clock b{color:#fff}.admin-live-clock small{color:#aaa;font-weight:800}
.admin-live-clock.open{border-color:rgba(34,197,94,.38);background:rgba(34,197,94,.10)}
.admin-live-clock.closed{border-color:rgba(248,113,113,.42);background:rgba(220,38,38,.13)}
.admin-finance-grid{display:grid;grid-template-columns:1.4fr repeat(5,1fr);gap:14px;margin:18px 0}
.admin-dashboard-card.hero-card{background:radial-gradient(circle at top left,rgba(220,38,38,.24),rgba(255,255,255,.06))}
.admin-dashboard-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.admin-dashboard-panel{border:1px solid rgba(255,255,255,.12);border-radius:22px;background:rgba(0,0,0,.20);padding:16px}
.admin-dashboard-panel h3{margin:0 0 12px}
.admin-dashboard-line{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:11px 12px;border-radius:14px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);margin-top:8px;color:#fff;text-decoration:none}
.admin-dashboard-line span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-dashboard-line strong{color:#ff6b6b}.admin-dashboard-line.link:hover{border-color:rgba(248,113,113,.55);transform:translateY(-1px)}
.admin-dashboard-empty{padding:14px;border-radius:14px;background:rgba(255,255,255,.055);color:#aaa;font-weight:800}
@media(max-width:1200px){.admin-finance-grid{grid-template-columns:repeat(3,1fr)}.admin-dashboard-columns{grid-template-columns:1fr}}
@media(max-width:760px){.admin-finance-grid{grid-template-columns:1fr}.admin-live-clock{width:100%}}


/* STEP 53C — REAL admin UX polish, exact classes */

/* Status cards: force same layout in RU and HE */
body.admin-page .admin-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(124px, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
  direction: ltr !important;
}

html[dir="rtl"] body.admin-page .admin-stats-grid {
  direction: rtl !important;
}

body.admin-page .admin-stat-card {
  min-height: 116px !important;
  height: 116px !important;
  padding: 14px 16px !important;
  border-radius: 20px !important;
  display: grid !important;
  grid-template-rows: 28px 36px auto !important;
  align-content: center !important;
  justify-content: center !important;
  justify-items: center !important;
  text-align: center !important;
  gap: 4px !important;
}

body.admin-page .admin-stat-card span {
  font-size: 24px !important;
  line-height: 1 !important;
  min-height: 24px !important;
}

body.admin-page .admin-stat-card b {
  font-size: 32px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

body.admin-page .admin-stat-card small {
  font-size: 14px !important;
  line-height: 1.15 !important;
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Admin header status block tighter */
body.admin-page .admin-head {
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 22px !important;
}

/* Order cards: true compact version */
body.admin-page .order-card {
  grid-template-columns: minmax(0, 1fr) 210px !important;
  gap: 16px !important;
  padding: 16px !important;
  margin: 12px 0 !important;
  border-radius: 22px !important;
}

body.admin-page .order-card h3 {
  font-size: 26px !important;
  line-height: 1 !important;
  margin: 0 0 8px !important;
}

body.admin-page .admin-customer {
  display: grid !important;
  gap: 6px !important;
  margin: 0 0 10px !important;
}

body.admin-page .admin-customer div,
body.admin-page .admin-phone-row {
  line-height: 1.25 !important;
}

body.admin-page .admin-customer strong,
body.admin-page .admin-phone-link {
  font-size: 16px !important;
}

body.admin-page .admin-customer-stats {
  margin: 8px 0 10px !important;
  padding: 9px 12px !important;
  border-radius: 14px !important;
  gap: 7px !important;
}

body.admin-page .admin-customer-stats a {
  padding: 5px 9px !important;
}

body.admin-page .admin-notification-status {
  margin: 6px 6px 8px 0 !important;
  padding: 8px 11px !important;
  border-radius: 12px !important;
  line-height: 1.1 !important;
}

body.admin-page .admin-private-note {
  margin-top: 10px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
}

body.admin-page .admin-private-note textarea {
  min-height: 66px !important;
}

body.admin-page .admin-side {
  gap: 10px !important;
}

body.admin-page .admin-side .price {
  font-size: 26px !important;
  line-height: 1 !important;
  margin-bottom: 4px !important;
}

body.admin-page .admin-side label {
  margin-top: 4px !important;
  font-size: 14px !important;
}

body.admin-page .admin-side select,
body.admin-page .admin-side input,
body.admin-page .admin-side textarea {
  min-height: 50px !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
}

body.admin-page .admin-side .btn.full {
  min-height: 46px !important;
  padding: 11px 14px !important;
}

/* Product/cart block inside order */
body.admin-page .order-card .cartItem {
  padding: 10px 0 !important;
  gap: 10px !important;
}

body.admin-page .order-card .cartItem b,
body.admin-page .order-card .total {
  font-size: 18px !important;
}

body.admin-page .order-card .total {
  padding-top: 8px !important;
  margin-top: 6px !important;
}

/* Comment blocks */
body.admin-page .order-card .note,
body.admin-page .order-card .comment,
body.admin-page .order-card pre {
  max-height: 120px !important;
  padding: 10px 12px !important;
}

/* Mobile/tablet */
@media (max-width: 1100px) {
  body.admin-page .admin-stats-grid {
    grid-template-columns: repeat(3, minmax(124px, 1fr)) !important;
  }
}
@media (max-width: 900px) {
  body.admin-page .order-card {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  body.admin-page .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr)) !important;
  }
  body.admin-page .admin-stat-card {
    height: 106px !important;
    min-height: 106px !important;
  }
}


/* STEP 53D — Compact Order Layout */

/* Fix HE status block to exactly match RU style */
html[dir="rtl"] body.admin-page .admin-head,
body[dir="rtl"].admin-page .admin-head {
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}
html[dir="rtl"] body.admin-page .admin-head h1,
body[dir="rtl"].admin-page .admin-head h1 {
  text-align: end !important;
  margin-inline-start: 24px !important;
}
html[dir="rtl"] body.admin-page .admin-stats-grid,
body[dir="rtl"].admin-page .admin-stats-grid {
  direction: rtl !important;
  grid-template-columns: repeat(6, minmax(124px, 1fr)) !important;
}

/* Real compact order cards */
body.admin-page .order-card {
  grid-template-columns: minmax(0, 1fr) 190px !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

body.admin-page .admin-notification-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 8px 0 !important;
}

body.admin-page .admin-notification-row .admin-notification-status {
  margin: 0 !important;
}

body.admin-page .admin-note.compact {
  margin-top: 8px !important;
  padding: 10px 12px !important;
}

body.admin-page .admin-note.compact p {
  margin: 0 !important;
}

/* Collapse heavy sections by default */
body.admin-page .admin-compact-details {
  margin: 8px 0 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.055) !important;
  overflow: hidden !important;
}

body.admin-page .admin-compact-details summary {
  cursor: pointer !important;
  padding: 10px 12px !important;
  font-weight: 900 !important;
  color: #fecaca !important;
  list-style: none !important;
}

body.admin-page .admin-compact-details summary::-webkit-details-marker {
  display: none !important;
}

body.admin-page .admin-compact-details summary::after {
  content: " ▼";
  color: #aaa;
  font-size: 12px;
}

body.admin-page .admin-compact-details[open] summary::after {
  content: " ▲";
}

body.admin-page .admin-private-note {
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 0 !important;
  background: rgba(0,0,0,.18) !important;
  padding: 12px !important;
}

body.admin-page .admin-history {
  margin: 0 !important;
  padding: 10px 12px !important;
}

body.admin-page .admin-history h4 {
  display: none !important;
}

/* Make admin-side shorter */
body.admin-page .admin-side {
  align-content: start !important;
}
body.admin-page .admin-side label {
  font-size: 13px !important;
  margin: 0 !important;
}
body.admin-page .admin-side select {
  min-height: 46px !important;
}
body.admin-page .admin-side .btn.full,
body.admin-page .admin-archive-form .btn.full {
  min-height: 42px !important;
  padding: 9px 12px !important;
}

/* Items block tighter */
body.admin-page .admin-items {
  padding: 14px 16px !important;
  border-radius: 18px !important;
}
body.admin-page .admin-item-line {
  padding: 8px 0 !important;
}
body.admin-page .admin-item-total {
  padding-top: 10px !important;
  margin-top: 8px !important;
}

/* Hide empty huge whitespace from textareas until opened */
body.admin-page details:not([open]) .admin-private-note,
body.admin-page details:not([open]) .admin-history {
  display: none !important;
}

@media (max-width: 900px) {
  body.admin-page .order-card {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
}


/* STEP 54 — Hero popular products slider */
.heroImage.heroSlider {
  min-height: clamp(430px, 44vw, 620px);
  cursor: pointer;
  isolation: isolate;
}

.heroImage.heroSlider img {
  height: clamp(430px, 44vw, 620px);
  transition: opacity .22s ease, transform .35s ease;
}

.heroImage.heroSlider::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,.02) 42%, rgba(0,0,0,.38));
  pointer-events: none;
}

.heroImage.heroSlider.is-changing img {
  opacity: .45;
  transform: scale(1.015);
}

.heroSliderFloat {
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
}

.heroSliderFloat .price {
  font-size: clamp(24px, 2.2vw, 34px);
}

.heroSliderFloat .miniAdd {
  white-space: nowrap;
}

.heroSliderDots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
}

.heroSliderDots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  transition: width .2s ease, background .2s ease;
}

.heroSliderDots span.active {
  width: 22px;
  background: #ef4444;
}

@media (min-width: 1180px) {
  .hero {
    grid-template-columns: .86fr 1.14fr;
  }
}

@media (max-width: 900px) {
  .heroImage.heroSlider,
  .heroImage.heroSlider img {
    height: auto;
    min-height: 330px;
  }

  .heroImage.heroSlider img {
    height: 360px;
  }

  .heroSliderFloat {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 18px;
  }
}

@media (max-width: 560px) {
  .heroImage.heroSlider img {
    height: 320px;
  }

  .heroSliderFloat {
    display: grid;
    gap: 10px;
    align-items: start;
  }
}


/* STEP 54B — Hero slider layout fix */
@media (min-width: 1180px) {
  .hero {
    grid-template-columns: minmax(500px, .82fr) minmax(760px, 1.18fr) !important;
    max-width: 1500px !important;
  }
}

.heroImage.heroSlider {
  min-height: 0 !important;
  height: clamp(410px, 31vw, 520px) !important;
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
  overflow: hidden !important;
}

.heroImage.heroSlider img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.heroImage.heroSlider::after {
  z-index: 1;
}

.heroImage.heroSlider .hero-slider-click-badge {
  position: absolute !important;
  top: 18px !important;
  right: 22px !important;
  left: auto !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

.heroSliderFloat {
  z-index: 6 !important;
  left: 22px !important;
  right: 22px !important;
  bottom: 24px !important;
  max-width: none !important;
  pointer-events: auto !important;
}

.heroSliderFloat > div:first-child {
  min-width: 0 !important;
}

.heroSliderFloat b {
  white-space: normal !important;
  line-height: 1.18 !important;
}

.heroSliderDots {
  z-index: 30 !important;
  bottom: 7px !important;
  pointer-events: auto !important;
}

.heroSliderDots span {
  cursor: pointer !important;
  pointer-events: auto !important;
}

@media (max-width: 900px) {
  .heroImage.heroSlider {
    height: 360px !important;
    aspect-ratio: auto !important;
  }
}

@media (max-width: 560px) {
  .heroImage.heroSlider {
    height: 320px !important;
  }
  .heroSliderFloat {
    left: 12px !important;
    right: 12px !important;
    bottom: 22px !important;
  }
}


/* STEP 54C — Hero slider dots as real buttons */
.heroSliderDots {
  pointer-events: auto !important;
}

.heroSliderDots button {
  appearance: none !important;
  border: 0 !important;
  padding: 0 !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.42) !important;
  transition: width .2s ease, background .2s ease !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.heroSliderDots button.active {
  width: 22px !important;
  background: #ef4444 !important;
}

.heroSliderDots span {
  display: none !important;
}

.hero-slider-click-badge {
  display: none !important;
}


/* STEP 54D — Clean Hero Slider UI Fix */
.heroImage.heroSlider .hero-slider-top-badge {
  position: absolute !important;
  top: 18px !important;
  right: 22px !important;
  left: auto !important;
  z-index: 10 !important;
  display: inline-flex !important;
  pointer-events: none !important;
}

.heroImage.heroSlider .hero-slider-click-badge {
  display: none !important;
}

.heroImage.heroSlider {
  cursor: default !important;
}

.heroSliderAddBtn.miniAdd {
  border: 0 !important;
  cursor: pointer !important;
  font: inherit !important;
  font-weight: 900 !important;
}

.heroSliderAddBtn.miniAdd:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.heroSliderDots,
.heroSliderDots button {
  pointer-events: auto !important;
}


/* STEP 54E — Hero Slider Final Visual Polish */

/* keep only the red badge on the right */
.heroImage.heroSlider .hero-slider-top-badge {
  display: inline-flex !important;
  position: absolute !important;
  top: 18px !important;
  right: 22px !important;
  left: auto !important;
  z-index: 20 !important;
  background: #ef2626 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

/* hide old white duplicate text/legacy click label */
.heroImage.heroSlider > .badge:not(.hero-slider-top-badge),
.heroImage.heroSlider .hero-slider-click-badge,
.heroImage.heroSlider .heroClickText,
.heroImage.heroSlider .clickHint,
.heroImage.heroSlider .heroHint {
  display: none !important;
}

/* if old label was injected as first text-like span, hide only non-red badge spans near top */
.heroImage.heroSlider > span:not(.hero-slider-top-badge):first-child {
  display: none !important;
}

/* dots should be separated from bottom product panel */
.heroSliderDots {
  bottom: 112px !important;
  z-index: 35 !important;
  background: rgba(0,0,0,.42) !important;
  backdrop-filter: blur(6px) !important;
  pointer-events: auto !important;
}

.heroSliderFloat {
  bottom: 22px !important;
}

@media (max-width: 900px) {
  .heroSliderDots {
    bottom: 106px !important;
  }
}

@media (max-width: 560px) {
  .heroSliderDots {
    bottom: 116px !important;
  }

  .heroImage.heroSlider .hero-slider-top-badge {
    right: 14px !important;
    top: 14px !important;
    font-size: 12px !important;
    padding: 9px 12px !important;
  }
}


/* STEP 54F — Hero slider final visual/click fix */

/* old white label is a legacy pseudo/label: remove it */
.heroImage.heroSlider::before {
  content: none !important;
  display: none !important;
}

/* hide any legacy top-left text elements, keep the red right badge */
.heroImage.heroSlider > span:not(.hero-slider-top-badge),
.heroImage.heroSlider > .badge:not(.hero-slider-top-badge),
.heroImage.heroSlider .hero-slider-click-badge,
.heroImage.heroSlider .heroClickText,
.heroImage.heroSlider .clickHint,
.heroImage.heroSlider .heroHint {
  display: none !important;
}

.heroImage.heroSlider .hero-slider-top-badge {
  display: inline-flex !important;
  position: absolute !important;
  top: 18px !important;
  right: 22px !important;
  left: auto !important;
  z-index: 40 !important;
  background: #ef2626 !important;
  color: #fff !important;
  opacity: 1 !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-weight: 900 !important;
  pointer-events: none !important;
}

.heroSliderDots {
  bottom: 118px !important;
  z-index: 50 !important;
  pointer-events: auto !important;
}

.heroSliderDots button {
  display: inline-block !important;
  appearance: none !important;
  border: 0 !important;
  padding: 0 !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.45) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.heroSliderDots button.active {
  width: 22px !important;
  background: #ef4444 !important;
}

.heroSliderDots span {
  display: none !important;
}

.heroImage.heroSlider {
  cursor: default !important;
}

.heroSliderAddBtn {
  cursor: pointer !important;
}


/* STEP 54G — real DOM visual fix */
.heroImage.heroSlider {
  font-size: 0 !important; /* hides raw legacy text node */
}

.heroImage.heroSlider img,
.heroImage.heroSlider .heroSliderFloat,
.heroImage.heroSlider .heroSliderDots,
.heroImage.heroSlider .hero-slider-top-badge {
  font-size: initial !important;
}

.heroImage.heroSlider::before {
  content: none !important;
  display: none !important;
}

.heroImage.heroSlider .hero-slider-top-badge {
  display: inline-flex !important;
  position: absolute !important;
  top: 18px !important;
  right: 22px !important;
  left: auto !important;
  z-index: 60 !important;
  background: #ef2626 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

.heroImage.heroSlider > span:not(.hero-slider-top-badge),
.heroImage.heroSlider > .badge:not(.hero-slider-top-badge),
.hero-slider-click-badge {
  display: none !important;
}

.heroSliderDots {
  bottom: 118px !important;
  z-index: 70 !important;
  pointer-events: auto !important;
}

.heroSliderDots button {
  display: inline-block !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}


/* STEP 54H — Hero slider final simple visual fix */
.heroImage.heroSlider::after {
  content: attr(data-hero-label) !important;
  position: absolute !important;
  top: 18px !important;
  right: 22px !important;
  left: auto !important;
  bottom: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: 22px !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 80 !important;
  background: #ef2626 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none !important;
}

.heroImage.heroSlider::before,
.heroImage.heroSlider .hero-slider-top-badge,
.heroImage.heroSlider .hero-slider-click-badge,
.heroImage.heroSlider > span:not(.price),
.heroImage.heroSlider > .badge {
  content: none !important;
  display: none !important;
}

.heroSliderDots,
#hero-slider-dots {
  display: none !important;
}

.heroImage.heroSlider {
  cursor: default !important;
  font-size: initial !important;
}

.heroSliderAddBtn.miniAdd {
  cursor: pointer !important;
  border: 0 !important;
  font: inherit !important;
  font-weight: 900 !important;
}

@media (max-width: 560px) {
  .heroImage.heroSlider::after {
    top: 14px !important;
    right: 14px !important;
    inset-inline-end: 14px !important;
    font-size: 12px !important;
    padding: 9px 12px !important;
  }
}


/* STEP 54I — Accessibility Stop Animations for Hero Slider */
body.access-stop-animations .heroImage.heroSlider,
body.access-stop-animations .heroImage.heroSlider *,
body.access-stop-animations .heroImage.heroSlider::before,
body.access-stop-animations .heroImage.heroSlider::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

body.access-stop-animations .heroImage.heroSlider.is-changing img {
  opacity: 1 !important;
  transform: none !important;
}


/* STEP 54J — Stop hero slider changes when accessibility stop animations is active */
body.access-stop-animations .heroImage.heroSlider,
body.access-stop-animations .heroImage.heroSlider img,
body.access-stop-animations .heroImage.heroSlider .heroFloat,
body.access-stop-animations .heroImage.heroSlider::after {
  animation: none !important;
  transition: none !important;
}

body.access-stop-animations .heroImage.heroSlider.is-changing img {
  opacity: 1 !important;
  transform: none !important;
}


/* STEP 55 — Print Center Foundation */
body.admin-page .admin-side a[href*="print_ticket"],
body.admin-page .admin-side a[href*="print_receipt"] {
  font-weight: 900 !important;
}

/* STEP 56A — Kaido KDS Foundation */
.kds-page {
  min-height: 100vh;
  background: #080808;
  color: #fff;
}
.kds-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  background: rgba(8,8,8,.94);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.kds-brand {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 1000;
}
.kds-subtitle {
  color: #aaa;
  font-weight: 800;
}
.kds-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.kds-lang,
.kds-link {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
}
.kds-lang.active,
.kds-link:hover {
  background: #dc2626;
}
.kds-clock {
  text-align: end;
  display: grid;
  gap: 4px;
}
.kds-clock b {
  font-size: 30px;
  color: #ff7474;
}
.kds-clock span {
  color: #ddd;
  font-weight: 900;
}
.kds-wrap {
  padding: 22px;
}
.kds-status-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.kds-status-pill {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 1000;
  text-align: center;
}
.kds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.kds-card {
  border-radius: 24px;
  background: #151515;
  border: 2px solid rgba(255,255,255,.13);
  padding: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
}
.kds-card.status-new { border-color: rgba(239,68,68,.85); }
.kds-card.status-accepted { border-color: rgba(59,130,246,.85); }
.kds-card.status-preparing { border-color: rgba(245,158,11,.85); }
.kds-card.status-courier { border-color: rgba(34,197,94,.85); }
.kds-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.kds-card-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 34px);
}
.kds-card-head span {
  color: #aaa;
  font-weight: 900;
}
.kds-card-head b {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(220,38,38,.22);
  color: #fff;
  white-space: nowrap;
}
.kds-payment {
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-weight: 1000;
  text-align: center;
}
.kds-payment.paid {
  background: rgba(34,197,94,.22);
  color: #bbf7d0;
}
.kds-payment.pending {
  background: rgba(245,158,11,.22);
  color: #fde68a;
}
.kds-customer {
  display: grid;
  gap: 6px;
  color: #eee;
  font-size: 17px;
}
.kds-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(248,113,113,.4);
  background: rgba(220,38,38,.12);
  color: #fff;
  font-size: 18px;
}
.kds-items {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.kds-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  font-size: 20px;
  font-weight: 900;
}
.kds-item b {
  font-size: 26px;
  color: #ff7474;
}
.kds-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 24px;
  font-weight: 1000;
}
.kds-empty {
  grid-column: 1 / -1;
  min-height: 45vh;
  display: grid;
  place-items: center;
  border-radius: 28px;
  border: 1px dashed rgba(255,255,255,.22);
  color: #aaa;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 1000;
}
@media(max-width:900px) {
  .kds-topbar { grid-template-columns: 1fr; }
  .kds-clock { text-align: start; }
  .kds-status-row { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:560px) {
  .kds-wrap { padding: 14px; }
  .kds-grid { grid-template-columns: 1fr; }
  .kds-status-row { grid-template-columns: 1fr; }
}

/* STEP 56B — KDS Live Control */
.kds-actions button.kds-link { font: inherit; cursor: pointer; }
.kds-controls { display: grid; gap: 10px; margin-top: 16px; }
.kds-control {
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; border: 0; border-radius: 16px; padding: 12px 14px;
  color: #fff; text-decoration: none; font-size: 18px; font-weight: 1000; cursor: pointer;
}
.kds-control.primary { background: #dc2626; }
.kds-control.done { background: #16a34a; }
.kds-control.print { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); }
.kds-control:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* STEP 56B.2 — KDS Stability & Workflow Fix */
.kds-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(280px, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
}
.kds-column {
  min-height: 48vh;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255,255,255,.025);
}
.kds-column h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  font-size: 19px;
  line-height: 1.15;
}
.kds-column h3 span {
  min-width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #ff7474;
}
.kds-column-list {
  display: grid;
  gap: 12px;
}
.kds-column-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: #555;
  font-size: 30px;
  font-weight: 900;
}
.kds-card {
  padding: 14px !important;
  border-radius: 20px !important;
}
.kds-card-head {
  align-items: flex-start !important;
}
.kds-card-head h2 {
  font-size: clamp(20px, 1.8vw, 28px) !important;
  word-break: break-word;
}
.kds-card-head b {
  max-width: 140px;
  white-space: normal !important;
  text-align: center;
  line-height: 1.1;
  font-size: 13px;
}
.kds-link.sound-on {
  background: #16a34a !important;
  border-color: rgba(34,197,94,.55) !important;
}
.kds-link.sound-off {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.14) !important;
}
@media(max-width:1300px) {
  .kds-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  }
}
@media(max-width:760px) {
  .kds-grid {
    grid-template-columns: 1fr !important;
  }
}

/* STEP 57 — KDS Auto Print Foundation */
.kds-link.print-on { background:#2563eb !important; border-color:rgba(96,165,250,.65) !important; }
.kds-link.print-off { background:rgba(255,255,255,.06) !important; border-color:rgba(255,255,255,.14) !important; }

/* STEP 58A — Multi-Branch Foundation SAFE */
.branch-admin-wrap .muted {
  color: #aaa;
  font-weight: 800;
}
.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.branch-card {
  background: #181818;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.branch-card.enabled {
  border-color: rgba(34,197,94,.55);
}
.branch-card.disabled {
  opacity: .72;
  border-style: dashed;
}
.branch-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 14px;
}
.branch-card-head h2 {
  margin: 0;
  font-size: 26px;
}
.branch-card-head span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(220,38,38,.22);
  color: #fff;
  font-weight: 900;
}
.branch-card.enabled .branch-card-head span {
  background: rgba(22,163,74,.28);
}
.branch-info {
  display: grid;
  gap: 8px;
}
.branch-info p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.branch-note {
  margin-top: 24px;
  background: #181818;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  padding: 20px;
}
.branch-note h2 {
  margin-top: 0;
}
.branch-note li {
  margin: 8px 0;
  font-weight: 800;
}


/* STEP 58A.1 — Branch page logo fix */
body.admin-page .admin-top .brand .logo,
body.admin-page .brand .logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  border-radius: 14px !important;
  background: #ef2b2b !important;
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  text-align: center !important;
  overflow: hidden !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

/* STEP 58B-SAFE — Branch Profiles Registry */
.branch-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}
.branch-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.branch-profile {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 12px;
}
.branch-profile h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.branch-profile p {
  margin: 6px 0;
  font-size: 13px;
  color: #ddd;
}

/* STEP 59 — Multi-Branch Audit & Data Mapping SAFE */
.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.audit-summary-card {
  background: #181818;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.audit-summary-card h2 {
  margin: 0;
  font-size: 42px;
  color: #ff6b6b;
}
.audit-summary-card p {
  margin: 8px 0 0;
  font-weight: 900;
  color: #eee;
}
.audit-table-card {
  background: #181818;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  padding: 20px;
  overflow: hidden;
}
.audit-table-wrap {
  overflow-x: auto;
}
.audit-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  min-width: 1100px;
}
.audit-table th {
  text-align: start;
  color: #aaa;
  padding: 10px 12px;
}
.audit-table td {
  background: rgba(255,255,255,.055);
  padding: 14px 12px;
  vertical-align: top;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.audit-table td:first-child {
  border-radius: 16px 0 0 16px;
  border-inline-start: 1px solid rgba(255,255,255,.08);
}
.audit-table td:last-child {
  border-radius: 0 16px 16px 0;
  border-inline-end: 1px solid rgba(255,255,255,.08);
}
html[dir="rtl"] .audit-table td:first-child {
  border-radius: 0 16px 16px 0;
}
html[dir="rtl"] .audit-table td:last-child {
  border-radius: 16px 0 0 16px;
}
.audit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
}
.audit-pill.on {
  background: rgba(22,163,74,.24);
  color: #bbf7d0;
}
.audit-pill.off {
  background: rgba(220,38,38,.22);
  color: #fecaca;
}

/* STEP 60 — Menu Mapping Foundation SAFE */
.menu-map-safety {
  border-color: rgba(34,197,94,.35);
}
.menu-map-table th,
.menu-map-table td {
  text-align: center;
}
.menu-map-table th:nth-child(2),
.menu-map-table td:nth-child(2),
.menu-map-table th:nth-child(3),
.menu-map-table td:nth-child(3) {
  text-align: start;
}
.menu-map-mark {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  font-size: 18px;
}
.menu-map-mark.on {
  background: rgba(22,163,74,.22);
}
.menu-map-mark.future {
  background: rgba(255,255,255,.055);
  opacity: .75;
}

/* STEP 61 — Menu Mapping Storage SAFE */
.menu-map-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.menu-map-bottom-save {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}
.menu-map-checkbox {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.menu-map-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.menu-map-checkbox span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 19px;
}
.menu-map-checkbox input:checked + span {
  background: rgba(22,163,74,.22);
  border-color: rgba(34,197,94,.35);
}

/* STEP 61.1 — Menu Mapping UX Fix retained: redirect after POST only. Visual style unified in Step 61.2. */
/* STEP 61.2 — Menu Mapping UI Polish */
body.admin-page .menu-map-table small.muted {
  display: none !important;
}

/* STEP 61.3 — Menu Mapping Final UI Cleanup */
.menu-map-active {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  font-weight: 1000;
}
.menu-map-active.on {
  background: rgba(22,163,74,.22);
  border: 1px solid rgba(34,197,94,.35);
}
.menu-map-active.off {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  color: #aaa;
}

/* STEP 61.4 — Menu Mapping Admin Notice Fix */
body.admin-page .kaido-menu-map-notice {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 0 16px 0 !important;
  padding: 13px 16px !important;
  border-radius: 10px !important;
  background: #063d1d !important;
  color: #b7f7c8 !important;
  border: 1px solid rgba(34,197,94,.18) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}
body.admin-page .menu-map-active-clean {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: rgba(22,163,74,.22) !important;
  border: 1px solid rgba(34,197,94,.35) !important;
  font-size: 17px !important;
}

/* STEP 61.5 — Exact Admin Notice Match */
body.admin-page .admin-ok,
.admin-ok {
  background: #052e16 !important;
  color: #86efac !important;
  padding: 12px !important;
  border-radius: 12px !important;
  margin: 12px 0 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.admin-page .kaido-menu-map-notice {
  background: #052e16 !important;
  color: #86efac !important;
  padding: 12px !important;
  border-radius: 12px !important;
  margin: 12px 0 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* STEP 62 — Branch Menu Test Mode SAFE */
.branch-preview-select label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}
.branch-preview-select select {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: #111;
  font-weight: 900;
}
.preview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.preview-stats div {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px;
}
.preview-stats b {
  display: block;
  color: #ff6b6b;
  font-size: 32px;
}
.preview-stats span {
  color: #ddd;
  font-weight: 900;
}
.preview-section-title {
  margin: 24px 0 12px;
  font-size: 24px;
}
.preview-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.preview-product-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 10px;
}
.preview-product-card img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  background: #111;
}
.preview-product-card b {
  display: block;
}
.preview-product-card small {
  color: #aaa;
  font-weight: 800;
}
.preview-product-card strong {
  color: #ff6b6b;
  white-space: nowrap;
}
.preview-product-card.muted {
  opacity: .55;
}

/* STEP 63 — Branch Access Modes Foundation SAFE */
.access-mode-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:18px}
.access-card h3{margin:18px 0 10px}
.access-list{display:grid;gap:8px}
.access-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08)}
.access-row b{font-size:14px}
.access-row em{font-style:normal;font-weight:1000;font-size:12px;padding:5px 9px;border-radius:999px;white-space:nowrap}
.access-row em.on{background:rgba(22,163,74,.24);color:#bbf7d0}
.access-row em.off{background:rgba(255,255,255,.08);color:#ddd}
.access-list.future .access-row em.off{background:rgba(245,158,11,.18);color:#fde68a}

/* STEP 64 — Inside Tablet Foundation SAFE */
.inside-tablet-page {
  margin: 0;
  background: #0f0f10;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
.inside-hero {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: rgba(15,15,16,.94);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
}
.inside-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.inside-logo {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #ef2b2b;
  color: #fff;
  font-weight: 1000;
  font-size: 30px;
}
.inside-brand b {
  display: block;
  font-size: 24px;
}
.inside-brand small {
  color: #bbb;
  font-weight: 800;
}
.inside-actions {
  display: flex;
  gap: 8px;
}
.inside-lang {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 1000;
}
.inside-lang.active {
  background: #ef2b2b;
  border-color: #ef2b2b;
}
.inside-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}
.inside-welcome {
  border-radius: 28px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(239,43,43,.28), rgba(255,255,255,.055));
  border: 1px solid rgba(255,255,255,.12);
}
.inside-welcome h1 {
  margin: 0 0 10px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: .98;
}
.inside-welcome p {
  margin: 0;
  color: #ddd;
  font-size: 19px;
  font-weight: 800;
}
.inside-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.inside-mode-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-weight: 1000;
}
.inside-cats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 0;
  position: sticky;
  top: 91px;
  z-index: 15;
  background: rgba(15,15,16,.92);
}
.inside-cats a {
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 1000;
}
.inside-section {
  padding-top: 18px;
}
.inside-section h2 {
  font-size: 34px;
  margin: 8px 0 16px;
}
.inside-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.inside-card {
  background: #19191b;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  overflow: hidden;
}
.inside-card-img {
  position: relative;
  aspect-ratio: 1.15 / .82;
  background: #111;
}
.inside-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inside-card-img span {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: #ef2b2b;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
}
.inside-card-body {
  padding: 16px;
}
.inside-card-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
}
.inside-card-body p {
  min-height: 42px;
  margin: 0 0 14px;
  color: #bbb;
  font-weight: 700;
}
.inside-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inside-card-foot b {
  font-size: 24px;
  color: #ff6b6b;
}
.inside-card-foot button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255,255,255,.12);
  color: #ddd;
  font-weight: 1000;
}
.inside-empty {
  text-align: center;
  padding: 60px 20px;
  color: #ddd;
}
@media (max-width: 700px) {
  .inside-hero {
    padding: 14px;
  }
  .inside-brand b {
    font-size: 18px;
  }
  .inside-logo {
    width: 46px;
    height: 46px;
  }
  .inside-cats {
    top: 75px;
  }
}

/* STEP 64.4 — Inside Tablet Diagnostic + Force Same Logic */
.inside-debug-box {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: #111827;
  border: 1px solid rgba(96,165,250,.45);
  color: #dbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.inside-debug-box h2 {
  margin: 0 0 10px;
}
.inside-debug-box div {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* STEP 64.6 — Inside Tablet Site Design Match SAFE */
.inside-tablet-page .inside-wrap {
  width: min(1220px, calc(100% - 32px));
}
.inside-tablet-page .inside-welcome {
  background: linear-gradient(135deg, rgba(239,43,43,.22), rgba(255,255,255,.045));
  border-radius: 28px;
}
.inside-tablet-page .inside-cats a {
  background: #222;
  border-color: #3a3a3a;
}
.inside-tablet-page .inside-card {
  border-radius: 22px;
  background: #181818;
  border: 1px solid #303030;
  box-shadow: none;
}
.inside-tablet-page .inside-card-img {
  background: #101010;
  min-height: 190px;
}
.inside-tablet-page .inside-card-img:empty::after {
  content: "🍣";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 190px;
  color: rgba(255,255,255,.18);
  font-size: 54px;
}
.inside-tablet-page .inside-card-body h3 {
  font-size: 21px;
  line-height: 1.15;
}
.inside-tablet-page .inside-card-body p {
  color: #aaa;
  min-height: 36px;
}
.inside-tablet-page .inside-card-foot b {
  color: #ff5c6c;
}
.inside-tablet-page .inside-card-foot button {
  background: #ef2b2b;
  color: #fff;
  opacity: .78;
}

/* STEP 64.7 — Inside Uses Main Site Layout SAFE */
.inside-site-safe-banner {
  margin-top: 14px;
  margin-bottom: 10px;
  background: rgba(239,43,43,.12);
  border: 1px solid rgba(239,43,43,.28);
  color: #fff;
  border-radius: 18px;
  padding: 12px 16px;
  font-weight: 1000;
}

/* STEP 65 — Inside Orders Foundation SAFE */
.inside-site-safe-banner {
  background: rgba(22,163,74,.14) !important;
  border-color: rgba(34,197,94,.35) !important;
}

/* STEP 65.1 — Inside Checkout Cleanup SAFE */
.kaido-inside-checkout .inside-hidden-field,
.kaido-inside-checkout #customer-address,
.kaido-inside-checkout label[for="customer-address"],
.kaido-inside-checkout label[for="delivery-zone"],
.kaido-inside-checkout #delivery-zone,
.kaido-inside-checkout .checkout-note-delivery,
.kaido-inside-checkout .delivery-price,
.kaido-inside-checkout .delivery-zone-help {
  display: none !important;
}
.kaido-inside-checkout .inside-site-safe-banner {
  background: rgba(22,163,74,.14) !important;
  border-color: rgba(34,197,94,.36) !important;
}

/* STEP 65.2 — Inside Restaurant Mode SAFE */
.inside-restaurant-hidden { display:none!important; }

/* STEP 65.2A — Form Labels Cleanup SAFE
   Hide duplicated visual labels above fields because placeholders already show the same text.
   Applies to online checkout and Inside checkout, no logic changes. */
#cart .sr-field > span {
  display: none !important;
}
#cart .sr-field {
  gap: 0 !important;
}

/* STEP 66 — Tables Foundation SAFE */
.kaido-tables-admin .admin-head{display:grid;gap:8px;margin-bottom:22px}.tables-branch-panel,.tables-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:26px;padding:22px;margin:18px 0}.tables-branch-panel{display:flex;justify-content:space-between;gap:16px;align-items:center}.tables-branch-panel h2,.tables-card h2{margin:0 0 10px}.tables-seed-form{display:flex;gap:10px;align-items:center}.tables-seed-form input{max-width:110px;margin:0}.tables-stats-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:18px 0}.tables-stats-grid>div{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:18px}.tables-stats-grid b{display:block;color:#ff7474;font-size:34px;line-height:1}.tables-stats-grid span{font-weight:900;color:#eee}.table-edit-row{display:grid;grid-template-columns:90px 1fr 90px 150px 90px 130px 130px;gap:10px;align-items:center;margin:10px 0;padding:12px;border-radius:18px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.09)}.table-edit-row input,.table-edit-row select{margin:0}.table-new-row{background:rgba(34,197,94,.08);border-color:rgba(34,197,94,.25)}.table-active-check{display:flex;align-items:center;gap:8px;font-weight:900}.table-active-check input{width:auto}.table-status-free{border-color:rgba(34,197,94,.25)}.table-status-occupied{border-color:rgba(239,68,68,.35)}.table-status-reserved{border-color:rgba(245,158,11,.35)}.table-status-disabled,.table-disabled-row{opacity:.62}@media(max-width:1000px){.tables-stats-grid{grid-template-columns:repeat(2,1fr)}.tables-branch-panel,.tables-seed-form{display:grid}.table-edit-row{grid-template-columns:1fr}}

/* STEP 66.1 — Table Status Management SAFE */
.tables-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.table-visual-tile {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255,255,255,.06);
  display: grid;
  gap: 10px;
  min-height: 160px;
}

.table-visual-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-visual-head b {
  font-size: 20px;
}

.table-status-dot {
  font-size: 22px;
}

.table-visual-tile small {
  color: #aaa;
  min-height: 18px;
}

.table-visual-tile em {
  font-style: normal;
  font-weight: 900;
  color: #fff;
}

.table-status-free {
  border-color: rgba(34,197,94,.45) !important;
  box-shadow: 0 0 0 1px rgba(34,197,94,.12);
}

.table-status-occupied {
  border-color: rgba(239,68,68,.55) !important;
  box-shadow: 0 0 0 1px rgba(239,68,68,.14);
}

.table-status-reserved {
  border-color: rgba(234,179,8,.55) !important;
  box-shadow: 0 0 0 1px rgba(234,179,8,.14);
}

.table-status-disabled,
.table-disabled-row {
  opacity: .62;
}

.table-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.table-quick-actions form {
  margin: 0;
}

.table-status-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(0,0,0,.36);
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.table-status-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
}

@media (max-width: 1100px) {
  .tables-visual-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tables-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .tables-visual-grid {
    grid-template-columns: 1fr;
  }
}

/* STEP 66.2 — Attach Order To Table SAFE */
.inside-table-select-box {
  display: grid;
  gap: 7px;
  margin: 6px 0;
}
.inside-table-select-box span {
  color: #f5f5f5;
  font-weight: 900;
}
.admin-table-badge {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.admin-table-badge strong {
  color: #bbf7d0 !important;
}

/* STEP 66.2A — Hide Table Selector From Guest SAFE */
.inside-table-guest-hidden,
.kaido-inside-checkout .inside-table-select-box,
.kaido-inside-checkout #inside-table-id {
  display: none !important;
}

/* STEP 66.3R — Hall Dashboard REBUILD SAFE */
.hall-branch-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.hall-branch-box h2 {
  margin: 0 0 8px;
}
.hall-branch-form {
  min-width: 260px;
}
.hall-branch-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}
.hall-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.hall-stat {
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 8px;
  min-height: 126px;
}
.hall-stat span { font-size: 28px; }
.hall-stat b { font-size: 38px; color: #fff; line-height: 1; }
.hall-stat small { color: #d4d4d4; font-weight: 900; }
.hall-stat.free b { color: #86efac; }
.hall-stat.occupied b { color: #fca5a5; }
.hall-stat.reserved b { color: #fde68a; }
.hall-stat.disabled b { color: #a3a3a3; }
.hall-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.hall-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.hall-card.hall-free { border-color: rgba(34,197,94,.42); }
.hall-card.hall-occupied { border-color: rgba(239,68,68,.46); }
.hall-card.hall-reserved { border-color: rgba(234,179,8,.5); }
.hall-card.hall-disabled { opacity: .72; }
.hall-card-top { display: grid; gap: 8px; }
.hall-card-top span { color: #ddd; font-weight: 900; }
.hall-card-top b { font-size: 26px; color: #fff; }
.hall-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #aaa;
  font-weight: 800;
}
.hall-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hall-actions form { margin: 0; }
.hall-status-btn {
  width: 46px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.13);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.hall-status-btn.active {
  background: rgba(220,38,38,.32);
  border-color: rgba(248,113,113,.65);
  box-shadow: 0 0 0 2px rgba(248,113,113,.18);
}
@media (max-width: 1100px) {
  .hall-stats { grid-template-columns: repeat(3, 1fr); }
  .hall-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .hall-branch-box { display: grid; }
  .hall-stats, .hall-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .hall-stats, .hall-grid { grid-template-columns: 1fr; }
}

/* STEP 66.4C — Waiter No Checkout Touch SAFE */
.waiter-branch-box {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.waiter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.waiter-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 16px;
}
.waiter-card.waiter-free { border-color: rgba(34,197,94,.42); }
.waiter-card.waiter-occupied { border-color: rgba(239,68,68,.46); }
.waiter-card.waiter-reserved { border-color: rgba(234,179,8,.5); }
.waiter-card-main { display: grid; gap: 8px; }
.waiter-card-main span { color: #ddd; font-weight: 900; }
.waiter-card-main b { font-size: 30px; color: #fff; }
.waiter-card-main small { color: #aaa; font-weight: 800; }
.waiter-card-actions { display: grid; gap: 10px; }
.waiter-card-actions form { margin: 0; }
.waiter-card-actions .btn { width: 100%; text-align: center; }
@media (max-width: 900px) {
  .waiter-grid { grid-template-columns: repeat(2, 1fr); }
  .waiter-branch-box { display: grid; }
}
@media (max-width: 560px) {
  .waiter-grid { grid-template-columns: 1fr; }
}

/* STEP 66.4D — Inside Order Chain Repair SAFE */

/* STEP 66.5 — Order Table Binding SAFE */
.inside-staff-table-banner {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(34,197,94,.14);
  border: 1px solid rgba(34,197,94,.36);
  color: #bbf7d0;
  font-weight: 900;
}
.admin-table-badge {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.admin-table-badge strong {
  color: #bbf7d0 !important;
}

/* STEP 66.7 — Hall Live Status SAFE */
.hall-live-order {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.32);
  color: #fff;
}
.hall-live-order b { color: #bbf7d0; font-size: 18px; }
.hall-live-order span { color: #f5f5f5; font-weight: 800; }
.hall-live-order small { color: #aaa; font-weight: 900; }

/* STEP 66.7A — Hall Order Source Fix SAFE */

/* STEP 66.8 */
.hall-open-order-link{
 display:inline-block;
 margin-top:8px;
 font-weight:900;
 text-decoration:none;
}

/* STEP 66.9 — Table Bill & Close SAFE */
.table-bill-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}
.table-bill-total{min-width:220px;padding:22px;border-radius:24px;background:rgba(34,197,94,.14);border:1px solid rgba(34,197,94,.36);display:grid;gap:8px}
.table-bill-total span{color:#bbf7d0;font-weight:900}.table-bill-total b{color:#fff;font-size:40px;line-height:1}
.table-bill-orders{display:grid;gap:12px;margin:18px 0}
.table-bill-order{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:16px 18px;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12)}
.table-bill-order div{display:grid;gap:6px}.table-bill-order b{font-size:22px;color:#fff}.table-bill-order span{color:#aaa;font-weight:800}.table-bill-order strong{color:#bbf7d0;font-size:24px}
.table-bill-actions{display:grid;gap:12px}.table-bill-actions form{margin:0}.table-bill-actions .btn{width:100%;min-height:56px}
@media(max-width:700px){.table-bill-hero{display:grid}.table-bill-total{min-width:0}}

/* STEP 67.0 — Payment Tracking SAFE */
.admin-payment-badge {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.admin-payment-badge strong {
  color: #bfdbfe !important;
}
.admin-payment-badge em {
  color: #aaa;
  font-style: normal;
  font-weight: 800;
}
.hall-live-payment {
  color: #bfdbfe !important;
  font-weight: 900 !important;
}

/* STEP 67.1 — Daily Cash / Terminal Summary SAFE */
.restaurant-summary-filter {
  display:flex;
  gap:12px;
  align-items:end;
  flex-wrap:wrap;
}
.restaurant-summary-filter label {
  display:grid;
  gap:7px;
  font-weight:900;
}
.restaurant-summary-cards {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
  margin:22px 0;
}
.restaurant-summary-card {
  display:grid;
  gap:8px;
  padding:22px;
  border-radius:24px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}
.restaurant-summary-card span {font-size:30px}
.restaurant-summary-card small {color:#ddd;font-weight:900}
.restaurant-summary-card b {color:#fff;font-size:38px;line-height:1}
.restaurant-summary-card em {color:#aaa;font-style:normal;font-weight:800}
.restaurant-summary-card.cash b {color:#bbf7d0}
.restaurant-summary-card.terminal b {color:#bfdbfe}
.restaurant-summary-card.total b {color:#fde68a}
.restaurant-summary-list {display:grid;gap:10px;margin-top:14px}
.restaurant-summary-row {
  display:grid;
  grid-template-columns: 1fr auto auto;
  gap:14px;
  align-items:center;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}
.restaurant-summary-row div {display:grid;gap:5px}
.restaurant-summary-row b {color:#fff;font-size:20px}
.restaurant-summary-row span,.restaurant-summary-row small {color:#aaa;font-weight:800}
.restaurant-summary-row strong {color:#bbf7d0;font-size:22px}
.restaurant-summary-row em {color:#bfdbfe;font-style:normal;font-weight:900}
@media(max-width:760px){.restaurant-summary-cards{grid-template-columns:1fr}.restaurant-summary-row{grid-template-columns:1fr}}

/* STEP 68.0R — Branch Financial Clone WORKING SAFE */
.branch-finance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.branch-finance-actions .btn {
  flex: 1 1 auto;
}
.branch-finance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media(max-width:900px){
  .branch-finance-grid { grid-template-columns: 1fr; }
}

/* STEP 68.1 — Branch Payment Profile SAFE */
.payment-profile-grid input,
.payment-profile-grid select {
  width: 100%;
}
.effective-box small {
  display: block;
  margin-top: 6px;
}

/* STEP 69.1 — Restaurant Admin as Kaido 2.0 Shell SAFE */
.restaurant2-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:18px 0;
}
.restaurant2-stats .box b{
  display:block;
  font-size:34px;
  color:#ff6b6b;
}
.restaurant2-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}
.restaurant2-tile{
  display:grid;
  gap:8px;
  min-height:150px;
  padding:20px;
  border-radius:24px;
  background:#171717;
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  text-decoration:none;
}
.restaurant2-tile:hover{border-color:rgba(239,43,43,.8);transform:translateY(-1px)}
.restaurant2-tile span{font-size:34px}
.restaurant2-tile b{font-size:24px}
.restaurant2-tile small{color:#bdbdbd;font-weight:800}
.restaurant-settings-readonly{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.restaurant-settings-readonly div{display:grid;gap:6px;background:rgba(255,255,255,.05);padding:14px;border-radius:14px}
.restaurant-settings-readonly span{color:#ddd}
@media(max-width:1000px){.restaurant2-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.restaurant2-stats,.restaurant2-grid,.restaurant-settings-readonly{grid-template-columns:1fr}}

/* STEP 69.2 — Remove Branch UI / Restaurant Admin CLEAN SAFE */
.restaurant2-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.restaurant2-stats .box b{display:block;font-size:34px;color:#ff6b6b}
.restaurant2-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:18px}
.restaurant2-tile{display:grid;gap:8px;min-height:150px;padding:20px;border-radius:24px;background:#171717;border:1px solid rgba(255,255,255,.14);color:#fff;text-decoration:none}
.restaurant2-tile:hover{border-color:rgba(239,43,43,.8);transform:translateY(-1px)}
.restaurant2-tile span{font-size:34px}.restaurant2-tile b{font-size:24px}.restaurant2-tile small{color:#bdbdbd;font-weight:800}
@media(max-width:1100px){.restaurant2-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.restaurant2-stats,.restaurant2-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.restaurant2-stats,.restaurant2-grid{grid-template-columns:1fr}}


/* STEP77.7 — safe product description popup without changing the product grid */
.menu-product-card .price {
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.1;
}

.menu-product-card .cardImg.product-desc-hover {
  overflow: visible;
  outline: none;
}

.menu-product-card .product-desc-pop {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 8;
  display: none;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(12,12,12,.94);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  line-height: 1.45;
  font-size: 15px;
  box-shadow: 0 22px 55px rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
}

.menu-product-card .cardImg.product-desc-hover:hover .product-desc-pop,
.menu-product-card .cardImg.product-desc-hover:focus .product-desc-pop,
.menu-product-card.show-product-desc .product-desc-pop {
  display: block;
}

.menu-product-card .product-details-link {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 10px;
  padding: 6px 13px;
  min-height: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  color: #f4f4f5;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 8px 18px rgba(0,0,0,.18);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.menu-product-card .product-details-link::before {
  content: "ⓘ";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  color: #8cc7ff;
  font-size: 13px;
  line-height: 1;
}

.menu-product-card .product-details-link:hover,
.menu-product-card .product-details-link:focus {
  color: #fff;
  border-color: rgba(239,68,68,.65);
  background: linear-gradient(180deg, rgba(239,68,68,.22), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 22px rgba(239,68,68,.12);
  outline: none;
  transform: translateY(-1px);
}

.menu-product-card .product-details-link:focus-visible {
  outline: 3px solid rgba(96,165,250,.60);
  outline-offset: 3px;
}

.menu-product-card .cardRow > div {
  min-width: 0;
}

@media (hover: none) {
  .menu-product-card .cardImg.product-desc-hover:hover .product-desc-pop {
    display: none;
  }
  .menu-product-card.show-product-desc .product-desc-pop {
    display: block;
  }
}

/* STEP77.9: align product title/details button without changing grid */
.menu-product-card .cardRow {
  align-items: flex-start;
}

.menu-product-card .cardRow > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.menu-product-card .cardRow h3 {
  min-height: 48px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-product-card .product-details-link {
  margin-top: 8px;
}

@media (max-width: 560px) {
  .menu-product-card .cardRow h3 {
    min-height: 46px;
  }
}

/* STEP77.10: add breathing room between Details and Add button */
.menu-product-card .product-details-link {
  margin-top: 10px;
  margin-bottom: 16px;
}

.menu-product-card .cardRow {
  padding-bottom: 4px;
}


/* STEP77.12: beautiful product titles — stable two-line block, no ugly hyphen breaks */
.menu-product-card .cardRow h3 {
  line-height: 1.22;
  min-height: 2.44em;
  max-height: 2.44em;
  margin: 0;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-product-card .cardRow > div {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 560px) {
  .menu-product-card .cardRow h3 {
    line-height: 1.24;
    min-height: 2.48em;
    max-height: 2.48em;
  }
}

/* STEP79.3 — Mobile UX final: no duplicates, hero first on mobile, desktop preserved */
.hero > div:first-child {
  grid-column: 1;
  grid-row: 1;
}
.hero > .heroImage {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.hero > .heroStats {
  grid-column: 1;
  grid-row: 2;
  margin-top: 28px;
}

@media (max-width: 768px) {
  .accessPanel {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    bottom: 86px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 68vh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px !important;
    gap: 9px !important;
    border-radius: 22px !important;
  }
  [dir="rtl"] .accessPanel {
    left: 14px !important;
    right: 14px !important;
  }
  .accessPanel h3 {
    font-size: 20px !important;
    line-height: 1.15 !important;
    margin: 0 0 6px !important;
  }
  .accessPanel .btn {
    min-height: 46px !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    font-size: 16px !important;
    line-height: 1.18 !important;
  }
  .accessPanel .access-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .access-statement-link {
    display: block !important;
    text-align: center !important;
    padding: 8px 4px 2px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 560px) {
  .hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    min-height: auto !important;
    padding-top: 28px !important;
    padding-bottom: 34px !important;
  }

  /* Mobile: keep the first screen focused on the sales hero, not service cards. */
  .hero > div:first-child {
    display: none !important;
  }

  .hero > .heroImage {
    order: 1 !important;
    width: 100% !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .hero > .heroStats {
    order: 2 !important;
    width: 100% !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 0 !important;
  }

  .heroImage.heroSlider {
    height: 390px !important;
    min-height: 390px !important;
    border-radius: 28px !important;
  }

  .heroImage.heroSlider img {
    height: 100% !important;
    border-radius: 28px !important;
  }

  .heroImage.heroSlider::after {
    top: 14px !important;
    right: 14px !important;
    inset-inline-end: 14px !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    padding: 10px 14px !important;
    max-width: calc(100% - 28px) !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .heroSliderFloat {
    left: 14px !important;
    right: 14px !important;
    bottom: 16px !important;
    padding: 15px !important;
    border-radius: 22px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .heroSliderFloat > div:first-child {
    display: block !important;
    min-width: 0 !important;
  }

  .heroSliderFloat > div:first-child span {
    display: block !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    margin-bottom: 4px !important;
  }

  .heroSliderFloat > div:first-child b {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 19px !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  .heroSliderFloat > div:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-width: 0 !important;
  }

  .heroSliderFloat .price {
    flex: 0 0 auto !important;
    font-size: 30px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .heroSliderFloat .miniAdd,
  .heroSliderFloat .heroSliderAddBtn {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 13px 14px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 380px) {
  .heroImage.heroSlider {
    height: 370px !important;
    min-height: 370px !important;
  }
  .heroSliderFloat .price {
    font-size: 25px !important;
  }
  .heroSliderFloat .miniAdd,
  .heroSliderFloat .heroSliderAddBtn {
    font-size: 14px !important;
    padding: 12px 10px !important;
  }
  .accessPanel {
    left: 10px !important;
    right: 10px !important;
    bottom: 82px !important;
    max-height: 66vh !important;
  }
}

/* STEP79.4 — Tablet hero layout polish
   Tablet only: text first, hero slider second, service cards third.
   Desktop (>1100px) and phone (<=560px) keep their current behavior. */
@media (min-width: 561px) and (max-width: 1100px) {
  .hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 28px !important;
    min-height: auto !important;
    padding-top: 42px !important;
    padding-bottom: 46px !important;
  }

  .hero > div:first-child {
    order: 1 !important;
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .hero > div:first-child h1 {
    max-width: 720px !important;
    font-size: clamp(52px, 8vw, 76px) !important;
    line-height: .94 !important;
  }

  .hero > div:first-child p {
    max-width: 620px !important;
  }

  .hero > .heroImage {
    order: 2 !important;
    width: 100% !important;
    max-width: 920px !important;
    align-self: center !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .heroImage.heroSlider {
    height: clamp(420px, 52vw, 560px) !important;
    min-height: clamp(420px, 52vw, 560px) !important;
    border-radius: 30px !important;
  }

  .heroImage.heroSlider img {
    height: 100% !important;
    border-radius: 30px !important;
  }

  .heroSliderFloat {
    left: 22px !important;
    right: 22px !important;
    bottom: 22px !important;
    padding: 18px 20px !important;
    border-radius: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
  }

  .heroSliderFloat > div:first-child {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .heroSliderFloat > div:first-child b {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  .heroSliderFloat > div:last-child {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    min-width: 0 !important;
  }

  .heroSliderFloat .price {
    font-size: clamp(30px, 4vw, 42px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .heroSliderFloat .miniAdd,
  .heroSliderFloat .heroSliderAddBtn {
    margin: 0 !important;
    white-space: nowrap !important;
    font-size: clamp(15px, 2.2vw, 18px) !important;
    padding: 13px 18px !important;
    border-radius: 999px !important;
  }

  .hero > .heroStats {
    order: 3 !important;
    width: 100% !important;
    max-width: 920px !important;
    align-self: center !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-top: 0 !important;
  }
}

@media (min-width: 561px) and (max-width: 760px) {
  .hero > .heroStats {
    grid-template-columns: 1fr !important;
  }

  .heroSliderFloat {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  .heroSliderFloat > div:last-child {
    justify-content: space-between !important;
  }
}


/* STEP80.2 — rollback bad HE badge width, safe mobile-only compact badge
   Fixes STEP80.1 oversized Hebrew hero badge. Desktop/tablet untouched. */
@media (max-width: 560px) {
  html[dir="rtl"] .heroImage.heroSlider::after,
  [dir="rtl"] .heroImage.heroSlider::after {
    font-size: 12px !important;
    line-height: 1 !important;
    padding: 9px 12px !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    max-width: max-content !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
  }
}

/* STEP80.3 — mobile HE hero badge compact repair
   Mobile Hebrew only: make the hero CTA badge match the compact RU pill.
   Desktop, tablet and RU are untouched. */
@media (max-width: 560px) {
  html[dir="rtl"] .heroImage.heroSlider::after,
  [dir="rtl"] .heroImage.heroSlider::after {
    content: "לחצו להזמנה" !important;
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    bottom: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 36px) !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 9px 18px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    text-align: center !important;
    transform: none !important;
  }
}


/* STEP80.3R — restore mobile hero text block
   Base: clean STEP80.3.
   Mobile only. Desktop/tablet/badge/order logic outside mobile untouched.
   Shows the headline text after the hero slider and before service cards. */
@media (max-width: 560px) {
  .hero > div:first-child {
    display: block !important;
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-column: auto !important;
    grid-row: auto !important;
    margin: 0 !important;
  }

  .hero > div:first-child .pill {
    display: inline-block !important;
    margin-bottom: 14px !important;
  }

  .hero > div:first-child h1 {
    display: block !important;
    font-size: clamp(34px, 10vw, 48px) !important;
    line-height: .98 !important;
    letter-spacing: -1px !important;
    margin: 12px 0 14px !important;
  }

  .hero > div:first-child p {
    display: block !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
    margin: 0 0 18px !important;
    color: #d4d4d4 !important;
  }

  .hero > div:first-child .heroBtns {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  .hero > .heroImage {
    order: 1 !important;
  }

  .hero > .heroStats {
    order: 3 !important;
  }
}

/* STEP80.3R-HERO-HE-RIGHT-V2
   Hebrew desktop/tablet only: place the hero slider CTA badge on the visual right side.
   Important: logical inset is reset BEFORE physical right/left, so RTL cannot flip it left.
   Mobile <=560px stays untouched. */
@media (min-width: 561px) {
  html[lang="he"] .heroImage.heroSlider::after,
  html[dir="rtl"] .heroImage.heroSlider::after,
  body[dir="rtl"] .heroImage.heroSlider::after {
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    left: auto !important;
    right: 22px !important;
  }
}
