/* Emirates Sea QR menu
   Brand colours and fonts live in :root - change them here only. */
:root {
  --bg: #1a120a;          /* page background */
  --card: #291d0d;        /* matches the dark background inside the designer's pages */
  --panel: #241910;
  --gold: #d4a96a;        /* main gold (text, borders) */
  --gold-hi: #ebc98d;     /* brighter gold (hover, active) */
  --cream: #f2e5cb;
  --muted: #a8957a;
  --line: rgba(212, 169, 106, 0.32);
  --banner-a: #5d3c18;    /* category heading bar, left */
  --banner-b: #3a2410;    /* category heading bar, right */
  --serif: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --arabic: "Amiri", "Geeza Pro", "Noto Naskh Arabic", "Times New Roman", serif;   /* Arabic headings and names */
  --nav-h: 60px;
  --tab-h: 62px;          /* bottom bar: Menu / Google Review / Management */
  --err: #ff8a7a;         /* form error text and borders */
  --radius: 14px;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 15px/1.5 var(--sans);
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--gold); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

/* ---------- Header ---------- */
.brand {
  position: relative;
  text-align: center;
  padding: calc(22px + env(safe-area-inset-top)) 16px 18px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(212, 169, 106, 0.16), transparent 60%),
    linear-gradient(180deg, #24180d, var(--bg));
}
.brand__name {
  margin: 0;
  font: 700 clamp(22px, 6.5vw, 32px)/1.1 var(--serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand__logo { margin: 0 auto; width: clamp(84px, 24vw, 112px); height: auto; }
.brand__logo + .brand__name { margin-top: 10px; }
.brand__tag {
  margin: 6px 0 0;
  font: 500 13px/1.4 var(--serif);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Branch name: brand font, gold, smallest line of the header. The Management form label uses the same style */
.brand__branch, .cform__branch {
  font: 600 12px/1.3 var(--serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand__branch { margin: 8px 0 0; }

/* Language button: top-right corner of the header in both languages */
.langbtn {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 2;
  min-width: 76px;
  padding: 7px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(26, 18, 10, 0.6);
  color: var(--gold);
  font: 600 13px/1.2 var(--sans);
}
.langbtn:lang(ar) { font: 700 15px/1.1 var(--arabic); }
@media (hover: hover) { .langbtn:hover { background: var(--gold); color: #1d140b; } }
/* Narrow phones: leave room so the restaurant name does not run under the button */
@media (max-width: 520px) {
  .brand { padding-top: calc(54px + env(safe-area-inset-top)); }
  .brand.has-logo { padding-top: calc(20px + env(safe-area-inset-top)); }
}

/* View switch in the header: Photo cards / Quick list */
.viewswitch {
  display: inline-flex;
  margin: 14px 0 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.viewswitch__btn {
  min-width: 118px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font: 600 12.5px/1 var(--serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.viewswitch__btn[aria-pressed="true"] { background: var(--gold); color: #1d140b; }

/* ---------- Category bar ---------- */
.catnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--nav-h);
  padding: 0 0 0 max(10px, env(safe-area-inset-left));
  background: rgba(26, 18, 10, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.catnav__all {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--gold);
}
.catnav__scroller {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-inline: 10px 16px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 85%, transparent);
}
.catnav__scroller::-webkit-scrollbar { display: none; }
.catnav__scroller.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.catnav__scroller.is-dragging .chip { pointer-events: none; }
/* Left/right arrows: shown only when there are more categories that way */
.catnav__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--gold);
}
.catnav__arrow--right { margin-inline-end: max(10px, env(safe-area-inset-right)); }
.catnav__arrow:hover { color: var(--gold-hi); border-color: var(--gold); }
/* On touch phones swiping is natural, so the arrows are not needed */
@media (hover: none) and (pointer: coarse) { .catnav__arrow { display: none !important; } }
.chip {
  flex: none;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font: 600 12.5px/1 var(--serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip.is-empty { color: var(--muted); }
.chip[aria-current="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #1d140b;
}

/* ---------- Menu sections ---------- */
.menu {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 12px 24px;
}
.cat {
  padding-top: 18px;
  scroll-margin-top: calc(var(--nav-h) + 6px);
}
.cat__title {
  position: relative;
  margin: 0 0 10px;
  padding: 14px 44px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--banner-a), var(--banner-b));
  text-align: center;
  font: 700 clamp(19px, 5.4vw, 28px)/1.15 var(--serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.cat__title::before,
.cat__title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.cat__title::before { left: 18px; }
.cat__title::after { right: 18px; }
.cat__tools {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}
.linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dishes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) { .dishes { grid-template-columns: repeat(2, 1fr); } }
/* Wide screens copy the designer's layout: 2 wide cards or 3 normal cards per row */
@media (min-width: 960px) {
  .dishes { grid-template-columns: repeat(6, 1fr); align-items: start; }
  .dish { grid-column: span 2; }
  .dish.is-wide { grid-column: span 3; }
}

.dish, .page {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dish img, .page img { width: 100%; }
@media (hover: hover) {
  .dish:hover, .page:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); }
}
.page { max-width: 760px; margin: 0 auto 12px; }

/* ---------- Quick list view ---------- */
.dishlist { display: none; }
.is-list .dishes { display: none; }
.is-list .dishlist { display: block; border-top: 1px solid var(--line); }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: start;
}
.row__img {
  flex: none;
  width: 72px;
  height: 72px;
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  object-fit: cover;
  background: var(--card);
}
.row__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row__name {
  font: 600 14px/1.25 var(--serif);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold);
}
.row__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
}
.row__price {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  max-width: 34%;
  font: 700 14.5px/1.2 var(--serif);
  color: var(--cream);
  text-align: end;
}
.row__price small { font: 500 10.5px/1.2 var(--sans); color: var(--muted); letter-spacing: 0.04em; }
@media (hover: hover) { .row:hover { background: rgba(212, 169, 106, 0.06); } }
@media (min-width: 960px) {
  .is-list .dishlist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .row__img { width: 84px; height: 84px; }
}

.soon {
  margin: 0;
  padding: 26px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.foot {
  padding: 26px 16px calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.foot p { margin: 4px 0; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.foot__updated { font-size: 12px; opacity: 0.8; }

.totop {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom));
  z-index: 15;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(36, 25, 16, 0.92);
  color: var(--gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.iconbtn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--cream);
}

/* ---------- All categories sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82vh;
  overflow-y: auto;
  padding: 6px 14px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  background: var(--panel);
  animation: sheet-in 0.22s ease-out;
}
@media (min-width: 700px) {
  .sheet__panel { left: 50%; right: auto; bottom: auto; top: 10vh; width: 640px; transform: translateX(-50%); border-radius: 18px; border: 1px solid var(--line); animation: none; }
}
@keyframes sheet-in { from { transform: translateY(30px); opacity: 0; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__head h2 { margin: 0; font: 700 17px var(--serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.sheet__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 6px; }
.sheet__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  text-align: start;
}
.sheet__item b { font: 600 13px/1.25 var(--serif); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }
.sheet__item small { font-size: 12px; color: var(--muted); }
.sheet__item[aria-current="true"] { border-color: var(--gold); background: rgba(212, 169, 106, 0.12); }

/* ---------- Zoom viewer ---------- */
html.is-locked, html.is-locked body { overflow: hidden; }
.zv {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: #0e0904;
}
.zv__bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: calc(4px + env(safe-area-inset-top)) 6px 4px;
  padding-inline-start: 14px;
  border-bottom: 1px solid rgba(212, 169, 106, 0.18);
}
.zv__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 13px var(--serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.zv__count { margin-inline-end: 4px; font-size: 13px; color: var(--muted); }
.zv__stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.zv__img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: opacity 0.2s;
}
.zv__img.is-loading { opacity: 0.35; }
.zv__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(26, 18, 10, 0.75);
  color: var(--gold);
}
.zv__nav:disabled { opacity: 0.25; cursor: default; }
.zv__prev { left: 8px; }
.zv__next { right: 8px; }
.zv__hint {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--cream);
  font-size: 13px;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  animation: hint-out 0.5s 2.6s forwards;
}
@keyframes hint-out { to { opacity: 0; } }

/* Arabic view: name, price and description under the photo in the full-screen view */
.zv__cap {
  flex: none;
  max-height: 34vh;
  overflow-y: auto;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(212, 169, 106, 0.18);
  text-align: center;
}
.zv__cap p { margin: 0; }
.zv__name { font: 700 21px/1.35 var(--arabic); color: var(--gold); }
.zv__price { margin-top: 4px !important; font: 700 17px/1.3 var(--sans); color: var(--cream); }
.zv__price small { display: block; font: 500 13px/1.4 var(--sans); color: var(--muted); }
.zv__desc { margin-top: 6px !important; font-size: 15px; line-height: 1.6; color: var(--cream); opacity: 0.9; }

/* ---------- Arabic ---------- */
/* Arabic letters join up: no letter spacing or capitals, Arabic font for headings */
html[lang="ar"] body { font-family: var(--sans); }
html[lang="ar"] .brand__name, html[lang="ar"] .brand__tag, html[lang="ar"] .viewswitch__btn,
html[lang="ar"] .chip, html[lang="ar"] .cat__title, html[lang="ar"] .row__name,
html[lang="ar"] .sheet__head h2, html[lang="ar"] .sheet__item b, html[lang="ar"] .zv__title {
  font-family: var(--arabic);
  letter-spacing: 0;
  text-transform: none;
}
html[lang="ar"] .brand__name { font-size: clamp(26px, 7.5vw, 36px); line-height: 1.3; }
html[lang="ar"] .brand__tag { font-size: 16px; }
html[lang="ar"] .viewswitch__btn { font-size: 15px; font-weight: 700; padding: 7px 16px; }
html[lang="ar"] .chip { font-size: 15px; font-weight: 700; padding: 8px 15px; }
html[lang="ar"] .cat__title { font-size: clamp(22px, 6.2vw, 30px); line-height: 1.35; padding-block: 10px; }
html[lang="ar"] .row__name { font-size: 17px; font-weight: 700; line-height: 1.35; }
html[lang="ar"] .row__desc { font-size: 13.5px; line-height: 1.5; }
html[lang="ar"] .sheet__item b { font-size: 15.5px; font-weight: 700; }
html[lang="ar"] .sheet__head h2 { font-size: 20px; }
html[lang="ar"] .zv__title { font-size: 16px; font-weight: 700; }
html[lang="ar"] .linkbtn { font-size: 14px; letter-spacing: 0; }
html[lang="ar"] .brand__branch, html[lang="ar"] .cform__branch { font: 700 15px/1.4 var(--arabic); letter-spacing: 0; text-transform: none; }
/* Category bar right-to-left: fade the edges the other way round, arrows point the other way */
html[dir="rtl"] .catnav__scroller {
  -webkit-mask-image: linear-gradient(270deg, transparent, #000 14px, #000 85%, transparent);
  mask-image: linear-gradient(270deg, transparent, #000 14px, #000 85%, transparent);
}
html[dir="rtl"] .catnav__arrow svg, html[dir="rtl"] .zv__nav svg { transform: scaleX(-1); }
/* Viewer: "next" is on the left in Arabic */
html[dir="rtl"] .zv__prev { left: auto; right: 8px; }
html[dir="rtl"] .zv__next { right: auto; left: 8px; }

/* Arabic Photo cards: the dish photo with the Arabic name and details underneath */
.dcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
@media (hover: hover) {
  .dcard:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); }
}
.dcard__photo {
  display: block;
  width: 100%;
  border: 2px solid var(--gold);
  border-radius: 12px;
  overflow: hidden;
  background: #120c06;
}
.dcard__photo img { width: 100%; }
.dcard__price {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: -17px;
  min-width: 96px;
  padding: 6px 18px 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e6c27f, #b98a45);
  color: #1d140b;
  font: 700 17px/1.15 var(--sans);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}
.dcard__price small { font: 600 11.5px/1.3 var(--sans); }
.dcard__name {
  margin-top: 10px;
  font: 700 20px/1.35 var(--arabic);
  color: var(--gold);
}
.dcard__desc {
  margin-top: 4px;
  padding: 0 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream);
  opacity: 0.88;
}
@media (min-width: 960px) {
  .dcard { grid-column: span 2; }
  .dcard.is-wide { grid-column: span 3; }
}

/* ---------- Bottom bar: Menu / Google Review / Management ---------- */
body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding: 0 max(6px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: rgba(26, 18, 10, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.35);
}
.tabbar__btn {
  position: relative;
  flex: 1;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 11px/1.15 var(--serif);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
}
.tabbar__btn svg { width: 22px; height: 22px; flex: none; }
.tabbar__btn[aria-current="page"] { color: var(--gold-hi); }
.tabbar__btn[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26%;
  right: 26%;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--gold);
}
@media (hover: hover) { .tabbar__btn:hover { color: var(--gold-hi); } }

/* Full-screen panels above the bottom bar (Google Review list, Management form) */
.panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  z-index: 45;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  animation: panel-in 0.2s ease-out;
}
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.panel__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(6px + env(safe-area-inset-top)) 6px 6px;
  padding-inline-start: 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #24180d, var(--bg));
}
.panel__title {
  flex: 1;
  margin: 0;
  font: 700 17px/1.3 var(--serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.panel__title:focus { outline: none; }
.panel__body { max-width: 560px; margin: 0 auto; padding: 18px 16px 28px; }
.panel__intro { margin: 0 0 18px; line-height: 1.6; color: var(--cream); opacity: 0.92; }
.panel__note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.review__list { display: grid; gap: 10px; }
.review__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--gold);
  font: 600 15px/1.3 var(--serif);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.review__go { display: grid; color: var(--muted); }
html[dir="rtl"] .review__go svg { transform: scaleX(-1); }
@media (hover: hover) { .review__item:hover { border-color: var(--gold); background: rgba(212, 169, 106, 0.08); } }

/* Management form */
.field { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.field > label, .field > legend { display: block; margin-bottom: 7px; padding: 0; font-size: 14px; font-weight: 600; color: var(--cream); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--cream);
  font: 16px/1.4 var(--sans);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder { color: var(--muted); opacity: 0.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 169, 106, 0.18);
}
.field.has-err input, .field.has-err select, .field.has-err textarea, .field.has-err .pill span { border-color: var(--err); }
.field__err { margin: 6px 0 0; font-size: 13px; color: var(--err); }
.field__count { margin: 4px 0 0; font-size: 12px; color: var(--muted); text-align: end; }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.cform__branch { margin: -4px 0 18px; }
.cform__purposes { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; }
.pill input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pill span {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--cream);
}
.pill input:checked + span { border-color: var(--gold); background: var(--gold); color: #1d140b; font-weight: 600; }
.pill input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__privacy {
  margin: 4px 0 16px;
  padding: 2px 12px;
  border-inline-start: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.cform__status {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--err);
  border-radius: 10px;
  background: rgba(255, 138, 122, 0.08);
  font-size: 14px;
  line-height: 1.6;
}
.cform__status a { color: var(--gold-hi); white-space: nowrap; unicode-bidi: isolate; }
.btn {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--gold);
  color: #1d140b;
  font: 700 15px/1.2 var(--serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn:disabled { opacity: 0.6; cursor: progress; }
@media (hover: hover) { .btn:hover:not(:disabled) { background: var(--gold-hi); } }
.cdone { padding-top: 22px; text-align: center; }
.cdone__icon { width: 58px; height: 58px; margin: 0 auto 12px; color: var(--gold); }
.cdone__title { margin: 0 0 10px; font: 700 22px/1.3 var(--serif); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.cdone__title:focus { outline: none; }
.cdone p { margin: 0 0 10px; line-height: 1.6; }
.cdone__ref { font-weight: 700; color: var(--gold-hi); }
.cdone__test { font-size: 13px; color: var(--muted); }
.cdone .btn { margin-top: 22px; }
.cdone .linkbtn { margin-top: 14px; }

html[lang="ar"] .tabbar__btn, html[lang="ar"] .panel__title, html[lang="ar"] .review__item,
html[lang="ar"] .btn, html[lang="ar"] .cdone__title { font-family: var(--arabic); letter-spacing: 0; text-transform: none; }
html[lang="ar"] .tabbar__btn { font-size: 14px; font-weight: 700; }
html[lang="ar"] .panel__title { font-size: 21px; }
html[lang="ar"] .review__item { font-size: 19px; font-weight: 700; }
html[lang="ar"] .btn { font-size: 19px; }
html[lang="ar"] .cdone__title { font-size: 27px; }
html[lang="ar"] .field > label, html[lang="ar"] .field > legend { font-size: 15px; }

.noscript { padding: 24px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
