/* ============================================================
   SahihiMinds Design System
   A Sahihi Media Platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* ── Sahihi Media Brand Palette ── */
  --sm-green:       #58B947;   /* Brand green  #58B947 */
  --sm-green-dark:  #3d8a32;   /* Darker green for hover states */
  --sm-green-light: #eaf7e7;   /* Light green tint */
  --sm-green-mid:   #72cb5e;   /* Mid green */
  --sm-blue:        #21409A;   /* Brand blue   #21409A */
  --sm-blue-dark:   #162D53;   /* Brand navy   #162D53 */
  --sm-blue-light:  #e8edf8;   /* Light blue tint */
  --sm-red:         #E41E26;   /* Brand red    #E41E26 */
  --sm-gray:        #A4A4A4;   /* Brand gray   #A4A4A4 */
  --sm-navy:        #162D53;   /* Brand navy (primary dark) */
  --sm-slate:       #21409A;   /* Brand blue used for text */
  --sm-gold:        #E41E26;   /* Using brand red as accent */
  --sm-gold-light:  #fde8e9;   /* Light red tint */
  --sm-muted:       #6b7280;
  --sm-border:      #e5e7eb;
  --sm-bg:          #f4f6fb;
  --sm-surface:     #ffffff;
  --sm-sidebar-w:   240px;
  --sm-topbar-h:    60px;
  --sm-radius:      10px;
  --sm-shadow:      0 1px 3px rgba(33,64,154,.08), 0 4px 12px rgba(33,64,154,.06);
  --sm-shadow-md:   0 4px 16px rgba(33,64,154,.12);
  --font-display:   'DM Serif Display', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--sm-slate);
  background: var(--sm-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-font { font-family: var(--font-display); }

a { color: var(--sm-blue); text-decoration: none; }
a:hover { color: var(--sm-blue-dark); text-decoration: underline; }

/* ── Bootstrap overrides ───────────────────────────────────── */
.btn-primary {
  background: var(--sm-blue);
  border-color: var(--sm-blue);
  color: #fff;
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 20px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--sm-blue-dark);
  border-color: var(--sm-blue-dark);
  color: #fff;
}
.btn-outline-primary {
  color: var(--sm-blue);
  border-color: var(--sm-blue);
  border-radius: 8px;
}
.btn-outline-primary:hover {
  background: var(--sm-blue);
  border-color: var(--sm-blue);
  color: #fff;
}
.btn-gold {
  background: var(--sm-gold);
  border-color: var(--sm-gold);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
}
.btn-gold:hover { background: #b07e29; color: #fff; }

.form-control, .form-select {
  border-radius: 8px;
  border-color: var(--sm-border);
  font-size: 14px;
  padding: 9px 14px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--sm-blue);
  box-shadow: 0 0 0 3px rgba(26,110,69,.12);
}
.form-label { font-weight: 500; font-size: 13.5px; margin-bottom: 5px; }

.badge { font-weight: 500; border-radius: 5px; font-size: 11.5px; }
.badge.bg-pending  { background: #fef3c7 !important; color: #92400e; }
.badge.bg-accepted { background: var(--sm-green-light) !important; color: var(--sm-green-dark); }
.badge.bg-declined { background: #fee2e2 !important; color: #991b1b; }
.badge.bg-active   { background: #dbeafe !important; color: #1e3a8a; }
.badge.bg-open     { background: #fef3c7 !important; color: #92400e; }
.badge.bg-resolved { background: var(--sm-green-light) !important; color: var(--sm-green-dark); }

/* ── App Layout ────────────────────────────────────────────── */
.app-layout { background: var(--sm-bg); overflow-x: hidden; }

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sm-sidebar {
  width: var(--sm-sidebar-w);
  min-height: 100vh;
  background: var(--sm-navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  transition: transform .28s ease;
}

.sm-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 2px solid #21409A;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--sm-blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  color: rgba(255,255,255,.9);
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: .3px;
}
.brand-text strong { font-weight: 600; }

.btn-sidebar-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.sm-sidebar-nav {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.sm-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 8px;
  color: rgba(255,255,255,.65);
  font-size: 13.5px;
  font-weight: 400;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.sm-nav-item i { font-size: 15px; flex-shrink: 0; }
.sm-nav-item:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); text-decoration: none; }
.sm-nav-item.active { background: var(--sm-green); color: #fff; font-weight: 500; }

.sm-sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sm-user-mini { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sm-user-info { display: flex; flex-direction: column; min-width: 0; }
.sm-user-name { color: rgba(255,255,255,.88); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-user-role { color: rgba(255,255,255,.45); font-size: 11px; }

.sm-logout-btn {
  color: rgba(255,255,255,.45);
  font-size: 16px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 6px;
  transition: color .18s, background .18s;
}
.sm-logout-btn:hover { color: #ff6b6b; background: rgba(255,107,107,.1); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1039;
}

/* ── Main content area ─────────────────────────────────────── */
.sm-main {
  margin-left: var(--sm-sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Topbar ────────────────────────────────────────────────── */
.sm-topbar {
  height: var(--sm-topbar-h);
  background: #162D53;
  border-bottom: 3px solid #21409A;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(22,45,83,.3);
}
.sm-topbar-title { flex: 1; }
.sm-topbar-title h6 { font-weight: 600; font-size: 15px; color: #fff; }
.sm-topbar-actions { display: flex; align-items: center; gap: 6px; }

.sm-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.80);
  font-size: 16px;
  cursor: pointer;
  transition: background .18s;
  position: relative;
}
.sm-icon-btn:hover { background: rgba(255,255,255,.12); }

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.sm-avatar-btn {
  background: none;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: border-color .18s;
}
.sm-avatar-btn:hover { border-color: rgba(255,255,255,.7); }

.btn-sidebar-toggle {
  background: none;
  border: none;
  font-size: 20px;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  padding: 4px 8px;
}

/* ── Page content ──────────────────────────────────────────── */
.sm-content {
  flex: 1;
  padding: 28px;
  max-width: 1200px;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Avatars ───────────────────────────────────────────────── */
.avatar-xs { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.avatar-md { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.avatar-lg { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.avatar-xl { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }

/* ── Cards ─────────────────────────────────────────────────── */
.sm-card {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
}

.sm-card-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--sm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sm-card-header h5 { margin: 0; font-size: 15px; font-weight: 600; }
.sm-card-body { padding: 20px; }

/* Stat cards */
.sm-stat-card {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  padding: 20px;
  box-shadow: var(--sm-shadow);
}
.sm-stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.sm-stat-card .stat-label { font-size: 12.5px; color: var(--sm-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.sm-stat-card .stat-value { font-size: 26px; font-weight: 600; color: var(--sm-navy); line-height: 1.2; }
.icon-green  { background: var(--sm-green-light); color: var(--sm-green); }
.icon-gold   { background: var(--sm-gold-light);  color: var(--sm-gold); }
.icon-blue   { background: #dbeafe; color: #1d4ed8; }
.icon-red    { background: #fee2e2; color: #dc2626; }
.icon-purple { background: #ede9fe; color: #7c3aed; }

/* Mentor/mentee cards */
.sm-mentor-card {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  padding: 20px;
  box-shadow: var(--sm-shadow);
  transition: box-shadow .2s, transform .2s;
}
.sm-mentor-card:hover { box-shadow: var(--sm-shadow-md); transform: translateY(-2px); }

.match-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sm-green-light);
  color: var(--sm-green-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}

.skill-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  border-radius: 5px;
  font-size: 11.5px;
  padding: 2px 8px;
  margin: 2px 2px 2px 0;
  font-weight: 500;
}

/* ── Tables ────────────────────────────────────────────────── */
.sm-table { width: 100%; }
.sm-table thead th {
  background: #f8f9fa;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--sm-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--sm-border);
  white-space: nowrap;
}
.sm-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  font-size: 13.5px;
}
.sm-table tbody tr:hover td { background: #fafafa; }

/* ── Chat UI ───────────────────────────────────────────────── */
.chat-layout {
  display: flex;
  height: calc(100vh - var(--sm-topbar-h) - 56px);
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  overflow: hidden;
  box-shadow: var(--sm-shadow);
}
.chat-sidebar {
  width: 280px;
  border-right: 1px solid var(--sm-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.chat-sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--sm-border);
  font-weight: 600;
  font-size: 14px;
}
.chat-list { overflow-y: auto; flex: 1; }
.chat-list-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.chat-list-item:hover, .chat-list-item.active { background: var(--sm-green-light); }
.chat-list-item.active .chat-list-name { color: var(--sm-green-dark); font-weight: 600; }
.chat-list-name { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list-preview { font-size: 12px; color: var(--sm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-unread { background: var(--sm-green); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; flex-shrink: 0; }

.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-header {
  padding: 13px 18px;
  border-bottom: 1px solid var(--sm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bubble {
  max-width: 68%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
}
.chat-bubble.sent { background: var(--sm-green); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble.recv { background: #f1f5f9; color: var(--sm-slate); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-meta { font-size: 10.5px; opacity: .65; margin-top: 3px; }
.chat-bubble.sent .chat-meta { text-align: right; }

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--sm-border);
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.chat-input {
  flex: 1;
  resize: none;
  border: 1px solid var(--sm-border);
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s;
  max-height: 120px;
}
.chat-input:focus { border-color: var(--sm-blue); }
.chat-send-btn {
  width: 38px;
  height: 38px;
  background: var(--sm-green);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 15px;
  transition: background .18s;
}
.chat-send-btn:hover { background: var(--sm-green-dark); }

/* ── Notifications dropdown ────────────────────────────────── */
.sm-notif-dropdown {
  width: 320px;
  padding: 0;
  border-radius: var(--sm-radius);
  border: 1px solid var(--sm-border);
  box-shadow: var(--sm-shadow-md);
  overflow: hidden;
}
.sm-notif-header {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13.5px;
  border-bottom: 1px solid var(--sm-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sm-notif-markall { font-size: 12px; color: var(--sm-green); }
.sm-notif-item {
  padding: 11px 16px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.sm-notif-item:hover { background: var(--sm-green-light); }
.sm-notif-item.unread { background: #f0fdf4; }
.sm-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sm-green); flex-shrink: 0; margin-top: 5px; }
.sm-notif-title { font-size: 13px; font-weight: 500; line-height: 1.4; }
.sm-notif-time { font-size: 11px; color: var(--sm-muted); margin-top: 2px; }
.sm-notif-empty { padding: 24px 16px; text-align: center; color: var(--sm-muted); font-size: 13px; }

/* ── Public layout ─────────────────────────────────────────── */
.public-layout { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }

.sm-public-nav {
  background: #162D53;
  border-bottom: 3px solid #21409A;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(22,45,83,.4);
}
.sm-public-nav .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: 14.5px;
  font-weight: 400;
  padding: 6px 14px !important;
  border-radius: 6px;
  transition: color .18s, background .18s;
}
.sm-public-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.10);
  text-decoration: none;
}
.sm-public-nav .navbar-toggler {
  border-color: rgba(255,255,255,.3);
}
.sm-public-nav .navbar-toggler-icon {
  filter: invert(1);
}
.sm-public-nav .btn-primary {
  background: #21409A;
  border-color: #21409A;
  color: #fff;
  padding: 7px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
}
.sm-public-nav .btn-primary:hover {
  background: #162D53;
  border-color: #58B947;
  color: #fff;
}
.sm-brand {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.sm-brand strong { font-weight: 600; }
.sm-brand .brand-mark {
  width: 30px; height: 30px; font-size: 16px;
}

/* Hero Slideshow */
.sm-hero {
  color: #fff;
  padding: 120px 0 100px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Slideshow background slides */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  z-index: -2;
}
.hero-slide.active { opacity: 1; }

.hero-slide:nth-child(1) {
  background-image: url('https://images.unsplash.com/photo-1531545514256-b1400bc00f31?w=1600&q=80&auto=format&fit=crop');
}
.hero-slide:nth-child(2) {
  background-image: url('https://images.unsplash.com/photo-1571260899304-425eee4c7efc?w=1600&q=80&auto=format&fit=crop');
}
.hero-slide:nth-child(3) {
  background-image: url('https://images.unsplash.com/photo-1606761568499-6d2451b23c66?w=1600&q=80&auto=format&fit=crop');
}

/* Dark overlay matching mockup — heavy dark left, lighter right */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(14, 20, 40, 0.92) 0%,
      rgba(14, 20, 40, 0.75) 45%,
      rgba(14, 20, 40, 0.30) 100%);
  z-index: -1;
}

/* Slide indicators */
.hero-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background .3s, transform .3s;
  padding: 0;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.sm-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(14,31,56,.3));
  z-index: 1;
  pointer-events: none;
}
.sm-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); line-height: 1.1; margin-bottom: 20px; font-family: var(--font-body); font-weight: 700; letter-spacing: -.5px; }
.sm-hero .lead { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 520px; }
.hero-cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-cta-group .btn { padding: 11px 28px; font-size: 15px; }

.hero-visual {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.hero-stat { text-align: center; padding: 16px; }
.hero-stat-num { font-family: var(--font-display); font-size: 2.2rem; color: #fff; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* Features */
.sm-features { padding: 80px 0; background: #fff; }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--sm-green-light); color: var(--sm-green); font-size: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* How it works */
.sm-how { padding: 80px 0; background: var(--sm-bg); }
.how-step { text-align: center; padding: 24px 16px; }
.how-step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--sm-green); color: #fff; font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

/* Testimonials */
.sm-testimonials { padding: 80px 0; background: #fff; }
.testimonial-card { background: var(--sm-bg); border-radius: 12px; padding: 24px; border: 1px solid var(--sm-border); }
.testimonial-stars { color: var(--sm-gold); font-size: 14px; margin-bottom: 12px; }

/* Footer */
.sm-public-footer { background: var(--sm-navy); color: rgba(255,255,255,.85); padding: 60px 0 0; margin-top: auto; }
.footer-heading { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: rgba(255,255,255,.85); margin-bottom: 14px; font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.85); font-size: 13.5px; text-decoration: none; transition: color .18s; }
.footer-links a:hover { color: #fff; }
.footer-link { color: var(--sm-gold) !important; }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 40px 0 0; }
/* Brand in footer override */
.sm-public-footer .sm-brand { color: #fff !important; }
.sm-public-footer .sm-brand .brand-mark { background: var(--sm-green); }
.sm-public-footer p.text-muted,
.sm-public-footer span.text-muted { color: rgba(255,255,255,.78) !important; }
/* Logo image styling */
.brand-logo-img { height: 28px; width: auto; display: inline-block; vertical-align: middle; }
.sidebar-logo-img { height: 24px; width: auto; display: inline-block; vertical-align: middle; }

/* ── Auth pages ────────────────────────────────────────────── */
.auth-layout {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--sm-navy) 0%, #0d3d28 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--sm-muted); }
.role-selector { display: flex; gap: 10px; margin-bottom: 20px; }
.role-option { flex: 1; border: 2px solid var(--sm-border); border-radius: 10px; padding: 14px 10px; text-align: center; cursor: pointer; transition: all .2s; }
.role-option:hover { border-color: var(--sm-blue); }
.role-option.selected { border-color: var(--sm-blue); background: var(--sm-green-light); }
.role-option i { font-size: 22px; display: block; margin-bottom: 6px; color: var(--sm-green); }
.role-option span { font-size: 13px; font-weight: 500; }
.role-radio { display: none; }

/* ── Onboarding stepper ─────────────────────────────────────── */
.stepper { display: flex; gap: 0; margin-bottom: 28px; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--sm-border);
}
.step:last-child::before { display: none; }
.step.done::before, .step.active::before { background: var(--sm-green); }
.step-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--sm-border); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; z-index: 1; color: var(--sm-muted); }
.step.done .step-dot { background: var(--sm-green); border-color: var(--sm-blue); color: #fff; }
.step.active .step-dot { border-color: var(--sm-blue); color: var(--sm-green); }
.step-label { font-size: 11px; color: var(--sm-muted); margin-top: 5px; text-align: center; }
.step.active .step-label { color: var(--sm-green); font-weight: 500; }

/* ── Progress bar ─────────────────────────────────────────── */
.sm-progress { height: 6px; border-radius: 3px; background: var(--sm-border); overflow: hidden; }
.sm-progress-bar { height: 100%; background: var(--sm-green); border-radius: 3px; transition: width .4s; }

/* ── Empty states ─────────────────────────────────────────── */
.sm-empty { text-align: center; padding: 50px 20px; color: var(--sm-muted); }
.sm-empty i { font-size: 48px; opacity: .25; display: block; margin-bottom: 14px; }
.sm-empty h6 { font-weight: 500; margin-bottom: 6px; }
.sm-empty p { font-size: 13.5px; }

/* ── Goal progress ────────────────────────────────────────── */
.goal-item { padding: 14px 0; border-bottom: 1px solid #f3f4f6; }
.goal-item:last-child { border-bottom: none; }
.goal-title { font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.goal-complete { text-decoration: line-through; color: var(--sm-muted); }

/* ── Admin specifics ──────────────────────────────────────── */
.admin-kpi { border-left: 4px solid var(--sm-green); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .sm-sidebar {
    transform: translateX(-100%);
  }
  .sm-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open { display: block; }
  .sm-main { margin-left: 0; }
  .sm-content { padding: 16px; }
  .chat-sidebar { width: 220px; }
  .auth-card { padding: 28px 24px; }
}

@media (max-width: 575.98px) {
  .chat-sidebar { display: none; }
  .chat-layout { height: calc(100vh - 120px); }
  .sm-hero { padding: 60px 0 50px; }
}

/* ── Announcement Banners ─────────────────────────────────── */
.sm-announcement {
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  z-index: 1050;
}
.sm-ann-info    { background: #1e3a8a; color: #fff; }
.sm-ann-warning { background: #92400e; color: #fff; }
.sm-ann-success { background: #14532d; color: #fff; }
.sm-ann-danger  { background: #7f1d1d; color: #fff; }
.sm-announcement a { color: #fff; text-decoration: underline; }
.sm-ann-dismiss {
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: 50%;
  width: 22px; height: 22px;
  line-height: 1;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.sm-ann-dismiss:hover { background: rgba(255,255,255,.2); }

/* ================================================================
   REPORTS — Redesigned UI with animations
   ================================================================ */

/* ── Case status timeline ──────────────────────────────────── */
.case-timeline {
  position: relative;
  padding-left: 32px;
}
.case-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, #21409A, #58B947);
  border-radius: 2px;
}
.case-step {
  position: relative;
  margin-bottom: 24px;
  animation: fadeSlideIn .4s ease both;
}
.case-step:nth-child(1) { animation-delay: .05s; }
.case-step:nth-child(2) { animation-delay: .12s; }
.case-step:nth-child(3) { animation-delay: .19s; }
.case-step:nth-child(4) { animation-delay: .26s; }
.case-step-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(33,64,154,.15);
}
.case-step-dot.step-submitted { background: #21409A; }
.case-step-dot.step-review    { background: #f59e0b; }
.case-step-dot.step-resolved  { background: #58B947; }
.case-step-dot.step-dismissed { background: #9ca3af; }
.case-step-dot.step-pending   { background: #fff; border-color: #d1d5db; }
.case-step-dot.step-pending i { color: #d1d5db; }

.case-step-body {
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: box-shadow .2s;
}
.case-step-body:hover { box-shadow: var(--sm-shadow); }

/* Public note from admin — highlighted */
.admin-message-box {
  background: linear-gradient(135deg, #e8edf8 0%, #f0f4ff 100%);
  border: 1.5px solid #21409A;
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  animation: fadeSlideIn .5s ease both;
}
.admin-message-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, #21409A, #58B947);
  border-radius: 4px 0 0 4px;
}
.admin-message-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #21409A;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: .3px;
}
.admin-message-badge i { font-size: 11px; }

/* ── Report card in the list ───────────────────────────────── */
.report-card {
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  animation: fadeSlideIn .35s ease both;
}
.report-card:hover {
  box-shadow: 0 6px 24px rgba(33,64,154,.12);
  transform: translateY(-2px);
  border-color: #21409A;
}
.report-card.active-report {
  border-color: #21409A;
  box-shadow: 0 0 0 3px rgba(33,64,154,.12);
}

/* Status pill with pulse for open */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-pill.pill-open {
  background: #fef3c7;
  color: #92400e;
}
.status-pill.pill-open::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  animation: pulse 1.5s infinite;
}
.status-pill.pill-review {
  background: #dbeafe;
  color: #1e3a8a;
}
.status-pill.pill-review::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  animation: pulse 1.5s infinite;
}
.status-pill.pill-resolved {
  background: #dcfce7;
  color: #14532d;
}
.status-pill.pill-dismissed {
  background: #f3f4f6;
  color: #6b7280;
}

/* ── Submit form redesign ──────────────────────────────────── */
.report-form-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--sm-border);
  overflow: hidden;
}
.report-form-header {
  background: linear-gradient(135deg, #162D53 0%, #21409A 100%);
  padding: 28px 28px 24px;
  color: #fff;
}
.report-form-header h4 { margin: 0; font-size: 17px; font-weight: 600; }
.report-form-header p  { margin: 6px 0 0; font-size: 13px; opacity: .8; }

/* Issue type selector pills */
.issue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.issue-option {
  border: 2px solid var(--sm-border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.issue-option:hover { border-color: #21409A; background: #f0f4ff; }
.issue-option input { display: none; }
.issue-option.selected { border-color: #21409A; background: #e8edf8; }
.issue-option .issue-icon { font-size: 18px; width: 28px; text-align: center; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

/* ── Empty state ───────────────────────────────────────────── */
.reports-empty {
  text-align: center;
  padding: 56px 24px;
}
.reports-empty-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8edf8, #f0f4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: #21409A;
  animation: fadeSlideIn .5s ease both;
}

/* ================================================================
   SahihiMinds v3.0 — Recommendations upgrade CSS
   ================================================================ */

/* ── Staggered card animation ──────────────────────────────── */
.animate-card { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; }
.animate-card.anim-in { opacity: 1; transform: none; }

/* ── Match score ring ──────────────────────────────────────── */
.score-ring-wrap {
  position: relative;
  width: 56px; height: 56px;
  flex-shrink: 0;
}
.score-ring-wrap svg { transform: rotate(-90deg); }
.score-ring-track { fill: none; stroke: var(--sm-border); stroke-width: 3.5; }
.score-ring-fill  {
  fill: none;
  stroke: var(--ring-color, #58B947);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: var(--ring-total, 125.66px);
  stroke-dashoffset: var(--ring-offset, 125.66px);
  transition: stroke-dashoffset 1s ease;
}
.score-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ring-color, #58B947);
}

/* ── Match card — discovery feed ──────────────────────────── */
.mentor-card {
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: 16px;
  padding: 20px;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  position: relative;
  overflow: hidden;
}
.mentor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, #21409A, #58B947);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.mentor-card:hover { box-shadow: 0 8px 32px rgba(33,64,154,.14); transform: translateY(-3px); border-color: #21409A; }
.mentor-card:hover::before { transform: scaleX(1); }

/* Verified badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #21409A, #162D53);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.verified-badge i { font-size: 10px; }

/* Match reason pill */
.match-reason-pill {
  background: #f0f4ff;
  color: #21409A;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #c7d2fe;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

/* Mentor capacity bar */
.capacity-bar {
  height: 4px;
  background: var(--sm-border);
  border-radius: 2px;
  overflow: hidden;
}
.capacity-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .4s;
}

/* ── Activity health dot ───────────────────────────────────── */
.health-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.health-green  { background: #58B947; box-shadow: 0 0 0 3px rgba(88,185,71,.2); }
.health-amber  { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.health-red    { background: #e41e26; box-shadow: 0 0 0 3px rgba(228,30,38,.2); animation: pulse 1.5s infinite; }

/* ── Typing indicator ──────────────────────────────────────── */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  min-width: 48px;
}
.typing-indicator span {
  width: 6px; height: 6px;
  background: var(--sm-muted);
  border-radius: 50%;
  animation: typingBounce .8s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .30s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity:.4; }
  40%            { transform: translateY(-6px); opacity:1; }
}

/* ── Confetti ──────────────────────────────────────────────── */
.confetti-piece {
  position: fixed;
  top: -10px;
  z-index: 99999;
  pointer-events: none;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ── Goal card ─────────────────────────────────────────────── */
.goal-card {
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.goal-card:hover { box-shadow: var(--sm-shadow); border-color: var(--sm-blue); }
.goal-card.complete { opacity: .85; background: #f0fdf4; border-color: #bbf7d0; }
.goal-card.complete .goal-title { text-decoration: line-through; }
.goal-progress-bar {
  height: 5px;
  background: var(--sm-border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}
.goal-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(to right, #21409A, #58B947);
  transition: width .6s ease;
}
.goal-complete-badge {
  position: absolute;
  top: 12px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #58B947;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ── "Next step" contextual banner ─────────────────────────── */
.next-step-banner {
  background: linear-gradient(135deg, #162D53 0%, #21409A 100%);
  color: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  animation: fadeSlideIn .4s ease both;
  position: relative;
  overflow: hidden;
}
.next-step-banner::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.next-step-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.next-step-banner .btn-light {
  background: #fff;
  color: #21409A;
  font-weight: 600;
  border: none;
  white-space: nowrap;
}

/* ── Stat cards with animation ─────────────────────────────── */
.kpi-card {
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .22s, transform .22s;
}
.kpi-card:hover { box-shadow: var(--sm-shadow-md); transform: translateY(-2px); }
.kpi-card .kpi-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}
.kpi-card .kpi-value { font-size: 28px; font-weight: 700; color: var(--sm-navy); line-height: 1; }
.kpi-card .kpi-label { font-size: 12.5px; color: var(--sm-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; }
.kpi-card .kpi-trend { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 600; }
.kpi-card.kpi-blue   { border-top: 3px solid #21409A; }
.kpi-card.kpi-green  { border-top: 3px solid #58B947; }
.kpi-card.kpi-red    { border-top: 3px solid #E41E26; }
.kpi-card.kpi-amber  { border-top: 3px solid #f59e0b; }

/* ── Session streak counter ────────────────────────────────── */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.streak-badge i { font-size: 13px; }

/* ── Admin global search ────────────────────────────────────── */
.admin-search-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
}
.admin-search-input {
  width: 100%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 7px 14px 7px 36px;
  font-size: 13.5px;
  color: #fff;
  outline: none;
  transition: background .2s, border-color .2s;
}
.admin-search-input::placeholder { color: rgba(255,255,255,.5); }
.admin-search-input:focus { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }
.admin-search-icon-pos { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.5); font-size: 14px; pointer-events: none; }
.admin-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  z-index: 500;
  overflow: hidden;
  display: none;
  max-height: 340px;
  overflow-y: auto;
}
.admin-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--sm-slate);
  border-bottom: 1px solid #f3f4f6;
  transition: background .15s;
}
.admin-search-item:hover { background: #f0f4ff; text-decoration: none; }
.admin-search-icon { font-size: 18px; width: 28px; text-align: center; }
.admin-search-title { font-size: 13px; font-weight: 500; }
.admin-search-sub   { font-size: 11.5px; color: var(--sm-muted); }
.admin-search-type  { margin-left: auto; font-size: 10.5px; background: #f0f4ff; color: #21409A; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap; }

/* ── Bottom mobile nav ─────────────────────────────────────── */
.sm-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--sm-border);
  z-index: 1039;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.sm-bottom-nav-items {
  display: flex;
  justify-content: space-around;
}
.sm-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  color: var(--sm-muted);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 500;
  gap: 3px;
  transition: color .18s;
  flex: 1;
}
.sm-bottom-nav-item i { font-size: 20px; }
.sm-bottom-nav-item.active, .sm-bottom-nav-item:hover { color: var(--sm-blue); text-decoration: none; }
@media (max-width: 767px) {
  .sm-bottom-nav { display: block; }
  .sm-main { padding-bottom: 70px; }
  .sm-sidebar { display: none !important; }
}
@media (min-width: 768px) {
  .sm-bottom-nav { display: none !important; }
}

/* ── PWA install banner ─────────────────────────────────────── */
.pwa-banner {
  display: none;
  position: fixed;
  bottom: 80px; left: 16px; right: 16px;
  background: linear-gradient(135deg,#162D53,#21409A);
  color: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  align-items: center;
  gap: 14px;
  z-index: 1050;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: fadeSlideIn .4s ease both;
}
.pwa-banner img { width: 36px; height: 36px; border-radius: 8px; }

/* ── Mentor impact dashboard ───────────────────────────────── */
.impact-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  transition: transform .2s;
}
.impact-badge:hover { transform: scale(1.04); }
.impact-badge-icon { font-size: 2rem; margin-bottom: 6px; }
.impact-badge-label { font-size: 11.5px; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .4px; }

/* Chat improvements */
.chat-bubble { max-width: 72%; word-break: break-word; }
.chat-input-area { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--sm-border); padding: 12px 16px; gap: 10px; }

/* Requests — quick-nudge */
.nudge-btn { background: rgba(88,185,71,.1); border: 1px solid #58B947; color: #2d6a1e; border-radius: 8px; font-size: 12px; padding: 4px 10px; transition: background .18s; }
.nudge-btn:hover { background: rgba(88,185,71,.25); }

/* ================================================================
   SAHIHIMINDS v3.1 — UI POLISH, SCROLL FIX, ACCESSIBILITY
   ================================================================ */

/* ── Global body scroll fix ────────────────────────────────── */
html, body { height: 100%; }
body.app-layout { overflow-y: scroll !important; overflow-x: hidden; }

/* ── Page transition animation ─────────────────────────────── */
.sm-content > * { animation: fadeSlideIn .32s ease both; }

/* ── Topbar breadcrumb/title improvements ──────────────────── */
.sm-topbar-title h6 { color: #fff !important; font-weight: 600; }
.sm-page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
  padding: 10px 0 10px;
  border-bottom: 1px solid var(--sm-border);
}
.sm-page-breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.sm-page-breadcrumb a:hover { color: #fff; }
.sm-page-breadcrumb .separator { opacity: .4; }

/* ── Improved sidebar active state ─────────────────────────── */
.sm-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  border-radius: 8px;
  margin: 2px 10px;
  transition: background .18s, color .18s, transform .18s;
  position: relative;
}
.sm-nav-item:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
  text-decoration: none;
  transform: translateX(3px);
}
.sm-nav-item.active {
  background: linear-gradient(135deg, #21409A, #58B947);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(33,64,154,.3);
}
.sm-nav-item.active::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%; transform: translateY(-50%);
  width: 4px; height: 60%;
  background: #58B947;
  border-radius: 4px 0 0 4px;
}
.sm-nav-item i { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

/* ── Dashboard stat cards ───────────────────────────────────── */
.sm-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--sm-border);
  transition: box-shadow .22s, transform .22s;
}
.sm-stat-card:hover { box-shadow: 0 8px 24px rgba(33,64,154,.12); transform: translateY(-2px); }

/* ── Cards general improvement ──────────────────────────────── */
.sm-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--sm-border);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  overflow: hidden;
}
.sm-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--sm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f8f9fb 0%, #fff 100%);
}
.sm-card-header h5 { margin: 0; font-size: 15px; font-weight: 700; color: var(--sm-navy); }
.sm-card-body { padding: 20px; }
.sm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sm-table th { padding: 10px 16px; background: #f8f9fb; color: var(--sm-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; border-bottom: 1px solid var(--sm-border); }
.sm-table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.sm-table tr:last-child td { border-bottom: none; }
.sm-table tr:hover td { background: #f8f9fb; }

/* ── Goal card complete state ───────────────────────────────── */
.goal-card.complete {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-color: #86efac;
  opacity: 1;
}
.goal-card.complete .goal-title { text-decoration: line-through; color: var(--sm-muted); }

/* ── Improve form controls ──────────────────────────────────── */
.form-control:focus, .form-select:focus {
  border-color: #21409A;
  box-shadow: 0 0 0 3px rgba(33,64,154,.12);
}
.form-label { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--sm-slate); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn { border-radius: 8px; font-weight: 500; transition: all .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: #21409A; border-color: #21409A; }
.btn-primary:hover { background: #162D53; border-color: #162D53; }
.btn-success { background: #58B947; border-color: #58B947; }
.btn-success:hover { background: #3d8a32; border-color: #3d8a32; }

/* ── Improved empty states ──────────────────────────────────── */
.sm-empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--sm-muted);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--sm-border);
}
.sm-empty i { font-size: 48px; opacity: .2; display: block; margin-bottom: 16px; }
.sm-empty h6 { font-weight: 600; margin-bottom: 6px; color: var(--sm-slate); }
.sm-empty p { font-size: 13.5px; margin-bottom: 16px; }

/* ── Sidebar brand area ─────────────────────────────────────── */
.sm-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 2px solid #21409A;
  background: rgba(0,0,0,.15);
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-text {
  font-size: 15px;
  font-weight: 300;
  color: #fff;
  letter-spacing: -.2px;
}
.brand-text strong { font-weight: 700; color: #58B947; }

/* ── Sidebar footer ─────────────────────────────────────────── */
.sm-sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  background: rgba(0,0,0,.1);
}
.sm-user-name { color: rgba(255,255,255,.88); font-size: 13px; font-weight: 600; }
.sm-user-role { color: rgba(255,255,255,.5); font-size: 11.5px; }
.sm-logout-btn {
  margin-left: auto;
  color: rgba(255,255,255,.5);
  font-size: 18px;
  text-decoration: none;
  transition: color .18s;
}
.sm-logout-btn:hover { color: #E41E26; }

/* ── Notifications dropdown ─────────────────────────────────── */
.sm-notif-dropdown {
  width: 320px;
  border: 1px solid var(--sm-border);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
}
.sm-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #162D53, #21409A);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.sm-notif-markall { font-size: 12px; color: rgba(255,255,255,.75); text-decoration: none; }
.sm-notif-markall:hover { color: #fff; }
.sm-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--sm-slate);
  border-bottom: 1px solid #f3f4f6;
  transition: background .15s;
}
.sm-notif-item:hover { background: #f8f9fb; text-decoration: none; color: var(--sm-slate); }
.sm-notif-item.unread { background: #f0f4ff; }
.sm-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #21409A; flex-shrink: 0; margin-top: 5px; }
.sm-notif-title { font-size: 13px; font-weight: 500; line-height: 1.4; }
.sm-notif-time { font-size: 11px; color: var(--sm-muted); margin-top: 2px; }
.sm-notif-empty { padding: 24px 16px; text-align: center; color: var(--sm-muted); font-size: 13px; }

/* ── Progress bar ───────────────────────────────────────────── */
.sm-progress { height: 6px; border-radius: 3px; background: var(--sm-border); overflow: hidden; }
.sm-progress-bar { height: 100%; background: linear-gradient(to right, #21409A, #58B947); border-radius: 3px; transition: width .6s ease; }

/* ── Badge improvements ─────────────────────────────────────── */
.badge { font-weight: 600; letter-spacing: .2px; }
.badge.bg-accepted { background: #dcfce7 !important; color: #14532d; }
.badge.bg-declined { background: #fee2e2 !important; color: #991b1b; }
.badge.bg-active   { background: #dbeafe !important; color: #1e3a8a; }
.badge.bg-open     { background: #fef3c7 !important; color: #92400e; }
.badge.bg-warning  { background: #fef3c7 !important; color: #92400e; }

/* ── Auth layout ────────────────────────────────────────────── */
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #162D53 0%, #21409A 50%, #58B947 100%);
  padding: 20px;
}
.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-title { font-size: 1.6rem; font-weight: 700; color: var(--sm-navy); margin-bottom: 4px; }
.auth-sub { font-size: 14px; color: var(--sm-muted); margin-bottom: 0; }

/* ── Overlay sidebar on mobile ──────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1039;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ── Match score pill (old) ─────────────────────────────────── */
.match-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f4ff;
  color: #21409A;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
}

/* ── How-step ───────────────────────────────────────────────── */
.how-step { text-align: center; padding: 20px; }
.how-step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #21409A, #58B947);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(33,64,154,.25);
}

/* ── Testimonial card ───────────────────────────────────────── */
.testimonial-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(4px);
  transition: transform .2s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 12px; }

/* ── Icon color helpers ─────────────────────────────────────── */
.icon-blue   { background: #dbeafe; color: #21409A; }
.icon-green  { background: #dcfce7; color: #14532d; }
.icon-red    { background: #fee2e2; color: #991b1b; }
.icon-gold   { background: #fef3c7; color: #92400e; }
.icon-purple { background: #f3e8ff; color: #6b21a8; }

/* ── Page header (title shown below topbar) ─────────────────── */
.sm-page-header {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--sm-border);
  margin-bottom: 24px !important;
}
.sm-page-title {
  background: linear-gradient(135deg, #162D53, #21409A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  letter-spacing: -.3px;
}

/* ── Sidebar nav item with improved active/hover ───────────── */
.sm-sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

/* ── Content wrapper ensures proper scroll ─────────────────── */
body.app-layout {
  height: 100vh;
  overflow: hidden;
}
.app-wrapper {
  height: 100vh;
  overflow: hidden;
}
.sm-main {
  overflow-y: scroll;
  overflow-x: hidden;
}
.sm-content {
  padding: 24px 28px 40px;
}

/* ── Mobile scroll fix ──────────────────────────────────────── */
@media (max-width: 767px) {
  body.app-layout {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .app-wrapper { height: auto; overflow: visible; }
  .sm-main { overflow: visible; height: auto; }
  .sm-content { padding: 16px 16px 80px; }
}

/* ================================================================
   DEFINITIVE SCROLL FIX — v3.2
   ================================================================ */

/* Reset layout to allow natural scroll */
html { height: 100%; scroll-behavior: smooth; }
body.app-layout {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.app-wrapper {
  flex: 1;
  display: flex;
  overflow: hidden;
  height: calc(100vh);
}
.sm-sidebar {
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.sm-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  /* Remove fixed height, use flex instead */
  min-height: 0;
}
.sm-content {
  flex: 1;
  padding: 24px 28px 48px;
  min-height: 0;
  overflow: visible;
}

/* Mobile: natural scroll */
@media (max-width: 767px) {
  body.app-layout { height: auto; overflow-y: auto; }
  .app-wrapper { height: auto; overflow: visible; flex-direction: column; }
  .sm-main { overflow: visible; flex: none; }
  .sm-sidebar { display: none; }
  .sm-content { padding: 16px 16px 80px; }
}

/* Background subtle pattern on app pages */
.sm-content {
  background: var(--sm-bg);
}
body.app-layout { background: var(--sm-bg); }

/* Sidebar fixed on desktop */
@media (min-width: 992px) {
  .sm-sidebar { position: fixed; top: 0; left: 0; height: 100vh; z-index: 200; }
  .sm-main { margin-left: var(--sm-sidebar-w); }
}
@media (min-width: 768px) and (max-width: 991px) {
  .sm-sidebar { width: 64px; }
  .sm-sidebar .sm-nav-item span,
  .sm-sidebar .brand-text,
  .sm-sidebar .sm-user-info { display: none; }
  .sm-main { margin-left: 64px; }
}

/* Public pages full scroll */
body.public-layout {
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* Skill tag */
.skill-tag {
  display: inline-block;
  background: #f0f4ff;
  color: #21409A;
  border: 1px solid #c7d2fe;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11.5px;
  font-weight: 500;
  margin: 2px;
}
.skill-tag-option { display: inline-block; cursor: pointer; }
.skill-tag-option.selected .skill-tag { background: #21409A; color: #fff; border-color: #21409A; }

/* sm-mentor-card */
.sm-mentor-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--sm-border);
  padding: 20px;
  transition: box-shadow .22s, transform .22s;
}
.sm-mentor-card:hover { box-shadow: 0 8px 24px rgba(33,64,154,.12); transform: translateY(-2px); }

/* ================================================================
   FINAL POLISH — Animations, Backgrounds, Visual Completeness
   ================================================================ */

/* ── Page-level background textures ────────────────────────── */
.sm-content {
  background: #f4f6fb;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(33,64,154,.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(88,185,71,.03) 0%, transparent 40%);
}

/* ── Card entrance animation ────────────────────────────────── */
@keyframes cardPop {
  0%   { opacity:0; transform:translateY(12px) scale(.98); }
  100% { opacity:1; transform:translateY(0) scale(1); }
}
.animate-card { animation: cardPop .38s ease both; }
.sm-card { animation: cardPop .32s ease both; }

/* ── Sidebar gradient background ───────────────────────────── */
.sm-sidebar {
  background: linear-gradient(180deg, #0d1a2e 0%, #162D53 40%, #1a3460 100%);
}

/* ── Topbar subtle glow ────────────────────────────────────── */
.sm-topbar {
  background: linear-gradient(135deg, #162D53, #1e3a6e);
  box-shadow: 0 2px 20px rgba(22,45,83,.4);
}

/* ── Sidebar nav improved visual ───────────────────────────── */
.sm-nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: translateX(4px);
}
.sm-nav-item.active {
  background: linear-gradient(135deg, rgba(33,64,154,.9), rgba(88,185,71,.7));
  color: #fff;
  box-shadow: 0 4px 16px rgba(33,64,154,.35), inset 0 1px 0 rgba(255,255,255,.1);
}

/* ── Flash/alert improvements ───────────────────────────────── */
.alert {
  border: none;
  border-radius: 12px;
  border-left: 4px solid;
  animation: cardPop .3s ease both;
}
.alert-success { background: #f0fdf4; border-color: #58B947; color: #14532d; }
.alert-danger   { background: #fef2f2; border-color: #E41E26; color: #7f1d1d; }
.alert-warning  { background: #fffbeb; border-color: #f59e0b; color: #78350f; }
.alert-info     { background: #eff6ff; border-color: #21409A; color: #1e3a8a; }

/* ── Form improvements ──────────────────────────────────────── */
.form-control, .form-select {
  border-radius: 10px;
  border: 1.5px solid var(--sm-border);
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: #21409A;
  box-shadow: 0 0 0 3px rgba(33,64,154,.12);
  outline: none;
}
textarea.form-control { resize: vertical; min-height: 80px; }

/* ── Improved modal backdrop ─────────────────────────────────── */
.modal-backdrop { backdrop-filter: blur(4px); }
.modal-content { border-radius: 16px; border: none; box-shadow: 0 24px 64px rgba(0,0,0,.2); overflow: hidden; }
.modal-header { padding: 20px 24px; }
.modal-body   { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; background: #f8f9fb; }

/* ── Table improvements ─────────────────────────────────────── */
.sm-table { font-size: 13.5px; }
.sm-table th {
  background: linear-gradient(135deg, #f8f9fb, #f0f4ff);
  color: #21409A;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Navigation pill tabs ────────────────────────────────────── */
.nav-pills .nav-link { border-radius: 10px; font-weight: 500; color: var(--sm-muted); padding: 8px 18px; }
.nav-pills .nav-link.active { background: linear-gradient(135deg, #21409A, #162D53); color: #fff; box-shadow: 0 4px 12px rgba(33,64,154,.3); }

/* ── Report/status badge with icon ──────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status-badge.open     { background: #fef3c7; color: #92400e; }
.status-badge.open::before { background: #f59e0b; animation: pulse 1.5s infinite; }
.status-badge.resolved { background: #dcfce7; color: #14532d; }
.status-badge.resolved::before { background: #58B947; }
.status-badge.dismissed { background: #f3f4f6; color: #6b7280; }
.status-badge.under_review { background: #dbeafe; color: #1e3a8a; }
.status-badge.under_review::before { background: #21409A; animation: pulse 1.5s infinite; }

/* ── Goal card with left accent ─────────────────────────────── */
.goal-card {
  border-left: 3px solid #21409A;
}
.goal-card.complete {
  border-left-color: #58B947;
}

/* ── Verified badge improved ────────────────────────────────── */
.verified-badge {
  background: linear-gradient(135deg, #21409A, #162D53);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Pagination improvements ────────────────────────────────── */
.page-link { border-radius: 8px !important; margin: 0 2px; color: #21409A; border-color: var(--sm-border); }
.page-item.active .page-link { background: #21409A; border-color: #21409A; }

/* ── Loading spinner overlay ────────────────────────────────── */
.btn .spinner-border-sm { width: 14px; height: 14px; }

/* ── Hover transition for all interactive elements ──────────── */
a, button, .btn, .sm-card, .sm-stat-card, .sm-mentor-card,
.mentor-card, .goal-card, .report-card, .mentee-card,
.chat-item, .sm-notif-item {
  transition-property: background, color, box-shadow, transform, border-color, opacity;
  transition-duration: .2s;
  transition-timing-function: ease;
}

/* ── Public sections ────────────────────────────────────────── */
.nm-features, .sm-features { padding: 80px 0; background: #f8f9fb; }
.nm-how, .sm-how { padding: 80px 0; background: #fff; }
.nm-testimonials, .sm-testimonials { padding: 80px 0; background: linear-gradient(135deg, #162D53, #21409A); }
.nm-testimonials h2, .sm-testimonials h2 { color: #fff; }
.nm-public-footer, .sm-public-footer { background: #162D53; }

/* ── Auth card extra polish ─────────────────────────────────── */
.auth-card {
  animation: cardPop .4s ease both;
  border-top: 4px solid #58B947;
}

/* ═══════════════════════════════════════════════════════════
   SahihiMinds v5 — Authentication & Security CSS
   ═══════════════════════════════════════════════════════════ */

/* ── OAuth buttons ──────────────────────────────────────────*/
.btn-oauth-google,
.btn-oauth-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background .18s, box-shadow .18s;
  border: 1px solid var(--sm-border);
  background: #fff;
  color: #374151;
}
.btn-oauth-google:hover  { background: #f8f9fa; box-shadow: 0 2px 8px rgba(0,0,0,.1); color: #374151; text-decoration: none; }
.btn-oauth-linkedin:hover{ background: #f0f7ff; box-shadow: 0 2px 8px rgba(0,119,181,.12); color: #374151; text-decoration: none; }

/* ── Auth divider ────────────────────────────────────────────*/
.auth-divider {
  position: relative;
  text-align: center;
  margin: 4px 0;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: var(--sm-border);
}
.auth-divider span {
  position: relative;
  background: #fff;
  padding: 0 12px;
  font-size: 12px;
  color: var(--sm-muted);
}

/* ── OTP boxes ───────────────────────────────────────────────*/
.otp-box:focus {
  border-color: var(--sm-blue);
  box-shadow: 0 0 0 3px rgba(33,64,154,.15);
  outline: none;
}
.otp-box.filled { border-color: var(--sm-green); }

/* ── Email verified badge ────────────────────────────────────*/
.email-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #d1e7dd;
  color: #0a3622;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.email-unverified-badge {
  background: #fff3cd;
  color: #664d03;
}

/* ── 2FA settings card ───────────────────────────────────────*/
.tfa-status-card {
  border-radius: var(--sm-radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--sm-border);
  background: var(--sm-surface);
}
.tfa-status-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.tfa-enabled  .tfa-status-icon { background: #d1e7dd; }
.tfa-disabled .tfa-status-icon { background: #f3f4f6; }

/* ── Password strength in auth card ─────────────────────────*/
.auth-card .form-text { font-size: 12px; color: var(--sm-muted); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════
   SahihiMinds v5 — Certificate & Auth Polish
   ═══════════════════════════════════════════════════════════ */

/* ── Certificate card in mentee view ────────────────────────*/
.cert-preview {
  position: relative;
  user-select: none;
}
.cert-preview:hover {
  filter: brightness(1.04);
  transition: filter .2s;
}

/* ── Auth card adjustments ───────────────────────────────────*/
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  width: 100%;
  max-width: 460px;
  margin: 40px auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
@media (max-width: 520px) {
  .auth-card { padding: 24px 20px; margin: 16px auto; border-radius: 12px; }
}
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-title { font-family: var(--font-display, 'DM Serif Display', Georgia, serif); font-size: 1.75rem; color: var(--sm-navy, #162D53); margin-bottom: 4px; text-align: center; }
.auth-sub   { color: var(--sm-muted, #6b7280); font-size: 14px; text-align: center; }

/* Step progress in forgot-password */
.step-progress-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  border: 2px solid var(--sm-border, #e5e7eb);
  color: var(--sm-muted, #6b7280);
  transition: all .25s;
}
.step-progress-dot.done   { background: var(--sm-green, #58B947); border-color: var(--sm-green, #58B947); color: #fff; }
.step-progress-dot.active { background: var(--sm-blue, #21409A); border-color: var(--sm-blue, #21409A); color: #fff; }

/* ── OTP input boxes ─────────────────────────────────────────*/
.otp-box {
  transition: border-color .15s, box-shadow .15s;
  text-align: center;
}
.otp-box:focus {
  border-color: var(--sm-blue, #21409A);
  box-shadow: 0 0 0 3px rgba(33,64,154,.15);
  outline: none;
}

/* ── Verification badges in profile ─────────────────────────*/
.email-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 10px;
  background: #d1e7dd;
  color: #0a3622;
}
.email-unverified-badge {
  background: #fff3cd;
  color: #664d03;
}

/* ── 2FA card ────────────────────────────────────────────────*/
.tfa-status-card {
  border-radius: var(--sm-radius, 10px);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--sm-border, #e5e7eb);
  background: var(--sm-surface, #fff);
}
.tfa-status-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.tfa-enabled  .tfa-status-icon { background: #d1e7dd; }
.tfa-disabled .tfa-status-icon { background: #f3f4f6; }

/* ── Public verify page overrides ───────────────────────────*/
@media (max-width: 640px) {
  .verify-hero { padding: 32px 16px; }
  .verify-card { margin: -20px 12px 32px; }
  .search-box, .result-valid, .result-invalid, .result-not-found { padding: 18px 16px; }
}

/* ═══════════════════════════════════════════════════════════
   SahihiMinds v5 — Session Improvements CSS
   ═══════════════════════════════════════════════════════════ */

/* ── Session flow steps ──────────────────────────────────────*/
.session-flow-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  white-space: nowrap;
}

/* ── Session status badge overrides ─────────────────────────*/
.status-badge-session {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
}
.session-requested  { background:#fff3cd; color:#664d03; }
.session-approved   { background:#d1e7dd; color:#0a3622; }
.session-scheduled  { background:#dbeafe; color:#1e3a8a; }
.session-completed  { background:#d1e7dd; color:#0a3622; }
.session-cancelled  { background:#f3f4f6; color:#6b7280; }
.session-no_show    { background:#fee2e2; color:#991b1b; }
.session-in_progress{ background:#fef3c7; color:#664d03; }

/* ── Session date badge ──────────────────────────────────────*/
.session-date-badge {
  min-width: 48px;
  text-align: center;
  background: var(--sm-blue-light);
  border-radius: 8px;
  padding: 6px 4px;
  flex-shrink: 0;
}

/* ── Rating stars interactive ────────────────────────────────*/
.star-lbl, .rate-star {
  line-height: 1;
  transition: color .1s, transform .1s;
  display: inline-block;
}
.star-lbl:hover, .rate-star:hover {
  transform: scale(1.15);
}

/* ── Session history table ───────────────────────────────────*/
.session-history-row td { vertical-align: middle; }

/* ── Countdown alert ─────────────────────────────────────────*/
.session-countdown {
  font-size: 12.5px;
  font-weight: 600;
}
