@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Sora:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #111b3c;
  --navy2: #17254c;
  --primary: #0B4DAD;
  --primary-dark: #083a87;
  --purple: #0B4DAD;
  --accent: #38B34A;
  --accent-soft: #e6f4ea;
  --bg: #f4f6fb;
  --card: #fff;
  --ink: #18223f;
  --muted: #7f89a3;
  --line: #e7ebf3;
  --green: #38B34A;
  --red: #e35b6a;
  --amber: #efad4e;
  --blue: #3e88eb;
  --shadow: 0 12px 28px rgba(20, 29, 70, .055);
  --banner-h: 52px;
  --role-guide-h: 48px;
  --school-context-h: 40px;
  --chrome-banner-h: var(--banner-h);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--chrome-banner-h, var(--banner-h)) + var(--role-guide-h) + var(--school-context-h) + 12px);
}
body {
  margin: 0;
  padding-top: var(--chrome-banner-h, var(--banner-h));
  padding-bottom: 72px;
  font-family: "IBM Plex Sans Arabic", Sora, Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #5b9ae8;
  outline-offset: 2px;
}
.shell { max-width: 1480px; margin: auto; padding: 0 20px; }

/* Banner */
.demo-banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  min-height: var(--banner-h);
  background: linear-gradient(90deg, var(--navy) 0%, #0B4DAD 55%, var(--navy2) 100%);
  color: #dce3fa;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 4px 18px #0003;
}
.demo-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 20px;
  min-height: var(--banner-h);
}
.demo-label {
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  color: #fff;
  background: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
}
.demo-disclaimer {
  flex: 1;
  min-width: 140px;
  font-size: 11px;
  line-height: 1.45;
  color: #c5cce6;
  margin: 0;
}
.demo-disclaimer b { color: #fff; }
.demo-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip-btn {
  border: 1px solid #ffffff35;
  background: #ffffff12;
  color: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 11px;
  transition: .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip-btn:hover { background: #ffffff22; }
.chip-btn.accent { background: var(--accent); border-color: #2a9a4a; }
.chip-btn.reset { border-color: #ffb4b4; }
.chip-btn.tour-trigger {
  background: var(--accent-soft) !important;
  color: #1d7a42 !important;
  border-color: #b9dfc4;
}
.chip-btn.tour-trigger:before { content: "\25B6"; font-size: 9px; }

/* Role guide */
.role-guide {
  position: sticky;
  top: var(--chrome-banner-h, var(--banner-h));
  z-index: 90;
  background: linear-gradient(180deg, #e8f1fb 0%, #f6f8fb 100%);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.role-guide-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  flex-wrap: wrap;
  padding: 6px 0;
}
.role-guide-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}
.role-guide-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.role-guide-links button {
  border: 1px solid #d5dee6;
  background: #fff;
  color: #4a6478;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  transition: .2s;
}
.role-guide-links button:hover,
.role-guide-links button.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #e8f1fb;
  box-shadow: 0 2px 8px rgba(11, 77, 173, .12);
}

.school-context {
  position: sticky;
  top: calc(var(--chrome-banner-h, var(--banner-h)) + var(--role-guide-h));
  z-index: 88;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(17, 27, 60, .04);
  flex-shrink: 0;
}
.school-context-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
.school-context-inner .bi { color: var(--primary); font-size: 15px; }

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: calc(100vh - var(--chrome-banner-h, var(--banner-h)) - var(--role-guide-h) - var(--school-context-h));
}
.sidebar {
  background: var(--navy);
  color: #dce3fa;
  position: sticky;
  top: calc(var(--chrome-banner-h, var(--banner-h)) + var(--role-guide-h) + var(--school-context-h));
  height: calc(100vh - var(--chrome-banner-h, var(--banner-h)) - var(--role-guide-h) - var(--school-context-h));
  overflow-y: auto;
  padding: 22px 14px 18px;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 18px;
  border-bottom: 1px solid #2a3860;
}
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  flex-shrink: 0;
  padding: 3px;
  box-shadow: 0 4px 14px #1026381a;
}
.brand strong { display: block; color: #fff; font-size: 17px; letter-spacing: .2px; }
.brand small { display: block; color: #aeb9dc; font-size: 10px; margin-top: 3px; }
.brand .by-ss { display: block; font-size: 9px; color: #8fc4ff; font-weight: 600; margin-top: 2px; }
.nav-cap { font-size: 10px; color: #8191c1; margin: 20px 12px 8px; letter-spacing: 1px; font-weight: 700; }
.nav-btn {
  width: 100%;
  border: 0;
  color: #bfcae9;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: inherit;
  border-radius: 12px;
  padding: 11px 13px;
  background: transparent;
  margin: 3px 0;
  transition: .2s;
  font-weight: 600;
}
html[dir="rtl"] .nav-btn { text-align: right; }
html[dir="ltr"] .nav-btn { text-align: left; }
.nav-btn:hover { background: #27365e; color: #fff; }
.nav-btn.active {
  background: linear-gradient(90deg, #0B4DAD, #1a6fd4);
  color: #fff;
  box-shadow: 0 8px 15px #080d2930;
}
.nav-btn .ico { font-size: 16px; width: 22px; text-align: center; }
.sidebar-foot {
  margin: 28px 6px 4px;
  border: 1px solid #35436e;
  border-radius: 13px;
  padding: 13px;
  color: #a9b7db;
  font-size: 11px;
  line-height: 1.8;
}
.sidebar-foot p { margin: 0 0 10px; }
.foot-actions { display: flex; flex-direction: column; gap: 8px; }
.foot-actions .chip-btn { justify-content: center; }

.main { min-width: 0; background: var(--bg); }
.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 12px;
  position: sticky;
  top: calc(var(--chrome-banner-h, var(--banner-h)) + var(--role-guide-h) + var(--school-context-h));
  z-index: 40;
}
.topbar-start { display: flex; align-items: center; gap: 12px; }
.trail { font-size: 12px; color: var(--muted); }
.trail strong { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.demo-pill {
  padding: 7px 11px;
  border-radius: 100px;
  background: #e8f1fb;
  color: #0B4DAD;
  font-size: 11px;
  font-weight: 800;
}
.avatar {
  height: 37px;
  width: 37px;
  border-radius: 50%;
  background: #e8f1fb;
  color: #0B4DAD;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.select-role {
  max-width: 180px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
.menu-toggle { display: none; }
.content { padding: 26px 28px 50px; max-width: 1480px; margin: auto; }

/* UI atoms */
.btn {
  border: 0;
  background: var(--purple);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.btn:hover { filter: brightness(.94); }
.btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.tiny { font-size: 11px; padding: 7px 11px; }
.btn.accent-cta, .accent-cta {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero {
  border-radius: 22px;
  padding: 30px 34px;
  background: linear-gradient(110deg, #0B4DAD 5%, #083a87 65%, #38B34A 120%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: '✦';
  position: absolute;
  inset-inline-start: 55px;
  top: -68px;
  font-size: 210px;
  color: #ffffff12;
  pointer-events: none;
}
.hero h1 { margin: 0 0 9px; font-size: 27px; line-height: 1.4; }
.hero p { margin: 0; color: #d9d8f6; font-size: 13px; line-height: 1.9; max-width: 600px; }
.hero-kicker { color: #b8d4ff; font-weight: 800; font-size: 11px; margin-bottom: 8px; letter-spacing: .4px; }
.hero-stat { align-self: center; text-align: center; z-index: 1; min-width: 140px; }
.hero-stat b { font-size: 38px; display: block; }
.hero-stat small { font-size: 11px; color: #dfd9ff; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-actions button,
.hero-actions a {
  background: #ffffff22;
  border: 1px solid #ffffff55;
  border-radius: 10px;
  color: #fff;
  padding: 9px 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.hero-actions .hero-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.hero-actions .hero-secondary {
  background: var(--accent);
  border-color: #2a9a4a;
}
.hero-actions .hero-ghost { opacity: .92; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.stat, .panel {
  background: var(--card);
  border: 1px solid #e9edf6;
  border-radius: 17px;
  box-shadow: var(--shadow);
}
.stat {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.stat small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.stat b { font-size: 24px; display: block; }
.stat em { font-style: normal; font-size: 10px; color: var(--green); }
.sicon {
  display: grid;
  place-items: center;
  height: 46px;
  width: 46px;
  border-radius: 14px;
  font-size: 22px;
}
.sicon.purple { background: #e8f1fb; }
.sicon.green { background: #e6faf3; }
.sicon.blue { background: #e9f2ff; }
.sicon.amber { background: #fff3df; }
.sicon .bi { font-size: 22px; line-height: 1; }

.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 16px; }
.panel { padding: 20px; min-width: 0; }
.panel h3 { margin: 0 0 14px; font-size: 15px; }
.panel p { color: var(--muted); line-height: 1.8; font-size: 12px; }
.bars {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 180px;
  border-bottom: 1px solid var(--line);
  padding: 0 8px;
}
.bar-col {
  display: flex;
  flex: 1;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.bar {
  width: 100%;
  max-width: 48px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(#3d8ae0, #0B4DAD);
  min-height: 9px;
}
.progress-item { margin: 18px 0; }
.progress-line { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.track { height: 8px; border-radius: 30px; background: #edf0f7; overflow: hidden; }
.fill { height: 100%; background: var(--purple); border-radius: 30px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 14px; }
.section-head h2 { margin: 0; font-size: 18px; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick .q {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
  background: #fff;
  text-align: center;
  color: var(--ink);
  font-weight: 800;
}
.quick .q:hover { border-color: var(--purple); }
.quick .q span { display: block; font-size: 24px; margin-bottom: 8px; }

.page-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
}
.page-title h1 { font-size: 24px; margin: 0 0 6px; }
.page-title p { color: var(--muted); margin: 0; font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.field {
  border: 1px solid #dee4f0;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
  background: #fff;
  color: var(--ink);
}
.filters .field { flex: 1; min-width: 160px; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.data-table th {
  text-align: inherit;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  background: #f8f9fd;
}
html[dir="rtl"] .data-table th { text-align: right; }
html[dir="ltr"] .data-table th { text-align: left; }
.data-table td, .data-table th { padding: 13px 11px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }
.empty { text-align: center; padding: 40px; color: var(--muted); }
.pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 90px;
  font-size: 10px;
  font-weight: 800;
  background: #e8f8f2;
  color: #139c77;
}
.pill.warn { background: #fff4e1; color: #ae771d; }
.pill.red { background: #fff0f1; color: #d74d62; }
.pill.blue { background: #e9f1ff; color: #386dc7; }
.grade { font-weight: 800; color: var(--purple); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  padding: 18px;
}
.mini-card h3 { margin: 0 0 8px; font-size: 15px; }
.mini-card p { margin: 7px 0; font-size: 12px; color: var(--muted); }
.mini-card .line { display: flex; justify-content: space-between; margin-top: 16px; align-items: center; gap: 8px; }
.notice {
  border: 1px solid #cce0f5;
  background: #f4f9ff;
  border-radius: 12px;
  color: #1a4a7a;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.timetable {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  overflow-x: auto;
}
.day {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  min-width: 130px;
}
.day h4 { margin: 0 0 12px; }
.lesson {
  padding: 12px 10px;
  background: #edf4fc;
  border-radius: 10px;
  margin: 8px 0;
  font-size: 11px;
  line-height: 1.8;
}
.lesson b { display: block; color: #0B4DAD; }
.muted { color: var(--muted); }
.small-visual { font-size: 40px; text-align: center; padding: 8px; }
.only-text { font-size: 12px; line-height: 1.9; color: var(--muted); }
.content-footer {
  color: #9aa4b9;
  text-align: center;
  font-size: 11px;
  margin: 36px 0 0;
}

/* Modal / toast */
.modal-layer {
  position: fixed;
  inset: 0;
  background: #07102798;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
}
.modal-layer.show { display: flex; }
.modal {
  background: #fff;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 26px;
  border-radius: 20px;
  box-shadow: 0 20px 70px #0003;
}
.modal h2 { margin: 0 0 18px; }
.form-group { margin: 12px 0; }
.form-group label { display: block; font-weight: 800; font-size: 12px; margin-bottom: 8px; }
.form-group .field { width: 100%; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.toast {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;
  background: #17264a;
  color: #fff;
  border-radius: 13px;
  padding: 14px 18px;
  box-shadow: 0 15px 30px #0002;
  display: none;
  z-index: 250;
  max-width: 350px;
}
.toast.show { display: block; }
.mobile-backdrop { display: none; }

/* Footer + FAB */
.site-footer {
  background: #0e1a33;
  color: #ccdae3;
  margin-top: 10px;
  padding: 34px 0 16px;
}
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { border: 0; padding: 0; margin-bottom: 12px; }
.footer-brand strong { color: #fff; }
.site-footer p { font-size: 12px; max-width: 480px; line-height: 1.9; margin: 0; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer-disclaimer {
  background: #0a1428;
  border: 1px solid #ffffff15;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.7;
  color: #9eb4c7;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; color: #a9bdc9; font-size: 12px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #ffffff20;
  margin-top: 26px;
  padding-top: 14px;
  font-size: 10px;
  color: #90a8b8;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-fab {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 22px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 800;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(56, 179, 74, .35);
  transition: transform .2s ease, filter .2s ease;
}
.demo-fab:hover { transform: translateY(-2px); filter: brightness(1.05); }
.demo-fab i { font-size: 18px; }

/* Tour */
body.tour-active { padding-bottom: 200px; }
body.tour-active .demo-fab { display: none !important; }
.tour-focus {
  position: relative;
  z-index: 5;
  border-radius: 16px !important;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--primary), 0 16px 36px rgba(11, 77, 173, .22) !important;
}
.tour-panel {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 350;
  width: min(720px, calc(100vw - 24px));
  max-height: min(42vh, 360px);
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  border: 1px solid rgba(11, 77, 173, .14);
  box-shadow: 0 18px 50px rgba(8, 22, 36, .26);
  overflow: auto;
  text-align: start;
}
.tour-panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #111b3c 0%, #0B4DAD 75%, #38B34A 140%);
  color: #fff;
}
.tour-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.tour-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .25);
}
.tour-chapters { display: flex; align-items: center; gap: 4px; flex: 1; overflow: auto; scrollbar-width: none; }
.tour-chapters::-webkit-scrollbar { display: none; }
.tour-chapter {
  border: 0;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.78);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tour-chapter.is-active { background: #fff; color: #0B4DAD; }
.tour-chapter.is-done { background: rgba(52, 211, 153, .22); color: #d1fae5; }
.tour-x {
  border: 0; background: rgba(255,255,255,.12); color: #fff;
  width: 30px; height: 30px; border-radius: 8px; font-size: 18px; line-height: 1; flex-shrink: 0;
}
.tour-panel-body { padding: 12px 16px 6px; }
.tour-kicker {
  font-size: 10px; font-weight: 800; color: var(--primary);
  letter-spacing: .4px; text-transform: uppercase; margin-bottom: 3px;
}
.tour-panel-body h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.4; color: #111b3c; }
.tour-panel-body p { margin: 0; font-size: 12.5px; line-height: 1.65; color: #4d6373; }
.tour-tip {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 8px;
  background: #e8f1fb; border: 1px solid #b8d4f0; color: #0B4DAD;
  border-radius: 10px; padding: 8px 10px; font-size: 11.5px; font-weight: 600; line-height: 1.5;
}
.tour-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tour-panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px 14px; border-top: 1px solid #edf1f4;
}
.tour-dots { display: flex; align-items: center; gap: 6px; }
.tour-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #d5dee6; }
.tour-dot.is-active { width: 22px; border-radius: 8px; background: var(--primary); }
.tour-dot.is-done { background: var(--accent); }
.tour-nav { display: flex; align-items: center; gap: 8px; }
.tour-btn {
  border: 0; border-radius: 10px; padding: 10px 15px; font-weight: 800; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: inherit;
}
.tour-btn.primary { background: var(--primary); color: #fff; }
.tour-btn.ghost { background: #eef3f7; color: var(--navy); }
.tour-btn.wa { background: var(--accent); color: #fff; }

/* Smart Academic marketing blocks */
.smart-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 4px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-inline-start: 4px solid var(--accent);
}
.smart-alerts-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.smart-alerts-head strong { font-size: 13px; color: var(--ink); }
.alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #fff4e1;
  color: #9a6a12;
  border: 1px solid #f0d9a8;
  cursor: pointer;
  transition: .2s;
}
.alert-pill:hover { filter: brightness(.97); transform: translateY(-1px); }
.alert-pill.warn { background: #fff4e1; color: #9a6a12; border-color: #f0d9a8; }
.alert-pill.red { background: #fff0f1; color: #c43d52; border-color: #f5c4cb; }
.alert-pill.blue { background: #e8f1fb; color: #0B4DAD; border-color: #b8d4f0; }
.alert-pill.green { background: var(--accent-soft); color: #1d7a42; border-color: #b9dfc4; }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.kpi-strip .stat { margin: 0; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.shot-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.shot-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(11, 77, 173, .1); }
.shot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--line);
}
.shot-card figcaption {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.5;
}
.shot-card.hero-shot { grid-column: span 2; }
.shot-card.feature { border-color: #b8d4f0; }

.eye-hero {
  border-radius: 20px;
  padding: 24px 28px;
  background: linear-gradient(115deg, #083a87 0%, #0B4DAD 45%, #38B34A 115%);
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.eye-hero h2 { margin: 0 0 10px; font-size: 22px; }
.eye-hero p { margin: 0; font-size: 13px; line-height: 1.75; color: #dce8fa; }
.eye-hero img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #ffffff44;
  box-shadow: 0 12px 28px #0003;
}
.eye-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 8px;
  background: #ffffff22;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: 10px;
}

.module-tabs, .fee-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.module-tabs button, .fee-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 800;
  transition: .2s;
}
.module-tabs button.active, .fee-tabs button.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #e8f1fb;
}
.module-tabs button:hover, .fee-tabs button:hover { border-color: #b8d4f0; }

.plan-shot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.plan-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.plan-card img { width: 100%; display: block; border-bottom: 1px solid var(--line); }
.plan-card .plan-body { padding: 14px 16px; }
.plan-card h3 { margin: 0 0 8px; font-size: 14px; }
.plan-card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.7; }

.live-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow);
}
.live-banner img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); flex: 1 1 280px; }
.live-meta { flex: 1 1 220px; min-width: 200px; }
.live-meta h3 { margin: 0 0 8px; }
.live-meta p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.dash-admin-cols {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
  margin: 16px 0 4px;
}
.section-head.compact { margin: 0 0 12px; }
.section-head.compact h2 { font-size: 16px; }
.attention-list { display: flex; flex-direction: column; gap: 8px; }
.attention-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fafbfd;
  text-align: inherit;
  transition: .2s;
}
.attention-row:hover { border-color: #b8d4f0; background: #f4f9ff; }
.attention-main { flex: 1; text-align: inherit; }
.attention-main b { display: block; font-size: 13px; }
.attention-main small { color: var(--muted); font-size: 11px; }
.attention-go { color: var(--primary); flex-shrink: 0; }
html[dir="rtl"] .attention-go { transform: scaleX(-1); }

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.ops-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #f6f9fd 100%);
  text-align: center;
}
.ops-card .bi { font-size: 18px; color: var(--primary); display: block; margin-bottom: 6px; }
.ops-card b { font-size: 22px; display: block; color: var(--ink); }
.ops-card small { font-size: 10px; color: var(--muted); font-weight: 700; line-height: 1.4; display: block; margin-top: 4px; }

.product-ui-expand {
  border: 1px dashed #c5d4ea;
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fbff;
}
.product-ui-expand summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-ui-expand p { margin: 10px 0; font-size: 11px; }
.product-ui-shot {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.product-ui-shot img { width: 100%; display: block; border-radius: 12px; border: 1px solid var(--line); }
.product-ui-shot span {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 10px;
  background: #0B4DADdd;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eye-report-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(125deg, #072d66 0%, #0B4DAD 52%, #1a7a47 120%);
  color: #fff;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.eye-verdict-wrap { min-width: 0; }
.eye-verdict-kicker { margin: 0 0 6px; font-size: 12px; color: #cce0ff; }
.eye-verdict {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: .3px;
  margin: 0 0 16px;
}
.eye-rings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.eye-ring {
  position: relative;
  text-align: center;
  padding: 6px 4px 2px;
  background: #ffffff14;
  border-radius: 14px;
  border: 1px solid #ffffff28;
}
.eye-ring-svg { width: 72px; height: 72px; transform: rotate(-90deg); display: block; margin: 0 auto 4px; }
.eye-ring-bg { fill: none; stroke: #ffffff25; stroke-width: 3; }
.eye-ring-fill { fill: none; stroke: #7ee8a0; stroke-width: 3; stroke-linecap: round; }
.eye-ring-val { font-size: 13px; font-weight: 800; display: block; margin-top: -46px; margin-bottom: 32px; }
.eye-ring-lbl { font-size: 9px; font-weight: 700; color: #d4e6ff; line-height: 1.35; display: block; padding: 0 4px 6px; }
.eye-briefs p { margin: 0 0 10px; font-size: 12px; line-height: 1.75; color: #e2edff; }
.eye-report-visual { position: relative; min-width: 0; }
.eye-report-visual img {
  width: 100%;
  border-radius: 14px;
  border: 2px solid #ffffff55;
  box-shadow: 0 16px 36px #0004;
  display: block;
}
.eye-report-stack {
  position: absolute;
  inset-inline-end: -8px;
  bottom: -12px;
  width: 58% !important;
  border-color: #ffffff88;
}
.eye-kpi-shot { margin-top: 18px; max-width: 720px; }
.fees-story { margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.fees-story p { margin: 0; flex: 1; font-size: 12px; line-height: 1.8; color: var(--ink); }
.fees-story-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fees-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.product-ui-panel { margin: 16px 0 4px; }
.product-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot-link {
  display: block;
  width: 100%;
  text-align: start;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: #fff;
}
.shot-link figcaption { margin: 0; }
.att-form-shot { margin: 0 0 16px; max-width: 720px; }
.hw-shots, .exams-shots, .eye-flow-grid, .eye-extra-shots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 8px 0 16px;
}
.exams-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; }
.eye-flow { margin-bottom: 16px; }
.eye-flow-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.parent-children { margin: 14px 0; }
.parent-children-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.parent-child-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #f8fafd;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.parent-child-card b { display: block; font-size: 14px; }
.parent-child-card small { color: var(--muted); }
.parent-child-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) {
  .product-mosaic, .hw-shots, .eye-flow-grid, .fees-shots { grid-template-columns: 1fr 1fr; }
  .parent-children-grid { grid-template-columns: 1fr; }
}

.welcome-layer {
  display: none;
  z-index: 280;
}
.welcome-layer.show { display: flex; }
.welcome-modal { width: min(560px, 100%); }
.welcome-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.welcome-head h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.35; }
.welcome-head p { margin: 0; color: var(--muted); font-size: 12px; }
.welcome-logo { border-radius: 12px; background: #f4f8fc; padding: 4px; flex-shrink: 0; }
.welcome-lead { font-size: 12.5px; line-height: 1.7; color: var(--muted); margin: 0 0 14px; }
.welcome-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.welcome-roles button {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafd;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  transition: .2s;
}
.welcome-roles button:hover { border-color: var(--primary); color: var(--primary); background: #e8f1fb; }
.welcome-eye {
  width: 100%;
  border: 1px solid #b9dfc4;
  background: var(--accent-soft);
  color: #1d7a42;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.welcome-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.welcome-actions .btn { flex: 1 1 auto; }

.smart-alerts-head .bi { color: var(--accent); margin-inline-end: 4px; }

@media (max-width: 1100px) {
  .shot-grid, .plan-shot-row { grid-template-columns: repeat(2, 1fr); }
  .shot-card.hero-shot { grid-column: span 2; }
  .eye-hero { grid-template-columns: 1fr; }
  .eye-report-hero { grid-template-columns: 1fr; }
  .eye-rings { grid-template-columns: repeat(2, 1fr); }
  .dash-admin-cols { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .stats, .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .layout { display: block; min-height: auto; }
  .sidebar {
    position: fixed;
    top: 0;
    inset-inline-end: -280px;
    width: 260px;
    height: 100vh;
    transition: inset-inline-end .25s;
    z-index: 100;
  }
  html[dir="rtl"] .sidebar.open { inset-inline-end: 0; }
  html[dir="ltr"] .sidebar { inset-inline-end: auto; inset-inline-start: -280px; }
  html[dir="ltr"] .sidebar.open { inset-inline-start: 0; }
  .mobile-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: #0007;
    z-index: 95;
  }
  .menu-toggle { display: inline-flex; }
  .topbar { height: 64px; padding: 0 14px; }
  .content { padding: 18px 14px 40px; }
  .cols { grid-template-columns: 1fr; }
  .hero { padding: 22px; }
  .hero h1 { font-size: 21px; }
  .hero-stat, .demo-pill { display: none; }
  .page-title { align-items: flex-start; }
  .cards-grid { grid-template-columns: 1fr; }
  .role-guide-label { display: none; }
  .role-guide-links { width: 100%; }
  .role-guide-links button { flex: 1 1 0; text-align: center; padding: 7px 8px; }
  .demo-fab span { display: none; }
  .demo-fab { padding: 14px; border-radius: 50%; }
  .tour-chapters { display: none; }
}
@media (max-width: 520px) {
  .stats { gap: 9px; grid-template-columns: 1fr 1fr; }
  .stat { padding: 14px; }
  .stat b { font-size: 20px; }
  .quick { grid-template-columns: 1fr 1fr; }
  .trail { display: none; }
  .demo-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
