/* ============================================================
   TRAVELEXPO ANKARA 2026 — B2B masa randevu sayfası (b2b-randevu.html)
   style.css'in üzerine yüklenir: .btn*, .form-group, .form-control, .alert*, .lang-switcher / .lang-btn
   ve .d-none oradan gelir. Bu dosyadaki sınıflar "b2b-" önekli. Tema yalnızca açık.
   ============================================================ */

.b2b-body {
  --b2b-bg: #F3F4F6;
  --b2b-line: #E5E7EB;
  --b2b-ink: #1C1C1E;
  --b2b-green: #2E7D32;
  --b2b-amber: #B26A00;
  background: var(--b2b-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.b2b-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Başlık ── */
.b2b-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--b2b-ink);
  border-bottom: 3px solid var(--red);
  color: var(--white);
}
.b2b-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.b2b-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.b2b-brand img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}
.b2b-brand-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  color: rgba(255,255,255,.88);
  padding-left: .85rem;
  border-left: 1px solid rgba(255,255,255,.25);
  white-space: nowrap;
}
.b2b-header-right {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.b2b-logout {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  border-radius: 6px;
  padding: .4rem .8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.b2b-logout:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.b2b-header :focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* ── Ana alan ── */
.b2b-main { flex: 1; padding: 2rem 0 3rem; }

.b2b-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: .4rem;
  overflow-wrap: anywhere;
}

.b2b-card {
  background: var(--white);
  border: 1px solid var(--b2b-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  padding: 2rem;
}
.b2b-card-narrow { max-width: 480px; margin: 0 auto; }
.b2b-center { text-align: center; }
.b2b-center .btn { margin-top: .5rem; }
.b2b-big-icon { font-size: 2.25rem; color: var(--red); margin-bottom: 1rem; }

/* Yükleniyor */
.b2b-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 40vh;
  color: var(--gray-600);
}
.b2b-spinner {
  width: 1.6rem;
  height: 1.6rem;
  border: .2rem solid var(--b2b-line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: b2b-spin .8s linear infinite;
}
@keyframes b2b-spin { to { transform: rotate(360deg); } }

/* ── Mesajlar ── */
.b2b-msg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .9rem;
  margin: 0 0 1rem;
  text-align: left;
}
.b2b-msg-plain { padding: 0; color: var(--gray-600); justify-content: center; text-align: center; }
.b2b-msg-text { flex: 1 1 14rem; min-width: 0; }
.b2b-msg-action {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.b2b-msg-close {
  background: none;
  border: 0;
  padding: 0 .2rem;
  margin-left: auto;
  font-size: 1.1rem;
  line-height: 1;
  color: inherit;
  opacity: .7;
  cursor: pointer;
}
.b2b-msg-close:hover { opacity: 1; }
#b2b-flash { margin-bottom: 1.25rem; }

.b2b-alert-info { background: #E3F2FD; color: #0D47A1; border: 1px solid #BBDEFB; }
.b2b-static-alert {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 0 0 1.25rem;
}
.b2b-static-alert i { margin-top: .2rem; }

/* ── Giriş / kayıt ── */
.b2b-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--b2b-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.07);
}
.b2b-auth-intro {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 2.5rem;
  color: var(--white);
  background: linear-gradient(150deg, var(--red-darker) 0%, var(--red-dark) 55%, var(--red) 100%);
}
/* 15 × 15 nokta: bir günün masa × saat tablosu */
.b2b-auth-intro::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 150px;
  height: 150px;
  background-image: radial-gradient(circle, rgba(255,255,255,.26) 2px, transparent 2.5px);
  background-size: 10px 10px;
  pointer-events: none;
}
.b2b-auth-intro h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin-bottom: .9rem;
}
.b2b-intro-text { color: rgba(255,255,255,.92); margin-bottom: 1.5rem; }
.b2b-facts {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .6rem;
  font-weight: 600;
  font-size: .95rem;
}
.b2b-facts li { display: flex; align-items: baseline; gap: .65rem; }
.b2b-facts i { flex: none; width: 1.15rem; text-align: center; opacity: .8; }

.b2b-auth-box { padding: 2.25rem 2.5rem 2rem; min-width: 0; }

.b2b-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 1.5rem;
  background: var(--b2b-bg);
  border-radius: 10px;
}
.b2b-tab {
  border: 0;
  background: transparent;
  padding: .6rem .5rem;
  border-radius: 7px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.b2b-tab:hover { color: var(--red-dark); }
.b2b-tab.is-active {
  background: var(--white);
  color: var(--red-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.b2b-pane-title { font-size: 1.3rem; margin-bottom: .5rem; }
.b2b-pane-text { color: var(--gray-600); font-size: .92rem; margin-bottom: 1.25rem; }

/* Şifre alanı + göster/gizle */
.b2b-pw { position: relative; }
.b2b-pw .form-control { padding-right: 2.9rem; }
.b2b-pw-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.b2b-pw-toggle:hover { color: var(--red); }

.b2b-hint { display: block; margin-top: .35rem; font-size: .8rem; color: var(--gray-600); }
.b2b-legend { font-size: .82rem; color: var(--gray-600); margin: 0 0 1rem; }
.b2b-req { color: var(--red); font-weight: 700; margin-left: .2rem; }
.form-control[aria-invalid="true"] { border-color: var(--red); }
/* Odaklanılan alan yapışkan başlığın ve kayıt çubuğunun altında kalmasın */
.b2b-main .form-control { scroll-margin: 84px 0 120px; }
.b2b-readonly, .b2b-readonly:focus { background: var(--gray-100); color: var(--gray-800); box-shadow: none; border-color: var(--gray-200); }
.b2b-field-error {
  display: block;
  margin-top: .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--red-dark);
}

/* Kayıt formu: KVKK onayı */
.b2b-consent-row { display: flex; align-items: flex-start; gap: .6rem; }
.b2b-consent-input { flex: none; width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--red); cursor: pointer; scroll-margin: 84px 0 120px; }
.b2b-consent-input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }
.b2b-consent-row label { margin: 0; font-weight: 500; line-height: 1.45; cursor: pointer; }
/* Etiketin içindeki "KVKK" linki: tıklamak metni yeni sekmede açar, kutuyu değiştirmez (etiketin geri kalanı değiştirir) */
.b2b-consent-link { font-weight: 600; color: var(--red-dark); text-decoration: underline; }
.b2b-consent-link:hover { color: var(--red); }
.b2b-consent .b2b-field-error { margin-left: 1.75rem; }

.b2b-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
}
.b2b-col-2 { grid-column: 1 / -1; }

.b2b-btn-block { width: 100%; justify-content: center; white-space: normal; text-align: center; }
.b2b-form-links { margin-top: 1rem; text-align: center; }
.b2b-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: none;
  border: 0;
  padding: .25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .88rem;
  color: var(--red-dark);
  cursor: pointer;
}
.b2b-link:hover { text-decoration: underline; }

/* Düğme meşgulken (istek sürüyor) */
.btn:disabled { opacity: .7; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .fas { pointer-events: none; }
.is-busy [type="submit"] { position: relative; color: transparent !important; }
.is-busy [type="submit"]::after {
  content: '';
  position: absolute;
  left: calc(50% - .55em);
  top: calc(50% - .55em);
  width: 1.1em;
  height: 1.1em;
  border: .18em solid rgba(255,255,255,.95);
  border-right-color: transparent;
  border-radius: 50%;
  animation: b2b-spin .7s linear infinite;
}

:where(.b2b-main, .b2b-modal) :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ── Uygulama ── */
.b2b-welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.b2b-welcome-main { flex: 1 1 18rem; min-width: 0; }
.b2b-account {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .45rem;
  margin: 0;
  font-size: .92rem;
  color: var(--gray-600);
}
.b2b-account strong { min-width: 0; color: var(--gray-800); overflow-wrap: anywhere; }
.b2b-account-label::after { content: ':'; }

/* Bölüm sekmeleri */
.b2b-stabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  max-width: 720px;
  padding: 4px;
  margin: 0 0 1.25rem;
  background: var(--white);
  border: 1px solid var(--b2b-line);
  border-radius: 12px;
}
.b2b-stab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 0;
  min-height: 44px;
  padding: .55rem .75rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.25;
  text-align: center;
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.b2b-stab:hover { color: var(--red-dark); }
.b2b-stab.is-active { background: var(--red); color: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.b2b-stab span { min-width: 0; overflow-wrap: break-word; }
/* Firma Bilgilerim'de kaydedilmemiş değişiklik */
.b2b-stab-dot {
  flex: none;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--b2b-amber);
  box-shadow: 0 0 0 2px var(--white);
}

.b2b-section-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #EEF0F2;
}
.b2b-section-head h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.b2b-section-head p { color: var(--gray-600); margin: 0; }

/* Kayıt çubuğu: uzun formda ekranın altına yapışır */
.b2b-savebar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: .5rem -2rem -2rem;
  padding: .9rem 2rem;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--b2b-line);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 -6px 16px rgba(0,0,0,.05);
}
.b2b-savebar .b2b-msg { margin: 0 0 .75rem; }
.b2b-savebar .alert { padding: .6rem .9rem; }
.b2b-savebar-row { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem 1rem; }
.b2b-save-status { display: inline-flex; align-items: center; gap: .45rem; margin-right: auto; font-size: .85rem; font-weight: 600; }
.b2b-save-status::before { content: ''; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.b2b-save-status.is-dirty { color: var(--b2b-amber); }
.b2b-save-status.is-saved { color: var(--b2b-green); }

/* ── Randevu Al ve Randevularım ── */
.b2b-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}
.b2b-head-text { flex: 1 1 18rem; min-width: 0; }
.b2b-quota {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem .55rem;
  padding: .4rem .9rem;
  border-radius: 10px;
  background: var(--b2b-bg);
  font-size: .85rem;
  color: var(--gray-600);
}
.b2b-quota-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--b2b-ink);
}
.b2b-quota.is-full .b2b-quota-num { color: var(--red-dark); }

/* Mesajlar ve hedefler yapışkan başlığın altında kalmasın */
#b2b-book-msg, #b2b-book-notice, #b2b-mine-msg, .b2b-mine-item { scroll-margin-top: 84px; }

.b2b-slots-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 3rem 1rem;
  color: var(--gray-600);
}

/* Gün sekmeleri */
.b2b-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin-bottom: 1rem;
}
.b2b-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: .5rem .35rem;
  border: 1px solid var(--b2b-line);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-heading);
  line-height: 1.25;
  text-align: center;
  color: var(--b2b-ink);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.b2b-day:hover { border-color: var(--b2b-ink); }
.b2b-day-name { font-weight: 700; font-size: .95rem; }
.b2b-day-date { font-size: .8rem; color: var(--gray-600); }
.b2b-day.is-active { background: var(--b2b-ink); border-color: var(--b2b-ink); color: var(--white); }
.b2b-day.is-active .b2b-day-date { color: rgba(255,255,255,.82); }

/* Durum açıklaması; hücre ve saat düğmesi aynı sınıfları kullanır: renkten başka simgeyle de ayrılır */
.b2b-keys {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  margin-bottom: .85rem;
  font-size: .82rem;
  color: var(--gray-800);
}
.b2b-keys li { display: inline-flex; align-items: center; gap: .4rem; }
.b2b-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .68rem;
}
.b2b-key-text { display: inline-block; }
.b2b-key-text::first-letter { text-transform: uppercase; }

.b2b-cell-free { background: #EAF6EC; border-color: #B7DFBD; color: var(--b2b-green); }
.b2b-cell-taken { background: #E5E7EB; border-color: #D1D5DB; color: #4B5563; }
.b2b-cell-mine { background: var(--red); border-color: var(--red-dark); color: var(--white); }
.b2b-cell-past {
  background: repeating-linear-gradient(135deg, #F5F5F5 0 4px, #EBEBEB 4px 8px);
  border-color: #E5E7EB;
  color: #8A8A8A;
}
.b2b-cell-busy { background: var(--white); border-color: #E5E7EB; color: #9CA3AF; }

/* Saat × masa tablosu: kart genişliğine sığar (yatay kaydırma yok, saat sütunu hep görünür); başlık satırı sayfa başlığının altına yapışır */
.b2b-slot-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.b2b-slot-table th { background: var(--white); font-family: var(--font-heading); }
.b2b-slot-table thead th {
  position: sticky;
  top: 67px;
  z-index: 3;
  padding: .3rem 0;
  border-bottom: 1px solid var(--b2b-line);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--gray-600);
}
.b2b-th-time { width: 3.5rem; }
.b2b-th-label, .b2b-th-no { display: block; }
.b2b-th-no { font-size: .9rem; font-weight: 800; color: var(--b2b-ink); }
.b2b-slot-table tbody th {
  padding-right: .45rem;
  font-size: .82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  color: var(--b2b-ink);
}
.b2b-slot-table tbody tr.is-past th { color: var(--gray-400); }
.b2b-slot-table td { padding: 1.5px; }
.b2b-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border-width: 1px;
  border-style: solid;
  border-radius: 6px;
  font-size: .78rem;
  cursor: pointer;
  /* Klavyeyle gezerken hücre yapışkan başlıkların altında kalmasın */
  scroll-margin: 125px 0 24px;
}

/* Telefon: önce masa, sonra saat */
.b2b-picker { display: none; }
.b2b-step-title { margin: 1.1rem 0 .6rem; font-size: .98rem; color: var(--gray-800); }
.b2b-tables {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .35rem;
}
.b2b-table-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 54px;
  padding: .3rem .1rem;
  border: 1px solid var(--b2b-line);
  border-radius: 8px;
  background: var(--white);
  line-height: 1.2;
  color: var(--b2b-ink);
  cursor: pointer;
}
.b2b-table-no { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; }
.b2b-table-free { font-size: .66rem; color: var(--gray-600); overflow-wrap: anywhere; }
.b2b-table-mark { position: absolute; top: .22rem; right: .28rem; font-size: .6rem; color: var(--red); }
.b2b-table-btn[aria-pressed="true"] { background: var(--b2b-ink); border-color: var(--b2b-ink); color: var(--white); }
.b2b-table-btn[aria-pressed="true"] .b2b-table-free { color: rgba(255,255,255,.85); }
.b2b-table-btn[aria-pressed="true"] .b2b-table-mark { color: var(--white); }
.b2b-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
  gap: .4rem;
  scroll-margin: 84px 0 16px;
}
.b2b-time-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 0;
  min-height: 44px;
  padding: .3rem;
  border-width: 1px;
  border-style: solid;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: .92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.b2b-time-btn i { font-size: .72rem; }

/* Durumun fare ve seçilebilirlik karşılığı (hücre ve saat düğmesi) */
button.b2b-cell-free:not(.is-off):hover, button.b2b-cell-free:not(.is-off):focus-visible { background: var(--b2b-green); border-color: var(--b2b-green); color: var(--white); }
button.b2b-cell-mine:hover { background: var(--red-dark); }
.b2b-cell.is-off, .b2b-time-btn.is-off { cursor: not-allowed; }
.b2b-cell-free.is-off { background: #F7F9F7; border-style: dashed; border-color: #CFE3D2; color: #7E9C84; }

/* Randevularım */
.b2b-mine-list { display: grid; gap: .75rem; }
.b2b-mine-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--b2b-line);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  background: var(--white);
}
.b2b-mine-item:focus { outline: none; }
.b2b-mine-item.is-target { box-shadow: 0 0 0 2px var(--red); }
.b2b-mine-main { min-width: 0; }
.b2b-mine-when { font-family: var(--font-heading); font-weight: 700; }
.b2b-mine-slot { font-variant-numeric: tabular-nums; color: var(--gray-800); }
.b2b-mine-note { margin-top: .3rem; font-size: .88rem; color: var(--gray-600); overflow-wrap: anywhere; }
.b2b-mine-note-label { font-weight: 600; margin-right: .35rem; }
.b2b-mine-note-label::after { content: ':'; }
.b2b-mine-action { justify-self: end; max-width: 15rem; text-align: right; }
.b2b-mine-locked { font-size: .85rem; color: var(--gray-600); }
.b2b-mine-contact { display: block; font-weight: 600; color: var(--red-dark); text-decoration: underline; }
.b2b-mine-contact:hover { color: var(--red); }

.b2b-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--gray-600);
}
.b2b-empty > i { font-size: 2rem; color: var(--gray-400); }

/* Randevu onay penceresi */
.b2b-book-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .3rem .9rem;
  margin-bottom: 1.25rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: var(--b2b-bg);
}
.b2b-book-facts dt { font-size: .88rem; color: var(--gray-600); }
.b2b-book-facts dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.b2b-note-count { text-align: right; font-variant-numeric: tabular-nums; }
.b2b-book-hint { margin-bottom: 1rem; font-size: .85rem; color: var(--gray-600); }
.b2b-book-hint.is-warn { font-weight: 600; color: var(--b2b-amber); }

/* ── Pencereler ── */
.b2b-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(17,17,17,.55);
}
.b2b-modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto;
  padding: 1.75rem;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.b2b-modal-title { font-size: 1.3rem; margin: 0 2rem 1.25rem 0; }
.b2b-modal-title:focus { outline: none; }
.b2b-modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gray-600);
  font-size: 1.1rem;
  cursor: pointer;
}
.b2b-modal-close:hover { background: var(--b2b-bg); color: var(--black); }
.b2b-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .6rem;
}
.b2b-modal-actions .btn { white-space: normal; text-align: center; justify-content: center; }
body.b2b-modal-open { overflow: hidden; }

/* ── Alt bilgi ── */
.b2b-footer {
  background: var(--b2b-ink);
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  padding: 1.1rem 0;
}
.b2b-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.b2b-footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem; }
.b2b-footer a { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.88); }
.b2b-footer a:hover { color: var(--white); text-decoration: underline; }
.b2b-footer :focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* ── Duyarlı ── */
/* Dar sütunda noktalar metne biner */
@media (max-width: 1023px) {
  .b2b-auth-intro::after { display: none; }
  /* Tablo geniş kalsın: hücre 861 px'te de en az 44 px */
  #b2b-section-book { padding: 1.25rem; }
}

@media (max-width: 860px) {
  .b2b-auth { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .b2b-auth-intro { padding: 1.75rem 1.5rem; }
  /* Tanıtım şeridi: gerçekler yan yana */
  .b2b-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .88rem; }
  .b2b-facts li { gap: .45rem; }
  .b2b-auth-box { padding: 1.75rem 1.5rem 1.5rem; }
  /* Randevu: tablo yerine önce masa, sonra saat */
  .b2b-slot-table { display: none; }
  .b2b-picker { display: block; }
}

@media (max-width: 640px) {
  .b2b-main { padding: 1.25rem 0 2rem; }
  .b2b-container { padding: 0 1rem; }
  .b2b-card { padding: 1.4rem 1.15rem; }
  /* iOS 16 px'ten küçük alana odaklanınca sayfayı yakınlaştırır */
  .b2b-main .form-control, .b2b-modal .form-control { font-size: 16px; }
  .b2b-intro-text { display: none; }
  .b2b-auth-intro h1 { margin-bottom: .6rem; }
  .b2b-logout span { display: none; }
  .b2b-logout { padding: .45rem .6rem; }
  .b2b-welcome { align-items: flex-start; }
  .b2b-modal-box { padding: 1.4rem 1.15rem; }
  .b2b-grid { grid-template-columns: minmax(0, 1fr); }
  .b2b-savebar { margin: .25rem -1.15rem -1.4rem; padding: .75rem 1.15rem; }
  .b2b-savebar-row .btn { flex: 1 1 auto; justify-content: center; }
  /* Sekmeler üç dar sütun: simge metnin üstünde, uzun metin iki satıra iner */
  .b2b-stabs { max-width: none; }
  .b2b-stab { flex-direction: column; gap: .25rem; padding: .45rem .3rem; font-size: .8rem; }
  .b2b-stab-dot { position: absolute; top: .4rem; right: .4rem; }
  /* Randevu satırı: işlem altta, tam genişlik */
  .b2b-mine-item { grid-template-columns: minmax(0, 1fr); }
  .b2b-mine-action { justify-self: stretch; max-width: none; text-align: left; }
  .b2b-mine-cancel { width: 100%; min-height: 44px; justify-content: center; white-space: normal; text-align: center; }
}

@media (max-width: 520px) {
  .b2b-brand-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .b2b-spinner, .is-busy [type="submit"]::after { animation-duration: 1.6s; }
  .b2b-tab, .b2b-stab, .b2b-logout, .b2b-day { transition: none; }
}
