/* =============================================================
   Best Randevu — components
   Sınıf adları İngilizce, BEM benzeri. Renkler yalnızca tokens.css'ten.
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-ink);
  font: 400 var(--fs-md)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--c-brand-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography helpers ---------- */
.t-display { font-stretch: var(--wdth-display); font-weight: 800; line-height: .95; letter-spacing: -.005em; word-spacing: .1em; }
.t-title   { font-stretch: var(--wdth-title); font-weight: 750; line-height: 1.1; }
.t-num     { font-variant-numeric: tabular-nums; }
.t-muted   { color: var(--c-muted); }
.t-label   { font-size: var(--fs-sm); font-weight: 650; color: var(--c-muted); }

/* ---------- Icon ---------- */
.ico { width: 18px; height: 18px; flex: none; }
.ico--sm { width: 14px; height: 14px; }
.ico--lg { width: 22px; height: 22px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--c-ink); text-decoration: none; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__word { font-stretch: 62%; font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -.005em; word-spacing: .12em; white-space: nowrap; }
.logo__word b { font-weight: 800; color: var(--c-brand); }
.logo--lg .logo__mark { width: clamp(40px, 9vw, 56px); height: clamp(40px, 9vw, 56px); }
.logo--lg .logo__word { font-size: clamp(34px, 8vw, 46px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--tap); padding: 0 18px;
  border: 0; border-radius: var(--r-md);
  font-weight: 700; font-size: var(--fs-md); line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn--primary { background: var(--c-brand); color: var(--c-on-brand); }
.btn--primary:hover { background: var(--c-brand-hover); }
.btn--primary:active { background: var(--c-brand-press); }
.btn--secondary { background: var(--c-stone); color: var(--c-ink); }
.btn--secondary:hover { background: var(--c-stone-2); }
.btn--ghost { background: transparent; color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-stone); }
.btn--outline { background: var(--c-base); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.btn--danger { background: transparent; color: var(--c-err); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--danger:hover { background: var(--c-err-soft); }
.btn--sm { height: 36px; padding: 0 12px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn--lg { height: 52px; padding: 0 24px; font-size: var(--fs-lg); border-radius: var(--r-lg); }
.btn--block { width: 100%; }
.btn--icon { width: var(--tap); padding: 0; }
.btn--icon.btn--sm { width: 36px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--c-on-brand); border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.btn--secondary.is-loading::after, .btn--outline.is-loading::after { border-color: var(--c-ink); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { border: 0; background: none; padding: 0; color: var(--c-brand-ink); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Form ---------- */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field__label { font-size: var(--fs-sm); font-weight: 700; }
.field__label small { font-weight: 500; color: var(--c-muted); }
.field__hint { font-size: var(--fs-xs); color: var(--c-muted); }
.field__error { font-size: var(--fs-xs); color: var(--c-err); font-weight: 600; display: none; align-items: center; gap: 4px; }
.field.is-invalid .field__error { display: flex; }
.field.is-invalid .input, .field.is-invalid .input-group { box-shadow: inset 0 0 0 1.5px var(--c-err); background: var(--c-base); }
.field.is-invalid .input-group .input { box-shadow: none; background: transparent; }

.input {
  width: 100%; height: var(--tap); padding: 0 14px;
  border: 0; border-radius: var(--r-md);
  background: var(--c-stone); color: var(--c-ink);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.input::placeholder { color: var(--c-muted); opacity: 1; }
.input:hover { background: var(--c-stone-2); }
.input:focus { outline: none; background: var(--c-base); box-shadow: inset 0 0 0 2px var(--c-brand); }
.input:disabled { opacity: .55; cursor: not-allowed; }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }

.input-group { display: flex; align-items: center; border-radius: var(--r-md); background: var(--c-stone); }
.input-group:focus-within { background: var(--c-base); box-shadow: inset 0 0 0 2px var(--c-brand); }
.input-group .input { background: transparent; box-shadow: none; }
.input-group__addon { padding: 0 4px 0 14px; color: var(--c-muted); font-weight: 650; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.input-group__addon .ico { width: 18px; height: 18px; }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--c-muted); border-bottom: 2px solid var(--c-muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.otp { display: flex; gap: 8px; }
.otp input {
  width: 48px; height: 56px; border: 0; border-radius: var(--r-md);
  background: var(--c-stone); text-align: center;
  font-stretch: 70%; font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1.5px transparent;
}
.otp input:focus { outline: none; background: var(--c-base); box-shadow: inset 0 0 0 2px var(--c-brand); }
.otp input.is-filled { background: var(--c-base); box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }

.check, .radio { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--fs-md); line-height: 1.4; }
.check input, .radio input {
  appearance: none; -webkit-appearance: none; margin: 1px 0 0; flex: none;
  width: 20px; height: 20px; background: var(--c-base);
  box-shadow: inset 0 0 0 1.5px var(--c-line-strong); cursor: pointer;
  display: grid; place-items: center;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.check input { border-radius: 6px; }
.radio input { border-radius: 50%; }
.check input:checked { background: var(--c-brand); box-shadow: none; }
.check input:checked::after {
  content: ""; width: 10px; height: 5px; margin-top: -2px;
  border-left: 2.5px solid var(--c-on-brand); border-bottom: 2.5px solid var(--c-on-brand); transform: rotate(-45deg);
}
.radio input:checked { box-shadow: inset 0 0 0 6px var(--c-brand); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 44px; height: 26px; border-radius: 999px; background: var(--c-line-strong);
  position: relative; cursor: pointer; transition: background-color var(--dur) var(--ease);
}
.switch input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: var(--sh-1); transition: transform var(--dur) var(--ease);
}
.switch input:checked { background: var(--c-brand); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- Segmented control & tabs ---------- */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-md); background: var(--c-stone); }
.seg__btn {
  border: 0; background: none; height: 32px; padding: 0 13px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 700; color: var(--c-muted); cursor: pointer;
}
.seg__btn:hover { color: var(--c-ink); }
.seg__btn.is-on, .seg__btn[aria-pressed="true"] { background: var(--c-base); color: var(--c-ink); box-shadow: var(--sh-1); }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--c-line); overflow-x: auto; scrollbar-width: none; }
.tab {
  border: 0; background: none; padding: 12px 0 11px; cursor: pointer; white-space: nowrap;
  font-weight: 700; font-size: var(--fs-md); color: var(--c-muted); box-shadow: inset 0 -2px 0 transparent;
}
.tab:hover { color: var(--c-ink); }
.tab[aria-selected="true"] { color: var(--c-ink); box-shadow: inset 0 -3px 0 var(--c-brand); }
.tab__count { font-size: var(--fs-xs); font-weight: 700; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--c-stone); color: var(--c-ink-2); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 0; border-radius: var(--r-pill); background: var(--c-stone); color: var(--c-ink);
  font-size: var(--fs-sm); font-weight: 650; cursor: pointer; white-space: nowrap;
}
.chip:hover { background: var(--c-stone-2); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--c-ink); color: var(--c-base); }
.chip__n { font-variant-numeric: tabular-nums; opacity: .7; }

/* ---------- Status badges (liste, tablo, detay) ----------
   Takvim kartında durum doluluk ve desenle; burada renk + ikon + metinle. */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px;
  border-radius: var(--r-xs); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap;
}
.badge .ico { width: 13px; height: 13px; }
.badge--pending   { background: var(--c-warn-soft); color: var(--c-warn); box-shadow: inset 0 0 0 1.5px var(--c-warn-line); }
.badge--confirmed { background: var(--c-ok-soft); color: var(--c-ok); }
.badge--arrived   { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.badge--done      { background: var(--c-stone); color: var(--c-ink-2); }
.badge--noshow    { background: var(--c-err-soft); color: var(--c-err); }
.badge--cancelled { background: var(--c-stone); color: var(--c-muted); }
.badge--noshow span, .badge--cancelled span { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.badge--neutral   { background: var(--c-stone); color: var(--c-ink-2); }
.badge--brand     { background: var(--c-brand); color: var(--c-on-brand); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-brand); color: var(--c-on-brand); font-size: var(--fs-2xs); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Avatar ---------- */
.avatar {
  --av: 40px;
  width: var(--av); height: var(--av); flex: none; border-radius: 12px;
  display: grid; place-items: center; overflow: hidden;
  font-stretch: 70%; font-weight: 800; font-size: calc(var(--av) * .42); line-height: 1;
  background: var(--c-stone); color: var(--c-ink);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { --av: 28px; border-radius: 8px; }
.avatar--lg { --av: 56px; border-radius: 16px; }
.avatar--round { border-radius: 50%; }
.avatar.s1 { background: var(--s1); color: var(--s1-on); } .avatar.s2 { background: var(--s2); color: var(--s2-on); }
.avatar.s3 { background: var(--s3); color: var(--s3-on); } .avatar.s4 { background: var(--s4); color: var(--s4-on); }
.avatar.s5 { background: var(--s5); color: var(--s5-on); } .avatar.s6 { background: var(--s6); color: var(--s6-on); }
.avatar.s7 { background: var(--s7); color: var(--s7-on); } .avatar.s8 { background: var(--s8); color: var(--s8-on); }

/* ---------- Card ---------- */
.card { background: var(--c-base); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--c-line); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.card__title { font-stretch: var(--wdth-title); font-weight: 750; font-size: var(--fs-lg); }
.card__body { padding: 16px 18px 18px; }
.card--flat { box-shadow: none; background: var(--c-stone); }

.metric { display: grid; gap: 2px; }
.metric__label { font-size: var(--fs-sm); font-weight: 650; color: var(--c-muted); }
.metric__value { font-stretch: 62%; font-weight: 800; font-size: var(--fs-5xl); line-height: 1; font-variant-numeric: tabular-nums; }
.metric__delta { font-size: var(--fs-sm); font-weight: 650; color: var(--c-ok); }
.metric__delta.is-down { color: var(--c-err); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--c-line); background: var(--c-base); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.table th {
  text-align: left; font-size: var(--fs-xs); font-weight: 700; color: var(--c-muted);
  padding: 11px 14px; border-bottom: 1px solid var(--c-line-strong); white-space: nowrap; background: var(--c-base);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--c-page); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-person strong { display: block; font-weight: 650; }
.cell-person small { display: block; color: var(--c-muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.cell-time { font-stretch: 70%; font-weight: 750; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Calendar (panel) ----------
   Uzman rengi: .staff-1 … .staff-8 · Durum: .st-pending | confirmed | arrived | done | noshow */
.cal-ap {
  --fill: var(--s1); --on: var(--s1-on); --pale: var(--s1-pale);
  position: absolute; left: 4px; right: 4px;
  display: flex; flex-direction: column; gap: 1px;
  padding: 5px 9px; border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
  background: var(--fill); color: var(--on);
  font-size: var(--fs-sm); line-height: 1.28;
}
.cal-ap.staff-1 { --fill: var(--s1); --on: var(--s1-on); --pale: var(--s1-pale); }
.cal-ap.staff-2 { --fill: var(--s2); --on: var(--s2-on); --pale: var(--s2-pale); }
.cal-ap.staff-3 { --fill: var(--s3); --on: var(--s3-on); --pale: var(--s3-pale); }
.cal-ap.staff-4 { --fill: var(--s4); --on: var(--s4-on); --pale: var(--s4-pale); }
.cal-ap.staff-5 { --fill: var(--s5); --on: var(--s5-on); --pale: var(--s5-pale); }
.cal-ap.staff-6 { --fill: var(--s6); --on: var(--s6-on); --pale: var(--s6-pale); }
.cal-ap.staff-7 { --fill: var(--s7); --on: var(--s7-on); --pale: var(--s7-pale); }
.cal-ap.staff-8 { --fill: var(--s8); --on: var(--s8-on); --pale: var(--s8-pale); }
.cal-ap:hover { filter: brightness(1.06); }
.cal-ap__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cal-ap__time { font-stretch: 70%; font-weight: 750; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.cal-ap__name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ap__svc { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ap__st { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-2xs); font-weight: 700; white-space: nowrap; }
.cal-ap__st .ico { width: 13px; height: 13px; }
/* Onay bekleyen: beyaz zemin + kesik amber çerçeve (listedeki rozetle aynı dil).
   Uzman kimliği sütundan ve soldaki kartela şeridinden okunur. */
.cal-ap.st-pending {
  background: linear-gradient(90deg, var(--fill) 0 4px, var(--c-base) 4px);
  color: var(--c-ink); outline: 2px dashed var(--c-warn-line); outline-offset: -2px; padding-left: 12px;
}
.cal-ap.st-pending .cal-ap__st { color: var(--c-warn); }
.cal-ap.st-pending .cal-ap__svc { color: var(--c-muted); opacity: 1; }
.cal-ap.st-arrived { box-shadow: inset 0 0 0 2px var(--c-base), 0 0 0 2px var(--c-brand); }
.cal-ap.st-done { background: var(--pale); color: var(--c-ink-2); }
.cal-ap.st-done .cal-ap__name { color: var(--c-ink); }
.cal-ap.st-noshow { background: repeating-linear-gradient(45deg, rgba(120, 90, 80, .16) 0 2px, transparent 2px 8px), var(--pale); color: var(--c-ink-2); }
.cal-ap.st-noshow .cal-ap__name { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal-break {
  position: absolute; left: 4px; right: 4px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, var(--c-stone) 0 6px, var(--c-base) 6px 12px);
  box-shadow: inset 0 0 0 1px var(--c-line);
  font-stretch: 70%; font-weight: 750; font-size: var(--fs-lg); color: var(--c-muted);
}
.cal-empty {
  position: absolute; left: 4px; right: 4px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--c-brand-ink); font-weight: 700; font-size: var(--fs-sm);
  box-shadow: inset 0 0 0 1.5px var(--c-brand); background: var(--c-brand-soft);
}
.staff-tab { width: 12px; height: 34px; border-radius: 3px 3px 8px 8px; flex: none; background: var(--s1); }
.staff-tab.s1 { background: var(--s1); } .staff-tab.s2 { background: var(--s2); } .staff-tab.s3 { background: var(--s3); } .staff-tab.s4 { background: var(--s4); }
.staff-tab.s5 { background: var(--s5); } .staff-tab.s6 { background: var(--s6); } .staff-tab.s7 { background: var(--s7); } .staff-tab.s8 { background: var(--s8); }
.now-pill { display: inline-block; padding: 1px 6px; border-radius: 6px; background: var(--c-brand); color: var(--c-on-brand); font-weight: 700; font-size: var(--fs-2xs); font-variant-numeric: tabular-nums; }

/* ---------- Customer booking (müşteri sayfası, salon rengiyle) ---------- */
.dayb {
  flex: none; width: 54px; height: 76px; border: 0; border-radius: var(--r-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--c-stone); color: var(--c-ink); cursor: pointer;
}
.dayb__name { font-size: var(--fs-xs); font-weight: 650; color: var(--c-muted); }
.dayb__num { font-stretch: 62%; font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.dayb__sub { font-size: 10.5px; font-weight: 600; color: var(--c-muted); min-height: 13px; }
.dayb:hover { box-shadow: inset 0 0 0 2px var(--salon-accent); }
.dayb.is-sel, .dayb[aria-pressed="true"] { background: var(--salon-accent); color: var(--salon-on-accent); box-shadow: none; }
.dayb.is-sel .dayb__name, .dayb.is-sel .dayb__sub, .dayb[aria-pressed="true"] .dayb__name, .dayb[aria-pressed="true"] .dayb__sub { color: var(--salon-on-accent); opacity: .85; }
.dayb:disabled { background: var(--c-base); box-shadow: inset 0 0 0 1.5px var(--c-line); color: var(--c-faint); cursor: not-allowed; }
.dayb:disabled .dayb__name, .dayb:disabled .dayb__sub { color: var(--c-faint); }

.slot {
  height: 52px; border: 0; border-radius: 12px; background: var(--c-stone); color: var(--c-ink); cursor: pointer;
  font-stretch: 70%; font-weight: 750; font-size: 22px; font-variant-numeric: tabular-nums;
}
.slot:hover { box-shadow: inset 0 0 0 2px var(--salon-accent); }
.slot.is-sel, .slot[aria-pressed="true"] { background: var(--salon-accent); color: var(--salon-on-accent); box-shadow: none; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.stepbar { display: grid; gap: 6px; }
.stepbar__meta { display: flex; justify-content: space-between; font-size: var(--fs-sm); font-weight: 650; color: var(--c-muted); }
.stepbar__track { display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); gap: 4px; }
.stepbar__seg { height: 6px; border-radius: 3px; background: var(--c-stone); }
.stepbar__seg.is-on { background: var(--salon-accent); }

.svc-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.svc-row__name { font-weight: 700; }
.svc-row__meta { font-size: var(--fs-sm); color: var(--c-muted); }
.svc-row__price { font-stretch: 75%; font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; text-align: right; }

.cta-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--c-base); box-shadow: 0 -1px 0 var(--c-line); }
.cta-bar__sum strong { display: block; font-weight: 700; }
.cta-bar__sum span { font-stretch: 75%; font-weight: 700; font-size: var(--fs-lg); color: var(--c-muted); font-variant-numeric: tabular-nums; }
.btn--salon { background: var(--salon-accent); color: var(--salon-on-accent); }
.btn--salon:hover { filter: brightness(1.08); }
.salon-link { color: var(--salon-accent-ink); font-weight: 700; }
.powered { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--c-muted); font-weight: 600; }
.powered .logo__mark { width: 16px; height: 16px; }

/* ---------- Feedback ---------- */
.alert {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
  padding: 12px 14px; border-radius: var(--r-md); background: var(--c-stone); color: var(--c-ink);
}
.alert .ico { margin-top: 2px; }
.alert__title { font-weight: 700; }
.alert__text { font-size: var(--fs-sm); color: var(--c-ink-2); }
.alert--warn { background: var(--c-warn-soft); } .alert--warn > .ico { color: var(--c-warn); }
.alert--err  { background: var(--c-err-soft); }  .alert--err > .ico  { color: var(--c-err); }
.alert--ok   { background: var(--c-ok-soft); }   .alert--ok > .ico   { color: var(--c-ok); }
.alert--brand { background: var(--c-brand-soft); } .alert--brand > .ico { color: var(--c-brand-ink); }

.toast {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px;
  border-radius: var(--r-lg); background: var(--c-ink); color: var(--c-base); box-shadow: var(--sh-2);
  font-weight: 600; max-width: 100%;
}
.toast .ico { color: var(--c-base); }
.toast__action { border: 0; background: none; color: var(--c-base); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px; }

.dialog { width: min(440px, 100%); background: var(--c-base); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 22px; display: grid; gap: 14px; }
.dialog__title { font-stretch: var(--wdth-title); font-weight: 800; font-size: var(--fs-2xl); line-height: 1.1; word-spacing: .06em; }
.dialog__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.sheet { background: var(--c-base); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--sh-3); padding: 10px 18px 18px; display: grid; gap: 14px; }
.sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--c-line-strong); justify-self: center; }

.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 28px 16px; }
.empty__art { width: 88px; height: 88px; }
.empty__title { font-stretch: var(--wdth-title); font-weight: 800; font-size: var(--fs-xl); }
.empty__text { color: var(--c-muted); max-width: 36ch; }

.skeleton { border-radius: var(--r-sm); background: linear-gradient(90deg, var(--c-stone) 0 40%, var(--c-stone-2) 50%, var(--c-stone) 60% 100%) 0 0 / 300% 100%; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: shimmer 1.4s linear infinite; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Navigation ---------- */
.side-nav { display: grid; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: var(--r-md);
  color: var(--c-ink-2); text-decoration: none; font-weight: 650; font-size: var(--fs-md);
}
.nav-item:hover { background: var(--c-stone); color: var(--c-ink); }
.nav-item.is-active { background: var(--c-ink); color: var(--c-base); }
.nav-item .count { margin-left: auto; }

.tabbar { display: grid; grid-template-columns: repeat(var(--items, 5), 1fr); background: var(--c-base); box-shadow: 0 -1px 0 var(--c-line); padding: 6px 4px 4px; }
.tabbar__item {
  display: grid; justify-items: center; gap: 2px; border: 0; background: none; padding: 6px 0; cursor: pointer;
  font-size: var(--fs-2xs); font-weight: 700; color: var(--c-muted); position: relative; min-height: var(--tap);
}
.tabbar__item .ico { width: 24px; height: 24px; }
.tabbar__item.is-active { color: var(--c-brand-ink); }
.tabbar__item--fab .tabbar__fab { width: 48px; height: 48px; border-radius: 16px; background: var(--c-brand); color: var(--c-on-brand); display: grid; place-items: center; margin-top: -18px; box-shadow: var(--sh-2); }
.tabbar__dot { position: absolute; top: 4px; left: calc(50% + 6px); }

/* ---------- Device frames (prototip içi) ---------- */
.device-phone { width: min(390px, 100%); border-radius: 50px; padding: 10px; background: #16110F; box-shadow: var(--sh-3), inset 0 0 0 1.5px #3A302C; }
.device-phone__screen { position: relative; border-radius: 40px; overflow: hidden; background: var(--c-base); display: flex; flex-direction: column; }
.device-phone__status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 6px; font: 600 15px system-ui, -apple-system, sans-serif; color: var(--c-ink); }
.device-phone__home { height: 26px; display: grid; place-items: center; }
.device-phone__home::after { content: ""; width: 134px; height: 5px; border-radius: 3px; background: var(--c-ink); opacity: .85; }
