:root {
  --navy: #0B1F3A;
  --navy-2: #16305A;
  --navy-soft: #24406B;
  --orange: #FF6A00;
  --orange-2: #FF7A00;
  --cream: #F6F0E6;
  --cream-deep: #EEE5D6;
  --surface: #FFFFFF;
  --line: #E7DDCE;
  --line-strong: #D8CCB8;
  --ink: #0B1F3A;
  --muted: #5B6B84;
  --success: #0E8A4C;
  --success-bg: #E7F6EE;
  --warn: #A96A08;
  --warn-bg: #FCF1DE;
  --danger: #CE3B3B;
  --danger-bg: #FBE9E9;
  --info-bg: #EDF2FA;
  --ring: rgba(255, 106, 0, .35);
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 2px 8px rgba(11, 31, 58, .05);
  --shadow-md: 0 4px 14px rgba(11, 31, 58, .09), 0 12px 32px rgba(11, 31, 58, .08);
  --shadow-lg: 0 10px 30px rgba(11, 31, 58, .14), 0 24px 60px rgba(11, 31, 58, .12);
  --r-lg: 18px;
  --r-md: 13px;
  --r-sm: 9px;
  --grad-cta: linear-gradient(135deg, var(--orange), var(--orange-2));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IRANSansX", "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

::selection { background: rgba(255, 106, 0, .25); }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.section { padding-block: 68px; }
.section-tight { padding-block: 44px; }

.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--info-bg); color: var(--navy);
  font-size: .82rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.kicker .ic { width: 15px; height: 15px; }
.sub { color: var(--muted); font-size: 1.02rem; }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: inline-block; }
.ic-lg { width: 26px; height: 26px; }
.ic-xl { width: 34px; height: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  padding: 11px 22px; font-size: .95rem; font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: 0 6px 16px rgba(255, 106, 0, .30); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(255, 106, 0, .42); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: rgba(11, 31, 58, .06); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cream); }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: transparent; }
.btn-danger-ghost:hover { background: var(--danger-bg); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: var(--r-md); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none !important; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700;
  padding: 4px 11px; border-radius: 999px;
  white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.t-success { background: var(--success-bg); color: var(--success); }
.t-warn { background: var(--warn-bg); color: var(--warn); }
.t-info { background: var(--info-bg); color: var(--navy); }
.t-danger { background: var(--danger-bg); color: var(--danger); }
.t-muted { background: #EFEBE2; color: var(--muted); }
.t-orange { background: rgba(255, 106, 0, .12); color: var(--orange); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--line-strong); background: #fff;
  border-radius: 999px; padding: 8px 17px;
  font-size: .88rem; font-weight: 600; color: var(--navy-soft);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 26px; }
.card-hover { transition: transform .18s ease, box-shadow .18s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.svc-card { display: flex; flex-direction: column; overflow: hidden; }
.svc-thumb {
  height: 120px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--cream), var(--cream-deep));
  color: var(--navy); position: relative;
}
.svc-thumb .ic { width: 44px; height: 44px; stroke-width: 1.4; opacity: .85; }
.svc-thumb .flag { position: absolute; top: 12px; inset-inline-start: 12px; }
.svc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-title { font-size: 1.02rem; font-weight: 800; margin: 0; }
.svc-desc { color: var(--muted); font-size: .88rem; margin: 0; flex: 1; }
.svc-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .8rem; }
.svc-meta .row { gap: 5px; }
.price { font-weight: 800; color: var(--navy); font-size: 1rem; }
.price small { color: var(--muted); font-weight: 500; font-size: .75rem; }

.pkg-card { position: relative; overflow: hidden; }
.pkg-card.featured { border: 2px solid var(--orange); box-shadow: 0 10px 30px rgba(255, 106, 0, .14); }
.pkg-flag {
  position: absolute; top: 14px; inset-inline-end: 14px;
  background: var(--grad-cta); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.feat-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.feat-list li { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; color: var(--navy-soft); }
.feat-list .ic { width: 17px; height: 17px; color: var(--success); margin-top: 4px; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--info-bg); color: var(--navy);
}
.icon-tile.orange { background: rgba(255, 106, 0, .13); color: var(--orange); }
.icon-tile.green { background: var(--success-bg); color: var(--success); }

.quote-card blockquote { margin: 0; font-size: .95rem; }
.quote-card figcaption { margin-top: 14px; display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(140deg, var(--navy), var(--navy-soft));
  color: #f4c99a; display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  flex-shrink: 0;
}
.article-card .thumb {
  height: 130px; border-start-start-radius: var(--r-lg); border-start-end-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--navy), var(--navy-soft));
  display: grid; place-items: center; color: rgba(255, 255, 255, .8);
}
.article-card .thumb .ic { width: 38px; height: 38px; }

.stat-tile { padding: 20px 22px; }
.stat-num { font-size: 1.65rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat-lbl { color: var(--muted); font-size: .83rem; }

.nba-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #EAF0F8; border: none;
}
.nba-card .kicker { background: rgba(255, 255, 255, .12); color: #FFD9BC; }
.nba-card p { color: #B9C6DA; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .87rem; font-weight: 700; }
.field label .req { color: var(--orange); }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff; padding: 11px 14px; font-size: .95rem; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--ring); }
.input.err-state { border-color: var(--danger); }
textarea.input { resize: vertical; min-height: 90px; }
.hint { font-size: .78rem; color: var(--muted); margin: 0; }
.err-msg { font-size: .8rem; color: var(--danger); margin: 0; min-height: 1.1em; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--navy-soft); }
.check-row input { width: 17px; height: 17px; margin-top: 4px; accent-color: var(--orange); }

.stepper { display: flex; gap: 0; margin: 0 0 34px; padding: 0; list-style: none; }
.stepper li { flex: 1; text-align: center; position: relative; font-size: .82rem; color: var(--muted); font-weight: 600; }
.stepper li:not(:last-child)::after {
  content: ""; position: absolute; top: 17px; inset-inline-start: calc(50% + 22px);
  width: calc(100% - 44px); height: 2px; background: var(--line-strong);
}
.stepper .s-dot {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 8px;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--line-strong);
  font-weight: 800; position: relative; z-index: 1;
}
.stepper li.done .s-dot { background: var(--success); border-color: var(--success); color: #fff; }
.stepper li.done { color: var(--success); }
.stepper li.done:not(:last-child)::after { background: var(--success); }
.stepper li.current .s-dot { border-color: var(--orange); color: var(--orange); box-shadow: 0 0 0 5px rgba(255, 106, 0, .15); }
.stepper li.current { color: var(--navy); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1.5px solid var(--line); padding-bottom: 12px; margin-bottom: 26px; }
.tab-btn {
  border: none; background: transparent; padding: 9px 16px; border-radius: var(--r-sm);
  font-weight: 700; font-size: .88rem; color: var(--muted);
  display: inline-flex; gap: 8px; align-items: center;
}
.tab-btn:hover { background: rgba(11, 31, 58, .05); }
.tab-btn.active { background: var(--navy); color: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

details.acc { border: 1px solid var(--line); background: #fff; border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; }
details.acc summary {
  cursor: pointer; list-style: none; padding: 17px 22px;
  font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 12px;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary .chev { margin-inline-start: auto; transition: transform .2s ease; }
details.acc[open] summary .chev { transform: rotate(180deg); }
details.acc .acc-body { padding: 0 22px 19px; color: var(--muted); font-size: .92rem; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 8px; bottom: 8px;
  inset-inline-start: 13px; width: 2px; background: var(--line-strong);
}
.tl-item { position: relative; padding-inline-start: 42px; padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-dot {
  position: absolute; inset-inline-start: 4px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-strong);
  display: grid; place-items: center; z-index: 1;
}
.tl-dot .ic { width: 11px; height: 11px; stroke-width: 2.6; }
.tl-item.t-success .tl-dot { border-color: var(--success); color: var(--success); background: var(--success-bg); }
.tl-item.t-info .tl-dot { border-color: var(--navy); color: var(--navy); background: var(--info-bg); }
.tl-item.t-orange .tl-dot { border-color: var(--orange); color: var(--orange); background: rgba(255, 106, 0, .12); }
.tl-item.t-warn .tl-dot { border-color: var(--warn); color: var(--warn); background: var(--warn-bg); }
.tl-time { font-size: .76rem; color: var(--muted); margin-bottom: 2px; }
.tl-title { font-weight: 700; font-size: .93rem; }
.tl-desc { font-size: .85rem; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .89rem; min-width: 520px; }
.tbl th {
  text-align: start; font-size: .78rem; color: var(--muted); font-weight: 700;
  background: var(--cream); padding: 12px 18px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }

.progress { height: 9px; background: var(--cream-deep); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad-cta); border-radius: 999px; transition: width .5s ease; }
.progress.green > span { background: linear-gradient(90deg, var(--success), #27b56a); }

.otp-row { display: flex; gap: 12px; direction: ltr; justify-content: center; }
.otp-cell {
  width: 54px; height: 62px; text-align: center;
  font-size: 1.5rem; font-weight: 800; color: var(--navy);
  border: 2px solid var(--line-strong); border-radius: var(--r-md); background: #fff;
}
.otp-cell:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--ring); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.slot {
  border: 1.5px solid var(--line-strong); background: #fff; border-radius: var(--r-sm);
  padding: 10px 6px; font-weight: 700; font-size: .9rem; color: var(--navy-soft);
  transition: all .12s ease;
}
.slot:hover:not(:disabled) { border-color: var(--navy); }
.slot.sel { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot:disabled { background: var(--cream); color: #b9b2a5; cursor: not-allowed; text-decoration: line-through; }
.day-tabs { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; }
.day-tab {
  flex-shrink: 0; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: #fff; padding: 10px 16px; text-align: center; min-width: 86px;
}
.day-tab .d-name { display: block; font-size: .74rem; color: var(--muted); }
.day-tab .d-num { font-weight: 800; font-size: 1.05rem; }
.day-tab.sel { border-color: var(--orange); box-shadow: 0 0 0 3px var(--ring); }

.radio-card { display: block; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: 15px 17px; cursor: pointer; background: #fff; transition: all .12s ease; }
.radio-card input { accent-color: var(--orange); margin-inline-end: 9px; }
.radio-card.sel { border-color: var(--orange); box-shadow: 0 0 0 3px var(--ring); }
.radio-card .rc-title { font-weight: 700; font-size: .93rem; }
.radio-card .rc-sub { font-size: .8rem; color: var(--muted); }

#toast-root { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 40px)); }
.toast {
  background: var(--navy); color: #fff; border-radius: var(--r-md);
  padding: 13px 18px; font-size: .9rem; font-weight: 600;
  display: flex; gap: 11px; align-items: center; box-shadow: var(--shadow-lg);
  animation: toastIn .3s ease;
}
.toast .ic { color: #FFB37E; }
.toast.t-success { background: var(--success); } .toast.t-success .ic { color: #fff; }
.toast.t-warn { background: var(--warn); }
.toast.t-danger { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

dialog.modal { border: none; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100vw - 36px)); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(11, 31, 58, .55); backdrop-filter: blur(3px); }
.modal-hd { padding: 20px 26px 0; display: flex; align-items: center; gap: 10px; }
.modal-bd { padding: 14px 26px 26px; }

.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state .ic { width: 46px; height: 46px; margin: 0 auto 12px; opacity: .5; }

.hd { background: rgba(246, 240, 230, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.hd-inner { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; color: var(--navy); }
.brand .mark { width: 40px; height: 40px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { padding: 9px 14px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 600; color: var(--navy-soft); }
.nav-links a:hover { background: rgba(11, 31, 58, .06); color: var(--navy); }
.nav-links a.active { color: var(--orange); font-weight: 800; }
.hd-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.bell-wrap, .user-wrap { position: relative; }
.bell-btn, .avatar-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--line-strong); background: #fff;
  color: var(--navy); position: relative;
}
.bell-btn:hover, .avatar-btn:hover { border-color: var(--navy); }
.dot-badge {
  position: absolute; top: -3px; inset-inline-end: -3px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: .68rem; font-weight: 800;
  display: grid; place-items: center;
}
.dropdown {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  width: 330px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 70;
  display: none;
}
.dropdown.open { display: block; animation: fadeUp .18s ease; }
.dd-item { display: flex; gap: 12px; padding: 11px 13px; border-radius: var(--r-sm); align-items: flex-start; }
.dd-item:hover { background: var(--cream); }
.dd-item .t { font-weight: 700; font-size: .87rem; }
.dd-item .s { font-size: .79rem; color: var(--muted); }
.dd-sep { height: 1px; background: var(--line); margin: 7px 4px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: #fff; color: var(--navy); place-items: center; }

.ft { background: var(--navy); color: #B9C6DA; margin-top: 80px; }
.ft a:hover { color: #fff; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-block: 54px 34px; }
.ft h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .87rem; }
.ft-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.ft-note { font-size: .82rem; line-height: 1.9; }
.ft-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px; font-size: .8rem; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.bnav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 55;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: none; padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
}
.bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; font-weight: 700; color: var(--muted); padding: 5px 0; border-radius: var(--r-sm); }
.bnav a.active { color: var(--orange); }
.bnav a .ic { width: 21px; height: 21px; }

.hero { padding-block: 60px 70px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--navy-soft); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.hero-badge .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 106, 0, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 106, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); } }
.hero-sub { color: var(--muted); font-size: 1.06rem; max-width: 480px; }
.hero-ctas { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 1.45rem; color: var(--navy); }
.hero-stat span { font-size: .8rem; color: var(--muted); }

.mock-wrap { position: relative; }
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 430px; margin-inline: auto;
}
.mock-hd { background: var(--navy); color: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; }
.mock-hd .dots { display: flex; gap: 5px; margin-inline-end: 4px; }
.mock-hd .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.mock-bd { padding: 18px 20px 22px; display: grid; gap: 12px; }
.mock-row { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 15px; display: flex; align-items: center; gap: 12px; }
.mock-row .t { font-weight: 700; font-size: .85rem; }
.mock-row .s { font-size: .76rem; color: var(--muted); }
.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 10px 15px; display: flex; gap: 10px; align-items: center; font-size: .8rem; font-weight: 700;
  animation: floatY 4.5s ease-in-out infinite;
}
.float-chip .ic { width: 18px; height: 18px; }
.fc-1 { top: 26px; inset-inline-start: -8px; animation-delay: .4s; }
.fc-2 { bottom: 40px; inset-inline-end: -6px; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.launcher-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 24px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  font-weight: 700; font-size: .88rem; transition: all .16s ease; box-shadow: var(--shadow-sm);
}
.launcher-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.launcher-tile .icon-tile { width: 58px; height: 58px; border-radius: 17px; }

.step-num {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: var(--grad-cta); color: #fff; font-weight: 800; font-size: 1.1rem;
  display: grid; place-items: center; box-shadow: 0 5px 14px rgba(255, 106, 0, .3);
}

.journey-card { background: linear-gradient(160deg, var(--navy), var(--navy-soft)); color: #EAF0F8; border: none; }
.journey-card h3 { color: #fff; }
.journey-step { display: flex; gap: 14px; padding-block: 13px; border-bottom: 1px dashed rgba(255, 255, 255, .16); }
.journey-step:last-child { border-bottom: none; }
.journey-step .j-ic { color: #FFB37E; margin-top: 3px; }
.journey-step b { color: #fff; display: block; font-size: .95rem; }
.journey-step span { color: #B9C6DA; font-size: .86rem; }

.band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; border-radius: 26px; padding: 52px 48px;
  position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; inset-inline-start: -70px; bottom: -110px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, .35), transparent 65%);
}
.band h2 { color: #fff; }
.band p { color: #B9C6DA; max-width: 560px; }

.auth-shell { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: min(460px, calc(100vw - 36px)); }
.auth-side { text-align: center; margin-top: 22px; font-size: .84rem; color: var(--muted); }
.brand-center { display: flex; justify-content: center; margin-bottom: 22px; }

.page-head { background: #fff; border-bottom: 1px solid var(--line); padding-block: 30px; }
.page-head h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 6px; display: flex; gap: 7px; align-items: center; }
.crumbs a:hover { color: var(--orange); }

.app-layout { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; padding-block: 34px; }
.side-nav { position: sticky; top: 92px; display: grid; gap: 4px; }
.side-nav a {
  display: flex; gap: 11px; align-items: center;
  padding: 11px 15px; border-radius: var(--r-sm); font-weight: 600; font-size: .91rem; color: var(--navy-soft);
  cursor: pointer;
}
.side-nav a:hover { background: rgba(11, 31, 58, .05); }
.side-nav a.active { background: var(--navy); color: #fff; font-weight: 700; }
.side-nav a .ic { width: 18px; height: 18px; }

.list-row {
  display: flex; gap: 14px; align-items: center; padding: 15px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
}
.list-stack > * + * { margin-top: 12px; }

.msg-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: stretch; min-height: 520px; }
.thread-item { border: 1.5px solid transparent; border-radius: var(--r-md); padding: 13px 15px; cursor: pointer; display: flex; gap: 12px; align-items: center; }
.thread-item:hover { background: var(--cream); }
.thread-item.sel { border-color: var(--orange); background: #fff; box-shadow: var(--shadow-sm); }
.chat-pane { display: flex; flex-direction: column; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--cream); border-radius: var(--r-md); border: 1px solid var(--line); max-height: 460px; }
.bubble { max-width: 78%; padding: 11px 16px; border-radius: 16px; font-size: .9rem; box-shadow: var(--shadow-sm); }
.bubble.me { align-self: flex-start; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.bubble.them { align-self: flex-end; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble .b-time { display: block; font-size: .68rem; opacity: .65; margin-top: 5px; }
.chat-input { display: flex; gap: 10px; padding-top: 14px; }
.chat-input .input { flex: 1; }

.upload-box {
  border: 2px dashed var(--line-strong); border-radius: var(--r-md);
  padding: 26px; text-align: center; color: var(--muted); background: #fff;
  transition: all .15s ease; cursor: pointer;
}
.upload-box:hover { border-color: var(--orange); color: var(--navy); }
.upload-box.ok { border-style: solid; border-color: var(--success); background: var(--success-bg); color: var(--success); font-weight: 700; }

.notice { border-radius: var(--r-md); padding: 14px 18px; font-size: .87rem; display: flex; gap: 11px; align-items: flex-start; border: 1px solid; }
.notice.info { background: var(--info-bg); border-color: #d5e0f0; color: var(--navy); }
.notice.warn { background: var(--warn-bg); border-color: #f0ddb8; color: var(--warn); }
.notice.success { background: var(--success-bg); border-color: #c8e9d7; color: var(--success); }
.notice.danger { background: var(--danger-bg); border-color: #f2caca; color: var(--danger); }

.divider { height: 1px; background: var(--line); border: none; margin-block: 22px; }
.muted { color: var(--muted); }
.small { font-size: .83rem; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.hide { display: none !important; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .app-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; padding-bottom: 6px; }
  .side-nav a { white-space: nowrap; }
}

@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: 72px; inset-inline: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 18px 16px; gap: 2px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: grid; }
  .hd-inner { gap: 12px; }
  .msg-layout { grid-template-columns: 1fr; }
  .threads-col { max-height: 210px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
}

@media (max-width: 640px) {
  .section { padding-block: 48px; }
  body { padding-bottom: 66px; }
  .bnav[data-show] { display: flex; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .band { padding: 36px 24px; border-radius: 20px; }
  .hero { padding-block: 36px 48px; }
  .hero-stats { gap: 22px; }
  .otp-cell { width: 46px; height: 56px; font-size: 1.3rem; }
  .float-chip { display: none; }
  .stepper { flex-wrap: wrap; gap: 12px 0; }
  .stepper li { min-width: 33%; }
}

@media print {
  .hd, .ft, .bnav, #toast-root, .no-print { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; border-color: #ccc; }
}

.jwrap { position: relative; }
.jpop {
  position: absolute; z-index: 90; top: calc(100% + 6px); inset-inline-start: 0;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 12px; width: 288px;
}
.jhd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 800; font-size: .9rem; }
.jnavb { border: none; background: var(--cream); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 1.1rem; cursor: pointer; }
.jnavb:hover { background: var(--cream-deep); }
.jgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.jwd { font-size: .68rem; color: var(--muted); font-weight: 700; padding: 5px 0; }
.jd { border: none; background: none; padding: 7px 0; border-radius: 9px; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.jd:hover { background: var(--cream); }
.jd.today { box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange); }
.jd.sel { background: var(--orange); color: #fff; }

.board { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
.bcol { background: rgba(255,255,255,.6); border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 13px; min-height: 230px; }
.bcol-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-inline-start: 4px; }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 14px; margin-bottom: 10px; font-size: .85rem; box-shadow: var(--shadow-sm); }
.qcard b { display: block; margin-bottom: 2px; font-size: .88rem; }
.sla { height: 5px; border-radius: 99px; background: var(--cream-deep); margin-top: 10px; overflow: hidden; }
.sla > i { display: block; height: 100%; transition: width .4s; }
.sla.ok > i { background: var(--success); } .sla.warn > i { background: var(--warn); } .sla.bad > i { background: var(--danger); }

.tagchip { background: var(--info-bg); color: var(--navy); font-size: .74rem; padding: 3px 10px; border-radius: 999px; font-weight: 700; }

.article-body h2 { font-size: 1.22rem; margin-top: 36px; }
.article-body p, .article-body li { color: #3D4D63; line-height: 2.1; font-size: .98rem; }
.article-body ul { padding-inline-start: 24px; margin-block: 14px; }
.cta-box { background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: #fff; border-radius: 20px; padding: 28px; margin-top: 38px; }
.art-cover { height: 160px; overflow: hidden; border-start-start-radius: var(--r-lg); border-start-end-radius: var(--r-lg); }
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand img.logo { width: 40px; height: 40px; border-radius: 12px; }

.rx-row { display: flex; gap: 8px; margin-bottom: 9px; align-items: center; }
.rx-row .input { padding: 9px 12px; }
.rx-del { border: none; background: none; color: var(--danger); cursor: pointer; padding: 6px; }
.input.input-sm { padding: 7px 11px; font-size: .86rem; }

.visit-card summary span:first-of-type { font-weight: 700; font-size: .92rem; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: var(--r-md); padding: 5px; gap: 5px; margin-bottom: 20px; }
.auth-tab { border: none; background: none; padding: 10px; border-radius: var(--r-sm); font-weight: 800; font-size: .9rem; color: var(--muted); cursor: pointer; }
.auth-tab.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

.panel-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; padding-block: 30px; }
@media (max-width: 900px) { .panel-layout { grid-template-columns: 1fr; } .panel-layout .side-nav { position: static; flex-direction: row; overflow-x: auto; } }

/* ===== Modern Panel Layout ===== */
body.panel-mode { background: var(--cream); }
.panel-app {
  display: grid !important; grid-template-columns: 260px 1fr; min-height: 100vh;
  background: var(--cream); font-family: 'Vazirmatn', sans-serif;
}
.panel-sidebar {
  background: var(--surface); border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 24px 16px;
  display: flex; flex-direction: column; min-height: 100vh; overflow-y: auto;
  border-inline-end: 1px solid var(--line); box-shadow: var(--shadow-sm); z-index: 100;
}
.panel-sidebar .ps-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.panel-sidebar .ps-logo img { height: 28px; display: inline-block; }
.panel-sidebar .ps-logo span { font-weight: 800; font-size: 1.1rem; color: var(--navy); }

.ps-profile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-bottom: 24px; padding: 20px 12px; background: linear-gradient(135deg, var(--surface) 0%, var(--cream) 100%);
  border-radius: var(--r-md); border: 1px solid var(--line);
}
.ps-profile .psp-avatar {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--orange); margin-bottom: 10px; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.ps-profile .psp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ps-profile .psp-avatar svg { width: 36px; height: 36px; color: var(--muted); display: inline-block; }
.ps-profile .psp-name { font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: 2px; }
.ps-profile .psp-role { font-size: .78rem; color: var(--muted); }

.ps-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ps-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: var(--r-sm); font-weight: 600; font-size: .88rem; color: var(--muted);
  text-decoration: none; transition: all .2s;
}
.ps-nav a:hover { background: var(--cream); color: var(--navy); }
.ps-nav a.active { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.ps-nav a .ic { width: 20px; height: 20px; opacity: .7; display: inline-block; flex-shrink: 0; }
.ps-nav a.active .ic { opacity: 1; }

.ps-logout {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: var(--r-sm); font-weight: 600; font-size: .88rem; color: var(--danger);
  border: none; background: none; cursor: pointer; margin-top: auto; width: 100%;
  text-align: start; transition: all .2s;
}
.ps-logout:hover { background: var(--danger-bg); }

/* Main content */
.panel-main { padding: 28px 32px; overflow-y: auto; min-height: 100vh; }
.panel-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 16px;
}
.panel-topbar .ptb-search {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border-radius: var(--r-md); padding: 10px 18px; flex: 1; max-width: 400px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.panel-topbar .ptb-search input {
  border: none; outline: none; background: none; font-size: .88rem;
  color: var(--navy); width: 100%; font-family: inherit;
}
.panel-topbar .ptb-search .ic { color: var(--muted); width: 18px; height: 18px; display: inline-block; }
.panel-topbar .ptb-actions { display: flex; align-items: center; gap: 12px; }
.ptb-icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; transition: all .2s;
}
.ptb-icon-btn:hover { background: var(--cream); border-color: var(--orange); }
.ptb-icon-btn .ic { width: 20px; height: 20px; color: var(--muted); display: inline-block; }
.ptb-icon-btn .badge-dot {
  position: absolute; top: 8px; inset-inline-end: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--orange); border: 2px solid var(--surface);
}

/* Stat cards row */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border-radius: var(--r-md); padding: 20px; display: flex;
  align-items: center; gap: 16px; border: 1px solid var(--line);
  transition: all .25s; cursor: default;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .sc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card .sc-icon .ic { width: 24px; height: 24px; display: inline-block; }
.stat-card .sc-num { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat-card .sc-lbl { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.stat-card .sc-sub { font-size: .72rem; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.stat-card .sc-sub .up { color: var(--success); }
.stat-card .sc-sub .down { color: var(--danger); }

/* Content grid */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.content-grid.triple { grid-template-columns: 1fr 1fr 1fr; }
.content-grid .span-2 { grid-column: span 2; }

/* Modern card */
.m-card {
  background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line);
  overflow: hidden; transition: all .25s;
}
.m-card:hover { box-shadow: var(--shadow-sm); }
.m-card-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.m-card-hd h4 { font-size: .92rem; font-weight: 700; color: var(--navy); margin: 0; display: flex; align-items: center; gap: 8px; }
.m-card-hd h4 .ic { width: 20px; height: 20px; color: var(--orange); display: inline-block; }
.m-card-bd { padding: 18px 22px; }

/* Patient row in appointment list */
.patient-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.patient-row:last-child { border-bottom: none; }
.patient-row .pr-avatar {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: #fff; flex-shrink: 0;
}
.patient-row .pr-info { flex: 1; min-width: 0; }
.patient-row .pr-name { font-weight: 700; font-size: .85rem; color: var(--navy); }
.patient-row .pr-meta { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.patient-row .pr-badge { flex-shrink: 0; }
.patient-row .pr-badge .badge { font-size: .7rem; padding: 4px 10px; }

/* Donut chart modern */
.donut-modern { position: relative; width: 180px; height: 180px; margin: 0 auto; }
.donut-modern svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-modern circle {
  fill: none; stroke-width: 20; stroke-linecap: round;
  transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1);
}
.donut-modern .dm-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.donut-modern .dm-val { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.donut-modern .dm-lbl { font-size: .72rem; color: var(--muted); }

/* Modern bar chart */
.modern-bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 10px; }
.modern-bars .mb-bar {
  flex: 1; border-radius: 8px 8px 4px 4px; position: relative;
  transition: height .6s cubic-bezier(.34,1.56,.64,1); cursor: pointer;
  min-height: 4px;
}
.modern-bars .mb-bar:hover { filter: brightness(1.08); }
.modern-bars .mb-bar .mb-val {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; font-weight: 700; color: var(--navy); white-space: nowrap;
  opacity: 0; transition: opacity .3s;
}
.modern-bars .mb-bar:hover .mb-val { opacity: 1; }
.modern-bars .mb-lbl {
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; color: var(--muted); white-space: nowrap;
}

/* H-Progress bar */
.h-progress { margin-bottom: 16px; }
.h-progress .hp-head { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 6px; }
.h-progress .hp-head span:first-child { font-weight: 600; color: var(--navy); }
.h-progress .hp-head span:last-child { color: var(--muted); }
.h-progress .hp-track {
  height: 8px; background: var(--line); border-radius: 6px; overflow: hidden;
}
.h-progress .hp-fill {
  height: 100%; border-radius: 6px; transition: width .8s cubic-bezier(.4,0,.2,1);
}

/* Appointment request card */
.appt-request {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  border-radius: var(--r-sm); background: var(--cream); margin-bottom: 10px;
  border: 1px solid var(--line); transition: all .2s;
}
.appt-request:hover { background: var(--surface); box-shadow: var(--shadow-sm); }
.appt-request .ar-avatar {
  width: 44px; height: 44px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
  font-size: .9rem; color: #fff; flex-shrink: 0;
}
.appt-request .ar-info { flex: 1; }
.appt-request .ar-name { font-weight: 700; font-size: .85rem; color: var(--navy); }
.appt-request .ar-meta { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.appt-request .ar-actions { display: flex; gap: 6px; }
.appt-request .ar-actions button { padding: 6px 14px; font-size: .78rem; border-radius: 8px; }

/* Calendar mini */
.cal-mini { text-align: center; }
.cal-mini .cal-month { font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 10px; }
.cal-mini table { width: 100%; border-collapse: collapse; }
.cal-mini th { font-size: .68rem; color: var(--muted); font-weight: 600; padding: 6px 0; }
.cal-mini td { font-size: .78rem; padding: 6px 0; color: #5a6b80; }
.cal-mini td.today { background: var(--orange); color: #fff; border-radius: 8px; font-weight: 700; }
.cal-mini td.empty { color: transparent; }

/* Responsive */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .content-grid.triple { grid-template-columns: 1fr; }
  .content-grid .span-2 { grid-column: span 1; }
}
@media (max-width: 768px) {
  .panel-app { grid-template-columns: 1fr; }
  .panel-sidebar {
    position: fixed; inset-inline-start: -280px; width: 260px; height: 100vh;
    border-radius: 0 var(--r-lg) var(--r-lg) 0; transition: inset-inline-start .3s; z-index: 1000;
    border-inline-end: 1px solid var(--line);
  }
  .panel-sidebar.open { inset-inline-start: 0; }
  .panel-main { padding: 16px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}

.svc-thumb { height: 150px; padding: 0; overflow: hidden; display: block; position: relative; background: var(--cream-deep); }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc-thumb .flag { position: absolute; top: 12px; inset-inline-start: 12px; }
.svc-off { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,31,58,.55); color: #fff; font-weight: 800; backdrop-filter: blur(2px); }
.pkg-img { height: 140px; border-start-start-radius: var(--r-lg); border-start-end-radius: var(--r-lg); overflow: hidden; }
.hero-illus { width: 100%; max-width: 520px; margin-inline: auto; filter: drop-shadow(0 24px 50px rgba(11,31,58,.16)); }

.brand img.logo-word { height: 30px; width: auto; border-radius: 0; }
.ft-brand img.logo-word-light { height: 28px; width: auto; }

.hero { position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; top: -30%; inset-inline-end: -12%;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 106, 0, .17), transparent 62%);
  animation: blobA 11s ease-in-out infinite alternate; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -35%; inset-inline-start: -10%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(11, 31, 58, .10), transparent 62%);
  animation: blobB 13s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes blobA { to { transform: translate(-70px, 50px) scale(1.18); } }
@keyframes blobB { to { transform: translate(60px, -45px) scale(1.12); } }

body.rv-on .rv { opacity: 0; transform: translateY(32px); transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
body.rv-on .rv.in-view { opacity: 1; transform: none; }
body.rv-on .rv[data-delay="1"] { transition-delay: .1s; }
body.rv-on .rv[data-delay="2"] { transition-delay: .2s; }
body.rv-on .rv[data-delay="3"] { transition-delay: .3s; }
body.rv-on .rv[data-delay="4"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { body.rv-on .rv { transition: none; opacity: 1; transform: none; } }

.hs { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.hs-track { display: flex; transition: transform .75s cubic-bezier(.22, 1, .36, 1); }
.hs-slide { min-width: 100%; position: relative; }
.hs-slide img { width: 100%; display: block; aspect-ratio: 10 / 8; object-fit: cover; }
.hs-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 46px 24px 20px;
  background: linear-gradient(0deg, rgba(11, 31, 58, .88), rgba(11, 31, 58, 0));
  color: #fff; font-weight: 800; font-size: 1.06rem;
  display: flex; align-items: flex-end; gap: 10px;
}
.hs-cap small { display: block; font-weight: 500; font-size: .8rem; color: #C7D3E4; margin-top: 2px; }
.hs-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 2; }
.hs-dot { width: 9px; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .55); border: none; cursor: pointer; padding: 0; transition: all .35s ease; }
.hs-dot.on { width: 28px; background: #fff; }
.hs-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); border: none; color: var(--navy);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md);
  opacity: 0; transition: opacity .3s ease, transform .3s ease;
}
.hs:hover .hs-nav, .hs:focus-within .hs-nav { opacity: 1; }
.hs-nav:hover { transform: translateY(-50%) scale(1.08); }
.hs-prev { inset-inline-start: 14px; }
.hs-next { inset-inline-end: 14px; }

.site-banner { display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); }
.site-banner img { width: 100%; display: block; }

.band { background: linear-gradient(120deg, #0B1F3A, #16305A, #3A1D05, #0B1F3A); background-size: 300% 300%; animation: gradShift 10s ease infinite; }
@keyframes gradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.art-img { margin-block: 22px; }
.art-img img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-md); }
.art-img figcaption { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 8px; }

#ae-cover-preview { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin-top: 8px; border: 1px solid var(--line); }
.svc-manage-row { align-items: center; }
.badge-custom { background: rgba(22, 48, 90, .12); color: var(--navy-2); }
.staff-activity .tl-title small { font-weight: 500; color: var(--muted); }
.profile-mini { display: flex; gap: 14px; align-items: center; }
.profile-mini .avatar { width: 54px; height: 54px; font-size: 1.2rem; }

.hero-copy > * { animation: heroUp .85s cubic-bezier(.16, 1, .3, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .25s; }
.hero-copy > *:nth-child(4) { animation-delay: .35s; }
.hero-copy > *:nth-child(5) { animation-delay: .45s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.grad-text {
  background: linear-gradient(90deg, #FF6A00, #FFB347, #FF8A2A, #FF6A00);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 5s linear infinite;
}

.hero-visual { position: relative; perspective: 1100px; }
.hs-glow {
  position: absolute; inset: -9% -7%;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 106, 0, .30), transparent 46%),
    radial-gradient(circle at 80% 78%, rgba(22, 48, 90, .30), transparent 48%);
  filter: blur(26px);
  animation: glowDrift 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glowDrift {
  0% { transform: translate(0, 0) scale(1); opacity: .85; }
  100% { transform: translate(26px, -22px) scale(1.1); opacity: 1; }
}
.hs-ring {
  position: absolute; top: -46px; inset-inline-start: -46px;
  width: 150px; height: 150px; border-radius: 50%;
  border: 2.5px dashed rgba(255, 106, 0, .55);
  animation: spinSlow 22s linear infinite;
  pointer-events: none;
}
.hs-ring::after {
  content: ""; position: absolute; top: -7px; inset-inline-start: calc(50% - 7px);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 6px rgba(255, 106, 0, .18);
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.hs { transform-style: preserve-3d; transition: transform .25s ease-out; }

.float-card {
  position: absolute; z-index: 3;
  display: flex; gap: 11px; align-items: center;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(231, 221, 206, .9);
  border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  animation: floatY 5s ease-in-out infinite;
}
.fcard-1 { top: 26px; inset-inline-end: -20px; animation-delay: .6s; }
.fcard-2 { bottom: 34px; inset-inline-start: -24px; animation-delay: 1.4s; }
@media (max-width: 1020px) { .float-card { display: none; } .hs-ring { display: none; } }

/* Charts */
.chart-container { position: relative; width: 100%; overflow-x: auto; }
.chart-container canvas { border-radius: var(--r-md); }

/* Notification badge */
.notif-badge { position: relative; }
.notif-badge .badge-count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  background: var(--danger); color: #fff; font-size: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 2px solid var(--surface);
}

/* Review stars */
.star-rating { display: inline-flex; gap: 2px; }
.star-rating .star { cursor: pointer; font-size: 20px; color: var(--line-strong); transition: color .15s; }
.star-rating .star.active { color: #FBBF24; }

/* Mobile hamburger menu */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 0; inset-inline-end: 0;
    width: 280px; height: 100vh; background: var(--surface);
    box-shadow: var(--shadow-lg); z-index: 1000;
    flex-direction: column; padding: 80px 20px 20px;
    border-radius: 0 0 0 var(--r-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: var(--r-sm); font-size: 1rem; }
  .nav-links a:hover { background: var(--cream); }
  .hd-actions { display: none; }
  .menu-btn { display: flex !important; }
  .panel-layout { grid-template-columns: 1fr !important; }
  .panel-layout aside { display: none; }
  .panel-layout aside.show { display: block; position: fixed; top: 0; inset-inline-end: 0;
    width: 280px; height: 100vh; background: var(--surface);
    box-shadow: var(--shadow-lg); z-index: 1000; padding: 80px 16px 16px;
    overflow-y: auto; }
  .side-nav { border-radius: 0 !important; }
  .grid.g-2, .grid.g-3, .grid.g-4 { grid-template-columns: 1fr !important; }
  .form-grid { grid-template-columns: 1fr !important; }
  .bcol { min-width: 280px !important; }
  .qcard { padding: 10px !important; }
  .stat-tile { padding: 12px !important; }
  .stat-num { font-size: 1.1rem !important; }
  .hero-copy h1 { font-size: 1.5rem !important; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-visual { display: none; }
  .bnav { display: flex !important; }
  .container { padding-inline: 16px; padding-inline-end: 16px; }
  section.card { margin-bottom: 12px; }
  .list-row { flex-wrap: wrap; gap: 8px; }
  .modal { width: 95% !important; max-width: 95% !important; }
  .modal-bd { padding: 16px !important; }
  .ft-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .hero-copy h1 { font-size: 1.25rem !important; }
  .stat-tile { padding: 10px !important; }
  .btn { padding: 8px 14px !important; font-size: .85rem !important; }
  .card-pad { padding: 14px !important; }
}

/* Bottom nav for mobile */
.bnav {
  display: none; position: fixed; bottom: 0; inset-inline: 0;
  background: var(--surface); border-top: 1px solid var(--line);
  z-index: 900; padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.bnav-inner { display: flex; justify-content: space-around; }
.bnav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; font-size: .7rem; color: var(--muted);
  text-decoration: none; border-radius: var(--r-sm);
}
.bnav a.active, .bnav a:hover { color: var(--orange); }
.bnav a svg { width: 20px; height: 20px; }

/* Sidebar mobile toggle */
.sidebar-toggle {
  display: none; position: fixed; bottom: 70px; inset-inline-end: 16px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: #fff; border: none;
  box-shadow: var(--shadow-md); z-index: 950;
  align-items: center; justify-content: center; cursor: pointer;
}
@media (max-width: 768px) { .sidebar-toggle { display: flex; } }

/* Toast mobile */
@media (max-width: 480px) {
  #toast-root { inset-inline-start: 10px; inset-inline-end: 10px; bottom: 70px; }
  .toast { font-size: .85rem; }
}

/* ===== Modern CSS Charts ===== */

/* Animated Bar Chart */
.css-chart { display: flex; align-items: flex-end; gap: 12px; padding: 20px 0; min-height: 200px; }
.css-chart .bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.css-chart .bar {
  width: 100%; max-width: 56px; border-radius: 8px 8px 4px 4px;
  position: relative; transition: height .6s cubic-bezier(.34,1.56,.64,1);
  cursor: pointer; min-height: 4px;
}
.css-chart .bar:hover { filter: brightness(1.1); transform: scaleX(1.08); }
.css-chart .bar-val {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  font-size: .78rem; font-weight: 700; color: var(--navy); white-space: nowrap;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.css-chart .bar:hover .bar-val { opacity: 1; }
.css-chart .bar-lbl { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.3; max-width: 70px; }

/* Donut Chart */
.donut-chart { position: relative; width: 160px; height: 160px; margin: 0 auto; }
.donut-chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-chart circle {
  fill: none; stroke-width: 18; stroke-linecap: round;
  transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1);
}
.donut-chart .donut-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.donut-chart .donut-val { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.donut-chart .donut-lbl { font-size: .72rem; color: var(--muted); }

/* Progress Ring */
.progress-ring { position: relative; width: 80px; height: 80px; }
.progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.progress-ring .ring-bg { stroke: var(--cream); }
.progress-ring .ring-fill { transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1); }
.progress-ring .ring-center {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: var(--navy);
}

/* Horizontal Bar */
.h-bar-group { margin-bottom: 14px; }
.h-bar-label { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 5px; }
.h-bar-label span:first-child { color: var(--navy); font-weight: 600; }
.h-bar-label span:last-child { color: var(--muted); }
.h-bar-track { height: 10px; background: var(--cream); border-radius: 6px; overflow: hidden; }
.h-bar-fill {
  height: 100%; border-radius: 6px; transition: width .8s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.h-bar-fill::after {
  content: ''; position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Stat Card with Icon */
.stat-card-icon {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border-radius: var(--r-md); background: var(--white);
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.stat-card-icon:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card-icon .sci-icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card-icon .sci-num { font-size: 1.4rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat-card-icon .sci-lbl { font-size: .78rem; color: var(--muted); margin-top: 2px; }

/* Mini Sparkline */
.sparkline { display: flex; align-items: flex-end; gap: 2px; height: 32px; }
.sparkline .sp-bar {
  flex: 1; border-radius: 2px; transition: height .4s cubic-bezier(.34,1.56,.64,1);
  min-width: 4px;
}

/* Dashboard Section */
.dash-section { margin-bottom: 24px; }
.dash-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.dash-section-head h3 {
  font-size: 1rem; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 8px; margin: 0;
}

/* Doctor Quick Card */
.doc-quick-card {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: var(--r-md); background: var(--white);
  box-shadow: var(--shadow-sm); transition: all .2s; cursor: pointer;
  border: 2px solid transparent;
}
.doc-quick-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); }
.doc-quick-card .dqc-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; color: var(--white); flex-shrink: 0;
}
.doc-quick-card .dqc-info { flex: 1; min-width: 0; }
.doc-quick-card .dqc-name { font-weight: 700; font-size: .9rem; color: var(--navy); }
.doc-quick-card .dqc-meta { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.doc-quick-card .dqc-badge { flex-shrink: 0; }

/* Animated Counter */
.anim-num { display: inline-block; transition: all .3s; }

/* Chart Legend */
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; justify-content: center; }
.chart-legend-item { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Card hover lift */
.card-lift { transition: transform .2s, box-shadow .2s; }
.card-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Pulse animation for live indicators */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  display: inline-block; position: relative;
}
.live-dot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--success); animation: livePulse 1.5s infinite;
}
@keyframes livePulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(2); } }

/* Donut Legend */
.donut-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.donut-legend-item { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.donut-legend-color { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.donut-legend-label { color: var(--navy); font-weight: 500; flex: 1; }
.donut-legend-val { color: var(--muted); font-weight: 600; }
