/* ============================================================
   EXAMPASS.LK — MAIN STYLESHEET
   ============================================================ */

/* ── 1. CSS Variables ──────────────────────────────────────── */
:root {
  --primary:        #20beff;
  --primary-dark:   #00a8e8;
  --primary-light:  #e6f9ff;
  --secondary:      #fade28;
  --success:        #16a34a;
  --danger:         #dc2626;
  --warning:        #d97706;
  --muted:          #64748b;
  --border:         #e2e8f0;
  --heading:        #000000;
  --body:           #1a1a1a;
  --bg:             #ffffff;
  --bg-alt:         #f7f7f7;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:      0 8px 28px rgba(0,0,0,0.12);
  --radius-sm:      6px;
  --radius-card:    12px;
  --radius-xl:      20px;
  --transition:     all 0.18s ease;
  --font-body:      'Inter', sans-serif;
  --font-display:   'Plus Jakarta Sans', sans-serif;
  --nav-h:          64px;
}

/* ── 2. Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family:      var(--font-body);
  color:            var(--body);
  background:       var(--bg);
  line-height:      1.6;
  -webkit-font-smoothing: antialiased;
}

a            { color: var(--primary); text-decoration: none; }
a:hover      { color: var(--primary-dark); }
img          { max-width: 100%; display: block; }
ul, ol       { list-style: none; }
button       { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── 3. Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family:  var(--font-display);
  color:        var(--heading);
  line-height:  1.25;
  font-weight:  700;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.6rem;  }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; }

/* ── 4. Layout ─────────────────────────────────────────────── */
.container {
  width:     100%;
  max-width: 1160px;
  margin:    0 auto;
  padding:   0 20px;
}

.section     { padding: 80px 0; }
.section-sm  { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }

/* ── 5. Navbar ─────────────────────────────────────────────── */
.navbar {
  position:   sticky;
  top:        0;
  z-index:    900;
  height:     var(--nav-h);
  background: var(--heading);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.navbar-inner {
  display:         flex;
  align-items:     center;
  height:          100%;
  gap:             24px;
}

.navbar-brand {
  display:     flex;
  align-items: center;
  gap:         8px;
  font-family: var(--font-display);
  font-size:   1.15rem;
  font-weight: 800;
  color:       #fff;
  white-space: nowrap;
}
.navbar-brand:hover { color: var(--secondary); }

.navbar-links {
  display:    flex;
  align-items:center;
  gap:        4px;
  flex:       1;
}

.nav-link {
  font-size:   0.875rem;
  font-weight: 500;
  color:       rgba(255,255,255,0.75);
  padding:     6px 12px;
  border-radius: var(--radius-sm);
  transition:  var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color:      #fff;
  background: rgba(255,255,255,0.1);
}

.navbar-actions {
  display:     flex;
  align-items: center;
  gap:         10px;
  margin-left: auto;
}

.navbar-user {
  display:     flex;
  align-items: center;
  gap:         8px;
}

.navbar-avatar {
  width:         36px;
  height:        36px;
  border-radius: 50%;
  background:    var(--primary-light);
  border:        2px solid var(--secondary);
  overflow:      hidden;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-weight:   700;
  font-size:     0.78rem;
  color:         var(--primary);
  flex-shrink:   0;
}
.navbar-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

.nav-divider {
  width:      1px;
  height:     22px;
  background: rgba(255,255,255,0.18);
}

.nav-hamburger {
  display:    none;
  background: none;
  border:     none;
  color:      #fff;
  font-size:  1.4rem;
  padding:    4px 8px;
  margin-left:auto;
}

/* ── User dropdown ─────────────────────────────────────────── */
.navbar-user-wrap {
  position: relative;
}

.navbar-user-btn {
  display:       flex;
  align-items:   center;
  gap:           8px;
  background:    rgba(255,255,255,0.1);
  border:        1.5px solid rgba(255,255,255,0.25);
  cursor:        pointer;
  padding:       6px 12px 6px 6px;
  border-radius: 999px;
  transition:    background 0.15s ease, border-color 0.15s ease;
}
.navbar-user-btn:hover {
  background:   rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.45);
}

.user-dropdown {
  display:       none;
  position:      absolute;
  top:           calc(100% + 10px);
  right:         0;
  width:         210px;
  background:    #111;
  border:        1px solid #2a2a2a;
  border-radius: 10px;
  box-shadow:    0 8px 24px rgba(0,0,0,0.4);
  z-index:       950;
  overflow:      hidden;
  animation:     dropIn 0.15s ease;
}
.user-dropdown.open { display: block; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.user-dropdown-item {
  display:     flex;
  align-items: center;
  gap:         10px;
  padding:     11px 16px;
  font-size:   0.85rem;
  font-weight: 500;
  color:       rgba(255,255,255,0.75);
  text-decoration: none;
  transition:  background 0.12s ease, color 0.12s ease;
}
.user-dropdown-item:hover,
.user-dropdown-item.active {
  background: rgba(255,255,255,0.07);
  color:      #fff;
}
.user-dropdown-item span { font-size: 0.95rem; }

.user-dropdown-divider {
  height:     1px;
  background: #2a2a2a;
  margin:     4px 0;
}

.user-dropdown-logout { color: rgba(255,100,100,0.8); }
.user-dropdown-logout:hover { background: rgba(220,38,38,0.12); color: #f87171; }

/* ── 6. Buttons ────────────────────────────────────────────── */
.btn {
  display:       inline-flex;
  align-items:   center;
  justify-content: center;
  gap:           6px;
  padding:       9px 20px;
  border-radius: var(--radius-sm);
  font-size:     0.875rem;
  font-weight:   600;
  border:        2px solid transparent;
  transition:    var(--transition);
  white-space:   nowrap;
  line-height:   1;
}
.btn:disabled,
.btn.is-loading { opacity: 0.7; pointer-events: none; }

.btn-primary  { background: var(--primary);  color: #000; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color:#000; }

.btn-secondary { background: var(--secondary); color: #000; border-color: var(--secondary); }
.btn-secondary:hover { background: #f5c800; border-color: #f5c800; color: #000; }

.btn-success { background: var(--success); color:#fff; border-color: var(--success); }
.btn-success:hover { background: #15803d; color: #fff; }

.btn-danger  { background: var(--danger);  color:#fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-ghost {
  background:  transparent;
  color:       var(--primary);
  border-color:var(--border);
}
.btn-ghost:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

.btn-nav-login:hover { background: #fff !important; color: #000 !important; border-color: #fff !important; }

.btn-white {
  background:  var(--secondary);
  color:       #000;
  border-color:var(--secondary);
}
.btn-white:hover { background: #f5c800; border-color: #f5c800; color: #000; }

.btn-dark {
  background:  #000;
  color:       #fff;
  border-color:#000;
}
.btn-dark:hover { background: #222; border-color: #222; color: #fff; }

.btn-sm  { padding: 6px 14px; font-size: 0.8rem; }
.btn-xs  { padding: 3px 10px; font-size: 0.75rem; }
.btn-lg  { padding: 12px 28px; font-size: 0.95rem; }
.btn-xl  { padding: 14px 32px; font-size: 1rem; }
.w-full  { width: 100%; }

/* ── 7. Forms ──────────────────────────────────────────────── */
.form-group  { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-label  {
  font-size:   0.82rem;
  font-weight: 600;
  color:       var(--heading);
  letter-spacing: 0.01em;
}

.form-control {
  padding:      9px 14px;
  border:       1.5px solid var(--border);
  border-radius:var(--radius-sm);
  font-size:    0.9rem;
  color:        var(--heading);
  background:   #fff;
  transition:   var(--transition);
  width:        100%;
}
.form-control:focus {
  outline:      none;
  border-color: var(--primary);
  box-shadow:   0 0 0 3px rgba(32,190,255,0.15);
}
textarea.form-control { resize: vertical; line-height: 1.6; }

.form-hint {
  font-size:  0.76rem;
  color:      var(--muted);
  margin-top: 3px;
}

.input-group {
  display:  flex;
  position: relative;
}
.input-group .form-control { flex: 1; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-toggle {
  padding:       0 14px;
  background:    var(--bg-alt);
  border:        1.5px solid var(--border);
  border-left:   none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size:     1rem;
  cursor:        pointer;
  transition:    var(--transition);
}
.input-toggle:hover { background: var(--primary-light); }

/* Password strength bar */
.password-strength {
  height:        4px;
  background:    var(--border);
  border-radius: 2px;
  margin-top:    6px;
  overflow:      hidden;
}
.password-strength-bar {
  height:     100%;
  width:      0%;
  background: var(--success);
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 2px;
}

/* ── 8. Cards ──────────────────────────────────────────────── */
.card {
  background:    var(--bg);
  border:        1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow:    var(--shadow-sm);
}
.card-body { padding: 28px; }

.kpi-card {
  background:    var(--bg);
  border:        1px solid var(--border);
  border-radius: var(--radius-card);
  padding:       20px 24px;
  box-shadow:    var(--shadow-sm);
}
.kpi-label { font-size: 0.75rem; font-weight: 600; color: var(--muted);
             text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.kpi-value { font-size: 1.9rem; font-weight: 800;
             font-family: var(--font-display); color: var(--heading); }

/* ── 9. Badges ─────────────────────────────────────────────── */
.badge {
  display:       inline-block;
  padding:       3px 10px;
  border-radius: 20px;
  font-size:     0.72rem;
  font-weight:   700;
  letter-spacing:0.03em;
  text-transform:uppercase;
}

.badge-ol         { background:#dbeafe; color:#1e40af; }
.badge-al         { background:#fce7f3; color:#9d174d; }
.badge-medium     { background:#f3f4f6; color:#374151; }
.badge-mcq        { background:#ede9fe; color:#6d28d9; }
.badge-structured { background:#fef3c7; color:#92400e; }
.badge-essay      { background:#d1fae5; color:#065f46; }

.badge-pending    { background:#fef3c7; color:#92400e; }
.badge-warning    { background:#fef3c7; color:#92400e; }
.badge-approved   { background:#d1fae5; color:#065f46; }
.badge-success    { background:#d1fae5; color:#065f46; }
.badge-rejected   { background:#fee2e2; color:#991b1b; }
.badge-danger     { background:#fee2e2; color:#991b1b; }
.badge-marked     { background:#d1fae5; color:#065f46; }
.badge-unclear    { background:#fee2e2; color:#991b1b; }

.grade-a { background:#d1fae5; color:#065f46; }
.grade-b { background:#dbeafe; color:#1e40af; }
.grade-c { background:#fef3c7; color:#92400e; }
.grade-s { background:#f3f4f6; color:#374151; }
.grade-f { background:#fee2e2; color:#991b1b; }

/* ── Admin utility classes ─────────────────────────────────── */
.admin-filter-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  background: #fff;
  margin-bottom: 20px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.admin-table th {
  background: var(--bg);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 11px 16px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  text-align: left;
}
.admin-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #fafafa; }
.admin-pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}
.form-control-sm {
  padding: 6px 10px;
  font-size: 0.84rem;
}
.filter-clear {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
}
.filter-clear:hover { color: #dc2626; }

/* ── 10. Tables ────────────────────────────────────────────── */
.table-wrap {
  overflow-x:    auto;
  border:        1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow:    var(--shadow-sm);
}

.data-table {
  width:           100%;
  border-collapse: collapse;
  font-size:       0.875rem;
}
.data-table th {
  background:  var(--bg-alt);
  color:       var(--muted);
  font-size:   0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding:     11px 16px;
  border-bottom: 1.5px solid var(--border);
  white-space:  nowrap;
}
.data-table td {
  padding:       12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-alt); }

/* ── 11. Pagination ────────────────────────────────────────── */
.pagination {
  display:     flex;
  gap:         6px;
  flex-wrap:   wrap;
  margin-top:  20px;
}

.page-btn {
  padding:       7px 13px;
  border:        1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size:     0.82rem;
  font-weight:   600;
  color:         var(--body);
  background:    #fff;
  transition:    var(--transition);
}
.page-btn:hover  { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ── 12. Flash Messages ────────────────────────────────────── */
.flash {
  display:       flex;
  align-items:   center;
  justify-content:space-between;
  padding:       12px 20px;
  font-size:     0.875rem;
  font-weight:   500;
  gap:           12px;
}
.flash-success { background:#d1fae5; color:#065f46; border-bottom: 1px solid #a7f3d0; }
.flash-error   { background:#fee2e2; color:#991b1b; border-bottom: 1px solid #fca5a5; }
.flash-close   {
  background:none; border:none; font-size:1.1rem;
  cursor:pointer; color:inherit; flex-shrink:0; opacity:0.7;
}
.flash-close:hover { opacity:1; }

/* ── 13. Info Boxes ────────────────────────────────────────── */
.info-box {
  padding:       14px 18px;
  border-radius: var(--radius-sm);
  font-size:     0.875rem;
  line-height:   1.7;
  border:        1px solid transparent;
}
.info-box-blue   { background:#eff6ff; color:#1e40af; border-color:#bfdbfe; }
.info-box-green  { background:#f0fdf4; color:#166534; border-color:#86efac; }
.info-box-amber  { background:#fffbeb; color:#92400e; border-color:#fde68a; }
.info-box-red    { background:#fef2f2; color:#991b1b; border-color:#fca5a5; }

/* ── 14. Filter Bar ────────────────────────────────────────── */
.filter-bar      { background:var(--bg-alt); border-bottom:1px solid var(--border); }
.filter-bar-inner{
  max-width: 1160px; margin: 0 auto; padding: 14px 20px;
}
.filter-select   { max-width: 200px; height: 38px; padding: 6px 12px; }
.filter-clear    { font-size:0.82rem; color:var(--danger); font-weight:600; }
.filter-count    { font-size:0.82rem; color:var(--muted); font-weight:600; }

/* ── 15. Progress Bar ──────────────────────────────────────── */
.progress-bar-wrap {
  height:        8px;
  background:    var(--border);
  border-radius: 4px;
  overflow:      hidden;
}
.progress-bar-fill {
  height:        100%;
  background:    linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  transition:    width 0.5s ease;
  min-width:     2px;
}

/* ── 16. Upload Zone ───────────────────────────────────────── */
.upload-zone {
  border:        2px dashed var(--border);
  border-radius: var(--radius-card);
  padding:       32px 24px;
  text-align:    center;
  cursor:        pointer;
  transition:    var(--transition);
  background:    var(--bg-alt);
  color:         var(--muted);
  font-size:     0.88rem;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background:   var(--primary-light);
  color:        var(--primary);
}
.upload-zone-icon { font-size: 2rem; margin-bottom: 8px; }

/* ── 17. FAQ Accordion ─────────────────────────────────────── */
.faq-item        { border-bottom: 1px solid var(--border); }
.faq-question    {
  width:         100%;
  background:    none;
  border:        none;
  text-align:    left;
  padding:       18px 0;
  font-size:     0.95rem;
  font-weight:   600;
  color:         var(--heading);
  display:       flex;
  align-items:   center;
  justify-content:space-between;
  gap:           12px;
  cursor:        pointer;
  transition:    var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-arrow { font-size: 0.7rem; color: var(--muted); transition: transform 0.25s ease; flex-shrink:0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height:  0;
  overflow:    hidden;
  transition:  max-height 0.3s ease;
  font-size:   0.9rem;
  color:       var(--body);
  line-height: 1.8;
  padding-bottom: 0;
}
.faq-item.open .faq-answer {
  max-height:     600px;
  padding-bottom: 18px;
}

/* ── 18. Tabs ──────────────────────────────────────────────── */
.tabs {
  display:       flex;
  gap:           4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.tab-btn {
  padding:       10px 20px;
  background:    none;
  border:        none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size:     0.88rem;
  font-weight:   600;
  color:         var(--muted);
  cursor:        pointer;
  transition:    var(--transition);
}
.tab-btn:hover  { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel      { display: none; }
.tab-panel.active { display: block; }

/* ── 19. Grids ─────────────────────────────────────────────── */
.subjects-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap:                   20px;
}
.tutors-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap:                   20px;
}
.feature-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap:                   24px;
}

/* ── 20. Subject Card ──────────────────────────────────────── */
.subject-card {
  background:    var(--bg);
  border:        1px solid var(--border);
  border-radius: var(--radius-card);
  padding:       20px;
  box-shadow:    var(--shadow-sm);
  display:       flex;
  flex-direction:column;
  transition:    var(--transition);
}
.subject-card:hover {
  box-shadow:    var(--shadow-md);
  transform:     translateY(-2px);
  border-color:  var(--primary);
}

/* Subject card with image (homepage) */
.subject-card-link {
  padding:         0;
  overflow:        hidden;
  text-decoration: none;
  color:           inherit;
}
.subject-card-img {
  width:      100%;
  height:     160px;
  object-fit: cover;
  display:    block;
}
.subject-card-placeholder {
  width:            100%;
  height:           160px;
  background:       var(--primary-light);
  display:          flex;
  align-items:      center;
  justify-content:  center;
  font-size:        3rem;
  font-weight:      800;
  color:            var(--primary);
  font-family:      var(--font-display);
}
.subject-card-body {
  padding:        16px 20px 20px;
  display:        flex;
  flex-direction: column;
  flex:           1;
}
.subject-card-badges {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   10px;
}
.subject-card-name {
  font-size:     1.05rem;
  margin-bottom: auto;
  padding-bottom:14px;
  flex:          1;
}
.subject-card-cta {
  display:      block;
  margin-top:   12px;
  font-size:    0.85rem;
  font-weight:  600;
  color:        var(--primary);
}

/* ── 21. Tutor Card ────────────────────────────────────────── */
.tutor-card {
  background:    var(--bg);
  border:        1px solid var(--border);
  border-radius: var(--radius-card);
  padding:       24px 20px;
  text-align:    center;
  box-shadow:    var(--shadow-sm);
  transition:    var(--transition);
}
.tutor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tutor-avatar {
  width:         72px;
  height:        72px;
  border-radius: 50%;
  object-fit:    cover;
  border:        3px solid var(--secondary);
  margin:        0 auto 12px;
}
.tutor-initials {
  width:         72px;
  height:        72px;
  border-radius: 50%;
  background:    var(--primary-light);
  display:       flex;
  align-items:   center;
  justify-content:center;
  font-weight:   800;
  font-size:     1.4rem;
  color:         var(--primary);
  margin:        0 auto 12px;
  border:        3px solid var(--secondary);
}

/* ── 22. Feature Card ──────────────────────────────────────── */
.feature-card {
  background:    var(--bg);
  border:        1px solid var(--border);
  border-radius: var(--radius-card);
  padding:       28px 24px;
  box-shadow:    var(--shadow-sm);
  transition:    var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p  { color: var(--muted); font-size: 0.88rem; line-height: 1.8; }

/* ── 23. Question Card ─────────────────────────────────────── */
.question-card {
  display:       flex;
  align-items:   flex-start;
  justify-content:space-between;
  gap:           16px;
  padding:       18px 20px;
  border:        1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  background:    var(--bg);
  transition:    var(--transition);
}
.question-card:hover { box-shadow: var(--shadow-sm); border-color: var(--primary); }
.question-preview   { flex: 1; min-width: 0; }
.question-meta      { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.question-preview-text {
  font-size:     0.9rem;
  color:         var(--body);
  line-height:   1.6;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}
.question-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }

/* ── 24. Dashboard ─────────────────────────────────────────── */
.dashboard-page   { padding: 40px 0; min-height: 80vh; }
.dashboard-header { margin-bottom: 28px; }
.dashboard-greeting {
  font-family: var(--font-display);
  font-size:   1.6rem;
  font-weight: 800;
  color:       var(--heading);
}
.dashboard-sub { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.kpi-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap:                   16px;
  margin-bottom:         36px;
}

/* ── 25. Hero ──────────────────────────────────────────────── */
.hero {
  background:  linear-gradient(135deg, #000000 0%, #111111 100%);
  padding:     100px 0;
  text-align:  center;
  color:       #fff;
}
.hero h1 {
  font-size:   3rem;
  color:       #fff;
  margin-bottom:18px;
  line-height: 1.15;
}
.hero p {
  font-size:   1.15rem;
  color:       rgba(255,255,255,0.75);
  max-width:   600px;
  margin:      0 auto 32px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── 26. Stats Strip ───────────────────────────────────────── */
.stats-strip {
  display:         flex;
  justify-content: center;
  flex-wrap:       wrap;
  gap:             0;
  background:      #000000;
  padding:         20px 0;
}
.stat-item {
  text-align: center;
  padding:    16px 40px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-num   { font-size:1.8rem;font-weight:800;font-family:var(--font-display);color:#fff; }
.stat-label { font-size:0.78rem;color:rgba(255,255,255,0.75);margin-top:2px;font-weight:500; }

/* ── 27. Page Header ───────────────────────────────────────── */
.page-header {
  background:  linear-gradient(135deg, #000000 0%, #111111 100%);
  padding:     64px 0;
  text-align:  center;
  color:       #fff;
}
.page-header-sm { padding: 48px 0; }
.page-header h1 { color:#fff;font-size:2.25rem; }
.page-header p  { color:rgba(255,255,255,0.65);margin-top:10px;font-size:1rem; }

/* ── 28. Footer ────────────────────────────────────────────── */
.footer {
  background:  var(--heading);
  color:       rgba(255,255,255,0.7);
  padding:     64px 0 0;
  margin-top:  auto;
}
.footer-grid {
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:                   40px;
  padding-bottom:        48px;
  border-bottom:         1px solid rgba(255,255,255,0.08);
}
.footer-brand-name { font-size:1.2rem;font-weight:800;font-family:var(--font-display);color:#fff;margin-bottom:12px; }
.footer-desc       { font-size:0.85rem;line-height:1.8;color:rgba(255,255,255,0.55); }
.footer-heading    { font-size:0.72rem;font-weight:700;text-transform:uppercase;
                     letter-spacing:0.08em;color:rgba(255,255,255,0.4);margin-bottom:14px; }
.footer-links      { display:flex;flex-direction:column;gap:8px; }
.footer-links a    { font-size:0.85rem;color:rgba(255,255,255,0.6);transition:var(--transition); }
.footer-links a:hover { color:#fff; }
.footer-bottom     {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  flex-wrap:       wrap;
  gap:             8px;
  padding:         20px 0;
  font-size:       0.8rem;
  color:           rgba(255,255,255,0.35);
}

/* ── 29. CTA Section ───────────────────────────────────────── */
.cta-section {
  background:  #F5C518;
  padding:     80px 0;
  text-align:  center;
  color:       #000;
}
.cta-section h2 { color:#000;font-size:2rem;margin-bottom:12px; }
.cta-section p  { color:rgba(0,0,0,0.6);font-size:1rem;margin-bottom:28px; }


/* ── 30. Pricing ───────────────────────────────────────────── */
.pricing-badge {
  position:      absolute;
  top:           -10px;
  right:         14px;
  background:    var(--success);
  color:         #fff;
  font-size:     0.72rem;
  font-weight:   700;
  padding:       3px 10px;
  border-radius: 20px;
  letter-spacing:0.04em;
}
.pricing-save {
  font-size:     0.74rem;
  color:         var(--success);
  font-weight:   700;
}

/* ── 31. Empty State ───────────────────────────────────────── */
.empty-state       { text-align:center;padding:64px 24px; }
.empty-state-icon  { font-size:3rem;margin-bottom:14px; }
.empty-state h3    { font-size:1.1rem;margin-bottom:8px; }
.empty-state p     { color:var(--muted);font-size:0.9rem;margin-bottom:20px; }

/* ── 32. Breadcrumb ────────────────────────────────────────── */
.breadcrumb {
  display:     flex;
  align-items: center;
  gap:         6px;
  font-size:   0.82rem;
  color:       rgba(255,255,255,0.6);
}
.breadcrumb a     { color:rgba(255,255,255,0.7); }
.breadcrumb a:hover { color:#fff; }

/* ── 33. Divider ───────────────────────────────────────────── */
.divider {
  border:        none;
  border-top:    1px solid var(--border);
  margin:        24px 0;
}

/* ── 34. Result Banner ─────────────────────────────────────── */
.result-banner.grade-a { border-color:var(--success); background:#f0fdf4; color:var(--success); }
.result-banner.grade-b { border-color:#3b82f6;        background:#eff6ff; color:#1d4ed8; }
.result-banner.grade-c { border-color:var(--warning);  background:#fffbeb; color:var(--warning); }
.result-banner.grade-s { border-color:var(--muted);    background:var(--bg-alt); color:var(--muted); }
.result-banner.grade-f { border-color:var(--danger);   background:#fef2f2; color:var(--danger); }

/* ── 35. Lightbox (simple) ─────────────────────────────────── */
.lightbox-overlay {
  position:   fixed;
  inset:      0;
  background: rgba(0,0,0,0.88);
  z-index:    9999;
  display:    flex;
  align-items:center;
  justify-content:center;
  padding:    24px;
  cursor:     zoom-out;
  animation:  fadeIn 0.18s ease;
}
.lightbox-overlay img {
  max-width:  92vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

/* ── 36. Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .hero h1      { font-size: 2.2rem; }
}

@media (max-width: 680px) {
  h1            { font-size: 1.8rem; }
  .hero         { padding: 64px 0; }
  .hero h1      { font-size: 1.8rem; }
  .section      { padding: 56px 0; }
  .form-row     { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .stat-item    { padding: 12px 24px; }
  .navbar-links { display: none; flex-direction: column; gap: 4px; }
  .navbar-links.open {
    display:    flex;
    position:   absolute;
    top:        var(--nav-h);
    left:       0; right: 0;
    background: var(--heading);
    padding:    12px 20px 20px;
    box-shadow: var(--shadow-md);
    z-index:    899;
  }
  .navbar-actions { gap: 6px; }
  .nav-hamburger  { display: block; }
  .question-card  { flex-direction: column; }
  .question-actions { flex-direction: row; }
  .kpi-grid       { grid-template-columns: 1fr 1fr; }
}