﻿.validation-summary-valid,
.field-validation-valid {
  display: none;
}

:root {
  --odtu-red: #a41e35;
  --odtu-red-dark: #7d1627;
  --odtu-red-light: #c73349;
  --odtu-gray-900: #1f2328;
  --odtu-gray-700: #495057;
  --odtu-gray-100: #f5f6f8;
  --sidebar-width: 260px;

  /* Dark/Light mod (yalnızca herkese açık site — bkz. _Layout.cshtml) bu belirteçler üzerinden çalışır. */
  --body-bg: var(--odtu-gray-100);
  --surface-bg: #ffffff;
  --text-primary: var(--odtu-gray-900);
  --border-color: #e6e8eb;
  --input-bg: #ffffff;
  --input-border: #ced4da;
}

/* html üzerine data-theme="dark" yalnızca herkese açık sitedeki (_Layout.cshtml) tema düğmesiyle
   set edilir — Admin/Branş panelleri (_DashboardLayout.cshtml) bu özelliği hiç yazmadığı için
   aşağıdaki kurallar orada devreye girmez, aynı sınıf adları (ör. .stat-card) her iki tarafta da
   kullanılsa bile. */
html[data-theme="dark"] {
  --body-bg: #14161a;
  --surface-bg: #1e2126;
  --text-primary: #e8eaed;
  --border-color: #2e333a;
  --input-bg: #22262c;
  --input-border: #3a4048;
}

html, body {
  height: 100%;
}

/* Sayfa yüksekliğine göre dikey kaydırma çubuğu bazen görünüp bazen görünmüyordu (ör. kısa Giriş
   sayfasından uzun Profilim sayfasına geçişte), bu da içeriğin birkaç piksel kayması gibi bir izlenim
   veriyordu. Kaydırma çubuğu için her zaman yer ayırarak bu kaymayı tamamen ortadan kaldırıyoruz. */
html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  background-color: var(--body-bg);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  /* Sticky footer: body bir flex sütunu olur, main kalan boş alanı doldurur (footer'ı içerik
     kısa olsa bile ekranın en altına iter), içerik uzunsa main normal şekilde büyür ve sayfa
     kayar — çözünürlük/içerik uzunluğu farketmeksizin footer her zaman en altta kalır. */
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

a {
  color: var(--odtu-red);
}
a:hover {
  color: var(--odtu-red-dark);
}

/* ---------- Public / brand navbar ---------- */
.navbar-brand-odtu {
  font-weight: 800;
  letter-spacing: -.01em;
}
.navbar-odtu {
  background: linear-gradient(100deg, var(--odtu-red-light) 0%, var(--odtu-red) 45%, var(--odtu-red-dark) 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.14);
}
.navbar-odtu .nav-link,
.navbar-odtu .navbar-brand {
  color: #fff !important;
}
.navbar-odtu .nav-link:hover {
  color: #ffe3e8 !important;
}
.navbar-odtu .navbar-toggler {
  border-color: rgba(255,255,255,.5);
  padding: .4rem .6rem;
}
.navbar-odtu .navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(255,255,255,.4);
}

/* ---------- Mobile menu panel (public navbar, collapsed state; menü 1200px altında katlanır) ---------- */
@media (max-width: 1199.98px) {
  .navbar-odtu .navbar-collapse {
    background: rgba(0,0,0,.12);
    border-radius: 12px;
    margin-top: .75rem;
    padding: .5rem .75rem;
  }
  .navbar-odtu .navbar-nav {
    width: 100%;
  }
  .navbar-odtu .navbar-nav .nav-link {
    padding: .75rem .5rem;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }
  .navbar-odtu .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }
  .navbar-odtu #loginPartialNav {
    margin-top: .5rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,.15);
    width: 100%;
  }
  .navbar-odtu #loginPartialNav .nav-item {
    width: 100%;
    margin-bottom: .5rem;
  }
  .navbar-odtu #loginPartialNav .btn {
    width: 100%;
    margin: 0 !important;
    padding: .6rem;
  }
  .navbar-odtu #loginPartialNav .dropdown-menu {
    width: 100%;
  }
  .navbar-odtu #loginPartialNav .dropdown-item {
    padding: .6rem .75rem;
  }
}

.btn-odtu {
  background: linear-gradient(180deg, var(--odtu-red-light), var(--odtu-red));
  border-color: var(--odtu-red);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(164,30,53,.22), 0 8px 20px -6px rgba(164,30,53,.3);
  transition: transform .15s cubic-bezier(.16,1,.3,1), box-shadow .15s cubic-bezier(.16,1,.3,1), background .15s ease;
}
.btn-odtu:hover {
  background: linear-gradient(180deg, var(--odtu-red), var(--odtu-red-dark));
  border-color: var(--odtu-red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(164,30,53,.28), 0 14px 28px -8px rgba(164,30,53,.4);
}
.btn-outline-odtu {
  color: var(--odtu-red);
  border-color: var(--odtu-red);
  font-weight: 600;
  transition: transform .15s cubic-bezier(.16,1,.3,1), box-shadow .15s cubic-bezier(.16,1,.3,1), background .15s ease, color .15s ease;
}
.btn-outline-odtu:hover {
  background-color: var(--odtu-red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -6px rgba(164,30,53,.35);
}
/* Seçim düğmeleri (ör. üyelik türü): seçili olan kurum rengiyle dolu görünür. */
.btn-check:checked + .btn-outline-odtu,
.btn-check:active + .btn-outline-odtu {
  background-color: var(--odtu-red);
  border-color: var(--odtu-red);
  color: #fff;
}
.btn-check:focus-visible + .btn-outline-odtu {
  box-shadow: 0 0 0 .2rem rgba(164,30,53,.35);
}
.text-odtu { color: var(--odtu-red) !important; }
.bg-odtu { background-color: var(--odtu-red) !important; }

/* ---------- Social login buttons ---------- */
.btn-google {
  background-color: #fff;
  border: 1px solid #dadce0;
  color: #3c4043;
}
.btn-google:hover { background-color: #f7f8f8; color: #3c4043; }
.btn-facebook {
  background-color: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.btn-facebook:hover { background-color: #1462c9; color: #fff; }

/* ---------- News ticker widget ---------- */
.widget-ticker {
  background-color: var(--odtu-red);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.widget-ticker .ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-scroll 28s linear infinite;
}
.widget-ticker:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}
.widget-ticker .ticker-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .05em;
}

/* ---------- Top accent bar (herkese açık site, marka şeridi) ---------- */
.top-accent-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--odtu-red-dark), var(--odtu-red), var(--odtu-red-light));
}

/* ---------- Hero (landing page) ---------- */
.hero-odtu {
  background:
    radial-gradient(ellipse 90% 70% at 85% 0%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(115deg, rgba(20,4,7,.55), rgba(125,22,39,.7) 55%, rgba(164,30,53,.65)),
    radial-gradient(circle at top right, var(--odtu-red-light), var(--odtu-red-dark) 70%);
  background-blend-mode: normal, multiply, normal;
  color: #fff;
  min-height: 58vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.35);
}
.hero-odtu::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.hero-odtu > * {
  position: relative;
  width: 100%;
}
.hero-odtu h1 {
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-odtu .lead {
  text-shadow: 0 1px 10px rgba(0,0,0,.3);
}

/* ---------- Branşlar: yatay kaydırmalı kırmızı daire rozetler ---------- */
.branch-scroll-row {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: .5rem .25rem 1rem;
  scroll-snap-type: x proximity;
}
.branch-scroll-row::-webkit-scrollbar {
  height: 8px;
}
.branch-scroll-row::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 999px;
}
.branch-circle-item {
  flex: 0 0 auto;
  width: 148px;
  scroll-snap-align: start;
  text-decoration: none;
}
.branch-icon-badge {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .4rem;
  padding: 1rem;
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.28);
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s cubic-bezier(.16,1,.3,1);
}
.branch-icon-badge i {
  font-size: 2rem;
}
.branch-icon-badge svg {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.branch-scroll-wrap {
  position: relative;
}
.branch-scroll-fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 8px;
  width: 64px;
  /* --body-bg zaten light/dark moda göre değişiyor (bkz. :root ve html[data-theme="dark"]), bu
     yüzden tek kural her iki temada da doğru rengi kullanır. */
  background: linear-gradient(90deg, transparent, var(--body-bg) 85%);
  pointer-events: none;
}
.branch-icon-badge .branch-name {
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.15;
}
.branch-circle-item:hover .branch-icon-badge {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -8px rgba(0,0,0,.35);
}

/* ---------- İstatistikler / Başarılar bandı ---------- */
.stats-divider-line {
  flex: 1 1 auto;
  max-width: 200px;
  height: 1px;
  background: var(--border-color);
}
.stat-number-lg {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--odtu-red);
}

.feature-card {
  border: 1px solid rgba(17,17,17,.04);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(17,17,17,.03), 0 10px 24px -10px rgba(17,17,17,.1);
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s cubic-bezier(.16,1,.3,1);
  height: 100%;
}
/* Eşit yükseklik yalnızca sütunda tek başına duran kart için: üst üste duran kartlar (ör. branş sayfasında antrenman programı
   + müsabakalar) her biri sütunun tamamı kadar uzayıp alttaki bölümün üstüne taşmasın. */
.feature-card:not(:only-child) { height: auto; }
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(17,17,17,.04), 0 22px 44px -14px rgba(17,17,17,.16);
}

/* ---------- Ana sayfa galerisi ---------- */
.gallery-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(17,17,17,.03), 0 8px 18px -8px rgba(17,17,17,.12);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s cubic-bezier(.16,1,.3,1);
}
.gallery-thumb img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.gallery-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(17,17,17,.05), 0 18px 32px -10px rgba(17,17,17,.2);
}
.gallery-thumb:hover img {
  transform: scale(1.06);
}
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: .6rem .75rem .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.gallery-thumb:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}
#galleryLightbox .modal-content {
  box-shadow: none;
}

/* ---------- Dashboard shell (Admin / Branch areas) ---------- */
.dashboard-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar-odtu {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--odtu-gray-900);
  color: #dfe3e8;
  min-height: 100vh;
}
.sidebar-odtu .sidebar-brand {
  padding: 1.25rem 1.25rem .75rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-odtu .nav-link {
  color: #c3c9d1;
  padding: .6rem 1.25rem;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.sidebar-odtu .nav-link i {
  width: 1.1rem;
  text-align: center;
}
.sidebar-odtu .nav-link:hover {
  color: #fff;
  background-color: rgba(255,255,255,.06);
}
.sidebar-odtu .nav-link.active {
  color: #fff;
  background-color: rgba(164,30,53,.35);
  border-left-color: var(--odtu-red-light);
  font-weight: 600;
}
.sidebar-odtu .nav-section-title {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .08em;
  color: #7c8590;
  padding: 1rem 1.25rem .35rem;
}

.dashboard-main {
  flex-grow: 1;
  min-width: 0;
}
.dashboard-topbar {
  background: #fff;
  border-bottom: 1px solid #e6e8eb;
  padding: .75rem 1.5rem;
}
.dashboard-content {
  padding: 1.5rem;
}

.stat-card {
  border: 1px solid rgba(17,17,17,.04);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(17,17,17,.03), 0 8px 20px -8px rgba(17,17,17,.1);
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s cubic-bezier(.16,1,.3,1);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(17,17,17,.04), 0 16px 32px -12px rgba(17,17,17,.14);
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.table-odtu thead {
  background-color: var(--odtu-gray-100);
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--odtu-red-light), var(--odtu-red-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.auth-card {
  max-width: 440px;
  margin: 3rem auto;
  border: 1px solid rgba(17,17,17,.04);
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(17,17,17,.03), 0 24px 48px -16px rgba(17,17,17,.16);
}

@media (max-width: 991.98px) {
  .sidebar-odtu {
    position: fixed;
    z-index: 1040;
    left: -260px;
    transition: left .2s ease;
  }
  .sidebar-odtu.show {
    left: 0;
  }
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1035;
}
.sidebar-backdrop.show {
  display: block;
}

/* ---------- Tesis Randevusu: dokunma hedefleri (mobil) ---------- */
@media (max-width: 767.98px) {
  .slot-btn {
    min-width: 3.6rem;
    min-height: 2.6rem;
    font-size: .9rem;
  }
}

.site-footer {
  background-color: var(--surface-bg);
  border-top: 1px solid var(--border-color);
}

#themeToggleBtn {
  border-color: rgba(255,255,255,.5);
}

.admin-page-edit-link {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background-color: var(--odtu-red);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.admin-page-edit-link:hover {
  background-color: var(--odtu-red-dark);
  color: #fff;
}

/* ---------- Dark mode (yalnızca herkese açık site) ---------- */
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .wizard-step {
  background-color: var(--surface-bg);
  color: var(--text-primary);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text-primary);
}
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
  background-color: var(--input-bg);
  color: var(--text-primary);
}
html[data-theme="dark"] .form-control::placeholder {
  color: #7d848d;
}
html[data-theme="dark"] .form-check-input {
  background-color: var(--input-bg);
  border-color: var(--input-border);
}

html[data-theme="dark"] .dropdown-menu {
  background-color: var(--surface-bg);
  border-color: var(--border-color);
}
html[data-theme="dark"] .dropdown-item {
  color: var(--text-primary);
}
html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
  background-color: rgba(255,255,255,.08);
  color: var(--text-primary);
}
html[data-theme="dark"] .dropdown-divider {
  border-color: var(--border-color);
}

html[data-theme="dark"] .table {
  color: var(--text-primary);
  border-color: var(--border-color);
}
html[data-theme="dark"] .table-odtu thead {
  background-color: var(--surface-bg);
}

html[data-theme="dark"] .list-group-item {
  background-color: var(--surface-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

html[data-theme="dark"] .btn-google {
  background-color: var(--surface-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

/* ---- Erişilebilirlik: içeriğe geç bağlantısı ve klavye odağı ---- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 3000; background: #fff; color: #111; padding: .6rem 1rem; border-radius: .5rem;
    font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: top .15s ease; }
.skip-link:focus { top: 12px; }
#main-content:focus { outline: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid #f4b400; outline-offset: 2px; }

/* ---- Altbilgi bağlantıları ---- */
.site-footer .footer-links a, .site-footer .footer-link-btn { color: inherit; opacity: .8; text-decoration: none; }
.site-footer .footer-links a:hover, .site-footer .footer-link-btn:hover { opacity: 1; text-decoration: underline; }
.site-footer .footer-social { display: inline-flex; min-width: 32px; min-height: 32px; align-items: center; justify-content: center; }

/* ---- Çerez onayı ---- */
.cookie-consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 2100;
    max-width: 960px; margin: 0 auto; background: #fff; color: #1f2328; border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,.25);
    border: 1px solid rgba(0,0,0,.08); }
.cookie-consent[hidden] { display: none !important; }
.cookie-consent-inner { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; }
.cookie-consent-text { flex: 1 1 340px; min-width: 0; }
.cookie-consent-text a { color: var(--odtu-red); }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-consent-actions .btn { min-height: 40px; }
@media (max-width: 575.98px) { .cookie-consent-actions { width: 100%; } .cookie-consent-actions .btn { flex: 1 1 auto; } }
.cookie-prefs { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); color: #1f2328;
    box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.cookie-prefs::backdrop { background: rgba(10,12,16,.55); }
.cookie-prefs form { position: relative; }
.cookie-cat { border: 1px solid #e5e7eb; border-radius: 10px; padding: .65rem .85rem; margin-bottom: .55rem; }
html[data-theme="dark"] .cookie-consent, html[data-theme="dark"] .cookie-prefs { background: #1f2329; color: #e9ecef; border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .cookie-cat { border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .skip-link { background: #1f2329; color: #fff; }

/* ---- Yasal sayfalar ---- */
.legal-page h2 { scroll-margin-top: 80px; }
.legal-page li { margin-bottom: .25rem; }

/* ---- Alt CTA bandı ---- */
.cta-band { background: linear-gradient(135deg, var(--odtu-red), var(--odtu-red-dark)); color: #fff; border-radius: 18px; }
.cta-band .btn-light { color: var(--odtu-red); font-weight: 600; }
.cta-band .btn { min-height: 44px; }

/* ---------- Yönetimin oluşturduğu serbest sayfalar (/sayfa/...) ---------- */
.custom-page { max-width: 46rem; }
.custom-page-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.custom-page-body { font-size: 1.0625rem; line-height: 1.75; overflow-wrap: anywhere; }
.custom-page-body h1, .custom-page-body h2, .custom-page-body h3, .custom-page-body h4 { margin: 2rem 0 .75rem; font-weight: 700; line-height: 1.3; }
.custom-page-body h1 { font-size: 1.75rem; }
.custom-page-body h2 { font-size: 1.45rem; }
.custom-page-body h3 { font-size: 1.2rem; }
.custom-page-body p { margin-bottom: 1rem; }
.custom-page-body p:empty, .custom-page-body p > br:only-child { min-height: .5rem; }
.custom-page-body a { color: var(--odtu-red); text-decoration: underline; text-underline-offset: 2px; }
.custom-page-body img { max-width: 100%; height: auto; border-radius: .75rem; margin: .5rem 0; }
.custom-page-body blockquote { border-left: 4px solid var(--odtu-red); padding: .25rem 0 .25rem 1rem; margin: 1.25rem 0; color: var(--bs-secondary-color); }
.custom-page-body pre { background: var(--bs-tertiary-bg); padding: 1rem; border-radius: .5rem; white-space: pre-wrap; font-size: .9rem; }
.custom-page-body ul, .custom-page-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.custom-page-body li { margin-bottom: .35rem; }
.custom-page-body hr { margin: 2rem 0; }
.custom-page-body .ql-align-center { text-align: center; }
.custom-page-body .ql-align-right { text-align: right; }
.custom-page-body .ql-align-justify { text-align: justify; }
.custom-page-body .ql-size-small { font-size: .85em; }
.custom-page-body .ql-size-large { font-size: 1.35em; }
.custom-page-body .ql-size-huge { font-size: 1.9em; }
.custom-page-body .ql-indent-1 { padding-left: 2rem; }
.custom-page-body .ql-indent-2 { padding-left: 4rem; }
.custom-page-body .ql-indent-3 { padding-left: 6rem; }
.custom-page-body .ql-indent-4, .custom-page-body .ql-indent-5, .custom-page-body .ql-indent-6,
.custom-page-body .ql-indent-7, .custom-page-body .ql-indent-8 { padding-left: 8rem; }
@media (max-width: 575.98px) {
  .custom-page-body .ql-indent-2, .custom-page-body .ql-indent-3, .custom-page-body .ql-indent-4, .custom-page-body .ql-indent-5,
  .custom-page-body .ql-indent-6, .custom-page-body .ql-indent-7, .custom-page-body .ql-indent-8 { padding-left: 2.5rem; }
}

/* Menüdeki açılır listelerde seçili/basılı öğe Bootstrap mavisi yerine kurum rengiyle. */
.navbar .dropdown-item.active, .navbar .dropdown-item:active { background-color: var(--odtu-red); color: #fff; }
html[data-theme="dark"] .custom-page-body a { color: #f28b9b; }

/* Tesis randevusu: kapalı saat (etkinlik/bakım) — soluk değil, okunur kehribar. */
.slot-btn.slot-closed, .slot-btn.slot-closed:disabled, .slot-btn.slot-closed.disabled { opacity: 1; color: #92400e; background-color: #fef3c7; border-color: #fcd34d; }
html[data-theme="dark"] .slot-btn.slot-closed { color: #fcd34d; background-color: rgba(252,211,77,.12); border-color: rgba(252,211,77,.45); }

/* Tesis randevusu: ücret tarifeleri — fiyat listesi ve pop-up'ta tarife seçimi. */
.price-list li { display: flex; flex-wrap: wrap; gap: 0 .25rem; align-items: baseline; padding: .1rem 0; }
.price-picker { border: 0; padding: 0; margin: 0; min-width: 0; }
.price-option { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .5rem .75rem; margin-bottom: .4rem;
  border: 1px solid var(--bs-border-color); border-radius: .5rem; cursor: pointer; font-size: .9rem; }
.price-option:has(input:checked) { border-color: var(--odtu-red); background-color: rgba(164,30,53,.06); }
.price-option input[hidden] + span { padding-left: 0; }
.price-option .form-check-input:checked { background-color: var(--odtu-red); border-color: var(--odtu-red); }
html[data-theme="dark"] .price-option:has(input:checked) { border-color: #f28b9b; background-color: rgba(242,139,155,.1); }

/* Gelişim raporu: her soruda 5 yüz ifadesi, verilen puan belirgin, diğerleri soluk. */
.eval-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding: .45rem 0; border-bottom: 1px solid var(--bs-border-color-translucent); }
.eval-row:last-child { border-bottom: 0; }
.eval-label { flex: 1 1 14rem; min-width: 0; }
.eval-scale { display: inline-flex; gap: .2rem; font-size: 1.35rem; line-height: 1; }
.eval-scale span { opacity: .22; filter: grayscale(1); transition: transform .15s; }
.eval-scale span.on { opacity: 1; filter: none; transform: scale(1.2); }
.eval-note { background: var(--bs-tertiary-bg); border-left: 3px solid var(--odtu-red); border-radius: .375rem; padding: .5rem .75rem; }
.eval-summary-chip { display: inline-flex; align-items: center; gap: .75rem; padding: .5rem 1rem; border-radius: .75rem; background: var(--bs-tertiary-bg); }
.eval-sum-table td, .eval-sum-table th { white-space: nowrap; }
.eval-sum-table .eval-sum-item { display: none; }
.eval-sum.show-items .eval-sum-table .eval-sum-item { display: table-row; }
.eval-sum-table .sticky-col { position: sticky; left: 0; background: var(--bs-body-bg); z-index: 1; white-space: normal; min-width: 9rem; }
html[data-theme="dark"] .eval-note { border-left-color: #f28b9b; }
@media print {
  .eval-scale span { opacity: .35; }
  .eval-scale span.on { opacity: 1; }
  .eval-section { break-inside: avoid; }
}

/* Randevu ekstraları: adet seçici ve toplam. */
.extra-row { display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; margin-bottom: .4rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; }
.extra-row.is-selected { border-color: var(--odtu-red); background-color: rgba(164,30,53,.06); }
.extra-stepper { display: inline-flex; align-items: center; gap: .25rem; flex-shrink: 0; }
.extra-stepper .btn { width: 40px; height: 40px; padding: 0; font-size: 1.15rem; line-height: 1; border-radius: .5rem; }
.extra-qty { min-width: 1.75rem; text-align: center; font-weight: 600; }
.booking-total { display: flex; justify-content: space-between; align-items: baseline; padding: .6rem .75rem; border-radius: .5rem; background: var(--bs-tertiary-bg); }
.booking-total[hidden] { display: none; }
html[data-theme="dark"] .extra-row.is-selected { border-color: #f28b9b; background-color: rgba(242,139,155,.1); }

/* Tesis kuralları: belge sayfaları sitenin parçası gibi (çerçeve/araç çubuğu yok). */
.rules-doc { position: relative; }
.rules-page { background: #fff; border-radius: .75rem; overflow: hidden; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.rules-page canvas { display: block; width: 100%; height: auto; }
.rules-loading { display: flex; align-items: center; justify-content: center; min-height: 40vh; color: var(--bs-secondary-color); }
.rules-loading[hidden] { display: none; }
html[data-theme="dark"] .rules-page { box-shadow: none; }

/* Randevu ekranındaki açılır kapanır tesis kuralları bölümü. */
.rules-panel > summary { list-style: none; }
.rules-panel > summary::-webkit-details-marker { display: none; }
.rules-panel .rules-chevron { transition: transform .2s ease; }
.rules-panel[open] .rules-chevron { transform: rotate(180deg); }
.rules-panel .rules-page { border: 1px solid var(--bs-border-color-translucent); }
html[data-theme="dark"] .rules-panel .rules-page { border-color: transparent; }

/* ===== Alt bilgi (çok sütunlu): tanıtım + iletişim, hızlı bağlantılar, yardım ve yasal ===== */
.site-footer .footer-brand { color: inherit; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.site-footer .footer-about { opacity: .85; max-width: 32rem; }
.site-footer .footer-heading { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-bottom: .5rem; }
.site-footer .footer-nav li { margin: 0; }
.site-footer .footer-nav a, .site-footer .footer-link-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0; color: inherit; opacity: .85;
  text-decoration: none; background: none; border: 0; font-size: .92rem; text-align: left;
}
.site-footer .footer-nav a:hover, .site-footer .footer-link-btn:hover, .site-footer .footer-nav a:focus-visible { opacity: 1; text-decoration: underline; }
.site-footer .footer-contact li { display: flex; gap: .5rem; align-items: flex-start; padding: .2rem 0; }
.site-footer .footer-contact a { color: inherit; }
.site-footer .footer-social { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid currentColor; opacity: .8; color: inherit; text-decoration: none; }
.site-footer .footer-social:hover { opacity: 1; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.12); opacity: .85; }
html[data-theme="dark"] .site-footer .footer-bottom { border-top-color: var(--border-color); }

/* ===== Site içi arama ===== */
.nav-search-btn { border-color: rgba(255,255,255,.5); }
.site-search-dialog { margin-top: 4rem; }
.site-search-suggestions .site-search-item { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; min-height: 48px;
  border-radius: .5rem; color: inherit; text-decoration: none; }
.site-search-suggestions .site-search-item:hover, .site-search-suggestions .site-search-item.active { background: var(--bs-tertiary-bg); }
.site-search-icon { font-size: 1.15rem; color: var(--odtu-red); flex-shrink: 0; }
.site-search-text { display: flex; flex-direction: column; min-width: 0; }
.site-search-title { font-weight: 600; }
.site-search-group { font-size: .78rem; color: var(--bs-secondary-color); }
.search-results .search-result-icon { color: var(--odtu-red); }
html[data-theme="dark"] .site-search-icon, html[data-theme="dark"] .search-results .search-result-icon { color: #f28b9b; }

/* ===== Site haritası ===== */
.sitemap-list li { padding: .35rem 0; }
.sitemap-list a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; text-decoration: none; }
.sitemap-list a:hover { text-decoration: underline; }
.faq-group .accordion-button { font-weight: 600; }
.navbar .nav-icon-btn { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
/* Dar telefonlarda üst çubuk tek satır: site adı biraz küçülür, menü düğmesi daralır. */
@media (max-width: 419.98px) {
  .navbar-brand-odtu span { font-size: 1rem; }
  .navbar-odtu .navbar-toggler { padding: .3rem .5rem; }
  .navbar-odtu .navbar-brand { margin-right: .25rem; }
}
/* Logo resmi varsa dar telefonlarda yanındaki site adı yalnızca ekran okuyuculara kalır (logo adı zaten taşıyor). */
@media (max-width: 419.98px) {
  .navbar-brand-odtu img + span {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}

/* Üst menü: öğeler hiçbir genişlikte iki satıra kırılmaz; arama ve tema düğmeleri aynı görünür. */
.navbar-odtu .nav-link, .navbar-odtu .navbar-brand span, #loginPartialNav .btn { white-space: nowrap; }
.navbar .nav-icon-btn { border-color: transparent !important; background: transparent; flex-shrink: 0; }
/* Uzun kullanıcı adı (e-posta) üst çubuğu taşırmasın: geniş ekranda kısaltılır, tamamı menüde/başlıkta. */
@media (min-width: 1200px) { #userMenu > span:last-child { max-width: 160px; overflow: hidden; text-overflow: ellipsis; } }
.navbar .nav-icon-btn:hover, .navbar .nav-icon-btn:focus-visible { background: rgba(127,127,127,.15); }
@media (max-width: 1199.98px) {
  .navbar-odtu .navbar-nav .dropdown-menu { border: 0; background: transparent; box-shadow: none; padding: 0 0 .25rem .75rem; }
  .navbar-odtu .navbar-nav .dropdown-item { color: #fff; padding: .6rem .5rem; border-radius: 10px; }
  html:not([data-theme="dark"]) .navbar-odtu .navbar-nav .dropdown-item { color: #161b33; }
}

/* Telefonda dil düğmeleri (TR/EN): dokunma hedefi en az 40x44px olsun (mobil kural). */
.navbar-odtu .btn-group-sm > .btn { min-height: 40px; min-width: 44px; }
/* Dokunma hedefleri: küçük düğmeler ve altbilgi bağlantıları en az 40px yüksekliğinde (mobil kural). */
.btn-sm { min-height: 40px; }
.footer-nav a, .footer-contact a { display: inline-block; padding: 8px 0; line-height: 24px; }

/* ---- Telefon: alt hızlı erişim çubuğu ve rahat dokunma alanları ---- */
.m-tabbar { display: none; }
@media (max-width: 767.98px) {
    .m-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
        padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.96); border-top: 1px solid rgba(0,0,0,.08);
        box-shadow: 0 -6px 20px rgba(0,0,0,.06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
    .m-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border: 0; background: none;
        color: #4b5563; font-size: 11px; font-weight: 600; text-decoration: none; border-radius: 12px; padding: 0 2px; }
    .m-tab i { font-size: 20px; line-height: 1; }
    .m-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .m-tab.is-on { color: #a41e35; background: rgba(164,30,53,.08); }
    .m-tab:active { background: rgba(164,30,53,.12); }
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    .cookie-consent { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
    /* Dokunma alanları en az 40–44 px */
    .form-check-input { width: 1.4em; height: 1.4em; margin-top: .1em; }
    .form-check { min-height: 32px; }
    .form-check-label { padding-left: .25rem; }
    .btn:not(.btn-sm):not(.btn-close) { min-height: 44px; }
    .pl-downloads > a:last-child { display: inline-flex; align-items: center; min-height: 44px; }
    .sitemap-list a { min-height: 40px; display: inline-flex; align-items: center; }
    main a[href*="ForgotPassword"] { display: inline-block; padding: 11px 0; }
}
html[data-theme="dark"] .m-tabbar { background: rgba(20,20,24,.95); border-top-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .m-tab { color: #cbd5e1; }
html[data-theme="dark"] .m-tab.is-on { color: #f3a6b4; background: rgba(255,255,255,.08); }
@media print { .m-tabbar { display: none !important; } }

/* ---- Ana sayfa: Destekçilerimiz logo şeridi ---- */
.sponsor-strip { padding: 40px 0; border-top: 1px solid rgba(0,0,0,.06); }
.sponsor-strip-all { font-weight: 600; color: #a41e35; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.sponsor-strip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; justify-content: center; }
.sponsor-strip-list li { display: flex; align-items: center; justify-content: center; height: 64px; }
.sponsor-strip-list li.is-main { height: 88px; }
.sponsor-strip-list a { display: flex; align-items: center; height: 100%; }
.sponsor-strip-list img { max-height: 100%; max-width: 160px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.sponsor-strip-list li.is-main img { max-width: 220px; }
.sponsor-strip-list a:hover img, .sponsor-strip-list a:focus-visible img, .sponsor-strip-list img:hover { filter: none; opacity: 1; }
@media (max-width: 575.98px) { .sponsor-strip-list { gap: 16px 24px; } .sponsor-strip-list li { height: 48px; } .sponsor-strip-list li.is-main { height: 64px; } .sponsor-strip-list img { max-width: 120px; } }
html[data-theme="dark"] .sponsor-strip { border-top-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .sponsor-strip-list img { background: #fff; border-radius: 8px; padding: 4px 8px; }

/* WhatsApp yüzen butonu (Admin → WhatsApp Ayarları). Telefonda alt sekme çubuğunun üstünde durur. */
.wa-float { position: fixed; right: 18px; bottom: 22px; z-index: 1035; display: inline-flex; align-items: center; gap: .5rem;
    min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 600;
    text-decoration: none; box-shadow: 0 8px 24px rgba(37, 211, 102, .35), 0 2px 6px rgba(0,0,0,.15); transition: transform .15s ease, box-shadow .15s ease; }
.wa-float:hover, .wa-float:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, .45), 0 2px 6px rgba(0,0,0,.15); }
.wa-float:focus-visible { outline: 3px solid #128C7E; outline-offset: 3px; }
@media (max-width: 991.98px) {
    .wa-float { width: 52px; padding: 0; justify-content: center; right: 14px; }
    .wa-float-label { display: none; }
}
@media (max-width: 767.98px) { .wa-float { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }
@media print { .wa-float { display: none !important; } }

/* İki adımlı giriş (Google Authenticator) */
.tf-steps { padding-left: 1.2rem; }
.tf-steps li { margin-bottom: .6rem; }
.tf-qr { background: #fff; padding: 8px; border-radius: .5rem; border: 1px solid #e5e7eb; max-width: 100%; height: auto; }
.tf-key { display: block; padding: .5rem; background: rgba(0,0,0,.04); border-radius: .375rem; letter-spacing: .05em; word-break: break-all; font-size: .95rem; }
.tf-input { letter-spacing: .2em; font-variant-numeric: tabular-nums; min-height: 44px; }
.tf-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .75rem; }
.tf-codes code { color: inherit; font-size: .9rem; }
html[data-theme="dark"] .tf-key { background: rgba(255,255,255,.08); }
@media print { .tf-card .btn, header, footer, nav { display: none !important; } }

/* ---------- Hata sayfası (404 / 403 / genel) — kurum renkli hero ---------- */
/* Markup: Views/Home/StatusCode.cshtml. .hero-odtu zaten kırmızı degrade + beyaz metin
   sağlıyor (koyu temada da aynı görünür). Buradaki kurallar hata sayfasına özel başlık,
   rozet ve dekoratif parlak şekilleri ekler. Şekiller hero'nun içinde (overflow:hidden)
   konumlandığı için 320px'te bile yatay kaydırma yapmaz. */
.errorpage-hero {
  min-height: 52vh;
  padding: 3.5rem 0;
}
.errorpage-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}
.errorpage-badge {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.25rem;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  background: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 30px -12px rgba(0,0,0,.5);
}
.errorpage-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.errorpage-code {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: .35rem;
}
.errorpage-hero .errorpage-title {
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  font-size: clamp(2.2rem, 7vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.errorpage-lead {
  color: rgba(255,255,255,.92);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0 auto 1.25rem;
}
.errorpage-path {
  display: inline-block;
  max-width: 100%;
  background: rgba(0,0,0,.22);
  color: #fff;
  padding: .3rem .7rem;
  border-radius: 8px;
  font-size: .85rem;
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}
/* Dekoratif parlak şekiller (sadece görsel — aria-hidden). */
.errorpage-blob {
  position: absolute;
  border-radius: 30%;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.45), transparent 45%),
    linear-gradient(150deg, var(--odtu-red-light), var(--odtu-red-dark));
  box-shadow: inset 0 2px 6px rgba(255,255,255,.3), 0 18px 40px -14px rgba(0,0,0,.5);
  opacity: .9;
}
.errorpage-blob-1 { width: 150px; height: 150px; top: -40px; right: 8%;  transform: rotate(18deg); }
.errorpage-blob-2 { width: 90px;  height: 90px;  bottom: -25px; right: 22%; transform: rotate(-12deg); opacity: .8; }
.errorpage-blob-3 { width: 120px; height: 120px; bottom: -30px; left: 6%;   transform: rotate(-20deg); opacity: .75; }
.errorpage-blob-4 { width: 60px;  height: 60px;  top: 18%; left: 12%;       transform: rotate(14deg); opacity: .7; }
@media (max-width: 575.98px) {
  .errorpage-blob-2, .errorpage-blob-4 { display: none; }
  .errorpage-blob-1 { width: 100px; height: 100px; top: -30px; right: -10px; }
  .errorpage-blob-3 { width: 80px;  height: 80px;  left: -20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .errorpage-blob   { animation: errorpage-float 7s ease-in-out infinite; }
  .errorpage-blob-2 { animation-delay: -2s; }
  .errorpage-blob-3 { animation-delay: -4s; }
  .errorpage-blob-4 { animation-delay: -1s; }
}
@keyframes errorpage-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

/* ---- Karanlık mod düzeltmeleri (2026-11) ----
   Kulüp kırmızısı (#a41e35) koyu zeminde okunmuyordu (kontrast ~2.2); yazı/çerçeve olarak kullanıldığı yerlerde
   açık tonu (#f28b9b) kullanılır. Dolgulu kırmızı düğmeler ve seçili durumlar olduğu gibi kalır. */
html[data-theme="dark"] {
  --bs-link-color: #f28b9b;
  --bs-link-color-rgb: 242, 139, 155;
  --bs-link-hover-color: #f6aab6;
  --bs-link-hover-color-rgb: 246, 170, 182;
}
html[data-theme="dark"] .text-odtu { color: #f28b9b !important; }
html[data-theme="dark"] .text-dark { color: var(--text-primary) !important; }
html[data-theme="dark"] .btn-outline-odtu { color: #f28b9b; border-color: #f28b9b; }
html[data-theme="dark"] .btn-outline-odtu:hover,
html[data-theme="dark"] .btn-check:checked + .btn-outline-odtu,
html[data-theme="dark"] .btn-check:active + .btn-outline-odtu { color: #fff; background-color: var(--odtu-red); border-color: var(--odtu-red); }

/* Bilgi kutuları ve akordeon (SSS) */
html[data-theme="dark"] .alert-light { background-color: rgba(255, 255, 255, .05); color: var(--text-primary); border-color: var(--border-color) !important; }
html[data-theme="dark"] .accordion {
  --bs-accordion-bg: var(--surface-bg);
  --bs-accordion-color: var(--text-primary);
  --bs-accordion-border-color: var(--border-color);
  --bs-accordion-btn-color: var(--text-primary);
  --bs-accordion-btn-bg: var(--surface-bg);
  --bs-accordion-active-color: #f6c9d1;
  --bs-accordion-active-bg: rgba(164, 30, 53, .22);
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8eaed' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f6c9d1' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}
html[data-theme="dark"] .faq-item { background-color: var(--surface-bg); }

/* Hakkımızda: branş kutuları ve sayaç etiketleri */
html[data-theme="dark"] .about-branch { background: var(--surface-bg); color: var(--text-primary); }
html[data-theme="dark"] .about-branch:hover,
html[data-theme="dark"] .about-branch-national { color: #f28b9b; }
html[data-theme="dark"] .about-live .about-stat-label,
html[data-theme="dark"] .about-branch-count,
html[data-theme="dark"] .about-branch-medals { color: #c4c8ce; }

/* Şifre gücü göstergesi (renkler kısmi görünümde satır içi; koyu temada geçersiz kılınır) */
html[data-theme="dark"] .pwr-track { background: rgba(255, 255, 255, .14) !important; }
html[data-theme="dark"] .pwr-level,
html[data-theme="dark"] .pwr-tip,
html[data-theme="dark"] [id^="pwr_"] li[style*="107, 114, 128"],
html[data-theme="dark"] [id^="pwr_"] li[style*="#6b7280"] { color: #aeb4bc !important; }

/* ---- Pencere (modal) açılırken yatay kayma düzeltmesi ----
   Bootstrap modal açılınca kaydırma çubuğunu gizleyip gövdeye 15px sağ dolgu ekliyordu; yapışkan menü bu dolguyu
   almadığı için içerik ile menü arasında kayma oluyor, kayıt sayfasındaki ardışık 3 onay penceresinde içerik
   sağa-sola zıplıyordu. Kaydırma çubuğunun yeri her zaman ayrılır, dolgu eklenmez. */
html { scrollbar-gutter: stable; }
body.modal-open { padding-right: 0 !important; }
body.modal-open .modal { padding-right: 0 !important; }
/* Genel bağlantı rengi (a { color: var(--odtu-red) }) koyu temada açık ton; sınıflı bağlantılar (kart, düğme, menü) kendi rengini korur. */
html[data-theme="dark"] a:not([class]), html[data-theme="dark"] a.small.text-nowrap { color: #f28b9b; }
html[data-theme="dark"] a:not([class]):hover, html[data-theme="dark"] a.small.text-nowrap:hover { color: #f6aab6; }
html[data-theme="dark"] .cookie-consent-text a { color: #f28b9b; }
html[data-theme="dark"] .accordion-button,
html[data-theme="dark"] .accordion-button.collapsed { background-color: var(--surface-bg); color: var(--text-primary); }
html[data-theme="dark"] .accordion-button:not(.collapsed) { background-color: rgba(164, 30, 53, .22); color: #f6c9d1; }
html[data-theme="dark"] .req-badge { background: rgba(242, 139, 155, .18) !important; color: #f6c9d1 !important; }

/* ---- Üst işlem çubuğu (page-actions.js): Kaydet / İptal / Düzenle / Sil sayfanın başında, kaydırınca da görünür ---- */
.page-actions-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem;
  margin: 0 0 1rem; padding: .5rem .75rem;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px);
  border: 1px solid #e6e8eb; border-radius: 12px; box-shadow: 0 6px 18px -14px rgba(0, 0, 0, .35);
}
.page-actions-bar > *, .page-actions-bar form { margin: 0 !important; }
.page-actions-bar > div { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.page-actions-bar :is(button, a.btn, a[class*="tw-btn"], input[type=submit]) { min-height: 40px; width: auto !important; margin: 0 !important; }
html[data-theme="dark"] .page-actions-bar { background: rgba(30, 33, 38, .94); border-color: rgba(255, 255, 255, .08); }
@media (max-width: 575.98px) { .page-actions-bar { justify-content: stretch; } .page-actions-bar :is(button, a.btn, a[class*="tw-btn"]) { flex: 1 1 auto; } }
@media print { .page-actions-bar { display: none !important; } }

/* Panel: başa dön düğmesi (panel-nav.js) */
.back-to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #a41e35; color: #fff; font-size: 1.15rem; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover, .back-to-top:focus-visible { background: #7f1729; outline: 3px solid rgba(164, 30, 53, .35); outline-offset: 2px; }
@media print { .back-to-top { display: none !important; } }
/* Yan menü üst bölümü (logo + bulunduğunuz sayfa): menünün bordo tonuyla aynı, kaydırınca üstte sabit kalır. */
.side-head { background: radial-gradient(280px 240px at 0% 0%, rgba(232, 137, 154, .3), transparent 70%), rgb(74, 13, 30); }

/* ---- Karanlık mod: Bootstrap 5.1 bileşenleri (sürümde yerleşik koyu tema yok) ----
   Açılır pencere (KVKK onayları), kart, açık zeminli yardımcı sınıflar, uyarı kutuları, sekmeler, sayfalama, rozetler,
   açılır kutular ve düğmeler koyu zemin + açık yazıyla gösterilir. Böylece "beyaz kutu üstünde açık gri yazı" oluşmaz. */
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .card:not([class*="bg-"]),
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .popover,
html[data-theme="dark"] .toast { background-color: var(--surface-bg); color: var(--text-primary); border-color: var(--border-color); }
html[data-theme="dark"] .modal-header, html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .card-header, html[data-theme="dark"] .card-footer { background-color: transparent; border-color: var(--border-color); color: var(--text-primary); }
html[data-theme="dark"] .modal-title, html[data-theme="dark"] .card-title { color: var(--text-primary); }
html[data-theme="dark"] .modal-backdrop.show { opacity: .7; }
html[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
html[data-theme="dark"] .bg-white, html[data-theme="dark"] .bg-light, html[data-theme="dark"] .bg-body { background-color: var(--surface-bg) !important; color: var(--text-primary); }
html[data-theme="dark"] .text-muted, html[data-theme="dark"] .form-text { color: #aeb4bc !important; }
html[data-theme="dark"] .text-body, html[data-theme="dark"] .text-black { color: var(--text-primary) !important; }
html[data-theme="dark"] .border, html[data-theme="dark"] .border-top, html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start, html[data-theme="dark"] .border-end, html[data-theme="dark"] hr { border-color: var(--border-color) !important; }
html[data-theme="dark"] .input-group-text { background-color: #2a2e35; color: var(--text-primary); border-color: var(--input-border); }
html[data-theme="dark"] .form-control:disabled, html[data-theme="dark"] .form-control[readonly] { background-color: #23272d; color: #c4c8ce; }
html[data-theme="dark"] .nav-tabs { border-color: var(--border-color); }
html[data-theme="dark"] .nav-tabs .nav-link { color: #c4c8ce; }
html[data-theme="dark"] .nav-tabs .nav-link.active { background-color: var(--surface-bg); color: var(--text-primary); border-color: var(--border-color) var(--border-color) var(--surface-bg); }
html[data-theme="dark"] .nav-pills .nav-link:not(.active) { color: #c4c8ce; }
html[data-theme="dark"] .page-link { background-color: var(--surface-bg); color: #f28b9b; border-color: var(--border-color); }
html[data-theme="dark"] .page-item.disabled .page-link { background-color: var(--surface-bg); color: #6c7380; }
html[data-theme="dark"] .breadcrumb-item, html[data-theme="dark"] .breadcrumb-item.active { color: #aeb4bc; }
html[data-theme="dark"] .badge.bg-light, html[data-theme="dark"] .badge.text-bg-light { background-color: #2f343b !important; color: var(--text-primary) !important; }
html[data-theme="dark"] .btn-light { background-color: #2a2e35; border-color: #3a3f47; color: var(--text-primary); }
html[data-theme="dark"] .btn-light:hover { background-color: #343941; color: #fff; }
html[data-theme="dark"] .btn-outline-secondary { color: #c4c8ce; border-color: #59606b; }
html[data-theme="dark"] .btn-outline-secondary:hover { background-color: #3a3f47; color: #fff; }
html[data-theme="dark"] .btn-outline-dark { color: var(--text-primary); border-color: #8a919c; }
html[data-theme="dark"] .btn-link { color: #f28b9b; }
html[data-theme="dark"] .progress { background-color: #2f343b; }
html[data-theme="dark"] .table > :not(caption) > * > * { color: var(--text-primary); border-bottom-color: var(--border-color); }
html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: rgba(255, 255, 255, .03); color: var(--text-primary); }
html[data-theme="dark"] .table-hover > tbody > tr:hover > * { --bs-table-accent-bg: rgba(255, 255, 255, .05); color: var(--text-primary); }
html[data-theme="dark"] .table-light, html[data-theme="dark"] thead.table-light th { --bs-table-bg: #2a2e35; color: var(--text-primary); }
/* Uyarı kutuları: koyu zemin, okunur yazı */
html[data-theme="dark"] .alert-info { background-color: #12233d; color: #cfe0fb; border-color: #1f3a63; }
html[data-theme="dark"] .alert-success { background-color: #10291b; color: #c8ecd6; border-color: #1e4a31; }
html[data-theme="dark"] .alert-warning { background-color: #33270a; color: #f5dfae; border-color: #5a4512; }
html[data-theme="dark"] .alert-danger { background-color: #33121a; color: #f6c9d1; border-color: #5c2230; }
html[data-theme="dark"] .alert-secondary, html[data-theme="dark"] .alert-primary { background-color: #23272d; color: var(--text-primary); border-color: var(--border-color); }
html[data-theme="dark"] .alert a:not(.btn) { color: inherit; text-decoration: underline; }
/* Satır içi stillerle beyaz zemin verilmiş kutular */
html[data-theme="dark"] [style*="background:#fff"], html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background-color:#fff"], html[data-theme="dark"] [style*="background-color: #fff"],
html[data-theme="dark"] [style*="background:white"], html[data-theme="dark"] [style*="background: white"] { background: var(--surface-bg) !important; color: var(--text-primary); }

/* Giriş / Üye ol sekmeleri: aynı kartın iki yüzü */
.auth-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #f1f1f3; }
.auth-tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px;
    border-radius: 9px; font-weight: 600; color: #5f6368; text-decoration: none; transition: background-color .15s, color .15s; }
.auth-tab:hover { color: #a41e35; }
.auth-tab.active { background: #fff; color: #a41e35; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
html[data-theme="dark"] .auth-tabs { background: #14171b; }
html[data-theme="dark"] .auth-tab { color: #aeb4bc; }
html[data-theme="dark"] .auth-tab.active { background: #2a2e35; color: #f28b9b; }

/* Üst menüdeki "Üye Ol / Giriş Yap" düğmesi koyu temada da beyaz zemin + kurum rengi yazı */
html[data-theme="dark"] .navbar .btn-light.text-odtu { background-color: #fff !important; border-color: #fff !important; color: #a41e35 !important; }
