:root {
  --brand-blue-dark: #0A2666;
  --brand-blue: #144EC2;
  --brand-blue-cta: #0A2E7A;
  --brand-emerald: #0E8F38;
  --wa-green: #159B3E;
  --online-green: #16C64B;
  --soft-bg: #EDF4FD;
  --card-white: #FFFFFF;
  --input-bg: #F1F5FD;
  --text-primary: #0A1633;
  --text-muted: #475569;
  --border-light: #D8E6FA;
  --border-card: #D8E6FA;
  --error-red: #DC2626;
  --warm-gold: #F59E0B;
  --header-grad: linear-gradient(125deg, #041748 0%, #0E45B5 55%, #082975 100%);
  --shadow-card: 0 4px 14px rgba(10, 38, 102, 0.08);
  --shadow-bar: 0 -3px 16px rgba(10, 38, 102, 0.09);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--soft-bg);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.44;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

button, input, textarea, select {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(74px + var(--safe-bottom));
}

/* Offline & Status Banners */
.offline-banner {
  background: #991B1B;
  color: #FFFFFF;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.toast-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  max-width: min(92vw, 480px);
  padding: 11px 16px;
  border-radius: 14px;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeDown 0.18s ease-out;
}
.toast-banner.success { background: #065F46; }
.toast-banner.error { background: #B91C1C; }
.toast-close {
  color: rgba(255,255,255,0.85);
  font-weight: 800;
  font-size: 16px;
  padding: 0 4px;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Header matching Android screenshot */
.top-header {
  width: 100%;
  background: var(--header-grad);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 14px rgba(10, 34, 92, 0.24);
  overflow: hidden;
}
.header-gold-wave {
  display: block;
  width: 100%;
  height: 11px;
  margin-top: -2px;
}
.brand-subtitle-underline {
  display: block;
  width: 145px;
  height: 5px;
  margin-top: 2px;
}

.top-header-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.brand-row > div {
  min-width: 0;
  flex: 1;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: #FFFFFF;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 0;
  line-height: 1.15;
  color: #FFFFFF;
}
.brand-title span {
  color: #FACC15;
}
.guinea-map-svg {
  width: 44px;
  height: 33px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.28));
}

.brand-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  margin: 1px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 440px) {
  .brand-subtitle {
    font-size: 10.5px;
  }
  .guinea-map-svg {
    width: 36px;
    height: 27px;
  }
  .apk-pill-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.apk-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 20px;
  transition: background 0.15s;
}
.apk-pill-btn:hover { background: rgba(255, 255, 255, 0.26); }

.bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.14);
}
.bell-btn:hover { background: rgba(255, 255, 255, 0.24); }
.bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--error-red);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0D2B6B;
}

/* Desktop inline nav inside header */
.desktop-nav {
  display: none;
}

/* Main Content Container */
.main-container {
  max-width: 1080px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  flex: 1;
}

/* Search & Filters Strip */
.filter-strip {
  width: 100%;
  max-width: 100%;
  background: var(--card-white);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 14px;
}

.search-wrap {
  max-width: 520px;
  width: 100%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-white);
  border: 1.2px solid #CBD5E1;
  border-radius: 26px;
  padding: 8px 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.search-wrap:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.search-wrap input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 13.5px;
  color: var(--text-primary);
}
.search-wrap input::placeholder { color: var(--text-muted); }

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.filter-pills-row::-webkit-scrollbar { display: none; }

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 22px;
  border: 1px solid #CBD5E1;
  background: var(--card-white);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}
.filter-pill.active {
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  color: #FFFFFF;
}
.filter-pill-reset {
  color: var(--error-red);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.online-dot-inline {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online-green);
  display: inline-block;
}

/* Results header */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}
.results-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue-dark);
}
.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-blue);
  padding: 5px 8px;
  border-radius: 10px;
}
.refresh-btn:hover { background: rgba(29, 78, 216, 0.08); }

/* Teacher Grid / List */
.teachers-grid {
  width: 100%;
  padding: 0 12px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.teacher-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: linear-gradient(180deg, #FFFFFF 0%, #F6FAFF 75%, #FFFCF2 100%);
  border: 1px solid #D8E6FA;
  border-radius: 22px;
  padding: 15px;
  box-shadow: 0 4px 14px rgba(15, 44, 103, 0.08);
  display: flex;
  flex-direction: column;
  gap: 11px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.teacher-card:hover {
  box-shadow: 0 8px 22px rgba(15, 44, 103, 0.13);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
  cursor: zoom-in;
}
.avatar-img, .avatar-initials {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  border: 1.5px solid var(--border-light);
}
.dir-avatar-ring .avatar-img, .dir-avatar-ring .avatar-initials {
  width: 78px;
  height: 78px;
  border: 2.5px solid #144EC2;
  box-shadow: 0 2px 8px rgba(20, 78, 194, 0.18);
}
.avatar-initials {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-emerald));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-lg .avatar-img, .avatar-lg .avatar-initials {
  width: 88px;
  height: 88px;
  font-size: 30px;
}
.avatar-sm .avatar-img, .avatar-sm .avatar-initials {
  width: 48px;
  height: 48px;
  font-size: 16px;
}
@keyframes onlinePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(22, 198, 75, 0.55);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
    box-shadow: 0 0 0 5px rgba(22, 198, 75, 0.10);
  }
}
.avatar-online-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #16C64B;
  border: 2.5px solid #FFFFFF;
  animation: onlinePulse 2s ease-in-out infinite;
}

.card-head-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.name-fav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.teacher-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.teacher-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-blue-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
}
.verified-inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
  margin-left: 4px;
}
.teacher-name-row .verified-inline-badge {
  margin-left: 0;
}

.fav-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue-dark);
  flex-shrink: 0;
}
.menu-trigger-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--input-bg);
  border: 1px solid #CBD5E1;
  color: var(--brand-blue-dark);
  flex-shrink: 0;
}
.menu-trigger-btn:hover { background: #E2E8F0; }
.account-status-strip {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fav-icon-btn.active { color: var(--error-red); }
.fav-icon-btn:hover { background: var(--input-bg); }

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 14px;
  max-width: 100%;
  width: fit-content;
}
.location-pill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stars-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
}
.stars-icons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--warm-gold);
}
.rating-text {
  font-weight: 700;
  color: #D97706;
}
.rating-none {
  font-size: 12px;
  color: var(--text-muted);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-subject {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: var(--brand-blue-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
}
.tag-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
}

.teacher-bio {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.48;
  color: #1E293B;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Action buttons matching screenshot */
.card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 2px;
  width: 100%;
  min-width: 0;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  height: 38px;
  padding: 0 6px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.15s, transform 0.1s;
}
.btn-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 374px) {
  .btn-pill {
    font-size: 11px;
    padding: 0 4px;
    gap: 3px;
  }
}
.btn-pill:active { transform: scale(0.98); }

.btn-call-outline {
  background: #FFFFFF;
  color: var(--brand-blue-cta);
  border: 1.3px solid var(--brand-blue);
}
.btn-whatsapp-solid {
  background: var(--wa-green);
  color: #FFFFFF;
}
.btn-msg-solid {
  background: var(--brand-blue-cta);
  color: #FFFFFF;
}
.btn-emerald-solid {
  background: var(--brand-emerald);
  color: #FFFFFF;
}
.btn-gold-solid {
  background: var(--warm-gold);
  color: #FFFFFF;
}
.btn-outline-neutral {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid #CBD5E1;
}
.btn-danger-outline {
  background: #FFFFFF;
  color: var(--error-red);
  border: 1px solid #FECACA;
}
.btn-danger-solid {
  background: var(--error-red);
  color: #FFFFFF;
}

/* Bottom Navigation Bar (Mobile & Tablet) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  box-shadow: var(--shadow-bar);
  padding: 6px 4px calc(6px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.nav-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 2px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-tab.active {
  color: var(--brand-blue);
  font-weight: 800;
}
.nav-tab.active::after {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-blue);
  margin-top: 2px;
}
.nav-badge {
  position: absolute;
  top: 1px;
  left: 54%;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--error-red);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Public Teacher Profile Fullscreen View */
.fullscreen-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--soft-bg);
  display: flex;
  flex-direction: column;
}
.fullscreen-page.chat-fullscreen {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  z-index: 200;
}
.page-topbar {
  background: var(--header-grad);
  color: #FFFFFF;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 110;
  flex-shrink: 0;
  border-bottom: 3px solid #F59E0B;
}
.page-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.page-topbar-title {
  font-size: 16.5px;
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icon-round-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.public-profile-body {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 85%, #FFFCF4 100%);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-blue-dark);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

/* Forms & Inputs */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 5px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid #CBD5E1;
  border-radius: 13px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-blue);
  background: #FFFFFF;
}
.form-textarea {
  min-height: 90px;
  resize: vertical;
}

.chips-select-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip-toggle {
  padding: 7px 12px;
  border-radius: 18px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: var(--text-primary);
}
.chip-toggle.selected {
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  color: #FFFFFF;
}

/* Google Sign-In Card */
.auth-hero-card {
  max-width: 520px;
  margin: 24px auto;
  background: #FFFFFF;
  border-radius: 22px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Messages & Chat */
.chat-shell {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--soft-bg);
}
.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg-bubble-row {
  display: flex;
  flex-direction: column;
  max-width: 78%;
}
.msg-bubble-row.mine { align-self: flex-end; align-items: flex-end; }
.msg-bubble-row.theirs { align-self: flex-start; align-items: flex-start; }

.msg-bubble {
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
.msg-bubble-row.mine .msg-bubble {
  background: var(--brand-blue-cta);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}
.msg-bubble-row.theirs .msg-bubble {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  border-bottom-left-radius: 4px;
}
.msg-link {
  color: #1653C0;
  text-decoration: underline;
  font-weight: 600;
  word-break: break-word;
}
.msg-bubble-row.mine .msg-link {
  color: #BAE6FD;
}
.msg-meta {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.msg-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}
.msg-act-btn {
  border: none;
  background: transparent;
  padding: 2px 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--brand-blue-cta);
  cursor: pointer;
  border-radius: 6px;
}
.msg-act-btn:hover { background: rgba(37, 99, 235, 0.08); }
.msg-act-btn.danger { color: #DC2626; }
.msg-act-btn.danger:hover { background: rgba(220, 38, 38, 0.08); }
.chat-edit-banner {
  flex-shrink: 0;
  background: #EFF6FF;
  border-top: 1px solid #BFDBFE;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chat-edit-banner-text {
  min-width: 0;
  flex: 1;
}
.chat-edit-banner-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-blue-dark);
}
.chat-edit-banner-preview {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-edit-cancel {
  border: none;
  background: #FFFFFF;
  color: var(--brand-blue-dark);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #CBD5E1;
}
.conv-del-btn {
  border: none;
  background: rgba(220, 38, 38, 0.08);
  color: #DC2626;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}
.conv-del-btn:hover { background: rgba(220, 38, 38, 0.16); }
.chat-composer {
  flex-shrink: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 10px 12px calc(10px + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-composer input {
  flex: 1;
  min-width: 0;
  background: var(--input-bg);
  border: 1px solid #CBD5E1;
  border-radius: 22px;
  padding: 10px 14px;
  font-size: 16px;
  outline: none;
}

/* Modals & Dialogs */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(15, 23, 42, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  background: #FFFFFF;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}
.modal-header {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-blue-dark);
}
.modal-body {
  padding: 14px 18px;
  overflow-y: auto;
  flex: 1;
}
.picker-item {
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.picker-item:hover { background: var(--input-bg); }
.picker-item.selected { background: #EFF6FF; color: var(--brand-blue); font-weight: 800; }

/* Photo Viewer */
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(11, 17, 32, 0.94);
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
}
.photo-viewer-top {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.photo-viewer-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.photo-viewer-stage img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  object-fit: contain;
}

/* Admin Tabs & Stats */
.admin-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 14px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  scrollbar-width: none;
}
.admin-tab {
  padding: 8px 13px;
  border-radius: 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--input-bg);
  white-space: nowrap;
}
.admin-tab.active {
  background: var(--brand-blue-dark);
  color: #FFFFFF;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.stat-box {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
}
.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-blue-dark);
}
.stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Context Menu (⋮) */
.menu-wrap { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: 40px;
  min-width: 210px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  padding: 6px;
  z-index: 300;
}
.dropdown-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}
.dropdown-item:hover { background: var(--input-bg); }
.dropdown-item.danger { color: var(--error-red); }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state h3 {
  color: var(--brand-blue-dark);
  margin: 10px 0 6px;
  font-size: 16px;
}

.loader-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px;
}
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #DBEAFE;
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Desktop responsive layout (keep mobile identical, widen nicely on PC) */
@media (min-width: 760px) {
  .teachers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (min-width: 960px) {
  .app-shell {
    padding-bottom: 24px;
  }
  .bottom-nav {
    display: none;
  }
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .desktop-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s;
  }
  .desktop-tab:hover { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }
  .desktop-tab.active {
    background: #FFFFFF;
    color: var(--brand-blue-dark);
  }
  .desktop-tab .nav-badge {
    position: static;
    margin-left: 2px;
  }
}

.seo-fallback {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  max-width: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.visibility-highlight {
  background: linear-gradient(135deg, #EFF6FF 0%, #ECFDF5 100%);
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--brand-blue-dark);
  font-weight: 700;
}

.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 560px) {
  .stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-box.vis-blue { background: #EFF6FF; border: 1px solid #93C5FD; }
.stat-box.vis-blue .stat-num, .stat-box.vis-blue .stat-label { color: #1D4ED8; }
.stat-box.vis-indigo { background: #EEF2FF; border: 1px solid #A5B4FC; }
.stat-box.vis-indigo .stat-num, .stat-box.vis-indigo .stat-label { color: #4338CA; }
.stat-box.vis-amber { background: #FFFBEB; border: 1px solid #FCD34D; }
.stat-box.vis-amber .stat-num, .stat-box.vis-amber .stat-label { color: #B45309; }
.stat-box.vis-emerald { background: #ECFDF5; border: 1px solid #6EE7B7; }
.stat-box.vis-emerald .stat-num, .stat-box.vis-emerald .stat-label { color: #047857; }
.stat-box.vis-blue .stat-label,
.stat-box.vis-indigo .stat-label,
.stat-box.vis-amber .stat-label,
.stat-box.vis-emerald .stat-label {
  font-weight: 700;
}

.completion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.completion-score-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
}
.completion-bar-track {
  width: 100%;
  height: 10px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}
.completion-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}
.completion-tips {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.push-optin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  padding: 12px 14px;
}

.admin-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.status-pill-avail {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: #059669;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}
.status-pill-full {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}
.profile-status-under-avatar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--input-soft-bg);
  color: var(--text-muted);
}
.profile-status-under-avatar.online {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: var(--brand-emerald);
}
.mode-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mode-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid #CBD5E1;
  background: var(--input-soft-bg);
  color: var(--brand-blue-dark);
  cursor: pointer;
  text-align: center;
}
.mode-option-btn strong {
  font-size: 13px;
  font-weight: 800;
}
.mode-option-btn span {
  font-size: 11px;
  color: var(--text-muted);
}
.mode-option-btn.selected {
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  color: #FFFFFF;
}
.mode-option-btn.selected span {
  color: rgba(255, 255, 255, 0.85);
}
.activity-inline {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.activity-inline.online {
  color: var(--brand-emerald);
  font-weight: 700;
}
.card-meta-strip {
  background: var(--soft-bg);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue-dark);
  line-height: 1.4;
}
.requests-banner-btn {
  margin-top: 10px;
  width: 100%;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}
.requests-banner-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  text-align: left;
}
.requests-banner-pill {
  background: var(--brand-blue);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.reminder-banner {
  margin: 10px 12px 0;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Directory Card v2 (matching Royal Blue & Gold style + crisp slightly larger typography) */
.dir-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 88px;
  flex-shrink: 0;
}
.dir-status-offline {
  display: inline-block;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 700;
  padding: 2.5px 6px;
  border-radius: 10px;
  text-align: center;
  max-width: 86px;
  word-break: break-word;
  margin-top: -9px;
  position: relative;
  z-index: 3;
  box-shadow: 0 1px 4px rgba(15, 44, 103, 0.10);
}
.dir-exp-divider {
  height: 1px;
  background: #E2ECFA;
  margin-top: 2px;
}
.dir-rating-pill {
  display: inline-flex;
  align-items: center;
  background: #0E409E;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8.5px;
  border-radius: 14px;
  white-space: nowrap;
}
.dir-rating-pill.nouveau {
  background: #E0ECFF;
  color: var(--brand-blue-dark);
}
.dir-info-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  min-width: 0;
}
.dir-info-line span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dir-avail-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.dir-avail-pill {
  display: inline-flex;
  align-items: center;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: var(--brand-blue-dark);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8.5px;
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
}
.dir-edu-box {
  background: #F4F8FF;
  border: 1px solid #E0ECFF;
  border-radius: 16px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dir-edu-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dir-edu-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-blue-dark);
}
.dir-subject-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #DFECFF;
  border: 1px solid #C5DCFF;
  color: var(--brand-blue-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 16px;
}
.dir-level-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid #93C5FD;
  color: var(--brand-blue-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 16px;
}
.dir-level-check {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0E5AE0;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-royal-grad {
  background: linear-gradient(180deg, #144EC2 0%, #0A2E7A 100%);
  color: #FFFFFF;
  height: 41px;
  font-size: 12.5px;
  box-shadow: 0 2px 6px rgba(10, 46, 122, 0.22);
}
.btn-wa-grad {
  background: linear-gradient(180deg, #20BE52 0%, #118D38 100%);
  color: #FFFFFF;
  height: 41px;
  font-size: 12.5px;
  box-shadow: 0 2px 6px rgba(17, 141, 56, 0.22);
}
.btn-wa-grad {
  background: linear-gradient(180deg, #20BE52 0%, #118D38 100%);
  color: #FFFFFF;
  height: 40px;
  font-size: 12.5px;
  box-shadow: 0 2px 6px rgba(17, 141, 56, 0.22);
}

/* --- Directory 2-Column Grid (Android v2.0.8) --- */
.dir-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 6px;
  overflow: visible;
  position: relative;
  z-index: 40;
}
.dir-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.dir-section-bar {
  width: 3.5px;
  height: 18px;
  border-radius: 2px;
  background: #0E5AE0;
  flex-shrink: 0;
}
.dir-section-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--brand-blue-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dir-section-count-pill {
  background: #0E5AE0;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3.5px 10px;
  border-radius: 14px;
  white-space: nowrap;
}
.teachers-grid-2col {
  width: 100%;
  padding: 4px 12px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 680px) and (max-width: 1023px) {
  .teachers-grid-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (min-width: 1024px) {
  .top-header-inner,
  .main-container {
    max-width: 1200px;
  }
  .teachers-grid-2col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 1400px) {
  .top-header-inner,
  .main-container {
    max-width: 1440px;
  }
  .teachers-grid-2col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}
.dir-grid-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(15, 44, 103, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  min-width: 0;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.dir-grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 44, 103, 0.13);
}
.dir-grid-photo-box {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #F1F5F9;
  cursor: zoom-in;
}
@media (min-width: 680px) {
  .dir-grid-photo-box {
    height: 195px;
  }
}
@media (min-width: 1024px) {
  .dir-grid-photo-box {
    height: 205px;
  }
}
.dir-grid-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.dir-grid-initials {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-emerald));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dir-grid-rating-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.16);
}
.dir-grid-rating-badge svg { width: 14px; height: 14px; }
@keyframes gridBluePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 5px rgba(29, 111, 232, 0.45); }
  50% { opacity: 0.45; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px rgba(29, 111, 232, 0.18); }
}
.dir-grid-online-dot {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1D6FE8;
  animation: gridBluePulse 1.6s ease-in-out infinite;
}
.dir-grid-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.dir-grid-name {
  margin: 0;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--brand-blue-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dir-grid-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.dir-grid-meta-ico {
  color: #0E5AE0;
  display: inline-flex;
  flex-shrink: 0;
}
.dir-grid-meta-ico svg { width: 16px; height: 16px; }
.dir-grid-meta-txt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dir-grid-profile-btn {
  margin-top: auto;
  width: 100%;
  height: 41px;
  border-radius: 21px;
  background: #0E5AE0;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}
.dir-grid-profile-btn svg { width: 16px; height: 16px; }

/* --- Public Teacher Profile (Android v2.0.9 / v2.1.4) --- */
.pub-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pub-photo-col {
  width: 94px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pub-photo-wrap {
  position: relative;
  width: 94px;
  height: 94px;
}
.pub-photo-circle {
  position: relative;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid #0E5AE0;
  box-shadow: 0 4px 14px rgba(14, 90, 224, 0.16);
  cursor: zoom-in;
  background: #FFFFFF;
}
.pub-circle-dot {
  right: 2px;
  bottom: 2px;
  z-index: 3;
}
.pub-hero-card {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #D6E4F8;
  border-radius: 20px;
}
.pub-hero-topbar {
  height: 5px;
  background: linear-gradient(90deg, #0E5AE0, #1D6FE8);
}
.pub-hero-inner {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pub-verified-pill {
  display: inline-block;
  background: #0E5AE0;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.pub-avail-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}
.pub-avail-blue-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: var(--brand-blue-dark);
  font-size: clamp(10.2px, 2.85vw, 11.5px);
  line-height: 1.25;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}
.pub-level-blue-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid #93C5FD;
  color: var(--brand-blue-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.pub-level-blue-check {
  color: #0E5AE0;
  font-weight: 800;
}
.pub-compact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pub-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F5F9FF;
  border: 1px solid #D6E4F8;
  border-radius: 10px;
  padding: 4px 9px;
  font-size: 12px;
  color: var(--brand-blue-dark);
}
.pub-fav-icon-btn {
  padding: 7px !important;
  background: #F8FAFC !important;
  border-color: #D6E4F8 !important;
  color: var(--brand-blue-dark) !important;
}
.pub-fav-icon-btn.active {
  background: #E5EEFF !important;
  border-color: #0E5AE0 !important;
  color: #0E5AE0 !important;
}
.pub-hero-divider {
  height: 1px;
  background: #E2ECF8;
}
.pub-quick-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pub-pill-btn {
  height: 42px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.pub-pill-btn.primary {
  background: #0E5AE0;
  color: #FFFFFF;
}
.pub-pill-btn.whatsapp {
  background: #EBF3FF;
  color: var(--brand-blue-dark);
  border: 1px solid #93C5FD;
}
.pub-pill-btn.outline {
  background: #FFFFFF;
  color: var(--brand-blue-dark);
  border: 1.5px solid #0E5AE0;
}
.pub-card-gold-btn {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  background: var(--brand-blue-dark);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}
.pub-sms-link-wrap {
  text-align: center;
}
.pub-sms-text-link {
  background: none;
  border: none;
  color: #0E5AE0;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pub-sms-text-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.pub-photo-box {
  position: relative;
  width: 114px;
  height: 114px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(10, 38, 102, 0.12);
  cursor: zoom-in;
  background: #FFFFFF;
}
.pub-photo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.pub-photo-initials {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-emerald));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-offline-badge {
  margin-top: 5px;
  background: rgba(226, 232, 240, 0.9);
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  text-align: center;
}
.pub-identity-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pub-name-fav-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.pub-name-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.pub-name-txt {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--brand-blue-dark);
}
.pub-name-tail {
  white-space: nowrap;
  display: inline;
}
.pub-name-txt .verified-inline-badge {
  vertical-align: -2px;
  margin-left: 5px;
}
.pub-fav-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #FCEEEF;
  border: 1px solid #F5D0D6;
  color: #DC2626;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.pub-fav-pill.active {
  background: #FDE8E8;
  border-color: #FCA5A5;
}
.pub-fav-pill svg { width: 16px; height: 16px; }
.pub-bio-toggle {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-blue);
}
.pub-bio-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.48;
  color: #1E293B;
}
.pub-bio-text.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.school-more-wrap {
  position: relative;
}
.school-more-menu {
  position: absolute;
  top: 44px;
  right: 0;
  min-width: 220px;
  background: #FFFFFF;
  border: 1px solid #D6E4F8;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(13, 43, 107, 0.22);
  padding: 6px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.school-more-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.school-more-item:hover:not(:disabled) {
  background: #EFF6FF;
}
.school-more-item:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}
.school-more-item.danger {
  color: var(--error-red);
}
.school-more-item.danger:hover:not(:disabled) {
  background: #FEF2F2;
}
.school-hl-ticker {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(90deg, #DBEAFE 0%, #FEF3C7 35%, #D1FAE5 70%, #DBEAFE 100%);
  background-size: 200% 100%;
  animation: schoolHlBgShift 9s ease-in-out infinite;
  border: 1.5px solid #3B82F6;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.14);
  color: var(--brand-blue-dark);
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
@keyframes schoolHlBgShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.school-hl-ticker-badge {
  background: #0E5AE0;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.school-hl-ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-align: center;
}
.school-hl-ticker-txt {
  display: inline-block;
  white-space: nowrap;
  font-weight: 800;
  transition: color 0.45s ease, font-size 0.45s ease;
  animation: schoolHlSwing 7s ease-in-out infinite, schoolHlPulse 9s ease-in-out infinite;
}
@keyframes schoolHlSwing {
  0%, 10% { transform: translateX(0); }
  35% { transform: translateX(-18px); }
  65% { transform: translateX(18px); }
  90%, 100% { transform: translateX(0); }
}
@keyframes schoolHlPulse {
  0%, 30% {
    color: #0A2E72;
    font-size: 12px;
  }
  33.3%, 63% {
    color: #B45309;
    font-size: 14px;
  }
  66.6%, 96% {
    color: #047857;
    font-size: 13px;
  }
  100% {
    color: #0A2E72;
    font-size: 12px;
  }
}
.school-tuition-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #F0F7FF;
  border: 1.5px solid #60A5FA;
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s ease, background 0.15s ease;
}
.school-tuition-card:hover {
  background: #E5F1FF;
}
.school-tuition-card:active {
  transform: scale(0.99);
}
.transfer-pref-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  margin-top: 12px;
}
.transfer-pref-card.active {
  background: #EFF6FF;
  border-color: #93C5FD;
}
.transfer-switch-btn {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: #CBD5E1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.transfer-switch-btn.on {
  background: #0E5AE0;
}
.transfer-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.transfer-switch-btn.on .transfer-switch-knob {
  transform: translateX(20px);
}
.pub-stats-bar {
  display: flex;
  align-items: center;
  padding: 13px 8px;
}
.pub-stat-item {
  flex: 1;
  text-align: center;
}
.pub-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-blue-dark);
}
.pub-stat-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.pub-stat-div {
  width: 1px;
  height: 36px;
  background: #E2E8F0;
}
.pub-cta-green, .pub-cta-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 12px;
  min-height: 54px;
  text-align: left;
}
.pub-cta-green {
  background: #169B42;
  color: #FFFFFF;
}
.pub-cta-green strong, .pub-cta-call strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}
.pub-cta-green small {
  display: block;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.92);
}
.pub-cta-call {
  background: #FFFFFF;
  color: var(--brand-blue-dark);
  border: 1.5px solid #1660C7;
}
.pub-cta-call svg { color: #1660C7; width: 20px; height: 20px; }
.pub-cta-call small {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
}
.pub-cta-wa, .pub-cta-sms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  min-height: 46px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 800;
}
.pub-cta-wa {
  background: #EAF8EF;
  border: 1px solid #BBE6C8;
  color: #169B42;
}
.pub-cta-sms {
  background: #F3F7FE;
  border: 1px solid #C5DBF9;
  color: #1660C7;
}

/* --- White & Blue Chat Theme (APK parity) --- */
.chat-theme-wb {
  background: #F1F5FB;
}
.chat-topbar-white {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  z-index: 10;
}
.chat-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1E293B;
  flex-shrink: 0;
}
.chat-icon-btn:hover { background: #F1F5F9; }
.chat-peer-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-status-line {
  font-size: 11.5px;
  color: #64748B;
}
.chat-status-line.online { color: #1D6FE8; font-weight: 600; }
.chat-status-line.typing { color: #1D6FE8; font-weight: 700; font-style: italic; }
.chat-offline-sms-bar {
  background: #FFFBEB;
  border-bottom: 1px solid #FDE68A;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #92400E;
  flex-shrink: 0;
}
.chat-offline-sms-bar button {
  font-size: 12px;
  font-weight: 800;
  color: #B45309;
  padding: 3px 8px;
}
.chat-shell-wb {
  background: #F1F5FB;
}
.msg-line {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  width: 100%;
}
.msg-line.mine { justify-content: flex-end; }
.msg-line.theirs { justify-content: flex-start; }
.chat-msg-avatar {
  flex-shrink: 0;
  margin-bottom: 2px;
  cursor: pointer;
}
.avatar-xs .avatar-img, .avatar-xs .avatar-initials {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.chat-theme-wb .msg-bubble-row.mine .msg-bubble {
  background: #DBEAFE;
  color: #0F172A;
  border: 1px solid #BFDBFE;
  border-radius: 18px 18px 5px 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.chat-theme-wb .msg-bubble-row.theirs .msg-bubble {
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid #E9EEF7;
  border-radius: 18px 18px 18px 5px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.chat-theme-wb .msg-bubble-row.mine .msg-link,
.chat-theme-wb .msg-bubble-row.theirs .msg-link {
  color: #0066FF;
}
.msg-bubble-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 3px;
  font-size: 10.5px;
  color: #475569;
}
.chat-theme-wb .msg-bubble-row.theirs .msg-bubble-foot {
  color: #94A3B8;
}
.msg-edited-tag {
  font-style: italic;
  font-size: 10px;
}
.msg-tick {
  font-size: 11.5px;
  font-weight: 800;
}
.chat-composer-wb {
  flex-shrink: 0;
  background: #FFFFFF;
  border-top: 1px solid #E8EEF5;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-input-pill {
  flex: 1;
  min-width: 0;
  background: #F1F5FA;
  border: 1px solid #E2E8F0;
  border-radius: 26px;
  padding: 10px 16px;
}
.chat-input-pill input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  color: #0F172A;
}
.chat-send-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1565C0;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.28);
}

/* --- Personal Teacher Profile Header & Layout (Android v2.1.5) --- */
.tp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 0;
}
.tp-header-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-blue-dark);
}
.tp-header-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.tp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  flex-shrink: 0;
}
.tp-status-pill.active {
  background: #EFF6FF;
  border: 1px solid #93C5FD;
  color: var(--brand-blue-dark);
}
.tp-status-pill.hidden {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #475569;
}
.tp-status-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: #0E5AE0;
}
.tp-status-pill.hidden .tp-status-dot {
  background: #64748B;
}
.tp-stats-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tp-stat-tile {
  border-radius: 16px;
  padding: 10px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.tp-tile-ico { display: inline-flex; }
.tp-tile-num { font-size: 17px; font-weight: 800; line-height: 1.1; }
.tp-tile-lbl { font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.tp-tile-blue,
.tp-tile-purple,
.tp-tile-orange,
.tp-tile-green {
  background: #FFFFFF;
  border: 1px solid #D6E4F8;
  box-shadow: 0 2px 6px rgba(15, 44, 103, 0.04);
}
.tp-tile-blue .tp-tile-ico,
.tp-tile-purple .tp-tile-ico,
.tp-tile-orange .tp-tile-ico,
.tp-tile-green .tp-tile-ico { color: #0E5AE0; }
.tp-tile-blue .tp-tile-num,
.tp-tile-purple .tp-tile-num,
.tp-tile-orange .tp-tile-num,
.tp-tile-green .tp-tile-num { color: var(--brand-blue-dark); }
.tp-tile-blue .tp-tile-lbl,
.tp-tile-purple .tp-tile-lbl,
.tp-tile-orange .tp-tile-lbl,
.tp-tile-green .tp-tile-lbl { color: #475569; }
.tp-requests-card {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #DDE6F3;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(15, 44, 103, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.tp-requests-ico {
  color: #0E4B9E;
  display: inline-flex;
  flex-shrink: 0;
}
.tp-requests-ico svg { width: 26px; height: 26px; }
.tp-requests-text {
  flex: 1;
  min-width: 0;
}
.tp-requests-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--brand-blue-dark);
}
.tp-requests-text small {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}
.tp-requests-pill {
  background: #0E4B9E;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tp-preview-heading {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-blue-dark);
  padding: 2px 4px 0;
}
.tp-share-card-btn {
  width: 100%;
  height: 44px;
  font-size: 13.5px;
}
.tp-coords-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tp-coord-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.tp-coord-line svg { color: var(--brand-blue); flex-shrink: 0; }

/* --- Android Directory Filter Strip & Advanced Modal (v30) --- */
.dir-filter-strip-android {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dir-search-android {
  width: 88%;
  max-width: 520px;
  height: 38px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  box-shadow: 0 2px 5px rgba(15, 44, 103, 0.07);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dir-search-android:focus-within {
  border-color: #0E5AE0;
  box-shadow: 0 0 0 3px rgba(14, 90, 224, 0.12);
}
.dir-search-ico {
  color: #64748B;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.dir-search-ico svg { width: 17px; height: 17px; }
.dir-search-android input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text-primary);
}
.dir-search-android input::placeholder {
  color: #64748B;
}
.dir-filter-row-android {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dir-pill-btn {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
@media (min-width: 600px) {
  .dir-pill-btn {
    font-size: 12.5px;
    padding: 0 12px;
  }
}
.dir-pill-txt {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dir-pill-ico {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.dir-pill-ico svg { width: 14px; height: 14px; }
.dir-pill-ico.blue {
  color: #0E5AE0;
}
.dir-pill-chev {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.dir-pill-chev svg { width: 15px; height: 15px; }
.dir-pill-region {
  background: #0E5AE0;
  color: #FFFFFF;
  border: 1px solid #0E5AE0;
}
.dir-pill-subject {
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid #D5E1F3;
}
.dir-pill-subject .dir-pill-chev {
  color: #64748B;
}
.dir-pill-subject.active {
  background: #0E5AE0;
  color: #FFFFFF;
  border-color: #0E5AE0;
}
.dir-pill-subject.active .dir-pill-chev {
  color: #FFFFFF;
}
.dir-adv-btn {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #EAF1FD;
  color: #0D2B6B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.dir-adv-btn.active {
  background: #0E5AE0;
  color: #FFFFFF;
}
.dir-adv-btn svg { width: 16px; height: 16px; }
.dir-adv-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EAB308;
  border: 1.5px solid #FFFFFF;
}
.dir-grid-name-row .verified-inline-badge {
  margin-left: 0;
}
.dir-grid-name {
  flex: 0 1 auto;
}
.adv-picker-card {
  width: 100%;
  background: #F4F7FC;
  border: 1px solid #DCE6F5;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}
.adv-picker-card small {
  display: block;
  font-size: 11px;
  color: #64748B;
  margin-bottom: 2px;
}
.adv-picker-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-blue-dark);
}
.adv-picker-card span {
  color: var(--brand-blue);
  display: inline-flex;
  flex-shrink: 0;
}
.adv-switch-row {
  width: 100%;
  background: transparent;
  padding: 4px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.adv-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.adv-blue-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1D6FE8;
  flex-shrink: 0;
}
.adv-toggle {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #CBD5E1;
  position: relative;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.adv-toggle.on {
  background: #0E5AE0;
}
.adv-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}
.adv-toggle.on .adv-toggle-knob {
  transform: translateX(18px);
}
.adv-reset-btn {
  background: transparent;
  color: #DC2626;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 4px;
  cursor: pointer;
}

/* --- Demandes de cours Modern UI (v31) --- */
.cr-topbar-gold {
  border-bottom: 3px solid #F5B700;
}
.cr-top-section {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cr-hero-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #EDF4FF;
  border: 1px solid #DBEAFE;
  border-radius: 16px;
}
.cr-hero-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(14, 90, 224, 0.1);
}
.cr-hero-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-blue-dark);
}
.cr-hero-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #475569;
  line-height: 1.3;
}
.cr-filter-pills {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.cr-filter-pills::-webkit-scrollbar { display: none; }
.cr-pill {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.cr-pill svg { width: 14px; height: 14px; }
.cr-pill.cr-pill-primary {
  background: #0E5AE0;
  border-color: #0E5AE0;
  color: #FFFFFF;
}
.cr-publish-btn {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0E5AE0, #0A3896);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(14, 90, 224, 0.28);
  cursor: pointer;
}
.cr-form-card {
  background: #FFFFFF;
  border: 1px solid #DCE6F5;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(15, 44, 103, 0.08);
}
.cr-form-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
}
.cr-form-head-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #EDF4FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cr-form-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-blue-dark);
}
.cr-form-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748B;
}
.cr-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cr-mode-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1.5px solid #DCE6F5;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cr-mode-card.selected {
  background: #EAF2FF;
  border-color: #0E5AE0;
  box-shadow: 0 2px 8px rgba(14, 90, 224, 0.14);
}
.cr-mode-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cr-mode-card strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-blue-dark);
}
.cr-mode-card small {
  display: block;
  font-size: 10.5px;
  color: #64748B;
  line-height: 1.25;
}
.cr-seg-3, .cr-seg-2 {
  display: grid;
  gap: 7px;
}
.cr-seg-3 { grid-template-columns: repeat(3, 1fr); }
.cr-seg-2 { grid-template-columns: repeat(2, 1fr); }
.cr-seg-btn {
  height: 38px;
  border-radius: 12px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.cr-seg-btn.selected {
  background: #0E5AE0;
  border-color: #0E5AE0;
  color: #FFFFFF;
}
.cr-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 3px 12px rgba(15, 44, 103, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cr-card.closed {
  opacity: 0.9;
}
.cr-card-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.cr-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.cr-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #0E5AE0;
  padding: 2px;
  background: #EFF6FF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0E5AE0;
  font-size: 16px;
}
.cr-avatar-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.cr-avatar-verified {
  position: absolute;
  right: -2px;
  bottom: -2px;
  background: #FFFFFF;
  border-radius: 50%;
  display: inline-flex;
  padding: 1px;
}
.cr-author-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cr-author-name {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--brand-blue-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-meta-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}
.cr-meta-line svg {
  color: #334155;
  flex-shrink: 0;
}
.cr-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  flex-shrink: 0;
}
.cr-status-pill.open {
  background: #DCFCE7;
  color: #15803D;
}
.cr-status-pill.closed {
  background: #F1F5F9;
  color: #64748B;
}
.cr-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.cr-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cr-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.cr-tag-subject {
  background: #EAF2FF;
  color: #0D2B6B;
}
.cr-tag-level {
  background: #DCFCE7;
  color: #15803D;
}
.cr-tag-mode {
  background: #EAF2FF;
  color: #1E293B;
}
.cr-info-grid {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.cr-info-grid.two-cols > .cr-budget-box,
.cr-info-grid.two-cols > .cr-days-box {
  flex: 1 1 140px;
}
.cr-info-divider {
  width: 1px;
  background: #E2E8F0;
  margin: 2px 0;
}
@media (max-width: 360px) {
  .cr-info-divider { display: none; }
}
.cr-budget-box {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #B45309;
  font-size: 13px;
  font-weight: 800;
}
.cr-days-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 12px;
  background: #FAF6EE;
  border: 1px solid #EFE6D5;
}
.cr-days-box small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #0E5AE0;
}
.cr-days-box strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #0D2B6B;
}
.cr-days-ico { display: inline-flex; flex-shrink: 0; }
.cr-quote-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #EDF4FF;
}
.cr-quote-ico {
  flex-shrink: 0;
  margin-top: 1px;
}
.cr-quote-box p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.42;
  color: #1E293B;
  font-weight: 500;
}
.cr-actions-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.cr-btn-outline {
  flex: 1;
  min-width: 105px;
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.5px solid #0E5AE0;
  color: #0E5AE0;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
}
.cr-btn-danger {
  flex: 1;
  min-width: 105px;
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  background: #DC2626;
  border: 1.5px solid #DC2626;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
}

.push-optin-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 14px 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #EEF4FF;
  border: 1px solid #BFDBFE;
}

.cr-school-photo-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1.5px dashed #93C5FD;
  background: #F8FBFF;
}
.cr-school-photo-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #CBD5E1;
  background: #E2E8F0;
  flex-shrink: 0;
}
.notif-header-img-wrap {
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #CBD5E1;
  background: #F1F5F9;
  cursor: pointer;
}
.notif-header-img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  display: block;
}

/* OpenStreetMap View & Location Picker */
.view-pill-wrap {
  position: relative;
  display: inline-block;
}
.view-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  color: #0E5AE0;
  border: 1px solid #DCE6F5;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 43, 107, 0.09);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.view-pill-btn:active {
  transform: scale(0.97);
}
.view-pill-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 148px;
  background: #FFFFFF;
  border: 1px solid #DCE6F5;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(13, 43, 107, 0.18);
  padding: 6px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.view-pill-wrap.open .view-pill-menu {
  display: flex;
}
.view-pill-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--brand-blue-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}
.view-pill-option:hover {
  background: #F1F5F9;
}
.view-pill-option.active {
  background: #EFF6FF;
  color: #0E5AE0;
}
.osm-map-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}
.schools-map-wrap {
  position: relative;
  height: clamp(460px, calc(100dvh - 235px), 660px);
  min-height: 460px;
}
.schools-map-wrap .osm-map-container {
  height: 100% !important;
}
.schools-map-preview-slot {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 450;
  pointer-events: none;
}
.schools-map-preview-slot > * {
  pointer-events: auto;
}
@media (min-width: 720px) {
  .schools-map-preview-slot {
    max-width: 420px;
    left: 12px;
    right: auto;
    bottom: 12px;
  }
}
.osm-map-container {
  width: 100%;
  height: 410px;
  background: #E8F1FA;
  position: relative;
  z-index: 1;
}
@media (min-width: 720px) {
  .osm-map-container {
    height: 490px;
  }
}
.osm-map-note {
  padding: 9px 13px;
  font-size: 11.5px;
  color: var(--text-muted);
  background: #F8FAFC;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.osm-pin-dot {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 3px 8px rgba(13, 43, 107, 0.35);
}
.osm-pin-dot span {
  transform: rotate(45deg);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.osm-popup-card {
  min-width: 205px;
  max-width: 245px;
  font-family: inherit;
}
.osm-popup-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}
.osm-popup-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #DBEAFE;
  color: #1E3A8A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.osm-popup-btn {
  width: 100%;
  margin-top: 7px;
  border: 0;
  border-radius: 10px;
  padding: 7px 10px;
  background: linear-gradient(135deg, #0D2B6B, #1D4ED8);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.osm-picker-box {
  background: #F8FBFF;
  border: 1px solid #CFE0F7;
  border-radius: 14px;
  padding: 10px 12px;
}
.osm-picker-modal-map {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  background: #E8F1FA;
  margin-bottom: 10px;
  z-index: 1;
}

/* Distance Badges & GPS Pill */
.dir-grid-dist-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.80);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}
.pub-dist-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #DBEAFE;
  border: 1px solid #93C5FD;
  color: var(--brand-blue-dark);
  font-size: 11px;
  font-weight: 800;
}
.gps-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: #EAF1FD;
  border: 1px solid #C5DCFF;
  color: var(--brand-blue-dark);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.gps-pill-btn.active {
  background: #0E5AE0;
  border-color: #0E5AE0;
  color: #FFFFFF;
}
.dir-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.osm-radius-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 12px 8px;
  scrollbar-width: none;
}
.osm-radius-bar::-webkit-scrollbar { display: none; }
.osm-radius-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.osm-radius-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #D5E1F3;
  color: var(--brand-blue-dark);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.osm-radius-chip.active {
  background: #0E5AE0;
  border-color: #0E5AE0;
  color: #FFFFFF;
}

/* Course Request Pro Enhancements */
.cr-templates-box {
  background: #F0F7FF;
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  padding: 10px 12px;
}
.cr-templates-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand-blue-dark);
  margin-bottom: 7px;
}
.cr-templates-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cr-template-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #93C5FD;
  color: #0E5AE0;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.cr-template-chip:hover {
  background: #EFF6FF;
}
.cr-tag-goal {
  background: #FEF3C7;
  color: #92400E;
}
.cr-tag-sessions {
  background: #F3E8FF;
  color: #6B21A8;
}
.cr-dist-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #DBEAFE;
  color: var(--brand-blue-dark);
  font-size: 10.5px;
  font-weight: 800;
}
.cr-btn-primary {
  flex: 1.15;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #0E5AE0, #0A3896);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.cr-budget-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.cr-budget-chip {
  padding: 4px 9px;
  border-radius: 999px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.cr-budget-chip.selected {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
}

/* --- School Stats, Chart, Likes & Ratings (v58) --- */
.school-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
  font-size: 11px;
  font-weight: 800;
}
.school-mine-stats-line {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #F5F9FF;
  border: 1px solid #D6E4F8;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-blue-dark);
}
.school-hl-like-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.school-hl-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #93C5FD;
  background: #FFFFFF;
  color: var(--brand-blue-dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.school-hl-like-btn.liked {
  background: #0E5AE0;
  border-color: #0E5AE0;
  color: #FFFFFF;
}
.school-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.school-kpi-tile {
  padding: 9px 11px;
  border-radius: 12px;
  background: #F5F9FF;
  border: 1px solid #D6E4F8;
}
.school-kpi-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.school-kpi-value {
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
}
.school-chart-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #F8FBFF;
  border: 1px solid #E2ECF8;
}
.school-chart-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-blue-dark);
}
.school-chart-days {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.school-star-picker {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 6px 0 8px;
}
.school-star-btn {
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
  color: #CBD5E1;
}
.school-star-btn.active {
  color: #F59E0B;
}
.school-review-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #F8FBFF;
  border: 1px solid #E2ECF8;
  margin-top: 8px;
}

/* --- School Fullscreen Analytics Dashboard (v59) --- */
.sch-stats-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: #F3F6FB;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sch-stats-topbar {
  background: linear-gradient(135deg, #0A43B5, #1565E8);
  color: #FFFFFF;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.sch-stats-period-pill {
  background: #FFFFFF;
  color: var(--brand-blue-dark);
  border: 0;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}
.sch-stats-body {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sch-stats-card {
  background: #FFFFFF;
  border: 1px solid #E2EBF7;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(15, 43, 91, 0.04);
}
.sch-stats-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sch-stats-kpi4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 560px) {
  .sch-stats-kpi4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.sch-pastel-kpi {
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid transparent;
}
.sch-pastel-kpi.blue { background: #EFF6FF; border-color: #BFDBFE; }
.sch-pastel-kpi.green { background: #ECFDF5; border-color: #A7F3D0; }
.sch-pastel-kpi.orange { background: #FFF7ED; border-color: #FED7AA; }
.sch-pastel-kpi.purple { background: #F5F3FF; border-color: #DDD6FE; }
.sch-period-tabs {
  display: inline-flex;
  background: #F1F5F9;
  padding: 3px;
  border-radius: 10px;
  gap: 3px;
}
.sch-period-tab {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.sch-period-tab.active {
  background: #1565E8;
  color: #FFFFFF;
}
.sch-stats-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) {
  .sch-stats-split {
    grid-template-columns: 1fr 1fr;
  }
}
.sch-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 12.5px;
}
.sch-action-row:last-child {
  border-bottom: 0;
}

/* --- APK-parity Conversations List --- */
.conv-screen-apk {
  background: #F3F6FD;
  min-height: calc(100vh - 120px);
  padding: 12px 14px 20px;
}
.conv-topbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.conv-search-pill {
  flex: 1;
  min-width: 0;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid #E9EFFA;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.conv-search-ico {
  color: #2563EB;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.conv-search-pill input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #0F172A;
}
.conv-search-pill input::placeholder {
  color: #3B82F6;
}
.conv-search-clear {
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}
.conv-list-apk {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.conv-card-apk {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #ECF1FA;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.conv-card-apk:active {
  transform: scale(0.99);
}
.conv-card-avatar {
  flex-shrink: 0;
  cursor: pointer;
}
.avatar-conv-apk .avatar-img,
.avatar-conv-apk .avatar-initials {
  width: 52px;
  height: 52px;
  font-size: 18px;
}
.conv-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.conv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.conv-card-name {
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-card-time {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 500;
  flex-shrink: 0;
}
.conv-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.conv-card-preview {
  font-size: 13px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.conv-card-preview.unread {
  color: #334155;
  font-weight: 600;
}
.conv-card-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.conv-unread-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0A49E6;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.conv-tick {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

/* ===== School Profile Pill Tabs & Contextual Modals ===== */
.school-tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}
.school-tabs-bar::-webkit-scrollbar {
  display: none;
}
.school-tab-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #F4F8FF;
  border: 1px solid #93C5FD;
  color: var(--brand-blue-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(10, 46, 114, 0.08);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.school-tab-pill:hover {
  background: #E5EEFF;
  border-color: #0E5AE0;
}
.school-tab-pill:active {
  transform: scale(0.97);
}
.school-tab-pill.active {
  background: #0E5AE0;
  border-color: #0E5AE0;
  color: #FFFFFF;
}
.school-schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #F4F8FF;
  border: 1px solid #D6E4F8;
  font-size: 13px;
  color: #334155;
}
.school-schedule-row strong {
  color: var(--brand-blue-dark);
  font-weight: 700;
  text-align: right;
}
.school-result-kpi {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
}
.school-result-kpi .kpi-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-blue-dark);
  line-height: 1.15;
}
.school-result-kpi .kpi-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #0E5AE0;
  margin-top: 3px;
}

.act-carousel-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.act-photo-carousel {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.act-photo-carousel::-webkit-scrollbar {
  display: none;
}
.act-photo-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 260px;
  border-radius: 0;
  overflow: hidden;
  border-top: 1px solid #BFDBFE;
  border-bottom: 1px solid #BFDBFE;
  background: #E5EEFF;
  scroll-snap-align: start;
}
.act-photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.act-swipe-hint {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  pointer-events: none;
}
.act-photo-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  pointer-events: none;
}
.act-photo-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.act-photo-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #CBD5E1;
  transition: width 0.2s ease, background 0.2s ease;
}
.act-photo-dot.active {
  width: 18px;
  background: #0E5AE0;
}

/* Annuaire Ecoles : 1 seule ecole plein ecran responsive + swipe vertical */
.schools-snap-viewport {
  width: 100%;
  height: calc(100dvh - 220px);
  min-height: 380px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #FFFFFF;
}
.schools-snap-viewport::-webkit-scrollbar {
  display: none;
}
.school-card-fullbleed {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
}
.school-fb-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.school-fb-scroll::-webkit-scrollbar {
  display: none;
}
.school-fb-cover {
  position: relative;
  width: 100%;
  height: clamp(112px, 28vh, 185px);
  background: linear-gradient(135deg, #0A2E72, #0E5AE0, #2563EB);
  overflow: hidden;
}
.school-fb-counter {
  padding: 3.5px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.82);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.school-fb-body {
  position: relative;
  padding: 12px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.school-fb-logo {
  position: absolute;
  top: -36px;
  left: 16px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 3px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2);
}
.school-fb-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.48;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.school-fb-footer {
  flex-shrink: 0;
  background: #FFFFFF;
  border-top: 1px solid #E8F0FC;
  padding: 10px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.school-fb-hint {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
}

