:root {
  --bg: #0e0e10;
  --bg-soft: #17171b;
  --bg-card: #1d1d22;
  --fg: #f4f1ea;
  --fg-dim: #a8a39a;
  --accent: #d4a24c;
  --accent-hot: #e84e2e;
  --danger: #c8432b;
  --ok: #4fa876;
  --border: #2a2a30;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.45);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-thai: 'Noto Serif Thai', 'Cinzel', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hot); }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* ============ LOGIN SCREEN ============ */
.is-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at top, rgba(212,162,76,0.12), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(232,78,46,0.1), transparent 60%),
    var(--bg);
}
.login-screen {
  width: min(920px, 94vw);
  padding: 2rem;
}
.login-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  animation: card-in 0.8s ease both;
}
.login-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(212,162,76,0.6), transparent 40%, rgba(232,78,46,0.4) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  animation: fade-in 1.2s 0.6s ease both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.login-logo {
  background: #000;
  display: grid;
  place-items: center;
  padding: 1rem;
  min-height: 420px;
}
.login-logo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.login-form {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  position: relative;
}
.thai-mark {
  font-family: var(--font-thai);
  font-size: 1.15rem;
  color: var(--accent);
  opacity: 0.55;
  letter-spacing: 0.25em;
  text-align: center;
  margin-bottom: 0.5rem;
  animation: thai-mark-fade 1.2s ease 0.3s both;
}
@keyframes thai-mark-fade {
  from { opacity: 0; letter-spacing: 0.6em; }
  to   { opacity: 0.55; letter-spacing: 0.25em; }
}
.login-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: 0.12em;
  color: var(--accent);
  text-align: center;
  text-shadow: 0 0 24px rgba(212,162,76,0.25);
  white-space: nowrap;
  line-height: 1.2;
}
.login-title .word {
  display: inline-block;
  white-space: nowrap;
}
.login-title .glyph {
  display: inline-block;
  opacity: 0;
  transform: translateY(-12px);
  animation: glyph-drop 0.55s ease forwards;
}
.login-title .g1  { animation-delay: 0.10s; }
.login-title .g2  { animation-delay: 0.18s; }
.login-title .g3  { animation-delay: 0.26s; }
.login-title .g4  { animation-delay: 0.34s; }
.login-title .g5  { animation-delay: 0.52s; }
.login-title .g6  { animation-delay: 0.60s; }
.login-title .g7  { animation-delay: 0.68s; }
.login-title .g8  { animation-delay: 0.76s; }
.login-title .g9  { animation-delay: 0.84s; }
.login-title .g10 { animation-delay: 0.92s; }
.title-sep {
  display: inline-block;
  width: 0.8em;
  height: 1px;
  background: var(--accent);
  margin: 0 0.35em;
  vertical-align: middle;
  opacity: 0;
  animation: glyph-drop 0.55s 0.43s ease forwards;
}
@keyframes glyph-drop {
  from { opacity: 0; transform: translateY(-14px); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.login-form .tagline {
  margin: 0;
  color: var(--fg-dim);
  text-align: center;
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fade-in 0.8s 1.1s ease both;
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--accent);
  margin: 0.6rem 0 0.4rem;
  animation: fade-in 0.8s 1.25s ease both;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}
.divider span {
  font-size: 0.75rem;
  opacity: 0.7;
  letter-spacing: 0.5em;
  animation: spin-slow 8s linear infinite;
  display: inline-block;
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fade-in 0.6s 1.35s ease both;
}
.login-form label:nth-of-type(2) { animation-delay: 1.45s; }
.login-form input {
  padding: 0.75rem 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-size: 1rem;
  transition: border-color 0.15s;
}
.login-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.login-form button {
  margin-top: 0.75rem;
  padding: 0.95rem;
  background: var(--accent-hot);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(232,78,46,0.25);
  animation: fade-in 0.6s 1.55s ease both;
}
.login-form button:hover {
  background: #ff5a37;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(232,78,46,0.45);
}
.login-form button:active { transform: translateY(0); }
.login-form .hint {
  animation: fade-in 0.6s 1.7s ease both;
}
.login-form .hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--fg-dim);
  text-align: center;
}
.error {
  color: var(--danger);
  background: rgba(200,67,43,0.1);
  border: 1px solid rgba(200,67,43,0.4);
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  font-size: 0.9rem;
  margin: 0;
}
@media (max-width: 640px) {
  .login-card { grid-template-columns: 1fr; }
  .login-logo { min-height: 220px; }
  .login-title {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
  }
  .login-form { padding: 2rem 1.25rem; }
}

/* ============ APP SHELL ============ */
.is-app { background: var(--bg); }
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(14,14,16,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.brand strong {
  display: block;
  color: var(--accent);
  letter-spacing: 0.12em;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}
.brand span { color: var(--fg-dim); font-size: 0.8rem; }
.top-bar nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.top-bar nav a { color: var(--fg); font-size: 0.95rem; }
.user-box { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--fg-dim); }
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  background: var(--bg-soft);
}
.user-box strong { color: var(--accent); }
.user-box button {
  background: transparent;
  color: var(--fg-dim);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-size: 0.85rem;
}
.user-box button:hover { color: var(--fg); border-color: var(--accent); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 80% 50%, rgba(212,162,76,0.08), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(232,78,46,0.06), transparent 60%);
}
.hero-media {
  aspect-ratio: 9 / 16;
  max-height: 460px;
  width: 100%;
  justify-self: end;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 720px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(212,162,76,0.2);
}
.hero p {
  color: var(--fg-dim);
  font-size: 1.1rem;
  margin: 0 0 1.75rem;
}
.cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent-hot);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: background 0.15s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(232,78,46,0.25);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,78,46,0.4);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2.5rem 1.25rem;
  }
  .hero-inner { text-align: center; }
  .hero-media { justify-self: center; max-height: 360px; max-width: 240px; }
}
.cta:hover { background: #ff5a37; color: #fff; }

/* ============ ANIMATIONS ============ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-inner { animation: fade-up 0.9s ease both; }
.hero-inner h1 { animation: fade-up 0.9s 0.1s ease both; }
.hero-inner p { animation: fade-up 0.9s 0.25s ease both; }
.hero-inner .cta { animation: fade-up 0.9s 0.4s ease both; }

/* ============ SECTIONS ============ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-lead {
  color: var(--fg-dim);
  max-width: 720px;
  margin: 0 0 2rem;
}

/* before/after */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.before-after-grid figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.before-after-grid figure:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.before-after-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.before-after-grid figure:hover img { transform: scale(1.04); }
.before-after-grid figcaption {
  padding: 0.75rem 1rem;
  color: var(--fg-dim);
  font-size: 0.9rem;
}
.progress-chart {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.progress-chart img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.progress-chart figcaption {
  padding: 0.75rem 1rem;
  color: var(--fg-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ============ TEACHERS (video-first horizontal cards) ============ */
.teachers-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.teacher-card-v2 {
  display: flex;
  gap: 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.25s ease;
}
.teacher-card-v2 > .showcase-wrap,
.teacher-card-v2 > .side-info {
  flex: 1 1 0;
  min-width: 0;
}
.teacher-card-v2:hover {
  transform: translateY(-3px);
}
.teacher-card-v2.teacher-reverse { flex-direction: row-reverse; }
.teacher-card-v2 .showcase-wrap,
.teacher-card-v2 .side-info {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.teacher-card-v2:hover .showcase-wrap,
.teacher-card-v2:hover .side-info {
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}

/* left column — showcase video / placeholder */
.showcase-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 9 / 16;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}
.showcase {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
video.showcase { background: #000; }
.showcase.no-video {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1a1a1f 0%, #2a1f1a 100%);
  cursor: default;
  padding: 2rem;
}
.showcase.no-video > div { text-align: center; max-width: 320px; }
.showcase.no-video .badge-mark {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
  position: relative;
}
.showcase.no-video .badge-mark::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--accent);
  opacity: 0.5;
}
.showcase.no-video h4 { color: var(--accent); margin: 0 0 0.5rem; font-size: 1.1rem; }
.showcase.no-video p { color: var(--fg-dim); font-size: 0.9rem; margin: 0; font-style: italic; line-height: 1.5; }

.showcase-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  pointer-events: none;
  transition: opacity 0.2s;
  backdrop-filter: blur(6px);
}
.showcase-hint .dot {
  width: 8px; height: 8px;
  background: var(--accent-hot);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.showcase-wrap:hover .showcase-hint { opacity: 0; }

/* right column — 9:16 portrait with meta overlay covering bottom 25% */
.side-info {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  background: var(--bg-soft);
}
.portrait-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.portrait-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.4s ease, transform 0.6s ease;
}
.portrait-wrap .portrait-hover {
  opacity: 0;
}
.portrait-wrap:hover .portrait-main { opacity: 0; }
.portrait-wrap:hover .portrait-hover { opacity: 1; transform: scale(1.03); }
.portrait-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(14,14,16,0.92) 100%);
  pointer-events: none;
}

.meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 25%;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: center;
  align-content: center;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(14,14,16,0.7), rgba(14,14,16,0.95));
  border-top: 1px solid rgba(212,162,76,0.3);
  z-index: 2;
}
.meta h3 {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta .spec {
  color: var(--fg-dim);
  font-size: 0.72rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta .bio {
  color: var(--fg-dim);
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0;
  grid-column: 1 / -1;
  grid-row: 3 / 4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta .status {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.68rem;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  justify-self: end;
  white-space: nowrap;
}
.meta .teacher-cta {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  justify-self: end;
  margin-top: 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}
.teacher-cta {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.7rem 1.2rem;
  background: var(--accent-hot);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.15s, transform 0.15s;
}
.teacher-cta:hover { background: #ff5a37; color: #fff; transform: translateY(-1px); }
.teacher-cta.disabled {
  background: var(--bg-soft);
  color: var(--fg-dim);
  pointer-events: none;
  border: 1px solid var(--border);
}

@media (max-width: 860px) {
  .teacher-card-v2,
  .teacher-card-v2.teacher-reverse {
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
  }
}
.status-free { background: rgba(79,168,118,0.15); color: var(--ok); border: 1px solid rgba(79,168,118,0.35); }
.status-full { background: rgba(200,67,43,0.15); color: var(--danger); border: 1px solid rgba(200,67,43,0.35); }

/* booking summary (current booking) */
.my-booking-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  color: var(--fg-dim);
  font-size: 0.95rem;
}
.my-booking-summary.has-booking {
  border-style: solid;
  border-color: var(--ok);
  background: rgba(79,168,118,0.08);
  color: var(--fg);
}
.my-booking-summary .pill {
  background: var(--ok);
  color: #0e1e15;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.my-booking-summary strong { color: var(--accent); font-size: 1.05rem; }
.my-booking-summary .with { color: var(--fg-dim); }
.my-booking-summary em { color: var(--fg-dim); font-size: 0.85rem; margin-left: auto; }

/* booking */
.booking-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.cal-dow {
  color: var(--fg-dim);
  font-size: 0.7rem;
  text-align: center;
  padding-bottom: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.booking-trainer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.booking-trainer header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.booking-trainer header img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
}
.booking-trainer header h4 {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.booking-trainer header small { color: var(--fg-dim); }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--fg);
  border-radius: 5px;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  transition: all 0.15s;
  position: relative;
}
.cal-day:not(:disabled):hover {
  border-color: var(--accent);
  background: rgba(212,162,76,0.12);
}
.cal-day.taken {
  background: rgba(200,67,43,0.08);
  color: var(--fg-dim);
  cursor: not-allowed;
  text-decoration: line-through;
}
.cal-day.mine {
  background: rgba(79,168,118,0.25);
  color: var(--ok);
  border-color: var(--ok);
  font-weight: 600;
}
.cal-day.mine::after {
  content: '✓';
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.7rem;
}
.cal-day.mine:hover {
  background: rgba(79,168,118,0.35);
}
.cal-day:disabled { cursor: not-allowed; }

.booking-msg {
  margin: 1.5rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  font-size: 0.95rem;
}
.booking-msg.ok { background: rgba(79,168,118,0.15); color: var(--ok); border: 1px solid rgba(79,168,118,0.35); }
.booking-msg.err { background: rgba(200,67,43,0.15); color: var(--danger); border: 1px solid rgba(200,67,43,0.35); }

/* testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonials-grid figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.testimonials-grid figure:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.testimonials-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}
.testimonials-grid figure:hover img { transform: scale(1.04); }
.testimonials-grid figcaption {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.testimonials-grid blockquote {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}
.testimonials-grid cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}

/* links */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: rgba(212,162,76,0.05);
  color: var(--fg);
}
.link-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.link-card strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.link-desc {
  color: var(--fg-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}
.link-card-placeholder {
  opacity: 0.55;
  cursor: default;
  position: relative;
}
.link-card-placeholder:hover {
  transform: none;
  border-color: var(--border);
  background: var(--bg-card);
}
.link-pending {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  background: var(--border);
  color: var(--fg-dim);
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* lightbox */
.lightbox[hidden] {
  display: none !important;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox-content {
  max-width: 92vw;
  max-height: 88vh;
  cursor: default;
}
.lightbox-content img, .lightbox-content video {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  z-index: 101;
  transition: background 0.15s, transform 0.15s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.08);
}

/* footer */
.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--fg-dim);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.footer .small { font-size: 0.8rem; opacity: 0.8; }
