/* ==========================================================================
   NakitAkışı — premium tema. Token'lar :root'ta; koyu tema varsayılan.
   ========================================================================== */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url("/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #0a0f1c; --bg-2: #0e1525; --surface: #131b2e; --surface-2: #19233a; --surface-3: #202c46;
  --line: rgba(255,255,255,.075); --line-strong: rgba(255,255,255,.14);
  --text: #e9edf5; --text-2: #b4bdd0; --muted: #8590a8;
  --gold: #c9a45c; --gold-2: #e6cd92; --gold-ink: #1a1405;
  --pos: #3fc08d; --pos-bg: rgba(63,192,141,.13);
  --neg: #ec7563; --neg-bg: rgba(236,117,99,.13);
  --warn: #e5b44c; --warn-bg: rgba(229,180,76,.14);
  --info: #6aa7e8; --info-bg: rgba(106,167,232,.13);
  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -12px rgba(0,0,0,.55);
  --shadow-sm: 0 6px 18px -8px rgba(0,0,0,.5);
  --glass: rgba(14,21,37,.72);
  --sidebar-w: 268px; --topbar-h: 64px; --bottom-h: 68px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f1e8; --bg-2: #efeade; --surface: #ffffff; --surface-2: #f8f5ee; --surface-3: #efe9db;
  --line: rgba(20,27,45,.09); --line-strong: rgba(20,27,45,.17);
  --text: #141b2d; --text-2: #3c465d; --muted: #6b7690;
  --gold: #a47c2a; --gold-2: #8c6a1d; --gold-ink: #fffaf0;
  --pos: #178a5e; --pos-bg: rgba(23,138,94,.1);
  --neg: #cc4a37; --neg-bg: rgba(204,74,55,.09);
  --warn: #b0780f; --warn-bg: rgba(176,120,15,.11);
  --info: #2b6cb8; --info-bg: rgba(43,108,184,.09);
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 28px -14px rgba(60,45,10,.28);
  --shadow-sm: 0 6px 16px -10px rgba(60,45,10,.3);
  --glass: rgba(245,241,232,.78);
  color-scheme: light;
}

* { -webkit-tap-highlight-color: transparent; }
html { font-size: 15px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased; min-height: 100vh; }
body::before { /* ince altın ışıma */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 480px at 85% -10%, rgba(201,164,92,.10), transparent 60%),
              radial-gradient(700px 400px at -5% 110%, rgba(106,167,232,.06), transparent 60%); }
:root[data-theme="light"] body::before { background: radial-gradient(900px 480px at 85% -10%, rgba(201,164,92,.16), transparent 60%); }
a { color: var(--gold-2); text-decoration: none; } a:hover { color: var(--gold); }
h1,h2,h3,h4,h5 { font-weight: 700; letter-spacing: -.015em; }
.num, .money { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; white-space: nowrap; }
.text-muted, .muted { color: var(--muted) !important; }
.pos { color: var(--pos) !important; } .neg { color: var(--neg) !important; } .warn { color: var(--warn) !important; }
::selection { background: rgba(201,164,92,.35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---- Kabuk -------------------------------------------------------------- */
.app { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); padding: 22px 16px; display: none; flex-direction: column;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-right: 1px solid var(--line); z-index: 30; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; color: var(--text); font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--gold-ink);
  background: linear-gradient(145deg, var(--gold-2), var(--gold)); box-shadow: 0 8px 20px -8px rgba(201,164,92,.7); }
.brand small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.nav-group { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 18px 12px 8px; }
.nav-link-x { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text-2); font-weight: 600; font-size: .95rem;
  transition: background .2s var(--ease), color .2s var(--ease); position: relative; }
.nav-link-x i { font-size: 1.15rem; width: 22px; text-align: center; opacity: .85; }
.nav-link-x:hover { background: var(--surface); color: var(--text); }
.nav-link-x.active { background: linear-gradient(90deg, rgba(201,164,92,.16), rgba(201,164,92,.03)); color: var(--gold-2); }
.nav-link-x.active::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.sidebar-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); }

.main { flex: 1; min-width: 0; padding-bottom: calc(var(--bottom-h) + 28px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: var(--glass); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 1.12rem; margin: 0; font-weight: 700; }
.topbar .crumb { color: var(--muted); font-size: .78rem; font-weight: 600; }
.icon-btn { width: 42px; height: 42px; border-radius: 13px; display: inline-grid; place-items: center; background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); transition: all .2s var(--ease); cursor: pointer; }
.icon-btn:hover { color: var(--gold-2); border-color: var(--line-strong); transform: translateY(-1px); }
.content { padding: 20px 16px 8px; max-width: 1480px; margin: 0 auto; animation: pageIn .45s var(--ease) backwards; } /* backwards: bitişte transform bırakma (fixed modal'ları bozar) */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding: 8px 10px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: 1fr 1fr 78px 1fr 1fr; align-items: center; background: var(--glass); backdrop-filter: saturate(170%) blur(20px);
  -webkit-backdrop-filter: saturate(170%) blur(20px); border-top: 1px solid var(--line); }
.bn-item { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: .66rem; font-weight: 700; padding: 6px 0; min-height: 44px; border: 0; background: none; }
.bn-item i { font-size: 1.32rem; line-height: 1; } .bn-item.active { color: var(--gold-2); }
.fab { width: 58px; height: 58px; margin: -26px auto 0; border-radius: 20px; border: 0; display: grid; place-items: center; font-size: 1.7rem; color: var(--gold-ink);
  background: linear-gradient(145deg, var(--gold-2), var(--gold)); box-shadow: 0 14px 28px -10px rgba(201,164,92,.8), 0 0 0 5px var(--bg); transition: transform .2s var(--ease); }
.fab:active { transform: scale(.94); }

@media (min-width: 992px) {
  .sidebar { display: flex; } .main { margin-left: var(--sidebar-w); padding-bottom: 36px; } .bottom-nav { display: none; }
  .topbar { padding: 0 32px; } .content { padding: 28px 32px 8px; }
  .brand-top { display: none !important; }
}
@media (max-width: 991.98px) { .desktop-only { display: none !important; } }
@media (min-width: 992px) { .mobile-only { display: none !important; } }

/* ---- Kartlar ------------------------------------------------------------ */
.card-x { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 92%, var(--bg))); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; position: relative; }
.card-x.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { font-size: .98rem; margin: 0; font-weight: 700; }
.card-head .sub { font-size: .78rem; color: var(--muted); font-weight: 500; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.page-head h2 { font-size: 1.55rem; margin: 0; } .page-head p { margin: 2px 0 0; color: var(--muted); }

.kpi { padding: 18px 20px; overflow: hidden; container-type: inline-size; }
.kpi .label { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi .label i { color: var(--gold); font-size: 1rem; }
.kpi .value { white-space: nowrap; font-size: clamp(1.05rem, 10.5cqw, 1.95rem); font-weight: 800; letter-spacing: -.03em; margin: 8px 0 4px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .foot b, .kpi .foot .num { white-space: nowrap; }
.kpi .foot { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kpi.hero { background: linear-gradient(135deg, rgba(201,164,92,.18), rgba(201,164,92,.03) 55%), var(--surface); border-color: rgba(201,164,92,.28); }
.kpi.alert-neg { border-color: rgba(236,117,99,.4); background: linear-gradient(135deg, var(--neg-bg), transparent 60%), var(--surface); }
.kpi.alert-ok { border-color: rgba(63,192,141,.3); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.pos { background: var(--pos-bg); border-color: transparent; } .chip.neg { background: var(--neg-bg); border-color: transparent; }
.chip.warn { background: var(--warn-bg); border-color: transparent; } .chip.info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.chip.gold { background: rgba(201,164,92,.14); color: var(--gold-2); border-color: transparent; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* Mobilde KPI'lar yatay kaydırılır */
.kpi-row { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 767.98px) { .kpi-row.swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
  .kpi-row.swipe::-webkit-scrollbar { display: none; } .kpi-row.swipe > * { flex: 0 0 78%; scroll-snap-align: center; } }
@media (min-width: 768px) { .kpi-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .kpi-row { grid-template-columns: repeat(6, 1fr); } .kpi-row.c4 { grid-template-columns: repeat(4, 1fr); } .kpi-row.c3 { grid-template-columns: repeat(3, 1fr); } }

/* ---- Butonlar & formlar -------------------------------------------------- */
.btn { font-weight: 700; border-radius: 12px; padding: .62rem 1.1rem; border-width: 1px; transition: all .2s var(--ease); min-height: 42px; }
.btn-gold { background: linear-gradient(145deg, var(--gold-2), var(--gold)); color: var(--gold-ink); border: 0; box-shadow: 0 10px 22px -12px rgba(201,164,92,.9); }
.btn-gold:hover { color: var(--gold-ink); transform: translateY(-1px); filter: brightness(1.05); } .btn-gold:active { transform: scale(.98); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--gold-2); border-color: var(--gold); }
.btn-soft-danger { background: var(--neg-bg); color: var(--neg); border-color: transparent; } .btn-soft-danger:hover { background: var(--neg); color: #fff; }
.btn-soft-ok { background: var(--pos-bg); color: var(--pos); border-color: transparent; } .btn-soft-ok:hover { background: var(--pos); color: #07281b; }
.btn-sm { min-height: 34px; padding: .35rem .75rem; border-radius: 10px; font-size: .85rem; }
.btn-icon { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; }

.form-label { font-size: .78rem; font-weight: 700; color: var(--text-2); letter-spacing: .02em; margin-bottom: 6px; }
.form-control, .form-select { background-color: var(--bg-2); border: 1px solid var(--line-strong); color: var(--text); border-radius: 12px; min-height: 46px; padding: .6rem .9rem; font-weight: 500; }
:root[data-theme="light"] .form-control, :root[data-theme="light"] .form-select { background-color: #fff; }
.form-control:focus, .form-select:focus { background-color: var(--bg-2); color: var(--text); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,92,.18); }
:root[data-theme="light"] .form-control:focus, :root[data-theme="light"] .form-select:focus { background-color: #fff; }
.form-control::placeholder { color: var(--muted); opacity: .7; }
.form-control[type="date"] { min-height: 46px; }
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238590a8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-check-input { background-color: var(--bg-2); border-color: var(--line-strong); width: 1.25em; height: 1.25em; }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; }
.text-danger, .field-validation-error { color: var(--neg) !important; font-size: .8rem; font-weight: 600; }
.input-group-text { background: var(--surface-2); border-color: var(--line-strong); color: var(--muted); border-radius: 12px; font-weight: 700; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-group-text:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.form-section { margin-bottom: 22px; } .form-section > h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filter-bar .form-control, .filter-bar .form-select { min-height: 42px; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 13px; padding: 3px; gap: 2px; }
.seg a, .seg button { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: .83rem; padding: 7px 14px; border-radius: 10px; min-height: 36px; }
.seg .on { background: var(--surface-3); color: var(--gold-2); box-shadow: var(--shadow-sm); }

/* ---- Tablolar → mobilde kart ---------------------------------------------- */
.table-x { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--text); margin: 0; }
.table-x thead th { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.table-x tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-x tbody tr { transition: background .15s; } .table-x tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.table-x tbody tr:last-child td { border-bottom: 0; }
.table-x .r { text-align: right; } .table-x tr.row-neg td { background: var(--neg-bg); } .table-x tr.row-today td { background: rgba(201,164,92,.08); }
.table-x tr.row-muted { opacity: .55; }
.table-scroll { overflow-x: auto; max-height: 72vh; }
@media (max-width: 767.98px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table-cards tbody td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; gap: 14px; align-items: baseline; text-align: right; }
  .table-cards tbody td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; flex: none; }
  .table-cards tbody td[data-label=""]::before, .table-cards tbody td:not([data-label])::before { display: none; }
  .table-cards tbody td.title-cell { display: block; text-align: left; font-weight: 700; font-size: 1.02rem; padding-bottom: 6px; }
  .table-cards tbody td.title-cell::before { display: none; }
  .table-cards tbody td.actions-cell { justify-content: flex-end; padding-top: 10px; }
  .table-cards tbody td.actions-cell::before { display: none; }
  .table-cards tr.row-neg { background: var(--neg-bg); }
  .table-cards tr.row-neg td { background: transparent; }
}

/* ---- Listeler / banka-kasa kartları -------------------------------------- */
.list-x { list-style: none; margin: 0; padding: 0; } .list-x li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); } .list-x li:last-child { border-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; flex: none; color: #fff; font-size: .9rem; }
.li-main { flex: 1; min-width: 0; } .li-main .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .li-main .s { font-size: .78rem; color: var(--muted); }
.li-amount { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.bank-card .head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.bank-card .total { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.progress-x { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; } .progress-x > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.cash-card { background-image: radial-gradient(circle at 100% 0, rgba(201,164,92,.16), transparent 150px), linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 92%, var(--bg))); } /* süs ışıması arka planda: overflow/::after menüyü kırpıp tıklamayı engelliyordu */

/* ---- Modal / bottom-sheet ------------------------------------------------- */
.modal-content { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); color: var(--text); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.modal-header, .modal-footer { border-color: var(--line); } .modal-title { font-weight: 800; font-size: 1.1rem; }
.btn-close { filter: invert(var(--close-invert, 1)); } :root[data-theme="light"] { --close-invert: 0; }
.modal-backdrop.show { opacity: .62; backdrop-filter: blur(3px); }
@media (max-width: 767.98px) {
  .modal.fade .modal-dialog { transform: translateY(100%); transition: transform .35s var(--ease); margin: 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; min-height: 0 !important; height: auto; display: block; }
  .modal.show .modal-dialog { transform: none; }
  .modal-content { border-radius: 24px 24px 0 0; border-bottom: 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
  .modal-body { overflow-y: auto; }
  .modal-content::before { content: ""; width: 42px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 10px auto 0; }
}
.offcanvas { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.offcanvas.offcanvas-bottom { border-radius: 24px 24px 0 0; height: auto; max-height: 85vh; padding-bottom: env(safe-area-inset-bottom); }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-grid a { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-weight: 700; transition: all .2s var(--ease); }
.quick-grid a i { font-size: 1.5rem; color: var(--gold); } .quick-grid a:hover { border-color: var(--gold); transform: translateY(-2px); }
.dropdown-menu { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; }
.dropdown-item { color: var(--text-2); border-radius: 9px; font-weight: 600; padding: 9px 12px; } .dropdown-item:hover { background: var(--surface-2); color: var(--gold-2); }

/* ---- Toast, boş durum, iskelet ------------------------------------------- */
.toast-wrap { position: fixed; bottom: calc(var(--bottom-h) + 16px + env(safe-area-inset-bottom)); right: 16px; left: 16px; z-index: 2000; display: flex; flex-direction: column-reverse; gap: 10px; align-items: flex-end; pointer-events: none; }
@media (min-width: 992px) { .toast-wrap { bottom: 24px; right: 24px; left: auto; width: 440px; max-width: calc(100vw - 48px); } }
.toast-x { pointer-events: auto; max-width: 440px; width: 100%; padding: 14px 16px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: flex-start; font-weight: 600; animation: toastIn .4s var(--ease) both; } .toast-x.ok i { color: var(--pos); } .toast-x.err i { color: var(--neg); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); } .empty i { font-size: 2.6rem; color: var(--gold); opacity: .8; display: block; margin-bottom: 12px; } .empty h4 { color: var(--text); font-size: 1.1rem; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 10px; color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }
.alert-x { border-radius: 14px; padding: 12px 16px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid transparent; font-weight: 600; font-size: .9rem; }
.alert-x.warn { background: var(--warn-bg); color: var(--warn); } .alert-x.neg { background: var(--neg-bg); color: var(--neg); } .alert-x.info { background: var(--info-bg); color: var(--info); }

/* ---- Grafikler ----------------------------------------------------------- */
.chart { min-height: 280px; } .chart-sm { min-height: 230px; }
.apexcharts-tooltip { background: var(--surface-3) !important; border: 1px solid var(--line-strong) !important; color: var(--text) !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; font-family: var(--font) !important; }
.apexcharts-tooltip-title { background: var(--surface-2) !important; border-bottom: 1px solid var(--line) !important; font-family: var(--font) !important; font-weight: 700 !important; }
.apexcharts-text, .apexcharts-legend-text { font-family: var(--font) !important; fill: var(--muted); color: var(--text-2) !important; }
.gauge-wrap { position: relative; width: 108px; height: 108px; flex: none; } .gauge-wrap .gauge-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.05; }
.gauge-center b { font-size: 1.5rem; font-weight: 800; } .gauge-center small { display: block; color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---- Giriş --------------------------------------------------------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; position: relative; z-index: 1; }
.auth-hero { display: none; padding: 56px; background: linear-gradient(160deg, #0d1426 0%, #0a0f1c 60%), var(--bg); position: relative; overflow: hidden; border-right: 1px solid var(--line); }
.auth-hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(201,164,92,.28), transparent 65%); }
.auth-hero h2 { font-size: 2.6rem; line-height: 1.1; font-weight: 800; letter-spacing: -.035em; max-width: 14ch; margin-top: 12vh; color: #f1f4fa; }
.auth-hero p { color: #9aa5bd; max-width: 38ch; font-size: 1.05rem; margin-top: 18px; }
.auth-hero .brand { color: #f1f4fa; padding: 0; }
.auth-points { margin-top: 40px; display: grid; gap: 14px; color: #c3cce0; font-weight: 600; } .auth-points i { color: var(--gold); margin-right: 10px; }
.auth-form { display: grid; place-items: center; padding: 28px 20px; } .auth-card { width: 100%; max-width: 420px; }
@media (min-width: 992px) { .auth { grid-template-columns: 1.1fr 1fr; } .auth-hero { display: block; } }

@media print { .sidebar, .topbar, .bottom-nav, .no-print { display: none !important; } .main { margin: 0 !important; } body { background: #fff; color: #000; } .card-x { box-shadow: none; border-color: #ccc; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* İlk eksiye düşüş kartı: gösterge + tarih yan yana; tarih gerekirse alt satıra sarar */
#kEksiCard .gauge-wrap { width: 88px; height: 88px; } #kEksiCard .gauge-center b { font-size: 1.25rem; }
#kEksiCard .value { white-space: normal; font-size: clamp(1.05rem, 8.5cqw, 1.45rem); line-height: 1.15; }

/* Giriş sayfası firma logosu: masaüstünde sol panelin sol alt köşesi, mobilde formun altı */
.auth-logo { position: absolute; left: 56px; bottom: 44px; width: 170px; height: auto; opacity: .92; z-index: 1; }
.auth-form { position: relative; padding-bottom: 84px; } @media (min-width: 992px) { .auth-form { padding-bottom: 28px; } }
.auth-logo-m { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 110px; height: auto; opacity: .55; filter: brightness(0) invert(.55); }
:root[data-theme="light"] .auth-logo-m { filter: brightness(0) opacity(.6); }
