/* ============================================================
   Elnahal ERP — style.css
   Deep emerald identity · warm sandy neutrals · gold owner tier
   IBM Plex Sans Arabic (self-hosted, /fonts) · RTL-first · responsive
   ============================================================ */

:root {
  /* Emerald identity */
  --emerald-950: #062e28;
  --emerald-900: #0a453a;
  --emerald-800: #0d5a4c;
  --emerald-700: #0d6e5f;
  --emerald-600: #15907c;
  --emerald-100: #d7ebe6;
  --emerald-50:  #eef6f3;

  /* Warm sandy neutrals */
  --sand-50:  #faf7f2;
  --sand-100: #f4efe5;
  --sand-200: #e9e0cf;
  --sand-300: #d8cbb1;

  /* Gold — owner / admin tier */
  --gold:       #c9a227;
  --gold-dark:  #a8861c;
  --gold-soft:  #f8f0da;
  --gold-line:  #e6d49a;

  /* Text */
  --ink:      #2b2620;
  --ink-soft: #5d554a;
  --muted:    #8d8478;

  /* Semantic */
  --red:        #c0392b;
  --red-dark:   #96281b;
  --red-soft:   #fbe9e6;
  --green:      #1e8e5a;
  --green-soft: #e5f4eb;
  --amber:      #b7791f;
  --amber-soft: #fdf2dd;
  --blue:       #2f6f9e;
  --blue-soft:  #e8f1f8;

  --card:   #ffffff;
  --border: #e7ddc9;

  --shadow-sm: 0 1px 2px rgba(43, 38, 32, .07);
  --shadow:    0 8px 28px -10px rgba(43, 38, 32, .16);
  --shadow-lg: 0 20px 55px -18px rgba(13, 110, 95, .30);

  --radius:    14px;
  --radius-sm: 9px;

  --font: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, "Geeza Pro", Arial, sans-serif;

  --sidebar-w: 264px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--sand-50);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
}
a { color: var(--emerald-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.35; color: var(--ink); }
p { margin: 0 0 .8em; }

#print-root { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-size: .95rem; font-weight: 600;
  padding: .62em 1.25em; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--emerald-600), var(--emerald-700));
  color: #fff; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--emerald-800); }
.btn-gold {
  background: linear-gradient(180deg, #d9b545, var(--gold));
  color: #3d2f05; border-color: var(--gold-dark);
}
.btn-gold:hover { background: var(--gold); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-dark); }
.btn-ghost {
  background: transparent; color: var(--ink-soft);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--sand-100); }
.btn-outline {
  background: transparent; color: var(--emerald-700);
  border-color: var(--emerald-700);
}
.btn-outline:hover { background: var(--emerald-50); }
.btn-sm { padding: .35em .8em; font-size: .83rem; }
.btn-lg { padding: .8em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card);
  cursor: pointer; font-size: 1rem; color: var(--ink-soft);
}
.icon-btn:hover { background: var(--sand-100); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1.25rem; margin-bottom: 1.1rem;
}
.card-title {
  font-size: 1.08rem; font-weight: 700; margin: 0 0 1rem;
  display: flex; align-items: center; gap: .5em;
}
.card-title .spacer { flex: 1; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: 4px; background: linear-gradient(180deg, var(--emerald-600), var(--emerald-800));
}
.stat-card.gold::after { background: linear-gradient(180deg, #e3c25c, var(--gold-dark)); }
.stat-card .num { font-size: 1.9rem; font-weight: 800; color: var(--emerald-800); line-height: 1.2; }
.stat-card.gold .num { color: var(--gold-dark); }
.stat-card .lbl { color: var(--muted); font-size: .86rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: .65em .8em; text-align: start; border-bottom: 1px solid var(--sand-100); }
.table th {
  background: var(--sand-100); color: var(--ink-soft);
  font-weight: 700; font-size: .82rem; white-space: nowrap;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--sand-50); }
.table .num { font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { margin-bottom: 1rem; }
.field > label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35em; color: var(--ink-soft); }
.field > label .req { color: var(--red); }
.input, select.input, textarea.input {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: .6em .8em; border: 1px solid var(--sand-300); border-radius: var(--radius-sm);
  background: var(--card); transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--emerald-600); box-shadow: 0 0 0 3px var(--emerald-100); }
textarea.input { min-height: 84px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .3em; }
.form-actions { display: flex; gap: .7rem; margin-top: 1.2rem; flex-wrap: wrap; }
.searchbar { display: flex; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.searchbar .input { flex: 1; min-width: 200px; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: end; }
.filters .field { margin-bottom: 0; min-width: 150px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3em;
  font-size: .78rem; font-weight: 700; padding: .22em .7em;
  border-radius: 999px; white-space: nowrap;
}
.badge-green  { background: var(--green-soft); color: var(--green); }
.badge-red    { background: var(--red-soft);   color: var(--red); }
.badge-amber  { background: var(--amber-soft); color: var(--amber); }
.badge-blue   { background: var(--blue-soft);  color: var(--blue); }
.badge-gold   { background: var(--gold-soft);  color: var(--gold-dark); border: 1px solid var(--gold-line); }
.badge-grey   { background: var(--sand-100);   color: var(--ink-soft); }
.badge-emerald{ background: var(--emerald-100); color: var(--emerald-800); }

/* ---------- Alerts & banners ---------- */
.alert {
  padding: .85em 1.1em; border-radius: var(--radius-sm); margin-bottom: 1rem;
  border: 1px solid; font-size: .93rem;
}
.alert-danger  { background: var(--red-soft);   border-color: #f0c4bd; color: var(--red-dark); }
.alert-warning { background: var(--amber-soft); border-color: #eed9a8; color: #7c5410; }
.alert-success { background: var(--green-soft); border-color: #bfe3cd; color: #14603a; }
.alert-info    { background: var(--blue-soft);  border-color: #c3d9ea; color: #1f557f; }

.banner {
  padding: .8em 1.2em; font-weight: 600; font-size: .95rem;
  display: flex; align-items: center; gap: .6em; justify-content: center;
  text-align: center;
}
.banner-expiry { background: var(--red-soft); color: var(--red-dark); border-bottom: 2px solid #f0c4bd; }
.banner-locked {
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  color: #fff; border-bottom: 3px solid #7b1f14;
  box-shadow: 0 4px 14px rgba(192, 57, 43, .35);
}

/* ---------- Modal ---------- */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(43, 38, 32, .5); backdrop-filter: blur(2px);
  align-items: flex-start; justify-content: center; padding: 4vh 1rem;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; padding: 1.5rem;
  animation: pop .18s ease;
}
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.modal-head h3 { margin: 0; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }

/* ---------- App shell: sidebar + topbar + content ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: linear-gradient(180deg, var(--emerald-950), var(--emerald-900));
  color: #eef4f1; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 100;
}
.side-brand {
  padding: 1.2rem 1.3rem; display: flex; align-items: center; gap: .7em;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.side-brand .logo-mark {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.side-brand .t1 { font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.side-brand .t2 { font-size: .78rem; color: #b9d4cc; }
.side-nav { flex: 1; overflow-y: auto; padding: .9rem .7rem; }
.side-link {
  display: flex; align-items: center; gap: .7em;
  padding: .62em .85em; border-radius: 10px; margin-bottom: .25rem;
  color: #d5e5df; font-weight: 500; font-size: .95rem;
}
.side-link:hover { background: rgba(255, 255, 255, .08); text-decoration: none; color: #fff; }
.side-link.active { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; }
.side-link .side-ico { font-size: 1.15rem; width: 1.6em; text-align: center; }
.side-foot { padding: 1rem 1.3rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: #9dbfb5; }

/* Owner (super admin) tier — gold accents */
.shell-admin .sidebar { background: linear-gradient(180deg, #2e2307, #4a370c 60%, var(--emerald-950)); }
.shell-admin .side-brand .logo-mark { background: linear-gradient(135deg, #e3c25c, var(--gold-dark)); color: #3d2f05; }
.shell-admin .side-link.active {
  background: rgba(201, 162, 39, .18);
  box-shadow: inset 3px 0 0 var(--gold);
}
[dir="ltr"] .shell-admin .side-link.active { box-shadow: inset -3px 0 0 var(--gold); }
.shell-admin .owner-tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  background: var(--gold); color: #3d2f05; border-radius: 6px; padding: .15em .6em;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: .65rem 1.4rem; display: flex; align-items: center; gap: .9rem;
  position: sticky; top: 0; z-index: 90;
}
.topbar .clinic-id { display: flex; align-items: center; gap: .7em; min-width: 0; }
.clinic-logo {
  width: 40px; height: 40px; border-radius: 11px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--sand-100);
}
.clinic-logo-fallback {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
}
.topbar .clinic-name { font-weight: 800; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.user-chip {
  display: flex; align-items: center; gap: .5em; font-size: .88rem; font-weight: 600;
  color: var(--ink-soft); background: var(--sand-100); border-radius: 999px; padding: .35em .9em;
  white-space: nowrap;
}
.lang-toggle {
  border: 1px solid var(--border); background: var(--card); border-radius: 999px;
  padding: .35em 1em; font-family: inherit; font-weight: 700; font-size: .85rem;
  cursor: pointer; color: var(--emerald-800);
}
.lang-toggle:hover { background: var(--emerald-50); }
.hamburger { display: none; }

.content { padding: 1.4rem; max-width: 1240px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 1.35rem; }
.page-head .spacer { flex: 1; }
.scrim { display: none; }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(1000px 500px at 85% -10%, var(--emerald-100), transparent),
    radial-gradient(800px 420px at 10% 110%, var(--gold-soft), transparent),
    var(--sand-50);
}
.auth-card {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 2.2rem; width: 100%; max-width: 430px; border: 1px solid var(--border);
}
.auth-card.wide { max-width: 640px; }
.auth-brand { text-align: center; margin-bottom: 1.6rem; }
.auth-brand .mark {
  width: 58px; height: 58px; border-radius: 16px; margin: 0 auto .7rem;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-900));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.7rem; font-weight: 800;
}
.auth-brand h2 { margin: 0 0 .3rem; }
.auth-brand p { color: var(--muted); font-size: .92rem; margin: 0; }
.cred-box {
  background: var(--sand-100); border: 1px dashed var(--sand-300);
  border-radius: var(--radius-sm); padding: 1rem; margin: 1rem 0; font-size: .9rem;
}
.cred-box code { background: #fff; padding: .15em .5em; border-radius: 6px; border: 1px solid var(--border); font-size: .92em; }

/* ---------- Public / marketing ---------- */
.pub-topbar {
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: .7rem 1.6rem; display: flex; align-items: center; gap: 1rem;
  position: sticky; top: 0; z-index: 90;
}
.pub-brand { display: flex; align-items: center; gap: .6em; font-weight: 800; font-size: 1.1rem; color: var(--emerald-900); }
.pub-brand:hover { text-decoration: none; }
.pub-brand .mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-900));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.pub-topbar .spacer { flex: 1; }
.hero {
  background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-800) 55%, var(--emerald-600) 100%);
  color: #fff; padding: 4.5rem 1.5rem 5rem; text-align: center; position: relative; overflow: hidden;
}
[dir="ltr"] .hero { background: linear-gradient(-135deg, var(--emerald-950) 0%, var(--emerald-800) 55%, var(--emerald-600) 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background: radial-gradient(600px 300px at 20% 20%, #fff, transparent),
              radial-gradient(500px 260px at 80% 80%, var(--gold), transparent);
}
.hero > * { position: relative; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: .3em 1.1em; border-radius: 999px; font-size: .85rem; margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: .6rem; font-weight: 800; }
.hero p.sub { font-size: 1.12rem; color: #dcebe6; max-width: 640px; margin: 0 auto 1.8rem; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); }
.section { padding: 3.5rem 1.5rem; max-width: 1120px; margin: 0 auto; }
.section h2 { text-align: center; font-size: 1.7rem; margin-bottom: .4rem; }
.section .sec-sub { text-align: center; color: var(--muted); margin-bottom: 2.2rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .fic { font-size: 2rem; margin-bottom: .6rem; }
.feature h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.feature p { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; align-items: stretch; }
.plan-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 1.8rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.plan-card.popular { border: 2px solid var(--gold); box-shadow: var(--shadow); position: relative; }
.plan-card .pop-tag {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--gold); color: #3d2f05; font-size: .75rem; font-weight: 800;
  padding: .25em 1em; border-radius: 999px; white-space: nowrap;
}
[dir="ltr"] .plan-card .pop-tag { transform: translateX(-50%); }
.plan-card h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.plan-card .pprice { font-size: 2rem; font-weight: 800; color: var(--emerald-800); margin: .5rem 0; }
.plan-card .pprice small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.plan-card li { padding: .35em 0; font-size: .92rem; color: var(--ink-soft); display: flex; gap: .5em; }
.plan-card li::before { content: "✓"; color: var(--emerald-600); font-weight: 800; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.step .n {
  width: 38px; height: 38px; border-radius: 50%; background: var(--emerald-700); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: .7rem;
}
.testis { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.testi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.testi .q { font-size: 1.6rem; color: var(--gold); line-height: 1; }
.testi p { font-style: italic; color: var(--ink-soft); }
.testi .who { font-weight: 700; font-size: .9rem; }
.cta-band {
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
  color: #fff; border-radius: 20px; padding: 2.6rem 1.6rem; text-align: center; margin: 0 1.5rem 3.5rem;
  max-width: 1080px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dcebe6; }
.pub-footer { background: var(--emerald-950); color: #b9d4cc; padding: 2.2rem 1.5rem; text-align: center; font-size: .9rem; }
.pub-footer a { color: #fff; }

/* ---------- Misc components ---------- */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state .big { font-size: 2.6rem; margin-bottom: .5rem; }
.toolbar { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.1rem; }
.toolbar .spacer { flex: 1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35em 1em; font-size: .93rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; }
.perm-box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem; background: var(--sand-50); }
.perm-box h4 { margin: 0 0 .5rem; font-size: .92rem; }
.perm-box label { display: flex; align-items: center; gap: .45em; font-size: .87rem; margin-bottom: .25rem; cursor: pointer; }
.checkline { display: flex; align-items: center; gap: .5em; font-size: .9rem; }
.tabs { display: flex; gap: .4rem; border-bottom: 2px solid var(--sand-200); margin-bottom: 1.2rem; overflow-x: auto; }
.tab {
  padding: .6em 1.2em; font-weight: 600; font-size: .93rem; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; font-family: inherit;
}
.tab.active { color: var(--emerald-800); border-bottom-color: var(--emerald-700); }
.progress { height: 8px; background: var(--sand-100); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald-600), var(--emerald-800)); border-radius: 999px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .content { padding: 1.1rem; }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; inset-inline-start: 0; top: 0; bottom: 0; height: 100vh;
    transform: translateX(100%); transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }
  [dir="ltr"] .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .scrim {
    display: block; position: fixed; inset: 0; z-index: 95;
    background: rgba(43, 38, 32, .45);
  }
  .hamburger { display: inline-flex; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .topbar { padding: .6rem .9rem; }
  .user-chip .uname { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .stat-card .num { font-size: 1.5rem; }
  .content { padding: .9rem .7rem; }
  .card { padding: 1rem; }
  .auth-card { padding: 1.5rem; }
}

/* ============================================================
   PRINT — isolate #print-root, hide the app
   ============================================================ */
@media print {
  #app, .scrim { display: none !important; }
  #print-root { display: block !important; }
  body { background: #fff; font-size: 12pt; }
  @page { margin: 12mm; }

  .print-doc { color: #111; font-family: var(--font); max-width: 100%; }
  .print-header {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    border-bottom: 3px solid var(--emerald-700); padding-bottom: .7rem; margin-bottom: 1rem;
  }
  .print-header .pbrand { display: flex; align-items: center; gap: .7rem; }
  .print-logo { width: 56px; height: 56px; object-fit: contain; }
  .print-header h2 { margin: 0; font-size: 1.4rem; color: var(--emerald-900); }
  .print-header .pmeta { text-align: end; font-size: .85rem; color: #444; }
  .print-title { text-align: center; font-size: 1.25rem; font-weight: 800; margin: 1rem 0; color: var(--emerald-900); }
  .print-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1.5rem; margin-bottom: 1rem; font-size: .95rem; }
  .print-meta-grid .k { color: #555; }
  table.print-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
  table.print-table th, table.print-table td { border: 1px solid #999; padding: .5em .7em; text-align: start; }
  table.print-table th { background: #eee; }
  .print-totals { margin-inline-start: auto; width: 260px; font-size: .95rem; }
  .print-totals .row { display: flex; justify-content: space-between; padding: .25em 0; border-bottom: 1px dotted #aaa; }
  .print-totals .row.grand { font-weight: 800; border-bottom: 2px solid #111; }
  .print-sign { display: flex; justify-content: space-between; margin-top: 3rem; font-size: .9rem; }
  .print-sign div { text-align: center; min-width: 180px; border-top: 1px solid #111; padding-top: .4rem; }
  .print-footer { margin-top: 2rem; border-top: 1px solid #ccc; padding-top: .6rem; font-size: .8rem; color: #666; text-align: center; }
  .print-notes { background: #f7f7f7; border: 1px solid #ddd; border-radius: 6px; padding: .8rem; margin: 1rem 0; font-size: .92rem; }
}

/* ============================================================
   REDESIGN LAYER — original platform look, completed
   (IBM Plex Sans Arabic · completed mkt-* marketing system ·
   missing utilities · polish overrides — class names unchanged)
   ============================================================ */

/* ---------- Base polish ---------- */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--emerald-100); color: var(--emerald-900); }
.muted { color: var(--muted); }
.content { animation: fadeUp .28s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 99px; }
.topbar { box-shadow: 0 10px 24px -18px rgba(43, 38, 32, .35); }
.pub-topbar { box-shadow: 0 10px 24px -20px rgba(43, 38, 32, .4); }
.stat-card { transition: transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.input:hover { border-color: #c9b995; }
.btn-primary:hover { box-shadow: 0 10px 22px -10px rgba(13, 110, 95, .55); }
.side-link.active { box-shadow: inset 3px 0 0 #7fd1bd; }
[dir="ltr"] .side-link.active { box-shadow: inset -3px 0 0 #7fd1bd; }
.shell-admin .side-link.active { box-shadow: inset 3px 0 0 var(--gold); }
[dir="ltr"] .shell-admin .side-link.active { box-shadow: inset -3px 0 0 var(--gold); }

/* ---------- Brand mark (auth / setup) ---------- */
.logo-mark {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-900));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.45rem; font-weight: 800; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), var(--shadow-sm);
}
.logo-mark-lg {
  width: 66px; height: 66px; border-radius: 18px; font-size: 2rem;
  display: flex; margin: 0 auto 1.1rem;
  background: linear-gradient(135deg, #e3c25c, var(--gold-dark));
  color: #3d2f05;
}
.auth-card { position: relative; overflow: hidden; }
.auth-card::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 5px;
  background: linear-gradient(90deg, var(--emerald-700), var(--emerald-600), var(--gold));
}
.auth-card h2 { text-align: center; }
.auth-card > p.muted { text-align: center; }
.auth-card label, .mkt-form label {
  display: block; font-weight: 600; font-size: .9rem;
  margin-bottom: 1rem; color: var(--ink-soft);
}
.auth-card label .input, .mkt-form label .input { margin-top: .35em; font-weight: 400; }

/* ---------- WhatsApp button ---------- */
.btn-whatsapp {
  background: linear-gradient(180deg, #2fe07a, #1eb85a);
  color: #fff; box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: #1da851; text-decoration: none; }

/* ---------- Marketing site (mkt-*) ---------- */
.mkt { margin: 0; }
a.mkt-link, .mkt-link { text-decoration: none; }
.mkt-loading { text-align: center; padding: 4rem 1rem; color: var(--muted); font-size: 1.05rem; }

.mkt-hero {
  background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-800) 55%, var(--emerald-600) 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
  padding: 5rem 1.5rem 5.5rem;
}
[dir="ltr"] .mkt-hero { background: linear-gradient(-135deg, var(--emerald-950) 0%, var(--emerald-800) 55%, var(--emerald-600) 100%); }
.mkt-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background: radial-gradient(620px 320px at 18% 12%, #fff, transparent),
              radial-gradient(520px 280px at 82% 88%, var(--gold), transparent);
}
.mkt-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 26px 26px;
}
.mkt-hero > * { position: relative; z-index: 1; }
.mkt-badge {
  display: inline-block; background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.28); color: #fdf6dd;
  padding: .35em 1.15em; border-radius: 999px; font-size: .88rem; font-weight: 600;
  margin-bottom: 1.3rem; backdrop-filter: blur(4px);
}
.mkt-hero h1 { color: #fff; font-size: 2.6rem; font-weight: 800; line-height: 1.3; margin-bottom: .7rem; }
.mkt-hero .mkt-sub { font-size: 1.15rem; color: #dcebe6; max-width: 660px; margin: 0 auto 2rem; }
.mkt-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.mkt-note { margin-top: 1.4rem; font-size: .9rem; color: #bfe0d4; }

.mkt-section { padding: 3.6rem 1.5rem; max-width: 1120px; margin: 0 auto; }
.mkt-section > h2 { text-align: center; font-size: 1.75rem; font-weight: 800; margin-bottom: .5rem; }
.mkt-section > h2::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 99px;
  background: linear-gradient(90deg, var(--emerald-600), var(--gold));
  margin: .55rem auto 0;
}
.mkt-section > .mkt-sub { text-align: center; color: var(--muted); margin-bottom: 2rem; }

.mkt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.mkt-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: .8em; font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mkt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sand-300); }
.mkt-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--emerald-50); border: 1px solid var(--emerald-100);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
a.mkt-card { color: var(--ink); }
a.mkt-card:hover { text-decoration: none; border-color: var(--emerald-600); }
.mkt-testi { display: block; font-weight: 400; }
.mkt-testi p { font-style: italic; color: var(--ink-soft); font-size: 1rem; line-height: 1.8; }
.mkt-testi p::first-letter { color: var(--gold-dark); }
.mkt-testi strong { color: var(--emerald-800); font-size: .92rem; }

.mkt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.mkt-step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); text-align: center;
}
.mkt-step-n {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto .9rem;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; box-shadow: var(--shadow-sm);
}
.mkt-step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.mkt-step p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

.mkt-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 1.25rem; align-items: stretch; margin-top: 2.4rem; }
.mkt-plan {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 1.9rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  position: relative; transition: transform .15s ease, box-shadow .15s ease;
}
.mkt-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mkt-plan-pop { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.mkt-pop {
  position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(50%);
  background: linear-gradient(180deg, #d9b545, var(--gold)); color: #3d2f05;
  font-size: .76rem; font-weight: 800; padding: .3em 1.1em; border-radius: 999px;
  white-space: nowrap; box-shadow: var(--shadow-sm);
}
[dir="ltr"] .mkt-pop { transform: translateX(-50%); }
.mkt-plan h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.mkt-price { font-size: 2.05rem; font-weight: 800; color: var(--emerald-800); margin: .5rem 0 .2rem; line-height: 1.25; }
.mkt-price span { font-size: .88rem; font-weight: 500; color: var(--muted); }
.mkt-plan-desc { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.mkt-feats { list-style: none; padding: 0; margin: 0 0 1.3rem; flex: 1; }
.mkt-feats li { padding: .32em 0; font-size: .93rem; color: var(--ink-soft); }
.mkt-plan .btn { margin-top: .55rem; }

.mkt-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin-top: 2rem; }

.mkt-cta {
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
  color: #fff; border-radius: 22px; text-align: center;
  padding: 2.8rem 1.6rem; margin: 0 auto 3.6rem; max-width: 1080px; width: calc(100% - 3rem);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.mkt-cta::before {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background: radial-gradient(480px 240px at 85% 15%, var(--gold), transparent);
}
.mkt-cta > * { position: relative; }
.mkt-cta h2 { color: #fff; font-size: 1.6rem; margin-bottom: 1.2rem; }

.mkt-form {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); padding: 2rem; max-width: 580px; margin: 0 auto;
}
.mkt-form .btn[type="submit"] { margin-top: .4rem; }

.trial-success {
  background: var(--green-soft); border: 1px solid #bfe3cd; border-radius: 18px;
  padding: 2rem; max-width: 580px; margin: 0 auto; text-align: center;
}
.trial-success h3 { color: #14603a; }
.cred-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: #fff; border: 1px dashed var(--sand-300); border-radius: var(--radius-sm);
  padding: .65rem 1rem; margin: .55rem 0; font-size: .92rem; text-align: start;
}
.cred-row code {
  background: var(--sand-100); padding: .2em .6em; border-radius: 6px;
  border: 1px solid var(--border); font-size: .95em; direction: ltr;
}
.trial-success .mkt-ctas { margin-top: 1.1rem; }

/* ---------- Portal bits ---------- */
.modal-body { max-height: 72vh; overflow-y: auto; }
.rx-row { border-inline-start: 4px solid var(--emerald-600); }

/* ---------- Marketing responsive ---------- */
@media (max-width: 640px) {
  .mkt-hero { padding: 3.4rem 1.1rem 3.8rem; }
  .mkt-hero h1 { font-size: 1.85rem; }
  .mkt-section { padding: 2.5rem 1rem; }
  .mkt-form, .trial-success { padding: 1.4rem; }
  .cred-row { flex-direction: column; align-items: flex-start; gap: .3rem; }
}


/* ================================================================
   REFERENCE DARK DESIGN — public shell + marketing (matches the
   reference build's screenshots: near-black emerald theme, gold
   accents, pulse brand mark, ticket mockup, numbered feature rows,
   dark plan cards). Later layer: overrides the earlier light mkt.
   ================================================================ */
body.pub-dark-body { background: #060d0a; }

.pub-shell {
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 85% -120px, rgba(24, 122, 79, .20), transparent 60%),
    radial-gradient(700px 420px at 8% 0, rgba(24, 122, 79, .10), transparent 55%),
    #060d0a;
  color: #eaf4ee;
  display: flex; flex-direction: column;
}
.pub-shell #view { flex: 1 0 auto; width: 100%; }
.pub-shell .muted { color: #8ba596; }

/* brand mark (pulse) */
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(145deg, #28c47c, #12945a);
  box-shadow: 0 8px 20px -6px rgba(24, 178, 106, .55);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-mark.logo-mark-lg { width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 14px; display: flex; }
.brand-mark.logo-mark-lg svg { width: 36px; height: 36px; }
.brand-mark.tk-mark { width: 30px; height: 30px; border-radius: 9px; box-shadow: none; }
.brand-mark.tk-mark svg { width: 19px; height: 19px; }

/* topbar */
.pub-shell .pub-topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  background: rgba(7, 14, 11, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #16281d;
}
.pub-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.pub-brand-name { color: #f2f8f4; font-weight: 800; font-size: 21px; line-height: 1.02; letter-spacing: .2px; }
.pub-brand-name span { display: block; color: #2fce85; font-size: 15px; letter-spacing: 2.5px; }
.pub-shell .spacer { flex: 1; }
.btn-darkpill {
  background: #121f17; color: #e8f3ec; border: 1px solid #22392b;
  border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 14.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s;
}
.btn-darkpill:hover { border-color: #2fce85; background: #16281d; }
.btn-trial {
  background: linear-gradient(145deg, #2bc47e, #15a061); color: #fff; border: 0;
  border-radius: 999px; padding: 10px 20px; font-weight: 800; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(24, 178, 106, .6);
}
.btn-trial:hover { filter: brightness(1.06); }
.pub-shell .lang-toggle {
  background: #121f17; color: #dfece4; border: 1px solid #22392b; border-radius: 999px;
}
.pub-shell .lang-toggle:hover { background: #16281d; border-color: #2fce85; }

/* footer */
.pub-footer { border-top: 1px solid #14251b; background: #050b08; margin-top: 30px; }
.pub-foot-in {
  max-width: 1160px; margin: 0 auto; padding: 26px 22px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
}
.pub-foot-brand { display: inline-flex; align-items: center; gap: 11px; }
.pub-foot-name { color: #f2f8f4; font-weight: 800; font-size: 19px; }
.pub-foot-name span { color: #2fce85; }
.pub-foot-domain { color: #7e968a; font-size: 14px; }
.pub-foot-contact { display: inline-flex; flex-wrap: wrap; gap: 6px 22px; color: #c9dcd2; font-size: 15px; margin-inline-start: auto; }
.pub-foot-contact b { color: #2fce85; font-weight: 700; }
.pub-foot-btns { display: inline-flex; gap: 10px; }
.pub-foot-copy { width: 100%; color: #5f7769; font-size: 12.5px; border-top: 1px solid #101d15; padding-top: 14px; }

/* ---------- marketing (dark) ---------- */
.pub-shell .mkt { max-width: 1160px; padding: 18px 20px 8px; }
.mkt-loading { color: #8ba596; text-align: center; padding: 60px 0; }

.mkt-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0f4a31 0%, #093322 55%, #06231a 100%);
  border: 1px solid #17573a; border-radius: 30px;
  padding: 52px 46px 0; text-align: center; color: #eef7f1;
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .75);
}
.mkt-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 260px at 88% -40px, rgba(47, 206, 133, .28), transparent 60%),
    radial-gradient(420px 240px at 4% 10%, rgba(233, 185, 73, .10), transparent 55%);
}
.mkt-badge {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  color: #dcefe4; border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 600;
}
.mkt-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #e9b949; box-shadow: 0 0 10px #e9b949; }
.mkt-hero h1 {
  position: relative; font-size: clamp(38px, 6vw, 62px); font-weight: 800;
  line-height: 1.28; margin: 22px auto 14px; max-width: 780px; color: #fff;
}
.mkt-hero .mkt-sub { position: relative; max-width: 760px; margin: 0 auto; color: #c3dacd; font-size: 18px; line-height: 1.95; }
.mkt-ctas { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn-goldcta {
  background: linear-gradient(145deg, #f2c258, #e0a52e); color: #251a03; border: 0;
  border-radius: 14px; font-weight: 800; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(224, 165, 46, .55); transition: filter .2s, transform .2s;
}
.btn-goldcta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-outlinew {
  background: rgba(255, 255, 255, .03); color: #eef7f1; border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s;
}
.btn-outlinew:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.mkt-ticks {
  position: relative; display: flex; flex-wrap: wrap; gap: 8px 30px;
  justify-content: center; margin-top: 26px; color: #e6f3ec; font-weight: 600; font-size: 15.5px;
}

/* booking ticket mockup */
.mkt-ticket {
  position: relative; max-width: 520px; margin: 40px auto -6px;
  background: #fdfdfb; color: #14352a; border-radius: 20px 20px 0 0;
  padding: 22px 26px 20px; text-align: start;
  transform: rotate(-1.1deg);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .55);
}
.tk-head { display: flex; align-items: center; gap: 9px; border-bottom: 2.5px solid #17a566; padding-bottom: 13px; }
.tk-brand { font-weight: 800; color: #12a15f; font-size: 17px; }
.tk-brand span { color: #0b3d27; }
.tk-pill {
  margin-inline-start: auto; background: #0b3d27; color: #dff5e8;
  border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 700;
}
.tk-no { text-align: center; padding: 14px 0 6px; border-bottom: 1.5px dashed #b9c9bf; }
.tk-no span { display: block; color: #7d8f85; font-size: 13.5px; }
.tk-no strong { display: block; font-size: 64px; line-height: 1.05; color: #ddd5b8; font-weight: 800; }
.tk-rows { padding: 10px 0 2px; }
.tk-rows div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; }
.tk-rows span { color: #7d8f85; }
.tk-rows b { color: #31584a; }
.tk-note { border-top: 2.5px solid #17a566; margin: 12px 0 0; padding-top: 10px; color: #7d8f85; font-size: 13px; text-align: center; }

/* sections */
.pub-shell .mkt-section { margin-top: 74px; }
.pub-shell .mkt-section > h2, .pub-shell .mkt-section h2 {
  text-align: start; font-size: clamp(27px, 4vw, 38px); font-weight: 800;
  color: #f0f7f2; margin: 0 0 30px;
}
.pub-shell .mkt-section > h2::after { content: none; }

/* numbered feature + step rows */
.mkt-featlist, .mkt-steplist { border-top: 1px solid #152a1e; }
.mkt-featrow, .mkt-steprow {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 24px 4px; border-bottom: 1px solid #152a1e;
}
.mkt-featnum { color: #e9b949; font-weight: 800; font-size: 19px; min-width: 36px; padding-top: 8px; }
.mkt-stepnum { color: #2fce85; font-weight: 800; font-size: 46px; line-height: 1; min-width: 44px; }
.mkt-ico {
  width: 54px; height: 54px; flex: 0 0 auto; border-radius: 15px;
  background: #0d2c1e; border: 1px solid #17402c;
  display: inline-flex; align-items: center; justify-content: center; font-size: 26px;
}
.mkt-featbody h3 { margin: 2px 0 6px; font-size: 20px; color: #f0f7f2; }
.mkt-featbody p { margin: 0; color: #9db4a6; line-height: 1.9; font-size: 16px; max-width: 760px; }

/* plans (dark) */
.mkt-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: stretch; }
.mkt-plan {
  position: relative; background: #0c1712; border: 1px solid #1b2f22; border-radius: 22px;
  padding: 30px 26px 26px; display: flex; flex-direction: column; color: #dcebe1;
}
.mkt-plan-pop {
  background: linear-gradient(168deg, #0e4c31, #072a1d);
  border-color: #1a6b45;
  box-shadow: 0 30px 60px -26px rgba(10, 90, 55, .65);
}
.mkt-pop {
  position: absolute; top: -15px; inset-inline-start: 24px;
  background: linear-gradient(145deg, #f2c258, #e0a52e); color: #251a03;
  font-weight: 800; font-size: 13.5px; border-radius: 999px; padding: 6px 16px;
  box-shadow: 0 10px 20px -8px rgba(224, 165, 46, .6);
}
.mkt-plan h3 { margin: 0 0 10px; font-size: 21px; color: #f0f7f2; }
.mkt-price { font-size: 46px; font-weight: 800; color: #2fce85; line-height: 1.1; }
.mkt-plan-pop .mkt-price { color: #fff; }
.mkt-price span { font-size: 15.5px; font-weight: 600; color: #8ba596; }
.mkt-plan-pop .mkt-price span { color: #bcd8c8; }
.mkt-plan-desc { color: #9db4a6; line-height: 1.85; margin: 10px 0 4px; font-size: 15.5px; }
.mkt-feats { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 9px; flex: 1; align-content: start; }
.mkt-feats li { color: #d5e6da; font-size: 15.5px; }
.mkt-orlink {
  background: none; border: 0; color: #cfe3d6; font: inherit; font-weight: 600;
  cursor: pointer; padding: 12px 0 2px; text-decoration: underline; text-underline-offset: 4px;
}
.mkt-orlink:hover { color: #2fce85; }
.mkt-plan .btn-block { width: 100%; }

/* testimonials (dark) */
.mkt-testis { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.mkt-testi {
  background: #0c1712; border: 1px solid #1b2f22; border-radius: 20px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; color: #dcebe1;
}
.mkt-quote { color: #1d5c3c; font-size: 40px; line-height: .6; font-weight: 800; }
.mkt-testi p { margin: 0; line-height: 1.95; font-size: 16px; color: #d5e6da; flex: 1; }
.mkt-stars { color: #e9b949; letter-spacing: 3px; font-size: 17px; border-top: 1px solid #1b2f22; padding-top: 14px; }
.mkt-testi strong { color: #f0f7f2; font-size: 16.5px; }
.mkt-testisub { color: #7e968a; font-size: 14px; margin-top: -6px; }

/* contact (dark) */
.mkt-contact-intro { color: #9db4a6; font-size: 16.5px; line-height: 1.9; margin: -12px 0 22px; max-width: 780px; }
.mkt-contact { display: grid; gap: 14px; max-width: 780px; }
.mkt-ccard {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: #0c1712; border: 1px solid #1b2f22; border-radius: 18px; padding: 18px 22px;
  transition: border-color .2s;
}
.mkt-ccard:hover { border-color: #2fce85; }
.mkt-cbody { display: flex; flex-direction: column; gap: 2px; }
.mkt-cbody span { color: #7e968a; font-size: 14px; }
.mkt-cbody b { color: #f0f7f2; font-size: 19px; font-weight: 800; word-break: break-all; }

/* final CTA (dark shell) */
.pub-shell .mkt-cta {
  margin-top: 74px; border-radius: 28px; padding: 52px 30px; text-align: center; color: #eef7f1;
  background: linear-gradient(160deg, #0f4a31, #06231a);
  border: 1px solid #17573a;
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .7);
}
.pub-shell .mkt-cta h2 { font-size: clamp(28px, 4.4vw, 40px); margin: 0 0 12px; color: #fff; }
.pub-shell .mkt-cta p { color: #c3dacd; margin: 0 auto 6px; max-width: 560px; line-height: 1.9; font-size: 17px; }

/* trial panel (dark) */
.mkt-trialpanel {
  background: #0c1712; border: 1px solid #1b2f22; border-radius: 24px; overflow: hidden;
  max-width: 780px; margin: 0 auto;
}
.mkt-trialhead {
  background: linear-gradient(160deg, #0f4a31, #082c1e);
  padding: 30px 30px 24px; border-bottom: 1px solid #17573a;
}
.mkt-trialhead h2 { margin: 0 0 8px; font-size: 26px; color: #fff; text-align: start; }
.mkt-trialhead h2::after { content: none; }
.mkt-trialhead p { margin: 0; color: #bcd8c8; line-height: 1.9; font-size: 15.5px; }
.mkt-trialpanel .mkt-form { padding: 26px 30px 30px; display: grid; gap: 15px; }
.pub-shell .mkt-form label { color: #c4d6cb; font-size: 14.5px; font-weight: 600; display: grid; gap: 7px; }
.pub-shell .mkt-form .input {
  background: #081009; border: 1px solid #1e3527; color: #eaf4ee; border-radius: 12px;
}
.pub-shell .mkt-form .input:focus { outline: none; border-color: #2fce85; box-shadow: 0 0 0 3px rgba(47, 206, 133, .18); }
.pub-shell .mkt-form .input::placeholder { color: #54705f; }
.pub-shell .alert { border-radius: 12px; }
.pub-shell .trial-success { padding: 26px 30px 30px; text-align: center; }
.pub-shell .trial-success h3 { color: #fff; }
.pub-shell .trial-success p { color: #9db4a6; }
.pub-shell .cred-row {
  background: #081009; border: 1px solid #1e3527; border-radius: 12px; color: #dcebe1;
}
.pub-shell .cred-row code { color: #2fce85; }

/* auth cards on the dark shell */
.pub-shell .auth-wrap .auth-card { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65); }

/* public shell responsive */
@media (max-width: 720px) {
  .pub-shell .pub-topbar { padding: 10px 14px; flex-wrap: wrap; }
  .pub-brand-name { font-size: 18px; }
  .pub-shell .mkt { padding: 12px 12px 4px; }
  .mkt-hero { padding: 36px 20px 0; border-radius: 24px; }
  .mkt-ticket { margin-top: 30px; padding: 18px 18px 16px; }
  .tk-no strong { font-size: 52px; }
  .mkt-featrow, .mkt-steprow { gap: 13px; padding: 19px 2px; }
  .mkt-stepnum { font-size: 36px; min-width: 34px; }
  .mkt-ico { width: 46px; height: 46px; font-size: 22px; }
  .mkt-trialpanel .mkt-form, .mkt-trialhead, .pub-shell .trial-success { padding-inline: 20px; }
  .pub-foot-contact { margin-inline-start: 0; }
}

/* ---------- Visual-QA fixes (2026-10-20) ---------- */
.mkt-hero { padding-bottom: 46px; }
.mkt-ticket { border-radius: 20px; margin-bottom: 0; }
.mkt-contact { max-width: 860px; }
.mkt-cbody b { word-break: normal; overflow-wrap: anywhere; font-size: 17.5px; }

/* ================================================================
   THEME TOKENS — نهاري / ليلي
   data-theme on <html> flips the WHOLE app coherently: the inside
   (portal/admin) is variable-driven, so overriding the tokens
   re-skins everything at once; the public shell gets explicit
   light overrides below. Default (set in index.html) = dark.
   ================================================================ */
:root[data-theme="dark"] {
  color-scheme: dark;
  --card:        #0d1a12;
  --border:      #213a2a;
  --ink:         #e9f3ed;
  --ink-soft:    #b7cdbf;
  --muted:       #859a8c;
  --sand-50:     #081009;
  --sand-100:    #0d1a12;
  --sand-200:    #16281c;
  --sand-300:    #26452f;
  --emerald-50:  #0e2a1e;
  --emerald-100: #16402a;
  --gold-soft:   #2a2110;
  --gold-line:   #5c4b1e;
  --red-soft:    #331512;
  --green-soft:  #0f2c1c;
  --amber-soft:  #2e2210;
  --blue-soft:   #12283a;
  --shadow-lg:   0 24px 50px -12px rgba(0, 0, 0, .65);
}
:root[data-theme="dark"] .cred-box code { background: #081009; }
:root[data-theme="dark"] .dropzone, :root[data-theme="dark"] .upload-drop {
  background: #0d1a12;
}

/* ---------- LIGHT theme: public shell + marketing ---------- */
:root[data-theme="light"] body.pub-dark-body { background: var(--sand-50); }
:root[data-theme="light"] .pub-shell {
  background:
    radial-gradient(900px 480px at 85% -120px, rgba(21, 144, 124, .12), transparent 60%),
    var(--sand-50);
  color: var(--ink);
}
:root[data-theme="light"] .pub-shell .pub-topbar {
  background: rgba(250, 247, 242, .92);
  border-bottom-color: var(--border);
}
:root[data-theme="light"] .pub-brand-name { color: var(--ink); }
:root[data-theme="light"] .pub-brand-name span { color: var(--emerald-700); }
:root[data-theme="light"] .btn-darkpill {
  background: #fff; color: var(--ink); border-color: var(--border);
}
:root[data-theme="light"] .btn-darkpill:hover { border-color: var(--emerald-600); background: var(--emerald-50); }
:root[data-theme="light"] .pub-shell .lang-toggle {
  background: #fff; color: var(--ink); border-color: var(--border);
}
:root[data-theme="light"] .pub-shell .lang-toggle:hover { background: var(--emerald-50); border-color: var(--emerald-600); }
:root[data-theme="light"] .pub-footer { background: var(--sand-100); border-top-color: var(--border); }
:root[data-theme="light"] .pub-foot-name { color: var(--ink); }
:root[data-theme="light"] .pub-foot-name span { color: var(--emerald-700); }
:root[data-theme="light"] .pub-foot-domain { color: var(--muted); }
:root[data-theme="light"] .pub-foot-contact { color: var(--ink-soft); }
:root[data-theme="light"] .pub-foot-contact b { color: var(--emerald-700); }
:root[data-theme="light"] .pub-foot-copy { color: var(--muted); border-top-color: var(--border); }
:root[data-theme="light"] .pub-shell .mkt-section > h2,
:root[data-theme="light"] .pub-shell .mkt-section h2 { color: var(--ink); }
:root[data-theme="light"] .mkt-featlist, :root[data-theme="light"] .mkt-steplist { border-top-color: var(--border); }
:root[data-theme="light"] .mkt-featrow, :root[data-theme="light"] .mkt-steprow { border-bottom-color: var(--border); }
:root[data-theme="light"] .mkt-featnum { color: var(--gold-dark); }
:root[data-theme="light"] .mkt-stepnum { color: var(--emerald-700); }
:root[data-theme="light"] .mkt-ico { background: var(--emerald-50); border-color: var(--emerald-100); }
:root[data-theme="light"] .mkt-featbody h3 { color: var(--ink); }
:root[data-theme="light"] .mkt-featbody p { color: var(--ink-soft); }
:root[data-theme="light"] .mkt-plan {
  background: #fff; border-color: var(--border); color: var(--ink-soft);
  box-shadow: 0 18px 40px -22px rgba(43, 38, 32, .25);
}
:root[data-theme="light"] .mkt-plan h3 { color: var(--ink); }
:root[data-theme="light"] .mkt-price { color: var(--emerald-700); }
:root[data-theme="light"] .mkt-plan-pop .mkt-price { color: #fff; }
:root[data-theme="light"] .mkt-price span { color: var(--muted); }
:root[data-theme="light"] .mkt-plan-pop .mkt-price span { color: #bcd8c8; }
:root[data-theme="light"] .mkt-plan-desc { color: var(--ink-soft); }
:root[data-theme="light"] .mkt-plan-pop .mkt-plan-desc { color: #bcd8c8; }
:root[data-theme="light"] .mkt-feats li { color: var(--ink-soft); }
:root[data-theme="light"] .mkt-plan-pop .mkt-feats li { color: #d5e6da; }
:root[data-theme="light"] .mkt-plan:not(.mkt-plan-pop) .mkt-orlink { color: var(--ink-soft); }
:root[data-theme="light"] .mkt-plan:not(.mkt-plan-pop) .mkt-orlink:hover { color: var(--emerald-700); }
:root[data-theme="light"] .mkt-testi {
  background: #fff; border-color: var(--border); color: var(--ink-soft);
  box-shadow: 0 18px 40px -24px rgba(43, 38, 32, .22);
}
:root[data-theme="light"] .mkt-quote { color: var(--emerald-100); }
:root[data-theme="light"] .mkt-testi p { color: var(--ink-soft); }
:root[data-theme="light"] .mkt-stars { border-top-color: var(--border); color: var(--gold-dark); }
:root[data-theme="light"] .mkt-testi strong { color: var(--ink); }
:root[data-theme="light"] .mkt-testisub { color: var(--muted); }
:root[data-theme="light"] .mkt-contact-intro { color: var(--ink-soft); }
:root[data-theme="light"] .mkt-ccard { background: #fff; border-color: var(--border); }
:root[data-theme="light"] .mkt-ccard:hover { border-color: var(--emerald-600); }
:root[data-theme="light"] .mkt-cbody span { color: var(--muted); }
:root[data-theme="light"] .mkt-cbody b { color: var(--ink); }
/* Popular plan card STAYS emerald in light theme (its text is light-on-green);
   the generic white .mkt-plan override above must not wash it out. */
:root[data-theme="light"] .mkt-plan-pop {
  background: linear-gradient(168deg, #0e4c31, #072a1d);
  border-color: #1a6b45;
  color: #dcebe1;
  box-shadow: 0 30px 60px -26px rgba(10, 90, 55, .55);
}
:root[data-theme="light"] .mkt-plan-pop h3 { color: #f0f7f2; }
:root[data-theme="light"] .mkt-plan-pop .mkt-orlink { color: #cfe3d6; }
:root[data-theme="light"] .mkt-plan-pop .mkt-orlink:hover { color: #2fce85; }
/* Always-dark panels keep white headings in light theme too (the generic
   section-h2 ink rule must not hit the trial head / final CTA). */
:root[data-theme="light"] .pub-shell .mkt-trialhead h2 { color: #fff; }
:root[data-theme="light"] .pub-shell .mkt-cta h2 { color: #fff; }
:root[data-theme="light"] .pub-shell .mkt-cta p { color: #c3dacd; }
:root[data-theme="light"] .mkt-trialpanel { background: #fff; border-color: var(--border); }
:root[data-theme="light"] .pub-shell .mkt-form label { color: var(--ink-soft); }
:root[data-theme="light"] .pub-shell .mkt-form .input {
  background: #fff; border-color: var(--border); color: var(--ink);
}
:root[data-theme="light"] .pub-shell .mkt-form .input::placeholder { color: var(--muted); }
:root[data-theme="light"] .pub-shell .trial-success h3 { color: var(--ink); }
:root[data-theme="light"] .pub-shell .trial-success p { color: var(--ink-soft); }
:root[data-theme="light"] .pub-shell .cred-row {
  background: var(--sand-50); border-color: var(--border); color: var(--ink);
}
:root[data-theme="light"] .pub-shell .cred-row code { color: var(--emerald-700); }
:root[data-theme="light"] .pub-shell .muted { color: var(--muted); }

/* clinic-login match picker */
.clogin-matches { display: grid; gap: 8px; margin-top: 12px; }

/* ================================================================
   INSIDE-REFERENCE LAYER — portal/admin components matching the
   reference build (dot stat cards, pill filters, user cards, print
   previews, branch switcher) + mobile hardening (no sideways
   scroll, compact topbar, off-canvas sidebar that cannot peek).
   ================================================================ */
html, body { overflow-x: clip; }
.main { min-width: 0; }
.content { overflow-x: clip; }

/* stat cards — green dot + label, like the reference */
.stat-card::after { content: none; }
.stat-card .lbl { display: flex; align-items: center; gap: .5em; font-weight: 600; }
.stat-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fce85; flex: 0 0 auto; box-shadow: 0 0 8px rgba(47, 206, 133, .55); }
.stat-card .sub { color: var(--muted); font-size: .84rem; margin-top: .2rem; }
.stat-card .num { overflow-wrap: anywhere; }

/* pill groups — period filters, settings sub-tabs, kind toggles */
.pill-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--border); background: var(--card); color: var(--ink-soft);
  border-radius: 999px; padding: .42em 1.05em; font: inherit; font-weight: 700;
  font-size: .88rem; cursor: pointer; white-space: nowrap;
}
.pill:hover { border-color: var(--emerald-600); }
.pill.active { background: linear-gradient(145deg, #2bc47e, #15a061); border-color: transparent; color: #fff; }
.pill.active-red { background: var(--red); border-color: transparent; color: #fff; }
.pill.active-green { background: var(--green); border-color: transparent; color: #fff; }

/* section titles + dashed empty state (reference) */
.sec-title { font-size: 1.12rem; font-weight: 800; margin: 1.5rem 0 .8rem; }
.empty-dash {
  border: 1.5px dashed var(--border); border-radius: var(--radius);
  padding: 2.2rem 1rem; text-align: center; color: var(--muted);
}

/* user cards (reference users page) */
.user-card {
  display: flex; align-items: center; gap: .9rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .8rem;
}
.user-card .dot { width: 11px; height: 11px; border-radius: 50%; background: #2fce85; flex: 0 0 auto; }
.user-card .dot.off { background: var(--red); }
.user-card .u-main { flex: 1; min-width: 0; }
.user-card .u-name { font-weight: 800; overflow-wrap: anywhere; }
.user-card .u-sub { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }

/* print previews inside settings (white paper, both themes) */
.prev-paper {
  background: #fff; color: #14352a; border-radius: 14px; padding: 20px 22px;
  max-width: 460px; margin: 0 auto; box-shadow: var(--shadow); text-align: center;
}
.prev-paper .pp-name { color: #12a15f; font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; }
.prev-paper .pp-phone { color: #7d8f85; font-size: .9rem; }
.prev-paper .pp-line { border-top: 2.5px solid #17a566; margin: 10px 0; }
.prev-paper .pp-queue { font-size: 3.2rem; font-weight: 800; color: #ddd5b8; line-height: 1.1; }
.prev-paper .pp-note { color: #7d8f85; font-size: .82rem; }
.prev-paper .pp-rx { text-align: start; font-size: .95rem; }
.prev-paper .pp-sign { text-align: end; color: #555; font-size: .85rem; margin-top: 14px; }
.prev-paper .pp-logo { width: 54px; height: 54px; object-fit: contain; margin: 0 auto 6px; display: block; }

/* dynamic rows in modals (medications / consumables) */
.dyn-row { display: grid; gap: .5rem; margin-bottom: .6rem; align-items: start; }
.dyn-row.med { grid-template-columns: 1.35fr .75fr .75fr .75fr 1.15fr auto; }
.dyn-row.cons { grid-template-columns: 1fr 110px auto; }
@media (max-width: 720px) {
  .dyn-row.med { grid-template-columns: 1fr 1fr auto; }
  .dyn-row.cons { grid-template-columns: 1fr 84px auto; }
}

/* dashboard waiting-queue rows */
.queue-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .2rem; border-bottom: 1px solid var(--sand-100); }
.queue-row:last-child { border-bottom: none; }
.queue-no {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background: var(--emerald-50); color: var(--emerald-800);
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* branch switcher (portal topbar) */
.branch-switch {
  border: 1px solid var(--border); background: var(--sand-100); color: var(--ink);
  border-radius: 999px; padding: .38em .8em; font: inherit; font-weight: 700;
  font-size: .86rem; max-width: 190px; cursor: pointer;
}

/* sidebar can never peek on mobile */
@media (max-width: 860px) {
  .sidebar { visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
  body.nav-open .sidebar { visibility: visible; transition: transform .22s ease; }
}

/* compact topbar + full-screen modal sheets on phones */
@media (max-width: 720px) {
  .topbar { gap: .45rem; padding: .55rem .7rem; }
  .topbar .clinic-name { display: none; }
  .topbar .plan-badge { display: none; }
  .lang-toggle { padding: .32em .65em; font-size: .78rem; }
  .user-chip { padding: .3em .55em; }
  .logout-btn .lo-txt { display: none; }
  .logout-btn { padding: .35em .55em; }
  .branch-switch { max-width: 112px; font-size: .78rem; padding: .32em .55em; }
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal, .modal.wide { max-width: none; width: 100%; min-height: 100%; border-radius: 0; }
  .page-head h2 { font-size: 1.15rem; }
}

/* inline SVG icons (chrome) — alignment + sizing */
.ico { vertical-align: -3px; flex: 0 0 auto; }
.side-ico { display: inline-flex; align-items: center; justify-content: center; }
.side-ico .ico { vertical-align: 0; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; }
.user-chip { display: inline-flex; align-items: center; gap: 6px; }
.hamburger { display: inline-flex; align-items: center; justify-content: center; }
.btn .ico { vertical-align: -2px; }
.mkt-ico { color: #2fce85; }
:root[data-theme="light"] .mkt-ico { color: var(--emerald-700); }

/* ---------- notifications bell ---------- */
.notif-wrap { position: relative; display: inline-flex; }
.notif-btn { position: relative; }
.notif-badge {
  position: absolute; top: -5px; inset-inline-end: -5px; background: #e5484d; color: #fff;
  border-radius: 999px; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
  border: 2px solid var(--card);
}
.notif-panel {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 80;
  width: min(340px, 88vw); background: var(--card); color: var(--ink);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 8px 12px; max-height: 60vh; overflow: auto;
}
.notif-head { font-weight: 800; padding: 6px 2px; border-bottom: 1px solid var(--border); }
.notif-item { padding: 8px 2px; border-bottom: 1px solid var(--border); font-size: .92rem; line-height: 1.7; }
.notif-item:last-child { border-bottom: 0; }

/* ---------- waiting-room display ---------- */
body.waiting-mode .pub-topbar, body.waiting-mode .pub-footer { display: none; }
body.waiting-mode .pub-shell main { padding: 0; }
.wait-screen {
  min-height: 100vh; box-sizing: border-box; padding: 4vh 4vw;
  background: linear-gradient(165deg, #0b3524, #051a11); color: #eaf6ef;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.wait-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wait-clinic { display: flex; align-items: center; gap: 14px; font-size: clamp(22px, 3.4vw, 40px); font-weight: 800; }
.wait-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: #fff; padding: 4px; }
.wait-clock { font-size: clamp(20px, 2.6vw, 34px); font-weight: 700; color: #9fd8bb; }
.wait-now-title { margin-top: 5vh; font-size: clamp(18px, 2.2vw, 28px); color: #9fd8bb; font-weight: 700; letter-spacing: .02em; }
.wait-now { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.wait-now-card {
  background: #0e4c31; border: 2px solid #1f7a4d; border-radius: 26px;
  padding: 22px 44px; min-width: 230px;
}
.wait-no { font-size: clamp(64px, 10vw, 130px); font-weight: 900; line-height: 1; color: #ffd970; }
.wait-doc { margin-top: 8px; font-size: clamp(18px, 2.4vw, 28px); font-weight: 700; }
.wait-idle { opacity: .45; }
.wait-next-title { margin-top: 5vh; font-size: clamp(17px, 2vw, 25px); color: #9fd8bb; font-weight: 700; }
.wait-next { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 14px; max-width: 1100px; }
.wait-chip {
  background: #0a2a1b; border: 1px solid #1f7a4d; border-radius: 999px;
  padding: 10px 22px; display: inline-flex; gap: 10px; align-items: baseline;
}
.wait-chip b { font-size: clamp(24px, 3.4vw, 42px); color: #fff; }
.wait-chip span { font-size: clamp(14px, 1.7vw, 20px); color: #9fd8bb; }
.wait-none { margin-top: 4vh; font-size: clamp(16px, 2vw, 24px); color: #9fd8bb; }
