:root {
  color-scheme: light;
  --ink: #191815;
  --muted: #6e6961;
  --line: #ded8cd;
  --paper: #f5f0e8;
  --panel: #fffdf8;
  --soft: #ebe4d8;
  --accent: #191815;
  --accent-soft: #d8d0c2;
  --success: #146b4f;
  --warning: #9a6b17;
  --shadow: 0 26px 80px rgba(25, 24, 21, 0.12);
  --soft-shadow: 0 16px 42px rgba(25, 24, 21, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(25, 24, 21, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(25, 24, 21, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

.is-loading {
  overflow: hidden;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper);
  opacity: 1;
  visibility: visible;
  transition: opacity 720ms ease, visibility 720ms ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-screen.is-gone {
  display: none;
}

.loading-core {
  display: grid;
  justify-items: center;
  gap: 34px;
  transform: translateY(2vh);
}

.loading-core img {
  width: min(420px, 72vw);
  height: auto;
}

.loading-core p {
  margin: 10px 0 0;
  color: rgba(25, 24, 21, 0.38);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.loading-dots {
  display: flex;
  gap: 26px;
  align-items: center;
}

.loading-dots span {
  width: 13px;
  height: 13px;
  background: var(--ink);
  border-radius: 50%;
  animation: loadingPulse 1.35s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.loading-dots span:nth-child(3) {
  animation-delay: 240ms;
}

.loading-dots span:nth-child(4) {
  animation-delay: 360ms;
}

.loading-dots span:nth-child(5) {
  animation-delay: 480ms;
}

.loading-dots span:nth-child(6) {
  animation-delay: 600ms;
}

@keyframes loadingPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.25;
    transform: scale(0.72);
  }
}

.loading-orb {
  position: absolute;
  width: clamp(140px, 17vw, 250px);
  aspect-ratio: 1;
  border: 2px solid rgba(25, 24, 21, 0.28);
  border-radius: 50%;
}

.loading-orb-top {
  top: -62px;
  left: -34px;
}

.loading-orb-bottom {
  right: 54px;
  bottom: 28px;
}

.loading-line {
  position: absolute;
  top: 76px;
  left: 60px;
  width: 260px;
  height: 2px;
  background: rgba(25, 24, 21, 0.28);
  transform: rotate(134deg);
  transform-origin: left center;
}

.loading-dot-grid {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 22px;
}

.loading-dot-grid span {
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  animation: loadingPulse 1.7s ease-in-out infinite;
}

.loading-dot-grid span:nth-child(2n) {
  animation-delay: 160ms;
}

.loading-dot-grid span:nth-child(3n) {
  animation-delay: 320ms;
}

.loading-dot-grid-top {
  top: 108px;
  right: 10vw;
}

.loading-dot-grid-bottom {
  bottom: 120px;
  left: 7vw;
  grid-template-columns: repeat(3, 8px);
}

.app-page:not(.active) {
  display: none !important;
}

.app-page.active {
  display: grid;
  animation: pageIn 420ms ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(245, 240, 232, 0.86);
  border-bottom: 1px solid rgba(25, 24, 21, 0.12);
  backdrop-filter: blur(24px);
}

.brand,
.nav-links a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  border-radius: 8px;
}

.brand-logo {
  width: clamp(188px, 14vw, 260px);
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: contain;
  border: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a.active {
  color: var(--ink);
  font-weight: 800;
  box-shadow: inset 0 -2px 0 var(--ink);
}

.top-actions,
.account-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-menu {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 8px 0 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-weight: 900;
}

.mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.82rem;
}

.user-dropdown {
  position: absolute;
  top: calc(100% - 14px);
  right: 0;
  z-index: 60;
  width: 280px;
  padding: 12px 0;
  background: #fffdf8;
  border: 1px solid rgba(25, 24, 21, 0.12);
  box-shadow: 0 24px 54px rgba(25, 24, 21, 0.18);
}

.user-dropdown button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 1rem;
  font-weight: 900;
  text-align: left;
}

.user-dropdown button:hover {
  background: rgba(235, 228, 216, 0.54);
}

.user-dropdown button + button {
  border-top: 1px solid rgba(25, 24, 21, 0.08);
}

.primary-btn,
.secondary-btn,
.icon-btn,
.segment {
  border: 0;
  border-radius: 12px;
  min-height: 42px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.primary-btn {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 16px 30px rgba(25, 24, 21, 0.15);
}

.primary-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

.secondary-btn {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid rgba(25, 24, 21, 0.16);
}

.secondary-btn:hover,
.icon-btn:hover,
.segment:hover {
  transform: translateY(-1px);
}

.wide {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(25, 24, 21, 0.14);
}

svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  padding: 72px clamp(18px, 5vw, 72px) 112px;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.92) opacity(0.36);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(245, 240, 232, 0.98) 0%, rgba(245, 240, 232, 0.88) 50%, rgba(245, 240, 232, 0.48) 100%),
    linear-gradient(180deg, rgba(245, 240, 232, 0.4), rgba(245, 240, 232, 0.94));
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4.5vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  max-width: 820px;
  margin-top: 30px;
  padding: 10px;
  background: rgba(255, 253, 250, 0.76);
  border: 1px solid rgba(25, 24, 21, 0.14);
  border-radius: 6px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search label,
.field {
  display: grid;
  gap: 7px;
}

.hero-search span,
.field span,
.range-row,
.toggle-row {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(25, 24, 21, 0.14);
  border-radius: 6px;
  outline: none;
}

textarea {
  min-height: 108px;
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(25, 24, 21, 0.08);
}

.hero .hero-stat-row,
.hero-stat-row {
  display: none;
}

.hero-stat-row div {
  padding: 16px;
  background: rgba(255, 253, 250, 0.72);
  border: 1px solid rgba(228, 219, 221, 0.72);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.hero-stat-row strong,
.hero-stat-row span {
  display: block;
}

.hero-stat-row strong {
  font-size: 1.15rem;
}

.hero-stat-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-stat-row .logo-stat {
  display: grid;
  place-items: center;
  padding: 10px;
}

.logo-stat img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.strip {
  min-height: calc(100vh - 72px);
  align-content: center;
  background:
    radial-gradient(circle at top right, rgba(25, 24, 21, 0.08), transparent 30rem),
    #211c1f;
  color: #fff;
}

.page-heading {
  max-width: 860px;
  padding: 70px clamp(18px, 5vw, 72px) 28px;
}

.page-heading h2 {
  color: #fff;
}

.page-heading p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.62;
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 72px) 70px;
  background: transparent;
}

.strip article {
  min-height: 210px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.strip p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.step {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
  font-weight: 800;
}

.workspace {
  grid-template-columns: minmax(250px, 320px) 1fr;
  min-height: calc(100vh - 72px);
  gap: 28px;
  padding: 46px clamp(18px, 5vw, 72px);
  background: transparent;
}

.filters,
.booking-modal {
  background: rgba(255, 253, 250, 0.78);
  border: 1px solid rgba(228, 219, 221, 0.78);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.filters {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 20px;
}

.panel-heading h2,
.panel-heading p {
  margin-bottom: 2px;
}

.panel-heading p {
  color: var(--muted);
}

.range-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: var(--accent);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.results-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.segmented {
  display: flex;
  padding: 4px;
  background: #e6e0d6;
  border-radius: 8px;
}

.segment {
  min-width: 84px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.segment.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 6px 18px rgba(18, 45, 59, 0.08);
}

.account-lock-note {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
}

.tutor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  align-items: stretch;
}

.tutor-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  background: rgba(255, 253, 250, 0.74);
  border: 1px solid rgba(228, 219, 221, 0.78);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tutor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 24, 21, 0.22);
  box-shadow: 0 22px 48px rgba(56, 45, 48, 0.12);
}

.tutor-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  border-radius: 8px;
  font-weight: 800;
}

.rating {
  grid-column: 2;
  color: var(--success);
  font-weight: 800;
}

.tutor-card h3,
.tutor-card p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.tutor-card p {
  color: var(--muted);
  line-height: 1.5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.chip {
  max-width: 100%;
  padding: 7px 9px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.84);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.card-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-actions .primary-btn,
.card-actions .secondary-btn {
  width: 100%;
  min-height: 40px;
  padding: 0 13px;
  white-space: normal;
}

.card-actions .primary-btn {
  grid-column: 1 / -1;
}

.price {
  display: grid;
  gap: 2px;
}

.price strong {
  font-size: 1.15rem;
}

.price span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.account-zone {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  min-height: calc(100vh - 72px);
  gap: 42px;
  align-items: start;
  padding: 70px clamp(18px, 5vw, 72px);
}

.account-side {
  align-self: start;
  padding: 22px;
  background: rgba(255, 253, 250, 0.76);
  border: 1px solid rgba(228, 219, 221, 0.78);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.account-side strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.account-side p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-page {
  min-height: calc(100vh - 72px);
  align-content: start;
  gap: 20px;
  padding: 54px clamp(18px, 5vw, 72px);
}

.profile-page,
.messages-page,
.bookings-page,
.reviews-page,
.info-page,
.account-details-page {
  min-height: calc(100vh - 72px);
  align-content: start;
  gap: 20px;
  padding: 54px clamp(18px, 5vw, 72px);
}

.page-shell {
  display: grid;
  gap: 28px;
}

.info-grid,
.settings-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.settings-layout {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.8fr);
}

.info-grid article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(25, 24, 21, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(25, 24, 21, 0.07);
}

.info-grid strong {
  font-size: 1.1rem;
}

.info-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.page-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.page-title-row p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.text-link {
  justify-self: start;
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.dashboard-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.public-profile,
.messages-layout,
.bookings-layout,
.reviews-layout {
  display: grid;
  gap: 18px;
}

.profile-hero-card {
  display: grid;
  grid-template-columns: 180px 1fr 260px;
  gap: 28px;
  align-items: start;
  padding: 26px;
  background: rgba(255, 253, 250, 0.78);
  border: 1px solid rgba(228, 219, 221, 0.78);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.profile-photo {
  display: grid;
  width: 180px;
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  border-radius: 8px;
  font-size: 3rem;
  font-weight: 900;
}

.profile-rate {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 900;
}

.profile-actions {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(25, 24, 21, 0.12);
  border-radius: 8px;
}

.profile-actions strong {
  font-size: 1.8rem;
}

.profile-actions span {
  color: var(--muted);
  font-weight: 700;
}

.profile-copy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.profile-copy-grid section,
.message-room,
.thread-list,
.booking-builder,
.booking-lists section,
.review-form,
.review-card {
  padding: 20px;
  background: rgba(255, 253, 250, 0.74);
  border: 1px solid rgba(228, 219, 221, 0.78);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.profile-copy-grid p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.messages-layout {
  grid-template-columns: minmax(240px, 320px) 1fr;
}

.thread-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.thread-button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
}

.thread-button.active,
.thread-button:hover {
  background: rgba(255, 253, 248, 0.84);
  border-color: rgba(25, 24, 21, 0.12);
}

.thread-button small {
  display: block;
  color: var(--muted);
}

.small-avatar {
  width: 42px;
  height: 42px;
  font-size: 0.85rem;
}

.message-room {
  display: grid;
}

#messagePageMessages {
  min-height: 360px;
  max-height: 520px;
  overflow: auto;
  padding-right: 8px;
}

.bookings-layout {
  grid-template-columns: minmax(280px, 360px) 1fr;
}

.booking-builder {
  display: grid;
  gap: 14px;
  align-content: start;
}

.booking-lists {
  display: grid;
  gap: 18px;
}

.schedule-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.booking-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(228, 219, 221, 0.72);
  border-radius: 8px;
}

.booking-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.booking-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 9px;
  padding: 5px 9px;
  color: var(--ink);
  background: rgba(237, 230, 218, 0.7);
  border: 1px solid rgba(25, 24, 21, 0.1);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.booking-status.accepted {
  color: var(--success);
  background: rgba(20, 107, 79, 0.08);
}

.booking-status.rejected {
  color: #8e2e24;
  background: rgba(142, 46, 36, 0.08);
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 420px;
}

.compact-btn {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.8rem;
}

.reviews-layout {
  grid-template-columns: minmax(300px, 420px) 1fr;
}

.review-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.review-list {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding-right: 8px;
}

.review-card strong {
  color: #c78300;
}

.review-card p {
  margin: 10px 0;
  color: var(--ink);
  line-height: 1.55;
}

.review-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-intro p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.login-confirmation {
  padding: 14px 16px;
  color: var(--success);
  background: #f2f7f1;
  border: 1px solid rgba(47, 140, 103, 0.24);
  border-radius: 8px;
  font-weight: 800;
  animation: pageIn 300ms ease both;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 14px;
}

.auth-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgba(255, 253, 250, 0.78);
  border: 1px solid rgba(228, 219, 221, 0.78);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.auth-panel h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.signup-status {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.signup-status.success {
  color: var(--success);
}

.locked-action {
  opacity: 0.58;
}

.account-copy p {
  color: var(--muted);
  line-height: 1.68;
}

.dashboard {
  display: grid;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.dash-header,
.role-tools article,
.ratings-panel,
.profile-panel,
.activity-panel,
.chat-title,
.lesson-list article,
.checkout-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-header {
  min-height: 58px;
  padding: 0 0 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.dash-header div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.role-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.role-tools article,
.ratings-panel,
.profile-panel,
.activity-panel {
  padding: 14px;
  background: rgba(255, 253, 250, 0.72);
  border: 1px solid rgba(228, 219, 221, 0.78);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.role-tools article {
  display: grid;
  align-items: start;
  justify-content: start;
}

.role-tools span,
.ratings-panel span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ratings-panel.highlight {
  border-color: rgba(47, 140, 103, 0.3);
  background: #f2f7f1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
}

.profile-panel,
.activity-panel {
  display: grid;
  align-items: start;
  gap: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title h3 {
  margin: 0;
  font-size: 1.08rem;
}

.section-title span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-form {
  display: grid;
  gap: 12px;
}

.activity-feed {
  display: grid;
  gap: 9px;
  max-height: 260px;
  overflow: auto;
}

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(228, 219, 221, 0.62);
}

.activity-item span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.activity-item strong {
  font-size: 0.92rem;
}

.activity-item time,
.empty-copy {
  color: var(--muted);
  font-size: 0.82rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(47, 155, 114, 0.12);
}

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

.feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 2px;
}

.feed-heading strong {
  font-size: 0.94rem;
}

.lesson-list article {
  padding: 14px;
  background: rgba(255, 253, 250, 0.68);
  border: 1px solid rgba(228, 219, 221, 0.72);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(56, 45, 48, 0.06);
}

.lesson-list time {
  width: 92px;
  color: var(--accent);
  font-weight: 800;
}

.lesson-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-card {
  padding: 16px;
  background: rgba(255, 253, 250, 0.74);
  border: 1px solid rgba(228, 219, 221, 0.78);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.chat-title {
  margin-bottom: 12px;
}

.chat-title div {
  display: grid;
  gap: 3px;
}

.chat-title span {
  color: var(--muted);
  font-size: 0.88rem;
}

.bubble {
  max-width: 80%;
  margin-bottom: 10px;
  padding: 11px 13px;
  border-radius: 8px;
  animation: pageIn 220ms ease both;
}

.bubble time {
  display: block;
  margin-top: 4px;
  opacity: 0.62;
  font-size: 0.7rem;
}

.incoming {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.outgoing {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--accent));
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 6px 6px 6px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-input input {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#chatMessages {
  max-height: 320px;
  overflow: auto;
  padding-right: 6px;
}

.rating-form {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.star-row {
  display: flex;
  gap: 6px;
}

.star-row label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-row label span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(228, 219, 221, 0.9);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.star-row label input:checked + span,
.star-row label:has(input:checked) span {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

body[data-role="tutor"] [data-student-parent-only] {
  display: none;
}

body:not([data-role="tutor"]) .tutor-profile-field {
  display: none;
}

dialog {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(23, 20, 22, 0.44);
  backdrop-filter: blur(5px);
}

.booking-modal {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.booking-body {
  display: grid;
  gap: 14px;
}

.checkout-summary {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-summary div {
  padding: 14px;
  background: var(--soft);
}

.checkout-summary span {
  color: var(--muted);
  font-weight: 700;
}

/* tutrSTEM visual polish */
body:not(.site-ready) .topbar,
body:not(.site-ready) .hero-content,
body:not(.site-ready) .hero-search,
body:not(.site-ready) .hero-media {
  opacity: 0;
  transform: translateY(14px);
}

.topbar,
.hero-content,
.hero-search,
.hero-media {
  transition: opacity 900ms ease, transform 900ms ease;
}

body.site-ready .topbar {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 80ms;
}

body.site-ready .hero-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 220ms;
}

body.site-ready .hero-search {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 420ms;
}

body.site-ready .hero-media {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 160ms;
}

.hero-search,
.filters,
.tutor-card,
.account-side,
.auth-panel,
.profile-hero-card,
.profile-copy-grid section,
.message-room,
.thread-list,
.booking-builder,
.booking-lists section,
.review-form,
.review-card,
.role-tools article,
.ratings-panel,
.profile-panel,
.activity-panel,
.chat-card,
.lesson-list article {
  background: rgba(255, 253, 248, 0.88);
  border-color: rgba(25, 24, 21, 0.14);
  border-radius: 12px;
}

.filters,
.profile-panel,
.activity-panel,
.thread-list,
.booking-builder,
.review-form {
  box-shadow: none;
}

.tutor-card,
.profile-hero-card,
.message-room,
.booking-lists section,
.review-card,
.lesson-list article,
.chat-card {
  box-shadow: 0 18px 46px rgba(25, 24, 21, 0.07);
}

.tutor-card {
  min-height: 100%;
  padding: 20px;
  gap: 14px;
  border-radius: 14px;
}

.tutor-head {
  grid-template-columns: 52px minmax(0, 1fr);
}

.avatar,
.profile-photo {
  color: var(--paper);
  background: #191815;
  border-radius: 12px;
}

.chip {
  padding: 6px 10px;
  background: rgba(237, 230, 218, 0.68);
  border: 1px solid rgba(25, 24, 21, 0.1);
  border-radius: 999px;
  font-size: 0.74rem;
}

.rating,
.section-title span,
.activity-item span,
.lesson-list time,
.text-link {
  color: var(--ink);
}

.step {
  color: var(--paper);
  border-radius: 50%;
}

.logo-stat img {
  width: 140px;
  height: 54px;
  border-radius: 0;
  object-fit: contain;
}

.hero-stat-row div {
  border-color: rgba(25, 24, 21, 0.14);
  border-radius: 12px;
}

.results-top,
.dashboard-intro,
.page-title-row {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(25, 24, 21, 0.12);
}

.page-title-row {
  align-items: start;
}

.review-card strong {
  color: var(--warning);
}

.outgoing {
  background: #191815;
}

.login-confirmation,
.ratings-panel.highlight {
  border-color: rgba(20, 107, 79, 0.22);
}

@media (max-width: 1100px) {
  .tutor-grid,
  .strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .workspace,
  .account-zone,
  .dashboard-intro,
  .dashboard-grid,
  .info-grid,
  .settings-layout,
  .rating-form,
  .profile-hero-card,
  .profile-copy-grid,
  .messages-layout,
  .bookings-layout,
  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: min(180px, 100%);
  }

  .dashboard-intro {
    display: grid;
    align-items: start;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: auto;
    align-items: start;
  }

  .brand-logo {
    width: min(72vw, 340px);
    height: 74px;
    object-fit: cover;
  }

  .top-actions {
    gap: 6px;
  }

  .top-actions .primary-btn {
    padding: 0 12px;
  }

  .nav-links,
  .top-actions .secondary-btn {
    display: none;
  }

  .hero {
    min-height: 860px;
    align-items: start;
    padding-top: 54px;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 255, 255, 0.38) 100%);
  }

  .hero-search,
  .results-top {
    grid-template-columns: 1fr;
  }

  .hero-stat-row {
    display: none !important;
    right: 18px;
    left: 18px;
  }

  .strip-inner,
  .tutor-grid,
  .role-tools,
  .dashboard-grid,
  .profile-copy-grid,
  .messages-layout,
  .bookings-layout,
  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .card-footer {
    grid-template-columns: 1fr;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .card-actions .primary-btn,
  .card-actions .secondary-btn {
    grid-column: 1;
  }

  .results-top {
    display: grid;
  }

  .segmented {
    width: 100%;
  }

  .segment {
    flex: 1;
    min-width: 0;
  }

  .lesson-list article {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .booking-row {
    grid-template-columns: auto 1fr;
  }

  .booking-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .booking-actions .secondary-btn {
    flex: 1;
  }

  .lesson-list time {
    width: auto;
    grid-column: 1 / -1;
  }
}
