/* ===== Bakiyen Ön Muhasebe — Design System v2 ===== */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #f7f9fa;
  --border: #e7eaee;
  --text: #1a2133;
  --text-muted: #6b7387;
  --text-faint: #9aa1b3;

  --brand: #2aaa46;
  --brand-dark: #24903c;
  --brand-light: #eaf6ec;
  --brand-text-on: #ffffff;
  --brand-navy: #07254e;
  --brand-navy-light: #395171;

  --pos: #12915a;
  --pos-bg: #e3f8ee;
  --neg: #e4463c;
  --neg-bg: #fdeceb;
  --warn: #b4790a;
  --warn-bg: #fdf3e0;
  --info: #2f6fed;
  --info-bg: #eaf1ff;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 25, 40, 0.04), 0 6px 16px rgba(20, 25, 40, 0.05);
  --shadow-hover: 0 4px 10px rgba(20, 25, 40, 0.07), 0 14px 30px rgba(20, 25, 40, 0.10);
  --shadow-lg: 0 16px 40px rgba(20, 25, 40, 0.16);
  --sidebar-w: 250px;
  --ease-out: cubic-bezier(0.22, 0.9, 0.35, 1);
}

/* Koyu tema token'ları İKİ blokta birden tanımlı (CSS'te mixin yok, liste değişirse
   ikisini birden güncelle): (1) sistem tercihi koyuysa VE kullanıcı elle "açık"
   seçmemişse, (2) kullanıcı elle "koyu" seçmişse. data-theme özniteliği
   layout_top.php'deki erken <script> tarafından ilk boyamadan önce basılır,
   tema butonu (app.js initThemeToggle) localStorage'a yazar. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117;
    --surface: #151b23;
    --surface-alt: #1b232d;
    --border: #2a333f;
    --text: #e9edf3;
    --text-muted: #9aa5b5;
    --text-faint: #6b7688;

    --brand: #50b967;
    --brand-dark: #449d58;
    --brand-light: #16341d;
    --brand-text-on: #04231c;
    --brand-navy: #4d6a94;
    --brand-navy-light: #7b93b8;

    --pos: #3fd583;
    --pos-bg: #103524;
    --neg: #ff6b60;
    --neg-bg: #3a1613;
    --warn: #ffc24d;
    --warn-bg: #3a2c0d;
    --info: #6b9bff;
    --info-bg: #13233f;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 4px 10px rgba(0, 0, 0, 0.38), 0 14px 32px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #151b23;
  --surface-alt: #1b232d;
  --border: #2a333f;
  --text: #e9edf3;
  --text-muted: #9aa5b5;
  --text-faint: #6b7688;

  --brand: #50b967;
  --brand-dark: #449d58;
  --brand-light: #16341d;
  --brand-text-on: #04231c;
  --brand-navy: #4d6a94;
  --brand-navy-light: #7b93b8;

  --pos: #3fd583;
  --pos-bg: #103524;
  --neg: #ff6b60;
  --neg-bg: #3a1613;
  --warn: #ffc24d;
  --warn-bg: #3a2c0d;
  --info: #6b9bff;
  --info-bg: #13233f;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 4px 10px rgba(0, 0, 0, 0.38), 0 14px 32px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, 'Segoe UI', system-ui, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.015em; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
.icon { display: inline-block; vertical-align: -3px; flex-shrink: 0; }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  margin: 16px 16px 12px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--brand-navy) 0%, var(--brand-navy-light) 130%);
  box-shadow: var(--shadow);
}
.brand.brand-wordmark {
  background: #fff;
  padding: 10px 12px;
  justify-content: center;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.brand-logo-img {
  max-width: 38px; max-height: 38px; object-fit: contain; flex-shrink: 0;
  background: #fff; border-radius: 9px; padding: 4px;
}
.brand-logo-wordmark {
  max-width: 100%; max-height: 52px; width: auto; height: auto;
  background: transparent; border-radius: 0; padding: 0;
}
.brand-text { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; color: #fff; }
.brand-text small { display: block; font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.62); letter-spacing: 0.03em; margin-top: 1px; }

.brand-support {
  margin: 0 16px 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 7px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
.brand-support a {
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
}
.brand-support-icon {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  background: var(--brand-light); color: var(--brand-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-support a:hover { color: var(--brand-dark); }
.brand-support a:hover .brand-support-icon { background: var(--brand); color: var(--brand-text-on); }

.sidebar nav {
  flex: 1;
  padding: 10px 12px;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sidebar nav:hover,
.sidebar nav:focus-within {
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 115, 135, 0.55) transparent;
}
.sidebar nav::-webkit-scrollbar { width: 0; background: transparent; }
.sidebar nav:hover::-webkit-scrollbar,
.sidebar nav:focus-within::-webkit-scrollbar { width: 5px; }
.sidebar nav::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}
.sidebar nav::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 99px;
  min-height: 48px;
}
.sidebar nav:hover::-webkit-scrollbar-thumb,
.sidebar nav:focus-within::-webkit-scrollbar-thumb {
  background: rgba(107, 115, 135, 0.45);
}
.sidebar nav:hover::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 115, 135, 0.7);
}
.nav-group-label {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-faint); padding: 14px 10px 6px;
}
.nav-group-label:hover { color: var(--text-muted); }
.nav-group-label svg { transition: transform .15s var(--ease-out); flex-shrink: 0; }
.nav-group.collapsed .nav-group-label svg { transform: rotate(-90deg); }
.nav-group.collapsed .nav-group-items { display: none; }
.sidebar nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13.7px;
  font-weight: 600;
  transition: background .12s, color .12s, transform .15s var(--ease-out);
  margin-bottom: 1px;
}
.sidebar nav a:hover { background: var(--surface-alt); color: var(--text); transform: translateX(2px); }
.sidebar nav a.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.sidebar nav a.active:hover { transform: none; }

/* Askıya alınmış firma — modüller kilitli görünür (gerçek zorlama includes/auth.php'de,
   bkz. enforce_company_status_gate()). Tıklanabilir kalır (hesap-askida.php'ye götürür),
   sadece opacity + kilit ikonuyla "kullanılamaz" olduğu görsel olarak belli edilir. */
.nav-locked { opacity: .6; }
.nav-locked:hover { opacity: .85; transform: none; }
.nav-lock-icon { margin-left: auto; display: inline-flex; opacity: .8; flex-shrink: 0; }
.topbar-store-btn.nav-locked { opacity: .6; }

.sidebar-footer {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.user-mini { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-text-on);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.user-mini-name { font-size: 13px; font-weight: 700; }
.user-mini-role { font-size: 11.5px; color: var(--text-faint); }
.logout-link { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12.5px; font-weight: 650; }
.logout-link:hover { color: var(--neg); }

.main-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  padding: 18px 30px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.topbar h1 { font-size: 20px; }
/* topbar-right'a margin-left:auto ile sabitlenir — justify-content:space-between YERİNE
   bu tercih edildi, çünkü space-between başlık/mağaza butonu/arama kutusu arasındaki boşluğu
   da eşit dağıtıyordu ve "Uygulama Mağazası" butonu başlıktan gereksiz uzağa düşüyordu
   (kullanıcı geri bildirimi — buton başlığa yakın, sola yaslı durmalı). */
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Uygulama Mağazası butonu — sayfa başlığının hemen sağında, marka renkli gradyan pill.
   900px altında etiket gizlenir, sadece ikon kalır (topbar-rates ile aynı kırılım). */
.topbar-store-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--brand-text-on);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 35%, transparent);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
  white-space: nowrap;
}
.topbar-store-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 45%, transparent); }
@media (max-width: 900px) { .topbar-store-label { display: none; } .topbar-store-btn { padding: 7px 10px; } }
.company-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650;
  color: var(--text-muted); background: var(--surface-alt); border: 1px solid var(--border);
  padding: 5px 14px 5px 6px; border-radius: 999px;
}
.company-chip-logo { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

/* Firma rozetinin altındaki minik kur satırı — MUTLAK konumlu: yerleşimde yer
   kaplamaz, hiçbir öğeyi itmez; topbar'ın alt padding boşluğuna oturur. */
.company-chip-wrap { position: relative; display: inline-flex; }
.topbar-rates {
  position: absolute; top: calc(100% + 2px); right: 10px;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 10px; font-weight: 650; color: var(--text-faint);
  letter-spacing: .01em; line-height: 1;
}
.topbar-rates b { font-weight: 800; color: var(--text-muted); margin-right: 1px; }
.topbar-rates .rate-sep { opacity: .45; }
@media (max-width: 900px) { .topbar-rates { display: none; } }

.quick-add { position: relative; }
.quick-add-panel {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); min-width: 260px; max-height: min(70vh, 480px); overflow-y: auto;
  padding: 6px; flex-direction: column; gap: 2px;
}
.quick-add-panel.open { display: flex; }
.quick-add-panel a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none;
}
.quick-add-panel a:hover { background: var(--brand-light); color: var(--brand-dark); }

.topbar-search {
  position: relative; display: flex; align-items: center; gap: 8px; flex: 1 1 280px; max-width: 380px;
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; color: var(--text-faint);
}
.topbar-search input {
  border: none; background: transparent; padding: 0; font-size: 13px; flex: 1; color: var(--text);
}
.topbar-search input:focus { outline: none; box-shadow: none; }
.topbar-search-panel {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); max-height: 420px; overflow-y: auto; padding: 8px;
}
.topbar-search-panel.open { display: block; }
.tsp-group-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); padding: 8px 8px 4px; }
.tsp-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 8px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 13px;
}
.tsp-item:hover { background: var(--brand-light); color: var(--brand-dark); }
.tsp-item .faint { font-size: 12px; }
.tsp-empty { padding: 20px; text-align: center; color: var(--text-faint); font-size: 13px; }

.notif-bell { position: relative; }
.icon-btn-lg {
  position: relative; background: transparent; border: 1px solid var(--border); border-radius: 999px;
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
}
.icon-btn-lg:hover { background: var(--surface-alt); color: var(--text); }
.notif-badge {
  position: absolute; top: -4px; right: -4px; background: var(--neg); color: #fff;
  font-size: 10px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.notif-panel {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); width: min(340px, calc(100vw - 24px)); max-height: min(440px, 70vh);
  overflow-y: auto; padding: 6px;
}
.notif-panel.open { display: block; }
.notif-group-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); padding: 10px 10px 4px; }
.notif-item { display: block; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--text); }
.notif-item:hover { background: var(--brand-light); }
.notif-item .notif-title { font-size: 13px; font-weight: 650; }
.notif-item .notif-sub { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }

.topbar-search-btn { display: none; }

@media (max-width: 900px) {
  .topbar-search { display: none; }
  .topbar-search-btn { display: inline-flex; }
}

.content { padding: 24px 30px 60px; flex: 1; }

.mobile-toggle { display: none; }

/* ---------- Cards & grids ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card + .card { margin-top: 20px; }
.card-title {
  font-size: 15px; font-weight: 750; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-title small { font-weight: 550; color: var(--text-muted); font-size: 12.5px; }

.grid { display: grid; gap: 18px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1180px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 720px) { .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* KPI tiles */
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: transform .18s var(--ease-out), box-shadow .18s, border-color .18s;
}
.kpi::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 30%, transparent));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.kpi:hover::before { transform: scaleX(1); }
.kpi .kpi-icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.kpi .label { font-size: 12px; color: var(--text-muted); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: 24px; font-weight: 780; margin-top: 6px; letter-spacing: -0.02em; }
.kpi .sub { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }
.kpi.kpi-pos .value { color: var(--pos); }
.kpi.kpi-neg .value { color: var(--neg); }

/* ---------- Typography helpers ---------- */
.pos { color: var(--pos); font-weight: 650; }
.neg { color: var(--neg); font-weight: 650; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.strong { font-weight: 700; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 13.6px; }
thead th {
  text-align: left; padding: 10px 12px; background: var(--surface-alt);
  color: var(--text-muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .04em; border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-alt); }
tbody tr:last-child td { border-bottom: none; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
tbody.tbl-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.sortable-th { cursor: pointer; user-select: none; position: relative; padding-right: 20px !important; }
.sortable-th:hover { color: var(--text); }
.sortable-th::after { content: '⇅'; position: absolute; right: 6px; opacity: 0.35; font-size: 10px; }
.sortable-th.sort-asc::after { content: '↑'; opacity: 1; color: var(--brand); }
.sortable-th.sort-desc::after { content: '↓'; opacity: 1; color: var(--brand); }

/* ---------- Sunucu taraflı sayfalama kontrolleri ---------- */
.pagination-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 2px 2px; flex-wrap: wrap;
}
.pagination-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.pagination-info { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; }
.pagination-page { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.pagination-jump { display: flex; align-items: center; gap: 6px; }
.pagination-jump-input {
  width: 54px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface); color: var(--text); text-align: center;
}
.export-bar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
/* Toplu seçim (createServerTable bulkActions) */
.bulk-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; margin-bottom: 10px;
  background: var(--brand-light); border: 1px solid var(--brand); border-radius: var(--radius-sm, 8px);
}
.bulk-bar-count { font-size: 13px; margin-right: 4px; }
th.bulk-cell, td.bulk-cell { width: 34px; text-align: center; }
.bulk-cell input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--brand); }
table.matrix th, table.matrix td { text-align: right; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
table.matrix tfoot td { font-weight: 700; background: var(--surface-alt); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  white-space: nowrap;
}
.badge-pos { background: var(--pos-bg); color: var(--pos); }
.badge-neg { background: var(--neg-bg); color: var(--neg); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: var(--surface-alt); color: var(--text-muted); border: 1px solid var(--border); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 13.5px; cursor: pointer;
  transition: filter .12s, background .12s, transform .15s var(--ease-out), box-shadow .15s;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #fff) 0%, var(--brand) 100%);
  color: var(--brand-text-on);
  box-shadow: 0 1px 2px rgba(20, 25, 40, 0.08);
}
.btn:hover { filter: brightness(0.97); transform: translateY(-1px); box-shadow: 0 5px 14px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 7px; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--surface-alt); }
.btn-danger { background: var(--neg); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--text); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.icon-btn {
  background: transparent; border: 1px solid var(--border); border-radius: 7px;
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
}
.icon-btn:hover { background: var(--surface-alt); color: var(--text); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions .btn { padding: 5px 11px; font-size: 12px; border-radius: 6px; white-space: nowrap; }
.btn-outline-danger { background: transparent; color: var(--neg); border-color: var(--neg-bg); }
.btn-outline-danger:hover { background: var(--neg-bg); }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.field .hint { font-size: 11.5px; color: var(--text-faint); }
input[type=text], input[type=number], input[type=date], input[type=password],
input[type=search], input[type=email], select, textarea {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); width: 100%; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 160px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---------- Ana sayfa: Hızlı Erişim paneli (sürükle-bırak) ---------- */
.quick-links-bar { display: flex; gap: 12px; flex-wrap: wrap; }
.quick-link-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 96px; padding: 14px 8px 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: grab; text-decoration: none; color: var(--text);
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.quick-link-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--text-faint); }
.quick-link-tile.dragging { opacity: .35; cursor: grabbing; }
.quick-link-tile .qlt-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-light); color: var(--brand-dark);
}
.quick-link-tile .qlt-label { font-size: 11.5px; text-align: center; line-height: 1.25; color: var(--text-muted); }
.quick-link-remove {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--neg); color: #fff; display: none; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1; cursor: pointer; border: 2px solid var(--surface);
}
.quick-link-tile:hover .quick-link-remove,
.quick-link-tile:focus-within .quick-link-remove { display: flex; }
@media (hover: none) {
  .quick-link-remove { display: flex; width: 24px; height: 24px; top: -8px; right: -8px; }
}
.quick-link-add-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 96px; padding: 14px 8px; border: 1.5px dashed var(--border); border-radius: var(--radius);
  cursor: pointer; color: var(--text-muted); background: transparent;
}
.quick-link-add-tile .qlt-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: var(--surface-alt); color: var(--text-muted);
}
.quick-link-add-tile:hover { border-color: var(--brand); color: var(--brand); }
.quick-link-add-tile:hover .qlt-icon { background: var(--brand-light); color: var(--brand-dark); }
.quick-link-add-tile .qlt-label { font-size: 11.5px; }
.quick-link-add-panel {
  position: fixed; z-index: 1000; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); display: none;
  width: 250px; max-height: 320px; overflow-y: auto; padding: 6px;
}
.quick-link-add-panel.open { display: block; }
.quick-link-add-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13.5px; }
.quick-link-add-item .qlai-icon { display: flex; align-items: center; justify-content: center; color: var(--brand-dark); flex-shrink: 0; }
.quick-link-add-item:hover { background: var(--surface-alt); }
.quick-link-add-empty { padding: 16px; text-align: center; color: var(--text-faint); font-size: 13px; }

/* ---------- Modern aranabilir select (ss-*) ---------- */
.ss-wrap { position: relative; width: 100%; }
.ss-native { position: absolute; inset: 0; opacity: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }
.ss-control {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); cursor: pointer; user-select: none;
  min-height: 20px;
}
.ss-control:hover { border-color: var(--text-faint); }
.ss-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.ss-control.ss-open { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.ss-control.ss-disabled { opacity: .55; cursor: not-allowed; }
.ss-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ss-control.ss-placeholder .ss-label { color: var(--text-faint); }
.ss-caret { flex-shrink: 0; color: var(--text-muted); display: flex; transition: transform .15s; }
.ss-control.ss-open .ss-caret { transform: rotate(180deg); }
.ss-panel {
  position: fixed; z-index: 1000; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overflow: hidden; display: none;
  flex-direction: column;
}
.ss-panel.ss-open { display: flex; }
.ss-search-wrap { padding: 8px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.ss-search {
  width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface-alt); color: var(--text); font-size: 13.5px; outline: none;
}
.ss-search:focus { border-color: var(--brand); }
.ss-options { max-height: 240px; overflow-y: auto; padding: 4px; flex: 1; min-height: 0; }
.ss-option {
  padding: 8px 10px; border-radius: 7px; font-size: 13.5px; cursor: pointer; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-option:hover, .ss-option.ss-active { background: var(--surface-alt); }
.ss-option.ss-selected { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.ss-option.ss-active.ss-selected { background: var(--brand-light); }
.ss-option.ss-hidden { display: none; }
.ss-empty { padding: 14px 10px; text-align: center; color: var(--text-faint); font-size: 13px; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; justify-content: space-between; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.select-inline { min-width: 120px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 20px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; animation: fadeIn .18s ease both; }
.modal {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; padding: 24px;
  scrollbar-width: thin;
}
.modal-overlay.open .modal { animation: popIn .22s var(--ease-out) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.modal.modal-lg { max-width: 860px; }
.modal.modal-xl { max-width: 1100px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-header h3 { font-size: 17px; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); line-height: 1; }

/* ---------- Toast v2: ikonlu, ilerleme çubuklu kart ---------- */
.toast-host { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-left: 3px solid var(--info);
  padding: 12px 18px 12px 14px; border-radius: 11px; max-width: 360px;
  box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600;
  opacity: 0; transform: translateX(16px);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast .toast-ico { flex-shrink: 0; display: flex; color: var(--info); }
.toast.err { border-left-color: var(--neg); }
.toast.err .toast-ico { color: var(--neg); }
.toast.ok { border-left-color: var(--pos); }
.toast.ok .toast-ico { color: var(--pos); }
.toast.warn { border-left-color: var(--warn, #b4790a); }
.toast.warn .toast-ico { color: var(--warn, #b4790a); }
.toast .toast-bar {
  position: absolute; bottom: 0; left: 0; height: 2px; width: 100%;
  background: var(--info); opacity: .5; transform-origin: left;
  animation: toastBar 3.2s linear forwards;
}
.toast.err .toast-bar { background: var(--neg); }
.toast.ok .toast-bar { background: var(--pos); }
.toast.warn .toast-bar { background: var(--warn, #b4790a); }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.notif-item.notif-unread { background: color-mix(in srgb, var(--brand-light) 65%, transparent); }
.notif-item.notif-unread .notif-title::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); margin-right: 6px; vertical-align: middle;
}

/* Otomatik işlem karşılama modalı (cron/lazy-runner özeti) */
.ajw-overlay {
  position: fixed; inset: 0; z-index: 420;
  background: rgba(10, 18, 36, 0.58);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .22s ease;
}
.ajw-overlay.open { opacity: 1; }
.ajw-card {
  width: 100%; max-width: 460px; max-height: min(86vh, 640px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(14px) scale(0.97);
  transition: transform .28s var(--ease-out);
}
.ajw-overlay.open .ajw-card { transform: none; }
.ajw-hero {
  position: relative; padding: 28px 28px 22px; color: #fff; overflow: hidden;
  /* Sabit navy — tema token'ı koyu modda açıldığı için kahraman bandında hep marka laciverti */
  background: linear-gradient(135deg, #07254e 0%, #0f3558 42%, #1f7a3a 145%);
}
.ajw-hero-glow {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  right: -40px; top: -50px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%);
  pointer-events: none;
}
.ajw-hero-ico {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.ajw-hero h2 {
  position: relative; margin: 0 0 8px; font-size: 19px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.3;
}
.ajw-hero-sub {
  position: relative; margin: 0; font-size: 13.5px; line-height: 1.55;
  color: rgba(255,255,255,0.78); max-width: 36em;
}
.ajw-list {
  padding: 14px 16px; overflow-y: auto; flex: 1;
  display: flex; flex-direction: column; gap: 8px;
}
.ajw-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 10px; border-radius: 14px;
  text-decoration: none; color: var(--text);
  border: 1px solid var(--border); background: var(--surface-alt, var(--surface));
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.ajw-item:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  background: var(--brand-light); transform: translateY(-1px);
}
.ajw-item-ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ajw-kind-invoice .ajw-item-ico { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); }
.ajw-kind-expense .ajw-item-ico { background: color-mix(in srgb, var(--neg, #e4463c) 14%, transparent); color: var(--neg, #e4463c); }
.ajw-kind-reminder .ajw-item-ico { background: color-mix(in srgb, var(--info, #3b82f6) 16%, transparent); color: var(--info, #3b82f6); }
.ajw-kind-other .ajw-item-ico { background: var(--surface-alt); color: var(--text-muted); }
.ajw-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ajw-item-kind {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-faint);
}
.ajw-item-title { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.ajw-item-sub {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ajw-item-chev { color: var(--text-faint); flex-shrink: 0; opacity: 0.7; }
.ajw-foot {
  padding: 12px 16px 18px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
}
.ajw-foot .btn { min-width: 120px; }
@media (max-width: 560px) {
  .ajw-overlay { padding: 12px; align-items: flex-end; }
  .ajw-card { max-width: none; border-radius: 18px 18px 12px 12px; max-height: 88vh; }
  .ajw-hero { padding: 22px 20px 18px; }
  .ajw-hero h2 { font-size: 17.5px; }
}

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state .emoji { font-size: 30px; margin-bottom: 10px; opacity: 0.6; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 200px; }
.pill-tabs {
  display: inline-flex; gap: 4px; background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px; max-width: 100%;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tabs a, .pill-tabs button {
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-muted);
  border: none; background: none; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.pill-tabs a.active, .pill-tabs button.active { background: var(--brand); color: var(--brand-text-on); }

.stat-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; }
.stat-line.up { color: var(--pos); }
.stat-line.down { color: var(--neg); }

/* ---------- Auth pages (login/register/kurulum) ---------- */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 20% 20%, #2aaa46 0%, transparent 45%), linear-gradient(135deg, #0f3266, #030d1f);
  padding: 20px;
}
.auth-card {
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 34px 34px 36px; width: 100%; max-width: 420px;
}
.auth-card .brand { margin: 0 0 24px; justify-content: center; }
.auth-card h1 { font-size: 21px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--text-muted); font-size: 13.5px; margin-bottom: 22px; }
.auth-error { background: var(--neg-bg); color: var(--neg); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.auth-info { background: var(--pos-bg); color: var(--pos); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.auth-footer { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.auth-footer a { color: var(--brand-dark); font-weight: 700; }
/* Kayıt SMS doğrulama ekranındaki "Kodu Tekrar Gönder" / "Bilgileri Düzenle" — küçük
   formların içindeki submit butonları link gibi görünsün diye (bkz. register.php). */
.auth-link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--brand-dark); font-weight: 700; font-size: 13px; cursor: pointer; }
.auth-link-btn:hover { text-decoration: underline; }
.auth-link-btn:disabled { color: var(--text-faint); cursor: default; text-decoration: none; }

/* ---------- Modern bölünmüş auth düzeni (login.php + register.php) ---------- */
.auth-split { min-height: 100vh; display: flex; background: var(--surface); }
.auth-aside {
  width: 440px; flex-shrink: 0; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 85% -10%, rgba(42,170,70,.4), transparent 60%),
    radial-gradient(ellipse 60% 45% at 0% 105%, rgba(47,111,237,.3), transparent 58%),
    linear-gradient(168deg, #041226 0%, #07254e 55%, #0d3567 100%);
  color: #fff; display: flex; flex-direction: column; padding: 40px 42px 34px;
}
.auth-aside::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 10%, transparent 75%);
}
.auth-aside .brand { margin: 0; padding: 0; position: relative; background: none; box-shadow: none; }
.auth-aside-body { position: relative; margin: auto 0; padding: 40px 0; }
.auth-aside-body h2 {
  font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2;
  margin: 0 0 12px; color: #fff;
}
.auth-aside-body h2 em { font-style: normal; color: #6ee7b0; }
.auth-aside-body > p { color: rgba(255,255,255,.72); font-size: 14.5px; line-height: 1.7; margin: 0 0 26px; }
.auth-aside-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.auth-aside-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.88); }
.auth-aside-list .auth-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: -1px;
  background: rgba(42,170,70,.28); color: #6ee7b0;
  display: inline-flex; align-items: center; justify-content: center;
}
.auth-aside-quote {
  position: relative; margin-top: 30px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.85);
}
.auth-aside-quote b { display: block; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.6); font-weight: 700; }
.auth-aside-foot { position: relative; font-size: 12px; color: rgba(255,255,255,.45); }
.auth-main { flex: 1; min-width: 0; display: flex; padding: 44px 28px; }
.auth-box { width: 100%; max-width: 620px; margin: auto; }
.auth-box.narrow { max-width: 420px; }
.auth-mobile-brand { display: none; margin-bottom: 26px; }
.auth-mobile-brand .brand { display: inline-flex; margin: 0; padding: 10px 16px 10px 12px; }
.auth-box h1 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 6px; }
.auth-box .sub { color: var(--text-muted); font-size: 14.5px; margin-bottom: 26px; }
.auth-section {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-dark); display: flex; align-items: center; gap: 12px;
  margin: 26px 0 14px;
}
.auth-section:first-of-type { margin-top: 0; }
.auth-section::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-seg-opt {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.auth-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.auth-seg-ico {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--surface-alt); border: 1px solid var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.auth-seg-opt strong { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.auth-seg-opt small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.auth-seg-opt:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.auth-seg-opt:has(input:checked) {
  border-color: var(--brand); background: var(--brand-light);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.auth-seg-opt:has(input:checked) .auth-seg-ico { background: var(--brand); border-color: transparent; color: #fff; }
.auth-seg-opt:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 2px; }
.auth-pass { position: relative; }
.auth-pass input { padding-right: 44px; }
.auth-pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-faint);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.auth-pass-toggle:hover { color: var(--text); background: var(--surface-alt); }
.auth-split .btn-block { padding: 13px 16px; font-size: 15px; border-radius: var(--radius-sm); margin-top: 8px; box-shadow: 0 10px 26px rgba(42,170,70,.3); }
.auth-terms { font-size: 12px; color: var(--text-faint); margin-top: 14px; text-align: center; }
.auth-remember {
  display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px;
  cursor: pointer; user-select: none; font-size: 13.5px; color: var(--text); font-weight: 600;
}
.auth-remember input {
  width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0;
  accent-color: var(--brand); cursor: pointer;
}
.auth-remember small {
  display: block; font-size: 12px; font-weight: 500; color: var(--text-faint); margin-top: 1px;
}
@media (max-width: 1023px) {
  .auth-aside { display: none; }
  .auth-mobile-brand { display: block; }
  .auth-main { padding: 32px 20px 44px; }
  .auth-box { margin: auto; }
}
@media (max-width: 480px) {
  .auth-seg { grid-template-columns: 1fr; }
  .auth-main { padding: 24px 16px max(36px, env(safe-area-inset-bottom, 0px)); }
  .auth-box h1 { font-size: 22px; }
  .auth-split .btn-block { min-height: 48px; }
}

/* ---------- Invoice document / print view ---------- */
.invoice-doc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow); max-width: 900px; margin: 0 auto;
}
.invoice-doc-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.invoice-doc-head h2 { font-size: 24px; margin-bottom: 4px; }
.invoice-doc table.items th, .invoice-doc table.items td { font-size: 13px; }
.invoice-totals { margin-left: auto; width: 280px; margin-top: 16px; }
.invoice-totals table td { padding: 6px 4px; border: none; }
.invoice-totals table tr:last-child td { border-top: 1px solid var(--border); font-weight: 800; font-size: 15px; padding-top: 10px; }
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .content { padding: 0; }
  body { background: #fff; }
}

.quote-doc { padding: 0; overflow: hidden; }
.quote-doc-band {
  padding: 24px 40px 20px; text-align: center; position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
}
.quote-doc-logos { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; }
.quote-logo-sm { height: 36px; width: auto; max-width: 140px; object-fit: contain; }
.quote-doc-title { font-size: 22px; font-weight: 800; letter-spacing: 0.3px; margin: 0; }
.quote-doc-info {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 24px 40px 10px; font-size: 13px; line-height: 1.6;
}
.quote-doc .items { margin: 10px 40px; width: calc(100% - 80px); }
.quote-doc-pricing { margin: 20px 40px 0; }
.quote-doc-pricing-title { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.quote-doc-pricing table { width: 320px; margin-left: auto; }
.quote-doc-pricing table td { padding: 7px 10px; border: none; }
.quote-doc-total-row td { border-radius: 6px; }
.quote-doc-footer { display: flex; align-items: center; gap: 16px; padding: 20px 40px 30px; font-size: 12px; }
.quote-doc .divider, .quote-doc > .faint.text-center { margin-left: 40px; margin-right: 40px; }

/* ---------- Responsive ---------- */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 40;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  border: 0; padding: 0; cursor: pointer;
}
body.sidebar-open { overflow: hidden; }

@media (max-width: 900px) {
  body.sidebar-open .sidebar-backdrop { display: block; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 50;
    transform: translateX(-100%);
    transition: transform .22s var(--ease-out, ease);
    box-shadow: var(--shadow-lg);
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .sidebar.open { transform: translateX(0); }
  /* Toggle drawer'ın ÜZERİNDE: açıkken aynı düğmeyle kapatılabilir */
  .mobile-toggle {
    display: flex; position: fixed;
    top: max(14px, env(safe-area-inset-top, 0px));
    left: max(14px, env(safe-area-inset-left, 0px));
    z-index: 60;
    width: 44px; height: 44px; border-radius: 12px; border: none; background: var(--brand);
    color: var(--brand-text-on); align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  }
  .topbar {
    padding: 14px 16px 14px 66px;
    gap: 10px;
  }
  .topbar h1 { font-size: 17px; flex: 1 1 auto; min-width: 0; }
  .topbar-right { gap: 6px; margin-left: auto; }
  .content { padding: 16px 16px 48px; }
  .company-chip {
    max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    padding: 5px 10px 5px 6px;
  }
  .quick-add-label { display: none; }
  .notif-bell .notif-panel { right: -8px; }
  .quick-add-panel { right: -4px; width: min(240px, calc(100vw - 24px)); }
  .card { padding: 16px; }
  .kpi .value { font-size: 20px; }
  .page-hero-greet { font-size: 19px; }
  .toolbar { gap: 8px; margin-bottom: 14px; }
  .form-row .field { min-width: min(100%, 160px); }
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal {
    max-height: min(92vh, calc(100dvh - 24px));
    padding: 18px 16px;
    border-radius: 16px 16px 12px 12px;
  }
  .modal.modal-lg, .modal.modal-xl { max-width: 100%; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 auto; min-height: 44px; }
  .row-actions .btn { padding: 8px 12px; font-size: 12.5px; min-height: 36px; }
  th.bulk-cell, td.bulk-cell { width: 44px; }
  .bulk-cell input[type=checkbox] { width: 18px; height: 18px; }
  .pagination-bar { gap: 10px; }
  .pagination-jump { display: none; }
  .toast-host {
    left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px));
    align-items: stretch;
  }
  .toast { max-width: none; }
  .cmdk { margin: 0 10px; max-height: min(78vh, 520px); }
  .cmdk-foot { display: none; }
  .invoice-doc { padding: 20px 16px; }
  .invoice-totals { width: 100%; }
  .quote-doc-band { padding: 18px 16px 14px; }
  .quote-doc-title { font-size: 17px; }
  .quote-doc-info {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px 8px;
  }
  .quote-doc .items { margin: 10px 16px; width: calc(100% - 32px); }
  .quote-doc-pricing { margin: 16px 16px 0; }
  .quote-doc-pricing table { width: 100%; }
  .quote-doc-footer { flex-wrap: wrap; padding: 16px 16px 22px; }
  .quote-doc .divider, .quote-doc > .faint.text-center { margin-left: 16px; margin-right: 16px; }
  .chart-box { height: 220px; }
  .table-wrap {
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
  }
  /* iOS: 16px altı input’ta otomatik zoom’u önle */
  input[type=text], input[type=number], input[type=date], input[type=password],
  input[type=search], input[type=email], select, textarea {
    font-size: 16px;
  }
  .ss-control { min-height: 42px; font-size: 16px; }
  /* Dokunmatikte satır hover vurgusu rahatsız etmesin */
  tbody tr:hover { background: transparent; }
  tbody tr:active { background: var(--surface-alt); }
}

@media (max-width: 640px) {
  .topbar { padding: 12px 12px 12px 62px; }
  .content { padding: 12px 12px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .topbar h1 { font-size: 16px; }
  .company-chip { font-size: 11.5px; max-width: 110px; }
  .badge { font-size: 10.5px; padding: 3px 8px; }
  .form-row { flex-direction: column; gap: 12px; }
  .form-row .field { min-width: 0; width: 100%; }
  .select-inline { min-width: 0; width: 100%; }
  .page-hero { margin-bottom: 16px; }
  .kpi { padding: 14px; }
  .export-bar { justify-content: stretch; }
  .export-bar .btn { flex: 1; }
  .auth-seg { grid-template-columns: 1fr; }
  .auth-main { padding: 24px 16px 36px; }
  .auth-box h1 { font-size: 22px; }
  .auth-card { padding: 26px 20px 28px; }
  .confirm-actions .btn { flex: 1; min-width: 0; }
}

@media (max-width: 400px) {
  .quick-add #quickAddBtn .icon:last-child,
  .quick-add #quickAddBtn svg:last-child { display: none; }
  .company-chip-wrap { display: none; }
}

/* ===================================================================
   Design System v3 — mikro-etkileşimler, skeleton, komut paleti, tema
   =================================================================== */

/* Sayfa içeriği yumuşak girişle gelir. DİKKAT: bu animasyon SADECE opacity içermeli —
   transform içerirse .content, içindeki position:fixed elemanlar (modal overlay'leri!)
   için containing block olur ve modallar ekran yerine içerik alanına göre konumlanır
   (Safari'de animasyon bittikten sonra bile). Gerçek bir hata olarak yaşandı. */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.content { animation: pageIn .32s var(--ease-out) both; }

/* Skeleton (iskelet) yükleme — createServerTable ilk yüklemede kullanır */
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skeleton {
  display: inline-block; height: 12px; border-radius: 6px; width: 60%;
  background: linear-gradient(90deg, var(--surface-alt) 25%, var(--border) 50%, var(--surface-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
tr.skeleton-tr:hover { background: transparent; }

/* Klavye kısayol rozeti */
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; padding: 2px 6px; border-radius: 5px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 10.5px; font-weight: 700; color: var(--text-muted);
  box-shadow: 0 1px 0 var(--border); white-space: nowrap; line-height: 1.4;
}
.topbar-search .kbd { cursor: pointer; }

/* Komut paleti (⌘K / Ctrl+K) */
.cmdk-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 12, 24, 0.45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 20px 20px;
  animation: fadeIn .15s ease both;
}
.cmdk {
  width: 100%; max-width: 580px; max-height: 62vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: popIn .2s var(--ease-out) both;
}
.cmdk-input-wrap {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 18px; border-bottom: 1px solid var(--border); color: var(--text-faint);
  flex-shrink: 0;
}
.cmdk-input-wrap input {
  border: none; background: transparent; flex: 1; font-size: 15px;
  color: var(--text); outline: none; padding: 0;
}
.cmdk-input-wrap input:focus { box-shadow: none; }
.cmdk-list { overflow-y: auto; padding: 8px; flex: 1; min-height: 0; scrollbar-width: thin; }
.cmdk-group-label {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-faint); padding: 10px 10px 4px;
}
.cmdk-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--text);
}
.cmdk-item .cmdk-ico {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: var(--surface-alt); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .1s, color .1s;
}
.cmdk-item.active { background: var(--brand-light); color: var(--brand-dark); }
.cmdk-item.active .cmdk-ico { background: var(--brand); color: var(--brand-text-on); }
.cmdk-item .cmdk-sub { margin-left: auto; font-size: 11.5px; color: var(--text-faint); font-weight: 500; white-space: nowrap; }
.cmdk-empty { padding: 30px 20px; text-align: center; color: var(--text-faint); font-size: 13.5px; }
.cmdk-foot {
  display: flex; align-items: center; gap: 16px; flex-shrink: 0;
  padding: 9px 16px; border-top: 1px solid var(--border);
  background: var(--surface-alt); color: var(--text-faint); font-size: 11.5px;
}
.cmdk-foot span { display: inline-flex; align-items: center; gap: 5px; }

/* Onay diyaloğu (appConfirm) — window.confirm'ün tasarım sistemli karşılığı.
   z-index 400: modalların (100) ve komut paletinin (300) her zaman üzerinde. */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .15s ease both;
}
.confirm-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 400px; padding: 26px 26px 22px; text-align: center;
  animation: popIn .2s var(--ease-out) both;
}
.confirm-ico {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--warn-bg); color: var(--warn);
  display: flex; align-items: center; justify-content: center;
}
.confirm-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.confirm-card p { margin: 0 0 20px; color: var(--text-muted); font-size: 13.5px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.confirm-actions .btn { min-width: 110px; }

/* ---------- Uygulama Mağazası (uygulama-magazasi.php + paketlerim.php) ----------
   Auth sayfalarıyla aynı platform kimliği: navy→koyu gradyan hero + marka yeşili vurgular.
   Tüm renkler token'lardan gelir, açık/koyu temada otomatik uyar (hero hariç — hero bilinçli
   olarak her iki temada da koyu/premium kalır, auth-page ile aynı yaklaşım). */
.store-hero {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  padding: 34px 36px;
  margin-bottom: 26px;
  background: radial-gradient(circle at 85% -20%, rgba(42, 170, 70, 0.55) 0%, transparent 50%),
              radial-gradient(circle at -10% 120%, rgba(42, 170, 70, 0.25) 0%, transparent 40%),
              linear-gradient(135deg, #0f3266, #030d1f);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.store-hero::after { /* ince doku: köşegen ışık süpürmesi */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
}
.store-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: #9fe8b2; background: rgba(42, 170, 70, 0.18); border: 1px solid rgba(42, 170, 70, 0.4);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.store-hero h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.4px; margin: 0 0 8px; color: #fff; }
.store-hero p { margin: 0; max-width: 560px; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.75); }
.store-hero .btn {
  background: #fff; color: #0f3266; font-weight: 750; border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.store-hero .btn:hover { transform: translateY(-1px); background: #f0f4f9; }

/* Ürün seçici — sekme yerine büyük, tıklanabilir kartlar */
.store-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
@media (max-width: 900px) { .store-products { grid-template-columns: 1fr; } }
.store-product-tab {
  position: relative; text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s;
  font: inherit; color: inherit;
}
.store-product-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--brand-light); }
.store-product-tab.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light), var(--shadow-lg); }
.store-product-tab.active::after {
  content: '✓'; position: absolute; top: 12px; right: 14px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: var(--brand-text-on);
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.store-product-ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.store-product-tab.active .store-product-ico { background: var(--brand); color: var(--brand-text-on); }
.store-product-name { font-size: 15px; font-weight: 750; }
.store-product-tag { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }

/* Seçili ürün detayı: tanıtım + özellik ızgarası */
.store-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 22px; }
.store-detail-intro { font-size: 14.5px; line-height: 1.7; color: var(--text); max-width: 720px; margin: 0 0 20px; }
.store-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; }
@media (max-width: 760px) { .store-features { grid-template-columns: 1fr; } }
.store-feature { display: flex; gap: 12px; align-items: flex-start; }
.store-feature-ico {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; margin-top: 1px;
  background: var(--pos-bg); color: var(--pos);
  display: flex; align-items: center; justify-content: center;
}
.store-feature-title { font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.store-feature-text { font-size: 12.8px; line-height: 1.55; color: var(--text-muted); }
.store-detail-note { margin: 20px 0 0; font-size: 12.5px; color: var(--text-faint); border-top: 1px dashed var(--border); padding-top: 14px; }

/* Fiyatlandırma kartları */
.store-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .store-plans { grid-template-columns: 1fr; } }
.store-plan {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px 22px;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.store-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.store-plan.popular { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light), var(--shadow-lg); }
@media (min-width: 901px) { .store-plan.popular { transform: scale(1.03); } .store-plan.popular:hover { transform: scale(1.03) translateY(-3px); } }
.store-plan-ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: var(--brand-text-on);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--brand) 40%, transparent);
}
.store-plan-name { font-size: 14px; font-weight: 750; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.store-plan-price { font-size: 34px; font-weight: 820; letter-spacing: -0.8px; line-height: 1; }
.store-plan-price small { font-size: 17px; font-weight: 700; margin-left: 2px; }
.store-plan-per { font-size: 12px; color: var(--text-faint); }
.store-plan-credit {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  margin-top: 4px; padding: 5px 12px; border-radius: 999px;
  background: var(--brand-light); color: var(--brand-dark);
  font-size: 12.5px; font-weight: 700;
}
:root[data-theme="dark"] .store-plan-credit { color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store-plan-credit { color: var(--brand); } }
.store-plan-desc { font-size: 12.8px; line-height: 1.55; color: var(--text-muted); margin: 4px 0 10px; flex: 1; }
.store-plan .btn { width: 100%; justify-content: center; }
.store-plan:not(.popular) .btn { background: var(--surface); color: var(--brand-dark); border: 1.5px solid var(--brand); }
.store-plan:not(.popular) .btn:hover { background: var(--brand-light); }

/* Güven çubuğu */
.store-trust {
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center;
  margin-top: 24px; padding: 16px 18px;
  background: var(--surface-alt); border: 1px dashed var(--border); border-radius: var(--radius);
}
.store-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.store-trust svg { color: var(--brand); flex-shrink: 0; }

/* Aktif paket / bekleyen ödeme durum kartları */
.store-state-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--surface); border: 1.5px solid var(--brand); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 22px;
}
.store-state-card.waiting { border-color: var(--warn, #e6a23c); }
.store-state-ico {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--pos-bg); color: var(--pos);
  display: flex; align-items: center; justify-content: center;
}
.store-state-card.waiting .store-state-ico { background: var(--warn-bg); color: var(--warn); }
.store-state-title { font-size: 15px; font-weight: 750; margin-bottom: 4px; }
.store-state-text { font-size: 13px; line-height: 1.6; color: var(--text-muted); }

/* Uygulama Mağazası bilgilendirme modalı (showStoreUpsell, app.js) — appConfirm ile aynı
   iskelet, sadece daha geniş + marka rengi vurgulu ikon + sol hizalı özellik listesi. */
.store-upsell-card { max-width: 440px; }
.store-upsell-card .confirm-ico { background: var(--brand-light); color: var(--brand); }
.store-upsell-card p { margin-bottom: 14px; }
.store-upsell-features { list-style: none; margin: 0 0 22px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 9px; }
.store-upsell-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text); line-height: 1.5; }
.store-upsell-features li svg { flex-shrink: 0; color: var(--brand); margin-top: 1px; }

/* Ana sayfa karşılama bloğu */
.page-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-hero-greet { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.page-hero-sub { color: var(--text-muted); font-size: 13.5px; margin-top: 4px; }
.kpi .stat-line { margin-top: 7px; }

/* Boş durumlar biraz daha davetkâr */
.empty-state .emoji { font-size: 34px; margin-bottom: 12px; opacity: 0.75; }

/* Açılır paneller ince kaydırma çubuğu kullanır */
.notif-panel, .topbar-search-panel, .quick-link-add-panel, .ss-options { scrollbar-width: thin; }

/* Hareket azaltma tercihi: tüm animasyon/geçişler kapanır */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
