.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.auth-card h1 {
  margin: 0 0 20px;
  font-size: 1.3rem;
  text-align: center;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-card label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.auth-card input,
.auth-card select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.auth-card input:focus,
.auth-card select:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-card .al-btn {
  margin-top: 14px;
  padding: 12px;
  width: 100%;
}

.auth-links {
  margin-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.auth-links a {
  color: var(--accent);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-success {
  text-align: center;
  color: var(--text-muted);
}

.auth-success a {
  color: var(--accent);
}

.header-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Dar ekranlarda marka basligi (genis letter-spacing yuzunden) tam genislik
   kapliyor - saga sabit (absolute) header-controls'un altina/uzerine
   biniyordu. Hesap rozeti (ikon+2 link+nokta) ve dil dugmesi (ok+ayrac)
   eklenince header-controls epey genisledi, bu yuzden esik 480px'ten
   800px'e cikarildi - yoksa orta genislikte de bindirme oluyordu. Bu
   genislikte normal akisa alip basligin ALTINA, ortalanmis olarak
   yerlestiriyoruz. */
@media (max-width: 860px) {
  .header-controls {
    position: static;
    justify-content: center;
    margin-top: 14px;
  }
}

/* Hesap rozeti: kesik-kose (clip-path) kirmizi cerceveli rozet, ikon + iki
   link (ya da email + cikis), aralarinda nokta ayrac - referanstaki
   ".auth-btn" ile ayni dil, boyutlar bu sitenin kompakt header'ina gore
   kucultuldu (orijinal dosya 56px yuksekligindeydi). */
.auth-wrap {
  filter: drop-shadow(0 0 6px rgba(255, 40, 20, 0.8)) drop-shadow(0 0 14px rgba(255, 20, 0, 0.4));
}

.auth-btn {
  padding: 1.5px;
  background: #ff3b2a;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.auth-btn__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px 0 8px;
  color: #fff;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: radial-gradient(ellipse at 40% 50%, #3a0707 0%, #1c0506 65%, #140406 100%);
  box-shadow: inset 0 0 10px rgba(255, 40, 20, 0.45);
  font: 700 0.75rem/1 "Rajdhani", "Segoe UI", system-ui, sans-serif;
  text-shadow: 0 0 6px rgba(255, 80, 60, 0.7);
  white-space: nowrap;
}

.auth-btn__icon {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 90, 70, 0.7);
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(255, 50, 30, 0.6), inset 0 0 4px rgba(255, 50, 30, 0.4);
}

.auth-btn__icon svg {
  width: 13px;
  height: 13px;
}

.auth-btn__dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px #ff4a30;
}

.auth-btn__email {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-bar a,
.account-bar button {
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.account-bar a:hover,
.account-bar button:hover {
  color: #ffb3a8;
  text-shadow: 0 0 10px rgba(255, 90, 70, 1);
}

/* Dil secici: TR seciliyken "TR", EN/FR/ES'ten biri seciliyken "only EU"
   yazan bir tetikleyici dugme + acilan panelde 4 gercek dil secenegi -
   rank-trigger/rank-panel ile ayni gorsel dil (kirmizi kenarlik/parlama),
   ama script.js'in panel kayit defterinden bagimsiz (bkz. i18n.js: auth
   sayfalarinda script.js hic yuklenmiyor). */
.lang-switcher-wrap {
  position: relative;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  background: linear-gradient(180deg, #1a1d24, #0f1116);
  border: 2px solid #ff3b2a;
  color: #fff;
  padding: 0 10px 0 12px;
  border-radius: 9px;
  font: 700 0.75rem/1 "Rajdhani", "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 0 6px 1px rgba(255, 40, 20, 0.8), 0 0 16px 3px rgba(255, 20, 0, 0.4),
    inset 0 0 6px rgba(255, 40, 20, 0.25);
}

.lang-trigger:focus {
  outline: none;
}

.lang-trigger-sep {
  width: 1.5px;
  height: 16px;
  flex: none;
  background: rgba(255, 90, 70, 0.5);
}

.lang-chev {
  width: 12px;
  height: 12px;
  flex: none;
  transition: transform 0.2s ease;
}

.lang-trigger[aria-expanded="true"] .lang-chev {
  transform: rotate(180deg);
}

.lang-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  background: #140a0c;
  border: 1.5px solid #ff3b2a;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 0 12px rgba(255, 40, 20, 0.55), 0 12px 24px rgba(0, 0, 0, 0.6);
  z-index: 30;
}

.lang-option {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: #dfe4ea;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font: 600 0.8rem/1 "Rajdhani", "Segoe UI", system-ui, sans-serif;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255, 50, 30, 0.18);
  color: #fff;
}

.lang-option.active {
  color: #fff;
  font-weight: 700;
  background: rgba(255, 50, 30, 0.12);
}

/* Iki durumlu (offline mode / stream) kaydirmali anahtar. */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.toggle-row + .toggle-row {
  border-top: 1px solid var(--border);
}

.toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch .toggle-track {
  position: absolute;
  inset: 0;
  background: #0d0e12;
  border: 2px solid rgba(255, 70, 60, 0.45);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.toggle-switch .toggle-track::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: linear-gradient(180deg, #e3e7ec, #aeb6c0);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.toggle-switch input:checked + .toggle-track {
  border-color: #ff4a30;
  background: linear-gradient(90deg, #7a0a08, #e0261a);
  box-shadow: 0 0 12px rgba(255, 50, 30, 0.8), inset 0 0 6px rgba(255, 120, 90, 0.4);
}

.toggle-switch input:checked + .toggle-track::before {
  transform: translateX(20px);
  background: #fff;
}

/* Offline Mode / Stream'den biri acikken gorunen hatirlatma - bkz. script.js
   wireToggleNote(). */
.toggle-note {
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}
