/* =====================================================================
   DNHTI — Dr. Nasir's Hair Transplant Institute
   Shared design system (public site, trainee portal, admin dashboard)
   ===================================================================== */

:root {
  --navy:      #062632;
  --navy-2:    #0c3b4b;
  --navy-3:    #125066;
  --teal:      #12b3c6;
  --teal-dark: #0b8fa0;
  --teal-soft: #e3f6f9;
  --gold:      #c9a24b;
  --gold-dark: #a9822f;
  --gold-soft: #f7efdc;
  --ink:       #1e2d33;
  --gray:      #5c6c73;
  --gray-light:#96a4aa;
  --card:      #f4f8f9;
  --bg:        #ffffff;
  --line:      #e3ebee;
  --white:     #ffffff;
  --danger:    #c0392b;
  --ok:        #1e8e5a;
  --warn:      #b8860b;
  --info:      #2b6cb0;
  --max-w:     1160px;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 18px 44px rgba(6, 38, 50, 0.10);
  --shadow-sm: 0 6px 18px rgba(6, 38, 50, 0.07);
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --grad-brand: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 60%, var(--teal-dark) 130%);
  --grad-gold:  linear-gradient(120deg, var(--gold) 0%, #e0bd6e 55%, var(--gold) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.22;
  font-weight: 700;
}
p { margin: 0 0 1em; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; }
code {
  background: var(--card); padding: 2px 7px; border-radius: 5px;
  font-size: 0.92em; color: var(--navy-3);
}
hr.sep { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--gray); }
.small { font-size: 13px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.flex { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--teal); color: #fff !important;
  padding: 12px 26px; border-radius: 8px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  font-size: 15px; font-family: inherit; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { background: var(--grad-gold); color: var(--navy) !important; }
.btn-gold:hover { background: var(--gold-dark); color: #fff !important; }
.btn-outline { background: transparent; border: 1.5px solid var(--teal); color: var(--teal-dark) !important; }
.btn-outline:hover { background: var(--teal-soft); color: var(--navy) !important; }
.btn-light { background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.45); color: #fff !important; }
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); }
.link-btn {
  background: none; border: none; color: var(--teal-dark); cursor: pointer;
  font-family: inherit; font-size: inherit; text-decoration: underline; padding: 0;
}

/* ---------- Header ---------- */
.topbar {
  background: var(--navy); color: #bcd0d6; font-size: 13px;
  padding: 8px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #dcebea; }
.topbar a:hover { color: #fff; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; margin-right: 18px; }
.topbar .tb-item svg { opacity: .85; }
.topbar .tb-right { display: flex; align-items: center; gap: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 13px; padding-bottom: 13px; }
.site-header .logo { height: 44px; display: block; }
.site-header nav { display: flex; gap: 4px; align-items: center; }
.site-header nav a {
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14.5px;
  padding: 8px 13px; border-radius: 7px; transition: background .15s, color .15s;
}
.site-header nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.site-header nav a.btn { padding: 10px 20px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.menu-toggle svg { display: block; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-switch select {
  appearance: none; -webkit-appearance: none;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--navy); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: 8px 30px 8px 12px; cursor: pointer;
}
.lang-switch::after {
  content: "▾"; position: absolute; right: 11px; top: 50%;
  transform: translateY(-50%); color: var(--navy); pointer-events: none; font-size: 12px;
}
.topbar .lang-switch select {
  background: rgba(255,255,255,.08); color: #eaf4f5;
  border-color: rgba(255,255,255,.25); padding: 4px 26px 4px 10px; font-size: 12.5px;
}
.topbar .lang-switch::after { color: #eaf4f5; right: 9px; }
.lang-switch option { color: var(--navy); background: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--grad-brand);
  color: var(--white);
  padding: 96px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -140px; top: -180px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,179,198,.28), transparent 65%);
}
.hero::after {
  content: ""; position: absolute; left: -120px; bottom: -220px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,.22), transparent 65%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-weight: 800; letter-spacing: 2.2px;
  font-size: 12.5px; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero h1 { color: #fff; font-size: 46px; max-width: 640px; margin-bottom: 18px; }
.hero p.lead { color: #c9dcdf; font-size: 17.5px; max-width: 560px; }
.hero .cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .trust-line {
  margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap;
  color: #a9c3c9; font-size: 13px; font-weight: 600;
}
.hero .trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.hero .trust-line svg { color: var(--gold); }

.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 34px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 21px; }
.hero-card .hc-list { list-style: none; padding: 0; margin: 18px 0 0; }
.hero-card .hc-list li {
  padding: 9px 0 9px 30px; position: relative;
  color: #d7e6e8; font-size: 14.5px; border-bottom: 1px dashed rgba(255,255,255,.14);
}
.hero-card .hc-list li::before {
  content: "✓"; position: absolute; left: 2px; top: 9px;
  color: var(--gold); font-weight: 800;
}
.hero-card .hc-list li:last-child { border-bottom: none; }
.hero-card .btn { margin-top: 22px; }

/* Stats band */
.stats-band { background: var(--navy-2); color: #fff; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.08); }
.stats-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.stat .lbl { font-size: 13.5px; color: #b9cdd2; margin-top: 6px; font-weight: 600; letter-spacing: .4px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--card); }
section.navy-section { background: var(--navy); color: #d7e4e7; }
section.navy-section h2, section.navy-section h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: 36px; }
.section-head p { color: var(--gray); font-size: 16px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card.flat { background: var(--card); border: none; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: 14.5px; margin-bottom: 0; }
.card .icon-badge {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--teal-soft); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .icon-badge svg { width: 26px; height: 26px; }
.card ul.list-check { list-style: none; padding: 0; margin: 12px 0 0; }
.card ul.list-check li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: 14.5px; color: var(--gray); }
.card ul.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 800; }

/* ---------- Trainer ---------- */
.trainer {
  display: grid; grid-template-columns: 300px 1fr; gap: 52px; align-items: start;
}
.trainer .portrait {
  background: var(--grad-brand);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.trainer .portrait svg { width: 130px; height: 130px; color: rgba(255,255,255,.85); }
.trainer .portrait::after {
  content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(255,255,255,.35); border-radius: 10px;
}
.trainer .credentials { color: var(--teal-dark); font-weight: 800; margin-bottom: 16px; font-size: 14px; letter-spacing: .3px; }
.trainer ul { padding-left: 20px; }
.trainer li { margin-bottom: 11px; color: var(--ink); }
.trainer .sig { margin-top: 22px; color: var(--gray); font-size: 13.5px; }

/* ---------- Price / programme ---------- */
.price-card {
  background: var(--grad-brand);
  color: var(--white); border-radius: var(--radius);
  padding: 40px; position: relative; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,.35), transparent 70%);
}
.price-card .tag {
  display: inline-block; background: var(--grad-gold); color: var(--navy);
  font-weight: 800; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 7px 18px; border-radius: 30px; margin-bottom: 20px; position: relative; z-index: 1;
}
.price-card .amount { font-family: var(--font-head); font-size: 52px; color: var(--gold); font-weight: 700; margin: 6px 0 2px; }
.price-card .fine { color: #a9c3c9; font-size: 13px; font-style: italic; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 0; position: relative; z-index: 1; }
.price-card li { padding-left: 26px; position: relative; margin-bottom: 11px; color: #d7e6e8; font-size: 14.5px; }
.price-card li::before { content: "✓"; color: var(--gold); position: absolute; left: 2px; font-weight: 800; }

.opt-card { text-align: center; }
.opt-card .amount { font-family: var(--font-head); font-size: 34px; color: var(--navy); font-weight: 700; margin: 8px 0 2px; }
.opt-card .per { color: var(--gray-light); font-size: 13px; }

/* ---------- Curriculum timeline ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--teal), var(--gold));
  border-radius: 2px;
}
.tl-item { position: relative; margin-bottom: 34px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item .dot {
  position: absolute; left: -40px; top: 4px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.tl-item .dot span { font-size: 11px; font-weight: 800; color: var(--teal-dark); }
.tl-item h3 { font-size: 19px; margin-bottom: 4px; }
.tl-item .tl-when { color: var(--gold-dark); font-weight: 700; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 8px; }
.tl-item ul { margin: 8px 0 0; padding-left: 20px; }
.tl-item li { margin-bottom: 6px; color: var(--gray); font-size: 14.5px; }

/* ---------- Partnership (Hair Club) ---------- */
.partnership {
  background: var(--grad-brand);
  border-radius: var(--radius);
  color: #fff; padding: 54px; position: relative; overflow: hidden;
}
.partnership::after {
  content: ""; position: absolute; right: -90px; bottom: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,179,198,.3), transparent 70%);
}
.partnership h2 { color: #fff; font-size: 34px; }
.partnership p { color: #c9dcdf; }
.partnership .hc-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.partnership .hc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; position: relative; z-index: 1; }
.partnership .hc-facts { list-style: none; padding: 0; margin: 0; }
.partnership .hc-facts li {
  display: flex; gap: 14px; padding: 12px 0; align-items: flex-start;
  border-bottom: 1px dashed rgba(255,255,255,.18); color: #d7e6e8; font-size: 15px;
}
.partnership .hc-facts li:last-child { border-bottom: none; }
.partnership .hc-facts svg { flex: none; color: var(--gold); margin-top: 2px; }
.hc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,162,75,.16); border: 1px solid rgba(201,162,75,.5);
  color: var(--gold); border-radius: 30px; padding: 7px 18px;
  font-weight: 700; font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 18px;
}

/* ---------- Steps (referral etc.) ---------- */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-gold); color: var(--navy); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.step p { margin: 0; color: var(--gray); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 14px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 15.5px;
  color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--teal); font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--gray); font-size: 14.5px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
label { font-size: 13.5px; font-weight: 700; color: var(--navy); }
label .req { color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="date"], input[type="time"], input[type="url"],
select, textarea {
  font-family: inherit; font-size: 15px;
  padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: 8px;
  color: var(--ink); background: var(--bg); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18,179,198,.14);
}
textarea { resize: vertical; min-height: 100px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--teal); width: 17px; height: 17px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input { margin-top: 3px; }
.check-row label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.check-row .hint { font-size: 12.5px; color: var(--gray-light); font-weight: 400; display: block; }
.form-help { font-size: 12.5px; color: var(--gray-light); margin-top: 4px; }
.form-status { margin-top: 16px; font-size: 14.5px; font-weight: 700; display: none; }
.form-status.ok { display: block; color: var(--ok); }
.form-status.err { display: block; color: var(--danger); }

/* ---------- Tables ---------- */
.table-wrap { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data-table th {
  text-align: left; background: var(--navy); color: #fff; font-size: 12px;
  text-transform: uppercase; letter-spacing: .6px; padding: 13px 16px; white-space: nowrap;
}
table.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tbody tr:hover { background: var(--card); }
table.data-table tr.clickable { cursor: pointer; }
.empty-state { padding: 52px; text-align: center; color: var(--gray-light); }
.empty-state svg { opacity: .4; margin-bottom: 10px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 30px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .3px; white-space: nowrap;
}
.badge-New { background: #e8f0ff; color: #2456b3; }
.badge-Contacted { background: #fff3d9; color: #96630a; }
.badge-Enrolled { background: #e2f7ec; color: #147a4d; }
.badge-Lost { background: #fbe9e7; color: #a33327; }
.badge-Pending { background: #fff3d9; color: #96630a; }
.badge-Approved { background: #e2f7ec; color: #147a4d; }
.badge-Suspended { background: #fbe9e7; color: #a33327; }
.badge-Registered { background: #e8f0ff; color: #2456b3; }
.badge-Confirmed { background: #e2f7ec; color: #147a4d; }
.badge-In\ Progress { background: #fff3d9; color: #96630a; }
.badge-InProgress { background: #fff3d9; color: #96630a; }
.badge-Completed { background: #e2f7ec; color: #147a4d; }
.badge-Cancelled { background: #fbe9e7; color: #a33327; }
.badge-Paid { background: #e2f7ec; color: #147a4d; }
.badge-Partial { background: #fff3d9; color: #96630a; }
.badge-Pending\ Payment { background: #fbe9e7; color: #a33327; }
.badge-Not\ Required { background: #e8f0ff; color: #2456b3; }
.badge-Not\ Started { background: #eef1f3; color: #5c6c73; }
.badge-Documents\ Submitted { background: #fff3d9; color: #96630a; }
.badge-Under\ Review { background: #f3e9ff; color: #6b3fa0; }
.badge-ApprovedV { background: #e2f7ec; color: #147a4d; }
.badge-Rejected { background: #fbe9e7; color: #a33327; }
.badge-Visa\ Arrived { background: #e2f7ec; color: #147a4d; }
.badge-Issued { background: #e2f7ec; color: #147a4d; }
.badge-Eligible { background: #fff3d9; color: #96630a; }
.badge-Not\ Eligible { background: #eef1f3; color: #5c6c73; }
.badge-ApprovedDoc { background: #e2f7ec; color: #147a4d; }
.badge-RejectedDoc { background: #fbe9e7; color: #a33327; }
.badge-PendingDoc { background: #fff3d9; color: #96630a; }

/* ---------- Modal ---------- */
.modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(6,38,50,.55);
  align-items: flex-start; justify-content: center; z-index: 120;
  padding: 40px 20px; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg); border-radius: var(--radius); max-width: 640px; width: 100%;
  padding: 34px; box-shadow: var(--shadow); margin: auto 0; position: relative;
}
.modal.lg { max-width: 860px; }
.modal h2, .modal h3 { margin-top: 0; }
.modal .close-btn {
  position: absolute; top: 14px; right: 18px; background: none; border: none;
  font-size: 26px; cursor: pointer; color: var(--gray-light); line-height: 1;
}
.modal .close-btn:hover { color: var(--navy); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin: 18px 0; }
.detail-grid .field-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--gray-light); margin-bottom: 2px; font-weight: 700; }
.detail-grid .field-value { font-size: 14.5px; color: var(--ink); }
.detail-grid .full { grid-column: 1 / -1; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; margin: 26px 0 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab-btn {
  background: none; border: none; font-family: inherit; font-size: 14.5px; font-weight: 700;
  color: var(--gray); padding: 11px 18px; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--teal); }

/* ---------- Toast ---------- */
#toast-root { position: fixed; bottom: 26px; right: 26px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--navy); color: #fff; border-radius: 10px;
  padding: 14px 20px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center;
  animation: toast-in .25s ease;
  max-width: 380px;
}
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }
.toast svg { flex: none; }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #9db4ba; padding: 56px 0 30px; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 34px; }
footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; font-family: var(--font-body); letter-spacing: .4px; }
footer a { color: #c4d6da; }
footer a:hover { color: var(--gold); }
footer .col { max-width: 300px; }
footer .col p { margin-bottom: 8px; }
footer .col .f-contact li { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
footer .col .f-contact svg { flex: none; margin-top: 3px; color: var(--teal); }
footer .legal { margin-top: 40px; font-size: 12.5px; color: #6e878e; border-top: 1px solid #17414f; padding-top: 22px; }
footer .legal .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Portal / dashboard shared ---------- */
.app-topbar {
  background: var(--grad-brand); color: #fff; padding: 12px 0; position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.app-topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-topbar .logo { height: 32px; }
.app-topbar .who { font-size: 13.5px; color: #c9dcdf; }
.app-topbar .right { display: flex; align-items: center; gap: 14px; }
.app-topbar .lang-switch select { background: rgba(255,255,255,.08); color: #eaf4f5; border-color: rgba(255,255,255,.25); padding: 5px 26px 5px 10px; font-size: 12.5px; }
.app-topbar .lang-switch::after { color: #eaf4f5; right: 9px; }

.app-body { display: flex; gap: 28px; align-items: flex-start; padding: 30px 0 60px; }
.app-side { width: 250px; flex: none; position: sticky; top: 90px; }
.app-side .side-nav { display: flex; flex-direction: column; gap: 4px; }
.app-side .side-nav button {
  display: flex; align-items: center; gap: 11px; text-align: left;
  background: none; border: none; font-family: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--gray); padding: 11px 14px; border-radius: 9px; cursor: pointer; width: 100%;
}
.app-side .side-nav button svg { width: 19px; height: 19px; flex: none; }
.app-side .side-nav button:hover { background: var(--card); color: var(--navy); }
.app-side .side-nav button.active { background: var(--navy); color: #fff; }
.app-side .side-nav button .nav-dot { margin-left: auto; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; border-radius: 20px; padding: 1px 8px; }
.app-main { flex: 1; min-width: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.stat-card .k { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--gray-light); font-weight: 800; }
.stat-card .v { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--navy); margin: 6px 0 2px; }
.stat-card .d { font-size: 12.5px; color: var(--gray-light); }
.stat-card.accent { border-top: 3px solid var(--teal); }
.stat-card.gold { border-top: 3px solid var(--gold); }
.stat-card.red { border-top: 3px solid var(--danger); }

.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 20px; margin-bottom: 16px; }
.panel .panel-sub { color: var(--gray); font-size: 14px; margin-bottom: 18px; }

.progress { height: 8px; background: var(--line); border-radius: 20px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad-gold); border-radius: 20px; }

.status-timeline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.status-timeline .st-node {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1.5px solid var(--line); color: var(--gray-light);
  border-radius: 30px; padding: 6px 15px; font-size: 12.5px; font-weight: 700;
}
.status-timeline .st-node.done { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-dark); }
.status-timeline .st-node.now { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.status-timeline .st-arrow { color: var(--gray-light); }

.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.doc-card { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 11px; padding: 16px; }
.doc-card .doc-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; }
.doc-card .doc-ic svg { width: 22px; height: 22px; color: var(--teal-dark); }
.doc-card .doc-meta { flex: 1; min-width: 0; }
.doc-card .doc-name { font-weight: 700; font-size: 14px; color: var(--navy); word-break: break-all; }
.doc-card .doc-sub { font-size: 12.5px; color: var(--gray-light); }
.doc-card .doc-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.todo-list { list-style: none; padding: 0; margin: 0; }
.todo-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.todo-list li:last-child { border-bottom: none; }
.todo-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; margin-top: 7px; }
.todo-list .done .dot { background: var(--ok); }
.todo-list .done .txt { color: var(--gray-light); text-decoration: line-through; }

.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar input, .toolbar select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; width: auto; }

/* ---------- RTL ---------- */
html[dir="rtl"] .eyebrow::before { margin-left: 0; }
html[dir="rtl"] .timeline { padding-left: 0; padding-right: 40px; }
html[dir="rtl"] .timeline::before { left: auto; right: 13px; }
html[dir="rtl"] .tl-item .dot { left: auto; right: -40px; }
html[dir="rtl"] .lang-switch::after { right: auto; left: 11px; }
html[dir="rtl"] .topbar .lang-switch::after { right: auto; left: 9px; }
html[dir="rtl"] .price-card li, html[dir="rtl"] .card ul.list-check li { padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .price-card li::before, html[dir="rtl"] .card ul.list-check li::before { left: auto; right: 2px; }
html[dir="rtl"] .hero-card .hc-list li { padding-left: 0; padding-right: 30px; }
html[dir="rtl"] .hero-card .hc-list li::before { left: auto; right: 2px; }
html[dir="rtl"] .modal .close-btn { right: auto; left: 18px; }
html[dir="rtl"] .app-side .side-nav button { text-align: right; }
html[dir="rtl"] .app-side .side-nav button .nav-dot { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .step .num { flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .partnership .hc-grid { grid-template-columns: 1fr; }
  .app-body { flex-direction: column; }
  .app-side { width: 100%; position: static; }
  .app-side .side-nav { flex-direction: row; flex-wrap: wrap; }
  .app-side .side-nav button { width: auto; }
}
@media (max-width: 860px) {
  .site-header nav { display: none; }
  .site-header nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 14px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu-toggle { display: block; }
  .topbar .tb-item { margin-right: 10px; }
  .hero h1 { font-size: 33px; }
  .section-head h2 { font-size: 28px; }
  .stats-band .wrap { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2-1 { grid-template-columns: 1fr; }
  .trainer { grid-template-columns: 1fr; }
  .trainer .portrait { max-width: 260px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  footer .wrap { flex-direction: column; gap: 26px; }
  .partnership { padding: 36px 26px; }
  .modal-backdrop { padding: 20px 14px; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stats-band .wrap { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
}
