/* BizimTakip uygulama katmanı: yan menülü kabuk, giriş ekranları ve iş ekranları. base.css'ten sonra yüklenir. */

/* ---------------------------------------------------------------- kabuk */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px;
  background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; z-index: 30;
}
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 12px; }
.workspace {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); min-width: 0;
}
.workspace-avatar { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: .85rem; flex: none; }
.workspace-name { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-sub { font-size: .75rem; color: var(--muted); }
.nav-group { display: grid; gap: 2px; margin-bottom: 10px; }
.nav-label { padding: 10px 10px 4px; font-size: .7rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-weight: 550; font-size: .9rem;
  text-decoration: none; transition: background-color .12s, color .12s;
}
.nav-link .icon { color: var(--muted); }
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.nav-link[aria-current="page"] .icon { color: var(--accent-text); }
.nav-link .count { margin-left: auto; }
.nav-link .count.is-hot { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.sidebar-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 2px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-search {
  display: flex; align-items: center; gap: 10px; width: min(420px, 100%); height: 38px; padding: 0 12px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--faint); font: inherit; font-size: .9rem; cursor: pointer; text-align: left;
  box-shadow: var(--shadow-sm);
}
.topbar-search:hover { border-color: var(--faint); color: var(--muted); }
.topbar-search kbd { margin-left: auto; font-family: var(--font); font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: var(--surface-2); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent;
  color: var(--text-2); background: transparent; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.icon-btn .pip { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #fff; background: linear-gradient(135deg, #2BB0B8, #24607E); }
.menu > summary.avatar-btn { display: flex; align-items: center; gap: 6px; padding: 2px; border-radius: 99px; }
.menu > summary.avatar-btn:hover { background: var(--surface-2); }
.sidebar-toggle { display: none; }
.sidebar-backdrop { display: none; }

.content { width: 100%; max-width: 1180px; padding: 28px 28px 64px; margin: 0 auto; }
.content > .alert:first-child, .content > .notice:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- sayfa başlığı */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 1.55rem; }
.page-head p { margin: 4px 0 0; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.group-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 26px 0 10px; font-weight: 650; }

/* ---------------------------------------------------------------- istatistik kartları */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 4px 0 24px; }
.stat {
  display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; position: relative; overflow: hidden;
}
a.stat:hover { border-color: var(--line-strong); text-decoration: none; box-shadow: var(--shadow); }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); font-weight: 550; }
.stat-value { font-size: 1.8rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-sub { font-size: .8rem; color: var(--muted); }
.stat.is-late .stat-value { color: var(--danger-text); }
.stat.is-late::before, .stat.is-today::before, .stat.is-ok::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.stat.is-late::before { background: var(--danger); }
.stat.is-today .stat-value { color: var(--warning-text); }
.stat.is-today::before { background: var(--warning); }
.stat.is-ok::before { background: var(--accent); }

/* ---------------------------------------------------------------- vade listeleri (Bugün) */
.bucket { margin-top: 26px; }
.bucket-title { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin: 0 0 10px; font-weight: 650; }
.bucket-title .dot { width: 8px; height: 8px; }
.bucket-title.late { color: var(--danger-text); }
.bucket-title.late .dot { background: var(--danger); }
.bucket-title.today { color: var(--warning-text); }
.bucket-title.today .dot { background: var(--warning); }
.occ-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: visible; }
.occ { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); position: relative; }
.occ:last-child { border-bottom: 0; }
.occ:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.occ:first-child { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.occ:last-child { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }
.occ.late::before, .occ.today::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; }
.occ.late::before { background: var(--danger); }
.occ.today::before { background: var(--warning); }
.occ-main { display: grid; gap: 2px; min-width: 0; }
.occ-title { font-weight: 600; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
a.occ-title:hover { color: var(--accent-text); text-decoration: none; }
.occ-when { font-size: .82rem; color: var(--muted); }
.occ.late .occ-when { color: var(--danger-text); }
.occ-amount { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.occ-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.occ-actions form { margin: 0; }

details.skip { position: relative; }
details.skip > summary { list-style: none; cursor: pointer; }
details.skip > summary::-webkit-details-marker { display: none; }
.skip-form {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; display: flex; gap: 6px; align-items: center; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); flex-wrap: wrap; min-width: 280px;
}
.skip-form input[type=text] { min-width: 180px; flex: 1; min-height: 34px; padding: 6px 10px; }
.head-actions details.skip .skip-form { right: 0; }

/* ---------------------------------------------------------------- filtreler, sayfalama */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 14px; }
.filters input[type=search] { flex: 1; min-width: 220px; max-width: 420px; }
.filters select, .filters input { width: auto; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); font-size: .88rem; }

/* ---------------------------------------------------------------- kart ızgaraları */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 8px 0 20px; }
.type-card {
  display: grid; gap: 6px; align-content: start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.type-card:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-1px); }
.type-card strong { font-weight: 650; }
.type-card span { color: var(--muted); font-size: .88rem; }
form.type-card { gap: 10px; }

/* ---------------------------------------------------------------- detay, zaman çizelgesi */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin: 14px 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.facts > div { padding: 12px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.facts dd { margin: 3px 0 0; font-weight: 550; overflow-wrap: anywhere; }
.note { background: var(--surface-2); border: 1px solid var(--line); padding: 12px 14px; border-radius: var(--radius); white-space: pre-wrap; }
.timeline { list-style: none; padding: 0 0 0 18px; margin: 8px 0 20px; display: grid; gap: 10px; border-left: 2px solid var(--line); }
.timeline li { position: relative; font-size: .9rem; color: var(--text-2); }
.timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.checklist-items { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.inline-form { display: inline-flex; gap: 6px; margin: 0; }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* ---------------------------------------------------------------- boş durum */
.empty {
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: 48px 24px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg); background: var(--surface);
}
.empty h2 { margin: 6px 0 2px; }
.empty p { max-width: 460px; }
.empty-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }

/* ---------------------------------------------------------------- kişi seçici */
.picker { position: relative; }
.picker-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 260px; overflow-y: auto;
}
.picker-list li { padding: 8px 10px; border-radius: 7px; cursor: pointer; font-weight: 400; font-size: .9rem; }
.picker-list li.active { background: var(--accent-soft); color: var(--accent-text); }
.picker-list .picker-empty { color: var(--muted); cursor: default; }
.picker-list[hidden] { display: none; }

/* ---------------------------------------------------------------- takvim */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.cal-head { padding: 8px; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: center; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 96px; padding: 6px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-out { background: var(--surface-2); }
.cal-out .cal-num { color: var(--faint); }
.cal-today .cal-num { background: var(--accent); color: var(--on-accent); border-radius: 99px; width: 22px; height: 22px; display: grid; place-items: center; }
.cal-num { font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.cal-item { font-size: .74rem; line-height: 1.25; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.cal-item:hover { text-decoration: none; filter: brightness(.97); }
.cal-done { text-decoration: line-through; opacity: .55; }

/* ---------------------------------------------------------------- komut paleti */
.palette { border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 0; width: min(600px, 92vw); margin-top: 12vh; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
.palette::backdrop { background: rgba(10, 14, 25, .45); backdrop-filter: blur(2px); }
.palette-input { width: 100%; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; padding: 16px 18px !important; font-size: 1rem !important; background: transparent !important; }
.palette-list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.palette-group { padding: 8px 12px 4px; font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.palette-item { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.palette-item.active { background: var(--accent-soft); color: var(--accent-text); }

/* ---------------------------------------------------------------- pano (kanban) */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.board-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; }
.board-title { font-size: .85rem; margin: 2px 4px 10px; display: flex; justify-content: space-between; }
.board-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.board-move { display: flex; gap: 6px; margin-top: 8px; }
.board-move select { flex: 1; min-width: 0; min-height: 32px; padding-top: 4px; padding-bottom: 4px; }

/* ---------------------------------------------------------------- belge onayı ve ödeme */
.review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.review-doc { position: sticky; top: 76px; }
.review-img, .review-frame { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.review-frame { height: 80vh; }
.pay-frame { width: 100%; min-height: 640px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.renewal-terms { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; margin: 4px 0; }
.renewal-terms ul { margin: 4px 0 0; padding-left: 18px; }
.renewal-terms li { margin: 2px 0; }
.billing-consent { align-items: flex-start; }
.order-summary p { margin: 6px 0; }

/* ---------------------------------------------------------------- giriş ekranları */
.auth-body { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.auth-side {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; color: #fff;
  background: radial-gradient(1200px 600px at -10% -10%, #2BB0B8 0%, transparent 55%), radial-gradient(900px 500px at 110% 110%, #2A6584 0%, transparent 60%), #143F50;
}
.auth-side .logo { color: #fff; }
.auth-side .logo-mark { filter: brightness(0) invert(1); }
.auth-side .logo-word { background: none; color: #fff; }
.auth-quote { max-width: 440px; }
.auth-quote h2 { color: #fff; font-size: 1.7rem; margin: 0 0 12px; letter-spacing: -.02em; }
.auth-quote p { color: rgba(255, 255, 255, .78); margin: 0; }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: rgba(255, 255, 255, .9); font-size: .92rem; }
.auth-points li { display: flex; gap: 10px; align-items: center; }
.auth-foot { color: rgba(255, 255, 255, .6); font-size: .8rem; }
.auth-wrap { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card > .logo { display: none; margin-bottom: 24px; }
.auth-title { font-size: 1.5rem; margin: 0 0 6px; }
.auth-card .muted:first-of-type { margin-bottom: 4px; }
.auth-alt { text-align: center; margin: 22px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------------------------------------------------------------- admin kabuğu */
.admin-badge { font-size: .68rem; font-weight: 700; letter-spacing: .02em; padding: 3px 7px; border-radius: 6px; background: var(--danger-soft); color: var(--danger-text); }

/* ---------------------------------------------------------------- duyarlı */
@media (max-width: 1000px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .22s var(--ease); box-shadow: var(--shadow-lg); }
  body.sidebar-open .sidebar { transform: none; }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(10, 14, 25, .4); z-index: 25; display: none; }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .sidebar-toggle { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 56px; }
  .review { grid-template-columns: 1fr; }
  .review-doc { position: static; }
  .review-frame { height: 60vh; }
}
@media (max-width: 860px) {
  .auth-body { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-card > .logo { display: inline-flex; }
}
@media (max-width: 640px) {
  .topbar-search span, .topbar-search kbd { display: none; }
  .topbar-search { width: 38px; padding: 0; justify-content: center; }
  .occ { grid-template-columns: 1fr; gap: 8px; }
  .occ-actions { justify-content: flex-start; }
  .form-inline { grid-template-columns: 1fr; }
  .cal-day { min-height: 62px; padding: 3px; }
  .cal-item { font-size: .62rem; padding: 1px 3px; }
  .stat-value { font-size: 1.5rem; }
  .skip-form { left: 0; right: auto; }
}

/* Sade giriş düzeni (müşteri portalı): tanıtım paneli yok */
.auth-plain { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
.auth-plain .auth-card { max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow); }
.auth-plain .auth-card > .logo { display: inline-flex; }

/* Sayfa düzeyindeki formlar kart içinde */
.content > form.form-wide, .content > form.form:not(.inline-form):not(.filters):not(.alert) {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); max-width: 820px;
}
.content > form.form-wide .fieldset { background: var(--surface-2); }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stats > a.stat { grid-column: 1 / -1; }
  .stat { padding: 12px; }
  .stat-sub { display: none; }
  .stat-label { font-size: .74rem; }
  .topbar-actions .btn-primary span { display: none; }
}

/* Kullanım çubukları (abonelik) */
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 14px; }
.usage-head { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.usage-head strong { color: var(--text); font-variant-numeric: tabular-nums; }
.progress.is-full > span { background: var(--danger); }

/* Çalışma alanı değiştirici */
.ws-menu { margin: 0 0 8px; }
.ws-menu > summary.workspace { margin: 0; cursor: pointer; }
.ws-menu > summary.workspace:hover { border-color: var(--line-strong); }
.ws-menu .menu-list { left: 0; right: 0; min-width: 0; }
.ws-menu .menu-list button[disabled] { opacity: 1; color: var(--accent-text); cursor: default; }

/* Takip türü editörü */
.kind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.kind-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.kind-option:has(input:checked) { border-color: var(--accent); box-shadow: var(--ring); background: var(--accent-soft); }
.kind-option:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.kind-option input { margin-top: 3px; }
.kind-option strong { display: block; font-size: .92rem; color: var(--text); }
.kind-option small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.field-rows { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1.2fr) auto; gap: 8px; align-items: center; }
.field-row .check { white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* WhatsApp sıradaki modu */
.wa-who { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.wa-who .avatar { width: 40px; height: 40px; font-size: .95rem; background: linear-gradient(135deg, #3dd68c, #1aa463); }

/* ---------------------------------------------------------------- Basit ekleme sihirbazı (büyük, sade) */
.wizard-wrap { max-width: 720px; margin: 0 auto; }
.wizard-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.wizard-head h1 { margin: 0; }
.wizard-dots { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.wizard-dots li { width: 28px; height: 6px; border-radius: 99px; background: var(--line-strong); }
.wizard-dots li.is-done { background: var(--accent); opacity: .5; }
.wizard-dots li.is-current { background: var(--accent); }
.wizard { display: grid; gap: 20px; }
.wizard-step { display: grid; gap: 16px; }
.wizard.is-js .wizard-step { animation: pop .18s var(--ease); }
.wizard-q { font-size: 1.5rem; margin: 0; letter-spacing: -.02em; }
.wizard-sub { margin: 0 0 4px; font-weight: 600; color: var(--text-2); }
.wizard-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); display: grid; gap: 10px; }
.wizard-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }
.wizard-or::before, .wizard-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wizard input[type=text], .wizard input[type=tel], .wizard input[type=date], .wizard select, .wizard .picker-input { min-height: 52px; font-size: 1.08rem; padding: 12px 14px; }
.wizard .field { font-size: 1rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { display: grid; gap: 4px; min-height: 96px; align-content: center; padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s, transform .12s; }
.choice-body strong { font-size: 1.08rem; line-height: 1.3; }
.choice-body small { color: var(--muted); font-size: .85rem; }
.choice-dot { width: 12px; height: 12px; border-radius: 50%; }
.choice:hover .choice-body { border-color: var(--line-strong); transform: translateY(-1px); }
.choice input:checked + .choice-body { border-color: var(--accent); box-shadow: var(--ring); background: var(--accent-soft); }
.choice input:focus-visible + .choice-body { box-shadow: var(--ring); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 48px; padding: 0 18px; border-radius: 99px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.big-field input { min-height: 56px; font-size: 1.15rem; }
.money-field { position: relative; display: block; max-width: 340px; }
.money-field input { font-size: 1.6rem !important; font-weight: 650; padding-right: 48px !important; min-height: 64px !important; }
.money-suffix { position: absolute; right: 16px; bottom: 16px; font-size: 1.4rem; color: var(--muted); font-weight: 600; }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 1.05rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.wizard-nav [data-wizard-next] { margin-left: auto; min-width: 160px; }
.wizard-final { display: flex; flex-wrap: wrap; gap: 12px; }
.wizard-final .btn-primary { min-width: 200px; }
@media (max-width: 640px) {
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .wizard-q { font-size: 1.3rem; }
  .wizard-final .btn { width: 100%; }
}

/* Formda katlanır "diğer bilgiler" ve "listede yok, yeni ekle" */
.more-panel, .inline-new { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-2); }
.more-panel > summary, .inline-new > summary { list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 600; display: flex; gap: 8px; align-items: center; color: var(--text-2); }
.more-panel > summary::-webkit-details-marker, .inline-new > summary::-webkit-details-marker { display: none; }
.more-panel[open] > summary, .inline-new[open] > summary { border-bottom: 1px dashed var(--line-strong); }
.more-body { display: grid; gap: 16px; padding: 16px; }
.inline-new { margin-top: -6px; }
.inline-new > summary { padding: 9px 14px; font-size: .9rem; }
.inline-new .form-row { padding: 12px 14px; }

/* ---------- Yönetim: plan düzenleyici ---------- */
.plan-editor .plan-editor-head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 0; }
.plan-group { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px 6px; margin: 6px 0 14px; }
.plan-group > legend, .plan-group > summary { font-weight: 650; padding: 0 6px; }
.plan-group > summary { cursor: pointer; padding: 0 0 8px; }
.plan-advanced:not([open]) { padding-bottom: 14px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.plan-switch { align-items: flex-start; padding: 8px 10px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 10px; }
.plan-switch:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft, var(--info-soft)); }
.plan-switch input { margin-top: 3px; }
.plan-foot { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.plan-foot .btn { margin-left: auto; }

/* ---------- Yönetim: sekmeler, ödemeler ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 22px 0 14px; }
.tab { padding: 9px 14px; border-radius: 10px 10px 0 0; color: var(--text-2); font-weight: 550; font-size: .92rem; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.invoice-table td { vertical-align: top; }
.is-late-row td { background: color-mix(in srgb, var(--danger) 5%, transparent); }
.row-menu { display: inline-block; }
.row-menu > summary { white-space: nowrap; }
.row-menu .menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; width: 280px; padding: 12px; display: grid; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: pop .14s var(--ease);
}
.row-menu .menu-panel form { display: grid; gap: 6px; margin: 0; }
.row-menu .menu-panel form + form { border-top: 1px solid var(--line); padding-top: 12px; }
.row-menu .menu-panel label { display: grid; gap: 4px; color: var(--text-2); }
.row-menu .menu-panel input[type="file"] { font-size: .85rem; }
.row-menu .menu-item { display: flex; align-items: center; gap: 8px; padding: 6px 4px; color: var(--text); font-weight: 550; }
.invoice-status-actions { display: flex !important; flex-wrap: wrap; gap: 6px; }
.invoice-status-actions:empty { display: none !important; }
.ok-text { color: var(--success-text); }

/* ---------- Yönetim: web sitesi düzenleyici ---------- */
.site-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.site-section-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.site-section-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: var(--shadow); text-decoration: none; }
.site-section-body { display: grid; gap: 3px; flex: 1; min-width: 0; }
.se-form .panel { display: grid; gap: 2px; }
.se-list { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 14px 14px; margin: 8px 0 16px; background: var(--surface-2); }
.se-list > legend { font-weight: 650; padding: 0 6px; display: flex; align-items: center; gap: 8px; }
.se-items { display: grid; gap: 8px; margin-bottom: 10px; }
.se-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.se-item > summary { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; cursor: pointer; list-style: none; font-weight: 600; }
.se-item > summary::-webkit-details-marker { display: none; }
.se-item > summary::before { content: "▸"; color: var(--text-3, var(--text-2)); transition: transform .15s; }
.se-item[open] > summary::before { transform: rotate(90deg); }
.se-item-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-item-tools { display: flex; gap: 2px; }
.se-item-tools .icon-btn { width: 30px; height: 30px; font-size: 1rem; }
.se-item-body { padding: 4px 14px 12px; border-top: 1px solid var(--line); }
.se-item .se-list { background: var(--surface); }
.se-icon-pick { display: flex; align-items: center; gap: 10px; }
.se-icon-pick select { flex: 1; }
.se-html { display: grid; gap: 6px; margin-bottom: 18px; }
.se-label { font-weight: 600; font-size: .9rem; }
.se-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); }
.se-toolbar button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 7px; padding: 4px 9px; font: inherit; font-size: .82rem; cursor: pointer; }
.se-toolbar button:hover { border-color: var(--accent); }
.se-rich { min-height: 220px; max-height: 560px; overflow: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); }
.se-rich:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 0; }
.se-savebar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.se-reset { margin-top: 6px; }
@media (max-width: 640px) { .row-menu .menu-panel { width: min(280px, 86vw); } .plan-foot .btn { margin-left: 0; width: 100%; } }
.table-wrap:has(.row-menu[open]) { overflow: visible; }
.se-list, .plan-group { min-width: 0; }
.se-item-body > *, .se-list > * { min-width: 0; }
@media (max-width: 640px) {
  .se-list { padding: 10px 8px 12px; }
  .se-item-body { padding: 4px 8px 10px; }
  .se-item > summary { padding-left: 10px; }
}
.se-items { grid-template-columns: minmax(0, 1fr); }
.se-item { min-width: 0; }
.se-form .panel { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .se-form { padding: 0; } .se-form .panel { padding: 14px 12px; } }
@media (max-width: 640px) { .topbar-actions > .muted.small { display: none; } }

/* ---------- Takip listesi: vadesi yaklaşan satırlar ---------- */
.records-table tr[class^="due-"] td { background: var(--row-bg); }
.records-table tr[class^="due-"] td:first-child { box-shadow: inset 4px 0 0 var(--row-bar); }
.records-table tr[class^="due-"]:hover td { background: color-mix(in srgb, var(--row-bar) 14%, var(--surface)); }
.records-table .due-pill { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 99px; font-weight: 600; }
.records-table tr[class^="due-"] .due-pill { background: color-mix(in srgb, var(--row-bar) 16%, transparent); color: var(--row-text); }
.due-late  { --row-bar: var(--danger);  --row-text: var(--danger-text);  --row-bg: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.due-today { --row-bar: #f97316;        --row-text: #c2410c;             --row-bg: color-mix(in srgb, #f97316 8%, var(--surface)); }
.due-soon  { --row-bar: var(--warning); --row-text: var(--warning-text); --row-bg: color-mix(in srgb, var(--warning) 9%, var(--surface)); }
.due-month { --row-bar: var(--accent);  --row-text: var(--accent-text, var(--accent)); --row-bg: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
[data-theme="dark"] .due-today { --row-text: #fdba74; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .due-today { --row-text: #fdba74; } }
.due-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 10px; }
.due-legend span { display: inline-flex; align-items: center; gap: 6px; }
.due-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.due-dot.late { background: var(--danger); } .due-dot.today { background: #f97316; } .due-dot.soon { background: var(--warning); } .due-dot.month { background: var(--accent); }

/* ---------- Ekle: poliçeden / belgeden ekle ---------- */
.doc-quick { margin: 0 0 6px; }
.doc-quick-card { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); cursor: pointer; transition: border-color .15s, background .15s; }
.doc-quick-card:hover, .doc-quick-card:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.doc-quick-card input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.doc-quick-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.doc-quick-icon .icon { width: 26px; height: 26px; }
.doc-quick-text { display: grid; gap: 4px; flex: 1; min-width: 0; }
.doc-quick-text strong { font-size: 1.08rem; }
.doc-quick-text span { color: var(--text-2); font-size: .92rem; line-height: 1.45; }
.doc-quick-btn { flex: none; pointer-events: none; }
.doc-quick.is-busy .doc-quick-card { opacity: .55; pointer-events: none; }
.doc-quick-busy { display: flex; align-items: center; gap: 10px; margin: 10px 2px 0; font-weight: 600; color: var(--accent); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent); animation: bt-spin .8s linear infinite; display: inline-block; }
@keyframes bt-spin { to { transform: rotate(360deg); } }
.wizard-or { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: .88rem; margin: 18px 0 14px; }
.wizard-or::before, .wizard-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 640px) { .doc-quick-card { flex-wrap: wrap; } .doc-quick-btn { width: 100%; justify-content: center; } }
.receipt-offer { justify-content: space-between; }
.receipt-offer .btn { margin-left: auto; }
.picker-list .picker-create { color: var(--accent); border-top: 1px solid var(--line); }
.picker-list .picker-create strong { color: var(--text); }
.picker-hint { margin: 6px 2px 0; color: var(--accent); font-weight: 600; }
/* Ekle sihirbazı: yeni daire/araç ayrıntıları */
.asset-details { margin-top: 12px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 12px; }
.asset-details > summary { cursor: pointer; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.asset-details[open] > summary { margin-bottom: 8px; }
.asset-details-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 14px; }
.asset-details-grid .field:has(textarea) { grid-column: 1 / -1; }

/* ---------- Görevler ---------- */
.tabs-space { flex: 1; }
.tab-sm { font-size: .85rem; padding: 7px 12px; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.task-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: inset 4px 0 0 var(--row-bar, transparent); }
.task-item.due-late, .task-item.due-today, .task-item.due-soon { background: var(--row-bg); }
.task-item.is-done { opacity: .7; }
.task-item.is-done .task-title { text-decoration: line-through; }
.task-check-form { margin: 0; }
.task-check { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong, var(--line)); background: var(--surface); color: transparent; display: grid; place-items: center; cursor: pointer; transition: all .15s; }
.task-check:hover { border-color: var(--success); color: var(--success); }
.task-check.is-static { cursor: default; color: var(--muted); border-style: dashed; }
.task-main { flex: 1; min-width: 0; display: grid; gap: 3px; color: var(--text); text-decoration: none; }
.task-main:hover .task-title { color: var(--accent); }
.task-title { font-weight: 600; overflow-wrap: anywhere; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-2); }
.task-meta span { display: inline-flex; align-items: center; gap: 4px; }
.task-due { text-align: right; flex: none; }
.task-item .due-pill { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 99px; font-weight: 600; background: color-mix(in srgb, var(--row-bar, var(--line)) 16%, transparent); color: var(--row-text, var(--text-2)); }
.prio-high { display: inline-block; padding: 0 7px; border-radius: 6px; background: var(--danger-soft); color: var(--danger-text); font-size: .75rem; font-weight: 700; vertical-align: 1px; }
.task-list.compact .task-item { padding: 9px 12px; }
.today-tasks-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.task-actions { display: grid; gap: 12px; }
.task-done-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.task-done-form input { flex: 1; min-width: 220px; }
.task-secondary { display: flex; gap: 8px; flex-wrap: wrap; }
.task-timeline .is-event { opacity: .8; }
.task-timeline .is-comment { background: var(--surface-2); border-radius: var(--radius); padding: 8px 10px; }
.field-group { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.field-group > legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.field-group input[type="date"] { margin-top: 8px; max-width: 220px; }
.chip-radio { display: inline-flex; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-weight: 550; font-size: .9rem; }
.chip-radio input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text, var(--accent)); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip-radio.prio-high input:checked + span { border-color: var(--danger); background: var(--danger-soft); color: var(--danger-text); }
.chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text, var(--accent)); }
.task-item.due-late { --row-bar: var(--danger); --row-text: var(--danger-text); --row-bg: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.task-item.due-today { --row-bar: #f97316; --row-text: #c2410c; --row-bg: color-mix(in srgb, #f97316 8%, var(--surface)); }
.task-item.due-soon { --row-bar: var(--warning); --row-text: var(--warning-text); --row-bg: color-mix(in srgb, var(--warning) 9%, var(--surface)); }
@media (max-width: 640px) { .task-item { flex-wrap: wrap; } .task-due { text-align: left; width: 100%; padding-left: 42px; } }

/* ---------------------------------------------------------------- canlı marka katmanı (panel) */
.sidebar { background: linear-gradient(180deg, color-mix(in srgb, #19B3BE 9%, var(--surface)) 0%, var(--surface) 55%); }
.workspace { background: var(--surface); border-color: color-mix(in srgb, #19B3BE 22%, var(--line)); }
.workspace-avatar { background: linear-gradient(135deg, #2CC2CA, #0B8295 60%, #0A6F86); color: #fff; box-shadow: 0 4px 10px -4px rgba(11, 130, 149, .6); }
.nav-link .icon { color: color-mix(in srgb, var(--accent) 70%, var(--muted)); }
.nav-link:hover { background: color-mix(in srgb, #19B3BE 10%, var(--surface)); }
.nav-link[aria-current="page"] { background: linear-gradient(135deg, #19B3BE, #0B8295 60%, #0A6F86); color: #fff; box-shadow: 0 6px 14px -6px rgba(11, 130, 149, .65); }
.nav-link[aria-current="page"] .icon { color: #fff; }
.nav-link[aria-current="page"] .count { background: rgba(255, 255, 255, .22); color: #fff; border-color: transparent; }
.main { background: radial-gradient(900px 320px at 30% -80px, color-mix(in srgb, #19B3BE 12%, transparent), transparent 70%); }
.stat { border-color: color-mix(in srgb, #19B3BE 14%, var(--line)); }
.stat.is-ok .stat-value { color: var(--accent-text); }
.stat.is-late { background: linear-gradient(180deg, color-mix(in srgb, var(--danger) 7%, var(--surface)), var(--surface)); }
.stat.is-today { background: linear-gradient(180deg, color-mix(in srgb, var(--warning) 9%, var(--surface)), var(--surface)); }
.stat.is-ok { background: linear-gradient(180deg, color-mix(in srgb, #19B3BE 9%, var(--surface)), var(--surface)); }
.stat.is-late::before, .stat.is-today::before, .stat.is-ok::before { width: 4px; }
.page-head h1 { color: var(--text); }
.group-title { color: var(--accent-text); }
[data-theme="dark"] .nav-link[aria-current="page"] { background: linear-gradient(135deg, #5AD6DD, #2CC7D0); color: #05191C; }
[data-theme="dark"] .nav-link[aria-current="page"] .icon, [data-theme="dark"] .nav-link[aria-current="page"] .count { color: #05191C; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-link[aria-current="page"] { background: linear-gradient(135deg, #5AD6DD, #2CC7D0); color: #05191C; }
  :root:not([data-theme="light"]) .nav-link[aria-current="page"] .icon, :root:not([data-theme="light"]) .nav-link[aria-current="page"] .count { color: #05191C; }
}

/* Giriş sayfası alt bilgisi: güven ve yasal bağlantılar */
.auth-wrap { align-content: center; }
.auth-legal { width: 100%; max-width: 420px; margin: 18px auto 0; text-align: center; font-size: .8rem; color: var(--muted); }
.auth-legal p { margin: 0 0 8px; line-height: 1.5; }
.auth-legal p .icon { vertical-align: -2px; margin-right: 2px; }
.auth-legal nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-bottom: 6px; }
.auth-legal a { color: var(--muted); }
.auth-legal a:hover { color: var(--accent-text); }
.auth-copy { opacity: .8; }

/* E-posta doğrulama sonucu */
.verify-result { text-align: center; display: grid; gap: 12px; justify-items: center; }
.verify-result .btn { margin-top: 8px; }
.verify-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.verify-icon .icon { width: 32px; height: 32px; }
.verify-icon.is-ok { background: var(--success-soft); color: var(--success-text); }
.verify-icon.is-error { background: var(--danger-soft); color: var(--danger-text); }
