/* =============================================================================
   Multiperformance Lab — styles.css
   One cohesive design system (CSS custom properties). Mobile-first, WCAG AA.
   Palette approximates the logo; tweak the :root tokens to re-skin the whole site.
   ============================================================================= */

/* ---------- Design tokens --------------------------------------------------- */
:root {
  /* brand palette */
  --brand-red: #E1251B;
  --brand-red-dark: #B71C13;   /* hover / borders — extra contrast */
  --brand-red-soft: #FCE9E8;   /* tint backgrounds */
  --ink: #111111;
  --ink-soft: #3A3A3D;
  --gray: #8C8C8C;
  --gray-soft: #B9B9BD;
  --bg: #FFFFFF;
  --bg-soft: #F6F6F7;
  --bg-softer: #FBFBFC;
  --line: #E6E6E9;
  --line-strong: #D6D6DB;
  --white: #FFFFFF;
  --ok: #1B8A4B;
  --ok-soft: #E7F5EC;

  /* typography */
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* fluid type scale */
  --fs-display: clamp(2.6rem, 6.2vw, 4.6rem);
  --fs-h1: clamp(2rem, 4.6vw, 3.2rem);
  --fs-h2: clamp(1.55rem, 3.2vw, 2.3rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.45rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  /* spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* radii & shadows */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .06), 0 1px 3px rgba(17, 17, 17, .05);
  --shadow-md: 0 6px 18px rgba(17, 17, 17, .08);
  --shadow-lg: 0 18px 48px rgba(17, 17, 17, .14);
  --shadow-red: 0 10px 26px rgba(225, 37, 27, .28);

  /* layout */
  --maxw: 1160px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-normal);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-red-dark); text-decoration: none; font-weight: var(--fw-semibold); }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.12; font-weight: var(--fw-black); letter-spacing: -0.02em; }
ul { list-style: none; padding: 0; }

/* visible focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Layout helpers -------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-soft { background: var(--bg-soft); }
.section-ink { background: var(--ink); color: #fff; }
.section-head { max-width: 680px; margin-bottom: var(--sp-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-red-dark);
  margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand-red); border-radius: 2px; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--ink-soft); font-size: var(--fs-lead); margin-top: var(--sp-3); }
.section-ink .eyebrow { color: #ff8a83; }
.section-ink .section-head p { color: #d7d7db; }

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Wordmark logo --------------------------------------------------- */
.wordmark {
  display: inline-flex; align-items: baseline; gap: .18em;
  font-weight: var(--fw-black); letter-spacing: -0.01em; line-height: 1;
  font-size: 1.12rem;
}
.wm-multi { color: var(--ink); }
.wm-perf { color: var(--brand-red); }
.wm-lab { color: var(--gray); }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
/* The logo image is OPTIONAL: it stays hidden until it actually loads (ui.js adds
   .is-ok on load) and is capped so it can never outgrow the bar. When there is no
   logo.png the CSS wordmark shows instead — so the slot is never blank. */
.brand-img { display: none; height: 28px; width: auto; max-width: 150px; object-fit: contain; }
.brand-img.is-ok { display: block; }
/* compact wordmark inside the header so brand + full nav share one row */
.site-header .wordmark { font-size: .88rem; }

/* ---------- Buttons --------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font-weight: var(--fw-bold); font-size: var(--fs-body); line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.btn-sm { padding: .6em 1.05em; font-size: var(--fs-sm); }
.btn-lg { padding: .95em 1.8em; font-size: var(--fs-lead); }
.btn-block { width: 100%; }

.btn-primary { --btn-bg: var(--brand-red); --btn-fg: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { --btn-bg: var(--brand-red-dark); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; border-color: var(--ink); }
.btn-dark:hover { --btn-bg: #333; border-color: #333; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn-ghost:hover { --btn-bg: var(--bg-soft); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { --btn-bg: var(--bg-soft); border-color: var(--ink); }
.section-ink .btn-ghost { --btn-fg: #fff; }
.section-ink .btn-ghost:hover { --btn-bg: rgba(255,255,255,.12); }
.section-ink .btn-outline { --btn-fg: #fff; border-color: rgba(255,255,255,.4); }
.section-ink .btn-outline:hover { --btn-bg: rgba(255,255,255,.12); border-color: #fff; }
/* hero has a dark background too — keep ghost/outline buttons readable (fixes the
   secondary CTA that was invisible until hover) */
.hero .btn-ghost { --btn-fg: #fff; }
.hero .btn-ghost:hover { --btn-bg: rgba(255,255,255,.12); }
.hero .btn-outline { --btn-fg: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-outline:hover { --btn-bg: rgba(255,255,255,.14); border-color: #fff; }
/* hero secondary CTA: black fill, white text, white contour, dark-gray on hover.
   Scoped to .hero so btn-dark on light sections keeps its dark border. */
.hero .btn-dark { border-color: #fff; }
.hero .btn-dark:hover { --btn-bg: #333; border-color: #fff; }

/* ---------- Chips & badges -------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .35em .8em; border-radius: var(--r-pill);
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--ink-soft);
}
.chip-red { background: var(--brand-red-soft); border-color: #f6cfcc; color: var(--brand-red-dark); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .25em .7em; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-demo { background: var(--ink); color: #fff; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-red { background: var(--brand-red); color: #fff; }
.badge-muted { background: var(--bg-soft); color: var(--gray); border: 1px solid var(--line); }

/* ---------- Cards ----------------------------------------------------------- */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.card p { color: var(--ink-soft); }

/* ---------- Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
/* The bar carries the logo + 7 links + up to 3 buttons, which does not fit the
   1160px body container. Give the header a slightly wider track so everything
   sits on one row with margin to spare (body sections keep --maxw). */
.site-header .container { max-width: 1240px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--header-h); }
.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; }
.nav-list > li { flex: 0 0 auto; }
.nav-link {
  display: inline-block; padding: .45em .4em; border-radius: var(--r-sm);
  color: var(--ink-soft); font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--brand-red-dark); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--bg); border-radius: var(--r-sm); cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transform: translateX(-50%); transition: .2s var(--ease);
}
.nav-toggle-bar { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* Desktop three-zone bar: logo left · nav links (Anasayfa→İletişim) centered ·
   action buttons (Giriş Yap/Panelim/Çıkış Yap/Randevu Al) right.
   The nav stretches to fill the row, then the two `auto` margins split the free
   space evenly on either side of the link cluster, centring it between the logo
   and the buttons. Desktop-only so the mobile drawer keeps its stacked layout. */
@media (min-width: 1181px) {
  .site-nav { flex: 1 1 auto; }
  .nav-list { flex: 1 1 auto; }
  .nav-list > li:first-child { margin-left: auto; }
  .nav-actions { margin-left: auto; }
}

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: var(--sp-3);
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path .28s var(--ease), opacity .2s var(--ease);
  }
  .nav-list.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: .85em .8em; font-size: 1rem; border-radius: var(--r-sm); }
  .nav-actions { margin: var(--sp-3) 0 0; flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; }
}

/* ---------- Hero ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(225, 37, 27, .38), transparent 60%),
    radial-gradient(760px 460px at 6% 108%, rgba(225, 37, 27, .14), transparent 60%),
    linear-gradient(180deg, #171717, #0c0c0c);
}
.hero-inner { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem); max-width: 820px; }
.hero .eyebrow { color: #ff8a83; }
.hero h1 { font-size: var(--fs-display); }
.hero .accent { color: var(--brand-red); }
.hero-lead { font-size: var(--fs-lead); color: #d9d9dd; margin-top: var(--sp-4); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-7); }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat b { font-size: 1.9rem; font-weight: var(--fw-black); color: #fff; line-height: 1; }
.hero-stat span { font-size: var(--fs-sm); color: var(--gray-soft); margin-top: 4px; }

/* ---------- About / feature list -------------------------------------------- */
.about-grid { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr .9fr; } }
.feature-list { display: grid; gap: var(--sp-4); }
.feature-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.feature-ic {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--brand-red-soft); color: var(--brand-red-dark);
  font-size: 1.25rem; font-weight: var(--fw-black);
}
.feature-item h3 { font-size: 1.08rem; margin-bottom: 2px; }
.feature-item p { color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- Trainer cards --------------------------------------------------- */
.trainer { display: flex; flex-direction: column; }
.trainer-photo {
  aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(135deg, #ececee, #f7f7f8);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
  border: 1px solid var(--line);
}
.trainer-photo img { width: 100%; height: 100%; object-fit: cover; }
.trainer-photo .ph-init { font-size: 2.4rem; font-weight: var(--fw-black); color: var(--gray-soft); }
.trainer .unvan { color: var(--brand-red-dark); font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.trainer h3 { margin: 2px 0 4px; }
.trainer .edu { color: var(--gray); font-size: var(--fs-sm); }
.trainer .bio { color: var(--ink-soft); font-size: var(--fs-sm); margin-top: var(--sp-3); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-4); }
.trainer.is-optional { border-style: dashed; background: var(--bg-softer); }

/* ---------- Class cards ----------------------------------------------------- */
.class-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.class-card .meta { color: var(--gray); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.price { font-size: 1.6rem; font-weight: var(--fw-black); color: var(--ink); }
.price small { font-size: .8rem; font-weight: var(--fw-semibold); color: var(--gray); }
.price-placeholder { color: var(--gray); font-size: 1.05rem; font-weight: var(--fw-bold); }

/* ---------- Pricing --------------------------------------------------------- */
.pricing-grid { display: grid; gap: var(--sp-5); align-items: stretch; }
@media (min-width: 820px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--brand-red); box-shadow: var(--shadow-md); }
.plan .plan-tag { position: absolute; top: -12px; right: var(--sp-5); }
.plan h3 { font-size: 1.25rem; }
.plan .amount { font-size: 2.4rem; font-weight: var(--fw-black); margin: var(--sp-2) 0; }
.plan .amount small { font-size: .95rem; color: var(--gray); font-weight: var(--fw-semibold); }
.plan .save { color: var(--ok); font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.plan .old { color: var(--gray); text-decoration: line-through; font-weight: var(--fw-semibold); }
.plan ul.perks { display: grid; gap: 10px; margin: var(--sp-4) 0 var(--sp-5); }
.plan ul.perks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: var(--fs-sm); }
.plan ul.perks li::before { content: "✓"; color: var(--ok); font-weight: var(--fw-black); }
.plan .btn { margin-top: auto; }

/* ---------- Testimonials ---------------------------------------------------- */
.quote-card { display: flex; flex-direction: column; gap: var(--sp-4); }
.quote-card .mark { font-size: 3rem; line-height: .6; color: var(--brand-red); font-weight: var(--fw-black); }
.quote-card blockquote { font-size: 1.12rem; color: var(--ink); font-weight: var(--fw-medium); }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-author .avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: var(--fw-black);
}
.quote-author b { display: block; }
.quote-author span { color: var(--gray); font-size: var(--fs-sm); }

/* ---------- Forms ----------------------------------------------------------- */
.field { display: grid; gap: 6px; margin-bottom: var(--sp-4); }
.field > label { font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.field .req { color: var(--brand-red); }
.field .hint { color: var(--gray); font-size: var(--fs-xs); }
.input, .select, .textarea {
  width: 100%; padding: .8em .9em;
  background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(225, 37, 27, .16);
}
.textarea { min-height: 110px; resize: vertical; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--brand-red); }
.field-error { color: var(--brand-red-dark); font-size: var(--fs-xs); font-weight: var(--fw-semibold); min-height: 1em; }
.form-row { display: grid; gap: var(--sp-4); }
@media (min-width: 620px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; }
input:disabled, select:disabled, .input:disabled { background: var(--bg-soft); color: var(--gray); cursor: not-allowed; }

/* success state block */
.success-state {
  display: none; flex-direction: column; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-5); border-radius: var(--r-md);
  background: var(--ok-soft); border: 1px solid #bfe5cd;
}
.success-state.is-visible { display: flex; }
.success-state .tick {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ok); color: #fff;
  display: grid; place-items: center; font-size: 1.5rem; font-weight: var(--fw-black);
}

/* ---------- Tables ---------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.data { width: 100%; border-collapse: collapse; min-width: 460px; }
table.data th, table.data td { text-align: left; padding: .75em 1em; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
table.data thead th { background: var(--bg-soft); font-weight: var(--fw-bold); color: var(--ink-soft); position: sticky; top: 0; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--bg-softer); }

/* ---------- Booking: 1:1 weekly grid --------------------------------------- */
.slotgrid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.slotgrid { width: 100%; border-collapse: collapse; min-width: 640px; }
.slotgrid th, .slotgrid td { border: 1px solid var(--line); padding: 4px; text-align: center; }
.slotgrid thead th { background: var(--bg-soft); font-size: var(--fs-sm); font-weight: var(--fw-bold); padding: .7em .4em; }
.slotgrid tbody th { background: var(--bg-softer); font-size: var(--fs-sm); font-weight: var(--fw-bold); white-space: nowrap; }
.slot {
  width: 100%; min-height: 40px; padding: .55em .3em; border: 0; border-radius: 6px;
  font-size: var(--fs-xs); font-weight: var(--fw-bold); cursor: pointer;
  background: var(--ok-soft); color: var(--ok);
  transition: transform .12s var(--ease), background .15s var(--ease);
}
.slot:hover { transform: translateY(-1px); background: #d6efdf; }
.slot.taken { background: var(--bg-soft); color: var(--gray); cursor: not-allowed; }
.slot.mine { background: var(--brand-red); color: #fff; }

/* ---------- Class booking list --------------------------------------------- */
.class-list { display: grid; gap: var(--sp-4); }
@media (min-width: 720px) { .class-list { grid-template-columns: 1fr 1fr; } }
.class-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.class-row .info h3 { font-size: 1.15rem; }
.class-row .info .meta { color: var(--gray); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.capacity { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.capacity-bar { height: 8px; border-radius: var(--r-pill); background: var(--bg-soft); overflow: hidden; }
.capacity-bar > i { display: block; height: 100%; background: var(--brand-red); border-radius: inherit; transition: width .3s var(--ease); }
.capacity .txt { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--ink-soft); }
.capacity.full .capacity-bar > i { background: var(--gray); }

/* ---------- Portal ---------------------------------------------------------- */
.portal-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.portal-head h1 { font-size: var(--fs-h1); }
.portal-head p { color: var(--ink-soft); }
.disclaimer {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: var(--brand-red-soft); border: 1px solid #f6cfcc; color: var(--brand-red-dark);
  padding: var(--sp-4); border-radius: var(--r-md); font-size: var(--fs-sm); margin-bottom: var(--sp-5);
}
.disclaimer strong { color: var(--brand-red-dark); }
.chart-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 860px) { .chart-grid { grid-template-columns: 1fr 1fr; } }
.chart-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.chart-card .chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.chart-card h3 { font-size: 1.1rem; }
.chart-card .latest { font-weight: var(--fw-black); color: var(--brand-red-dark); font-size: 1.05rem; }
.chart-holder { position: relative; height: 220px; }

/* appointment / reminder card */
.appt-card { display: flex; flex-direction: column; gap: var(--sp-4); }
.appt-main { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.appt-date {
  flex: 0 0 auto; text-align: center; background: var(--ink); color: #fff;
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); min-width: 84px;
}
.appt-date b { display: block; font-size: 1.6rem; font-weight: var(--fw-black); line-height: 1; }
.appt-date span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.appt-info h3 { font-size: 1.15rem; }
.appt-info p { color: var(--gray); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.reminder-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; padding-top: var(--sp-4); border-top: 1px solid var(--line); }

/* toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 46px; height: 26px; border-radius: var(--r-pill); background: var(--line-strong);
  position: relative; transition: background .2s var(--ease); flex: 0 0 auto;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease);
}
.switch input:checked + .track { background: var(--brand-red); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--brand-red); outline-offset: 2px; }

/* ---------- Login page ------------------------------------------------------ */
.auth-wrap { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .auth-wrap { grid-template-columns: 1fr 1fr; } }
.auth-card { max-width: 460px; width: 100%; }
.auth-aside { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: var(--sp-6); }
.auth-aside h2 { font-size: var(--fs-h3); }
.auth-aside ul { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.auth-aside li { display: flex; gap: 10px; color: #d7d7db; font-size: var(--fs-sm); }
.auth-aside li::before { content: "→"; color: var(--brand-red); font-weight: var(--fw-black); }
.demo-cred { background: var(--bg-soft); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); }
.demo-cred code { font-weight: var(--fw-bold); color: var(--ink); }
.divider { display: flex; align-items: center; gap: var(--sp-3); color: var(--gray); font-size: var(--fs-xs); margin: var(--sp-4) 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---------- Checkout / odeme ------------------------------------------------ */
.checkout-grid { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.2fr .8fr; } }
.option { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.option:hover { border-color: var(--gray); }
.option input { margin-top: 4px; accent-color: var(--brand-red); width: 18px; height: 18px; }
.option.selected { border-color: var(--brand-red); background: var(--brand-red-soft); }
.option .o-title { font-weight: var(--fw-bold); }
.option .o-desc { color: var(--ink-soft); font-size: var(--fs-sm); }
.option .o-price { margin-left: auto; font-weight: var(--fw-black); white-space: nowrap; }
.summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); position: sticky; top: calc(var(--header-h) + 12px); }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.summary-total { display: flex; justify-content: space-between; padding-top: var(--sp-3); margin-top: var(--sp-3); border-top: 1px solid var(--line-strong); font-weight: var(--fw-black); font-size: 1.25rem; }
.card-fields { opacity: .6; }
.card-note { font-size: var(--fs-xs); color: var(--gray); margin-top: var(--sp-2); }

/* ---------- Contact / map --------------------------------------------------- */
.contact-grid { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { display: grid; gap: var(--sp-4); }
.contact-item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.contact-item .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--bg-soft); display: grid; place-items: center; font-size: 1.1rem; }
.contact-item b { display: block; font-size: var(--fs-sm); }
.contact-item a, .contact-item span { color: var(--ink-soft); }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--r-md); }
.map-fallback { display: grid; place-items: center; height: 320px; background: var(--bg-soft); border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--gray); text-align: center; padding: var(--sp-4); }

/* ---------- Toast ----------------------------------------------------------- */
.toast-host {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: calc(100vw - 32px);
}
.toast-host.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; padding: .8em 1.1em; border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg); font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}
.toast-badge { background: var(--brand-red); color: #fff; font-size: .65rem; font-weight: var(--fw-black); letter-spacing: .08em; padding: .25em .55em; border-radius: var(--r-pill); }

/* ---------- Page intro banner ---------------------------------------------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: clamp(2rem, 5vw, 3.4rem); }
.page-hero h1 { font-size: var(--fs-h1); }
.page-hero p { color: var(--ink-soft); font-size: var(--fs-lead); margin-top: var(--sp-2); max-width: 60ch; }
.breadcrumb { font-size: var(--fs-sm); color: var(--gray); margin-bottom: var(--sp-2); }
.breadcrumb a { color: var(--gray); font-weight: var(--fw-semibold); }

/* ---------- Footer ---------------------------------------------------------- */
.site-footer { background: var(--ink); color: #cfcfd3; padding-block: var(--sp-7) var(--sp-6); margin-top: var(--sp-8); }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } }
.site-footer .wordmark .wm-multi { color: #fff; }
.site-footer .wordmark .wm-lab { color: var(--gray-soft); }
.footer-tagline { color: var(--gray-soft); font-size: var(--fs-sm); margin-top: var(--sp-2); }
.footer-mini { color: var(--gray); font-size: var(--fs-xs); margin-top: var(--sp-1); }
.footer-h { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: var(--sp-3); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #cfcfd3; font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.footer-col a:hover { color: #fff; }
.footer-contact li { font-size: var(--fs-sm); line-height: 1.5; }
.footer-reset { margin-top: var(--sp-4); }
.site-footer .btn-outline { --btn-fg: #fff; border-color: rgba(255,255,255,.3); }
.site-footer .btn-outline:hover { --btn-bg: rgba(255,255,255,.1); border-color: #fff; }
.footer-legal { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.12); }
.demo-note { font-size: var(--fs-xs); color: var(--gray-soft); max-width: 90ch; }
.demo-note strong { color: #fff; }
.copyright { font-size: var(--fs-xs); color: var(--gray); margin-top: var(--sp-3); }

/* ---------- Utilities ------------------------------------------------------- */
.stack > * + * { margin-top: var(--sp-4); }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.text-center { text-align: center; }
.muted { color: var(--gray); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tag-inline { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Motion preferences ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
