/* =====================================================================
   Klinik Yönetim ve Finans Paneli — arayüz stilleri
   Palet: derin deniz mavisi menü, teal vurgu, sıcak uyarı tonları
   ===================================================================== */

:root {
  /* Metin */
  --ink:        #F4EFFF;
  --ink-soft:   #B9AAD8;
  --ink-faint:  #8878AC;

  /* Yüzeyler ve çizgiler */
  --line:       rgba(168,85,247,0.16);
  --line-soft:  rgba(168,85,247,0.10);
  --bg:         #070310;
  --surface:    rgba(21,12,38,0.62);
  --surface-2:  rgba(30,18,52,0.55);
  --surface-3:  rgba(38,23,64,0.60);

  /* Neon mor vurgu */
  --brand:      #A855F7;
  --brand-dark: #C084FC;
  --brand-tint: rgba(168,85,247,0.16);
  --glow:       0 0 22px rgba(168,85,247,0.45);

  /* Sol menü */
  --nav:        rgba(11,5,24,0.72);
  --nav-2:      rgba(9,4,20,0.85);
  --nav-ink:    #A395C6;
  --nav-active: linear-gradient(96deg, rgba(124,58,237,0.42), rgba(168,85,247,0.14));

  /* Durum renkleri — koyu zeminde okunacak şekilde açıldı */
  --ok:         #4ADE80;
  --ok-tint:    rgba(20,83,45,0.45);
  --warn:       #FBBF24;
  --warn-tint:  rgba(120,53,15,0.45);
  --late:       #F87171;
  --late-tint:  rgba(127,29,29,0.42);
  --soon:       #FB923C;
  --soon-tint:  rgba(124,45,18,0.42);
  --info:       #A5B4FC;
  --info-tint:  rgba(49,46,129,0.45);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow:    0 10px 30px rgba(0,0,0,.38);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);

  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 18% -8%,  rgba(124,58,237,.30), transparent 62%),
    radial-gradient(760px 460px at 88%  6%,  rgba(168,85,247,.18), transparent 60%),
    radial-gradient(1000px 620px at 62% 108%, rgba(76,29,149,.26), transparent 65%),
    linear-gradient(160deg, #0B0518 0%, #070310 48%, #0A0416 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.015em; }
.num, .stat__value, td.num, th.num, .money { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-faint); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 14px; border-radius: var(--r-sm); z-index: 999; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- İskelet ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 258px; flex: 0 0 258px;
  background: linear-gradient(178deg, var(--nav) 0%, var(--nav-2) 100%);
  color: var(--nav-ink);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.side__brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side__mark { color: var(--brand); display: grid; place-items: center; width: 34px; height: 34px; background: rgba(15,138,126,.15); border-radius: 9px; flex: none; }
.side__name { color: #eaf3f4; font-weight: 640; font-size: 14.5px; line-height: 1.25; }
.side__close { display: none; margin-left: auto; background: none; border: 0; color: var(--nav-ink); cursor: pointer; }
.side__nav { overflow-y: auto; padding: 10px 10px 20px; flex: 1; scrollbar-width: thin; }
.side__group { margin: 14px 8px 5px; font-size: 11px; font-weight: 600; color: #628089; }
.side__link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin-bottom: 1px;
  color: var(--nav-ink); text-decoration: none;
  border-radius: 7px; font-size: 14px;
}
.side__link:hover { background: rgba(255,255,255,.06); color: #e6f2f3; }
.side__link.is-active { background: var(--nav-active); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.side__link .icon { flex: none; opacity: .85; }
.side__count { margin-left: auto; background: var(--late); color: #fff; font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 9px; }
.side__foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #d3e4e7; display: flex; flex-direction: column; }
.side__foot small { color: #6f8f98; font-size: 11.5px; }
.side__scrim { display: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.top {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; background: var(--surface);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.top__burger { display: none; background: none; border: 0; color: var(--ink-soft); cursor: pointer; padding: 4px; }
.omni { position: relative; flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; color: var(--ink-faint); }
.omni:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px var(--brand-tint); }
.omni input { flex: 1; border: 0; background: none; padding: 9px 0; font: inherit; color: var(--ink); outline: none; }
.omni__results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); max-height: 62vh; overflow-y: auto; z-index: 60; }
.omni__group { padding: 7px 12px 3px; font-size: 11px; font-weight: 600; color: var(--ink-faint); background: var(--line-soft); }
.omni__item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.omni__item:hover, .omni__item:focus { background: var(--brand-tint); }
.omni__item small { color: var(--ink-faint); white-space: nowrap; }
.top__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top__btn { position: relative; color: var(--ink-soft); padding: 7px; border-radius: 8px; display: grid; place-items: center; }
.top__btn:hover { background: var(--bg); }
.top__dot { position: absolute; top: 1px; right: 0; background: var(--late); color: #fff; font-size: 10.5px; line-height: 1; padding: 3px 5px; border-radius: 8px; }
.top__user { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 20px; font: inherit; color: var(--ink); }
.top__user:hover { background: var(--bg); }
.top__uname { font-size: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.menu { position: relative; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); min-width: 210px; padding: 5px; z-index: 70; }
.menu__panel a { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 14px; }
.menu__panel a:hover { background: var(--bg); }
.menu__danger { color: var(--late) !important; border-top: 1px solid var(--line-soft); margin-top: 4px; }

.content { padding: 22px 24px 48px; max-width: 1520px; width: 100%; }

/* ---------- Sayfa başlığı ---------- */
.page { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page__title { font-size: 23px; }
.page__sub { margin: 3px 0 0; color: var(--ink-faint); font-size: 14px; }
.page__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 8px;
  padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn--soft { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--soft:hover:not(:disabled) { border-color: #c3d1d5; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.btn--ghost:hover { background: var(--surface); }
.btn--danger { background: var(--late); color: #fff; }
.btn--link { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; padding: 8px 4px; }
.btn--sm { padding: 5px 10px; font-size: 13px; }
.btn--block { width: 100%; justify-content: center; }

.iconbtn { background: none; border: 1px solid transparent; border-radius: 6px; padding: 4px; color: var(--ink-faint); cursor: pointer; display: inline-grid; place-items: center; }
.iconbtn:hover { background: var(--bg); color: var(--brand-dark); border-color: var(--line); }
.iconbtn--danger:hover { color: var(--late); background: var(--late-tint); border-color: #f0cec6; }

/* ---------- Kartlar / paneller ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.panel__head h2 { font-size: 15.5px; }
.panel__body { padding: 18px; }

.statgrid { display: grid; gap: 12px; margin-bottom: 18px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--r-md); padding: 13px 15px; display: flex; flex-direction: column; gap: 2px; }
.stat__label { font-size: 12.5px; color: var(--ink-faint); }
.stat__value { font-size: 21px; font-weight: 660; letter-spacing: -.02em; }
.stat__hint { font-size: 12px; color: var(--ink-faint); }
.stat--ok { border-left-color: var(--ok); }
.stat--late { border-left-color: var(--late); }
.stat--late .stat__value { color: var(--late); }
.stat--warn { border-left-color: var(--warn); }
.stat--info { border-left-color: var(--info); }
.stat--muted { border-left-color: #b6c5ca; }

/* ---------- Filtreler ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); background: rgba(168,85,247,0.07); }
.field { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-faint); }
.field__lab { padding-left: 2px; }
.field input, .field select { border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); min-width: 130px; }
.field--search { flex-direction: row; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; min-width: 230px; flex: 1 1 230px; max-width: 340px; }
.field--search input { border: 0; padding: 8px 0; min-width: 0; width: 100%; }
.field--search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }

/* ---------- Tablo ---------- */
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table th { background: var(--surface-3); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.table tbody tr:hover { background: rgba(168,85,247,0.07); }
.table tr.clickable { cursor: pointer; }
.table td.is-neg { color: var(--late); }
.table tfoot td { background: var(--surface-2); font-weight: 640; border-top: 1px solid var(--line); }
.col-actions { width: 1%; white-space: nowrap; text-align: right; }
.cell-sub { display: block; color: var(--ink-faint); font-size: 12.3px; }
.sorter { background: none; border: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.sorter::after { content: "↕"; opacity: .35; font-size: 11px; }
.sorter.is-asc::after { content: "↑"; opacity: 1; color: var(--brand); }
.sorter.is-desc::after { content: "↓"; opacity: 1; color: var(--brand); }

.bar { height: 6px; background: var(--line-soft); border-radius: 4px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--brand); }

.due small { display: block; font-size: 12px; }
.due--late { color: var(--late); } .due--late small { color: var(--late); font-weight: 600; }
.due--soon { color: var(--soon); } .due--soon small { color: var(--soon); font-weight: 600; }
.due--wait small { color: var(--warn); }
.due--ok small, .due--muted small { color: var(--ink-faint); }

.badge { display: inline-block; padding: 2.5px 9px; border-radius: 20px; font-size: 12px; font-weight: 560; white-space: nowrap; }
.badge--ok { background: var(--ok-tint); color: var(--ok); }
.badge--wait { background: var(--warn-tint); color: var(--warn); }
.badge--partial { background: var(--info-tint); color: var(--info); }
.badge--late { background: var(--late-tint); color: var(--late); }
.badge--soon { background: var(--soon-tint); color: var(--soon); }
.badge--info { background: var(--info-tint); color: var(--info); }
.badge--muted { background: #eef2f3; color: var(--ink-faint); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; font-size: 13.5px; color: var(--ink-faint); }
.pager__btns { display: flex; gap: 6px; }
.pager__size select { border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 13px; }

.empty { padding: 54px 20px; text-align: center; color: var(--ink-faint); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.empty p { margin: 0; }
.empty strong { color: var(--ink); font-size: 15.5px; }
.empty .btn { margin-top: 12px; }

/* ---------- Formlar ---------- */
.formgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 13px; }
.formfield { display: flex; flex-direction: column; gap: 4px; }
.formfield label { font-size: 12.8px; color: var(--ink-soft); font-weight: 550; }
.req { color: var(--late); font-style: normal; }
.formfield input, .formfield select, .formfield textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--surface); width: 100%;
}
.formfield input:focus, .formfield select:focus, .formfield textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.formfield input[readonly] { background: var(--line-soft); color: var(--ink-soft); }
.formhint { color: var(--ink-faint); font-size: 12px; }
.formsection { grid-column: span 12; margin-top: 6px; border-top: 1px solid var(--line-soft); padding-top: 11px; }
.formsection span { font-size: 12px; font-weight: 640; color: var(--brand-dark); }
.formsection:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.formnote { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; padding: 9px 12px; background: var(--warn-tint); color: var(--warn); border-radius: 8px; font-size: 13px; }
.form__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.inputmoney { position: relative; display: flex; }
.inputmoney input { padding-right: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.inputmoney span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); pointer-events: none; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); padding: 8px 0; }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; } .col-8 { grid-column: span 8; } .col-9 { grid-column: span 9; } .col-12 { grid-column: span 12; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; }
.modal__scrim { position: fixed; inset: 0; background: rgba(12,32,40,.5); }
.modal__box { position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 780px; }
.modal__box.is-wide { max-width: 1020px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; z-index: 2; }
.modal__head h2 { font-size: 16.5px; }
.modal__x { background: none; border: 0; cursor: pointer; color: var(--ink-faint); padding: 4px; border-radius: 6px; }
.modal__x:hover { background: var(--bg); color: var(--ink); }
.modal__body { padding: 20px; }

/* ---------- Bildirimler ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: #10262e; color: #eaf3f4; padding: 11px 15px; border-radius: 9px; box-shadow: var(--shadow-lg); font-size: 14px; display: flex; gap: 9px; align-items: flex-start; }
.toast--success { background: #12503a; }
.toast--error { background: #7c2b1c; }
.toast--warning { background: #7a5410; }

/* ---------- Dashboard ---------- */
.dash-range { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dash-range a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 20px; font-size: 13px; text-decoration: none; color: var(--ink-soft); background: var(--surface); }
.dash-range a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.dash-range form { display: flex; gap: 6px; align-items: center; }
.dash-range input { border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; font: inherit; font-size: 13px; }

.grid2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.chartbox { position: relative; height: 288px; }
.chartbox--sm { height: 232px; }

/* Yaklaşan ödemeler — panelin imza öğesi */
.timeline { padding: 4px 0 8px; }
.timeline__band { padding: 9px 18px 4px; font-size: 12px; font-weight: 650; letter-spacing: .01em; display: flex; align-items: center; gap: 8px; }
.timeline__band::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .22; }
.timeline__band--today { color: var(--late); }
.timeline__band--soon { color: var(--soon); }
.timeline__band--week { color: var(--warn); }
.timeline__band--later { color: var(--ink-faint); }
.tl-item { display: flex; align-items: baseline; gap: 12px; padding: 8px 18px 8px 18px; border-left: 3px solid transparent; text-decoration: none; color: inherit; }
.tl-item:hover { background: rgba(168,85,247,0.07); }
.tl-item--today { border-left-color: var(--late); background: linear-gradient(90deg, var(--late-tint), transparent 62%); }
.tl-item--soon  { border-left-color: var(--soon); }
.tl-item--week  { border-left-color: var(--warn); }
.tl-item--later { border-left-color: var(--line); }
.tl-item__main { flex: 1; min-width: 0; }
.tl-item__title { font-size: 14px; display: block; }
.tl-item__meta { font-size: 12.3px; color: var(--ink-faint); }
.tl-item__amount { font-weight: 640; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-item__when { font-size: 12px; color: var(--ink-faint); white-space: nowrap; min-width: 76px; text-align: right; }

.linklist { display: flex; flex-direction: column; }
.linklist a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); font-size: 14px; }
.linklist a:last-child { border-bottom: 0; }
.linklist a:hover { background: rgba(168,85,247,0.07); }
.linklist small { color: var(--ink-faint); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--ink-faint); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Giriş ekranı ---------- */
body.auth { display: grid; place-items: center; padding: 24px; background:
  radial-gradient(1100px 520px at 10% -8%, #17414a 0%, transparent 60%),
  radial-gradient(900px 480px at 105% 108%, #0f5a52 0%, transparent 62%), #0d1d24; }
.login { width: 100%; max-width: 396px; background: var(--surface); border-radius: 18px; padding: 30px 30px 26px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.login__mark { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 15px; }
.login h1 { font-size: 21px; margin-bottom: 3px; }
.login p.sub { margin: 0 0 22px; color: var(--ink-faint); font-size: 14px; }
.login .formfield { margin-bottom: 13px; }
.login__row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; font-size: 13.5px; color: var(--ink-soft); }
.login__err { background: var(--late-tint); color: var(--late); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; margin-bottom: 14px; }
.login__foot { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line-soft); font-size: 12.3px; color: var(--ink-faint); text-align: center; }

/* ---------- Hata sayfaları ---------- */
.errorbox { text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.errorbox h1 { font-size: 22px; margin: 14px 0 6px; color: var(--ink); }
.errorbox .btn { margin-top: 18px; }
.errorbox--page { background: var(--surface); border-radius: var(--r-lg); max-width: 560px; }
.errordetail { text-align: left; background: var(--bg); padding: 12px; border-radius: 8px; font-size: 12px; overflow-x: auto; }

/* ---------- Sekmeler & detay ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 15px; text-decoration: none; color: var(--ink-soft); font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.is-on { color: var(--brand-dark); border-bottom-color: var(--brand); font-weight: 600; }
.detailhead { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.detailhead__id { width: 58px; height: 58px; border-radius: 14px; background: var(--brand-tint); color: var(--brand-dark); display: grid; place-items: center; font-size: 23px; font-weight: 650; flex: none; }

/* ---------- Takvim ---------- */
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { background: var(--surface-2); padding: 8px; font-size: 12px; color: var(--ink-soft); border: 1px solid var(--line-soft); }
.cal td { border: 1px solid var(--line-soft); vertical-align: top; height: 104px; padding: 5px; }
.cal td.other { background: var(--surface-2); color: var(--ink-faint); }
.cal td.today { background: var(--brand-tint); }
.cal__day { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.cal__ev { display: block; font-size: 11.6px; padding: 2px 5px; border-radius: 4px; margin-top: 2px; background: var(--info-tint); color: var(--info); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__ev--late { background: var(--late-tint); color: var(--late); }
.cal__ev--warn { background: var(--warn-tint); color: var(--warn); }
.cal__ev--ok { background: var(--ok-tint); color: var(--ok); }

/* ---------- Uyarlanabilirlik ---------- */
@media (max-width: 1080px) {
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .side { position: fixed; left: 0; top: 0; z-index: 120; transform: translateX(-100%); transition: transform .22s ease; }
  body.menu-open .side { transform: translateX(0); }
  body.menu-open .side__scrim { display: block; position: fixed; inset: 0; background: rgba(12,32,40,.45); z-index: 110; }
  .side__close { display: block; }
  .top__burger { display: block; }
  .top__uname { display: none; }
  .content { padding: 16px 14px 40px; }
  .formgrid > .formfield { grid-column: span 12 !important; }
  .modal { padding: 0; }
  .modal__box { border-radius: 0; min-height: 100vh; max-width: none; }
  .modal__head { border-radius: 0; }
  .page { align-items: flex-start; }
  .table th, .table td { padding: 9px 10px; }
  .cal td { height: auto; min-height: 62px; }
}
@media (max-width: 560px) {
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .stat__value { font-size: 18px; }
  .filters { padding: 12px; }
  .field, .field select, .field input { min-width: 0; width: 100%; }
  .field { flex: 1 1 100%; }
  .field--search { max-width: none; }
  .pager { justify-content: center; }
}
@media print {
  .side, .top, .filters, .page__actions, .pager, .col-actions, .toasts { display: none !important; }
  .content { padding: 0; }
  .panel { border: 0; box-shadow: none; }
}

/* ============================================================
   Ek bilesenler: sekmeler, yetki matrisi, ilerleme, bildirim
   ============================================================ */

/* Sekmeler ------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs__btn {
  appearance: none; background: none; border: 0; cursor: pointer;
  padding: 10px 16px; font: inherit; font-weight: 600; font-size: 14px;
  color: var(--ink-faint); border-bottom: 2px solid transparent; margin-bottom: -1px;
  border-radius: 8px 8px 0 0; transition: color .15s, border-color .15s, background .15s;
}
.tabs__btn:hover { color: var(--ink); background: var(--brand-tint); }
.tabs__btn.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }

/* Yetki matrisi -------------------------------------------- */
.permgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.permgrid__col { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.permgrid__col h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -.1px; }

/* Onay kutulari -------------------------------------------- */
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; flex: none; }
.check input:disabled { cursor: not-allowed; opacity: .55; }
.check input:disabled + span { color: var(--ink-faint); }
.check--inline { padding: 9px 0; }

/* Ilerleme cubugu ------------------------------------------ */
.progress { height: 7px; border-radius: 999px; background: var(--brand-tint); overflow: hidden; min-width: 90px; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .3s ease; }
.progress--warn > span { background: var(--warn); }
.progress--late > span { background: var(--late); }

/* Bildirim kutusu ------------------------------------------ */
.notice { border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; padding: 14px 16px; background: var(--brand-tint); }
.notice h3 { margin: 0 0 6px; font-size: 14.5px; }
.notice p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.notice--warn { border-left-color: var(--warn); }
.notice--late { border-left-color: var(--late); }

/* Madde listesi -------------------------------------------- */
.bullets { margin: 0; padding-left: 20px; }
.bullets li { margin-bottom: 8px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; }
.bullets li:last-child { margin-bottom: 0; }

/* Yukleme cubugu ------------------------------------------- */
.uploadbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.uploadbar input[type="text"], .uploadbar select { flex: 1 1 150px; min-width: 0; }
.uploadbar input[type="file"] { flex: 1 1 200px; font-size: 13px; }

/* Panel alt seridi ----------------------------------------- */
.panel__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); margin-top: 16px; }

/* Kart bicimli link listesi -------------------------------- */
.linklist--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.linklist--cards a { border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; }
.linklist--cards a:hover { border-color: var(--brand); }

/* Filtre varyantlari --------------------------------------- */
.field--grow { flex: 1 1 260px; }
.filters--inline { padding: 0; border: 0; background: none; margin: 0; gap: 10px; align-items: flex-end; }
.filters--inline .field__lab { font-size: 11px; }

/* Ekstre tablosu ------------------------------------------- */
.row-open td { background: var(--brand-tint); font-size: 13px; }
.kv--money dd { font-variant-numeric: tabular-nums; text-align: right; }
.kv__total { border-top: 1.5px solid var(--line); padding-top: 10px !important; margin-top: 4px; font-size: 15.5px; font-weight: 700; color: var(--ink); }

/* Duyarli duzenlemeler ------------------------------------- */
@media (max-width: 720px) {
  .permgrid { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tabs__btn { white-space: nowrap; }
  .uploadbar { flex-direction: column; align-items: stretch; }
}

/* Izgara takvim (takvim sayfasi) --------------------------- */
.cal {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r-sm); overflow: hidden; width: 100%;
}
.cal__dow { background: var(--surface-2); padding: 8px 6px; font-size: 12px; font-weight: 600; color: var(--ink-soft); text-align: center; }
.cal__cell { background: var(--surface); min-height: 108px; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.cal__cell--empty { background: var(--surface-2); }
.cal__cell.is-today { background: var(--brand-tint); }
.cal__cell.is-today .cal__day { color: var(--brand-dark); font-weight: 700; }
.cal__items { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal__item {
  display: block; font-size: 11.4px; line-height: 1.35; padding: 3px 5px; border-radius: 4px;
  background: var(--info-tint); color: var(--info); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal__item:hover { filter: brightness(.96); }
.cal__item strong { font-weight: 600; }
.cal__item small { display: block; font-variant-numeric: tabular-nums; opacity: .85; }
.cal__item--late { background: var(--late-tint); color: var(--late); }
.cal__item--warn, .cal__item--soon { background: var(--warn-tint); color: var(--warn); }
.cal__item--ok { background: var(--ok-tint); color: var(--ok); }
.cal__more { font-size: 11px; color: var(--ink-faint); padding-left: 5px; }

@media (max-width: 860px) {
  .cal { grid-template-columns: 1fr; }
  .cal__dow { display: none; }
  .cal__cell--empty { display: none; }
  .cal__cell { min-height: 0; flex-direction: row; align-items: flex-start; gap: 10px; }
  .cal__cell .cal__day { min-width: 26px; }
  .cal__items { flex: 1; }
}

/* ============================================================
   Modal düzeltmeleri
   .modal kuralı display:flex tanımladığı için tarayıcının
   [hidden] kuralını eziyordu; kapalı modaller görünür kalıyordu.
   ============================================================ */
.modal[hidden] { display: none !important; }

/* Sayfaya gömülü modallarda kullanılan karartma katmanı */
.modal__backdrop { position: fixed; inset: 0; background: rgba(12, 32, 40, .5); }

/* Dar modal (ödeme, hareket ekleme gibi kısa formlar) */
.modal__box--sm { max-width: 560px; }

/* Modal alt şeridi */
.modal__foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--line-soft);
  position: sticky; bottom: 0; background: var(--surface);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* Gömülü modallarda formgrid'e nefes payı */
.modal__box--sm .formgrid { padding: 20px; }
.modal__box--sm .formnote { margin-top: 0; }

/* ============================================================
   Pet kuaför modülü
   ============================================================ */

/* Dokunmatik için büyük seçim kutucukları (tür, yapılan işlemler) */
.chipgroup { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line);
  border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500;
  color: var(--ink-soft); transition: border-color .12s, background .12s, color .12s;
  user-select: none;
}
.chip:hover span { border-color: var(--brand); color: var(--ink); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Hızlı giriş formu: telefonda rahat kullanım için büyük alanlar */
.formgrid--lg input[type="text"], .formgrid--lg input[type="tel"], .formgrid--lg select {
  font-size: 16px; padding: 12px 14px;   /* 16px iOS'ta otomatik yakınlaştırmayı engeller */
}
.btn--lg { padding: 13px 28px; font-size: 15.5px; }
.panel__foot--wide { justify-content: flex-start; }
.grid2--wide { grid-template-columns: 1.35fr 1fr; }

/* Kontrol listesinde bekleme süresine göre satır vurgusu */
.row-warn td { background: var(--warn-tint); }
.row-late td { background: var(--late-tint); }
.row-late td strong { color: var(--late); }

/* Bugün girilenler listesi */
.linklist__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 7px;
}
.linklist__row strong { display: block; font-size: 14px; }
.linklist__row small { display: block; color: var(--ink-faint); font-size: 12.5px; margin-top: 2px; }
.linklist__meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }

@media (max-width: 900px) {
  .grid2--wide { grid-template-columns: 1fr; }
  .chip span { padding: 11px 15px; }
}

/* =====================================================================
   KOYU TEMA — cam yüzeyler, neon menü vurgusu, nebula uyumu
   Bu blok dosyanın sonunda durur; üstteki kuralları bilinçli olarak ezer.
   ===================================================================== */

/* --- Cam efekti: paneller, kartlar, modaller ------------------------- */
.panel, .stat, .modal__box, .menu__panel, .omni__results, .notice, .permgrid__col {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.panel, .stat {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
/* Kartların üst kenarında ince mor ışık */
.stat { position: relative; overflow: hidden; }
.stat::before {
  content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: .65;
}

/* --- Sol menü: neon aktif hüzme ------------------------------------- */
.side {
  background: var(--nav);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.side__link { border: 1px solid transparent; border-radius: 11px; }
.side__link:hover { background: rgba(168,85,247,.10); color: var(--ink); }
.side__link.is-active {
  background: var(--nav-active);
  color: var(--ink);
  border-color: rgba(192,132,252,.42);
  box-shadow: 0 0 24px rgba(168,85,247,.40), inset 0 0 22px rgba(168,85,247,.14);
}
.side__group { color: var(--ink-faint); }

/* --- Üst çubuk ------------------------------------------------------- */
.top {
  background: rgba(9,4,20,.55);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.avatar { box-shadow: 0 0 18px rgba(168,85,247,.45); border: 1px solid rgba(192,132,252,.5); }

/* --- Form alanları --------------------------------------------------- */
.field input, .field select, .field--search,
.formfield input, .formfield select, .formfield textarea, .omni {
  background: rgba(255,255,255,.04);
  border-color: var(--line);
  color: var(--ink);
}
.field input::placeholder, .formfield input::placeholder, .omni input::placeholder { color: var(--ink-faint); }
.formfield input:focus, .formfield select:focus, .formfield textarea:focus,
.field input:focus, .field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(168,85,247,.18);
  outline: none;
}
.omni:focus-within { background: rgba(255,255,255,.06); box-shadow: 0 0 0 3px rgba(168,85,247,.18); }
select option { background: #150C26; color: var(--ink); }

/* Tarayıcının takvim/saat ikonlarını koyu zeminde görünür kıl */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(1) saturate(4) hue-rotate(240deg); }

/* --- Düğmeler -------------------------------------------------------- */
.btn--primary { background: linear-gradient(96deg, #A855F7, #7C3AED); box-shadow: 0 0 18px rgba(168,85,247,.35); border: 0; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--soft { background: rgba(168,85,247,.14); color: var(--ink); border: 1px solid var(--line); }
.btn--soft:hover { background: rgba(168,85,247,.22); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--ink-soft); border: 1px solid var(--line); }
.btn--ghost:hover { color: var(--ink); border-color: rgba(192,132,252,.4); }
.btn--link { color: var(--brand-dark); }
.iconbtn { color: var(--ink-soft); border: 1px solid transparent; }
.iconbtn:hover { background: rgba(168,85,247,.14); color: var(--ink); }
.iconbtn--danger:hover { background: rgba(248,113,113,.16); color: var(--late); }

/* --- Tablolar -------------------------------------------------------- */
.table th { background: var(--surface-3); color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.table td { border-top: 1px solid rgba(168,85,247,.09); }
.table tbody tr:hover { background: rgba(168,85,247,.07); }
.table tfoot td { background: var(--surface-3); border-top: 1px solid var(--line); }

/* --- Rozetler: koyu zemin için ------------------------------------- */
.badge--ok      { background: var(--ok-tint);   color: var(--ok);   border: 1px solid rgba(74,222,128,.28); }
.badge--wait    { background: var(--warn-tint); color: var(--warn); border: 1px solid rgba(251,191,36,.28); }
.badge--partial { background: var(--soon-tint); color: var(--soon); border: 1px solid rgba(251,146,60,.28); }
.badge--late    { background: var(--late-tint); color: var(--late); border: 1px solid rgba(248,113,113,.28); }
.badge--soon    { background: var(--soon-tint); color: var(--soon); border: 1px solid rgba(251,146,60,.28); }
.badge--info    { background: var(--info-tint); color: var(--info); border: 1px solid rgba(165,180,252,.28); }
.badge--muted   { background: rgba(255,255,255,.06); color: var(--ink-faint); border: 1px solid var(--line); }

/* --- Modal ----------------------------------------------------------- */
.modal__box { background: rgba(20,11,36,.94); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.modal__head, .modal__foot { background: rgba(20,11,36,.96); border-color: var(--line-soft); }
.modal__scrim, .modal__backdrop { background: rgba(4,1,10,.72); }

/* --- Sekmeler, ilerleme, bildirim ----------------------------------- */
.tabs { border-bottom-color: var(--line); }
.tabs__btn:hover { background: rgba(168,85,247,.10); }
.tabs__btn.is-active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.progress { background: rgba(255,255,255,.07); }
.progress > span { background: linear-gradient(90deg, #A855F7, #C084FC); }
.notice { background: rgba(168,85,247,.09); border-color: var(--line); border-left-color: var(--brand); }

/* --- Takvim ---------------------------------------------------------- */
.cal { background: var(--line); border-color: var(--line); }
.cal__dow { background: var(--surface-3); color: var(--ink-soft); }
.cal__cell { background: rgba(17,9,32,.72); }
.cal__cell--empty { background: rgba(10,4,22,.55); }
.cal__cell.is-today { background: rgba(124,58,237,.24); }
.cal__cell.is-today .cal__day { color: var(--brand-dark); }

/* --- Kuaför modülü --------------------------------------------------- */
.chip span { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--ink-soft); }
.chip:hover span { border-color: var(--brand); color: var(--ink); }
.chip input:checked + span {
  background: linear-gradient(96deg, #A855F7, #7C3AED);
  border-color: rgba(192,132,252,.6); color: #fff;
  box-shadow: 0 0 16px rgba(168,85,247,.4);
}
.row-warn td { background: rgba(120,53,15,.28); }
.row-late td { background: rgba(127,29,29,.28); }
.linklist__row { border-color: var(--line); }

/* --- Giriş ekranı ---------------------------------------------------- */
.auth { background: var(--bg); }
.login { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
         backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.login__err { background: var(--late-tint); color: var(--late); border: 1px solid rgba(248,113,113,.3); }

/* --- Diğer ----------------------------------------------------------- */
.empty { color: var(--ink-faint); }
.kv dt { color: var(--ink-faint); }
.kv__total { border-top-color: var(--line); }
.pager a, .pager span { border-color: var(--line); color: var(--ink-soft); background: rgba(255,255,255,.03); }
.pager .is-current { background: var(--brand); color: #fff; border-color: var(--brand); }
.dash-range a { background: rgba(255,255,255,.03); border-color: var(--line); color: var(--ink-soft); }
.dash-range a.is-active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--glow); }
.toast { background: rgba(20,11,36,.96); border: 1px solid var(--line); color: var(--ink); }
.uploadbar input[type="file"] { color: var(--ink-soft); }
::selection { background: rgba(168,85,247,.35); }

/* Yazdırma çıktısı beyaz kağıt içindir; koyu temayı devre dışı bırak */
@media print {
  body { background: #fff !important; background-image: none !important; color: #111 !important; }
  .panel, .stat, .table th, .table tfoot td { background: #fff !important; border-color: #ddd !important; }
}

/* =====================================================================
   FÜTÜRİSTİK KATMAN
   Yıldız alanı, güçlendirilmiş cam yüzeyler, kart içi dev ikonlar,
   neon marka ve profil halkası.
   ===================================================================== */

/* --- 1. Zemin: nebula + yıldız tozu --------------------------------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.2px 1.2px at 32% 62%, rgba(233,213,255,.45), transparent),
    radial-gradient(1.6px 1.6px at 58% 24%, rgba(255,255,255,.42), transparent),
    radial-gradient(1.1px 1.1px at 74% 71%, rgba(216,180,254,.48), transparent),
    radial-gradient(1.5px 1.5px at 88% 36%, rgba(255,255,255,.40), transparent),
    radial-gradient(1.2px 1.2px at 22% 84%, rgba(233,213,255,.35), transparent),
    radial-gradient(1.3px 1.3px at 46% 92%, rgba(255,255,255,.30), transparent),
    radial-gradient(1.1px 1.1px at 66% 8%,  rgba(216,180,254,.38), transparent);
  opacity: .75;
}
/* Sayfa içeriği yıldızların üstünde kalsın */
.shell { position: relative; z-index: 1; }

/* --- 2. Cam yüzeyler: bg-white/5 + blur + border-white/10 ----------- */
.panel, .stat, .modal__box, .menu__panel, .omni__results, .permgrid__col, .notice, .linklist__row {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.panel, .modal__box { box-shadow: 0 20px 50px rgba(0,0,0,.45); }

/* Kartlar: hafif iç parlama + üst kenar ışığı */
.stat {
  position: relative; overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.stat:hover {
  border-color: rgba(192,132,252,.38);
  box-shadow: 0 0 26px rgba(168,85,247,.28), 0 16px 40px rgba(0,0,0,.45);
  transform: translateY(-2px);
}
/* Uyarı taşıyan kartlar sürekli neon parlasın */
.stat--late, .stat--warn {
  box-shadow: 0 0 22px rgba(168,85,247,.34), 0 12px 34px rgba(0,0,0,.4);
  border-color: rgba(192,132,252,.30);
}

/* --- 3. Kart içi dev, yatık, flu ikon ------------------------------- */
.stat__deco {
  position: absolute; right: -14px; bottom: -22px; z-index: 0;
  line-height: 0; color: var(--brand);
  opacity: .18;
  transform: rotate(-14deg);
  filter: drop-shadow(0 0 18px rgba(168,85,247,.5));
  pointer-events: none;
}
.stat__deco svg { width: 96px; height: 96px; stroke-width: 1.1; }
.stat--late .stat__deco { color: var(--late); opacity: .20; }
.stat--warn .stat__deco { color: var(--warn); opacity: .20; }
.stat--ok   .stat__deco { color: var(--ok);   opacity: .16; }
/* İçerik ikonun üstünde kalsın */
.stat__label, .stat__value, .stat__hint { position: relative; z-index: 1; }

/* --- 4. Tipografi: rakamlar büyük ve parlak, etiketler soluk -------- */
.stat__label {
  display: block; font-size: 12.5px; font-weight: 500;
  color: var(--ink-faint); letter-spacing: .2px;
}
.stat__value {
  display: block; margin-top: 7px;
  font-size: 30px; font-weight: 700; letter-spacing: -.7px; line-height: 1.1;
  color: #FFFFFF;
  text-shadow: 0 0 22px rgba(168,85,247,.35);
}
.stat--ok   .stat__value { color: #D9FBE7; text-shadow: 0 0 20px rgba(74,222,128,.32); }
.stat--late .stat__value { color: #FFE1E1; text-shadow: 0 0 20px rgba(248,113,113,.34); }
.stat--warn .stat__value { color: #FFF1D6; text-shadow: 0 0 20px rgba(251,191,36,.30); }
.stat__hint { display: block; margin-top: 5px; font-size: 12.5px; color: var(--ink-faint); }
/* Tablolarda para sütunları biraz daha belirgin */
td.num, .money { color: #F4EFFF; }

/* --- 5a. Marka: neon A.H.U ------------------------------------------ */
.side__brand { align-items: flex-start; }
.side__name { display: flex; flex-direction: column; line-height: 1; }
.side__name-1 {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 27px; font-weight: 700; letter-spacing: -.5px;
  background-image: linear-gradient(120deg, #E9D5FF, #C084FC 45%, #7C3AED);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(168,85,247,.6));
}
.side__name-2 {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 13px; letter-spacing: 2.6px; margin-top: 3px;
  color: var(--brand-dark); opacity: .92;
}
.side__mark { color: var(--brand-dark); filter: drop-shadow(0 0 12px rgba(168,85,247,.55)); }

/* --- 5b. Profil: mor halka + ad ve unvan ---------------------------- */
.top__user { display: flex; align-items: center; gap: 11px; }
.top__who { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.top__uname { font-size: 14px; font-weight: 600; color: var(--ink); }
.top__urole { font-size: 12px; color: var(--ink-faint); }
.avatar--ring {
  width: 40px; height: 40px; font-size: 15px;
  background: linear-gradient(140deg, #A855F7, #4C1D95);
  border: 2px solid rgba(192,132,252,.6);
  box-shadow: 0 0 20px rgba(168,85,247,.55);
}

/* --- Menü: aktif sekmede daha güçlü neon --------------------------- */
.side__link.is-active {
  box-shadow: 0 0 20px rgba(168,85,247,.40), inset 0 0 26px rgba(168,85,247,.16);
}
.side__link.is-active::after {
  content: ""; position: absolute; right: 0; top: 9px; bottom: 9px; width: 3px;
  border-radius: 3px; background: var(--brand-dark);
  box-shadow: 0 0 14px var(--brand), 0 0 5px var(--brand-dark);
}
.side__link { position: relative; }

/* --- Sayfa başlığı -------------------------------------------------- */
.page__title { font-size: 27px; font-weight: 700; letter-spacing: -.5px; }
.page__sub   { color: var(--ink-faint); }

@media (max-width: 640px) {
  .stat__value { font-size: 25px; }
  .stat__deco svg { width: 76px; height: 76px; }
  .top__who { display: none; }
}
