/*
 * Tina Kuafor — luxury booking presentation layer
 *
 * Scope: the #randevu booking widget only.
 * This stylesheet never redefines navigation, business copy, SEO markup or
 * booking logic. It only paints and lays out elements that already exist.
 *
 * Layout contract (must stay true or the 4-step wizard breaks):
 *   - Never set `display` on an element that JS toggles with `.hidden`
 *     unless the rule is guarded with `:not(.hidden)`.
 *   - Never set `pointer-events` on `.category-button`, `.service-row`,
 *     `.calendar-day-btn` or `.slot-button`; clicks are delegated from
 *     `#booking-widget` and rely on `event.target.closest()`.
 */

/* ------------------------------------------------------------------ *
 * Tokens
 * ------------------------------------------------------------------ */

body.tina-app #randevu {
  --lx-canvas: #0a0611;
  --lx-shell: #120b18;
  --lx-panel: #170f1e;
  --lx-panel-soft: #1b1123;
  --lx-panel-raised: #22162b;
  --lx-line: rgba(255, 255, 255, 0.07);
  --lx-line-soft: rgba(255, 255, 255, 0.045);
  --lx-line-active: rgba(255, 60, 135, 0.55);
  --luxe-rose: #ff3f86;
  --lx-rose: var(--luxe-rose);
  --lx-rose-deep: #c2185b;
  --lx-rose-soft: #ff8fb8;
  --lx-rose-dim: rgba(255, 45, 126, 0.12);
  --lx-gold: #e9c79b;
  --lx-gold-soft: #f4dfc2;
  --lx-text: #fdf6f9;
  --lx-muted: #a89aa8;
  --lx-radius-shell: clamp(1.1rem, 2.2vw, 1.6rem);
  --lx-radius-card: 1rem;
  --lx-radius-item: 0.85rem;

  width: 100%;
  max-width: 1420px;
  margin-inline: auto !important;
  padding: clamp(0.75rem, 2vw, 1.75rem) !important;
  box-sizing: border-box;
  color: var(--lx-text);
}

/* Soft ambient wash. One element, one paint — cheaper than per-card blur. */
body.tina-app #randevu .booking-app-aura {
  display: block !important;
  inset: 0 !important;
  border-radius: 2rem !important;
  background:
    radial-gradient(60rem 30rem at 12% -4%, rgba(255, 45, 126, 0.13), transparent 70%),
    radial-gradient(48rem 26rem at 92% 100%, rgba(233, 199, 155, 0.07), transparent 70%) !important;
  filter: none !important;
  opacity: 1 !important;
}

/* ------------------------------------------------------------------ *
 * Shell
 * ------------------------------------------------------------------ */

body.tina-app #randevu #booking-widget.booking-app-shell {
  min-height: auto;
  padding: clamp(0.75rem, 1.7vw, 1.35rem) !important;
  border: 1px solid var(--lx-line) !important;
  border-radius: var(--lx-radius-shell) !important;
  background:
    radial-gradient(42rem 22rem at 0% -8%, rgba(194, 24, 91, 0.16), transparent 72%),
    linear-gradient(160deg, #1a1022 0%, #0d0813 55%, #120b18 100%) !important;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ------------------------------------------------------------------ *
 * Header band — eyebrow, ticker, intro
 * ------------------------------------------------------------------ */

/* Salon fotoğrafının sıcak bokeh atmosferi, ek görsel isteği olmadan
   saf degradelerle taklit ediliyor. */
body.tina-app #randevu .booking-app-header {
  position: relative;
  isolation: isolate;
  align-items: center;
  gap: 1rem;
  margin: 0 0 0.9rem;
  padding: clamp(1.5rem, 5vw, 2.4rem) clamp(0.9rem, 1.8vw, 1.4rem) clamp(1rem, 2vw, 1.35rem) !important;
  overflow: hidden;
  border: 1px solid rgba(233, 199, 155, 0.16);
  border-radius: 1.5rem;
  background:
    radial-gradient(9rem 7rem at 84% 14%, rgba(255, 176, 92, 0.16), transparent 68%),
    radial-gradient(7rem 6rem at 16% 8%, rgba(255, 45, 126, 0.14), transparent 70%),
    radial-gradient(14rem 10rem at 50% 118%, rgba(255, 45, 126, 0.1), transparent 72%),
    linear-gradient(168deg, #2a1526 0%, #1a0e1d 46%, #120a15 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 44px -22px rgba(0, 0, 0, 0.8);
}

/* LED kenar — üst kenarda soldan sağa akan ışık huzmesi. Yalnızca transform
   animasyonu; compositor'da çalışır, yeniden boyama yapmaz. */
body.tina-app #randevu .booking-app-header::before {
  content: '' !important;
  display: block !important;
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 126, 0.85), rgba(233, 199, 155, 0.7), transparent);
  opacity: 0.9;
  pointer-events: none;
}

body.tina-app #randevu .booking-app-header::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  top: -1px;
  left: 0;
  width: 42%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ff5c9a 45%, #ffd9a8 60%, transparent);
  filter: blur(0.4px);
  pointer-events: none;
  animation: luxe-led-sweep 5.5s cubic-bezier(.55,.1,.45,.9) infinite;
}

@keyframes luxe-led-sweep {
  0%   { transform: translate3d(-110%, 0, 0); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translate3d(345%, 0, 0); opacity: 0; }
}

/* Aktif kategori kartında nefes alan LED çerçeve */
body.tina-app #randevu .category-section.open .category-button {
  animation: luxe-led-pulse 2.8s ease-in-out infinite;
}

@keyframes luxe-led-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 45, 126, .18), 0 0 14px rgba(255, 45, 126, .20); }
  50%      { box-shadow: 0 0 0 1px rgba(255, 45, 126, .34), 0 0 26px rgba(255, 45, 126, .42); }
}

/* Ana butonun altında kayan ışık */
body.tina-app #randevu .booking-primary {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  body.tina-app #randevu .booking-app-header::after,
  body.tina-app #randevu .category-section.open .category-button {
    animation: none !important;
  }
}

body.tina-app #randevu .booking-app-header::before,
body.tina-app #randevu .booking-app-header::after {
  content: none !important;
}

/* Kahraman başlık. Metin aynı ("İzmir bayan kuaför") — yalnızca altın
   serif bir marka bloğu olarak gösteriliyor. Dar max-width, "İZMİR" ile
   "BAYAN KUAFÖR"ü mockup'taki gibi iki satıra ayırır. */
body.tina-app #randevu .booking-app-eyebrow {
  align-self: center;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 9.5em !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: none;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.05rem, 10.5vw, 3.3rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.07em !important;
  line-height: 1.06 !important;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  background-image: linear-gradient(180deg, #fbeed6 0%, #e9c79b 48%, #c99a5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(233, 199, 155, 0.22));
}

/* Dekoratif nokta, marka rozetine dönüşüyor. Görsel zaten başlıkta
   yüklendiği için ek istek maliyeti yok. */
/* Marka rozeti. Logo kendi açık zeminiyle geldiği için daire içine tam
   oturtuluyor: dış altın halka + iç koyu boşluk, logo ortada dairesel
   kırpılmış. Böylece kenarda açık renk bir taşma kalmıyor. */
body.tina-app #randevu .booking-app-eyebrow-dot {
  position: relative;
  width: 5.6rem;
  height: 5.6rem;
  border: 1px solid rgba(233, 199, 155, 0.6);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 35%, #2a1626, #120a16 72%);
  box-shadow:
    0 0 0 4px rgba(255, 45, 126, 0.06),
    0 0 30px rgba(255, 45, 126, 0.3),
    inset 0 0 20px rgba(233, 199, 155, 0.14);
}

body.tina-app #randevu .booking-app-eyebrow-dot::after {
  content: '';
  position: absolute;
  inset: 0.42rem;
  border-radius: 999px;
  background: url("../images/tina-logo-96.png") center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(233, 199, 155, 0.35);
  pointer-events: none;
}

body.tina-app #randevu .booking-app-intro {
  margin: 0;
  color: var(--lx-muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}

/* The scrolling SEO strip and the step rail are deliberately NOT styled here.
 * They live in booking-app.css so this layer stays a pure #randevu skin —
 * appointments/test_frontend.py enforces that isolation. */

/* ------------------------------------------------------------------ *
 * Body + section labels
 * ------------------------------------------------------------------ */

body.tina-app #randevu .booking-app-body {
  padding: clamp(0.85rem, 1.7vw, 1.35rem) !important;
  border: 1px solid var(--lx-line-soft);
  border-radius: var(--lx-radius-card);
  background: linear-gradient(160deg, #150e1c, #0e0914);
}

body.tina-app #randevu .booking-step:not(.hidden) {
  animation: none;
}

body.tina-app #randevu .booking-section-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem !important;
  color: #ff77ac !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.tina-app #randevu .booking-section-label::before {
  content: '✦';
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--lx-rose);
  font-size: 1rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 45, 126, 0.7);
  pointer-events: none;
}

/* Etiketten sağa uzanıp sönen ışık çizgisi */
body.tina-app #randevu .booking-section-label::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  min-width: 1.5rem;
  background: linear-gradient(90deg, rgba(255, 45, 126, 0.55), rgba(255, 45, 126, 0.12) 55%, transparent);
  pointer-events: none;
}

body.tina-app #randevu .loading-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--lx-line-soft);
  border-radius: var(--lx-radius-item);
  background: var(--lx-panel);
  color: var(--lx-muted);
  font-size: 0.88rem;
}

/* ------------------------------------------------------------------ *
 * Category rail
 * ------------------------------------------------------------------ */

body.tina-app #randevu #category-container {
  margin-top: 0;
}

body.tina-app #randevu .category-section.digital-card {
  margin-bottom: 0.55rem;
  border: 1px solid var(--lx-line-soft);
  border-radius: var(--lx-radius-item);
  background: var(--lx-panel);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

body.tina-app #randevu .category-section.digital-card::before {
  content: none;
}

body.tina-app #randevu .category-section.digital-card:hover {
  border-color: rgba(255, 45, 126, 0.3);
  background: var(--lx-panel-soft);
}

body.tina-app #randevu .category-section.open {
  border-color: var(--lx-line-active);
  background: linear-gradient(140deg, rgba(255, 45, 126, 0.14), rgba(255, 45, 126, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.tina-app #randevu .category-button {
  gap: 0.75rem;
  padding: 0.85rem 0.95rem !important;
  background: none;
  transition: background 0.2s ease;
}

/* Işıklı ikon karesi — mockup'taki parlayan kare */
body.tina-app #randevu .category-icon-shell {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(255, 87, 152, 0.55);
  border-radius: 0.95rem;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 45, 126, 0.3), transparent 68%),
    linear-gradient(160deg, #33172c, #1d0f21);
  box-shadow:
    0 0 16px rgba(255, 45, 126, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 1.45rem;
  line-height: 1;
}

body.tina-app #randevu .category-title-shimmer {
  color: var(--lx-text) !important;
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.005em;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
}

body.tina-app #randevu .category-section.open .category-title-shimmer {
  color: #fff !important;
}

body.tina-app #randevu .category-count {
  padding: 0.24rem 0.6rem;
  border: 1px solid var(--lx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--lx-muted);
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}

body.tina-app #randevu .category-count strong {
  color: var(--lx-gold);
  font-weight: 700;
}

body.tina-app #randevu .category-button .chevron {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 87, 152, 0.5);
  border-radius: 999px;
  background: rgba(255, 45, 126, 0.07);
  color: var(--lx-rose-soft);
  box-shadow: inset 0 0 10px rgba(255, 45, 126, 0.12);
  transition: transform 0.22s ease, background 0.22s ease;
}

body.tina-app #randevu .category-section.open .category-button .chevron {
  border-color: transparent;
  background: linear-gradient(140deg, var(--lx-rose), var(--lx-rose-deep));
  color: #fff;
}

/* ------------------------------------------------------------------ *
 * Service rows
 * ------------------------------------------------------------------ */

body.tina-app #randevu .category-services:not(.hidden) {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.15rem 0.75rem 0.85rem !important;
}

body.tina-app #randevu .service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin: 0 !important;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--lx-line-soft);
  border-radius: 0.8rem;
  background: var(--lx-panel-raised);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease;
}

/* booking-app.css renders the select/deselect indicator as ::before and
   positions it absolutely. Here it becomes a real grid cell in column 3 so it
   can never overlap a long service name. The ✓ glyph on the selected state
   still comes from booking-app.css. */
body.tina-app #randevu .service-row::before {
  content: "" !important;
  position: static !important;
  inset: auto !important;
  grid-column: 3;
  grid-row: 1;
  display: grid !important;
  place-items: center;
  width: 1.65rem !important;
  height: 1.65rem !important;
  border: 1px solid var(--lx-line) !important;
  border-radius: 0.5rem !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  transform: none !important;
  transition: background 0.16s ease, border-color 0.16s ease;
}

body.tina-app #randevu .service-row-content {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

body.tina-app #randevu .service-row:hover {
  border-color: rgba(255, 45, 126, 0.35);
  background: #29192f;
}

body.tina-app #randevu .service-row[aria-pressed="true"] {
  border-color: var(--lx-line-active);
  background: linear-gradient(140deg, rgba(255, 45, 126, 0.2), rgba(255, 45, 126, 0.07));
}

body.tina-app #randevu .service-row[aria-pressed="true"]::before {
  content: "✓" !important;
  border-color: transparent !important;
  background: linear-gradient(140deg, var(--lx-rose), var(--lx-rose-deep)) !important;
  color: #fff !important;
  transform: none !important;
}

body.tina-app #randevu .service-name {
  color: var(--lx-text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

body.tina-app #randevu .service-desc {
  color: var(--lx-muted);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.4;
}

body.tina-app #randevu .service-price {
  grid-column: 2;
  grid-row: 1;
  flex: 0 0 auto;
  color: var(--lx-gold);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ *
 * Live selection summary (desktop sidebar)
 * ------------------------------------------------------------------ */

body.tina-app #randevu #selected-summary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.9rem 0 0 !important;
  padding: 0.8rem 1rem;
  border: 1px solid var(--lx-line-soft);
  border-radius: 0.9rem;
  background: var(--lx-panel);
  color: var(--lx-muted) !important;
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Bilgi rozeti (ⓘ) — dekoratif, metne dokunmaz */
body.tina-app #randevu #selected-summary::before {
  content: 'i';
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(255, 87, 152, 0.45);
  border-radius: 999px;
  background: rgba(255, 45, 126, 0.12);
  color: var(--lx-rose-soft);
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

body.tina-app #randevu #selected-details:not(.hidden) {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem !important;
}

body.tina-app #randevu #selected-details .selected-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--lx-line-soft);
  border-radius: 0.7rem;
  background: var(--lx-panel-soft);
  color: var(--lx-text);
  font-size: 0.82rem;
}

/* ------------------------------------------------------------------ *
 * Calendar
 * ------------------------------------------------------------------ */

body.tina-app #randevu #calendar-container {
  gap: 0.4rem !important;
  max-width: 33rem;
  margin-inline: auto;
  padding: 0.9rem;
  border: 1px solid var(--lx-line-soft);
  border-radius: var(--lx-radius-card);
  background: var(--lx-panel);
}

/* Weekday headers */
body.tina-app #randevu #calendar-container > div {
  padding: 0.35rem 0;
  color: var(--lx-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

body.tina-app #randevu #calendar-container button {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  min-height: 2.6rem;
  padding: 0;
  border: 1px solid var(--lx-line-soft);
  border-radius: 0.6rem;
  background: var(--lx-panel-soft);
  color: var(--lx-text);
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

body.tina-app #randevu #calendar-container .calendar-day-btn:not([disabled]):hover {
  border-color: rgba(255, 45, 126, 0.45);
  background: rgba(255, 45, 126, 0.14);
}

body.tina-app #randevu #calendar-container button[disabled] {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(168, 154, 168, 0.4);
}

body.tina-app #randevu #calendar-container .calendar-day-btn.neon-border {
  border-color: transparent;
  background: linear-gradient(150deg, var(--lx-rose), var(--lx-rose-deep));
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(255, 45, 126, 0.9);
}

body.tina-app #randevu .booking-calendar-legend {
  justify-content: center;
  max-width: 33rem;
  margin-inline: auto;
  color: var(--lx-muted) !important;
  font-size: 0.76rem !important;
}

/* ------------------------------------------------------------------ *
 * Time slots
 * ------------------------------------------------------------------ */

body.tina-app #randevu #slots {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)) !important;
  gap: 0.6rem !important;
}

body.tina-app #randevu .slot-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.7rem 0.6rem;
  border: 1px solid var(--lx-line-soft);
  border-radius: 0.75rem;
  background: var(--lx-panel-raised);
  color: var(--lx-text);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.16s ease, background 0.16s ease;
}

body.tina-app #randevu .slot-button:hover {
  border-color: rgba(255, 45, 126, 0.4);
  background: #2a1930;
}

body.tina-app #randevu .slot-button[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(150deg, var(--lx-rose), var(--lx-rose-deep));
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(255, 45, 126, 0.9);
}

body.tina-app #randevu .slot-staff-label {
  color: var(--lx-muted);
  font-size: 0.68rem;
  font-weight: 500;
}

body.tina-app #randevu .slot-button[aria-pressed="true"] .slot-staff-label {
  color: rgba(255, 255, 255, 0.82);
}

/* ------------------------------------------------------------------ *
 * Summary card + form
 * ------------------------------------------------------------------ */

body.tina-app #randevu .summary-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--lx-line-soft);
  border-radius: var(--lx-radius-card);
  background: linear-gradient(160deg, #1c1224, #120c18);
}

body.tina-app #randevu .summary-card :where(.font-semibold, strong) {
  color: var(--lx-gold-soft) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.tina-app #randevu #summary-total {
  padding-top: 0.7rem;
  border-top: 1px solid var(--lx-line-soft);
  color: var(--lx-gold) !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
}

body.tina-app #randevu .booking-form {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--lx-line-soft);
  border-radius: var(--lx-radius-card);
  background: var(--lx-panel);
}

body.tina-app #randevu .booking-form label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--lx-gold-soft) !important;
  font-size: 0.74rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.tina-app #randevu .booking-field {
  padding: 0.7rem 0.85rem !important;
  border: 1px solid var(--lx-line) !important;
  border-radius: 0.7rem !important;
  background: #0f0a15 !important;
  color: var(--lx-text);
  font-size: 0.92rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body.tina-app #randevu .booking-field::placeholder {
  color: rgba(168, 154, 168, 0.55);
}

body.tina-app #randevu textarea.booking-field {
  min-height: 5.5rem;
  resize: vertical;
}

body.tina-app #randevu .booking-field:focus {
  outline: none;
  border-color: var(--lx-line-active) !important;
  box-shadow: 0 0 0 3px rgba(255, 45, 126, 0.16);
}

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */

body.tina-app #randevu .booking-actions {
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--lx-line-soft);
}

/* Ana çağrı butonu — mockup: altın kenarlı, ışıyan pembe degrade,
   solda ✦ parıltılar, sağda ok dairesi. Hepsi pseudo-eleman. */
body.tina-app #randevu .booking-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 0.85rem 3.5rem !important;
  border: 1px solid rgba(247, 214, 168, 0.6) !important;
  border-radius: 1rem !important;
  background:
    linear-gradient(100deg, #ff3d86 0%, #e01571 52%, #ff5397 100%) !important;
  color: #fff !important;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  box-shadow:
    0 0 26px rgba(255, 45, 126, 0.42),
    0 12px 26px -14px rgba(255, 45, 126, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: filter 0.16s ease, transform 0.16s ease;
}

/* site-app.css (.neon-btn::before/::after) ve booking-app.css
   (.booking-primary::before/::after) ikisi de `display:none !important`
   diyor; bu katman sonra yüklendiği ve özgüllüğü yüksek olduğu için
   `display` burada açıkça geri açılmalı. */
body.tina-app #randevu .booking-primary::before {
  content: '✦';
  display: block !important;
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

body.tina-app #randevu .booking-primary::after {
  content: '›';
  position: absolute;
  right: 0.8rem;
  top: 50%;
  display: grid !important;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

body.tina-app #randevu .booking-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

body.tina-app #randevu .booking-primary:disabled {
  filter: grayscale(0.5);
  opacity: 0.55;
  transform: none;
}

body.tina-app #randevu .booking-secondary {
  padding: 0.72rem 1.15rem !important;
  border: 1px solid var(--lx-line) !important;
  border-radius: 0.75rem !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: var(--lx-muted) !important;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}

body.tina-app #randevu .booking-secondary:hover {
  background: rgba(255, 255, 255, 0.075) !important;
  color: var(--lx-text) !important;
}

/* ------------------------------------------------------------------ *
 * Desktop — three columns: category rail | services | live summary
 *
 * `display: contents` flattens the two wrapper divs so their children become
 * items of one grid. Every display rule below is guarded with :not(.hidden)
 * so showStep() keeps full control of which panel is visible.
 * ------------------------------------------------------------------ */

@media (min-width: 1180px) {
  /* Rows 1-3 are sized by the sidebar stack; row 4 absorbs the leftover
     height of the tall category column so the sidebar stays tight at top. */
  body.tina-app #randevu .step-panel[data-step="1"]:not(.hidden) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20.5rem;
    grid-template-rows: auto auto auto 1fr;
    gap: 0 1.25rem;
    align-items: start;
  }

  /* Flatten the wrapper so label / container / summary share the grid. */
  body.tina-app #randevu .step-panel[data-step="1"]:not(.hidden) > div:first-child {
    display: contents;
  }

  body.tina-app #randevu .step-panel[data-step="1"]:not(.hidden) > * {
    margin-top: 0 !important;
  }

  body.tina-app #randevu .step-panel[data-step="1"]:not(.hidden) .booking-section-label {
    grid-column: 1;
    grid-row: 1;
  }

  body.tina-app #randevu .step-panel[data-step="1"]:not(.hidden) #category-loader {
    grid-column: 1;
    grid-row: 2;
  }

  body.tina-app #randevu .step-panel[data-step="1"]:not(.hidden) #category-container {
    grid-column: 1;
    grid-row: 2 / span 3;
    align-self: start;
  }

  body.tina-app #randevu .step-panel[data-step="1"]:not(.hidden) #selected-summary {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0 !important;
  }

  body.tina-app #randevu .step-panel[data-step="1"]:not(.hidden) #selected-details {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    margin-top: 0.6rem !important;
  }

  body.tina-app #randevu .step-panel[data-step="1"]:not(.hidden) .booking-actions {
    grid-column: 2;
    grid-row: 4;
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    align-items: stretch;
    align-self: start;
    margin-top: 0.75rem;
  }

  body.tina-app #randevu .step-panel[data-step="1"]:not(.hidden) .booking-actions > button {
    width: 100%;
    max-height: 3.25rem;
    text-align: center;
  }

  /* Category list becomes a rail; the open category's services sit beside it. */
  body.tina-app #randevu #category-container {
    display: grid;
    grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr);
    gap: 0 1rem;
    align-items: start;
  }

  /* With nothing expanded the second column would be a large empty gap, so the
     rail spreads across the full width until a category is opened. The buttons
     must also be released from the pinned first column to flow across it. */
  body.tina-app #randevu #category-container:not(:has(.category-services:not(.hidden))) {
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 0.55rem 0.75rem;
  }

  body.tina-app #randevu #category-container:not(:has(.category-services:not(.hidden))) .category-button {
    grid-column: auto;
    margin-bottom: 0;
  }

  body.tina-app #randevu .category-section.digital-card {
    display: contents;
  }

  body.tina-app #randevu .category-button {
    grid-column: 1;
    margin-bottom: 0.5rem;
    border: 1px solid var(--lx-line-soft);
    border-radius: var(--lx-radius-item);
    background: var(--lx-panel);
    transition: border-color 0.18s ease, background 0.18s ease;
  }

  body.tina-app #randevu .category-button:hover {
    border-color: rgba(255, 45, 126, 0.3);
    background: var(--lx-panel-soft);
  }

  body.tina-app #randevu .category-section.open .category-button {
    border-color: var(--lx-line-active);
    background: linear-gradient(140deg, rgba(255, 45, 126, 0.18), rgba(255, 45, 126, 0.05));
  }

  /* The services panel spans every rail row so it always starts at the top.
     A fixed span is used rather than `1 / -1`: the rows here are implicit, and
     -1 would resolve to the last *explicit* line (row 1), which would drop the
     rest of the category rail underneath the panel. */
  body.tina-app #randevu .category-services:not(.hidden) {
    grid-column: 2;
    grid-row: 1 / span 40;
    align-self: start;
    /* Kutu içi kaydırma kaldırıldı: açılan kategori tam görünür. */
    max-height: none;
    overflow: visible;
    padding: 0.75rem !important;
    border: 1px solid var(--lx-line-soft);
    border-radius: var(--lx-radius-card);
    background: linear-gradient(160deg, #1a1122, #100b16);
  }

  body.tina-app #randevu .category-services::-webkit-scrollbar {
    width: 6px;
  }

  body.tina-app #randevu .category-services::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 45, 126, 0.35);
  }

  /* Step 4 keeps summary and form side by side. */
  body.tina-app #randevu .step-panel[data-step="4"]:not(.hidden) {
    display: grid;
    grid-template-columns: 20.5rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }

  body.tina-app #randevu .step-panel[data-step="4"]:not(.hidden) > * {
    margin-top: 0 !important;
  }
}

/* ------------------------------------------------------------------ *
 * Stacked layout — phones and tablets
 * ------------------------------------------------------------------ */

@media (max-width: 1179px) {
  /* Telefonda da kutu içi kaydırma yok: liste tamamen açılır, sayfa tek
     parça kayar (iki ayrı kaydırma müşteriyi kaybettiriyordu). */
  body.tina-app #randevu .category-services:not(.hidden) {
    max-height: none;
    overflow: visible;
  }

  /* The markup ships `flex-wrap`; combined with column-reverse that wraps the
     buttons into columns and stretch then blows up their height. */
  body.tina-app #randevu .booking-actions {
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  body.tina-app #randevu .booking-actions > button {
    width: 100%;
    min-height: 3rem;
    max-height: 3.25rem;
    text-align: center;
  }
}

@media (max-width: 767px) {
  body.tina-app #randevu .category-button {
    padding: 0.9rem 0.85rem !important;
    min-height: 3.5rem;
  }

  body.tina-app #randevu .category-icon-shell {
    width: 2.6rem;
    height: 2.6rem;
  }

  body.tina-app #randevu .service-row {
    gap: 0.6rem;
    padding: 0.8rem 0.75rem;
    min-height: 3.5rem;
  }

  body.tina-app #randevu #slots {
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)) !important;
  }

  body.tina-app #randevu #calendar-container {
    gap: 0.3rem !important;
    padding: 0.6rem;
  }

  body.tina-app #randevu #calendar-container button {
    min-height: 2.35rem;
    font-size: 0.82rem;
    border-radius: 0.5rem;
  }

  body.tina-app #randevu .booking-form,
  body.tina-app #randevu .summary-card {
    padding: 0.9rem;
  }
}

@media (max-width: 400px) {
  body.tina-app #randevu .booking-app-eyebrow {
    font-size: 0.66rem;
    padding: 0.35rem 0.7rem;
  }

  body.tina-app #randevu .category-count {
    font-size: 0.64rem;
  }

  body.tina-app #randevu .service-name {
    font-size: 0.86rem;
  }
}

/* ------------------------------------------------------------------ *
 * Motion preferences
 *
 * Only the decorative motion this layer introduces is dropped. The scrolling
 * strip has its own reduced-motion handling in booking-app.css and is not
 * touched from here.
 * ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  body.tina-app #randevu .category-button,
  body.tina-app #randevu .service-row,
  body.tina-app #randevu .slot-button,
  body.tina-app #randevu .booking-field,
  body.tina-app #randevu .booking-primary,
  body.tina-app #randevu .booking-secondary,
  body.tina-app #randevu #calendar-container button {
    transition-duration: 0.001ms !important;
  }

  body.tina-app #randevu .booking-primary:hover {
    transform: none;
  }
}
