:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #0f172a;
  --muted: #90a9cf;
  --line: #c9cdd388;
  --soft: #f7faff;
  --white: #ffffff;
  --navy: #101a33;
  --yellow: #fbbf24;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

.admin-dashboard-light {
  --line: #cbd5e1;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.container,
.site-nav,
.footer-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  flex-wrap: wrap;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
  outline: none;
}

@media (min-width: 901px) {
  .brand {
    flex: 1 1 0%;
  }
  .nav-container {
    display: contents;
  }
  .nav-links {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
  }
  .nav-actions {
    flex: 1 1 0%;
    display: flex;
    justify-content: flex-end;
  }
  .mobile-nav-arrow {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    z-index: 100;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    z-index: 50;
    position: relative;
    color: #0f172a;
    transition: all 0.2s ease;
  }

  .mobile-menu-toggle:active {
    background: #e2e8f0;
    transform: scale(0.95);
  }

  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-container {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    width: auto;
    height: auto;
    max-height: calc(100vh - 100px);
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    gap: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.22), 0 8px 16px -6px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    z-index: 40;
    overflow-y: auto;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .nav-container.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .nav-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #1e293b !important;
    text-decoration: none !important;
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    transition: all 0.15s ease !important;
  }

  .nav-links a:hover,
  .nav-links a:active {
    background: #eff6ff !important;
    border-color: #dbeafe !important;
    color: #2563eb !important;
  }

  .nav-links a span {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .nav-link-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
  }

  .nav-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 8px !important;
    margin-top: 8px !important;
    padding-top: 14px !important;
    border-top: 1px solid #f1f5f9 !important;
  }

  .nav-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    height: 46px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    margin: 0 !important;
  }

  .nav-actions .btn-ghost {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
  }

  .nav-actions .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    border: none !important;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  color: #475569;
}

.btn-ghost:hover {
  background: #f1f5f9;
}

.btn-light {
  background: var(--white);
  color: var(--blue);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
}

.hero-wrap {
  display: grid;
  justify-items: center;
  padding: 86px 0 42px;
  text-align: center;
}

.eyebrow,
.section-heading span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-wrap h1 {
  max-width: 720px;
  margin: 14px 0 0;
  color: #111827;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.03;
}

.hero-copy {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-search {
  display: flex;
  width: min(720px, 100%);
  min-height: 58px;
  margin-top: 28px;
  padding: 7px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.hero-search button {
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  padding: 0 24px;
  font-weight: 900;
  cursor: pointer;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.hero-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 8px 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.stats-section {
  padding: 0 0 42px;
  background: linear-gradient(180deg, #ffffff, var(--soft));
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stats-card div {
  padding: 24px;
  text-align: center;
}

.stats-card div + div {
  border-left: 1px solid var(--line);
}

.stats-card strong {
  display: block;
  color: var(--blue);
  font-size: 30px;
}

.stats-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section-block {
  padding: 76px 0;
  background: var(--white);
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  max-width: 620px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0 0 24px;
  text-align: left;
}

.section-heading h2,
.cta-box h2 {
  margin: 10px 0 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
  text-align: left;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

.steps-grid,
.tutor-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tutor-view-btn:hover {
  color: var(--white) !important;
}

.step-card,
.tutor-card,
.testimonial-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.step-card {
  padding: 28px;
  text-align: center;
}

.step-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--blue);
  font-weight: 900;
}

.step-card h3,
.tutor-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.step-card p,
.tutor-card p,
.testimonial-grid p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

/* Success stories */
.stories-hero {
  padding: 74px 0 64px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-bottom: 1px solid #dbeafe;
}

.stories-hero-inner { max-width: 760px; text-align: center; }
.stories-hero h1 { margin: 12px 0 0; color: #111827; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.stories-hero p { margin: 16px auto 0; max-width: 560px; color: #64748b; font-size: 17px; line-height: 1.65; }
.stories-section { padding: 58px 0 80px; background: #f8fafc; }
.stories-layout { display: grid; grid-template-columns: minmax(270px, .72fr) minmax(0, 1.7fr); gap: 34px; align-items: start; }
.story-submit-panel { position: sticky; top: 94px; padding: 24px; border: 1px solid #dbeafe; border-radius: 8px; background: #ffffff; box-shadow: 0 12px 28px rgba(15, 23, 42, .06); }
.story-submit-heading { display: flex; gap: 14px; align-items: flex-start; }
.story-submit-icon { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 8px; background: #eff6ff; color: #2563eb; }
.story-submit-heading h2, .stories-content-heading h2 { margin: 0; color: #111827; font-size: 21px; }
.story-submit-heading p { margin: 6px 0 0; color: #64748b; font-size: 14px; line-height: 1.55; }
.story-form { display: grid; gap: 8px; margin-top: 24px; }
.story-form label { margin-top: 8px; color: #334155; font-size: 13px; font-weight: 800; }
.story-form input, .story-form textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 7px; padding: 11px 12px; color: #0f172a; font: inherit; outline: none; resize: vertical; }
.story-form input:focus, .story-form textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.story-field-error { margin: 0; color: #b91c1c; font-size: 12px; }
.story-submit { width: 100%; gap: 9px; margin-top: 14px; }
.stories-content-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.stories-content-heading h2 { margin-top: 7px; font-size: 26px; }
.stories-count { color: #64748b; font-size: 13px; font-weight: 800; white-space: nowrap; }
.stories-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.success-story-card { position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 24px; border: 1px solid #e2e8f0; border-radius: 8px; background: #ffffff; box-shadow: 0 10px 25px rgba(15, 23, 42, .045); }
.story-quote { color: #bfdbfe; font-size: 24px; }
.success-story-card h3 { margin: 16px 0 8px; color: #172033; font-size: 18px; line-height: 1.35; }
.success-story-card > p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.65; }
.story-author { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 20px; }
.story-avatar { display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border-radius: 50%; background: #e2e8f0; color: #64748b; }
.story-avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-author strong, .story-author span { display: block; }
.story-author strong { color: #334155; font-size: 13px; }
.story-author span { margin-top: 2px; color: #94a3b8; font-size: 12px; }
.stories-empty { padding: 56px 28px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #ffffff; text-align: center; }
.stories-empty > span { display: grid; width: 44px; height: 44px; place-items: center; margin: 0 auto 14px; border-radius: 8px; background: #eff6ff; color: #2563eb; }
.stories-empty h3 { margin: 0; color: #172033; font-size: 19px; }
.stories-empty p { max-width: 390px; margin: 8px auto 0; color: #64748b; line-height: 1.6; }

.stories-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.story-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.story-page-link:hover:not(.is-disabled):not(.is-current) {
  border-color: #2563eb;
  color: #2563eb;
}
.story-page-link.is-current {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  cursor: default;
}
.story-page-link.is-disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

@media (max-width: 780px) {
  .stories-hero { padding: 56px 0 48px; }
  .stories-section { padding: 34px 0 56px; }
  .stories-layout { grid-template-columns: 1fr; gap: 30px; }
  .story-submit-panel { position: static; }
}

@media (max-width: 540px) {
  .stories-grid { grid-template-columns: 1fr; }
  .stories-content-heading { align-items: flex-start; flex-direction: column; }
}

.tutor-card {
  overflow: hidden;
}

.tutor-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.tutor-card-body {
  padding: 18px;
}

.rating {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.rating span {
  color: #475569;
}

.tutor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tutor-meta span {
  font-weight: 900;
}

.tutor-meta a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.trust-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: center;
}

.trust-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.trust-list {
  display: grid;
  gap: 16px;
}

.trust-list div {
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  background: #f8fafc;
  padding: 16px 18px;
}

.trust-list strong {
  display: block;
  font-size: 16px;
}

.trust-list p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.testimonial-section {
  padding: 76px 0;
  background: var(--navy);
  color: var(--white);
}

.testimonial-section .section-heading h2 {
  color: var(--white);
}

.testimonial-grid article {
  border-color: rgba(255, 255, 255, 0.12);
  background: #17223e;
  padding: 24px;
}

.testimonial-grid p {
  color: #cbd5e1;
}

.testimonial-grid strong {
  display: block;
  margin-top: 16px;
}

.cta-section {
  padding: 76px 0;
  background: var(--soft);
}

.cta-box {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #0f4fd7);
  padding: 44px 24px;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  color: var(--white);
}

.cta-box p {
  margin: 12px 0 24px;
  color: #dbeafe;
}

.cta-box div {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding: 34px 0;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.search-hero {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 72px 0;
}

.search-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.search-hero h1,
.results-header h1,
.empty-box h1 {
  margin: 12px 0 0;
  max-width: 640px;
  color: #111827;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.06;
}

.search-hero p,
.empty-box p {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.search-panel,
.filter-panel,
.empty-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-panel {
  padding: 24px;
}

.search-panel label,
.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.search-panel textarea,
.search-panel select,
.filter-panel select,
.filter-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.search-panel textarea {
  min-height: 128px;
  margin-top: 8px;
  padding: 14px;
  resize: vertical;
}

.search-panel select,
.filter-panel select,
.filter-panel input {
  min-height: 44px;
  padding: 0 12px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.filter-grid.compact {
  margin-top: 16px;
}

.search-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.search-submit:hover {
  background: var(--blue-dark);
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.prompt-card {
  display: block;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
  color: #334155;
  font-weight: 800;
  line-height: 1.55;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.prompt-card:hover {
  border-color: #bfdbfe;
  color: var(--blue);
}

.results-header {
  padding: 58px 0 44px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.query-pill {
  display: inline-flex;
  max-width: 100%;
  margin: 18px 0 0;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: var(--white);
  padding: 10px 14px;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}


/* Redesigned tutor cards and layout */
.results-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 94px;
  padding: 20px;
}

.tutor-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 6px;
}

.tutor-public-card {
  border-radius: 12px;
  overflow: visible;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 320px;
}

.tutor-public-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.12);
}

.tutor-public-photo {
  position: relative;
  height: 180px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  overflow: hidden;
}

.tutor-public-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.tutor-public-photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.tutor-public-photo .save-tutor-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--blue);
  box-shadow: 0 4px 18px rgba(15,23,42,0.08);
}

.price-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--white);
  color: var(--blue);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

.tutor-public-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tutor-name {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.tutor-public-subjects { display:flex; gap:8px; flex-wrap:wrap; }
.tutor-subject-pill {
  background: #f1f8ff;
  color: var(--blue);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.tutor-public-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:6px;
}

.tutor-public-meta .location { color: var(--muted); font-weight:700; }
.tutor-public-cta { color: var(--blue); font-weight:900; }

@media (max-width: 900px) {
  .results-layout { grid-template-columns: 1fr; }
  .filter-panel { position: relative; top: 0; }
  .price-badge { bottom: 12px; right: 12px; }
}

/* Top controls and compact filters */
.results-header-controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
  flex-wrap:wrap;
}

.controls-left { flex:1 1 360px; min-width:220px; }
.controls-right { display:flex; align-items:center; gap:10px; flex:0 0 auto; }

.search-form { display:flex; gap:8px; align-items:center; width:100%; }
.search-form input[type="search"] { flex:1 1 auto; min-height:48px; padding:10px 14px; border-radius:8px; border:1px solid var(--line); width:100%; }
.search-form .search-submit { width:48px; height:48px; border-radius:8px; padding:0; display:grid; place-items:center; }

.category-chips { display:flex; gap:8px; flex-wrap:wrap; }
.chip { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; border:1px solid var(--line); background:var(--white); color:#475569; font-weight:800; }
.chip.active { background:var(--blue); color:#fff; border-color:transparent; }

.filters-row { margin-bottom:18px; }
.filters-inline { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.filters-inline input { padding:10px 12px; border:1px solid var(--line); border-radius:8px; min-height:44px; flex:1 1 160px; }
.filters-inline .search-submit { padding:10px 14px; min-width:110px; }
.clear-filters { margin-left:8px; color:var(--muted); font-weight:700; }

.intent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.intent-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
}

.intent-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.intent-grid strong {
  display: block;
  margin-top: 6px;
}

.results-layout {
  display: block !important;
  gap: 26px;
}

.filter-panel {
  position: sticky;
  top: 94px;
  padding: 20px;
}

.filter-panel h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.filter-panel form {
  display: grid;
  gap: 14px;
}

.results-list {
  display: grid;
  gap: 18px;
}

.results-count {
  color: #475569;
  font-size: 14px;
  font-weight: 900;
}

.result-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.result-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.result-body {
  padding: 20px;
}

.result-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.result-title-row h2 {
  margin: 0;
  font-size: 22px;
}

.result-title-row p,
.result-bio {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  align-self: start;
  border-radius: 999px;
  background: #16a34a;
  border: 1px solid #22c55e;
  padding: 7px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.result-meta span {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 8px 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.bordered {
  border-color: var(--line);
}

.empty-results {
  padding: 70px 0 34px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.empty-box {
  max-width: 760px;
  padding: 34px;
  text-align: center;
}

.empty-box p,
.empty-box h1 {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 820px) {

  .hero-wrap {
    padding-top: 58px;
  }

  .hero-search,
  .row-heading,
  .cta-box div {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 46px;
  }

  .stats-card,
  .steps-grid,
  .tutor-grid,
  .testimonial-grid,
  .trust-grid,
  .footer-grid,
  .search-hero-grid,
  .filter-grid,
  .prompt-grid,
  .intent-grid,
  .results-layout,
  .result-card {
    grid-template-columns: 1fr;
  }

  .stats-card div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-block,
  .testimonial-section,
  .cta-section {
    padding: 54px 0;
  }

  .search-hero {
    padding: 54px 0;
  }

  .filter-panel {
    position: static;
  }

  .result-card img {
    height: 240px;
  }
}

/* Myteacherconnect homepage recreation */
.mtc-brand {
  color: #0063c7;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.site-header {
  background: #ffffff;
}

.site-nav {
  min-height: 76px;
}

.nav-links {
  gap: 38px;
}

.nav-links a {
  color: #111a31;
  font-size: 13px;
  font-weight: 500;
}

.nav-actions {
  gap: 22px;
}

.nav-actions .btn-ghost {
  color: #005fc7;
  font-weight: 700;
}

.mtc-nav-signup {
  min-height: 39px;
  border-radius: 999px;
  background: #0066c9;
  padding: 0 23px;
}

.mtc-shell {
  width: min(1140px, calc(100% - 44px));
  margin: 0 auto;
}

.mtc-hero {
  min-height: 775px;
  background: linear-gradient(180deg, #eaf4ff 0%, #f5fbff 70%, #f7fbff 100%);
}

.mtc-hero-inner {
  display: grid;
  justify-items: center;
  padding: 28px 0 36px;
  text-align: center;
}

.mtc-pill {
  margin: 0;
  border-radius: 999px;
  background: #ddebff;
  padding: 6px 14px;
  color: #2d6df6;
  font-size: 11px;
  font-weight: 600;
}

.mtc-hero h1 {
  margin: 44px 0 0;
  color: #12182c;
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.mtc-hero h1 span {
  color: #2f68ff;
}

.mtc-hero-copy {
  max-width: 760px;
  margin: 44px 0 0;
  color: #42506b;
  font-size: 17px;
  letter-spacing: -0.035em;
  line-height: 1.45;
}

.mtc-search {
  display: flex;
  align-items: center;
  width: min(690px, 100%);
  min-height: 66px;
  margin-top: 45px;
  border-radius: 14px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.22);
}

.mtc-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.mtc-search-input-wrap input {
  width: 100%;
  padding-right: 44px !important;
}

.mtc-search-input-wrap .voice-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mtc-search-input-wrap .voice-search-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-50%) scale(1.08);
}

.mtc-search-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #2f68ff;
}

.mtc-search svg,
.mtc-steps svg,
.mtc-stat-icon svg,
.mtc-trust-list svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.mtc-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  color: #12182c;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.mtc-search input::placeholder {
  color: #1d2a44;
  opacity: 1;
}

.mtc-search button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: #2f68f2;
  color: #ffffff;
  padding: 0 30px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mtc-try {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 17px;
  color: #64708a;
  font-size: 11px;
}

.mtc-try a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  color: #57647e;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.mtc-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 43px;
}

.mtc-dark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  min-height: 52px;
  border-radius: 10px;
  background: #11182b;
  color: #ffffff;
  font-size: 13px;
}

.mtc-joined {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #59667e;
  font-size: 12px;
}

.mtc-avatars {
  display: flex;
}

.mtc-avatars img {
  width: 25px;
  height: 25px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  object-fit: cover;
}

.mtc-avatars img + img {
  margin-left: -8px;
}

.mtc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(920px, 100%);
  margin-top: 58px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 35px rgba(15, 23, 42, 0.16);
}

.mtc-stats div {
  display: grid;
  justify-items: center;
  padding: 31px 24px 25px;
}

.mtc-stats div + div {
  border-left: 1px solid #edf2fb;
}

.mtc-stat-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: #edf6ff;
  color: #2f68f2;
}

.mtc-stats strong {
  margin-top: 18px;
  color: #11182b;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.mtc-stats small {
  margin-top: 13px;
  color: #63708a;
  font-size: 10px;
}

.mtc-how {
  padding: 82px 0 91px;
  background: #ffffff;
}

.mtc-section-title {
  text-align: center;
}

.mtc-section-title h2,
.mtc-rated h2,
.mtc-trust h2 {
  margin: 0;
  color: #11182b;
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.mtc-section-title p {
  margin: 17px 0 0;
  color: #43516b;
  font-size: 12px;
}

.mtc-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 68px;
}

.mtc-steps::before {
  content: "";
  position: absolute;
  top: 43px;
  right: 0;
  left: 0;
  height: 1px;
  background: #e3edf8;
}

.mtc-steps article {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}

.mtc-steps article > span {
  display: grid;
  width: 75px;
  height: 75px;
  place-items: center;
  border-radius: 14px;
  background: #eef6ff;
  color: #2f68f2;
  box-shadow: 0 8px 18px rgba(47, 104, 242, 0.16);
}

.mtc-steps h3 {
  margin: 28px 0 0;
  color: #11182b;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.mtc-steps p {
  max-width: 310px;
  margin: 28px 0 0;
  color: #42506b;
  font-size: 12px;
  line-height: 1.45;
}

.mtc-rated {
  padding: 108px 0 90px;
  background: #f7f9fc;
}

.mtc-rated-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.mtc-rated-head p {
  margin: 21px 0 0;
  color: #42506b;
  font-size: 12px;
}

.mtc-rated-head a {
  margin-bottom: 4px;
  color: #2f68f2;
  font-size: 12px;
  font-weight: 600;
}

.mtc-tutor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 31px;
  margin-top: 48px;
}

.mtc-tutor-card {
  overflow: hidden;
  border: 1px solid #e5edf7;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.mtc-tutor-image {
  position: relative;
  height: 171px;
}

.mtc-tutor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mtc-tutor-image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, #2f68f2, #11182b);
  color: #ffffff;
  font-size: 38px;
  font-weight: 800;
}

.mtc-tutor-image span {
  position: absolute;
  top: 13px;
  right: 14px;
  border-radius: 999px;
  background: #ffffff;
  padding: 5px 10px;
  color: #44516a;
  font-size: 11px;
  font-weight: 700;
}

.mtc-tutor-body {
  padding: 22px 20px 12px;
}

.mtc-tutor-name {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.mtc-tutor-name h3 {
  margin: 0;
  color: #11182b;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.mtc-tutor-name p {
  margin: 9px 0 0;
  color: #63708a;
  font-size: 11px;
}

.mtc-tutor-name strong {
  color: #2f68f2;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.mtc-tutor-name small {
  color: #63708a;
  font-size: 10px;
}

.mtc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mtc-tags span {
  border-radius: 999px;
  background: #edf5ff;
  padding: 6px 10px;
  color: #2f68f2;
  font-size: 9px;
}

.mtc-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  margin-top: 24px;
  border-radius: 9px;
  background: #f7f9fc;
  color: #11182b;
  font-size: 13px;
}

.mtc-tutor-empty {
  grid-column: 1 / -1;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  padding: 34px;
  text-align: center;
}

.mtc-tutor-empty p {
  margin: 0 0 14px;
  color: #42506b;
  font-size: 14px;
}

.mtc-tutor-empty a {
  color: #2f68f2;
  font-size: 14px;
  font-weight: 700;
}

.mtc-trust {
  padding: 97px 0 94px;
  background: #ffffff;
}

.mtc-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.mtc-trust-photo img {
  width: 100%;
  height: 445px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 30px 40px rgba(15, 23, 42, 0.16);
}

.mtc-trust-photo {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  height: 445px;
  min-height: 445px;
  box-shadow:
    0 34px 45px rgba(15, 23, 42, 0.17),
    -26px 0 55px rgba(229, 242, 255, 0.9),
    26px 28px 56px rgba(229, 242, 255, 0.9);
}

.mtc-trust-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  z-index: 0;
}

.mtc-trust-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 4s ease-out;
  transform: scale(1.05);
}

.mtc-trust-slide.active {
  opacity: 1;
  transform: scale(1);
}

.mtc-trust-photo img:not(.mtc-trust-slide) {
  position: relative;
  z-index: 0;
  box-shadow: none;
}

.mtc-trust-blur {
  position: absolute;
  right: -8%;
  bottom: -8%;
  z-index: 2;
  width: 52%;
  height: 62%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 76%, rgba(237, 247, 255, 0.88) 0%, rgba(237, 247, 255, 0.58) 31%, rgba(237, 247, 255, 0.28) 52%, rgba(237, 247, 255, 0) 76%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  mask-image: radial-gradient(ellipse at 78% 76%, #000 0%, rgba(0, 0, 0, 0.82) 32%, rgba(0, 0, 0, 0.38) 58%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at 78% 76%, #000 0%, rgba(0, 0, 0, 0.82) 32%, rgba(0, 0, 0, 0.38) 58%, transparent 82%);
}

.mtc-trust h2 span {
  color: #2f68f2;
}

.mtc-trust-list {
  display: grid;
  gap: 45px;
  margin-top: 47px;
}

.mtc-trust-list article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
}

.mtc-trust-list article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
}

.mtc-trust-list .green {
  background: #dffbea;
  color: #16a34a;
}

.mtc-trust-list .blue {
  background: #e4efff;
  color: #2f68f2;
}

.mtc-trust-list .purple {
  background: #f0dcff;
  color: #8b5cf6;
}

.mtc-trust-list .orange {
  background: #fff0c8;
  color: #f59e0b;
}

.mtc-trust-list h3 {
  margin: 0;
  color: #11182b;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.mtc-trust-list p {
  max-width: 380px;
  margin: 12px 0 0;
  color: #42506b;
  font-size: 13px;
  line-height: 1.45;
}

.mtc-community {
  padding: 92px 0 98px;
  background: #0f172a;
  color: #ffffff;
}

.mtc-community-head {
  text-align: center;
}

.mtc-community-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.mtc-community-head p {
  margin: 18px 0 0;
  color: #8e99ad;
  font-size: 12px;
}

.mtc-community-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 62px;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  padding: 10px 0;
}

.mtc-community-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollMarquee 15s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.mtc-community-track:hover {
  animation-play-state: paused;
}

.mtc-community-track article {
  flex: 0 0 350px;
  width: 350px;
  box-sizing: border-box;
  min-height: 280px;
  border: 1px solid #334155;
  border-radius: 16px;
  background: #1e293b;
  padding: 34px 31px 22px;
}

.mtc-stars {
  color: #facc15;
  font-size: 18px;
  letter-spacing: 0.14em;
}

.mtc-community-track article > p {
  min-height: 94px;
  margin: 34px 0 0;
  color: #e2e8f0;
  font-size: 13px;
  font-style: italic;
  line-height: 1.55;
}

@keyframes scrollMarquee {
  0%, 28% {
    transform: translateX(0);
  }
  33%, 61% {
    transform: translateX(-380px);
  }
  66%, 94% {
    transform: translateX(-760px);
  }
  99% {
    transform: translateX(-1140px);
  }
  99.001% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}

.mtc-reviewer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 27px;
}

.mtc-reviewer img {
  width: 42px;
  height: 42px;
  border: 2px solid #2f68f2;
  border-radius: 999px;
  object-fit: cover;
}

.mtc-reviewer strong,
.mtc-reviewer span {
  display: block;
}

.mtc-reviewer strong {
  max-width: 120px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.mtc-reviewer span {
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
}

.mtc-final-cta {
  padding: 57px 0 78px;
  background: #f8fafc;
}

.mtc-final-card {
  position: relative;
  overflow: hidden;
  width: min(860px, 100%);
  margin: 0 auto;
  border-radius: 38px;
  background: #2f68f2;
  padding: 47px 24px 43px;
  color: #ffffff;
  text-align: center;
}

.mtc-final-card::before,
.mtc-final-card::after {
  content: "";
  position: absolute;
  width: 225px;
  height: 225px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.mtc-final-card::before {
  top: -119px;
  left: -112px;
}

.mtc-final-card::after {
  top: -80px;
  right: -86px;
}

.mtc-final-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.mtc-final-card p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 38px auto 0;
  color: #e5efff;
  font-size: 14px;
  line-height: 1.55;
}

.mtc-final-card div {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 43px;
}

.mtc-final-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  min-height: 56px;
  border-radius: 12px;
  font-size: 13px;
}

.mtc-final-card a:first-child {
  background: #ffffff;
  color: #2f68f2;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.22);
}

.mtc-final-card a:last-child {
  border: 1px solid rgba(255, 255, 255, 0.19);
  background: #2559d4;
  color: #ffffff;
}

.mtc-footer {
  border-top: 1px solid #2f68f2;
  background: #f8fafc;
  color: #42506b;
}

.mtc-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 1.25fr;
  gap: 46px;
  padding: 72px 0 38px;
}

.mtc-footer-brand {
  display: inline-flex;
  color: #163f9d;
  font-size: 18px;
  font-weight: 500;
}

.mtc-footer-about p,
.mtc-footer-search p {
  margin: 30px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.mtc-socials {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.mtc-socials a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dce7f5;
  border-radius: 999px;
  background: #ffffff;
  color: #8aa0bd;
}

.mtc-socials svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mtc-footer h2 {
  margin: 0 0 22px;
  color: #11182b;
  font-size: 15px;
  font-weight: 600;
}

.mtc-footer-links {
  display: grid;
  align-content: start;
}

.mtc-footer-links a {
  margin-top: 13px;
  color: #64748b;
  font-size: 14px;
}

.mtc-footer-links a:hover {
  color: #2f68f2;
}

.mtc-footer-search form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 20px;
  border: 1px solid #dce7f5;
  border-radius: 12px;
  background: #ffffff;
  padding: 7px;
}

.mtc-footer-search input {
  min-width: 0;
  border: 0;
  padding: 0 10px;
  color: #11182b;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.mtc-footer-search button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: #2f68f2;
  color: #ffffff;
  padding: 0 15px;
  font-weight: 700;
  cursor: pointer;
}

.mtc-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #e2e8f0;
  padding: 22px 0 28px;
}

.mtc-footer-bottom p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.mtc-footer-bottom div {
  display: flex;
  gap: 18px;
}

.mtc-footer-bottom a {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 900px) {
  .mtc-rated-head,
  .mtc-hero-actions {
    align-items: center;
    flex-direction: column;
  }

  .mtc-try {
    flex-wrap: wrap;
    gap: 14px;
  }

  .mtc-hero {
    min-height: auto;
  }

  .mtc-hero h1 {
    font-size: 42px;
  }

  .mtc-search {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  }

  .mtc-search-icon {
    display: none;
  }

  .mtc-search input {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    min-height: 48px;
    font-size: 14px;
    text-align: left;
    background: #f8fafc;
  }

  .mtc-search input:focus {
    border-color: var(--blue);
    background: #ffffff;
  }

  .mtc-search button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 14px;
  }

  .mtc-stats,
  .mtc-steps,
  .mtc-tutor-grid,
  .mtc-trust-grid,
  .mtc-footer-grid {
    grid-template-columns: 1fr;
  }

  .mtc-stats div + div {
    border-top: 1px solid #edf2fb;
    border-left: 0;
  }

  .mtc-steps::before {
    display: none;
  }

  .mtc-rated-head {
    align-items: flex-start;
  }

  .mtc-trust-photo {
    height: 330px !important;
    min-height: 330px !important;
  }

  .mtc-final-card {
    border-radius: 24px;
  }

  .mtc-final-card h2 {
    font-size: 34px;
  }

  .mtc-final-card div,
  .mtc-footer-bottom,
  .mtc-footer-bottom div {
    align-items: stretch;
    flex-direction: column;
  }

  .mtc-footer-search form {
    grid-template-columns: 1fr;
  }
}

.student-dashboard {
  min-height: 70vh;
  background: #f8fafc;
  padding: 70px 0;
}

.student-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #eaf4ff 0%, #ffffff 100%);
  padding: 34px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.student-dashboard-hero h1 {
  margin: 8px 0 0;
  color: #11182b;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.student-dashboard-hero p:last-child {
  max-width: 620px;
  margin: 14px 0 0;
  color: #64748b;
  line-height: 1.6;
}

.student-search-card {
  margin-top: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.student-search-card label {
  display: block;
  margin-bottom: 12px;
  color: #11182b;
  font-size: 15px;
  font-weight: 700;
}

.student-search-card div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.student-search-card input {
  min-height: 50px;
  min-width: 0;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 0 14px;
  color: #11182b;
  font: inherit;
  outline: none;
}

.student-search-card button {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: #2f68f2;
  color: #ffffff;
  padding: 0 24px;
  font-weight: 800;
  cursor: pointer;
}

.student-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.student-dashboard-grid article {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.student-dashboard-grid h2 {
  margin: 0;
  color: #11182b;
  font-size: 18px;
}

.student-dashboard-grid p {
  margin: 12px 0 0;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .student-dashboard-hero,
  .student-search-card div {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .student-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* About Page */
.mtc-about-section {
  padding: 76px 0;
  background: var(--white);
}
.mtc-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.mtc-about-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}
.mtc-about-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}
.mtc-about-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #12182c;
}
.mtc-about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Contact Page */
.mtc-contact-section {
  padding: 76px 0;
  background: var(--white);
}
.mtc-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: start;
}
.mtc-contact-info h2 {
  font-size: 24px;
  margin: 0 0 18px;
  color: #12182c;
}
.mtc-contact-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.mtc-contact-details {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.mtc-contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mtc-contact-detail-item .icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: #e4efff;
  color: var(--blue);
}
.mtc-contact-detail-item h4 {
  margin: 0;
  font-size: 14px;
  color: #12182c;
}
.mtc-contact-detail-item p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.mtc-contact-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  padding: 36px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
}
.mtc-contact-form .form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.mtc-contact-form label {
  font-size: 13px;
  font-weight: 700;
  color: #12182c;
}
.mtc-contact-form input,
.mtc-contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  outline: none;
}
.mtc-contact-form input:focus,
.mtc-contact-form textarea:focus {
  border-color: var(--blue);
}
.mtc-contact-form button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}
.mtc-contact-form button:hover {
  background: var(--blue-dark);
}

/* Page Hero layout */
.mtc-page-hero {
  background: linear-gradient(180deg, #eaf4ff 0%, #f5fbff 100%);
  padding: 72px 0 54px;
  text-align: center;
}
.mtc-page-hero p.mtc-lead {
  max-width: 680px;
  margin: 18px auto 0;
  color: #42506b;
  font-size: 16px;
  line-height: 1.6;
}

/* Admin Dashboard layout - Donezo & Crextio Floating App Shell */
.tutor-portal-bg {
  background: #f1f5f9 !important;
  min-height: 100vh;
  padding: 24px 0 60px;
}

.mtc-admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  margin: 20px 0;
  transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mtc-admin-layout.sidebar-collapsed {
  grid-template-columns: 72px 1fr;
}

.mtc-admin-content {
  min-width: 0;
  padding: 28px 32px;
  background: #ffffff;
}

.mtc-student-portal-sidebar {
   position: -webkit-sticky;
   position: sticky;
   top: 90px;
   height: fit-content;
}

.mtc-admin-sidebar {
   position: relative;
   top: 0;
   height: 100%;
   border: 0;
   border-right: 1px solid #f1f5f9;
   border-radius: 24px 0 0 24px;
   background: #f8fafc;
   padding: 24px 16px;
   box-shadow: none;
   display: flex;
   flex-direction: column;
   transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mtc-admin-sidebar h3 {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mtc-student-portal-toggle,
.mtc-student-portal-button {
  display: none;
}

.mtc-student-portal-header h3 {
  margin-bottom: 20px;
}

.mtc-admin-nav {
  display: grid;
  gap: 10px;
}
.mtc-admin-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #42506b;
  transition: all 0.2s ease;
}
.mtc-admin-nav a:hover,
.mtc-admin-nav a.active {
  background: #e4efff;
  color: var(--blue);
}
.mtc-admin-content h1 {
  font-size: 28px;
  margin: 0 0 8px;
  color: #12182c;
}
.mtc-admin-content p.lead {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 30px;
}
.mtc-admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mtc-admin-metric-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mtc-admin-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transition: height 0.3s ease;
}

.mtc-admin-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  border-color: transparent;
}

.mtc-admin-metric-card:hover::before {
  height: 4px;
}

.mtc-metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.mtc-admin-metric-card:hover .mtc-metric-icon {
  transform: scale(1.08);
}

.mtc-metric-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mtc-admin-metric-card span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.mtc-admin-metric-card strong {
  font-size: clamp(15px, 2.1vw, 24px);
  color: #12182c;
  font-weight: 700;
  line-height: 1.1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Upcoming Lessons - Blue */
.mtc-metric-upcoming::before {
  background-color: var(--blue);
}

.mtc-metric-upcoming .mtc-metric-icon {
  background-color: #dbeafe;
  color: var(--blue);
}

.mtc-metric-upcoming span {
  color: var(--blue);
}

/* Recommended Tutors - Amber/Orange */
.mtc-metric-recommended::before {
  background-color: #f59e0b;
}

.mtc-metric-recommended .mtc-metric-icon {
  background-color: #fef3c7;
  color: #f59e0b;
}

.mtc-metric-recommended span {
  color: #f59e0b;
}

/* Active Bookings - Purple */
.mtc-metric-active::before {
  background-color: #8b5cf6;
}

.mtc-metric-active .mtc-metric-icon {
  background-color: #ede9fe;
  color: #8b5cf6;
}

.mtc-metric-active span {
  color: #8b5cf6;
}

/* Completed Lessons - Green */
.mtc-metric-completed::before {
  background-color: #16a34a;
}

.mtc-metric-completed .mtc-metric-icon {
  background-color: #dcfce7;
  color: #16a34a;
}

.mtc-metric-completed span {
  color: #16a34a;
}
.mtc-admin-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.mtc-admin-card h2 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--blue);
}
.mtc-admin-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Admin Dashboard Hero */
.mtc-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
}
.mtc-admin-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.mtc-admin-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.mtc-admin-hero-content {
  position: relative;
  z-index: 1;
  flex: 1 1 280px;
}
.admin-dashboard-light .mtc-admin-hero h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.admin-dashboard-light .mtc-admin-hero p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.5;
  max-width: 520px;
}
html.dark .admin-dashboard-light .mtc-admin-content .mtc-admin-hero h1 {
  color: #ffffff;
}
html.dark .admin-dashboard-light .mtc-admin-content .mtc-admin-hero p {
  color: rgba(255, 255, 255, 0.9);
}
.mtc-admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mtc-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}
.mtc-hero-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}
.mtc-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.mtc-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}
.mtc-admin-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 1;
}

/* Charts Row */
.mtc-admin-charts-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.mtc-admin-chart-card {
  display: flex;
  flex-direction: column;
}
.mtc-admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.mtc-admin-card-header h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.mtc-admin-card-header h2 i {
  font-size: 14px;
  opacity: 0.8;
}
.mtc-admin-card-hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mtc-chart-wrap {
  position: relative;
  width: 100%;
  height: 220px;
}
.mtc-chart-wrap-doughnut {
  height: 220px;
}

/* Booking Status Chart Layout */
.mtc-booking-status-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.mtc-booking-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mtc-booking-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mtc-booking-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.mtc-booking-legend-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  flex: 1;
}
.mtc-booking-legend-value {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

/* Revenue Breakdown */
.mtc-revenue-breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.mtc-revenue-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mtc-revenue-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mtc-revenue-value {
  font-size: 16px;
  color: var(--ink);
  font-weight: 800;
}

/* Revenue Top Tutors */
.mtc-revenue-top {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mtc-revenue-top-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.mtc-revenue-top-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.mtc-revenue-top-link:hover {
  text-decoration: underline;
}
.mtc-revenue-top-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8fafc;
  transition: all 0.2s ease;
}
.mtc-revenue-top-row:hover {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.mtc-revenue-top-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e4efff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.mtc-revenue-top-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mtc-revenue-top-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mtc-revenue-top-sessions {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.mtc-revenue-top-amount {
  font-size: 14px;
  font-weight: 800;
  color: #16a34a;
  white-space: nowrap;
}

/* Activity Feed */
.mtc-admin-activity-card {
  display: flex;
  flex-direction: column;
}
.mtc-activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 4px;
}
.mtc-activity-list::-webkit-scrollbar {
  width: 6px;
}
.mtc-activity-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.mtc-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.mtc-activity-item:hover {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.mtc-activity-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  font-size: 14px;
  flex-shrink: 0;
}
.mtc-activity-body {
  min-width: 0;
  flex: 1;
}
.mtc-activity-text {
  margin: 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
  font-weight: 600;
}
.mtc-activity-time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.mtc-activity-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mtc-activity-live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: mtc-live-pulse 2s infinite;
}
@keyframes mtc-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
.mtc-admin-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

/* Metric color variants */
.mtc-metric-tutors::before { background-color: #2563eb; }
.mtc-metric-tutors .mtc-metric-icon { background-color: #dbeafe; color: #2563eb; }
.mtc-metric-tutors span { color: #2563eb; }

.mtc-metric-students::before { background-color: #8b5cf6; }
.mtc-metric-students .mtc-metric-icon { background-color: #ede9fe; color: #8b5cf6; }
.mtc-metric-students span { color: #8b5cf6; }

.mtc-metric-bookings::before { background-color: #f59e0b; }
.mtc-metric-bookings .mtc-metric-icon { background-color: #fef3c7; color: #f59e0b; }
.mtc-metric-bookings span { color: #f59e0b; }

.mtc-metric-revenue::before { background-color: #16a34a; }
.mtc-metric-revenue .mtc-metric-icon { background-color: #dcfce7; color: #16a34a; }
.mtc-metric-revenue span { color: #16a34a; }

@media (max-width: 1024px) {
  .mtc-admin-charts-row {
    grid-template-columns: 1fr;
  }
  .mtc-admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .mtc-admin-metrics-grid {
    grid-template-columns: 1fr;
  }
  .mtc-admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .mtc-chart-wrap {
    height: 260px;
  }
  .mtc-chart-wrap-doughnut {
    height: 240px;
  }
  .mtc-booking-status-layout {
    grid-template-columns: 1fr;
  }
  .mtc-booking-legend {
    width: 100%;
  }
}

/* Desktop: always show sidebar, no dropdown */
@media (min-width: 901px) {
  .mtc-admin-sidebar .mtc-admin-nav {
    display: grid !important;
  }
  .mtc-admin-sidebar-toggle {
    display: none !important;
  }
  .mtc-admin-sidebar-header {
    display: none !important;
  }
}

/* Mobile Admin Sidebar Dropdown */
@media (max-width: 900px) {
  .mtc-admin-layout {
    grid-template-columns: 1fr;
  }
  .mtc-admin-sidebar {
    position: static;
    height: auto;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .mtc-admin-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
  }
  .mtc-admin-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: #42506b;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .mtc-admin-sidebar-toggle:hover {
    background: #f1f5f9;
    border-color: #bfdbfe;
    color: var(--blue);
  }
  .mtc-admin-sidebar-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
  }
  .mtc-admin-sidebar:not(.is-open) .mtc-admin-nav {
    display: none;
  }
  .mtc-admin-sidebar:not(.is-open) .mtc-admin-sidebar-toggle i {
    transform: rotate(-90deg);
  }
  .mtc-admin-sidebar.is-open .mtc-admin-nav {
    display: grid;
  }
  .mtc-admin-sidebar.is-open .mtc-admin-sidebar-toggle i {
    transform: rotate(0deg);
  }
  .mtc-admin-hero {
    padding: 24px;
  }
  .mtc-admin-hero h1 {
    font-size: 24px;
  }
  .mtc-admin-hero-actions {
    width: 100%;
  }
  .mtc-admin-hero-btn {
    flex: 1;
    justify-content: center;
    min-height: 44px;
  }
}

/* Phone: show date badge above hero content */
@media (max-width: 560px) {
  .mtc-admin-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .mtc-admin-hero-content {
    order: 2;
  }
  .mtc-admin-date-badge {
    order: 1;
  }
}

.mtc-dashboard-hero {
  /* box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25); */
  box-shadow:  35px 35px 70px #bdcddf,
             -35px -35px 70px #ffffff;
}

.mtc-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.mtc-dashboard-main,
.mtc-dashboard-side {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.mtc-tutor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 16px;
  flex-wrap: wrap;
}

.mtc-tutor-row img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.mtc-tutor-row > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mtc-tutor-row > div:first-child {
  flex: 1 1 260px;
}

.mtc-tutor-row > div:last-child {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.mtc-tutor-row h3,
.mtc-tutor-row p {
  overflow-wrap: anywhere;
}

.mtc-dashboard-recent-bookings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mtc-dashboard-booking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, var(--soft));
  padding: 14px 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.mtc-dashboard-booking-row:hover {
  transform: translateY(-1px);
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25), 0 10px 24px rgba(15, 23, 42, 0.08);
}

.mtc-dashboard-booking-tutor {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.mtc-dashboard-booking-tutor img,
.mtc-dashboard-booking-tutor > span,
.mtc-dashboard-booking-tutor > i {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.mtc-dashboard-booking-tutor img {
  object-fit: cover;
}

.mtc-dashboard-booking-tutor > span,
.mtc-dashboard-booking-tutor > i {
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: var(--blue);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.mtc-dashboard-booking-tutor strong,
.mtc-dashboard-booking-tutor small {
  display: block;
}

.mtc-dashboard-booking-tutor strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.mtc-dashboard-booking-tutor small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.mtc-dashboard-booking-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.mtc-dashboard-booking-meta strong {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.mtc-booking-view-all {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.mtc-dashboard-bookings-empty {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  padding: 12px 0;
  text-align: center;
}

@media (max-width: 640px) {
  .mtc-dashboard-booking-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .mtc-dashboard-booking-meta {
    width: 100%;
    justify-content: space-between;
  }

  .mtc-dashboard-booking-meta .mtc-status-pill {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.mtc-recommended-tutors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mtc-recommended-tutor-card {
  display: grid;
  gap: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 18px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.mtc-recommended-tutor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.mtc-recommended-tutor-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mtc-recommended-tutor-identity img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  object-fit: cover;
}

.mtc-recommended-tutor-identity .mtc-tutor-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: var(--blue);
  font-size: 20px;
}

.mtc-recommended-tutor-copy {
  min-width: 0;
}

.mtc-recommended-tutor-copy h3 {
  margin: 0;
  color: #12182c;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.mtc-recommended-tutor-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.mtc-recommended-tutor-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: #f8aa16;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.mtc-recommended-tutor-rating small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.mtc-recommended-match-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid #b9d7ff;
  border-radius: 6px;
  background: #eff6ff;
  color: var(--blue);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.mtc-recommended-tutor-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border-radius: 9px;
  background: #f8fbff;
  padding: 14px;
}

.mtc-recommended-tutor-meta span,
.mtc-recommended-tutor-meta strong {
  display: block;
}

.mtc-recommended-tutor-meta span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mtc-recommended-tutor-meta strong {
  margin-top: 6px;
  color: #12182c;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mtc-recommended-tutor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.mtc-recommended-tutor-rate {
  display: flex;
  align-items: baseline;
  min-width: 0;
}

.mtc-recommended-tutor-rate strong {
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.mtc-recommended-tutor-rate span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mtc-recommended-tutor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 100%;
  min-width: 0;
}

.mtc-recommended-tutor-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 38px;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.mtc-recommended-tutor-actions .btn-ghost {
  border-color: #d9dee8;
  background: #ffffff;
  color: #4b5563;
}

.mtc-recommended-tutor-actions .btn-primary {
  padding-inline: 14px;
}

@media (max-width: 900px) {
  .mtc-about-grid {
    grid-template-columns: 1fr;
  }
  .mtc-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mtc-admin-layout {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }
  .mtc-admin-sidebar {
    position: static;
  }
  .mtc-admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mtc-admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .mtc-admin-sidebar {
    padding: 20px;
  }
  .mtc-admin-nav a {
    padding: 14px 16px;
    font-size: 15px;
  }
  .mtc-student-portal-sidebar {
    padding: 16px;
  }
  .mtc-student-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .mtc-student-portal-header h3 {
    margin: 0;
  }
  .mtc-student-portal-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--blue);
    background: #eff6ff;
    cursor: pointer;
  }
  .mtc-student-portal-sidebar .mtc-admin-nav {
    display: none;
    margin-top: 14px;
  }
  .mtc-student-portal-toggle:checked ~ .mtc-admin-nav {
    display: grid;
  }
  .mtc-recommended-tutors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mtc-recommended-tutor-actions {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }
  .mtc-recommended-tutor-actions .btn {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    min-height: 40px;
    padding: 0 10px;
  }
  .mtc-recommended-tutor-actions .btn-primary {
    flex-basis: 100%;
  }
}

@media (max-width: 768px) {
  .mtc-admin-layout {
    padding: 24px 0;
  }
  .mtc-admin-card {
    padding: 20px;
  }
  .mtc-admin-card h2 {
    font-size: 16px;
  }
  .mtc-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .mtc-recommended-tutors {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mtc-shell {
    width: min(1140px, calc(100% - 24px));
  }
  .mtc-dashboard-hero {
    padding: 24px !important;
  }
  .mtc-dashboard-search-form input {
    min-width: 0 !important;
    width: 100%;
  }
  .mtc-dashboard-search-button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .mtc-admin-nav {
    grid-template-columns: 1fr;
  }
  .mtc-admin-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mtc-tutor-row,
  .mtc-tutor-row > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }
  .mtc-tutor-row > div:last-child {
    width: 100%;
  }
  .mtc-tutor-row .btn {
    width: 100%;
  }
  .mtc-dashboard-booking-row,
  .mtc-dashboard-booking-meta {
    align-items: stretch;
    flex-direction: column;
  }
  .mtc-dashboard-booking-meta {
    width: 100%;
    gap: 8px;
  }
  .mtc-dashboard-booking-meta .mtc-status-pill {
    width: 100%;
  }
  .mtc-recommended-tutors {
    grid-template-columns: 1fr;
  }
  .mtc-recommended-tutor-card {
    gap: 14px;
    padding: 16px;
  }
  .mtc-recommended-tutor-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mtc-recommended-tutor-footer {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }
  .mtc-recommended-match-badge {
    align-self: flex-start;
    min-height: 26px;
    font-size: 10px;
  }
  .mtc-recommended-tutor-actions {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }
  .mtc-recommended-tutor-actions .btn {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    min-height: 40px;
    padding: 0 10px;
  }
  .mtc-recommended-tutor-actions .btn-primary {
    flex-basis: 100%;
  }
  .mtc-recommended-tutor-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }
  .mtc-recommended-tutor-rate {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .mtc-recommended-tutor-identity {
    align-items: center;
    gap: 12px;
  }
  .mtc-recommended-tutor-identity img,
  .mtc-recommended-tutor-identity .mtc-tutor-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .mtc-recommended-tutor-copy h3 {
    font-size: 15px;
  }
  .mtc-recommended-tutor-copy p {
    font-size: 12px;
  }
  .mtc-recommended-tutor-rating {
    margin-top: 6px;
    font-size: 12px;
  }
  .mtc-recommended-tutor-meta strong {
    font-size: 12px;
  }
  .mtc-recommended-tutor-rate strong {
    font-size: 21px;
  }
}

/* Auth Layout (Login & Sign Up) */
.mtc-auth-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 0;
  overflow: hidden;
}

.mtc-auth-decor-1,
.mtc-auth-decor-2 {
  display: none;
}
.mtc-auth-decor-1 {
  width: 360px;
  height: 360px;
  top: -90px;
  left: -90px;
  background: rgba(37, 99, 235, 0.08);
}
.mtc-auth-decor-2 {
  width: 460px;
  height: 460px;
  bottom: -170px;
  right: -120px;
  background: rgba(14, 165, 233, 0.1);
}

.mtc-auth-container {
  display: grid;
  grid-template-columns: minmax(0, 53%) minmax(0, 47%);
  width: 100%;
  min-width: 0;
  min-height: 100svh;
  margin: 0;
  justify-self: center;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
  z-index: 1;
}

.mtc-auth-sidebar {
  position: relative;
  min-height: 100svh;
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(8, 30, 95, 0.96), rgba(37, 99, 235, 0.86)),
    var(--blue);
  overflow: hidden;
  box-shadow: none;
  isolation: isolate;
}

.mtc-auth-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.mtc-auth-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.15) contrast(1.04);
  transition: opacity 1.2s ease-in-out, transform 6s ease-out;
  transform: scale(1.06);
}

.mtc-auth-slide.active {
  opacity: 0.38;
  transform: scale(1);
}

.mtc-auth-sidebar img:not(.mtc-auth-logo-img):not(.mtc-auth-slide) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.15) contrast(1.04);
  z-index: -2;
}

.mtc-auth-logo-img {
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
}

.mtc-auth-sidebar::before,
.mtc-auth-sidebar::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.mtc-auth-sidebar::before {
  width: 360px;
  height: 360px;
  right: -112px;
  top: -72px;
  background: rgba(14, 165, 233, 0.4);
}

.mtc-auth-sidebar::after {
  width: 430px;
  height: 430px;
  left: -160px;
  bottom: -112px;
  background: rgba(37, 99, 235, 0.58);
}

.mtc-auth-brand {
  position: absolute;
  top: 56px;
  left: 8.5%;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  font-weight: 850;
  letter-spacing: 0;
}

.mtc-auth-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.mtc-auth-brand > span:last-child span {
  color: #8bd8ff;
}

.mtc-auth-logo-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.mtc-auth-logo-mark i {
  font-size: 22px;
}

.mtc-auth-welcome {
  position: absolute;
  left: 8.5%;
  right: 8.5%;
  top: 43%;
  transform: translateY(-50%);
  color: #ffffff;
}

.mtc-auth-welcome h2 {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 900;
}

.mtc-auth-welcome p {
  width: min(440px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.38;
  font-weight: 550;
}

.mtc-auth-url {
  position: absolute;
  left: 8.5%;
  bottom: 56px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.mtc-auth-form-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100svh;
  padding: clamp(42px, 7vw, 92px);
  background: #ffffff;
}

.mtc-auth-form-card {
  width: 100%;
  max-width: 460px;
  min-width: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.mtc-auth-form-card-wide {
  max-width: 620px;
}

.mtc-auth-form-card h1 {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 44px);
  color: #0f172a;
  font-weight: 900;
  text-align: left;
}

.mtc-auth-form-card p.subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: left;
}

.mtc-auth-form {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.mtc-auth-form.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.mtc-auth-form .form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
}

.mtc-auth-form .span-2 {
  grid-column: span 2;
}

.mtc-auth-form label {
  font-size: 12px;
  font-weight: 750;
  color: #8a94a6;
}

.mtc-auth-form input,
.mtc-auth-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid #dbe7ff;
  border-radius: 0;
  background:
    linear-gradient(90deg, #2563eb, #22c7f3) left bottom / 0 2px no-repeat,
    #ffffff;
  padding: 0 2px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.mtc-auth-form input:focus,
.mtc-auth-form select:focus {
  border-color: transparent;
  background-size: 100% 2px, auto;
  box-shadow: none;
}

.mtc-auth-form input:-webkit-autofill,
.mtc-auth-form input:-webkit-autofill:hover,
.mtc-auth-form input:-webkit-autofill:focus,
.mtc-auth-form input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  border-bottom-color: #dbe7ff;
  transition: background-color 999999s ease-in-out 0s;
}

.mtc-auth-form input:-internal-autofill-selected {
  background-color: #ffffff !important;
  color: var(--ink) !important;
}

.mtc-auth-form .password-field-container {
  position: relative;
  width: 100%;
}

.mtc-auth-form .password-field-container input {
  padding-right: 42px;
}

.mtc-auth-form .password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 42px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.mtc-auth-form .password-toggle:hover {
  color: var(--blue);
}

.mtc-auth-form .form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: #42506b;
}

.mtc-auth-form .form-actions label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.mtc-auth-form .form-actions label input {
  width: 15px;
  min-height: 15px;
  accent-color: var(--blue);
}

.mtc-auth-form .form-actions a {
  font-weight: 700;
  color: var(--blue);
}

.mtc-auth-form button[type="submit"] {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #22c7f3 100%);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
  transition: all 0.2s ease;
}

.mtc-auth-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.mtc-auth-form-card p.footer-text {
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
}

.mtc-auth-form-card p.footer-text a {
  font-weight: 700;
  color: var(--blue);
}

.mtc-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 16px;
}

.mtc-alert-danger {
  border: 1px solid #fee2e2;
  background: #fef2f2;
  color: #ef4444;
}

.mtc-alert-warning {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.mtc-alert-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

/* Verification popup */
.mtc-verify-popup-page {
  position: relative;
  min-height: calc(100svh - 78px);
  display: grid;
  place-items: center;
  padding: clamp(36px, 6vw, 72px) 20px;
  overflow: hidden;
  background: #dbeafe;
}

.mtc-verify-popup-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.55), rgba(37, 99, 235, 0.58)),
    url("../images/Register-image.png") center / cover no-repeat;
  transform: scale(1.03);
}

.mtc-verify-popup-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 251, 255, 0.58);
  backdrop-filter: blur(3px);
}

.mtc-verify-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 50% 42%, rgba(37, 99, 235, 0.2), transparent 34%);
  z-index: 1;
}

.mtc-verify-card {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  min-width: 0;
  border: 1px solid rgba(219, 231, 255, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  padding: 34px clamp(22px, 4vw, 34px) 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.mtc-verify-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.mtc-verify-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.mtc-verify-icon {
  position: relative;
  width: 82px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #22c7f3 100%);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

.mtc-verify-icon > i {
  font-size: 34px;
}

.mtc-verify-icon span {
  position: absolute;
  left: -10px;
  bottom: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 999px;
  color: #2563eb;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.mtc-verify-card h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(25px, 3vw, 31px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.mtc-verify-card p {
  margin: 12px auto 0;
  max-width: 340px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.mtc-verify-card p strong {
  color: #2563eb;
  font-weight: 800;
}

.mtc-verify-feedback {
  margin-top: 18px;
  text-align: left;
}

.mtc-verify-form {
  margin-top: 24px;
}

.mtc-verify-code-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.mtc-verify-code-input {
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid #dbe7ff;
  border-radius: 9px;
  background: #f8fbff;
  color: #0f172a;
  font-size: 21px;
  font-weight: 900;
  text-align: center;
  outline: none;
  box-shadow: inset 0 -2px 0 rgba(37, 99, 235, 0.08);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mtc-verify-code-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.mtc-verify-submit {
  width: min(100%, 250px);
  min-height: 48px;
  margin-top: 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #22c7f3 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mtc-verify-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(37, 99, 235, 0.34);
}

.mtc-verify-resend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  color: #64748b;
  font-size: 12px;
}

.mtc-verify-resend form {
  display: inline;
}

.mtc-verify-resend button {
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  padding: 0;
}

.mtc-verify-resend button:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .mtc-verify-popup-page {
    min-height: calc(100svh - 72px);
    padding: 24px 14px;
  }

  .mtc-verify-card {
    border-radius: 16px;
    padding: 30px 18px 24px;
  }

  .mtc-verify-code-group {
    gap: 7px;
  }

  .mtc-verify-code-input {
    border-radius: 8px;
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .mtc-auth-container {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 100svh;
  }
  .mtc-auth-sidebar {
    display: none !important;
  }
  .mtc-auth-form-wrapper {
    padding: 24px 20px !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mtc-auth-form-card {
    padding: 0;
  }
  .mtc-auth-brand {
    top: 28px;
    left: 30px;
  }
  .mtc-auth-welcome {
    left: 30px;
    right: 30px;
    top: auto;
    bottom: 48px;
    transform: none;
  }
  .mtc-auth-welcome h2 {
    margin-bottom: 10px;
    font-size: 30px;
  }
  .mtc-auth-welcome p {
    font-size: 14px;
  }
  .mtc-auth-url {
    display: none;
  }
}

@media (max-width: 700px) {
  .mtc-auth-form.grid-cols-2 {
    grid-template-columns: 1fr;
  }
  .mtc-auth-form .span-2 {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
   .mtc-auth-section {
     padding: 0;
   }
   .mtc-auth-container {
     width: 100%;
     border-radius: 0;
   }
   .mtc-auth-form-wrapper {
     padding: 28px 20px;
   }
   .mtc-auth-form-card {
     border-radius: 0;
     padding: 0;
   }
   .mtc-auth-form-card h1 {
     font-size: 26px;
   }
   .mtc-auth-form {
     gap: 14px;
   }
   .mtc-auth-form .form-actions {
     align-items: flex-start;
     flex-direction: column;
   }
 }

 .role-toggle {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 8px;
   margin-top: 4px;
 }

 .role-toggle-btn {
   min-height: 42px;
   border: 1px solid #dbe7ff;
   border-radius: 999px;
   background: #f8fbff;
   font-size: 13px;
   font-weight: 750;
   color: #475569;
   cursor: pointer;
   transition: all 0.2s ease;
 }

 .role-toggle-btn:hover {
   border-color: var(--blue);
 }

 .role-toggle-btn.active {
   border-color: var(--blue);
   background: #eff6ff;
   color: var(--blue);
 }

/* AI Search Results Page Redesign Styles */
.search-assistant-card {
  background: #f8fafc;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.search-assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-assistant-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.assistant-avatar {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  color: var(--blue);
  font-size: 24px;
}

.search-assistant-info h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
}

.search-assistant-info p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tag {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

/* Sidebar Filters */
.filters-sidebar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
  position: sticky;
  top: 94px;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.filters-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.filters-header a {
  font-size: 12px;
  color: var(--blue);
  font-weight: 700;
}

.filter-section-group {
  margin-bottom: 24px;
}

.filter-section-group h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.filter-checkbox-list {
  display: grid;
  gap: 10px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
}

.filter-checkbox-label input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.filter-gender-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-gender-toggle button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-gender-toggle button.active {
  border-color: var(--blue);
  background: #eff6ff;
  color: var(--blue);
}

/* Featured Tutor Card */
.featured-best-match-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.best-match-gold-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  z-index: 10;
  background: #fbbf24;
  color: #78350f;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
}

.best-match-tutor-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.08);
}

.best-match-photo-container {
  height: 100%;
  min-height: 280px;
  position: relative;
}

.best-match-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.best-match-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.best-match-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.best-match-title-row h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.best-match-title-row h2 svg {
  color: var(--blue);
  fill: var(--blue);
}

.best-match-title-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.best-match-price {
  text-align: right;
}

.best-match-price strong {
  font-size: 20px;
  color: var(--blue);
}

.best-match-price p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.best-match-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.best-match-stat-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.best-match-stat-box span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.best-match-stat-box strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-dark);
}

.best-match-ai-reason {
  background: #eff6ff;
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.5;
  margin-bottom: 24px;
}

.best-match-ai-reason strong {
  color: #1d4ed8;
}

.best-match-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.best-match-actions .btn {
  flex: 1;
  min-height: 44px;
  border-radius: 8px;
}

/* Map Card */
.map-visualizer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.map-visualizer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}

.map-visualizer-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.map-visualizer-header p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.map-visualizer-header a {
  font-size: 12px;
  color: var(--blue);
  font-weight: 700;
}

.map-vector-container {
  height: 240px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

/* Bottom Broaden Search Panel */
.broaden-search-panel {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: var(--white);
  margin-top: 30px;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

.broaden-search-panel h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
}

.broaden-search-panel p {
  margin: 0 auto 24px;
  font-size: 14px;
  color: #cbd5e1;
  max-width: 580px;
  line-height: 1.5;
}

/* Mini Cards for subsequent matches */
.tutor-mini-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
  margin-bottom: 16px;
  transition: var(--transition-fast);
}

.tutor-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.tutor-mini-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 820px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }
  .best-match-tutor-card {
    grid-template-columns: 1fr;
  }
  .best-match-photo-container {
    height: 240px;
    min-height: auto;
  }
  .best-match-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Booking Page */
.mtc-booking-section {
  min-height: 100vh;
  background: #eef3fb;
  color: #0f172a;
  padding: 32px 16px;
}

.mtc-booking-container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.mtc-booking-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mtc-booking-eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mtc-booking-header h1 {
  margin: 8px 0 0;
  color: #020617;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
}

.mtc-booking-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: var(--white);
  color: #475569;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.mtc-booking-back-link:hover {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.mtc-booking-messages {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 901px) {
  .mtc-booking-messages {
    max-width: 73vw;
  }
}

.mtc-booking-message {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: var(--white);
  color: #334155;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.mtc-booking-layout {
  display: grid;
  gap: 24px;
}

.mtc-booking-tutor-card,
.mtc-booking-form-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.mtc-booking-tutor-head {
  background: #1d4ed8;
  color: var(--white);
  padding: 28px 24px;
}

.mtc-booking-tutor-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mtc-booking-avatar,
.mtc-booking-avatar-placeholder {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.mtc-booking-avatar {
  object-fit: cover;
}

.mtc-booking-avatar-placeholder {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
}

.mtc-booking-tutor-name {
  min-width: 0;
}

.mtc-booking-tutor-name h2 {
  margin: 0;
  overflow: hidden;
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtc-booking-tutor-name p {
  margin: 4px 0 0;
  color: #dbeafe;
  font-size: 14px;
}

.mtc-booking-tutor-body {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.mtc-booking-tutor-body h3 {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mtc-booking-summary {
  margin: 12px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.mtc-booking-facts {
  display: grid;
  gap: 12px;
}

.mtc-booking-fact,
.mtc-booking-subjects {
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px 16px;
}

.mtc-booking-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mtc-booking-fact span,
.mtc-booking-subjects > span {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.mtc-booking-fact strong {
  color: #020617;
}

.mtc-booking-subjects div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.mtc-booking-subject-pill {
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
}

.mtc-booking-empty-subject {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.mtc-booking-note {
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.mtc-booking-form-card {
  padding: 24px;
}

.mtc-booking-form {
  display: grid;
  gap: 24px;
}

.mtc-booking-error-box {
  border: 1px solid #fee2e2;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
}

.mtc-booking-field-grid {
  display: grid;
  gap: 20px;
}

.mtc-booking-field {
  display: grid;
  gap: 8px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 800;
}

.mtc-booking-form input,
.mtc-booking-form select,
.mtc-booking-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  padding: 12px 16px;
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mtc-booking-form textarea {
  min-height: 128px;
  resize: vertical;
}

.mtc-booking-form input:focus,
.mtc-booking-form select:focus,
.mtc-booking-form textarea:focus {
  border-color: #3b82f6;
  background: var(--white);
  box-shadow: 0 0 0 4px #dbeafe;
}

.mtc-booking-field-error {
  margin: 0;
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
}

.mtc-booking-amount-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 20px;
}

.mtc-booking-amount-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mtc-booking-amount-row h2 {
  margin: 0;
  color: #020617;
  font-size: 16px;
  font-weight: 800;
}

.mtc-booking-amount-row p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

.mtc-booking-amount-row strong {
  color: #1d4ed8;
  font-size: 24px;
}

.mtc-booking-hidden-field {
  display: none;
}

.mtc-booking-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 24px;
}

.mtc-booking-actions p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.mtc-booking-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 0 24px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
  cursor: pointer;
  transition: background 0.2s ease;
}

.mtc-booking-submit:hover {
  background: var(--blue-dark);
}

.tutor-portal-bg {
  background: #f8fafc;
  min-height: 100vh;
  padding: 24px 0 60px;
}

.mtc-admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  background: #ffffff;
  border-radius: 0px; /* Roundness removed as requested */
  padding: 24px 28px;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
  border: 1px solid #e2e8f0;
  position: relative;
  align-items: start;
}

.sidebar-collapsed.mtc-admin-layout,
.mtc-admin-layout.sidebar-collapsed {
  grid-template-columns: 72px 1fr;
}

.mtc-admin-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: none; /* Hide default scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide default scrollbar for IE/Edge */
}

.mtc-admin-sidebar::-webkit-scrollbar {
  display: none; /* Hide default ugly scrollbar for Chrome/Safari */
}

.mtc-admin-content {
  min-width: 0;
}

.tutor-verified-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 13px;
}

.donezo-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 992px) {
  .donezo-main-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Donezo Design System Components ── */
.donezo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.donezo-topbar-left h1 {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
}

.donezo-topbar-left p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

.donezo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.donezo-card-header {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.donezo-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.donezo-btn-primary {
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}

.donezo-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.donezo-btn-secondary {
  background: #ffffff;
  color: #475569 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.donezo-btn-secondary:hover {
  background: #f8fafc;
  color: #0f172a !important;
  border-color: #94a3b8;
}

/* ── Form Inputs Global Modern Styling ── */
.donezo-card input,
.donezo-card select,
.donezo-card textarea,
.donezo-card .form-control,
.donezo-card .form-select,
.mtc-admin-content input,
.mtc-admin-content select,
.mtc-admin-content textarea,
.mtc-admin-content .form-control,
.mtc-admin-content .form-select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  height: 48px;
  border-radius: 12px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.donezo-card textarea,
.mtc-admin-content textarea {
  height: auto !important;
  min-height: 100px;
  padding: 12px 16px !important;
}

.donezo-sidebar-badge {
  background: #0f172a;
  border-radius: 16px;
  padding: 16px;
  margin-top: 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
  transition: all 0.3s ease;
}

.sidebar-collapsed .donezo-sidebar-badge {
  display: none !important;
}

.donezo-card input:focus,
.donezo-card select:focus,
.donezo-card textarea:focus,
.donezo-card .form-control:focus,
.donezo-card .form-select:focus,
.mtc-admin-content input:focus,
.mtc-admin-content select:focus,
.mtc-admin-content textarea:focus,
.mtc-admin-content .form-control:focus,
.mtc-admin-content .form-select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
}

.tutor-sidebar {
  position: relative;
}

/* Desktop Seam Collapse Button */
.tutor-desktop-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px;
  right: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.tutor-desktop-toggle:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: scale(1.1);
}

.tutor-desktop-toggle i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.sidebar-collapsed .tutor-desktop-toggle i {
  transform: rotate(180deg);
}

.tutor-nav-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding-left: 6px;
}

.tutor-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  transition: all 0.3s ease;
}

.tutor-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #dbeafe;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.tutor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutor-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: #2563eb;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}

.tutor-sidebar-info strong {
  display: block;
  font-size: 13.5px;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.3;
}

.tutor-sidebar-info span {
  font-size: 11px;
  color: #64748b;
}

.tutor-sidebar-status {
  margin-bottom: 6px;
  margin-left: auto;
}

.tutor-sidebar-back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tutor-sidebar-back-link:hover {
  color: #2563eb;
}

/* Donezo Nav Links Active Styling */
.tutor-sidebar .mtc-admin-nav a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.tutor-sidebar .mtc-admin-nav a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.tutor-sidebar .mtc-admin-nav a.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tutor-sidebar .mtc-admin-nav a .nav-icon {
  width: 20px;
  margin-right: 10px;
  font-size: 15px;
  text-align: center;
}

/* ── Collapsed Sidebar Specific Styles ── */
.sidebar-collapsed .mtc-admin-sidebar {
  padding: 20px 8px;
}

.sidebar-collapsed .tutor-nav-section-title,
.sidebar-collapsed .tutor-sidebar-info,
.sidebar-collapsed .tutor-sidebar-status .status-label,
.sidebar-collapsed .nav-label {
  display: none !important;
}

.sidebar-collapsed .tutor-sidebar-profile {
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.sidebar-collapsed .tutor-sidebar-profile {
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sidebar-collapsed .tutor-sidebar-status {
  margin-left: 0;
}

.sidebar-collapsed .tutor-avatar-ring {
  width: 36px;
  height: 36px;
}

.sidebar-collapsed .mtc-admin-nav a {
  justify-content: center;
  padding: 10px;
}

.sidebar-collapsed .mtc-admin-nav a .nav-icon {
  margin-right: 0 !important;
  font-size: 16px;
}

.sidebar-collapsed .nav-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 10px;
  height: 10px;
  padding: 0;
  font-size: 0;
  border: 2px solid #f8fafc;
  border-radius: 50%;
}

.tutor-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tutor-eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tutor-page-heading h1 {
  margin: 0;
  color: #12182c;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tutor-subtext {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.tutor-view-btn,
.tutor-back-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.tutor-back-btn:hover {
  border-color: #bfdbfe;
  color: var(--blue);
}

.tutor-hero-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  align-items:last baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
  position: relative;

}




.tutor-hero-label {
  margin: 0 0 10px;
  font-size: 12px;
  color: #bfdbfe;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tutor-hero-left h2 {
  margin: 0 0 20px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}

.tutor-hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 9px;
  background: #fff;
  color: var(--blue);
  padding: 0 20px;
  font-size: 13px;
  font-weight: 800;
}

.tutor-hero-cta:hover {
  background: #eff6ff;
}

.tutor-hero-top-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 9px;
  background: #fff;
  color: var(--blue);
  padding: 0 20px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.tutor-hero-top-btn:hover {
  background: #eff6ff;
}

.tutor-hero-banner h1 {
  color: #ffffff;
  margin: 0;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tutor-hero-banner .tutor-eyebrow {
  color: #bfdbfe;
}

.tutor-hero-banner .tutor-subtext {
  color: rgba(255, 255, 255, 0.85);
}

.tutor-hero-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tutor-stat-chip {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 16px 22px;
  text-align: center;
  min-width: 85px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.tutor-stat-chip strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.tutor-stat-chip span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #bfdbfe;
}

.tutor-metric-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.tutor-metric-blue { border-left: 4px solid #2563eb; }
.tutor-metric-green { border-left: 4px solid #16a34a; }
.tutor-metric-purple { border-left: 4px solid #7c3aed; }
.tutor-metric-yellow { border-left: 4px solid #d97706; }

.tutor-bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-top: 24px;
}

.tutor-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tutor-card-head h2 {
  margin: 0;
  font-size: 16px;
  color: #12182c;
}

.tutor-coming-soon-tag {
  font-size: 11px;
  color: var(--muted);
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 999px;
}

.tutor-card-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.tutor-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.tutor-card-link:hover {
  text-decoration: underline;
}

.tutor-subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.tutor-subject-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}

.tutor-subject-pill i {
  font-size: 10px;
  opacity: 0.7;
}

.tutor-subject-pill:hover i {
  opacity: 1;
}

.tutor-subject-tag-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tutor-subject-tag-input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px #eff6ff;
}

.tutor-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  text-align: center;
}

.tutor-empty-icon {
  width: 52px;
  height: 52px;
  background: #eff6ff;
  color: var(--blue);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.tutor-empty-state p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}

.tutor-empty-state small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.tutor-alert {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.tutor-alert-success {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
}

.tutor-alert-error {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
}

.tutor-form-card {
  margin-bottom: 20px;
}

.tutor-form-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #12182c;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.tutor-form-field {
  display: grid;
  gap: 6px;
}

.tutor-form-field label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.tutor-form-field input,
.tutor-form-field textarea,
.tutor-form-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tutor-form-field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.tutor-form-field input[type="number"]::-webkit-outer-spin-button,
.tutor-form-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tutor-form-field textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.tutor-form-field input:focus,
.tutor-form-field textarea:focus,
.tutor-form-field select:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px #eff6ff;
}

.tutor-form-field small {
  font-size: 12px;
  color: var(--muted);
}

.tutor-field-required {
  color: #dc2626;
}

.tutor-field-error {
  margin: 0;
  font-size: 12px;
  color: #dc2626;
  font-weight: 600;
}

.tutor-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tutor-subjects-grid ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tutor-subjects-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfdff;
  transition: all 0.15s;
}

.tutor-subjects-grid label:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--blue);
}

.tutor-photo-upload-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tutor-photo-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #eff6ff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 3px solid #dbeafe;
}

.tutor-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutor-photo-upload-info p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.tutor-photo-upload-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fbfdff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.tutor-photo-upload-btn:hover {
  border-color: var(--blue);
  background: #eff6ff;
}

.tutor-photo-upload-btn input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.tutor-photo-upload-btn i {
  font-size: 16px;
  color: var(--blue);
}

.tutor-photo-upload-btn span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.tutor-photo-file-name {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-photo-upload-btn.has-file {
  border-color: #22c55e;
  background: #f0fdf4;
}

.tutor-photo-upload-btn.has-file i {
  color: #16a34a;
}

.tutor-photo-upload-btn.has-file .tutor-photo-file-name {
  color: #166534;
}

.tutor-file-drop {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: #fbfdff;
  transition: border-color 0.2s;
}

.tutor-file-drop:hover {
  border-color: var(--blue);
  background: #eff6ff;
}

.tutor-file-drop p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.tutor-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  padding-bottom: 30px;
}

.tutor-save-btn {
  min-height: 44px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
}

.tutor-verification-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
}

.tutor-vbanner-approved { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.tutor-vbanner-rejected { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.tutor-vbanner-pending  { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

.tutor-vbanner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tutor-verification-banner strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.tutor-verification-banner p {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

/* ── Docs List ── */
.tutor-docs-list {
  display: grid;
  gap: 10px;
}

.tutor-doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.tutor-doc-icon {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  color: var(--blue);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tutor-doc-info {
  flex: 1;
  min-width: 0;
}

.tutor-doc-info strong {
  display: block;
  font-size: 14px;
  color: #12182c;
}

.tutor-doc-info span {
  font-size: 12px;
  color: var(--muted);
}

/* ── Tutor List Cards ── */
.tutor-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  width: 100%;
}

.tutor-public-card {
  background: #ffffff;
  border: 1px solid var(--tutor-card-border, var(--line));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--tutor-card-shadow, 0 4px 18px rgba(15,23,42,0.05));
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.tutor-public-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tutor-card-shadow, 0 14px 32px rgba(15,23,42,0.1));
}

.tutor-public-photo {
  position: relative;
  height: 190px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tutor-public-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutor-public-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 800;
}

.tutor-verified-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #16a34a;
  color: #ffffff;
  border: 1px solid #22c55e;
}

.tutor-card-verified-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 14px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.tutor-public-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
}

.tutor-public-body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.tutor-public-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: 26px;
}

.tutor-public-subjects .tutor-subject-pill {
  font-size: 11px;
  padding: 4px 10px;
}

.tutor-public-subjects:empty::before {
  content: "No subjects listed";
  font-size: 12px;
  color: var(--muted);
}

.tutor-public-subjects > span:only-child,
.tutor-subjects-empty {
  font-size: 12px;
  color: var(--muted);
}

.tutor-public-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
  min-width: 0;
}

.tutor-rate-badge,
.price-badge {
  font-weight: 800;
  color: var(--blue);
  font-size: 14px;
}

.price-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 68px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-public-meta .location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-public-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  width: 100%;
}

.tutor-public-cta:hover {
  background: var(--hover-bg, #eff6ff);
  border-color: #bfdbfe;
}

.tutor-public-cta i {
  margin-left: 6px;
  font-size: 11px;
}

@media (max-width: 720px) {
  .tutor-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Tutor Detail ── */
.tutor-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-areas:
    "main sidebar"
    "reviews sidebar";
  gap: 26px;
  align-items: start;
}

.tutor-detail-main {
  grid-area: main;
  min-width: 0;
}

.tutor-detail-sidebar {
  grid-area: sidebar;
  min-width: 0;
}

.tutor-detail-reviews {
  grid-area: reviews;
  min-width: 0;
}

.tutor-detail-header-card {
  padding: 28px;
}

.tutor-detail-profile-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.tutor-detail-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid #dbeafe;
  background: #eff6ff;
  display: grid;
  place-items: center;
}

.tutor-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutor-detail-avatar-placeholder {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
}

.tutor-detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.tutor-booking-card {
  position: sticky;
  top: 90px;
}

.tutor-booking-rate {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.tutor-booking-rate-head {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.tutor-booking-rate-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tutor-booking-rate-label {
  font-size: 13px;
  color: var(--muted);
}

.tutor-booking-rate strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.04em;
}

.tutor-booking-rate-period {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.tutor-booking-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.tutor-booking-stat {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.tutor-booking-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #12182c;
}

.tutor-booking-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.tutor-book-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

.tutor-booking-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.tutor-verified-note {
  display: flex;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  background: #eff6ff;
  border-radius: 10px;
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
}

.tutor-booking-address {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tutor-address-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tutor-address-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tutor-address-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tutor-address-field > span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: #12182c;
}

/* ── File input styling ── */
.tutor-file-drop {
  position: relative;
  cursor: pointer;
}

.tutor-file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.tutor-file-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  pointer-events: none;
}

.tutor-file-drop-inner i {
  font-size: 28px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.tutor-file-drop-inner p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.tutor-file-drop-inner span {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 18px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.tutor-file-drop.has-file {
  border-color: #22c55e;
  border-style: solid;
  background: #f0fdf4;
}

.tutor-file-drop.has-file .tutor-file-drop-inner i {
  color: #16a34a;
}

.tutor-file-drop.has-file .tutor-file-drop-inner p:not(.tutor-file-name) {
  display: none;
}

.tutor-file-drop.has-file .tutor-file-drop-inner span {
  display: none;
}

.tutor-file-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  word-break: break-all;
}

/* ── Verification form layout ── */
.verification-form-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.verification-left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.verification-right-col {
  min-width: 0;
}

.verification-requirements {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.verification-req-title {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.verification-req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verification-req-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.verification-drop-zone {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  background: #fbfdff;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.verification-drop-zone:hover {
  border-color: var(--blue);
  background: #eff6ff;
}

.verification-drop-zone.drag-over {
  border-color: var(--blue);
  background: #eff6ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.verification-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.verification-drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.verification-drop-content i {
  font-size: 36px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.verification-drop-main {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #334155;
}

.verification-drop-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.verification-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.verification-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.verification-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.verification-file-info i {
  font-size: 20px;
  color: #16a34a;
  flex-shrink: 0;
}

.verification-file-name {
  font-size: 13px;
  font-weight: 700;
  color: #166534;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verification-remove-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #bbf7d0;
  background: #fff;
  color: #166534;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.verification-remove-file:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.verification-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.verification-disclaimer {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  max-width: 400px;
}

.verification-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.tutor-verification-already-approved {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  color: #166534;
}

.tutor-verification-already-approved h3 {
  font-size: 16px;
  font-weight: 700;
  color: #166534;
}

.tutor-verification-already-approved p {
  font-size: 13px;
  color: #166534;
  max-width: 360px;
}

.tutor-form-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2390a9cf' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.tutor-booking-subjects {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ── Review Cards ── */
.tutor-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tutor-review-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tutor-review-card:hover {
  transform: translateY(-2px);
  border-color: #b6c3e0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.tutor-review-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.tutor-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.tutor-review-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tutor-review-meta strong {
  font-size: 14px;
  font-weight: 700;
  color: #12182c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tutor-review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tutor-review-stars i {
  font-size: 13px;
  color: #fbbf24;
}

.tutor-review-stars i.fa-regular {
  color: #d1d5db;
}

.tutor-review-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.tutor-review-text {
  margin: 0;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 3px solid var(--blue);
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}

.tutor-reviews-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.tutor-reviews-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tutor-reviews-page-btn:hover {
  background: #f1f5f9;
  border-color: var(--blue);
  color: var(--blue);
}

.tutor-reviews-page-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.tutor-reviews-page-info {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .tutor-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tutor-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .tutor-bottom-grid,
  .tutor-form-grid {
    grid-template-columns: 1fr;
  }

  .tutor-detail-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sidebar"
      "reviews";
  }

  .tutor-hero-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tutor-hero-stats {
    width: 100%;
    justify-content: flex-start;
  }

  .tutor-booking-card {
    position: static;
  }

  .tutor-subjects-grid ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .tutor-page-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .tutor-hero-banner {
    padding: 28px 22px;
  }

  .tutor-hero-top-btn {
    position: static;
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  .tutor-detail-profile-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tutor-detail-meta-row {
    justify-content: center;
  }

  .tutor-subjects-grid ul {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TUTOR PORTAL — Mobile Responsiveness
   ============================================ */

  /* ── Verification status badges ── */
.tutor-status-green {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.tutor-status-red {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.tutor-status-yellow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fef08a;
}

/* ── Hamburger button ── */
.tutor-hamburger {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37,99,235,0.35);
  align-items: center;
  justify-content: center;
}

/* ── Sidebar overlay ── */
.tutor-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 98;
}

.tutor-sidebar-overlay.tutor-sidebar-overlay-open {
  display: block;
}

@media (max-width: 900px) {
  .tutor-desktop-toggle {
    display: none !important;
  }

  .tutor-hamburger {
    display: inline-flex;
  }

  .tutor-sidebar {
    position: fixed !important;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    height: 100dvh;
    z-index: 99;
    overflow-y: auto;
    overflow-x: hidden;
    transition: left 0.3s ease;
    border-radius: 0;
    box-shadow: 4px 0 25px rgba(0,0,0,0.15);
    padding: 20px;
    background: #ffffff !important;
  }

  .tutor-sidebar.tutor-sidebar-open {
    left: 0;
  }

  .mtc-admin-layout,
  .mtc-admin-layout.sidebar-collapsed {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .tutor-portal-bg {
    padding: 24px 0 50px;
  }

  .tutor-sidebar-profile {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 900px) {
  .tutor-sidebar .mtc-admin-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px;
  }

  .tutor-sidebar .mtc-admin-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #42506b;
  }

  .tutor-sidebar .mtc-admin-nav a.active {
    background: #e4efff;
    color: var(--blue);
  }

  .tutor-sidebar-back-link {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: #64748b !important;
    font-weight: 700 !important;
  }

  .tutor-sidebar-back-link:hover {
    background: #f1f5f9 !important;
    color: #475569 !important;
  }
}


@media (max-width: 900px) {
  /* Page heading */
  .tutor-page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .tutor-view-btn,
  .tutor-back-btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero banner */
  .tutor-hero-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 20px;
  }

  .tutor-hero-left h2 {
    font-size: 20px;
  }

  .tutor-hero-stats {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .tutor-stat-chip {
    flex: 1;
    min-width: 70px;
    padding: 12px 10px;
  }

  .tutor-stat-chip strong {
    font-size: 18px;
  }

  /* Metric cards — 2 columns on tablet */
  .mtc-admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Bottom grid — stack */
  .tutor-bottom-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Form grid — single column */
  .tutor-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Subjects grid — 2 columns */
  .tutor-subjects-grid ul {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Photo upload row */
  .tutor-photo-upload-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Form actions */
  .tutor-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .tutor-form-actions .tutor-back-btn,
  .tutor-form-actions .tutor-save-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Verification banner */
  .tutor-verification-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  /* Docs list */
  .tutor-doc-row {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  /* Metric cards — 1 column on mobile */
  .mtc-admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tutor-page-heading h1 {
    font-size: 22px;
  }

  .tutor-hero-banner {
    border-radius: 14px;
    padding: 20px 16px;
  }

  .tutor-hero-cta {
    width: 100%;
    justify-content: center;
  }

  .tutor-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .tutor-stat-chip {
    min-width: unset;
  }

  /* Subjects — single column */
  .tutor-subjects-grid ul {
    grid-template-columns: 1fr;
  }

  /* Cards */
  .mtc-admin-card {
    padding: 18px;
  }

  /* Sidebar nav — smaller text */
  .tutor-sidebar .mtc-admin-nav a {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Doc row stack fully */
  .tutor-doc-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tutor-doc-row .mtc-status-pill {
    align-self: flex-start;
  }
}


@media (min-width: 640px) {
  .mtc-booking-section {
    padding: 32px 24px;
  }

  .mtc-booking-header,
  .mtc-booking-amount-row,
  .mtc-booking-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .mtc-booking-header h1 {
    font-size: 40px;
  }

  .mtc-booking-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mtc-booking-form-card {
    padding: 32px;
  }
}

@media (min-width: 1024px) {
  .mtc-booking-section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .mtc-booking-layout {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* Student Bookings */
.mtc-student-bookings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.mtc-student-bookings-eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mtc-student-bookings-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
}

.mtc-student-bookings-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.mtc-student-bookings-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.mtc-student-bookings-summary article:nth-child(1){
  border-left: 3px solid var(--blue);

  span{
    color:var(--blue);
  }
}

.mtc-student-bookings-summary article:nth-child(2){
  border-left: 3px solid red;

  span{
    color:red;
  }
}

.mtc-student-bookings-summary article:nth-child(3){
  border-left: 3px solid green;

  span{
    color:green;
  }
}

.mtc-student-bookings-summary article:hover{
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.mtc-student-bookings-summary span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mtc-student-bookings-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 28px;
}

.mtc-student-bookings-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}



.mtc-student-bookings-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 22px 24px;
}

.mtc-student-bookings-card-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.mtc-student-bookings-card-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.mtc-student-bookings-table-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #bfdbfe #f8fafc;
}

.mtc-student-bookings-table-wrap::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.mtc-student-bookings-table-wrap::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 999px;
}

.mtc-student-bookings-table-wrap::-webkit-scrollbar-thumb {
  background: #bfdbfe;
  border-radius: 999px;
  border: 2px solid #f8fafc;
}

.mtc-student-bookings-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

.mtc-student-bookings-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.mtc-student-bookings-table th,
.mtc-student-bookings-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #478bdf;
  text-align: left;
  vertical-align: middle;
}

.mtc-student-bookings-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mtc-student-bookings-table td {
  color: #334155;
  font-size: 14px;
}

.mtc-student-bookings-table tbody tr:hover {
  background: #f8fbff;
}

.mtc-student-bookings-tutor {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;

}

.mtc-student-bookings-tutor img,
.mtc-student-bookings-tutor > span,
.mtc-student-bookings-tutor > i {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
}

.mtc-student-bookings-tutor img {
  object-fit: cover;
}

.mtc-student-bookings-tutor > span,
.mtc-student-bookings-tutor > i {
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: var(--blue);
  font-weight: 800;
}

.mtc-student-bookings-tutor strong,
.mtc-student-bookings-tutor small {
  display: block;
}

.mtc-student-bookings-tutor strong {
  color: var(--ink);
  font-size: 14px;
}

.mtc-student-bookings-tutor small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.mtc-status-pill,
.mtc-payment-pill,
.mtc-reviewed-label,
.mtc-unavailable-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mtc-status-pending {
  background: #eff6ff;
  color: #1d4ed8;
}

.mtc-status-accepted {
  background: #ecfdf5;
  color: #047857;
}

.mtc-status-completed {
  background: #f0fdf4;
  color: #15803d;
}

.mtc-status-cancelled {
  background: #fef2f2;
  color: #b91c1c;
}

.mtc-payment-pending,
.mtc-payment-paid,
.mtc-payment-failed,
.mtc-payment-released {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

.mtc-payment-pending {
  background: #fffbeb;
  color: #b45309;
}

.mtc-pending-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

.mtc-pending-payment-badge i {
  font-size: 12px;
}

.mtc-payment-paid {
  background: #ecfdf5;
  color: #047857;
}

.mtc-payment-failed {
  background: #fef2f2;
  color: #b91c1c;
}

.mtc-payment-released {
  background: #dbeafe;
  color: #1d4ed8;
}

.mtc-review-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.mtc-review-button:hover {
  background: var(--blue-dark);
}

.mtc-reviewed-label {
  background: #ecfdf5;
  color: #047857;
}

.mtc-unavailable-action {
  background: #f1f5f9;
  color: #64748b;
}

.mtc-student-bookings-empty {
  display: grid;
  place-items: center;
  padding: 54px 24px;
  text-align: center;
}

.mtc-student-bookings-empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 24px;
}

.mtc-student-bookings-empty h2 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 22px;
}

.mtc-student-bookings-empty p {
  max-width: 420px;
  margin: 0 0 22px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.mtc-bookings-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 16px 24px;
}

.mtc-bookings-pagination-summary {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.mtc-bookings-pagination-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mtc-bookings-pagination-controls a,
.mtc-bookings-pagination-controls span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 13px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.mtc-bookings-pagination-controls a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.mtc-bookings-pagination-controls .is-disabled {
  background: #f8fafc;
  color: #94a3b8;
}

/* Tutor Bookings */
.mtc-tutor-bookings-table {
  min-width: 980px;
}

.mtc-tutor-bookings-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap; /* keep buttons inline */
}

.mtc-tutor-bookings-actions form {
  margin: 0;
}

.mtc-tutor-bookings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mtc-tutor-bookings-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.mtc-tutor-bookings-accept {
  background: #16a34a;
}

.mtc-tutor-bookings-accept:hover {
  background: #15803d;
}

.mtc-tutor-bookings-reject {
  background: #dc2626;
}

.mtc-tutor-bookings-reject:hover {
  background: #b91c1c;
}

.mtc-tutor-bookings-complete {
  background: var(--blue);
}

.mtc-tutor-bookings-complete:hover {
  background: var(--blue-dark);
}

/* Mobile: allow horizontal scrolling for the bookings table and action buttons */
@media (max-width: 640px) {
  .mtc-student-bookings-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mtc-tutor-bookings-table {
    /* Let the table exceed the viewport so actions are reachable by scrolling */
    min-width: 900px;
  }

  .mtc-tutor-bookings-actions {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mtc-tutor-bookings-actions form {
    display: inline-block;
    margin: 0 4px 0 0;
  }

  .mtc-tutor-bookings-btn {
    white-space: nowrap;
  }
}

/* Chat List */
.mtc-chat-page {
  background: #ffffff;
  padding: 24px 0;
}

.mtc-chat-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.mtc-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.mtc-chat-eyebrow {
  margin: 0 0 6px;
  color: #4A90D9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mtc-chat-title {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mtc-chat-subtitle {
  margin: 6px 0 0;
  color: #6B7280;
  font-size: 14px;
}

.mtc-chat-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4A7CFF;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(74, 124, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mtc-chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(74, 124, 255, 0.34);
}

.mtc-chat-search {
  position: relative;
  margin-bottom: 16px;
}

.mtc-chat-search input {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px 100px 14px 44px;
  color: #111827;
  font: inherit;
  font-size: 14px;
  outline: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.mtc-chat-search input::placeholder {
  color: #9CA3AF;
}

.mtc-chat-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  font-size: 14px;
  pointer-events: none;
}

.mtc-chat-search-submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  padding: 6px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.4;
}

.mtc-chat-search-submit:hover {
  background: #1d4ed8;
}

.mtc-chat-search-submit:active {
  transform: translateY(-50%) scale(0.98);
}

.mtc-chat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mtc-chat-filter {
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 16px;
  color: #4B5563;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mtc-chat-filter:hover {
  border-color: #4A7CFF;
  color: #4A7CFF;
}

.mtc-chat-filter.is-active {
  background: #4A7CFF;
  border-color: #4A7CFF;
  color: #ffffff;
}

.mtc-chat-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mtc-chat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mtc-chat-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.mtc-chat-card.is-unread {
  background: #EFF6FF;
}

.mtc-chat-card.is-unread:hover {
  background: #DBEAFE;
}

.mtc-chat-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.mtc-chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  overflow: hidden;
}

.mtc-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mtc-chat-avatar-blue {
  background: linear-gradient(135deg, #1E90FF, #4A90D9);
}

.mtc-chat-avatar-indigo {
  background: linear-gradient(135deg, #5B5FEF, #7C3AED);
}

.mtc-chat-avatar-cyan {
  background: linear-gradient(135deg, #00BFFF, #22D3EE);
}

.mtc-chat-online-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.mtc-chat-online-dot.is-online {
  background: #22C55E;
}

.mtc-chat-online-dot.is-offline {
  background: #9CA3AF;
}

.mtc-chat-body {
  flex-grow: 1;
  min-width: 0;
}

.mtc-chat-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.mtc-chat-booking-pill {
  display: inline-block;
  border-radius: 999px;
  background: #EFF6FF;
  color: #2563EB;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.mtc-chat-preview {
  margin: 0;
  font-size: 14px;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtc-chat-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.mtc-chat-time {
  font-size: 12px;
  color: #9CA3AF;
  white-space: nowrap;
}

.mtc-chat-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #4A7CFF;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.mtc-chat-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 0 4px;
}

.mtc-chat-pagination-summary {
  color: #6B7280;
  font-size: 13px;
  font-weight: 800;
}

.mtc-chat-pagination a,
.mtc-chat-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.mtc-chat-pagination a {
  border: 1px solid #E5E7EB;
  background: #ffffff;
  color: #4B5563;
}

.mtc-chat-pagination a:hover {
  border-color: #4A7CFF;
  color: #4A7CFF;
}

.mtc-chat-pagination .is-disabled {
  background: #F3F4F6;
  color: #9CA3AF;
}

.mtc-chat-empty {
  text-align: center;
  padding: 48px 24px;
}

.mtc-chat-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #EFF6FF;
  color: #2563EB;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.mtc-chat-empty p {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.mtc-chat-empty small {
  color: #6B7280;
  font-size: 13px;
}
.mtc-review-section {
  padding: 34px 0 60px;
  background: #f8fbff;
}

.mtc-review-container {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.mtc-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.mtc-review-eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mtc-review-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 5vw, 38px);
}

.mtc-review-header p:not(.mtc-review-eyebrow) {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
}

.mtc-review-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.mtc-review-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.mtc-review-tutor-card,
.mtc-review-form-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.mtc-review-tutor-card {
  padding: 22px;
}

.mtc-review-tutor-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mtc-review-tutor-profile img,
.mtc-review-tutor-profile > span {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
}

.mtc-review-tutor-profile img {
  object-fit: cover;
}

.mtc-review-tutor-profile > span {
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.mtc-review-tutor-profile h2 {
  margin: 0;
  color: #12182c;
  font-size: 18px;
}

.mtc-review-tutor-profile p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mtc-review-summary {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.mtc-review-summary div {
  border-radius: 9px;
  background: #f8fbff;
  padding: 13px 14px;
}

.mtc-review-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mtc-review-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
}

.mtc-review-form-card {
  padding: 24px;
}

.mtc-review-form {
  display: grid;
  gap: 20px;
}

.mtc-review-rating-field {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.mtc-review-rating-field legend,
.mtc-review-field {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.mtc-review-stars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.mtc-review-stars label {
  cursor: pointer;
}

.mtc-review-stars input {
  position: absolute;
  opacity: 0;
}

.mtc-review-stars span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  color: #f8aa16;
  font-size: 14px;
  font-weight: 900;
}

.mtc-review-stars input:checked + span {
  border-color: var(--blue);
  background: #eff6ff;
  color: var(--blue);
  box-shadow: 0 0 0 3px #dbeafe;
}

.mtc-review-field {
  display: grid;
  gap: 8px;
}

.mtc-review-field textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  padding: 14px;
  resize: vertical;
  outline: none;
}

.mtc-review-field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px #eff6ff;
}

.mtc-review-error,
.mtc-review-field-error {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

.mtc-review-error {
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  padding: 12px 14px;
}

.mtc-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.mtc-review-actions .btn-ghost {
  border-color: var(--line);
  background: #fff;
}

@media (max-width: 820px) {
  .mtc-bookings-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .mtc-bookings-pagination-controls a,
  .mtc-bookings-pagination-controls span {
    flex: 1 1 120px;
  }

  .mtc-review-header,
  .mtc-review-actions {
    flex-direction: column;
  }

  .mtc-review-layout {
    grid-template-columns: 1fr;
  }

  .mtc-review-back-link,
  .mtc-review-actions .btn {
    width: 100%;
  }

  .mtc-review-stars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .mtc-student-bookings-head {
    flex-direction: column;
  }

  .mtc-student-bookings-summary {
    grid-template-columns: 1fr;
  }

  .mtc-student-bookings-card-head {
    padding: 18px;
  }
}

.message-item.sent {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.message-content.sent {
  background-color: var(--blue);
  color: var(--white);
  border-radius: 18px 18px 4px 18px;
  padding: 10px 15px;
  max-width: 70%;
  word-wrap: break-word;
}

.mtc-status-pending {
  color: red;
}
.tutor-view-btn:hover { color: var(--white); }

/* Hero Card Styles */
.mtc-hero-card-container {
  width: 100%;
  padding: 30px 16px;
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  display: flex;
  justify-content: center;
}

.mtc-hero-card {
  width: min(1120px, calc(100% - 32px));
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mtc-hero-card-left {
  color: var(--white);
}

.mtc-hero-card-date {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mtc-hero-card-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}

.mtc-hero-card-achievement {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}

.mtc-hero-card-progress-value {
  font-weight: 700;
  color: var(--white);
}

.mtc-hero-card-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mtc-hero-card-icon {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@media (max-width: 768px) {
  .mtc-hero-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 24px 20px;
  }
  
  .mtc-hero-card-title {
    font-size: 24px;
  }
  
  .mtc-hero-card-icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 640px) {
  .mtc-hero-card-container {
    padding: 20px 16px;
  }
  
  .mtc-hero-card {
    padding: 20px 16px;
    gap: 20px;
  }
  
  .mtc-hero-card-title {
    font-size: 20px;
  }
  
  .mtc-hero-card-achievement {
    font-size: 14px;
  }
  
  .mtc-hero-card-icon {
    width: 70px;
    height: 70px;
  }
}

/* Old Hero Styles - Removed */

.mtc-dashboard-hero-fullscreen h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mtc-dashboard-hero-fullscreen > div:first-child > div:first-child > p:first-of-type {
  margin: 0 0 16px;
  color: #bfdbfe;
  font-size: 13px;
  line-height: 1.5;
}

.mtc-dashboard-hero-fullscreen h2 {
  margin: 0 0 6px;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}

.mtc-dashboard-hero-subtitle {
  margin: 0 0 14px;
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.5;
}

.mtc-dashboard-search-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mtc-dashboard-search-input-wrapper {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.mtc-dashboard-search-input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 10px 42px 10px 14px;
  font-size: 13px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,0.9);
  font-family: inherit;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.mtc-dashboard-voice-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.mtc-dashboard-search-button {
  min-height: 44px;
  font-weight: 800;
  border-radius: 10px;
  padding: 0 20px;
  background: #ffffff;
  color: #1d4ed8;
  border: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  white-space: nowrap;
  font-size: 13px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.mtc-dashboard-search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(0,0,0,0.35);
  background: #f8fafc;
}

.mtc-dashboard-hero-welcome {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mtc-dashboard-hero-description {
  margin: 0 0 20px;
  color: #bfdbfe;
  font-size: 13px;
  line-height: 1.5;
}

.mtc-dashboard-hero-title {
  margin: 0 0 6px;
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--white);
  font-weight: 700;
  line-height: 1.35;
}

.mtc-dashboard-hero-subtitle {
  margin: 0 0 14px;
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.5;
}

.mtc-dashboard-hero-fullscreen > div:first-child > div:last-child {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: auto;
}

.mtc-dashboard-hero-fullscreen > div:first-child > div:last-child img {
  width: 100%;
  height: auto;
  max-height: 56vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
  background: rgba(255,255,255,0.05);
  padding: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mtc-dashboard-hero-image {
  width: 100%;
  height: auto;
  max-height: 56vh;
  object-fit: contain;
  border-radius: 20px;
}

.mtc-dashboard-hero-fullscreen > div:first-child > div:first-child {
  padding-right: 0;
}

.mtc-dashboard-hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.35;
}

.mtc-dashboard-hero-bg-blob-1 {
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: rgba(59,130,246,0.35);
}

.mtc-dashboard-hero-bg-blob-2 {
  bottom: -100px;
  left: -100px;
  width: 360px;
  height: 360px;
  background: rgba(99,102,241,0.3);
}

.mtc-dashboard-hero-fullscreen > div:first-child > div:first-child {
  animation: heroFadeUp 0.7s ease-out both;
}

.mtc-dashboard-hero-fullscreen > div:first-child > div:last-child {
  animation: heroFadeUp 0.7s ease-out 0.1s both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mtc-dashboard-search-form:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.35);
}

.mtc-dashboard-hero-image {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mtc-dashboard-hero-fullscreen > div:first-child > div:last-child:hover .mtc-dashboard-hero-image {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
}

@media (max-width: 1200px) {
  .mtc-dashboard-hero-fullscreen > div:first-child {
    grid-template-columns: 1fr 0.8fr;
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  .mtc-dashboard-hero-fullscreen {
    padding: 24px 0 36px;
  }
  
  .mtc-dashboard-hero-fullscreen > div:first-child {
    grid-template-columns: 1fr 0.7fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .mtc-dashboard-hero-fullscreen {
    padding: 24px 0 36px;
  }
  
  .mtc-dashboard-hero-fullscreen > div:first-child {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .mtc-dashboard-search-form {
    flex-direction: column;
    max-width: 100%;
    gap: 10px;
  }
  
  .mtc-dashboard-search-form > div {
    width: 100%;
  }
  
  .mtc-dashboard-search-button {
    width: 100%;
  }
  
  .mtc-dashboard-hero-fullscreen > div:first-child > div:last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  .mtc-dashboard-hero-fullscreen {
    padding: 20px 0 28px;
  }
  
  .mtc-dashboard-hero-fullscreen h1 {
    font-size: 24px;
  }
  
  .mtc-dashboard-hero-fullscreen h2 {
    font-size: 15px;
  }
  
  .mtc-dashboard-search-form > div {
    min-width: 100% !important;
  }
}

/* ============================================================
   Student Dashboard Hero
   ============================================================ */
.sdh-hero {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #0ea5e9 100%);
  border-radius: 4px;
  margin: 24px 0 0;
  overflow: hidden;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.35), 0 8px 24px rgba(0,0,0,0.12);
  min-height: 200px;
}

/* Decorative blobs */
.sdh-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.sdh-blob-1 { top: -60px; right: -60px; width: 260px; height: 260px; background: rgba(255,255,255,0.06); }
.sdh-blob-2 { bottom: -80px; right: 140px; width: 200px; height: 200px; background: rgba(255,255,255,0.04); }
.sdh-blob-3 { top: 20px; left: 40%; width: 120px; height: 120px; background: rgba(255,255,255,0.03); }

/* Left column */
.sdh-left {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

/* Date pill */
.sdh-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.sdh-date-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.sdh-date-text {
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Headline */
.sdh-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.sdh-title-name { color: #bfdbfe; }

/* Sub-text */
.sdh-subtitle {
  margin: 0 0 24px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* AI Search form */
.sdh-search-form {
  position: relative;
  max-width: 480px;
}
.sdh-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sdh-search-wrapper:focus-within {
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}
.sdh-search-icon {
  padding: 0 14px 0 18px;
  color: #fde68a;
  font-size: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  animation: pulse 2.5s ease-in-out infinite;
}
.sdh-search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 16px 0;
  outline: none;
  min-width: 0;
}
.sdh-search-input::placeholder { color: rgba(255,255,255,0.7); }
.sdh-search-btn {
  margin: 6px;
  padding: 10px 20px;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.sdh-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Suggested prompt pills */
.sdh-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.sdh-prompts-label {
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  font-weight: 500;
}
.sdh-prompt-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.sdh-prompt-pill:hover { background: rgba(255,255,255,0.22); }

/* Right column — progress ring */
.sdh-right {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.sdh-ring-wrap {
  position: relative;
  width: 110px;
  height: 110px;
}
.sdh-ring-svg {
  width: 110px;
  height: 110px;
  transform: rotate(-90deg);
}
.sdh-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sdh-ring-pct {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.sdh-ring-week {
  color: rgba(255,255,255,0.65);
  font-size: 10px;
  font-weight: 500;
  margin-top: 2px;
}
.sdh-ring-label {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}
.sdh-ring-track {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1);
}

@media (max-width: 768px) {
  .sdh-hero {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 20px 16px;
    gap: 16px;
    margin: 16px 0 0;
    min-height: auto;
  }

  .sdh-left {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .sdh-date-pill {
    margin-bottom: 10px;
  }

  .sdh-title {
    font-size: 22px;
    text-align: left;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  }

  .sdh-subtitle {
    text-align: left;
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  }

  .sdh-search-form {
    max-width: 100%;
    width: 100%;
  }

  .sdh-search-wrapper {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px;
    border-radius: 12px;
  }

  .sdh-search-icon {
    padding: 0 8px;
    font-size: 16px;
  }

  .sdh-search-input {
    flex: 1 1 auto;
    padding: 10px 8px;
    font-size: 13px;
  }

  .sdh-search-btn {
    width: auto;
    padding: 10px 14px;
    font-size: 12px;
    margin: 0;
    border-radius: 10px;
  }

  .sdh-search-btn i {
    display: none;
  }

  .sdh-prompts {
    gap: 6px;
    margin-top: 10px;
  }

  .sdh-prompts-label {
    font-size: 10px;
  }

  .sdh-prompt-pill {
    font-size: 10px;
    padding: 3px 10px;
  }

  .sdh-right {
    display: none;
  }

  .sdh-blob-1,
  .sdh-blob-2,
  .sdh-blob-3 {
    opacity: 0.25;
  }
}

@media (max-width: 400px) {
  .sdh-hero {
    padding: 16px 12px;
    gap: 12px;
  }

  .sdh-title {
    font-size: 18px;
  }

  .sdh-subtitle {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .sdh-search-wrapper {
    padding: 5px;
    gap: 4px;
  }

  .sdh-search-input {
    padding: 9px 8px;
    font-size: 12px;
  }

  .sdh-search-btn {
    padding: 9px 12px;
    font-size: 11px;
  }

  .sdh-ring-wrap {
    width: 60px;
    height: 60px;
  }

  .sdh-ring-svg {
    width: 60px;
    height: 60px;
  }

  .sdh-ring-pct {
    font-size: 13px;
  }

  .sdh-ring-week {
    font-size: 7px;
  }
}

@media (max-width: 900px) {
  .verification-form-layout {
    grid-template-columns: 1fr;
  }

  .verification-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .verification-footer-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.mtc-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  animation: mtc-confirm-fade 0.18s ease-out;
}

.mtc-confirm-overlay[hidden] {
  display: none;
}

.mtc-confirm-modal {
  width: 100%;
  max-width: 420px;
  background: var(--white, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 16px;
  padding: 28px 26px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  animation: mtc-confirm-pop 0.2s ease-out;
}

.mtc-confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  font-size: 22px;
}

.mtc-confirm-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.mtc-confirm-message {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

.mtc-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.mtc-confirm-btn {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.05s;
}

.mtc-confirm-btn:active {
  transform: translateY(1px);
}

.mtc-confirm-cancel {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

.mtc-confirm-cancel:hover {
  background: #e2e8f0;
}

.mtc-confirm-ok {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.mtc-confirm-ok:hover {
  background: #1d4ed8;
}

.mtc-confirm-overlay.is-danger .mtc-confirm-ok {
  background: #dc2626;
  border-color: #dc2626;
}

.mtc-confirm-overlay.is-danger .mtc-confirm-ok:hover {
  background: #b91c1c;
}

@keyframes mtc-confirm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mtc-confirm-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mtc-confirm-overlay,
  .mtc-confirm-modal {
    animation: none;
  }
}

.mtc-modal-open {
  overflow: hidden;
}

.mtc-complaint-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(8px);
}

.mtc-complaint-overlay[hidden] {
  display: none;
}

.mtc-complaint-modal {
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  animation: mtc-confirm-pop 0.2s ease-out;
  box-sizing: border-box;
}

.mtc-complaint-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.mtc-complaint-modal-header h2 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 20px;
}

.mtc-complaint-modal-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.mtc-complaint-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.mtc-complaint-form {
  display: grid;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.mtc-complaint-modal section,
.mtc-complaint-modal form {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.mtc-complaint-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.mtc-complaint-form label span {
  color: #64748b;
  font-weight: 500;
}

.mtc-complaint-form select,
.mtc-complaint-form textarea,
.mtc-complaint-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font: inherit;
}

.mtc-complaint-form textarea {
  resize: vertical;
}

.mtc-complaint-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.mtc-complaint-actions .btn,
.mtc-complaint-actions button {
  width: 100% !important;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
}

.mtc-complaint-cancel {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 480px) {
  .mtc-complaint-modal {
    padding: 20px;
  }

  .mtc-complaint-actions {
    flex-direction: column-reverse;
  }

  .mtc-complaint-actions > * {
    width: 100%;
  }
}

.mtc-ledger-card {
  margin-top: 16px;
}

.mtc-ledger-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.mtc-ledger-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.mtc-ledger-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mtc-ledger-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  margin-top: 14px;
}

.mtc-ledger-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.mtc-ledger-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.mtc-ledger-table tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: #334155;
}

.mtc-ledger-table tbody tr:last-child td {
  border-bottom: none;
}

.mtc-ledger-table tbody tr {
  transition: background 0.15s ease;
}

.mtc-ledger-table tbody tr:hover td {
  background: #f8fafc;
}

.mtc-ledger-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.mtc-ledger-name {
  font-weight: 700;
  color: #0f172a;
}

.mtc-ledger-bank {
  font-weight: 700;
  color: #0f172a;
}

.mtc-ledger-bank-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  flex-wrap: wrap;
}

.mtc-ledger-amount {
  text-align: right;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.mtc-ledger-payout {
  text-align: right;
  font-weight: 800;
  color: #16a34a;
  white-space: nowrap;
}

.mtc-ledger-date {
  text-align: right;
  color: var(--muted);
  line-height: 1.3;
}

.mtc-ledger-actions {
  text-align: center;
  white-space: nowrap;
}

.mtc-ledger-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mtc-ledger-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.mtc-ledger-status.is-released {
  background: #dbeafe;
  color: #1d4ed8;
}

.mtc-ledger-status.is-paid {
  background: #dcfce7;
  color: #166534;
}

.mtc-ledger-status.is-pending {
  background: #fef3c7;
  color: #b45309;
}

.mtc-ledger-status.is-refunded {
  background: #ede9fe;
  color: #6d28d9;
}

.mtc-ledger-paidout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
}

.mtc-ledger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.mtc-ledger-btn:hover {
  background: var(--blue-dark, #1d4ed8);
}

.mtc-ledger-btn:active {
  transform: translateY(1px);
}

.mtc-ledger-empty {
  padding: 36px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Tutor listing page - scoped final overrides */
.tutor-list-page .results-layout {
  display: block !important;
  width: 100%;
}

.tutor-list-page .tutor-finder-panel {
  width: 100%;
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.tutor-list-page .tutor-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.tutor-list-page .tutor-search-form,
.tutor-list-page .tutor-filter-form {
  display: grid;
  gap: 10px;
}

.tutor-list-page .tutor-search-form {
  grid-template-columns: minmax(0, 1fr) 52px;
}

.tutor-list-page .tutor-filter-form {
  grid-template-columns: repeat(3, minmax(170px, 1fr)) auto auto;
  align-items: center;
  margin-top: 14px;
}

.tutor-list-page input[type="search"],
.tutor-list-page .tutor-filter-form input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0 14px;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.tutor-list-page input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tutor-list-page .tutor-search-btn,
.tutor-list-page .tutor-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.tutor-list-page .tutor-search-btn {
  width: 52px;
  padding: 0;
}

.tutor-list-page .tutor-apply-btn {
  padding: 0 18px;
}

.tutor-list-page .category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tutor-list-page .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.tutor-list-page .chip.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.tutor-list-page .clear-filters {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.tutor-list-page .tutor-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 22px !important;
  width: 100%;
}

.tutor-list-page .tutor-public-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
}

.tutor-list-page .tutor-public-photo {
  height: 188px;
  min-height: 188px;
  overflow: hidden;
}

.tutor-list-page .tutor-public-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.tutor-list-page .save-tutor-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
}

.tutor-list-page .price-badge {
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 66px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-list-page .tutor-public-body {
  min-height: 190px;
}

.tutor-list-page .tutor-public-meta {
  min-width: 0;
}

.tutor-list-page .tutor-public-meta .location {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-list-page .tutor-public-cta {
  flex: 0 0 auto;
  width: auto;
  min-height: 36px;
  padding: 0 12px;
}

@media (max-width: 900px) {
  .tutor-list-page .tutor-search-row,
  .tutor-list-page .tutor-filter-form {
    grid-template-columns: 1fr;
  }

  .tutor-list-page .category-chips {
    justify-content: flex-start;
  }

  .tutor-list-page .tutor-search-form {
    grid-template-columns: minmax(0, 1fr) 52px;
  }
}

@media (max-width: 640px) {
  .tutor-list-page .tutor-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Tutor marketplace redesign */
.tutor-marketplace-page {
  background: #f8fafc;
  padding: 42px 0 72px;
}

.tutor-marketplace-hero {
  margin-bottom: 24px;
}

.tutor-marketplace-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.08;
}

.tutor-marketplace-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.6;
}

.tutor-filter-shell {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  padding: 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tutor-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.tutor-toolbar-search {
  position: relative;
  flex: 1 1 380px;
  min-width: 260px;
}

.tutor-toolbar-search i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

.tutor-toolbar input,
.tutor-toolbar select {
  height: 48px;
  min-width: 0;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tutor-toolbar input[type="search"] {
  width: 100%;
  padding: 0 16px 0 42px;
}

.tutor-toolbar input[type="number"] {
  flex: 0 0 116px;
  padding: 0 12px;
}

.tutor-toolbar select {
  flex: 0 0 136px;
  padding: 0 34px 0 12px;
}

.tutor-toolbar input:focus,
.tutor-toolbar select:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tutor-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  padding: 0 18px;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tutor-filter-button:hover {
  background: #1d4ed8;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.tutor-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

.tutor-category-chips a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tutor-category-chips a:hover,
.tutor-category-chips a.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.tutor-category-chips a.is-active {
  background: #2563eb;
  color: #ffffff;
}

.tutor-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.tutor-results-head p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}

.tutor-results-head i {
  color: #2563eb;
}

.tutor-results-head a {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.tutor-marketplace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tutor-marketplace-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tutor-marketplace-card:hover {
  transform: translateY(-5px);
  border-color: #c7d2fe;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
}

.tutor-card-media {
  position: relative;
  height: 220px;
  background: #eaf2ff;
  overflow: hidden;
}

.tutor-card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.tutor-card-placeholder {
  display: grid;
  width: 100%;
  height: 220px;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #0f172a);
  color: #ffffff;
  font-size: 42px;
  font-weight: 900;
}

.tutor-favourite-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #2563eb;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.tutor-favourite-btn:hover,
.tutor-favourite-btn.is-saved {
  background: #2563eb;
  color: #ffffff;
  transform: scale(1.05);
}

.tutor-rate-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px 12px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.tutor-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.tutor-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tutor-card-title-row h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.tutor-card-title-row span {
  color: #2563eb;
  font-size: 15px;
}

.tutor-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.tutor-rating-row strong {
  color: #0f172a;
  font-weight: 900;
}

.tutor-stars {
  color: #f59e0b;
}

.tutor-subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
}

.tutor-subject-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  padding: 0 10px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.tutor-location-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.tutor-location-row i {
  color: #94a3b8;
}

.tutor-location-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-card-bio {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tutor-profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  transition: background 0.18s ease, transform 0.18s ease;
}

.tutor-profile-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.tutor-marketplace-pagination {
  margin-top: 28px;
}

.tutor-empty-marketplace {
  display: grid;
  place-items: center;
  max-width: 520px;
  margin: 36px auto 0;
  text-align: center;
}

.tutor-empty-marketplace div {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 24px;
}

.tutor-empty-marketplace h2 {
  margin: 18px 0 8px;
  color: #0f172a;
  font-size: 22px;
}

.tutor-empty-marketplace p {
  margin: 0 0 18px;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .tutor-toolbar {
    flex-wrap: wrap;
  }

  .tutor-toolbar-search {
    flex-basis: 100%;
  }

  .tutor-toolbar select,
  .tutor-toolbar input[type="number"] {
    flex: 1 1 150px;
  }

  .tutor-marketplace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tutor-marketplace-page {
    padding: 30px 0 56px;
  }

  .tutor-filter-shell {
    position: static;
    padding: 14px;
  }

  .tutor-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tutor-toolbar-search,
  .tutor-filter-button {
    grid-column: 1 / -1;
  }

  .tutor-toolbar select,
  .tutor-toolbar input[type="number"] {
    width: 100%;
  }

  .tutor-marketplace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .tutor-toolbar {
    grid-template-columns: 1fr;
  }

  .tutor-toolbar-search,
  .tutor-filter-button {
    grid-column: auto;
  }

  .tutor-category-chips {
    flex-wrap: nowrap;
    margin-right: -14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tutor-category-chips a {
    flex: 0 0 auto;
  }

  .tutor-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tutor-marketplace-grid {
    grid-template-columns: 1fr;
  }
}

/* Tutor profile editor polish */
.tutor-portal-bg.admin-dashboard-light {
  background:
    radial-gradient(circle at 14% 0%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f6f9ff 0%, #ffffff 48%);
}

.tutor-portal-bg .mtc-admin-content {
  max-width: 920px;
}

.tutor-portal-bg .tutor-page-heading {
  position: relative;
  align-items: center;
  margin-bottom: 24px;
  padding: 26px 28px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.tutor-portal-bg .tutor-page-heading::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #2563eb, #22c7f3);
}

.tutor-portal-bg .tutor-page-heading h1 {
  color: #0f172a;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.tutor-portal-bg .tutor-subtext {
  max-width: 560px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

.tutor-portal-bg .tutor-back-btn {
  border-radius: 12px;
  border-color: #cbdff8;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.tutor-portal-bg .tutor-form-card {
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.tutor-portal-bg .tutor-form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  color: #0f172a;
  font-size: 13px;
  letter-spacing: 0.08em;
  border-bottom-color: #dbe7f6;
}

.tutor-portal-bg .tutor-form-section-title i {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-right: 0 !important;
  border-radius: 10px;
  background: #eff6ff;
}

.tutor-portal-bg .tutor-form-grid {
  gap: 20px;
}

.tutor-portal-bg .tutor-form-field {
  gap: 8px;
}

.tutor-portal-bg .tutor-form-field label {
  color: #25324a;
  font-size: 13px;
  font-weight: 800;
}

.tutor-portal-bg .tutor-form-field input,
.tutor-portal-bg .tutor-form-field select,
.tutor-portal-bg .tutor-subject-tag-input {
  min-height: 50px;
  height: 50px;
  border-color: #d5e2f2;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.tutor-portal-bg .tutor-form-field textarea {
  min-height: 128px;
}

.tutor-portal-bg .tutor-form-field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.tutor-portal-bg .tutor-form-field input[type="number"]::-webkit-outer-spin-button,
.tutor-portal-bg .tutor-form-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tutor-portal-bg .tutor-form-field textarea {
  min-height: 128px;
}

.tutor-portal-bg .tutor-form-field input:focus,
.tutor-portal-bg .tutor-form-field textarea:focus,
.tutor-portal-bg .tutor-form-field select:focus,
.tutor-portal-bg .tutor-subject-tag-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.tutor-portal-bg .tutor-form-field small {
  color: #7b8daa;
}

.tutor-portal-bg .tutor-photo-upload-row {
  align-items: center;
  gap: 24px;
  padding: 4px 0;
}

.tutor-portal-bg .tutor-photo-preview {
  width: 96px;
  height: 96px;
  border: 4px solid #dbeafe;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.tutor-portal-bg .tutor-photo-upload-btn {
  min-height: 48px;
  border-color: #b9d5ff;
  border-radius: 14px;
  background: #f8fbff;
  padding: 0 18px;
}

.tutor-portal-bg .tutor-photo-upload-btn:hover {
  background: #eff6ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.1);
}

.tutor-portal-bg .tutor-photo-upload-btn.has-file {
  border-color: #16a34a;
  background: #f0fdf4;
}

.tutor-portal-bg .tutor-subject-tags {
  min-height: 52px;
  align-items: center;
  border-color: #d5e2f2;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
}

.tutor-portal-bg .tutor-subject-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
}

.tutor-portal-bg .tutor-field-required[style] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px !important;
  border-radius: 12px;
  background: #eff6ff;
  color: #486386 !important;
  padding: 12px 14px;
  font-size: 13px !important;
  line-height: 1.45;
}

.tutor-portal-bg .tutor-form-actions {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.tutor-portal-bg .tutor-save-btn {
  min-height: 48px;
  border-radius: 13px;
  padding: 0 22px;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

@media (max-width: 720px) {
  .tutor-portal-bg .tutor-page-heading,
  .tutor-portal-bg .tutor-form-card {
    border-radius: 16px;
    padding: 20px;
  }

  .tutor-portal-bg .tutor-photo-upload-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Tutor portal full-screen workspace */
.tutor-portal-bg {
  min-height: calc(100svh - 70px);
  padding: 0;
}

.tutor-portal-bg > .mtc-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 28px;
}

.tutor-portal-bg .mtc-admin-layout {
  width: 100%;
  min-height: calc(100svh - 70px);
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0 64px;
}

.tutor-chat-workspace {
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 70px);
  margin: 0;
  padding: 0 28px !important;
}

.tutor-chat-workspace .mtc-admin-layout {
  width: 100%;
  min-height: calc(100svh - 70px);
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0 64px;
}

.tutor-portal-bg .mtc-admin-content {
  width: 100%;
  max-width: none;
}

.tutor-portal-bg .tutor-form-card,
.tutor-portal-bg .tutor-page-heading,
.tutor-portal-bg .tutor-form-actions {
  width: 100%;
}

.tutor-portal-bg .tutor-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tutor-portal-bg .tutor-form-field:has(textarea),
.tutor-portal-bg .tutor-form-card:nth-of-type(2) .tutor-form-field,
.tutor-portal-bg .tutor-form-card:nth-of-type(4) .tutor-form-field {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .tutor-portal-bg .tutor-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tutor-portal-bg > .mtc-shell {
    padding: 0 16px;
  }

  .tutor-chat-workspace {
    padding: 0 16px !important;
  }

  .tutor-portal-bg .mtc-admin-layout,
  .tutor-chat-workspace .mtc-admin-layout {
    grid-template-columns: 1fr;
    padding: 20px 0 48px;
  }
}

@media (max-width: 640px) {
  .tutor-portal-bg > .mtc-shell {
    padding: 0 12px;
  }

  .tutor-chat-workspace {
    padding: 0 12px !important;
  }

  .tutor-portal-bg .tutor-form-grid {
    grid-template-columns: 1fr;
  }
}


/* Booking flow redesign */
.booking-flow-page {
  min-height: calc(100svh - 70px);
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.08), transparent 34%),
    #f6f8fc;
  padding: 56px 0 76px;
}

.booking-flow-shell {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.booking-flow-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #42526e;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
  text-decoration: none;
}

.booking-flow-back i {
  color: #2563eb;
}

.booking-flow-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.booking-flow-kicker {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-flow-hero h1 {
  margin: 0;
  color: #071127;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.booking-flow-hero p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #667795;
  font-size: 16px;
  line-height: 1.55;
}

.booking-flow-steps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe6f4;
  border-radius: 999px;
  background: #ffffff;
  padding: 7px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.booking-flow-steps span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #667795;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 850;
}

.booking-flow-steps span.is-active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.booking-flow-messages {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.booking-flow-message,
.booking-flow-error {
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 750;
}

.booking-flow-message.error,
.booking-flow-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.booking-flow-grid {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.booking-flow-tutor-card,
.booking-flow-form-card,
.checkout-flow-main-card,
.checkout-flow-pay-card {
  border: 1px solid #dbe6f4;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.booking-flow-tutor-card {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.booking-flow-tutor-media {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  max-height: 250px;
  border-radius: 18px;
  overflow: hidden;
  background: #dbeafe;
  display: grid;
  place-items: center;
}

.booking-flow-tutor-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-flow-tutor-media span {
  color: #2563eb;
  font-size: 54px;
  font-weight: 950;
}

.booking-flow-tutor-copy {
  margin-top: 18px;
}

.booking-flow-tutor-copy h2,
.booking-flow-card-head h2,
.checkout-flow-pay-card h2,
.checkout-flow-tutor-row h2 {
  margin: 0;
  color: #071127;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.booking-flow-tutor-copy h2 {
  font-size: 24px;
}

.booking-flow-tutor-copy p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  color: #7a8baa;
  font-size: 14px;
  font-weight: 750;
}

.booking-flow-tutor-copy p i,
.booking-flow-note-card i,
.checkout-flow-secure i {
  color: #2563eb;
}

.booking-flow-rate-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  border: 1px solid #cfe0ff;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbff, #eaf4ff);
  padding: 16px;
  color: #071127;
}

.booking-flow-rate-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.booking-flow-rate-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #667795;
  font-size: 12px;
  font-weight: 800;
}

.booking-flow-rate-label small {
  color: #667795;
  font-size: 12px;
  font-weight: 800;
}

.booking-flow-rate-card strong {
  display: block;
  margin: 0;
  color: #1d4ed8;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.booking-flow-class-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.booking-flow-toggle-label {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.class-toggle-btn {
  appearance: none;
  border: 1px solid #cfe0ff;
  background: transparent;
  color: #667795;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.class-toggle-btn.is-active {
  background: #ffffff;
  color: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.class-toggle-btn:hover {
  color: #1d4ed8;
}

.booking-flow-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.booking-flow-mini-grid div {
  border: 1px solid #e2ebf7;
  border-radius: 16px;
  background: #f8fbff;
  padding: 14px;
}

.booking-flow-mini-grid strong,
.booking-flow-mini-grid span {
  display: block;
}

.booking-flow-mini-grid strong {
  color: #071127;
  font-size: 22px;
  font-weight: 950;
}

.booking-flow-mini-grid span {
  margin-top: 3px;
  color: #7a8baa;
  font-size: 12px;
  font-weight: 800;
}

.booking-flow-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.booking-flow-subjects span {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 850;
}

.booking-flow-note-card {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid #e2ebf7;
  padding-top: 18px;
}

.booking-flow-note-card p {
  margin: 0;
  color: #667795;
  font-size: 13px;
  line-height: 1.5;
}

.booking-flow-form-card {
  padding: 28px 28px 24px;
}

.booking-flow-card-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8eef8;
}

.booking-flow-card-head h2 {
  font-size: 26px;
}

.booking-flow-card-head p {
  margin: 8px 0 0;
  color: #667795;
  font-size: 14px;
}

.booking-flow-form {
  display: grid;
  gap: 16px;
}

.booking-flow-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.booking-flow-field {
  display: grid;
  gap: 8px;
}

.booking-flow-field span {
  color: #27364f;
  font-size: 13px;
  font-weight: 900;
}

.booking-flow-field input,
.booking-flow-field textarea,
.booking-flow-field select {
  width: 100%;
  border: 1px solid #d6e2f2;
  border-radius: 14px;
  background: #f8fbff;
  color: #071127;
  font: inherit;
  font-size: 15px;
  outline: none;
  padding: 0 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.booking-flow-field input,
.booking-flow-field select {
  min-height: 54px;
}

.booking-flow-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #667795 50%),
    linear-gradient(135deg, #667795 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.booking-flow-field textarea {
  min-height: 150px;
  padding: 14px 15px;
  resize: vertical;
}

.booking-flow-field input:focus,
.booking-flow-field textarea:focus,
.booking-flow-field select:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.booking-flow-field small {
  color: #dc2626;
  font-size: 12px;
  font-weight: 750;
}

.booking-flow-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #eff6ff;
  padding: 16px;
}

.booking-flow-summary-bar span,
.booking-flow-summary-bar strong {
  display: block;
}

.booking-flow-summary-bar span {
  color: #55709a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-flow-summary-bar strong {
  margin-top: 4px;
  color: #1d4ed8;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.booking-flow-summary-bar p {
  max-width: 330px;
  margin: 0;
  color: #667795;
  font-size: 13px;
  line-height: 1.5;
}

.booking-flow-hidden {
  display: none;
}

.booking-flow-actions,
.checkout-flow-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #e8eef8;
  padding-top: 20px;
}

.booking-flow-primary,
.booking-flow-secondary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.booking-flow-primary {
  border: 0;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22);
}

.booking-flow-primary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.booking-flow-secondary {
  border: 1px solid #d6e2f2;
  background: #ffffff;
  color: #52627d;
}

.booking-flow-secondary:hover {
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.checkout-flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 24px;
  align-items: start;
}

.checkout-flow-main-card,
.checkout-flow-pay-card {
  padding: 28px;
}

.checkout-flow-tutor-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e8eef8;
}

.checkout-flow-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: #dbeafe;
  color: #2563eb;
  font-weight: 950;
  font-size: 24px;
  flex: 0 0 auto;
}

.checkout-flow-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-flow-tutor-row h2 {
  font-size: 24px;
}

.checkout-flow-tutor-row p {
  margin: 5px 0 0;
  color: #667795;
  font-size: 14px;
}

.checkout-flow-status {
  margin-left: auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.checkout-flow-status-paid,
.checkout-flow-status-released {
  background: #dcfce7;
  color: #15803d;
}

.checkout-flow-status-failed,
.checkout-flow-status-refunded {
  background: #fef2f2;
  color: #dc2626;
}

.checkout-flow-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.checkout-flow-details div,
.checkout-flow-note {
  border: 1px solid #e2ebf7;
  border-radius: 16px;
  background: #f8fbff;
  padding: 16px;
}

.checkout-flow-details span,
.checkout-flow-note span {
  display: block;
  color: #7a8baa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-flow-details strong {
  display: block;
  margin-top: 7px;
  color: #071127;
  font-size: 15px;
  font-weight: 900;
}

.checkout-flow-note {
  margin-top: 14px;
}

.checkout-flow-note p {
  margin: 9px 0 0;
  color: #52627d;
  font-size: 14px;
  line-height: 1.6;
}

.checkout-flow-protection {
  margin-top: 18px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 18px;
}

.checkout-flow-protection h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: #071127;
  font-size: 16px;
  font-weight: 950;
}

.checkout-flow-protection h3 i {
  color: #2563eb;
}

.checkout-flow-protection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.checkout-flow-protection-grid div {
  min-width: 0;
  border: 1px solid #e7eef9;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.checkout-flow-protection-grid strong {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.checkout-flow-protection-grid span {
  display: block;
  margin-top: 10px;
  color: #071127;
  font-size: 13px;
  font-weight: 900;
}

.checkout-flow-protection-grid p {
  margin: 5px 0 0;
  color: #667795;
  font-size: 12px;
  line-height: 1.45;
}

.checkout-flow-pay-card {
  position: sticky;
  top: 92px;
}

.checkout-flow-pay-card h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.checkout-flow-line,
.checkout-flow-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #edf2fa;
}

.checkout-flow-line span,
.checkout-flow-line strong {
  color: #52627d;
  font-size: 14px;
}

.checkout-flow-line strong {
  color: #071127;
  font-weight: 900;
}

.checkout-flow-line.muted strong {
  color: #16a34a;
}

.checkout-flow-total {
  margin-top: 8px;
  border-top: 2px dashed #dbe6f4;
  padding-top: 20px;
}

.checkout-flow-total span {
  color: #071127;
  font-size: 16px;
  font-weight: 900;
}

.checkout-flow-total strong {
  color: #2563eb;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.checkout-flow-form {
  margin-top: 22px;
  justify-content: stretch;
}

.checkout-flow-pay-btn,
.checkout-flow-cancel {
  width: 100%;
}

.checkout-flow-secure {
  display: flex;
  gap: 9px;
  margin: 16px 0 0;
  color: #7a8baa;
  font-size: 12px;
  line-height: 1.5;
}

.checkout-flow-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.checkout-flow-methods span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #f8fbff;
  padding: 0 10px;
  color: #52627d;
  font-size: 11px;
  font-weight: 850;
}

.tutor-book-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-weight: 900;
}

@media (max-width: 900px) {
  .booking-flow-hero,
  .booking-flow-summary-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-flow-grid,
  .checkout-flow-grid {
    grid-template-columns: 1fr;
  }

  .booking-flow-tutor-card,
  .checkout-flow-pay-card {
    position: static;
  }

  .booking-flow-tutor-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) 1fr;
    gap: 18px;
  }

  .booking-flow-tutor-media {
    grid-row: span 5;
    height: 100%;
    max-height: none;
  }
}

/* ==========================================================================
   DONEZO & CREXTIO DASHBOARD UI COMPONENTS
   ========================================================================== */

.donezo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.donezo-topbar-left h1 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.donezo-topbar-left p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.donezo-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.donezo-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 14px;
  width: 220px;
  color: #64748b;
  font-size: 13px;
  transition: all 0.2s ease;
}

.donezo-search-box input {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  height: auto !important;
  font-size: 13px !important;
  outline: none !important;
  width: 100%;
}

.donezo-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.donezo-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.donezo-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  color: #334155 !important;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.donezo-btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a !important;
}

/* Donezo Metric Cards Grid */
.donezo-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.donezo-metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
}

.donezo-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.donezo-metric-card.hero-card {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
}

.donezo-metric-card.hero-card .donezo-metric-title,
.donezo-metric-card.hero-card .donezo-metric-value {
  color: #ffffff !important;
}

.donezo-metric-card.hero-card .donezo-metric-icon-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.donezo-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.donezo-metric-title {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.donezo-metric-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 12px;
  transition: all 0.2s ease;
}

.donezo-metric-value {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 12px;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.donezo-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.donezo-badge-green {
  background: #dcfce7;
  color: #15803d;
}

.donezo-badge-amber {
  background: #fef3c7;
  color: #b45309;
}

.donezo-badge-purple {
  background: #f3e8ff;
  color: #6b21a8;
}

.donezo-badge-blue {
  background: #dbeafe;
  color: #1e40af;
}

/* Donezo Content Grid */
.donezo-main-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 24px;
}

@media (max-width: 1100px) {
  .donezo-main-grid {
    grid-template-columns: 1fr;
  }
}

.donezo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
  margin-bottom: 24px;
}

.donezo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.donezo-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.donezo-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.donezo-service-item:hover {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

@media (max-width: 620px) {
  .booking-flow-page {
    padding: 28px 0 56px;
  }

  .booking-flow-shell {
    width: min(100% - 24px, 1140px);
  }

  .booking-flow-steps {
    width: 100%;
    justify-content: space-between;
  }

  .booking-flow-steps span {
    flex: 1 1 0;
    padding: 0 8px;
  }

  .booking-flow-field-grid,
  .checkout-flow-details,
  .checkout-flow-protection-grid {
    grid-template-columns: 1fr;
  }

  .checkout-flow-tutor-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .checkout-flow-status {
    margin-left: 84px;
  }

  .booking-flow-form-card,
  .checkout-flow-main-card,
  .checkout-flow-pay-card {
    padding: 20px;
    border-radius: 18px;
  }

  .booking-flow-tutor-card {
    display: block;
  }

  .booking-flow-tutor-media {
    height: auto;
    max-height: 240px;
  }

  .booking-flow-summary-bar,
  .booking-flow-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-flow-primary,
  .booking-flow-secondary {
    width: 100%;
  }
}

/* Simplified booking schedule page */
.booking-flow-page{min-height:calc(100svh - 70px);padding:34px 0 56px;background:#f7faff}.booking-flow-shell{width:min(1120px,calc(100% - 40px));margin:0 auto}.booking-flow-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.booking-flow-back{display:inline-flex;align-items:center;gap:8px;color:#375074;font-size:14px;font-weight:800;text-decoration:none}.booking-flow-hero{display:block;margin-bottom:24px}.booking-flow-kicker{display:none}.booking-flow-hero h1{margin:0;color:#08142d;font-size:clamp(30px,4vw,44px);line-height:1.04;font-weight:950;letter-spacing:-.03em}.booking-flow-hero p{max-width:560px;margin:8px 0 0;color:#5d7196;font-size:15px;line-height:1.55}.booking-flow-steps{display:inline-flex;align-items:center;gap:4px;border:1px solid #d8e4f5;border-radius:999px;background:#fff;padding:5px;box-shadow:0 10px 22px rgba(15,23,42,.05)}.booking-flow-steps span{min-height:30px;padding:0 12px;border-radius:999px;color:#6b7d9c;font-size:12px;font-weight:850}.booking-flow-steps span.is-active{background:#2563eb;color:#fff;box-shadow:none}.booking-flow-grid{display:grid;grid-template-columns:280px minmax(0,1fr) 260px;gap:16px;align-items:start}.booking-flow-tutor-card,.booking-flow-form-card,.booking-flow-summary-card{border:1px solid #dbe6f4;border-radius:16px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.055)}.booking-flow-tutor-card,.booking-flow-summary-card{position:sticky;top:90px;padding:16px}.booking-flow-tutor-row{display:flex;align-items:center;gap:12px}.booking-flow-tutor-media{width:64px;height:64px;flex:0 0 64px;border-radius:14px;overflow:hidden;background:#dbeafe}.booking-flow-tutor-media img{width:100%;height:100%;object-fit:cover}.booking-flow-tutor-media span{display:grid;width:100%;height:100%;place-items:center;color:#2563eb;font-size:22px;font-weight:950}.booking-flow-tutor-copy{margin:0;min-width:0}.booking-flow-tutor-copy h2{margin:0;color:#08142d;font-size:18px;line-height:1.2;letter-spacing:-.02em}.booking-flow-tutor-copy p{margin:5px 0 0;color:#6b7d9c;font-size:12px;font-weight:750;line-height:1.35}.booking-flow-rate-card{display:grid;gap:5px;margin-top:16px;border:1px solid #dbeafe;border-radius:14px;background:#f1f7ff;padding:14px}.booking-flow-rate-label{color:#60799f;font-size:12px;font-weight:850}.booking-flow-rate-label small{display:block;margin-top:2px;font-size:11px;font-weight:750}.booking-flow-rate-card strong{color:#1d4ed8;font-size:28px;font-weight:950;letter-spacing:-.03em}.booking-flow-subjects{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.booking-flow-subjects span{border:1px solid #dbeafe;border-radius:999px;background:#f8fbff;color:#1d4ed8;padding:6px 10px;font-size:11px;font-weight:850}.booking-flow-note-card{display:flex;gap:9px;margin-top:14px;padding-top:14px;border-top:1px solid #edf2fa}.booking-flow-note-card p{margin:0;color:#60799f;font-size:12px;line-height:1.45}.booking-flow-form-card{padding:22px}.booking-flow-card-head{margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #edf2fa}.booking-flow-card-head h2{margin:0;color:#08142d;font-size:24px;letter-spacing:-.025em}.booking-flow-card-head p{margin:6px 0 0;color:#60799f;font-size:13px}.booking-flow-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.booking-flow-field{display:grid;gap:7px;margin-top:14px}.booking-flow-card-head+.booking-flow-field-grid,.booking-flow-field-grid:first-child{margin-top:0}.booking-flow-field span,.booking-flow-toggle-label{color:#20324f;font-size:12px;font-weight:900}.booking-flow-field input,.booking-flow-field textarea,.booking-flow-field select{width:100%;border:1px solid #d5e1f2;border-radius:12px;background:#fbfdff;color:#08142d;font:inherit;font-size:14px;outline:none;padding:0 13px}.booking-flow-field input,.booking-flow-field select{min-height:48px}.booking-flow-field textarea{min-height:118px;padding:12px 13px;resize:vertical}.booking-flow-field input:focus,.booking-flow-field textarea:focus,.booking-flow-field select:focus{border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px rgba(37,99,235,.1)}.booking-flow-class-toggle{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:16px}.booking-flow-toggle-label{margin-right:3px}.class-toggle-btn{border:1px solid #cfe0ff;border-radius:999px;background:#fff;color:#52657f;min-height:38px;padding:0 14px;font-size:13px;font-weight:850}.class-toggle-btn.is-active{background:#2563eb;color:#fff;border-color:#2563eb;box-shadow:none}.booking-flow-summary-card{display:grid;gap:12px}.booking-flow-summary-card>span{color:#60799f;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.booking-flow-summary-card>strong{color:#1d4ed8;font-size:34px;font-weight:950;letter-spacing:-.04em}.booking-flow-summary-card p{margin:0;color:#60799f;font-size:13px;line-height:1.5}.booking-flow-primary,.booking-flow-secondary{width:100%;min-height:46px;border-radius:12px;font-size:14px;font-weight:900}.booking-flow-primary{margin-top:4px;border:0;background:#2563eb;color:#fff;box-shadow:0 12px 22px rgba(37,99,235,.18)}.booking-flow-secondary{border:1px solid #d5e1f2;background:#fff;color:#52657f}@media (max-width:980px){.booking-flow-grid{grid-template-columns:1fr}.booking-flow-tutor-card,.booking-flow-summary-card{position:static}}@media (max-width:640px){.booking-flow-page{padding:24px 0 42px}.booking-flow-shell{width:min(100% - 24px,1120px)}.booking-flow-field-grid{grid-template-columns:1fr}.booking-flow-topbar{align-items:flex-start;flex-direction:column}.booking-flow-steps{width:100%}.booking-flow-steps span{flex:1}}


/* ============================================================
   360 px and below — eliminate side whitespace, fill full width
   ============================================================ */
@media (max-width: 390px) {

  /* Main shell wrapper: remove the fixed horizontal margin so
     content reaches the screen edge (leave only 8px each side). */
  .mtc-shell {
    width: 100%;
    padding-left: 8px  !important;
    padding-right: 8px !important;
  }

  /* Core layout containers */
  .container,
  .site-nav,
  .footer-grid {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Keep the 2-column metric grid but let it breathe on tiny screens */
  .mtc-admin-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  /* Metric card — compact padding so text fits */
  .mtc-admin-metric-card {
    padding: 12px 10px;
    gap: 8px;
  }

  .mtc-metric-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .mtc-admin-metric-card strong {
    font-size: 18px;
  }

  .mtc-admin-metric-card span {
    font-size: 10px;
  }

  /* Dashboard hero */
  .sdh-hero {
    padding: 16px 10px;
    margin-top: 8px;
  }

  .sdh-title {
    font-size: 20px;
  }

  .sdh-subtitle {
    font-size: 12px;
    margin-bottom: 12px;
  }

  /* Search wrapper inside hero */
  .sdh-search-wrapper {
    padding: 4px;
    border-radius: 10px;
  }

  .sdh-search-input {
    padding: 9px 6px;
    font-size: 12px;
  }

  .sdh-search-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Prompt pills */
  .sdh-prompt-pill {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* Admin card */
  .mtc-admin-card {
    padding: 14px 12px;
  }

  /* Recent bookings row */
  .mtc-dashboard-booking-row {
    padding: 12px 10px;
  }

  /* Booking flow shell */
  .booking-flow-shell {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Auth wrapper */
  .mtc-auth-form-wrapper {
    padding: 20px 12px;
  }

  /* Stories / review containers */
  .mtc-review-container {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVENESS AND AUTO-ADAPTIVE UPDATES
   ========================================================================== */

/* 1. Universal Table Wrapper to prevent horizontal page overflow */
.mtc-admin-card, 
.tutor-portal-bg .tutor-form-card, 
.mtc-student-bookings-card,
.mtc-admin-content > div:has(table) {
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Ensure tables inside these containers have readable spacing on small displays */
.mtc-admin-card table, 
.tutor-portal-bg table, 
.mtc-student-bookings-card table,
.mtc-admin-content table {
  min-width: 650px;
}

/* 2. Auto-Adaptive grids instead of rigid columns */
.mtc-dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 20px !important;
}

/* 3. Spacing & Container optimizations on tablets, iPads and mobile */
@media (max-width: 991px) {
  .mtc-admin-layout {
    grid-template-columns: 1fr !important;
    margin: 10px 0 !important;
    border-radius: 16px !important;
  }
  .mtc-admin-sidebar {
    border-radius: 16px 16px 0 0 !important;
    border-right: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 16px !important;
  }
  .mtc-admin-content {
    padding: 20px 16px !important;
  }
}

/* 4. Form adjustments for portrait devices (iPads and phones) */
@media (max-width: 768px) {
  .tutor-portal-bg .tutor-form-grid {
    grid-template-columns: 1fr !important;
  }
  .mtc-admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .mtc-admin-charts-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .mtc-admin-hero {
    padding: 20px 16px !important;
  }
  .mtc-admin-hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .mtc-hero-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* 5. Chat Interface optimization on mobile */
@media (max-width: 576px) {
  .chat-container {
    height: 80vh !important;
  }
  .messages-display {
    padding: 12px 16px !important;
  }
  .message-input-area {
    padding: 12px 16px !important;
  }
  #chat-message-input {
    font-size: 14px !important;
    padding: 10px 14px !important;
  }
  .chat-send-btn {
    padding: 8px 16px !important;
    font-size: 14px !important;
  }
  .mtc-admin-metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   PRO MOBILE HERO SECTION & VOICE WIDGET OVERRIDES
   ========================================================================== */

/* Hide floating mic widget on mobile screens (< 768px) */
@media (max-width: 768px) {
  #floating-mic-widget,
  .floating-mic-widget {
    display: none !important;
  }
}

/* Pro Mobile Hero Typography, Alignment & Spacing (< 600px) */
@media (max-width: 600px) {
  .mtc-hero {
    padding: 32px 0 24px !important;
    text-align: center !important;
  }

  .mtc-hero h1 {
    font-size: 28px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    margin: 12px 0 16px !important;
    text-align: center !important;
  }

  .mtc-hero h1 span {
    display: inline-block !important;
  }

  .mtc-hero-copy {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 auto 20px !important;
    max-width: 100% !important;
    color: #475569 !important;
  }

  /* Search Box Styling on Mobile */
  .mtc-search {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 14px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
  }

  .mtc-search-input-wrap input,
  .mtc-search input {
    font-size: 14px !important;
    padding: 12px 48px 12px 14px !important;
    height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mtc-search-input-wrap .voice-search-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #2563eb !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
  }

  .mtc-search-input-wrap .voice-search-btn:active,
  .mtc-search-input-wrap .voice-search-btn:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
  }

  .mtc-search-input-wrap .voice-search-btn.recording {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    animation: micPulse 0.8s infinite alternate !important;
  }

  .mtc-search button[type="submit"] {
    width: 100% !important;
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    justify-content: center !important;
  }

  /* Try pills layout */
  .mtc-try {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }

  .mtc-try span {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 4px !important;
  }

  .mtc-try a {
    display: inline-block !important;
    padding: 6px 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 99px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
  }

  /* Hero Actions (Become a Tutor & Social Proof) */
  .mtc-hero-actions {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 24px !important;
    width: 100% !important;
  }

  .mtc-dark-btn {
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
  }

  .mtc-joined {
    margin-top: 0 !important;
    justify-content: center !important;
  }

  /* Compact 3-column Stats Bar on Mobile */
  .mtc-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 16px 8px !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05) !important;
    margin-top: 28px !important;
  }

  .mtc-stats div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 4px !important;
    text-align: center !important;
  }

  .mtc-stats div + div {
    border-top: none !important;
    border-left: 1px solid #f1f5f9 !important;
  }

  .mtc-stat-icon {
    display: none !important;
  }

  .mtc-stats strong {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
  }

  .mtc-stats small {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin-top: 4px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
  }
}

/* ==========================================================================
   COURSE DETAIL & ADMIN DASHBOARD MOBILE RESPONSIVENESS OVERRIDES
   ========================================================================== */

/* Course Detail Highlight Metric Chips Grid */
.detail-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
  .detail-metric-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .detail-hero-info {
    padding: 24px 18px !important;
  }
  .detail-section-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }
  .detail-sticky-sidebar {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }
  .detail-hero-info h1 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
}

/* Admin Verification Cards & Shared Admin Hero Overrides */
.mtc-verification-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: #ffffff;
}

@media (max-width: 768px) {
  .mtc-homepage-admin-hero {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px 16px !important;
    gap: 12px !important;
    border-radius: 18px !important;
  }
  .mtc-homepage-admin-hero h1 {
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }
  .mtc-homepage-admin-hero p {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
  .mtc-verification-card {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 16px !important;
  }
  .mtc-verification-card > div:last-child {
    width: 100% !important;
    justify-content: flex-start !important;
  }
  .mtc-verification-card button {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
  }
}



