/* Patron Cepte — "fintech panosu" tasarım dili: katmanlı koyu yüzeyler (ya da ferah açık tema), ince çizgi kenarlar, tek vurgu
   rengi PandaPOS turuncusu, Inter yazı tipi ve tablo rakamları, bento özet ızgarası, yüzen hap alt menü / daraltılabilir yan menü.
   Uygulama davranışı: yakınlaştırma yok, sayfa esnemesi yok, güvenli alanlar, arayüzde metin seçimi yok. */
:root {
  --brand: #FF4B1F; --brand-2: #FF7A45; --brand-ink: #FF6A3D;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-xl: 20px; --r-lg: 16px; --r-md: 12px; --r-sm: 10px;
  --nav-h: 64px; --navbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.32, .72, 0, 1);

  /* Açık tema */
  --page: #F7F7F9; --card: #FFFFFF; --card-2: #F4F4F7; --raise: #FFFFFF;
  --border: #E7E7EC; --border-2: #DCDCE3; --hairline: #ECECF1;
  --text: #0F0F14; --text-2: #3A3A45; --muted: #6E6E7A; --faint: #A3A3AE;
  --fill: rgba(15, 15, 20, .045); --fill-2: rgba(15, 15, 20, .08); --track: #EEEEF2;
  --tint: #FF4B1F; --tint-soft: rgba(255, 75, 31, .09); --brand-soft: rgba(255, 75, 31, .09);
  --success: #16A34A; --success-soft: rgba(22, 163, 74, .09);
  --danger: #DC2626; --danger-soft: rgba(220, 38, 38, .08);
  --warn: #B45309; --warn-soft: rgba(217, 119, 6, .1);
  --info: #2563EB; --info-soft: rgba(37, 99, 235, .08); --violet: #7C3AED; --violet-soft: rgba(124, 58, 237, .09);
  --glass: rgba(255, 255, 255, .78); --scrim: rgba(15, 15, 20, .32);
  --shadow-sm: 0 1px 2px rgba(15, 15, 20, .04); --shadow: 0 1px 2px rgba(15, 15, 20, .04), 0 8px 24px -12px rgba(15, 15, 20, .12);
  --shadow-lg: 0 24px 60px -20px rgba(15, 15, 20, .35); --ring: 0 0 0 3px rgba(255, 75, 31, .28);
  --glow: inset 0 1px 0 rgba(255, 255, 255, .6);
  color-scheme: light;
}
/* Koyu tema (sistem koyu ya da Ayarlar → Koyu) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0B0B0F; --card: #121218; --card-2: #1A1A22; --raise: #1E1E27;
    --border: rgba(255, 255, 255, .07); --border-2: rgba(255, 255, 255, .11); --hairline: rgba(255, 255, 255, .06);
    --text: #F4F4F6; --text-2: #D0D0D8; --muted: #8E8E9C; --faint: #5C5C69;
    --fill: rgba(255, 255, 255, .045); --fill-2: rgba(255, 255, 255, .08); --track: rgba(255, 255, 255, .07);
    --tint-soft: rgba(255, 90, 42, .14); --brand-soft: rgba(255, 90, 42, .14);
    --success: #4ADE80; --success-soft: rgba(74, 222, 128, .1); --danger: #F87171; --danger-soft: rgba(248, 113, 113, .11);
    --warn: #FBBF24; --warn-soft: rgba(251, 191, 36, .1); --info: #7CA7FF; --info-soft: rgba(124, 167, 255, .11);
    --violet: #B39CFF; --violet-soft: rgba(179, 156, 255, .12);
    --glass: rgba(20, 20, 27, .72); --scrim: rgba(0, 0, 0, .55);
    --shadow-sm: none; --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -18px rgba(0, 0, 0, .8);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8); --glow: inset 0 1px 0 rgba(255, 255, 255, .05);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0B0B0F; --card: #121218; --card-2: #1A1A22; --raise: #1E1E27;
  --border: rgba(255, 255, 255, .07); --border-2: rgba(255, 255, 255, .11); --hairline: rgba(255, 255, 255, .06);
  --text: #F4F4F6; --text-2: #D0D0D8; --muted: #8E8E9C; --faint: #5C5C69;
  --fill: rgba(255, 255, 255, .045); --fill-2: rgba(255, 255, 255, .08); --track: rgba(255, 255, 255, .07);
  --tint-soft: rgba(255, 90, 42, .14); --brand-soft: rgba(255, 90, 42, .14);
  --success: #4ADE80; --success-soft: rgba(74, 222, 128, .1); --danger: #F87171; --danger-soft: rgba(248, 113, 113, .11);
  --warn: #FBBF24; --warn-soft: rgba(251, 191, 36, .1); --info: #7CA7FF; --info-soft: rgba(124, 167, 255, .11);
  --violet: #B39CFF; --violet-soft: rgba(179, 156, 255, .12);
  --glass: rgba(20, 20, 27, .72); --scrim: rgba(0, 0, 0, .55);
  --shadow-sm: none; --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -18px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8); --glow: inset 0 1px 0 rgba(255, 255, 255, .05);
  color-scheme: dark;
}

/* --- Uygulama davranışı ------------------------------------------------------------------------------------------------ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; touch-action: manipulation;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  background: var(--page); color: var(--text); font: 15px/1.45 var(--font); letter-spacing: -.011em;
  font-feature-settings: "cv11", "ss01", "ss03"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
img, svg { -webkit-user-drag: none; user-select: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button, a, input, select, textarea, [role="button"], .row, .chip, .table, .pick, .tile { touch-action: manipulation; }
button { cursor: pointer; border: 0; background: none; padding: 0; transition: transform .15s var(--ease), background-color .2s var(--ease), color .2s, opacity .2s, border-color .2s; }
button:active:not([disabled]) { transform: scale(.98); }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring) !important; border-radius: 10px; }
input, select, textarea {
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default;
  width: 100%; height: 46px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--card); padding: 0 14px;
  outline: none; font-size: 16px; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--tint); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type="date"] { min-width: 0; flex: 1; }
.selectable, .num { -webkit-user-select: text; user-select: text; }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--muted); }
.icon { flex: none; }
.num, b, .kpi__value, .tile__value, .hero__value { font-variant-numeric: tabular-nums; }

/* --- Kabuk ------------------------------------------------------------------------------------------------------------- */
#app { height: 100%; }
.shell { position: fixed; inset: 0; display: flex; flex-direction: column; }
.navbar {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: calc(var(--navbar-h) + var(--safe-t));
  padding: var(--safe-t) calc(12px + var(--safe-r)) 0 calc(12px + var(--safe-l));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  border-bottom: 1px solid transparent; transition: background-color .25s var(--ease), border-color .25s;
}
.navbar--compact { background: var(--glass); border-bottom-color: var(--hairline); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
.navbar__side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.navbar__side--end { justify-content: flex-end; }
.navbar__title { font-size: 15px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.navbar--compact .navbar__title { opacity: 1; transform: none; }
.nav-back { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 12px 0 6px; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 500; background: var(--fill); border: 1px solid var(--border); }
.nav-back .icon { width: 18px; height: 18px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--text-2);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.icon-btn .icon { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--text); border-color: var(--border-2); }
.icon-btn.spin .icon { animation: spin .9s linear infinite; }
.icon-btn[disabled] { opacity: 1; }
.scroller {
  flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  padding-top: calc(var(--navbar-h) + var(--safe-t)); padding-bottom: calc(var(--nav-h) + var(--safe-b) + 36px);
}
.large { padding: 0 calc(16px + var(--safe-r)) 12px calc(16px + var(--safe-l)); max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.large-title { margin: 0; flex: 1 1 100%; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.035em; }
.branch-btn {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.branch-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branch-btn .icon { width: 14px; height: 14px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot--on { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.dot--off { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.page { padding: 4px calc(16px + var(--safe-r)) 16px calc(16px + var(--safe-l)); display: flex; flex-direction: column; gap: 16px; max-width: 1240px; margin: 0 auto; }

.push-in { animation: pushIn .32s var(--ease); }
.pop-in { animation: popIn .32s var(--ease); }
@keyframes pushIn { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popIn { from { transform: translateX(-20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Aşağı çekip yenile göstergesi: JS konumlar (absolute + transform); gezinme çubuğunun altında yüzen yuvarlak */
.ptr { top: calc(var(--navbar-h) + var(--safe-t)) !important; }
.ptr .spinner { width: 34px; height: 34px; border-width: 2.5px; border-color: var(--fill-2); border-top-color: var(--muted); background: var(--card); box-shadow: 0 0 0 1px var(--border-2), var(--shadow-lg); animation: none; }
.ptr.ready .spinner { opacity: 1; border-top-color: var(--tint); }
.ptr.loading .spinner { animation: spin .8s linear infinite; opacity: 1; border-top-color: var(--tint); }
.ptr.dragging { transition: none; }

/* Yüzen hap alt menü (telefon) */
.nav {
  position: fixed; z-index: 30; left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r)); bottom: max(6px, calc(var(--safe-b) - 18px));
  height: var(--nav-h); padding: 6px; border-radius: 22px;
  background: var(--glass); -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px);
  border: 1px solid var(--border-2); box-shadow: var(--shadow-lg), var(--glow);
}
.nav__items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; height: 100%; }
.nav__items button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 16px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.nav__items button .icon { width: 21px; height: 21px; }
.nav__items button.on { color: var(--tint); background: var(--tint-soft); }
.nav__items button.on .nav__label { font-weight: 600; }
.nav__brand, .nav__collapse { display: none; }

/* --- Kartlar ------------------------------------------------------------------------------------------------------------ */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 16px; box-shadow: var(--shadow); }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card--flush > .card__head { padding: 16px 16px 4px; margin: 0; }
.card__head h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card__head .count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--fill-2); font-size: 12px; font-weight: 600; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-weight: 500; font-size: 13px; }
.link:hover { color: var(--text); }
.link .icon { width: 14px; height: 14px; }
.section-title { margin: 10px 4px -6px; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sheet .section-title { margin: 18px 4px 8px; }
.overline { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.foot-note { text-align: center; font-size: 12px; color: var(--faint); }

.list { display: flex; flex-direction: column; }
.row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; text-align: left; width: 100%; background: transparent; }
.row + .row { border-top: 1px solid var(--hairline); }
button.row:hover { background: var(--fill); }
button.row:active { background: var(--fill-2); transform: none; }
.row__main { flex: 1; min-width: 0; }
.row__title { font-size: 14.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.row__sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.row__end { text-align: right; font-weight: 600; color: var(--text); white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row > .icon:last-child { color: var(--faint); width: 18px; height: 18px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--tint-soft); color: var(--tint); flex: none; border: 1px solid var(--border); }
.avatar .icon { width: 18px; height: 18px; }
.rank { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--fill-2); color: var(--muted); flex: none; }
.bar { height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); animation: grow .7s var(--ease) both; transform-origin: left; }

.badge, .chip-soft { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--fill-2); color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.badge .icon { width: 12px; height: 12px; }
.badge--brand, .chip-soft.brand { background: var(--tint-soft); color: var(--brand-ink); }
.badge--success, .chip-soft.green { background: var(--success-soft); color: var(--success); }
.badge--danger, .chip-soft.red { background: var(--danger-soft); color: var(--danger); }
.badge--warn, .chip-soft.amber { background: var(--warn-soft); color: var(--warn); }
.badge--violet { background: var(--violet-soft); color: var(--violet); }

.empty { padding: 36px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.empty b { display: block; color: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 4px; }

/* --- Özet: dönem hapları + bento ------------------------------------------------------------------------------------------ */
.pills { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); align-self: flex-start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills button { flex: none; height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--muted); }
.pills button:hover { color: var(--text); }
.pills button.on { background: var(--text); color: var(--page); font-weight: 600; }
.dash { display: flex; flex-direction: column; gap: 16px; }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 112px; padding: 14px; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden;
}
button.tile:hover { border-color: var(--border-2); }
.tile__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile__icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--fill-2); color: var(--muted); }
.tone-brand .tile__icon { background: var(--tint-soft); color: var(--tint); }
.tone-green .tile__icon { background: var(--success-soft); color: var(--success); }
.tone-amber .tile__icon { background: var(--warn-soft); color: var(--warn); }
.tone-red .tile__icon { background: var(--danger-soft); color: var(--danger); }
.tile__value { margin-top: auto; font-size: 24px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__value small { font-size: 15px; font-weight: 500; color: var(--muted); }
.tile__sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; flex-direction: column; gap: 6px; }
.meter { height: 5px; border-radius: 5px; background: var(--track); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 5px; background: var(--tint); animation: grow .8s var(--ease) both; transform-origin: left; }

.tile--hero {
  grid-column: 1 / -1; min-height: 210px; padding: 18px; color: #fff; border: 0; gap: 8px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #FF4B1F 0%, #FF6331 55%, #FF7A45 100%);
  box-shadow: 0 20px 44px -22px rgba(255, 75, 31, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.tile--hero .overline { color: rgba(255, 255, 255, .85); }
.live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(0, 0, 0, .16); font-size: 11.5px; font-weight: 600; color: #fff; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: pulse 2s infinite; }
.hero__value { font-size: 38px; font-weight: 650; letter-spacing: -.04em; line-height: 1.05; margin-top: 4px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12.5px; }
.delta { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-weight: 600; }
.delta span { font-weight: 500; opacity: .85; }
.hero__since { opacity: .85; }
.hero__spark { margin: 2px -18px -2px; height: 56px; }
.hero__spark .spark { width: 100%; height: 56px; display: block; }
.hero__foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.hero__foot small { display: block; font-size: 11px; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.hero__foot b { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.dash__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* Kasa durumu vb. büyük kart (eski .hero sınıfı) */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 18px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, #FF4B1F 0%, #FF7A45 100%);
  box-shadow: 0 20px 44px -22px rgba(255, 75, 31, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.hero__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.hero__row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hero__chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(0, 0, 0, .16); font-size: 12px; font-weight: 600; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow); overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 14px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, var(--faint)); }
.kpi__title { padding-left: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi__value { margin-top: 8px; font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.kpi__sub { margin-top: 2px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.trend-up { color: var(--success); font-weight: 600; }
.trend-down { color: var(--danger); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { border-radius: var(--r-md); padding: 10px 12px; background: var(--fill); border: 1px solid var(--border); }
.stat b { display: block; font-size: 22px; font-weight: 650; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 500; }

/* --- Düğmeler, çipler, anahtar, arama ------------------------------------------------------------------------------------ */
.btn { height: 46px; padding: 0 18px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; border: 1px solid transparent; }
.btn .icon { width: 18px; height: 18px; }
.btn--brand { background: linear-gradient(180deg, #FF5A2E, #FF4B1F); color: #fff; box-shadow: 0 8px 20px -10px rgba(255, 75, 31, .8), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn--brand:hover { filter: brightness(1.05); }
.btn--ghost { background: var(--card); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--border-2); }
.btn--danger { background: var(--danger-soft); color: var(--danger); }
.btn--danger-solid { background: var(--danger); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px 0; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--border-2); color: var(--text); }
.chip .badge { height: 18px; padding: 0 6px; background: var(--fill-2); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--page); }
.chip.on .badge { background: rgba(127, 127, 127, .25); color: inherit; }
.chip .icon { width: 15px; height: 15px; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.segmented button { height: 34px; border-radius: 9px; font-weight: 500; font-size: 13px; color: var(--muted); }
.segmented button.on { background: var(--text); color: var(--page); font-weight: 600; }

.search { position: relative; }
.search .icon { position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.search input { padding-left: 40px; }

.switch { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--fill-2); border: 1px solid var(--border); flex: none; transition: background .2s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .22s var(--spring); }
.switch.on { background: var(--brand); border-color: var(--brand); }
.switch.on::after { transform: translateX(18px); }
.switch:active { transform: none; }

/* --- Masalar ------------------------------------------------------------------------------------------------------------- */
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.table { position: relative; min-height: 92px; border-radius: var(--r-lg); padding: 11px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.table b { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.table small { font-size: 11.5px; font-weight: 500; opacity: .85; }
.table--occupied { background: linear-gradient(150deg, #FF7A45, #FF4B1F); color: #fff; border-color: transparent; box-shadow: 0 12px 26px -16px rgba(255, 75, 31, .8); }
.table--bill { background: linear-gradient(150deg, #9F7AEA, #7C3AED); color: #fff; border-color: transparent; box-shadow: 0 12px 26px -16px rgba(124, 58, 237, .8); }
.table--empty b { color: var(--muted); }
.table__amount { font-size: 14px; font-weight: 650; }

/* --- Grafikler ----------------------------------------------------------------------------------------------------------- */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { fill: var(--faint); font-size: 10.5px; font-weight: 500; font-family: var(--font); }
.chart .chart-peak { fill: var(--text); font-weight: 600; }
.chart .grid { stroke: var(--hairline); }
.chart--anim .bar-anim { transform-box: fill-box; transform-origin: bottom; animation: barUp .6s var(--ease) both; }
.chart--anim .line-anim, .spark.chart--anim .line-anim { stroke-dasharray: 1; animation: draw 1s var(--ease) both; }
.chart--anim .fade-anim { animation: fade .9s var(--ease) both .2s; }
.chart--anim .arc-anim { animation: arc .9s var(--ease) both; }
.legend { display: grid; gap: 10px; }
.legend div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 38px; align-items: center; gap: 10px; font-size: 13px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.legend b { font-weight: 600; }
.legend small { text-align: right; font-size: 12px; }
.donut-wrap { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 18px; align-items: center; }
.donut-center { font-size: 17px; font-weight: 650; fill: var(--text) !important; letter-spacing: -.03em; }
.donut-sub { font-size: 11px !important; fill: var(--muted) !important; }
.barlist { display: flex; flex-direction: column; gap: 14px; }
.barlist__row { display: flex; gap: 12px; align-items: flex-start; }
.barlist__top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.barlist__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }

/* --- Rapor tablosu ------------------------------------------------------------------------------------------------------ */
.rtable { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rtable table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rtable th { position: sticky; top: 0; text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; background: var(--card-2); white-space: nowrap; }
.rtable td { padding: 11px 14px; border-top: 1px solid var(--hairline); white-space: nowrap; }
.rtable tbody tr:hover td { background: var(--fill); }
.rtable td.n, .rtable th.n { text-align: right; font-variant-numeric: tabular-nums; }
.rtable tfoot td { font-weight: 650; background: var(--card-2); }

/* --- Alt sayfa, pencere, onay, tost -------------------------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fade .22s ease-out; touch-action: none; }
.scrim.closing { animation: fadeOut .22s ease-in forwards; }
.scrim--center { align-items: center; padding: 20px; }
.sheet {
  width: 100%; max-width: 720px; max-height: calc(100dvh - var(--safe-t) - 16px); overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--page); border: 1px solid var(--border-2); border-bottom: 0; border-radius: 24px 24px 0 0; touch-action: pan-y;
  padding: 8px calc(16px + var(--safe-r)) calc(24px + var(--safe-b)) calc(16px + var(--safe-l));
  animation: rise .42s var(--spring); transition: transform .3s var(--spring); box-shadow: var(--shadow-lg);
}
.sheet.dragging { transition: none; }
.closing .sheet, .closing .confirm-sheet { animation: sink .26s ease-in forwards; }
.sheet__grip { width: 40px; height: 4px; border-radius: 4px; background: var(--fill-2); margin: 4px auto 16px; }
.sheet h2 { margin: 0 0 4px; font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.sheet .card { box-shadow: var(--shadow-sm); }

.dialog { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--border-2); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--shadow-lg); animation: pop .22s var(--ease); }
.dialog h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.dialog p { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.dialog__buttons { display: flex; gap: 8px; margin-top: 18px; }
.dialog__buttons .btn { flex: 1; }
.dialog__buttons .btn--danger { background: var(--danger); color: #fff; }

.confirm-sheet { width: 100%; max-width: 480px; background: var(--card); border: 1px solid var(--border-2); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 8px 20px calc(20px + var(--safe-b)); animation: rise .38s var(--spring); box-shadow: var(--shadow-lg); }
.confirm-sheet h3 { margin: 0 0 6px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.confirm-sheet p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.confirm-sheet__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { font-size: 12px; font-weight: 600; color: var(--muted); display: block; margin: 0 2px 6px; letter-spacing: .03em; }

.toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 24px); transform: translateX(-50%); max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 14px; background: #16161D; color: #F4F4F6; font-size: 13.5px; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); animation: toastIn .3s var(--spring);
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; flex: none; }
.toast.err::before { background: #F87171; }
.busy { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: transparent; }
.busy .spinner { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--card); box-shadow: var(--shadow-lg); position: relative; animation: none; }
.busy .spinner::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 2.5px solid var(--fill-2); border-top-color: var(--tint); animation: spin .7s linear infinite; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--fill-2); border-top-color: var(--tint); animation: spin .8s linear infinite; }
.skeleton { border-radius: var(--r-lg); background: linear-gradient(100deg, var(--card) 30%, var(--card-2) 50%, var(--card) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border: 1px solid var(--border); }
.banner { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: var(--r-md); font-weight: 500; font-size: 13.5px; border: 1px solid transparent; }
.banner .icon { width: 17px; height: 17px; }
.banner--warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 18%, transparent); }
.banner--danger { background: var(--danger-soft); color: var(--danger); }
.banner--info { background: var(--card); color: var(--text-2); border-color: var(--border); }
.banner--info .icon { color: var(--muted); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes rise { from { transform: translateY(100%); } }
@keyframes sink { to { transform: translateY(100%); } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
@keyframes toastIn { from { transform: translate(-50%, 16px); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes barUp { from { transform: scaleY(0); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes arc { from { stroke-dasharray: 0 999; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* --- Giriş --------------------------------------------------------------------------------------------------------------- */
.auth { position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; background: #0B0B0F; }
.auth__head { flex: 0 0 auto; padding: calc(56px + var(--safe-t)) 24px 40px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.auth__head::before { content: ""; position: absolute; left: 50%; top: -160px; width: 520px; height: 520px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 75, 31, .38), transparent 65%); }
.auth__head > * { position: relative; }
.auth__head h1 { margin: 18px 0 6px; font-size: 30px; font-weight: 700; letter-spacing: -.035em; }
.auth__head p { margin: 0; color: rgba(255, 255, 255, .6); }
.auth__card { flex: 1; background: var(--page); border-radius: 24px 24px 0 0; padding: 28px 20px calc(24px + var(--safe-b)); border-top: 1px solid var(--border-2); }
.auth__inner { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.auth__foot { margin-top: 8px; text-align: center; font-size: 12.5px; color: var(--muted); }
.error { padding: 12px 14px; border-radius: var(--r-md); background: var(--danger-soft); color: var(--danger); font-weight: 500; font-size: 13.5px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); text-align: left; width: 100%; min-height: 56px; box-shadow: var(--shadow-sm); }
.pick:hover { border-color: var(--border-2); }
.pick > .icon:last-child { color: var(--tint); }
.mark { display: block; margin: 0 auto; filter: drop-shadow(0 12px 28px rgba(255, 75, 31, .4)); }
.install-tip { display: flex; gap: 12px; align-items: flex-start; }
.install-tip b { display: block; margin-bottom: 2px; }

/* --- Listeler ve ayrıntılar ---------------------------------------------------------------------------------------------- */
.history-row { display: block; width: 100%; text-align: left; padding: 14px 16px; cursor: pointer; }
.history-row:hover { border-color: var(--border-2); }
.history-row .badge { margin-top: 4px; }
.history-row .row__title { font-weight: 600; }
.bell { position: relative; }
.bell__count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; line-height: 1; border: 2px solid var(--page); }
.event-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.event-row + .event-row { border-top: 1px solid var(--hairline); }
.event-row__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--danger-soft); color: var(--danger); }
.event-row.new .row__title::after { content: "Yeni"; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; vertical-align: middle; }
.amount-preview { margin: 8px 2px 0; font-weight: 600; font-size: 14px; color: var(--success); font-variant-numeric: tabular-nums; min-height: 20px; }
.amount-preview.bad { color: var(--danger); }
.portion { padding: 14px 16px; }
.portion + .portion { border-top: 1px solid var(--hairline); }
.portion__head { display: flex; align-items: center; gap: 10px; }
.portion__prices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.price-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--r-sm); background: var(--card-2); border: 1px solid var(--border); font-weight: 600; font-size: 14px; color: var(--text); }
.price-chip:hover { border-color: var(--tint); }
.price-chip small { color: var(--muted); font-weight: 500; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; }
.price-chip .icon { width: 14px; height: 14px; color: var(--muted); }
.mini-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mini-btn { height: 30px; padding: 0 10px; border-radius: 9px; background: transparent; border: 1px solid var(--border); font-size: 12.5px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; }
.mini-btn .icon { width: 13px; height: 13px; }
.mini-btn:hover { border-color: var(--border-2); color: var(--text); }
.mini-btn--danger { color: var(--danger); }
.mini-btn[disabled] { opacity: .38; cursor: not-allowed; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; }
.kv + .kv { border-top: 1px solid var(--hairline); }
.kv span:first-child { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; }
.kv.strong { font-weight: 650; font-size: 15.5px; }
.kv.strong span:first-child { color: var(--text); }
.neg { color: var(--danger) !important; }
.pos { color: var(--success) !important; }
.line { display: flex; gap: 10px; padding: 11px 0; align-items: flex-start; }
.line + .line { border-top: 1px solid var(--hairline); }
.line__main { flex: 1; min-width: 0; }
.line__title { font-weight: 550; white-space: normal; }
.line.struck .line__title { text-decoration: line-through; opacity: .55; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-row .chip { max-width: 100%; }
.aging { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.aging div { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 4px; text-align: center; }
.aging small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.aging b { font-size: 13px; font-weight: 650; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
.page--split { display: flex; flex-direction: column; gap: 16px; }

/* --- Tablet / masaüstü (≥ 760 px): bento 4 sütun -------------------------------------------------------------------------- */
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(124px, auto); }
  .tile--hero { grid-column: span 2; grid-row: span 2; padding: 22px; }
  .hero__value { font-size: 44px; }
  .dash__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__grid > .span-2 { grid-column: 1 / -1; }
  .page--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .page--split > .wide { grid-column: 1 / -1; }
}

/* --- Masaüstü (≥ 1024 px): daraltılabilir ince yan menü ------------------------------------------------------------------ */
@media (min-width: 1024px) {
  :root { --nav-w: 248px; }
  :root.nav-collapsed { --nav-w: 76px; }
  body { font-size: 14.5px; }
  .shell { left: var(--nav-w); transition: left .25s var(--ease); }
  .nav {
    top: 0; bottom: 0; left: 0; right: auto; width: var(--nav-w); height: auto; border-radius: 0; padding: calc(16px + var(--safe-t)) 12px 16px;
    background: var(--card); border: 0; border-right: 1px solid var(--border); box-shadow: none; display: flex; flex-direction: column; gap: 18px;
    -webkit-backdrop-filter: none; backdrop-filter: none; transition: width .25s var(--ease);
  }
  .nav__brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px; min-height: 40px; }
  .nav__brand .mark { margin: 0; flex: none; filter: none; }
  .nav__name { flex: 1; min-width: 0; font-weight: 650; font-size: 15px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; }
  .nav__name small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
  .nav__collapse { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--muted); flex: none; }
  .nav__collapse:hover { background: var(--fill-2); color: var(--text); }
  .nav__items { display: flex; flex-direction: column; gap: 2px; height: auto; }
  .nav__items button { flex-direction: row; justify-content: flex-start; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); }
  .nav__items button .icon { width: 19px; height: 19px; color: var(--muted); }
  .nav__items button:hover { background: var(--fill); color: var(--text); }
  .nav__items button.on { background: var(--tint-soft); color: var(--text); }
  .nav__items button.on .icon { color: var(--tint); }
  .nav__items button.on::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tint); }
  :root.nav-collapsed .nav__name, :root.nav-collapsed .nav__label { display: none; }
  :root.nav-collapsed .nav__brand { flex-direction: column; gap: 10px; }
  :root.nav-collapsed .nav__items button { justify-content: center; padding: 0; }
  .navbar { padding-left: 28px; padding-right: 28px; }
  .scroller { padding-bottom: 40px; padding-top: calc(var(--navbar-h) + var(--safe-t) + 4px); }
  .large, .page { padding-left: 32px; padding-right: 32px; }
  .large-title { font-size: 32px; }
  .page { gap: 18px; padding-bottom: 32px; }
  .bento { gap: 16px; }
  .dash__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .dash__grid > .span-2 { grid-column: span 2; }
  .page--dash { display: flex; }
  .report-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .report-grid > .kpis, .report-grid > .muted, .report-grid > .card--flush { grid-column: 1 / -1; }
  .tables { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px; }
  .table { min-height: 112px; padding: 13px; }
  .scrim { align-items: center; padding: 24px; }
  .sheet { max-width: 640px; border-radius: 24px; border-bottom: 1px solid var(--border-2); max-height: 86vh; padding: 22px 26px 26px; animation: pop .24s var(--ease); }
  .confirm-sheet { border-radius: 24px; border-bottom: 1px solid var(--border-2); animation: pop .22s var(--ease); }
  .closing .sheet, .closing .confirm-sheet { animation: fadeOut .18s ease-in forwards; }
  .sheet__grip { display: none; }
  .toast { bottom: 28px; left: calc(50% + var(--nav-w) / 2); }
}
@media (min-width: 1440px) {
  .dash__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .donut-wrap > svg { width: 150px; height: 150px; }
  .donut-wrap .legend { width: 100%; }
}
.row .row__sub.party { white-space: normal; }

/* Sütun grafiği (HTML) ve çizgi grafiği etiketleri */
.cols { position: relative; }
.cols__grid { position: absolute; left: 0; right: 0; top: 22px; height: var(--h); display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.cols__grid i { display: block; border-top: 1px dashed var(--hairline); }
.cols__grid i:last-child { border-top-style: solid; }
.cols__bars { position: relative; display: flex; align-items: flex-end; gap: 4px; height: calc(var(--h) + 22px); padding-top: 22px; }
.cols__col { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.cols__bar { display: block; width: min(100%, 26px); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 55%, transparent), color-mix(in srgb, var(--brand) 22%, transparent)); transform-origin: bottom; }
.cols__bar.peak { background: linear-gradient(180deg, #FF7A45, #FF4B1F); box-shadow: 0 8px 20px -10px rgba(255, 75, 31, .9); }
.cols--anim .cols__bar { animation: barUp .6s var(--ease) both; }
.cols__col:hover .cols__bar { filter: brightness(1.15); }
.cols__peak { position: absolute; top: -20px; font-size: 11.5px; font-weight: 650; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cols__labels { display: flex; gap: 4px; margin-top: 8px; }
.cols__labels span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 10.5px; color: var(--faint); white-space: nowrap; overflow: visible; font-variant-numeric: tabular-nums; }
.linechart .chart--line { width: 100%; display: block; }
.linechart__peak { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.linechart__peak b { color: var(--text); font-weight: 650; }
.linechart .cols__labels span:first-child { text-align: left; }
svg.chart--anim.reveal, .linechart svg.chart--anim { animation: reveal 1s var(--ease) both; }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Giriş: şifre göz düğmesi ve "Beni hatırla" anahtarı */
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw__eye { position: absolute; right: 1px; top: 1px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--muted); }
.pw__eye:hover { color: var(--text); }
.pw__eye:active { transform: none; }
.pw__eye svg { width: 20px; height: 20px; }
.remember { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--border); text-align: left; }
.remember:hover { border-color: var(--border-2); }
.remember:active { transform: none; }
.remember__text { display: grid; gap: 1px; }
.remember__text b { font-weight: 600; font-size: 14px; }
.remember__text .muted { font-size: 12.5px; }
.remember__switch { pointer-events: none; }
.auth h2 { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.skeleton.tile--hero { box-shadow: none; background: linear-gradient(100deg, var(--card) 30%, var(--card-2) 50%, var(--card) 70%); background-size: 200% 100%; border: 1px solid var(--border); }
.cols__labels span:first-child { text-align: left; }
.cols__labels span:last-child { text-align: right; }
.hero, .tile--hero { box-shadow: 0 14px 30px -22px rgba(255, 75, 31, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
