/* ==========================================================================
   AURORA 2.0 — Paylaşılan Bileşen Katmanı (Faz 26)
   --------------------------------------------------------------------------
   tokens.css + style.css'ten SONRA yüklenir. Yeni sınıflar + global
   :focus-visible halkası ekler; mevcut .btn/.card/.form-control'ü EZMEZ
   (yalnız eksik durumları tamamlar). Admin SPA + müşteri portalı + public
   sayfalar TEK bileşen dili paylaşır.
   ========================================================================== */

/* ---- Global odak halkası (a11y / WCAG 2.1) — yalnız klavye (:focus-visible) ---- */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.btn:focus-visible,
.form-control:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus-halo);
}
/* Fare/dokunuşta halka çıkmasın (focus-visible'a güven) */
:focus:not(:focus-visible) { outline: none; }

/* ---- Buton: eksik durumlar (disabled / loading / outline / ghost) ---- */
.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: var(--disabled-opacity);
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
  box-shadow: var(--elev-1);
}
.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}
.btn.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.2em;
  height: 1.2em;
  border: 2.5px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wch-spin .7s linear infinite;
}
@keyframes wch-spin { to { transform: rotate(360deg); } }

.btn-outline {
  background: transparent;
  color: var(--primary-700);
  border: 1.5px solid var(--border-2);
  box-shadow: none;
}
body:not(.light-theme) .btn-outline { color: var(--primary-300); }
.btn-outline:hover { background: rgba(var(--primary-rgb), .10); border-color: var(--primary); filter: none; }
.btn-ghost { background: transparent; color: var(--text-1); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); filter: none; }
/* Uyarı (amber) dolu buton — amber açık olduğu için koyu metin (AA); .btn yapısını miras alır */
.btn-warning { background: var(--warning); color: #1c1300; border: 1px solid transparent; }
.btn-warning:hover { filter: brightness(.96); }

/* ---- Form doğrulama durumları ---- */
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px var(--danger-bg); }
.form-control.is-valid { border-color: var(--success); }
.form-error {
  color: var(--danger-fg);
  font-size: var(--text-sm);
  display: flex; align-items: center; gap: .4rem;
  margin-top: .35rem;
}
.form-hint { color: var(--text-2); font-size: var(--text-sm); margin-top: .35rem; }

/* ---- Durum çipi (renk + ikon + etiket; asla yalnız renk) ---- */
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: var(--weight-semibold); line-height: 1;
}
.chip-success { background: var(--success-bg); color: var(--success-fg); border: 1px solid var(--success-border); }
.chip-warning { background: var(--warning-bg); color: var(--warning-fg); border: 1px solid var(--warning-border); }
.chip-danger  { background: var(--danger-bg);  color: var(--danger-fg);  border: 1px solid var(--danger-border); }
.chip-info    { background: var(--info-bg);    color: var(--info-fg);    border: 1px solid var(--info-border); }
.chip-neutral { background: var(--surface-2);  color: var(--text-2);     border: 1px solid var(--border-1); }

/* ---- Skeleton yükleyici (shimmer; reduced-motion'da durur) ---- */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-sm); }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .10), transparent);
  animation: wch-shimmer 1.5s infinite;
}
body.light-theme .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent); }
@keyframes wch-shimmer { 100% { transform: translateX(100%); } }
.skeleton-title { height: 1.2em; width: 55%; border-radius: var(--radius-xs); }
.skeleton-line  { height: .8em; border-radius: var(--radius-xs); margin: .45em 0; }
.skeleton-line.short { width: 40%; }
.skeleton-avatar { width: 44px; height: 44px; border-radius: 50%; }
.skeleton-card { height: 96px; border-radius: var(--radius-md); }

/* ---- Boş durum (illüstrasyon + tek satır + tek CTA) ---- */
.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--space-3); padding: var(--space-9) var(--space-5); color: var(--text-2);
}
.empty-state .empty-art {
  width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%;
  background: var(--aurora-soft); color: var(--primary); font-size: 2.3rem;
}
.empty-state h3 { color: var(--text-1); margin: 0; font-weight: var(--weight-bold); }
.empty-state p { margin: 0; max-width: 34ch; }

/* ---- Mobil alt navigasyon (cam; yalnız chrome'da glass) ---- */
.bottom-nav {
  position: sticky; bottom: 0; z-index: var(--z-nav);
  display: flex; justify-content: space-around; gap: .25rem;
  padding: .4rem .5rem calc(.4rem + var(--safe-bottom));
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-top: 1px solid var(--glass-border);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; min-height: 48px; padding: .35rem; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: .7rem; font-weight: var(--weight-semibold);
  text-decoration: none; transition: color var(--dur-fast) var(--ease-standard);
}
.bottom-nav a i { font-size: 1.25rem; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a:active { transform: scale(.94); }

/* ---- Yardımcılar ---- */
.aurora-mesh-bg { background: var(--aurora-mesh), var(--background); }
.pressable { transition: transform var(--dur-press) var(--ease-standard); }
.pressable:active { transform: scale(.97); }
.elev-card { box-shadow: var(--elev-card); }

/* Faz 30 (Brief v2): glass YALNIZ chrome'da + okunabilirlik kontratı (Liquid Glass dersi) */
.glass-chrome {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: color-mix(in srgb, #fff 18%, transparent);
}
@media (prefers-reduced-transparency: reduce) {
  .glass-chrome { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Hero CTA "breathe" (çok hafif) + skeleton→içerik morph */
.breathe { animation: wch-breathe 3s var(--ease-standard) infinite; }
@keyframes wch-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.015); } }
.fade-in { animation: wch-fade-in var(--motion-base) var(--ease-emphasized-decel) both; }
@keyframes wch-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   AURORA 2.0 — Operatör/Admin desen katmanı (Faz 35)
   --------------------------------------------------------------------------
   Admin SPA sayfaları (dashboard, order-board, raporlar…) tek görsel dil
   konuşsun diye paylaşılan KPI/bölüm/metre/sıralama/hızlı-aksiyon bileşenleri.
   Hepsi token tabanlı (sabit hex yok) → white-label --primary'ye uyar.
   ========================================================================== */

/* ---- Karşılama hero (sayfa başlığı + selam) — yumuşak aurora dokusu ---- */
.admin-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap;
  padding: var(--space-6);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--aurora-soft), var(--surface-1);
  box-shadow: var(--elev-card);
  margin-bottom: var(--space-6);
}
.admin-hero::after { /* köşe parıltısı */
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), .14), transparent 70%);
  pointer-events: none;
}
.admin-hero__text { position: relative; z-index: 1; min-width: 0; }
.admin-hero__text h2 { margin: 0; font-size: var(--text-2xl); font-weight: var(--weight-extra); line-height: var(--leading-tight); color: var(--text-1); }
.admin-hero__text p { margin: .25rem 0 0; color: var(--text-2); font-size: var(--text-base); }
.admin-hero__aside { position: relative; z-index: 1; display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---- KPI / istatistik kartları ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--gap); }
.stat-card {
  --stat-accent: var(--primary);
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.stat-card::before { /* sol aksan şeridi */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--stat-accent);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--elev-3); }
.stat-card__icon {
  flex: none; width: 52px; height: 52px; border-radius: var(--radius-md);
  display: grid; place-items: center; font-size: 1.4rem;
  color: var(--stat-accent);
  background: color-mix(in srgb, var(--stat-accent) 14%, transparent);
}
.stat-card__body { min-width: 0; }
.stat-card__label { font-size: var(--text-sm); color: var(--text-2); font-weight: var(--weight-semibold); }
.stat-card__value { font-size: var(--text-2xl); font-weight: var(--weight-extra); line-height: var(--leading-tight); color: var(--text-1); }
.stat-card__delta { font-size: var(--text-xs); font-weight: var(--weight-semibold); display: inline-flex; align-items: center; gap: .25rem; }
.stat-card__delta.up { color: var(--success-fg); }
.stat-card__delta.down { color: var(--danger-fg); }

/* ---- Bölüm kartı (başlık + ikon + aksiyon) ---- */
.section-card {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card);
  padding: var(--space-5);
}
.section-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); margin-bottom: var(--space-5);
}
.section-card__title {
  display: flex; align-items: center; gap: .5rem;
  font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--text-1); margin: 0;
}
.section-card__title i { color: var(--primary); }

/* ---- Metre / ilerleme çubuğu (ödeme dağılımı vb.) ---- */
.meter { height: 8px; background: var(--surface-3); border-radius: var(--radius-full); overflow: hidden; }
.meter__fill { height: 100%; border-radius: var(--radius-full); background: var(--primary); transition: width var(--dur-slow) var(--ease-out); }

/* ---- Sıralama satırı (personel lider tablosu vb.) ---- */
.rank-row {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
}
.rank-row__num { flex: none; width: 28px; text-align: center; font-weight: var(--weight-extra); font-size: var(--text-lg); color: var(--text-2); }
.rank-row__num.is-top { color: var(--warning); }
.rank-row__name { flex: 1; font-weight: var(--weight-semibold); color: var(--text-1); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Hızlı aksiyon karoları (personel paneli) ---- */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.quick-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; min-height: 92px; padding: var(--space-5);
  border-radius: var(--radius-lg); border: 1px solid transparent;
  font-weight: var(--weight-bold); font-size: var(--text-base); text-decoration: none;
  text-align: center; transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.quick-tile i { font-size: 1.6rem; }
.quick-tile:active { transform: scale(.97); }
.quick-tile--primary { background: var(--aurora-gradient); color: #fff; box-shadow: var(--aurora-glow); }
.quick-tile--ghost { background: var(--surface-1); color: var(--text-1); border-color: var(--border-1); box-shadow: var(--elev-card); }
.quick-tile--ghost i { color: var(--primary); }

/* ---- Liste satırı (aktif araçlar vb.) ---- */
.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.list-row:hover { border-color: var(--border-2); box-shadow: var(--elev-2); }
.list-row__main { min-width: 0; }
.list-row__meta { font-size: var(--text-sm); color: var(--text-2); font-weight: var(--weight-semibold); }
.list-row__aside { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex: none; }

/* ---- Kanban (iş takip panosu) — sütun + kart kabukları ---- */
.kanban-wrapper { display: flex; gap: var(--space-5); overflow-x: auto; padding-bottom: var(--space-4); min-height: 60vh; }
.kanban-column {
  --col-accent: var(--primary);
  flex: 1; min-width: 280px; max-width: 360px;
  display: flex; flex-direction: column; gap: var(--space-4);
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-top: 3px solid var(--col-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card);
  padding: var(--space-4);
}
.kanban-col-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.kanban-col-head h4 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--text-1); }
.kanban-col-head h4 i { color: var(--col-accent); }
.kanban-column .column-cards { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; overflow-y: auto; min-height: 40px; }
.order-kanban-card {
  padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-left: 4px solid var(--col-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-card);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.order-kanban-card:hover { box-shadow: var(--elev-2); transform: translateY(-1px); }

/* ==========================================================================
   Faz 35 — ek paylaşılan bileşenler
   --------------------------------------------------------------------------
   Diğer ajanların önerdiği bileşenler; yakın-mükerrerler TEK iyi-isimli
   sınıfta birleştirildi (örn. 6x .toolbar, 7x veri-tablosu, .pick-card/.pick-tile,
   .aurora-tabs/.segmented). Tümü token tabanlı — sabit hex YOK (yalnız
   gradyan üstü #fff metin) → white-label --primary'ye ve light/dark'a uyar.
   ========================================================================== */

/* ---- B2B/kurumsal mor semantik alias (literal #8b5cf6 yerine; --aurora-2'ye bağlı) ---- */
:root {
  --b2b: var(--aurora-2);
  --b2b-bg: color-mix(in srgb, var(--aurora-2) 14%, transparent);
  --b2b-fg: var(--aurora-2);
  --b2b-border: color-mix(in srgb, var(--aurora-2) 30%, transparent);
}
body.light-theme { --b2b-fg: color-mix(in srgb, var(--aurora-2) 78%, #000); }

/* ---- Araç çubuğu (liste sayfası: arama + filtre + aksiyon şeridi) ----
   6 ayrı .toolbar önerisi tek esnek kabukta birleşti. Alt parçalar isteğe bağlı. */
.toolbar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card);
  margin-bottom: var(--space-6);
}
.toolbar__search { flex: 1 1 240px; min-width: 0; }
.toolbar__group,
.toolbar__filters { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; min-width: 0; }
.toolbar__actions { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.toolbar__spacer { flex: 1 1 auto; }
.toolbar__label { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-2); align-self: center; margin-right: var(--space-1); }
.toolbar__count { font-size: var(--text-sm); color: var(--text-2); font-weight: var(--weight-semibold); }
.toolbar__field { display: flex; flex-direction: column; gap: var(--space-1); flex: 1 1 180px; min-width: 150px; margin: 0; }
.toolbar__field > label { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-2); }
@media (max-width: 480px) {
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__field { flex: 1 1 auto; }
}

/* ---- Sayaç rozeti (filtre/sekme sayısı) — marka-tonlu dairesel ---- */
.count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.5rem; height: 1.5rem; padding: 0 var(--space-2);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary-700);
  font-size: var(--text-xs); font-weight: var(--weight-bold); line-height: 1;
}
body:not(.light-theme) .count-badge { color: var(--primary-300); }

/* ---- Veri tablosu (operatör listeleri) — 7 öneri tek Aurora tablo dilinde ----
   .responsive-table mobil kart-yığma; bu masaüstü sticky başlık/zebra/hover/sayısal hizalama. */
.data-table__wrap {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card);
  overflow: hidden;
}
.data-table__wrap--scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.data-table thead th {
  position: sticky; top: 0; z-index: var(--z-raised);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-2);
  background: var(--surface-3);
  border-bottom: 1px solid var(--border-1);
  white-space: nowrap;
}
.data-table tbody td {
  padding: var(--space-4);
  color: var(--text-1);
  border-bottom: 1px solid var(--border-1);
  vertical-align: middle;
}
.data-table tbody tr { transition: background var(--dur-fast) var(--ease-out); }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .num--pos { color: var(--success-fg); font-weight: var(--weight-bold); }
.data-table .center { text-align: center; }
.data-table .muted { color: var(--text-2); font-weight: var(--weight-semibold); }
.data-table .actions { text-align: right; white-space: nowrap; }

/* ---- Segment / sekme şeridi (aria-selected'a saygılı) — .aurora-tabs + .segmented birleşik ---- */
.aurora-tabs {
  display: flex; flex-wrap: wrap; gap: var(--space-1);
  padding: var(--space-1);
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
}
.aurora-tab {
  flex: 1; min-width: max-content;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: var(--space-2) var(--space-4);
  border: 0; background: transparent;
  color: var(--text-2); font-size: var(--text-sm); font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.aurora-tab i { font-size: 1em; }
.aurora-tab:hover { color: var(--text-1); background: var(--surface-1); }
.aurora-tab.is-active,
.aurora-tab[aria-selected="true"] { background: var(--surface-1); color: var(--primary); box-shadow: var(--elev-1); }
.aurora-tab:active { transform: scale(.97); }

/* ---- Seçilebilir radyo-kart (JS'siz, :has ile) ---- */
.option-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-4);
  border: 1.5px solid var(--border-1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.option-card:hover { border-color: var(--border-2); }
.option-card:has(input:checked) { border-color: var(--primary); background: rgba(var(--primary-rgb), .04); }
.option-card:has(input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.option-card__title { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-semibold); color: var(--text-1); }
.option-card__desc { padding-left: 1.85rem; font-size: var(--text-sm); color: var(--text-2); }

/* ---- Bilgi/uyarı kutusu (blok-seviye, semantik tonlar) ---- */
.info-callout {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm); line-height: var(--leading-normal);
  border: 1px solid var(--info-border); background: var(--info-bg); color: var(--text-1);
}
.info-callout > i { color: var(--info-fg); margin-top: .15rem; flex: none; }
.info-callout--success { border-color: var(--success-border); background: var(--success-bg); }
.info-callout--success > i { color: var(--success-fg); }
.info-callout--warning { border-color: var(--warning-border); background: var(--warning-bg); }
.info-callout--warning > i { color: var(--warning-fg); }

/* ---- Uyarı (blok-seviye geri bildirim; çip tek-satır, bu çok-satır) ---- */
.alert {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  border: 1px solid transparent; margin-bottom: var(--space-5);
}
.alert i { flex: none; font-size: 1.1em; }
.alert-danger  { background: var(--danger-bg);  color: var(--danger-fg);  border-color: var(--danger-border); }
.alert-success { background: var(--success-bg); color: var(--success-fg); border-color: var(--success-border); }
.alert-info    { background: var(--info-bg);    color: var(--info-fg);    border-color: var(--info-border); }
.alert-warning { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-border); }

/* ---- Anlamsal fiyat etiketi (durum rozetinden ayrı, marka-tonlu nötr) ---- */
.price-tag {
  display: inline-flex; align-items: baseline; gap: .15rem;
  padding: .25rem .6rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary-700);
  font-weight: var(--weight-extra); font-size: var(--text-base); line-height: 1;
}
body:not(.light-theme) .price-tag { color: var(--primary-300); }
.price-tag__cur { font-size: var(--text-sm); font-weight: var(--weight-semibold); opacity: .8; }

/* ---- Varlık/kişi kartı (avatar + ad + durum + etiketler + aksiyon) ---- */
.person-card {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-top: 4px solid var(--card-accent, var(--primary));
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.person-card:hover { transform: translateY(-2px); box-shadow: var(--elev-3); }
.person-card.is-inactive { --card-accent: var(--text-3); background: var(--surface-2); opacity: .85; }
.person-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.person-card__id { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.person-card__avatar {
  flex: none; width: 48px; height: 48px; border-radius: var(--radius-full);
  display: grid; place-items: center;
  font-size: var(--text-lg); font-weight: var(--weight-bold);
  color: var(--primary);
  background: color-mix(in srgb, rgb(var(--primary-rgb)) 12%, transparent);
  border: 1px solid var(--border-1);
}
.person-card__name { margin: 0; font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-card__meta { font-size: var(--text-sm); color: var(--text-2); font-weight: var(--weight-semibold); }
.person-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.person-card__actions { display: flex; flex-direction: column; gap: var(--space-2); border-top: 1px solid var(--border-1); padding-top: var(--space-3); }

/* ---- Promosyon/kampanya kartı (indirim vurgusu + ne-zaman + aksiyon) ---- */
.campaign-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.campaign-card:hover { transform: translateY(-2px); box-shadow: var(--elev-3); }
.campaign-card.is-inactive { opacity: var(--disabled-opacity); }
.campaign-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); }
.campaign-card__name { margin: 0; font-size: var(--text-lg); font-weight: var(--weight-extra); color: var(--text-1); min-width: 0; }
.campaign-card__value { font-size: var(--text-2xl); font-weight: var(--weight-extra); color: var(--primary); line-height: var(--leading-tight); }
.campaign-card__value small { font-size: var(--text-sm); color: var(--text-2); font-weight: var(--weight-semibold); }
.campaign-card__when { font-size: var(--text-sm); color: var(--text-2); font-weight: var(--weight-semibold); display: flex; align-items: center; gap: .4rem; }
.campaign-card__actions { display: flex; gap: var(--space-2); border-top: 1px solid var(--border-1); padding-top: var(--space-3); margin-top: auto; }

/* ---- SaaS tenant kartı (üst-aksan + başlık + 2x2 metrik + aksiyon) ---- */
.tenant-card {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-top: 4px solid var(--tenant-accent, var(--border-1));
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.tenant-card.is-system { --tenant-accent: var(--primary); }
.tenant-card:hover { transform: translateY(-2px); box-shadow: var(--elev-3); }
.tenant-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); }
.tenant-card__name { margin: 0; font-size: var(--text-lg); font-weight: var(--weight-extra); line-height: var(--leading-tight); color: var(--text-1); }
.tenant-card__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border-1); }
.tenant-card__metric-label { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-2); text-transform: uppercase; }
.tenant-card__metric-value { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--text-1); }
.tenant-card__actions { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--border-1); }

/* ---- Kopyalanabilir portal/kaynak URL şeridi (sabit hex gradient yerine token) ---- */
.tenant-url {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--aurora-soft), var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.tenant-url__icon { color: var(--primary); flex: none; }
.tenant-url__link { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--primary-700); font-weight: var(--weight-bold); text-decoration: none; }
body:not(.light-theme) .tenant-url__link { color: var(--primary-300); }

/* ---- Seçilebilir karo (hizmet/ürün/kişi) — .pick-card + .pick-tile birleşik ---- */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-2); }
.pick-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
  padding: var(--space-3);
  background: var(--surface-1);
  border: 1.5px solid var(--border-1);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-1);
  cursor: pointer; text-align: center; font-family: inherit;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.pick-tile:hover { border-color: var(--border-2); }
.pick-tile:active { transform: scale(.97); }
.pick-tile.is-selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--surface-1)); box-shadow: var(--elev-2); }
.pick-tile__avatar {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  display: grid; place-items: center;
  font-weight: var(--weight-extra); font-size: var(--text-base);
  color: #fff; background: var(--aurora-gradient);
}
.pick-tile__icon { font-size: 1.2rem; }
.pick-tile__name { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-1); line-height: var(--leading-tight); }
.pick-tile__meta { font-size: var(--text-xs); color: var(--text-2); }
.pick-tile__price { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--primary); }
.pick-tile__price.is-variable { color: var(--warning); }
.pick-tile__qty {
  position: absolute; top: var(--space-1); right: var(--space-1);
  background: var(--primary); color: #fff;
  border-radius: var(--radius-full); padding: 1px 8px;
  font-size: var(--text-xs); font-weight: var(--weight-bold);
}

/* ---- Sepet/özet kutusu (çok-kalemli sipariş/ödeme özeti) ---- */
.cart-summary {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.cart-summary__head { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-1); margin-bottom: var(--space-2); }
.cart-summary__head i { color: var(--primary); }
.cart-summary__items { max-height: 110px; overflow-y: auto; display: flex; flex-direction: column; }
.cart-summary__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) 0; font-size: var(--text-sm); }
.cart-summary__total { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--border-1); margin-top: var(--space-2); padding-top: var(--space-2); font-weight: var(--weight-extra); font-size: var(--text-base); }
.cart-summary__total b { color: var(--primary); }

/* ---- TV-mod büyük-ekran kart (kiosk/durum) ---- */
.tv-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); align-content: start; overflow-y: auto; }
.tv-card {
  padding: var(--space-7) var(--space-6); text-align: center;
  background: var(--surface-1);
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card), 0 0 40px -8px color-mix(in srgb, var(--success) 45%, transparent);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.tv-card__branch { font-size: var(--text-sm); color: var(--text-2); text-transform: uppercase; letter-spacing: 2px; font-weight: var(--weight-semibold); }
.tv-card__plate { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3rem); font-weight: var(--weight-extra); letter-spacing: 3px; margin: var(--space-2) 0; color: var(--text-1); font-variant-numeric: tabular-nums; }
.tv-card__cust { font-size: var(--text-lg); color: var(--text-2); }
.tv-card__svc { margin-top: var(--space-3); font-size: var(--text-base); color: var(--primary); font-weight: var(--weight-semibold); }

/* ---- Dikkat-çek animasyonu (yeni-gelen öğe; reduced-motion'da kapanır) ---- */
@keyframes wch-attention { 0%,100% { transform: scale(1); } 30% { transform: scale(1.035); } 60% { transform: scale(.99); } }
.attention-pulse {
  animation: wch-attention var(--dur-slower) var(--ease-spring) 2;
  box-shadow: var(--elev-card), 0 0 0 4px color-mix(in srgb, var(--success) 40%, transparent);
}

/* ---- Hareket azaltma: tüm animasyon/geçiş ~anında (global güvence) ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
