:root {
  --navy: #20344d;
  --gold: #c9a227;
  --cream: #faf7f2;
  --ink: #1c2733;
  --muted: #6b7684;
  --line: #e4ddd0;
  --ok-bg: #e7f6ec;
  --err-bg: #fdeaea;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--navy); }
.wrap { max-width: 1024px; margin: 0 auto; padding: 24px 20px 56px; }
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 24px; background: var(--navy); color: #fff; flex-wrap: wrap;
}
.site-header a { color: #fff; text-decoration: none; margin-left: 14px; }
.brand { font-size: 1.25rem; font-weight: bold; margin-left: 0 !important; display: inline-flex; align-items: center; gap: 10px; }
.brand span { color: var(--gold); }
.brand-mark { display: block; border-radius: 9px; }
.nav-user { color: #cfd8e3; font-size: .9rem; }
.inline { display: inline; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 24px; text-align: center; }
.muted { color: var(--muted); }
.demo-banner {
  background: #fff3cd; border-bottom: 2px solid var(--gold); color: #664d03;
  padding: 10px 16px; text-align: center; font-weight: bold;
}
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.flash-ok { background: var(--ok-bg); }
.flash-error { background: var(--err-bg); }
.hero { text-align: center; padding: 28px 0 8px; }
.hero h1 { font-size: 2.1rem; margin-bottom: 8px; }
.search { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 18px 0 8px; }
.search input, .search select { padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin: 16px 0; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.card h3 { margin: 0; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.chip { background: var(--navy); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: .8rem; }
.price { font-weight: bold; color: var(--navy); }
.pill { padding: 2px 10px; border-radius: 999px; font-size: .8rem; background: #eee; }
.pill-paid { background: var(--ok-bg); }
.pill-requested { background: #fff3cd; }
.pill-accepted { background: #e2e8f5; }
.pill-declined, .pill-cancelled { background: var(--err-bg); }
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px; border: 1px solid var(--navy);
  font: inherit; cursor: pointer; text-decoration: none; background: #fff; color: var(--navy);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #2b4767; }
.btn-ghost { border-color: var(--line); background: transparent; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 16px 0; }
.form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: bold; }
.form input, .form textarea, .form select {
  padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: normal;
}
.form.compact { max-width: none; }
.cta { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-top: 28px; }
.empty { color: var(--muted); }
.video { position: relative; padding-top: 56.25%; margin: 12px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
table.split { border-collapse: collapse; }
table.split td { padding: 4px 12px 4px 0; }
@media (max-width: 640px) { .hero h1 { font-size: 1.6rem; } }

/* Teacher profile photos (avatars) */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  flex: none; display: inline-block; vertical-align: middle;
  background: var(--navy);
}
.avatar-lg { width: 88px; height: 88px; }
.avatar-initials {
  color: var(--gold); font-weight: bold; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar-lg.avatar-initials { font-size: 1.9rem; }
.teacher-line { display: flex; align-items: center; gap: 10px; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.profile-head h1 { margin: 0; }
.photo-row { display: flex; align-items: center; gap: 14px; font-weight: normal; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: normal; }

/* ---------- Professional design pass (2026-11-09) ---------- */
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1, h2, h3, .brand { font-family: 'Fraunces', Georgia, serif; letter-spacing: .01em; }
.site-header { box-shadow: 0 2px 14px rgba(16, 32, 54, .25); }
.card { transition: box-shadow .18s ease, transform .18s ease; }
.card:hover { box-shadow: 0 10px 26px rgba(32, 52, 77, .14); transform: translateY(-2px); }
.btn { transition: filter .15s ease, background .15s ease; }
.section-title { margin: 34px 0 6px; }

/* Homepage hero: text + photo side by side */
.hero2 {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center;
  padding: 34px 0 10px;
}
.hero2 h1 { font-size: 2.6rem; line-height: 1.12; margin: 0 0 14px; color: var(--navy); }
.lede { font-size: 1.13rem; color: #3d4a59; margin: 0 0 20px; max-width: 34rem; }
.hero2 .search { margin: 0; max-width: 34rem; }
.hero2-note { color: var(--muted); font-size: .92rem; margin: 14px 0 0; }
.hero2-img {
  width: 100%; height: 100%; max-height: 420px; object-fit: cover;
  border-radius: 18px; box-shadow: 0 18px 44px rgba(32, 52, 77, .28);
}

/* Instrument tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0 6px; }
.tile { position: relative; display: block; border-radius: 14px; overflow: hidden; text-decoration: none; box-shadow: 0 6px 18px rgba(32, 52, 77, .16); }
.tile img { display: block; width: 100%; height: 150px; object-fit: cover; transition: transform .25s ease; }
.tile:hover img { transform: scale(1.05); }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px;
  color: #fff; font-weight: 600; font-size: 1.02rem;
  background: linear-gradient(transparent, rgba(16, 32, 54, .82));
}

/* How it works */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin: 38px 0 6px; }
.steps { padding-left: 1.25rem; margin: 10px 0; }
.steps li { margin-bottom: 12px; }
.steps li::marker { color: var(--gold); font-weight: 700; }

/* Trust row */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 6px; }
.trust-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.trust-item strong { color: var(--navy); font-size: 1.02rem; }
.trust-item span { color: var(--muted); font-size: .94rem; }

/* Admin */
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; display: flex; flex-direction: column; min-width: 118px;
}
.stat-value { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.stat-label { color: var(--muted); font-size: .85rem; }
.table-scroll { overflow-x: auto; }
.admin-table { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: middle; }
.admin-table th { background: var(--cream); color: var(--navy); }

@media (max-width: 820px) {
  .hero2 { grid-template-columns: 1fr; padding-top: 22px; }
  .hero2 h1 { font-size: 2.05rem; }
  .hero2-img { max-height: 260px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; gap: 8px; }
  .trust { grid-template-columns: 1fr; }
}
