/* Cygnix Desk — phone-first, bilingual. Palette: Gulf sea + pearl. Type: IBM Plex Sans / Plex Sans Arabic. */
:root {
  --ink: #12313a;
  --ink-2: #4a6067;
  --ink-3: #7d8f94;
  --pearl: #f4f6f5;
  --surface: #ffffff;
  --line: #dfe5e3;
  --sea: #1f7a6e;
  --sea-deep: #135a51;
  --sea-tint: #e3f1ee;
  --sand: #efe8d9;
  --coral: #c8424f;
  --coral-tint: #fbe9ea;
  --amber: #a86a12;
  --radius: 10px;
  --font: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--pearl); }
a { color: var(--sea-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); font-size: .85rem; }
:focus-visible { outline: 3px solid #7cc4b8; outline-offset: 2px; }
[dir="rtl"], .ar { font-family: "IBM Plex Sans Arabic", var(--font); }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: 0 1.1rem;
  border-radius: 999px; border: 1px solid var(--sea); background: var(--sea); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--sea-deep); }
.btn.ghost { background: transparent; color: var(--sea-deep); }
.btn.ghost:hover { background: var(--sea-tint); }
.btn.small { min-height: 34px; padding: 0 .8rem; font-size: .85rem; }
.btn.wide { width: 100%; }
.btn.danger { background: transparent; border-color: var(--coral); color: var(--coral); }
label { display: block; font-weight: 500; font-size: .9rem; margin: .9rem 0 .3rem; }
label .faint { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=time],
input[type=date], input[type=url], select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); font: inherit; color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--sea); outline: none; box-shadow: 0 0 0 3px var(--sea-tint); }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; margin: .5rem 0; }
.check input { width: 20px; height: 20px; accent-color: var(--sea); }
.error { background: var(--coral-tint); color: var(--coral); padding: .7rem .9rem; border-radius: 8px; margin: .75rem 0; }
.ok { background: var(--sea-tint); color: var(--sea-deep); padding: .7rem .9rem; border-radius: 8px; margin: .75rem 0; }

/* public pages */
.public { max-width: 1040px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: .5rem 0 1.5rem; }
.brand { font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink); display: flex; gap: .5rem; align-items: center; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--pearl); box-shadow: 4px 4px 0 -1px var(--sea); }
.hero { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; padding: 1rem 0 2rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 600; letter-spacing: -0.025em; max-width: 14ch; }
.hero .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; } }
.points { display: grid; gap: 1.5rem; grid-template-columns: 1fr; border-top: 1px solid var(--line); padding-top: 1.75rem; }
@media (min-width: 760px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points p { color: var(--ink-2); margin: 0; }
.auth { max-width: 420px; margin: 0 auto; background: var(--surface); padding: 1.5rem; border-radius: 14px; border: 1px solid var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.seg input { position: absolute; opacity: 0; }
.seg label { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: .75rem; cursor: pointer; text-align: center; background: var(--surface); }
.seg input:checked + label { border-color: var(--sea); background: var(--sea-tint); color: var(--sea-deep); font-weight: 600; }
.seg input:focus-visible + label { outline: 3px solid #7cc4b8; }

/* the WhatsApp chat look (landing preview, simulator, chat threads) */
.chat { background: #e9e4da; border-radius: 16px; padding: 1rem .75rem; display: flex; flex-direction: column; gap: .35rem; }
.bubble { max-width: 82%; padding: .45rem .65rem .35rem; border-radius: 10px; background: #fff; font-size: .92rem;
  white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px 0 rgba(18, 49, 58, .08); }
.bubble.in { align-self: flex-start; border-top-left-radius: 2px; }
.bubble.out { align-self: flex-end; background: #d6f2e4; border-top-right-radius: 2px; }
.bubble.staff { background: var(--sand); }
.bubble .meta { display: block; text-align: end; font-size: .7rem; color: var(--ink-3); margin-top: .15rem; }
.bubble .tbtns { display: flex; flex-direction: column; gap: 1px; margin: .45rem -.65rem -.35rem; border-top: 1px solid var(--line); }
.bubble .tbtns button, .bubble .tbtns span { background: none; border: 0; color: #1a73b7; font: inherit; font-weight: 500; padding: .5rem; cursor: pointer; text-align: center; }
.bubble .tbtns button + button { border-top: 1px solid var(--line); }
.bubble .tbtns button:disabled { color: var(--ink-3); cursor: default; }
.bubble .tag { font-size: .7rem; color: var(--amber); font-weight: 600; display: block; margin-bottom: .2rem; }

/* list sheet in simulator */
.sheet { position: absolute; inset: auto 0 0 0; background: #fff; border-radius: 16px 16px 0 0; max-height: 75%; overflow: auto;
  box-shadow: 0 -8px 30px rgba(18, 49, 58, .2); padding: .5rem 0 1rem; z-index: 3; }
.sheet h4 { margin: .6rem 1rem; font-size: .8rem; color: var(--sea-deep); font-weight: 600; }
.sheet button { display: block; width: 100%; text-align: start; background: none; border: 0; border-bottom: 1px solid var(--pearl); padding: .7rem 1rem; font: inherit; cursor: pointer; }
.sheet button small { display: block; color: var(--ink-3); }
.sheet .close { text-align: center; color: var(--sea-deep); font-weight: 600; }

/* app shell */
.shell { min-height: 100vh; padding-bottom: 76px; }
.app-head { position: sticky; top: 0; z-index: 5; background: var(--ink); color: #fff; padding: .7rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.app-head .biz { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-head .conn { font-size: .78rem; color: #a9c7c2; display: flex; align-items: center; gap: .35rem; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5bd1a1; display: inline-block; }
.dot.sim { background: #f0c35b; }
.app-main { max-width: 860px; margin: 0 auto; padding: 1rem; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .55rem; font-size: .72rem; color: var(--ink-2); text-decoration: none; position: relative; }
.tabs a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.tabs a.on { color: var(--sea-deep); font-weight: 600; }
.tabs .badge { position: absolute; top: 4px; left: 54%; background: var(--coral); color: #fff; border-radius: 999px; font-size: .65rem; padding: 0 5px; min-width: 16px; text-align: center; }
@media (min-width: 980px) {
  .shell { padding: 0 0 0 220px; }
  .tabs { top: 0; bottom: 0; right: auto; width: 220px; grid-template-columns: 1fr; align-content: start; border-top: 0; border-right: 1px solid var(--line); padding-top: 4.2rem; }
  .tabs a { flex-direction: row; justify-content: flex-start; gap: .7rem; padding: .7rem 1.25rem; font-size: .92rem; }
  .tabs a.on { background: var(--sea-tint); }
  .tabs .badge { position: static; }
  .app-head { padding-left: 1.25rem; }
}
.banner { background: var(--sand); padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }

/* page sections */
.page-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .25rem 0 1rem; }
.page-title h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--surface); padding: .8rem .9rem; }
.stats strong { display: block; font-size: 1.45rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-2); font-size: .82rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.25rem; }
.panel > h2 { padding: .9rem 1rem 0; font-size: 1rem; }
.panel .pad { padding: .25rem 1rem 1rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; gap: .85rem; align-items: center; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rows .title { font-weight: 600; }
.rows .sub { color: var(--ink-2); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows a.rowlink { color: inherit; text-decoration: none; display: flex; gap: .85rem; align-items: center; flex: 1; min-width: 0; }
.empty { padding: 1.5rem 1rem; color: var(--ink-2); }

/* the day timeline — the signature element */
.day { position: relative; }
.slot { display: grid; grid-template-columns: 64px 1fr; gap: .75rem; padding: .55rem 1rem; border-top: 1px solid var(--line); align-items: start; }
.slot:first-child { border-top: 0; }
.slot time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); font-size: .95rem; padding-top: .1rem; }
.slot time small { display: block; font-weight: 400; color: var(--ink-3); font-size: .75rem; }
.appt { border-left: 3px solid var(--sea); padding: .1rem 0 .1rem .7rem; }
.appt.done { border-color: var(--ink-3); opacity: .75; }
.appt.no_show { border-color: var(--coral); }
.appt .who { font-weight: 600; }
.appt .what { color: var(--ink-2); font-size: .88rem; }
.appt form { display: inline; }
.appt .acts { display: flex; gap: .4rem; margin-top: .4rem; flex-wrap: wrap; }
.now-line { height: 0; border-top: 2px solid var(--coral); position: relative; margin: 0 1rem; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.pill { display: inline-block; font-size: .72rem; padding: .05rem .5rem; border-radius: 999px; background: var(--pearl); color: var(--ink-2); font-weight: 500; vertical-align: middle; }
.pill.wa { background: #dff4e8; color: #17694a; } .pill.coral { background: var(--coral-tint); color: var(--coral); }
.pill.sea { background: var(--sea-tint); color: var(--sea-deep); }

/* calendar */
.daynav { display: flex; align-items: center; gap: .5rem; }
.cols { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* tables (menu editor) */
.grid-edit { width: 100%; border-collapse: collapse; }
.grid-edit th { text-align: start; font-size: .78rem; color: var(--ink-2); font-weight: 500; padding: .3rem .3rem; }
.grid-edit td { padding: .25rem .3rem; vertical-align: middle; }
.grid-edit input { min-height: 38px; padding: .35rem .5rem; }
.svc-card { border-top: 1px solid var(--line); padding: .75rem 0; display: grid; gap: .4rem; grid-template-columns: 1fr 1fr; }
.svc-card .full { grid-column: 1 / -1; }
.svc-card label { margin: 0 0 .15rem; font-size: .75rem; color: var(--ink-2); font-weight: 400; }
@media (min-width: 760px) { .svc-card { grid-template-columns: 2fr 2fr 1.3fr .8fr .9fr auto; align-items: end; } .svc-card .full { grid-column: auto; } }
.hours-row { display: grid; grid-template-columns: 92px 1fr; gap: .5rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--line); }
.hours-row .spans { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.hours-row .check { margin: 0; }

/* wizard */
.wizard { max-width: 640px; margin: 0 auto; padding: 1rem 1rem 6rem; }
.progress { display: flex; gap: 4px; margin: .5rem 0 1.25rem; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.progress span.on { background: var(--sea); }
.step-label { color: var(--ink-2); font-size: .85rem; margin-bottom: .25rem; }
.stickybar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); display: flex; justify-content: center; z-index: 4; }
.stickybar .inner { width: 100%; max-width: 640px; display: flex; gap: .5rem; justify-content: space-between; }
.choice { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 1rem; margin-bottom: .75rem; }
.choice h3 { margin-bottom: .25rem; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; text-align: center; }
.qr img { width: 210px; height: 210px; }
.card-print { border: 2px dashed var(--line); border-radius: 14px; padding: 1.25rem; text-align: center; background: #fff; }

/* simulator phone */
.sim-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: var(--ink); }
.phone { width: 100%; max-width: 400px; height: min(820px, calc(100vh - 2rem)); background: #e9e4da; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.phone-head { background: #135a51; color: #fff; padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sand); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.phone-head small { display: block; color: #bfe0d9; font-size: .75rem; }
.phone .chat { flex: 1; overflow-y: auto; border-radius: 0; }
.composer { display: flex; gap: .4rem; padding: .5rem; background: #f0ece4; }
.composer input { border-radius: 999px; min-height: 42px; }
.composer button { border-radius: 50%; width: 42px; height: 42px; border: 0; background: #135a51; color: #fff; cursor: pointer; flex: none; }
.sim-side { color: #cfe3df; max-width: 360px; font-size: .9rem; }
.sim-layout { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .sim-layout { grid-template-columns: 400px 320px; } }
.sim-side a { color: #fff; }
.chip-row { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0; }
.chip-row button { border: 1px solid #3c6b66; background: transparent; color: #e6f2ef; border-radius: 999px; padding: .35rem .75rem; font: inherit; font-size: .85rem; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.tabs .desk-only { display: none; }
@media (min-width: 980px) { .tabs .desk-only { display: flex; } .tabs .mob-only { display: none; } }
.more-list a { display: block; padding: .9rem 1rem; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.more-list a:first-child { border-top: 0; }
@media print { .app-head, .tabs, .stickybar, .no-print { display: none !important; } body { background: #fff; } }

.appt .acts .btn { min-height: 30px; padding: 0 .65rem; font-size: .8rem; font-weight: 500; }
.bubble[dir="rtl"], .bubble:dir(rtl) { font-family: "IBM Plex Sans Arabic", var(--font); }
.sheet button:dir(rtl), .sheet h4:dir(rtl) { text-align: right; }
.slot { grid-template-columns: 70px 1fr; }
.svc-info { grid-column: 1 / -1 !important; }
.svc-info details { margin-top: .4rem; }
.svc-info textarea { min-height: 72px; margin-top: .35rem; }
.assign { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-top: .35rem; }
.assign select { width: auto; min-height: 32px; padding: .2rem .5rem; font-size: .85rem; }
.pill.warn { background: #fbf0dc; color: #8a5208; }
.lead { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.lead .grow { flex: 1; min-width: 12rem; }

/* media */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.attach-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.file-btn { cursor: pointer; margin: 0; }
#rf:focus-visible + * , .file-btn:focus-within { outline: 3px solid #7cc4b8; }
.msg-media { display: block; max-width: 100%; width: 240px; max-height: 300px; object-fit: cover; border-radius: 8px; margin-bottom: .3rem; background: var(--pearl); }
.msg-file { display: inline-block; padding: .4rem .6rem; background: var(--pearl); border-radius: 8px; margin-bottom: .3rem; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; margin-top: .6rem; max-height: 320px; overflow-y: auto; padding: .25rem; }
.lib-item { position: relative; display: flex; flex-direction: column; gap: .25rem; margin: 0; font-size: .75rem; font-weight: 400; color: var(--ink-2); cursor: pointer; }
.lib-item img, .lib-icon { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 2px solid transparent; display: grid; place-items: center; background: var(--pearl); font-size: 1.6rem; text-decoration: none; }
.lib-item input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; accent-color: var(--sea); }
.lib-item:has(input:checked) img, .lib-item:has(input:checked) .lib-icon { border-color: var(--sea); }
.lib-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.ph-tile { margin: 0; }
.ph-tile img, .ph-tile video, .ph-tile .lib-icon { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--pearl); }
.ph-tile figcaption { font-size: .8rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: .4rem; margin-top: .25rem; }
.linkish { background: none; border: 0; color: var(--coral); font: inherit; cursor: pointer; padding: 0; }
.composer .clip { display: grid; place-items: center; width: 42px; height: 42px; margin: 0; cursor: pointer; font-size: 1.2rem; flex: none; }
.phone .msg-media { width: 220px; }
.rows .sub.wrap { white-space: normal; }
.lead { align-items: flex-start !important; }
.lead .title { color: var(--ink); text-decoration: none; margin-right: .3rem; }
.lead-acts { display: flex; gap: .4rem; flex-wrap: wrap; }
.lead-acts form { margin: 0; }
.lead .grow > .sub, .lead .grow > .faint { display: block; margin-top: .15rem; }

/* legal pages */
.legal{max-width:720px;margin:0 auto;padding:1.5rem 16px 4rem;line-height:1.6}
.legal h1{margin:.5rem 0 .25rem}
.legal h2{font-size:1.1rem;margin-top:1.75rem}
.legal ul{padding-left:1.2rem}
.legal-foot{margin:3rem 0 2rem;text-align:center;font-size:.9rem}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* public booking link */
.bk { max-width: 560px; margin: 0 auto; padding: 1rem 16px 3rem; }
.bk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .5rem 0 1rem; border-bottom: 1px solid var(--line); }
.bk-head h1 { font-size: 1.35rem; margin: 0; }
.bk-head p { margin: .15rem 0 0; }
.bk-lang { font-weight: 600; white-space: nowrap; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }
.bk-title { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
.bk h3 { font-size: 1rem; margin: 1.25rem 0 .6rem; color: var(--ink-2); }
.bk-list { display: grid; gap: .6rem; }
.bk-svc { display: grid; gap: .2rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.bk-svc:hover, .bk-svc:focus-visible { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-tint); }
.bk-svc-top { display: flex; justify-content: space-between; gap: .75rem; }
.bk-price { font-weight: 600; color: var(--sea-deep); white-space: nowrap; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; }
.bk-chip { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: .4rem .6rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 500; }
.bk-chip:hover, .bk-chip:focus-visible { border-color: var(--sea); background: var(--sea-tint); }
.bk-chosen { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .35rem; }
.bk-chosen li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; background: var(--sea-tint); border-radius: 8px; }
.bk-chosen a { font-size: .9rem; }
.bk-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; }
.bk-card label { display: block; font-weight: 600; margin: .8rem 0 .3rem; }
.bk-card input[type=text], .bk-card input[type=tel] { width: 100%; min-height: 46px; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.bk-details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1rem; margin-top: .75rem; }
.bk-details summary { cursor: pointer; font-weight: 600; }
.bk-details p { white-space: pre-line; margin: .5rem 0 0; color: var(--ink-2); }
.bk-done { text-align: center; margin-top: 1.5rem; display: grid; gap: .6rem; }
.bk-done h2 { margin: 0; }
.bk-tick { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--sea); color: #fff; font-size: 1.8rem; display: grid; place-items: center; }
.bk-sum { font-size: 1.05rem; margin: 0; }
.bk-foot { text-align: center; margin-top: 2.5rem; }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { flex: 1; min-width: 0; min-height: 40px; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--pearl); }

/* website chat widget (inside the iframe) */
.wg { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #e9e4da; position: relative; }
.wg .chat { flex: 1; overflow-y: auto; border-radius: 0; }
.wg .grow { flex: 1; min-width: 0; }
.wg-close { background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; padding: .25rem .5rem; }
.wg .chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0; }
.wg .chips button { border: 1px solid #b9d8d1; background: #fff; color: var(--sea-deep); border-radius: 999px; padding: .4rem .8rem; font: inherit; font-size: .88rem; cursor: pointer; }
.wg-foot { margin: 0; text-align: center; font-size: .7rem; color: var(--ink-3); background: #f0ece4; padding-bottom: .35rem; }

/* Cygnix admin */
.admin { padding: 1rem 16px 3rem; max-width: 1300px; margin: 0 auto; }
.admin-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1rem; }
.admin-head h1 { margin: 0; font-size: 1.4rem; }
.admin-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 900px; }
.admin-table th { text-align: start; font-weight: 600; color: var(--ink-2); padding: .6rem .7rem; border-bottom: 1px solid var(--line); background: var(--pearl); }
.admin-table td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table td.num { font-variant-numeric: tabular-nums; text-align: end; }
.admin-table tr.paused td { background: var(--coral-tint); }
.admin-table .actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--pearl); border: 1px solid var(--line); font-size: .8rem; white-space: nowrap; }
.pill.good { background: var(--sea-tint); border-color: transparent; color: var(--sea-deep); }
.pill.bad { background: var(--coral); border-color: transparent; color: #fff; }
.staff-more { border-top: 1px dashed var(--line); padding-top: .5rem; }
.staff-more summary { cursor: pointer; color: var(--sea-deep); font-weight: 600; }
.tick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .25rem .75rem; }
.tick-row { display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.tick { display: flex !important; align-items: center; gap: .4rem; font-weight: 400 !important; margin: 0 !important; }

/* language switch + right-to-left dashboard */
.head-right { display: flex; align-items: center; gap: .75rem; }
.lang-switch { color: #fff; text-decoration: none; font-weight: 600; font-size: .85rem; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: .15rem .65rem; }
.lang-switch:hover { background: rgba(255,255,255,.12); }
[dir=rtl] body, [dir=rtl] { font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; }
[dir=rtl] .tabs .badge { left: auto; right: 54%; }
[dir=rtl] .rows .lead-acts, [dir=rtl] .acts { direction: rtl; }
.rows .grow > .title, .rows .grow > .sub { display: block; }
.hours-row { grid-template-columns: 92px minmax(0, 1fr); }
.hours-row .spans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hours-row .spans input { min-width: 0; width: 100%; }
