/* ==================================================================
   Akgül Technology Studio — Yönetim Paneli Tasarım Sistemi
   ================================================================== */

:root {
  --bg:        #0A111C;
  --bg-2:      #0D1726;
  --panel:     #121D2F;
  --panel-2:   #16233A;
  --line:      rgba(255, 255, 255, 0.075);
  --line-2:    rgba(255, 255, 255, 0.13);
  --text:      #E8EEF9;
  --muted:     #8E9DB4;
  --violet:    #8574FF;
  --violet-d:  #6C5CE7;
  --cyan:      #5CE1E6;
  --success:   #3DDC97;
  --warning:   #F5B84B;
  --danger:    #FF6B81;
  --info:      #63A9FF;
  --grad:      linear-gradient(118deg, #8574FF, #5CE1E6);
  /* Ana renk teması üçlüleri — panelden seçilen palet bunları ezer */
  --rgb-brand:   133, 116, 255;
  --rgb-brand-2: 92, 225, 230;
  --radius:    16px;
  --radius-sm: 10px;
  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Sora', system-ui, sans-serif;
  --sidebar:   264px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* Kaydırma çubuğu — vitrinle aynı tek tip, tema renginden türetilir */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--rgb-brand), .7) transparent;
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background-color: rgba(var(--rgb-brand), .5);
  background-image: linear-gradient(180deg, rgba(var(--rgb-brand), .95), rgba(var(--rgb-brand-2), .8));
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(var(--rgb-brand), .85);
  background-image: linear-gradient(180deg, rgba(var(--rgb-brand), 1), rgba(var(--rgb-brand-2), .95));
}
body.adm {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.adm::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 40% at 88% 0%, rgba(var(--rgb-brand), .18), transparent 65%),
    radial-gradient(45% 35% at 10% 100%, rgba(var(--rgb-brand-2), .1), transparent 65%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; color: var(--muted); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
.icon { flex: none; }

/* ---------- Shell ---------- */
.adm-shell { display: flex; min-height: 100vh; }

.adm-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  background: rgba(11, 19, 31, .92);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  z-index: 60;
  overflow: hidden;
  transition: transform .32s cubic-bezier(.22, .68, 0, 1);
}
.adm-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px 15px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
/* Marka yazısı kaldırıldı: kutucuk yerine doğrudan yazı logosu */
.adm-brand-word { display: block; min-width: 0; line-height: 0; }
.adm-brand-word img {
  display: none;
  width: auto;
  height: 32px;
  max-width: 100%;
  object-fit: contain;
}
.adm-brand-word .adm-brand-word--dk { display: block; }
[data-theme="light"] .adm-brand-word--dk { display: none; }
[data-theme="light"] .adm-brand-word--lt { display: block; }

.adm-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 12px 12px;
  scrollbar-width: none;      /* ince ekranlarda çubuğu gizle */
}
.adm-nav::-webkit-scrollbar { width: 0; height: 0; }
.adm-nav-group { margin-top: 10px; }
.adm-nav-group:first-child { margin-top: 0; }
.adm-nav-label {
  display: block;
  padding: 0 10px 5px;
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #5D6C83;
}
.adm-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  margin-bottom: 1px;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 500;
  color: #9EAEC5;
  transition: background .2s, color .2s;
  position: relative;
}
.adm-nav a:hover { background: rgba(255, 255, 255, .045); color: var(--text); }
.adm-nav a.is-active {
  background: linear-gradient(100deg, rgba(var(--rgb-brand), .22), rgba(var(--rgb-brand-2), .07));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--rgb-brand), .26);
}
.adm-nav a.is-active::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  width: 3px; height: 18px;
  transform: translateY(-50%);
  border-radius: 0 3px 3px 0;
  background: var(--grad);
}
.adm-nav a.is-active svg { color: var(--cyan); }
.adm-nav .nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
}

.adm-sidebar-foot {
  flex: none;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.adm-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
}
.adm-avatar {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(150deg, #8574FF, #5CE1E6);
  color: #08101C;
  font-weight: 700;
  font-size: .82rem;
  overflow: hidden;
}
.adm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-avatar img[hidden] { display: none; }
.adm-avatar--lg { width: 52px; height: 52px; font-size: 1.2rem; border-radius: 14px; }

/* Profil fotoğrafı düzenleyici */
.avatar-editor {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.avatar-editor-side { position: relative; flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.avatar-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.avatar-pick {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(var(--rgb-brand), .42);
  background: rgba(var(--rgb-brand), .06);
  color: var(--text);
  font-size: .84rem;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.avatar-pick:hover,
.avatar-input:focus-visible + .avatar-pick {
  border-color: rgba(var(--rgb-brand), .8);
  background: rgba(var(--rgb-brand), .12);
}
.avatar-pick svg { color: var(--violet); flex: none; }
.avatar-pick-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-editor-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar-editor-actions .hint { margin: 0; }
.adm-user-meta { min-width: 0; }
.adm-user-meta strong { display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-user-meta span { font-size: .68rem; color: var(--cyan); letter-spacing: .06em; text-transform: uppercase; }
.adm-user form { margin-left: auto; }
.adm-logout {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  transition: all .2s;
}
.adm-logout:hover { color: var(--danger); border-color: rgba(255, 107, 129, .4); background: rgba(255, 107, 129, .1); }

/* ---------- Main ---------- */
.adm-main { flex: 1; margin-left: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.adm-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 26px;
  background: rgba(10, 17, 28, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.adm-topbar h1 { margin: 0; font-size: 1.16rem; }
.adm-topbar .crumb { font-size: .72rem; color: var(--muted); letter-spacing: .05em; margin-bottom: 2px; display: block; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.adm-burger {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.adm-content { padding: 24px 26px 48px; flex: 1; }

/* ---------- Buttons ---------- */
.btn-adm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: .845rem;
  font-weight: 600;
  color: var(--text);
  transition: all .22s;
  white-space: nowrap;
}
.btn-adm:hover { transform: translateY(-1px); }
.btn-adm--primary { background: var(--grad); color: #08101C; box-shadow: 0 10px 24px -14px rgba(var(--rgb-brand),.95); }
.btn-adm--ghost { border-color: var(--line-2); background: rgba(255,255,255,.04); color: #C6D3E6; }
.btn-adm--ghost:hover { border-color: rgba(var(--rgb-brand),.5); background: rgba(var(--rgb-brand),.1); color: #fff; }
.btn-adm--danger { border-color: rgba(255,107,129,.35); background: rgba(255,107,129,.1); color: #FFB3BE; }
.btn-adm--danger:hover { background: rgba(255,107,129,.18); }
.btn-adm--sm { padding: 6px 11px; font-size: .78rem; border-radius: 8px; }
.btn-adm--icon { padding: 6px; width: 30px; height: 30px; border-radius: 8px; }
.btn-adm:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-link { color: var(--cyan); font-size: .82rem; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

/* ---------- Cards / Stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
/* Beş kartlı özet şeritleri (belge arşivi) dar ekranda kendiliğinden sarar */
.stat-grid--5 { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.stat-card {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(22, 35, 56, .78), rgba(14, 23, 38, .9));
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.stat-card:hover { border-color: rgba(var(--rgb-brand), .35); transform: translateY(-2px); }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.stat-head span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat-icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(var(--rgb-brand-2), .09);
  border: 1px solid rgba(var(--rgb-brand-2), .18);
}
.stat-icon--violet { color: var(--violet); background: rgba(var(--rgb-brand),.1); border-color: rgba(var(--rgb-brand),.22); }
.stat-icon--info { color: var(--info); background: rgba(99,169,255,.1); border-color: rgba(99,169,255,.24); }
.stat-icon--warning { color: var(--warning); background: rgba(245,184,75,.1); border-color: rgba(245,184,75,.24); }
.stat-icon--danger { color: var(--danger); background: rgba(255,107,129,.1); border-color: rgba(255,107,129,.24); }
.stat-icon--success { color: var(--success); background: rgba(61,220,151,.1); border-color: rgba(61,220,151,.22); }
.stat-value { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.stat-sub { font-size: .76rem; color: var(--muted); margin-top: 5px; }
.stat-sub b { color: var(--success); font-weight: 600; }
.stat-sub b.is-warn { color: var(--warning); }
.stat-sub b.is-danger { color: var(--danger); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(20, 32, 52, .72), rgba(13, 22, 37, .86));
  overflow: hidden;
  margin-bottom: 18px;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: .95rem; }
.panel-head .head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.panel-body { padding: 18px; }
.panel-body--flush { padding: 0; }
.panel-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }

/* ---------- Table ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.adm-table { width: 100%; border-collapse: collapse; font-size: .855rem; }
.adm-table th {
  text-align: left;
  padding: 11px 16px;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7E8DA4;
  font-weight: 600;
  background: rgba(255, 255, 255, .022);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.adm-table td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.045); vertical-align: middle; }
.adm-table tbody tr { transition: background .18s; }
.adm-table tbody tr:hover { background: rgba(var(--rgb-brand), .045); }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table .row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.adm-table .cell-strong { font-weight: 600; color: #fff; }
.adm-table .cell-sub { font-size: .75rem; color: var(--muted); }
.adm-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.table-empty svg { margin: 0 auto 12px; color: #47566D; }

.thumb {
  width: 42px; height: 42px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
}
.thumb--wide { width: 64px; height: 42px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .03em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge--success { color: #7DEBB9; background: rgba(61,220,151,.1); border-color: rgba(61,220,151,.26); }
.badge--warning { color: #FFD591; background: rgba(245,184,75,.1); border-color: rgba(245,184,75,.28); }
.badge--danger  { color: #FFA9B5; background: rgba(255,107,129,.11); border-color: rgba(255,107,129,.3); }
.badge--info    { color: #9CCBFF; background: rgba(99,169,255,.1); border-color: rgba(99,169,255,.26); }
.badge--muted   { color: #A5B3C8; background: rgba(255,255,255,.055); border-color: var(--line-2); }
.badge--violet  { color: #C3B8FF; background: rgba(var(--rgb-brand),.12); border-color: rgba(var(--rgb-brand),.3); }
/* Belge rozetleri: her kayıt türü / kategori / belge türü kendi rengiyle */
.badge--domain   { color: #9CCBFF; background: rgba(99,169,255,.12); border-color: rgba(99,169,255,.32); }
.badge--hosting  { color: #C3B8FF; background: rgba(var(--rgb-brand),.13); border-color: rgba(var(--rgb-brand),.34); }
.badge--uyelik   { color: #F5B0DC; background: rgba(233,114,198,.12); border-color: rgba(233,114,198,.32); }
.badge--komisyon { color: #FFD591; background: rgba(245,184,75,.12); border-color: rgba(245,184,75,.32); }
.badge--musteri  { color: #7DEBB9; background: rgba(61,220,151,.12); border-color: rgba(61,220,151,.3); }
.badge--finans   { color: #7FE7E0; background: rgba(45,212,191,.12); border-color: rgba(45,212,191,.32); }
.badge--fatura   { color: #FFC48F; background: rgba(255,150,80,.12); border-color: rgba(255,150,80,.32); }
.badge--makbuz   { color: #C6EF9B; background: rgba(150,220,90,.12); border-color: rgba(150,220,90,.32); }
.badge--sozlesme { color: #B3C0FF; background: rgba(120,145,255,.13); border-color: rgba(120,145,255,.32); }
.badge--diger    { color: #A5B3C8; background: rgba(255,255,255,.055); border-color: var(--line-2); }
/* Belge türü "Diğer" — kategori "Diğer"den ayrı ton (kiremit) */
.badge--belge-diger { color: #F0A48C; background: rgba(226,110,80,.12); border-color: rgba(226,110,80,.32); }
/* Kategori / tür renk anahtarı (belge arşivi) */
.doc-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: .76rem;
}
.doc-legend > .doc-legend-label { color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin-right: 2px; }
.doc-legend > .badge { text-decoration: none; }
.badge--plain::before { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: .74rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: #B7C5D9;
}

/* ---------- Gün sayacı ---------- */
.days-cell { min-width: 128px; }
.days-top { display: flex; align-items: baseline; gap: 5px; font-size: .8rem; margin-bottom: 5px; }
.days-top b { font-family: var(--font-head); font-size: .95rem; }
.days-top.is-danger b { color: var(--danger); }
.days-top.is-warning b { color: var(--warning); }
.days-top.is-success b { color: var(--success); }
.daybar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.daybar span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.daybar.is-danger span { background: linear-gradient(90deg, #FF6B81, #FF9F6B); }
.daybar.is-warning span { background: linear-gradient(90deg, #F5B84B, #FFD591); }
.daybar.is-success span { background: linear-gradient(90deg, #3DDC97, #5CE1E6); }

/* ---------- Forms ---------- */
.adm-form { display: block; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adm-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.adm-field--full { grid-column: 1 / -1; }
.adm-field label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #A4B3C9;
}
.adm-field label .req { color: var(--danger); }
.adm-field input[type="text"],
.adm-field input[type="email"],
.adm-field input[type="password"],
.adm-field input[type="number"],
.adm-field input[type="date"],
.adm-field input[type="url"],
.adm-field input[type="tel"],
.adm-field input[type="datetime-local"],
.adm-field select,
.adm-field textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(6, 12, 21, .55);
  color: var(--text);
  font-size: .89rem;
  transition: border-color .2s, box-shadow .2s;
}
.adm-field textarea { resize: vertical; min-height: 100px; line-height: 1.65; }
.adm-field input:focus, .adm-field select:focus, .adm-field textarea:focus {
  outline: none;
  border-color: rgba(var(--rgb-brand), .62);
  box-shadow: 0 0 0 3px rgba(var(--rgb-brand), .13);
}
.adm-field input::placeholder, .adm-field textarea::placeholder { color: #56657C; }
.adm-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7E8DA4 50%), linear-gradient(135deg, #7E8DA4 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.adm-field .hint { font-size: .74rem; color: #6C7B92; line-height: 1.5; }
.form-subhead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 14px;
  padding-top: 15px;
  border-top: 1px dashed var(--line-2);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet);
}
.form-subhead span {
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.adm-field .file-input {
  padding: 9px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  font-size: .82rem;
  color: #A4B3C9;
  width: 100%;
}
.adm-field .file-input::file-selector-button {
  margin-right: 10px;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: rgba(var(--rgb-brand),.15);
  color: #D6CFFF;
  font-weight: 600;
  font-size: .78rem;
  cursor: pointer;
}
/* Belge dosya kartı: tek dosya özeti (düzenleme / görüntüleme ekranları) */
.file-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--rgb-brand), .09), rgba(var(--rgb-brand-2), .04));
}
.file-card-icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(var(--rgb-brand), .16);
  border: 1px solid rgba(var(--rgb-brand), .3);
  color: #E4DEFF;
}
.file-card-body { flex: 1 1 auto; min-width: 0; }
.file-card-body strong {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-card-body > span { display: block; font-size: .75rem; color: var(--muted); }
[data-theme="light"] .file-card { background: linear-gradient(135deg, rgba(var(--rgb-brand), .06), rgba(var(--rgb-brand-2), .03)); }
[data-theme="light"] .file-card-icon { color: #4A3AB8; }
.check-row { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.check-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--violet); cursor: pointer; }
.check-row label { margin: 0; text-transform: none; letter-spacing: 0; font-size: .84rem; color: #C1CEE1; font-weight: 500; cursor: pointer; }
.check-inline { display: flex; flex-wrap: wrap; gap: 14px; }
.check-inline .check-row { padding: 7px 11px; }

/* ---------- Hizmet seçimi / eşleştirme kutuları ---------- */
.service-grid .check-row { flex: 1 1 186px; }
.match-box {
  margin: 4px 0 18px;
  padding: 16px 16px 14px;
  border: 1px dashed rgba(var(--rgb-brand),.42);
  border-radius: 14px;
  background: rgba(var(--rgb-brand),.05);
}
.match-box[hidden] { display: none; }
.match-box-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 11px; }
.match-box-head h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 600;
}
.match-box-head h3 .icon { color: var(--violet); }
.match-box-head .hint { margin: 0; }
.match-list { display: grid; gap: 8px; max-height: 268px; overflow-y: auto; padding-right: 4px; }
.match-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6,12,21,.4);
  cursor: pointer;
}
.match-item:hover { border-color: rgba(var(--rgb-brand),.45); }
.match-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--violet); cursor: pointer; flex: none; }
.match-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.match-item-main strong { font-size: .85rem; font-weight: 600; }
.match-item-main small { font-size: .73rem; color: var(--muted); }
.match-empty { margin: 0; font-size: .79rem; color: var(--muted); line-height: 1.55; }
/* Paylaşım payı (ağırlık) alanı */
.match-item:has(.match-pay) { cursor: default; }
.match-pay { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.match-pay input[type="number"] {
  width: 94px;
  padding: 6px 22px 6px 9px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(6, 12, 21, .55);
  color: var(--text);
  font-size: .82rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.match-pay input[type="number"]::-webkit-outer-spin-button,
.match-pay input[type="number"]::-webkit-inner-spin-button { opacity: .55; }
.match-pay input[type="number"]:focus {
  outline: none;
  border-color: rgba(var(--rgb-brand), .62);
  box-shadow: 0 0 0 3px rgba(var(--rgb-brand), .13);
}
.match-pay input[type="number"]:disabled { opacity: .45; }
.match-pay small { font-size: .7rem; color: var(--muted); }
.match-share { flex: none; min-width: 138px; text-align: right; font-size: .76rem; color: var(--cyan); font-variant-numeric: tabular-nums; white-space: nowrap; }
.capacity-field input[type="number"] { max-width: 190px; }

/* ---------- Hizmet kalemleri ve anlaşma hesaplayıcısı ---------- */
.match-box--static { border-style: solid; }
.match-group + .match-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.match-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.match-group-head .hint { margin: 0; }
.agree-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 38px; }
.agree-inline strong { font-family: var(--font-head); font-size: 1.02rem; color: var(--cyan); font-variant-numeric: tabular-nums; }
.agree-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.agree-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(var(--rgb-brand), .05);
}
.agree-cell span { font-size: .71rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.agree-cell strong { font-family: var(--font-head); font-size: 1.04rem; font-variant-numeric: tabular-nums; }
.agree-bar { height: 7px; margin: 14px 0 10px; border-radius: 999px; background: rgba(var(--rgb-brand), .14); overflow: hidden; }
.agree-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .35s ease; }
.agree-mini { height: 4px; margin-top: 5px; border-radius: 999px; background: rgba(var(--rgb-brand), .14); overflow: hidden; }
.agree-mini span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); }

/* ---------- Finans ---------- */
.finance-hint {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 11px 13px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(var(--rgb-brand-2),.05);
  font-size: .79rem;
  color: #A4B3C9;
  line-height: 1.55;
}
.finance-hint .icon { color: var(--cyan); flex: none; margin-top: 2px; }

/* ---------- Erişim bilgileri (şifre alanı + kopyalama) ---------- */
.field-with-btn { display: flex; gap: 8px; align-items: center; }
.field-with-btn input { flex: 1; min-width: 0; }
.access-line { display: flex; align-items: center; gap: 5px; line-height: 1.5; white-space: nowrap; }
.access-line span { overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.access-line .icon { color: var(--muted); flex: none; }
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex: none; padding: 0;
  border: 1px solid transparent; border-radius: 5px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: .15s ease;
}
.copy-btn:hover { border-color: var(--line-2); color: var(--cyan); background: rgba(var(--rgb-brand),.1); }
.copy-btn.is-copied { color: var(--success); border-color: rgba(61,220,151,.4); }

/* ---------- Ana renk teması seçici ---------- */
.theme-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
  margin: 10px 0 2px;
}
.theme-option { position: relative; display: block; cursor: pointer; }
.theme-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.theme-option-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .02);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.theme-option:hover .theme-option-inner { border-color: rgba(var(--rgb-brand), .5); }
.theme-option input:checked + .theme-option-inner {
  background: rgba(var(--rgb-brand), .1);
  box-shadow: inset 0 0 0 1.5px rgba(var(--rgb-brand), .8), 0 12px 26px -20px rgba(var(--rgb-brand), 1);
}
.theme-option input:focus-visible + .theme-option-inner {
  outline: 2px solid rgba(var(--rgb-brand), .7);
  outline-offset: 2px;
}
.theme-swatch { display: inline-flex; align-items: flex-end; gap: 2px; flex: none; }
.theme-swatch i { width: 8px; height: 26px; border-radius: 3px; background: var(--sw); }
.theme-swatch i:nth-child(1) { opacity: .4; height: 18px; }
.theme-swatch i:nth-child(2) { opacity: 1; }
.theme-swatch i:nth-child(3) { opacity: .72; height: 22px; }
.theme-name { font-size: .82rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.theme-tick {
  margin-left: auto;
  display: grid; place-items: center;
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  background: var(--grad);
  color: #08101C;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .18s, transform .18s;
}
.theme-option input:checked + .theme-option-inner .theme-tick { opacity: 1; transform: none; }

/* ---------- Yıldız puanı (yorumlar) ---------- */
.rating-stars { display: inline-flex; gap: 2px; color: rgba(255,255,255,.16); }
.rating-stars span { display: inline-flex; }
.rating-stars span.is-on { color: #F5B841; }
.rating-stars .icon { fill: currentColor; stroke: none; }

.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; }
.star-input input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.star-input label {
  display: inline-flex; padding: 2px; cursor: pointer;
  color: rgba(255,255,255,.16);
  transition: color .18s ease, transform .18s ease;
}
.star-input label .icon { fill: currentColor; stroke: none; }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: #F5B841; }
.star-input label:hover { transform: translateY(-1px) scale(1.05); }
.star-input input:focus-visible + label { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
.stat-card--income { border-color: rgba(61,220,151,.22); }
.stat-card--expense { border-color: rgba(255,107,129,.22); }
.stat-card--net { border-color: rgba(var(--rgb-brand),.3); }

/* ---------- Ücret planı düzenleyici ---------- */
.plan-editor { display: grid; gap: 12px; margin-bottom: 18px; }
.plan-rows { display: grid; gap: 14px; }
.plan-row {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.plan-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.plan-row-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
}
.plan-row-head .plan-row-title + .plan-row-hint { margin-left: auto; }
.plan-row-head .plan-row-title + .plan-row-hint + button { margin-left: 0; }
.plan-row-head .check-row { margin-left: auto; }
.plan-row-hint {
  margin-left: auto;
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.plan-row .check-row label,
.plan-row .check-row span { margin: 0; font-size: .82rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: #C1CEE1; }
.plan-row .adm-field:last-child { margin-bottom: 0; }
.plan-editor > [data-rep-add] { justify-self: start; }
.plan-editor > [data-rep-add][disabled] { opacity: .45; cursor: not-allowed; }
.plan-editor.is-full > [data-rep-add] { display: none; }
[data-theme="light"] .plan-row { background: #FFFFFF; }
[data-theme="light"] .plan-row .check-row span { color: #35415A; }

.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 8px; }
.form-actions .spacer { flex: 1; }

.img-preview {
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .76rem;
  color: var(--muted);
}
.img-preview img { max-height: 54px; border-radius: 6px; }

/* ---------- Alerts / Flash ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 11px;
  font-size: .855rem;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert svg { flex: none; margin-top: 1px; }
.alert--success { color: #A8F0CD; background: rgba(61,220,151,.09); border-color: rgba(61,220,151,.26); }
.alert--error { color: #FFC2CB; background: rgba(255,107,129,.09); border-color: rgba(255,107,129,.28); }
.alert--info { color: #BBD5FF; background: rgba(var(--rgb-brand-2),.08); border-color: rgba(var(--rgb-brand-2),.22); }
.alert--warning { color: #FFE0A8; background: rgba(245,184,75,.09); border-color: rgba(245,184,75,.28); }

/* ---------- Search / filters bar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .012);
}
.toolbar input[type="text"], .toolbar input[type="search"], .toolbar select {
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(6,12,21,.55);
  color: var(--text);
  font-size: .83rem;
}
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: rgba(var(--rgb-brand), .6); }
.toolbar .spacer { flex: 1; }

/* ---------- Filtre çubuğu (finans vb.) ---------- */
.filter-bar {
  display: grid;
  gap: 11px;
  padding: 15px 16px 13px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--rgb-brand), .07), transparent 62%),
    rgba(255, 255, 255, .012);
}
.filter-bar-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filter-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.filter-field > span {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #6C7B92;
}
.filter-field select,
.filter-field input[type="date"] {
  height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(6, 12, 21, .55);
  color: var(--text);
  font-size: .83rem;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.filter-field select { padding-right: 26px; }
.filter-field select:focus,
.filter-field input[type="date"]:focus {
  outline: none;
  border-color: rgba(var(--rgb-brand), .65);
  box-shadow: 0 0 0 3px rgba(var(--rgb-brand), .13);
}
.filter-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(.7);
  cursor: pointer;
  opacity: .8;
}
.filter-search { position: relative; flex: 1 1 230px; min-width: 180px; }
.filter-search .icon {
  position: absolute;
  left: 12px; bottom: 11px;
  color: var(--muted);
  pointer-events: none;
}
.filter-search input[type="text"] {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(6, 12, 21, .55);
  color: var(--text);
  font-size: .83rem;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.filter-search input[type="text"]:focus {
  outline: none;
  border-color: rgba(var(--rgb-brand), .65);
  box-shadow: 0 0 0 3px rgba(var(--rgb-brand), .13);
}
.filter-range { display: flex; align-items: center; gap: 7px; }
.filter-range-sep { color: #5D6C83; font-size: .82rem; }
.filter-actions { display: flex; gap: 8px; margin-left: auto; padding-bottom: 1px; }
.filter-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.filter-quick-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #5D6C83;
  margin-right: 2px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .02);
  color: #9EAEC5;
  font-size: .76rem;
  font-weight: 500;
  transition: all .18s ease;
}
.filter-chip:hover { color: var(--text); border-color: rgba(var(--rgb-brand), .5); }
.filter-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 6px 18px -10px rgba(var(--rgb-brand), .9);
}
.filter-quick .spacer { flex: 1; }

/* Seçili aralık özeti kaldırıldı; aynı sayılar üstteki özet kartlarında gösterilir */

/* ---------- Login ---------- */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  position: relative;
}
.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 40% at 20% 15%, rgba(var(--rgb-brand),.26), transparent 65%),
    radial-gradient(40% 35% at 85% 85%, rgba(var(--rgb-brand-2),.14), transparent 65%);
  z-index: -1;
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 408px;
  padding: 34px 32px 30px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: linear-gradient(170deg, rgba(21, 34, 55, .9), rgba(11, 19, 31, .95));
  box-shadow: 0 34px 80px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
}
.login-card .adm-brand { border: 0; padding: 0 0 20px; }
.login-card .adm-brand-word img { height: 34px; }
.login-card h1 { font-size: 1.32rem; margin-bottom: 6px; }
.login-card > p { font-size: .86rem; margin-bottom: 22px; }
.login-foot { text-align: center; font-size: .74rem; color: #64738A; margin-top: 22px; }
.login-theme { position: absolute; top: 14px; right: 14px; }
.login-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(var(--rgb-brand-2),.08);
  border: 1px solid rgba(var(--rgb-brand-2),.2);
  margin-bottom: 16px;
}

/* ---------- Rich text editor ---------- */
.rt-editor {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(6, 12, 21, .55);
}
.rt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}
.rt-toolbar button {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #A6B5CA;
  font-size: .8rem;
  font-weight: 600;
  transition: all .18s;
}
.rt-toolbar button:hover { background: rgba(var(--rgb-brand),.16); color: #fff; }
.rt-toolbar .sep { width: 1px; background: var(--line); margin: 4px 3px; }
.rt-area {
  min-height: 320px;
  max-height: 620px;
  overflow-y: auto;
  padding: 16px 18px;
  font-size: .92rem;
  line-height: 1.8;
  color: #C6D3E6;
  outline: none;
}
.rt-area:focus { background: rgba(6, 12, 21, .3); }
.rt-area h2 { font-size: 1.2rem; margin: 1.2em 0 .5em; color: #fff; }
.rt-area h3 { font-size: 1.03rem; color: #fff; }
.rt-area p { color: #BCC9DC; margin-bottom: .9em; }
.rt-area ul, .rt-area ol { padding-left: 20px; list-style: revert; color: #BCC9DC; }
.rt-area blockquote { border-left: 3px solid var(--violet); padding-left: 14px; color: #C3CFE2; margin: 1em 0; }
.rt-area pre { background: #08101B; border: 1px solid var(--line); padding: 12px; border-radius: 8px; overflow-x: auto; }
.rt-area code { background: rgba(var(--rgb-brand),.15); padding: 1px 5px; border-radius: 4px; font-size: .88em; }
.rt-area img { max-width: 100%; border-radius: 8px; }
.rt-area:empty::before { content: attr(data-placeholder); color: #56657C; }

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 46px 24px; }
.empty-state .icon { color: #3E4E66; margin: 0 auto 14px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { font-size: .86rem; margin-bottom: 16px; }

.mini-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .855rem;
}
.mini-list li:last-child { border-bottom: 0; }
.mini-list .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex: none; }
.mini-list .dot--danger { background: var(--danger); }
.mini-list .dot--warning { background: var(--warning); }
.mini-list time { margin-left: auto; font-size: .72rem; color: var(--muted); white-space: nowrap; }

.progress-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .82rem; }
.progress-line span:first-child { min-width: 92px; color: #A6B5CA; }
.progress-line .bar { flex: 1; height: 7px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress-line .bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.progress-line b { font-variant-numeric: tabular-nums; font-size: .78rem; color: #D3DEEF; min-width: 78px; text-align: right; }

.message-quote {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  font-size: .9rem;
  color: #C2CFE2;
  white-space: pre-line;
  line-height: 1.75;
}

.kv { display: grid; grid-template-columns: 116px 1fr; gap: 8px 14px; font-size: .86rem; }
.kv dt { color: var(--muted); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; padding-top: 2px; }
.kv dd { margin: 0; color: #D3DEEF; word-break: break-word; }

/* ---------- Sekmeler (modern segment kontrolü) ---------- */
.tabs {
  display: flex;
  gap: 6px;
  padding: 7px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tabs button, .tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}
.tabs button:hover, .tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.tabs button.is-active, .tabs a.is-active {
  background: linear-gradient(135deg, rgba(var(--rgb-brand), .28), rgba(var(--rgb-brand-2), .16));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--rgb-brand), .38), 0 8px 20px -14px rgba(var(--rgb-brand), .95);
}
.tabs .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  font-size: .68rem;
  font-weight: 700;
  color: #C9D6E8;
}
.tabs button.is-active .tab-count, .tabs a.is-active .tab-count { background: rgba(255, 255, 255, .2); color: #fff; }
/* Paneller arası geçiş yumuşak olsun */
[data-tab-panel] { animation: tabFade .22s ease; }
@keyframes tabFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* Düzenleme formları: sekme çubuğu ve kaydet çubuğu sabit durur, yalnızca panel içeriği kayar.
   (.panel üzerindeki overflow:hidden position:sticky'yi etkisiz bıraktığı için flex düzeni kullanılır) */
.adm-form--editor {
  display: flex;
  flex-direction: column;
  max-height: max(220px, calc(100vh - 220px));
}
.adm-form--editor > .panel-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.adm-form--editor > .panel-body > [data-tabs] {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.adm-form--editor > .panel-body > [data-tabs] > .tabs { flex: 0 0 auto; }
.adm-form--editor > .panel-body > [data-tabs] > [data-tab-panel] {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 2px 10px;
}
.adm-form--editor > .panel-foot {
  position: static;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 20, 33, .72), rgba(10, 17, 28, .97));
}

/* Sekmeli düzenleme paneli (.panel--editor)
   Başlık, sekme çubuğu ve kaydet çubuğu sabit kalır; yalnızca aktif sekmenin
   içeriği kayar. Belge paneli gibi form dışı bloklar aynı sekme çubuğundan
   yönetilebilsin diye form, sekme gövdesinin içinde ayrı bir bloktur. */
.panel--editor {
  display: flex;
  flex-direction: column;
  max-height: max(240px, calc(100vh - 200px));
}
.panel--editor > .panel-head { flex: 0 0 auto; }
.panel--editor > .panel-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.panel--editor > .panel-body > .tabs { flex: 0 0 auto; }
.panel--editor > .panel-body > form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.panel--editor > .panel-body > form > [data-tab-panel],
.panel--editor > .panel-body > [data-tab-panel] {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 2px 12px;
}
.panel--editor > .panel-foot {
  flex: 0 0 auto;
  position: static;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 20, 33, .72), rgba(10, 17, 28, .97));
}
/* Sekme içine gömülen paneller (belge yükleme vb.) çift çerçeve yapmasın */
.panel--editor [data-tab-panel] > .panel {
  border: 0;
  border-radius: 0;
  background: none;
  margin: 0;
}
.panel--editor [data-tab-panel] > .panel > .panel-head {
  padding-left: 0;
  padding-right: 0;
  background: none;
}
.panel--editor [data-tab-panel] > .panel > .adm-form > .panel-body {
  padding-left: 0;
  padding-right: 0;
}

/* Pasif kayıt satırları (domain / hosting) soluk görünür */
.adm-table tr.is-passive > td { opacity: .55; }
.adm-table tr.is-passive:hover > td { opacity: 1; }
.stat-icon--muted { color: var(--muted); background: rgba(148, 163, 184, .1); border-color: rgba(148, 163, 184, .24); }

/* Kısa ekranlarda (ör. küçük dizüstü / yan çevrilmiş tablet) sabit yükseklik
   yerine normal sayfa akışına dönülür; aksi halde sekme içeriği sıkışıp
   okunamaz hale gelir. */
@media (max-height: 620px) {
  .adm-form--editor,
  .panel--editor { max-height: none; }
  .panel--editor > .panel-body { overflow: visible; }
  .adm-form--editor > .panel-body > [data-tabs] > [data-tab-panel],
  .panel--editor > .panel-body > form > [data-tab-panel],
  .panel--editor > .panel-body > [data-tab-panel] {
    overflow-y: visible;
    padding-bottom: 12px;
  }
}

.denied-box {
  max-width: 520px;
  margin: 14vh auto;
  text-align: center;
  padding: 40px 28px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(20, 32, 52, .7);
}
.denied-box .code { font-family: var(--font-head); font-size: 3.4rem; font-weight: 700; color: var(--danger); line-height: 1; }

.overlay {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(4, 9, 16, .6);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

/* ==================================================================
   ONAY PENCERESİ (tarayıcı confirm yerine modern modal)
   ================================================================== */
body.adm.is-locked { overflow: hidden; }

.adm-modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 22px;
}
.adm-modal[hidden] { display: none; }

.adm-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 9, 16, .62);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s ease;
}
.adm-modal.is-open .adm-modal__backdrop { opacity: 1; }

.adm-modal__card {
  position: relative;
  width: min(432px, 100%);
  padding: 26px 26px 20px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(170deg, var(--panel), var(--bg-2));
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
  opacity: 0; transform: translateY(16px) scale(.97);
  transition: opacity .22s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
}
.adm-modal.is-open .adm-modal__card { opacity: 1; transform: none; }

.adm-modal__icon {
  width: 46px; height: 46px; margin-bottom: 14px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--danger);
  background: rgba(255, 107, 129, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 129, .32);
}
.adm-modal--info .adm-modal__icon {
  color: var(--cyan);
  background: rgba(var(--rgb-brand-2), .14);
  box-shadow: inset 0 0 0 1px rgba(var(--rgb-brand-2), .34);
}

.adm-modal__title { margin: 0 0 8px; font-size: 1.06rem; }
.adm-modal__text { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }

.adm-modal__actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end;
  margin-top: 22px;
}
.adm-modal__actions .btn-adm { min-width: 104px; }

[data-theme="light"] .adm-modal__backdrop { background: rgba(16, 24, 40, .45); }

@media (max-width: 520px) {
  .adm-modal__card { padding: 22px 18px 16px; }
  .adm-modal__actions .btn-adm { flex: 1 1 0; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .adm-modal__backdrop, .adm-modal__card { transition: none; }
}

/* ---------- Responsive ---------- */
/* Kısa ekranlarda menü daha kompakt: kaydırma çubuğu gerekmez */
@media (max-height: 840px) {
  .adm-brand { padding: 12px 16px 11px; }
  .adm-brand-word img { height: 26px; }
  .adm-nav { padding: 8px 10px 10px; }
  .adm-nav-group { margin-top: 7px; }
  .adm-nav a { padding: 6px 10px; font-size: .815rem; }
  .adm-nav-label { padding-bottom: 3px; }
  .adm-sidebar-foot { padding: 8px 10px 10px; }
  .adm-user { padding: 7px 9px; }
}
@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .adm-sidebar { transform: translateX(-100%); box-shadow: 30px 0 60px rgba(0,0,0,.4); }
  .adm-sidebar.is-open { transform: none; }
  .adm-main { margin-left: 0; }
  .adm-burger { display: inline-flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .adm-content { padding: 16px 14px 40px; }
  .adm-topbar { padding: 12px 14px; }
  .stat-grid { grid-template-columns: 1fr; }
  .panel-head { flex-wrap: wrap; }
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .adm-table td { border: 0; padding: 6px 14px; }
  .adm-table td::before {
    content: attr(data-label);
    display: block;
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6C7B92;
    margin-bottom: 2px;
  }
  .adm-table .row-actions { justify-content: flex-start; }
  .login-card { padding: 26px 20px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
}

/* ==================================================================
   TEMA DÜĞMESİ (açık / koyu)
   ================================================================== */
.adm-theme span { display: grid; place-items: center; }
.adm-theme-sun { display: none !important; }
[data-theme="light"] .adm-theme-sun { display: grid !important; }
[data-theme="light"] .adm-theme-moon { display: none !important; }

/* ==================================================================
   AÇIK TEMA
   ================================================================== */
[data-theme="light"] {
  --bg:        #F2F4FA;
  --bg-2:      #E9EDF7;
  --panel:     #FFFFFF;
  --panel-2:   #F5F7FD;
  --line:      rgba(20, 32, 56, .08);
  --line-2:    rgba(20, 32, 56, .16);
  --text:      #131F38;
  --muted:     #5C6A84;
  --violet:    #6C5CE7;
  --violet-d:  #5A49D6;
  --cyan:      #0C8B9B;
  --success:   #0B8F5F;
  --warning:   #A9700A;
  --danger:    #D0374C;
  --info:      #2A6FC4;
  --rgb-brand:   108, 92, 231;
  --rgb-brand-2: 12, 139, 155;
}

[data-theme="light"] body.adm { background: var(--bg); color: var(--text); }
[data-theme="light"] body.adm::before {
  background:
    radial-gradient(50% 40% at 88% 0%, rgba(var(--rgb-brand), .12), transparent 65%),
    radial-gradient(45% 35% at 10% 100%, rgba(var(--rgb-brand-2), .08), transparent 65%);
}

[data-theme="light"] .adm-sidebar { background: rgba(255, 255, 255, .94); }
[data-theme="light"] .adm-nav-label { color: #8592A8; }
[data-theme="light"] .adm-nav a { color: #46536B; }
[data-theme="light"] .adm-nav a:hover { background: rgba(20, 32, 56, .05); color: var(--text); }
[data-theme="light"] .adm-nav a.is-active {
  background: linear-gradient(100deg, rgba(var(--rgb-brand), .16), rgba(var(--rgb-brand-2), .06));
  color: #1A1233;
  box-shadow: inset 0 0 0 1px rgba(var(--rgb-brand), .28);
}
[data-theme="light"] .adm-nav a.is-active svg { color: var(--violet); }
[data-theme="light"] .adm-user { background: rgba(20, 32, 56, .03); }

[data-theme="light"] .adm-topbar { background: rgba(250, 251, 255, .86); }
[data-theme="light"] .adm-burger { background: rgba(20, 32, 56, .04); }

[data-theme="light"] .btn-adm--ghost { color: #35415A; background: rgba(20, 32, 56, .04); }
[data-theme="light"] .btn-adm--ghost:hover { color: #1A1233; background: rgba(var(--rgb-brand), .12); }
[data-theme="light"] .btn-adm--danger { color: #B4263A; }
[data-theme="light"] .btn-link { color: var(--violet); }

[data-theme="light"] .stat-card { background: linear-gradient(165deg, #FFFFFF, #F4F7FE); }
[data-theme="light"] .panel { background: linear-gradient(170deg, #FFFFFF, #F7F9FE); }
[data-theme="light"] .panel-head { background: rgba(20, 32, 56, .02); }
[data-theme="light"] .denied-box { background: #FFFFFF; }
[data-theme="light"] .overlay { background: rgba(16, 24, 40, .42); }

[data-theme="light"] .adm-table th { color: #68758D; background: rgba(20, 32, 56, .03); }
[data-theme="light"] .adm-table td { border-bottom-color: rgba(20, 32, 56, .07); }
[data-theme="light"] .adm-table tbody tr:hover { background: rgba(var(--rgb-brand), .05); }
[data-theme="light"] .adm-table .cell-strong { color: #101B33; }
[data-theme="light"] .table-empty svg { color: #B7C1D4; }

[data-theme="light"] .badge--success { color: #0B7A52; background: rgba(11, 143, 95, .1); border-color: rgba(11, 143, 95, .28); }
[data-theme="light"] .badge--warning { color: #8A5A00; background: rgba(169, 112, 10, .1); border-color: rgba(169, 112, 10, .3); }
[data-theme="light"] .badge--danger  { color: #B4263A; background: rgba(208, 55, 76, .09); border-color: rgba(208, 55, 76, .28); }
[data-theme="light"] .badge--info    { color: #1F5FAE; background: rgba(42, 111, 196, .09); border-color: rgba(42, 111, 196, .26); }
[data-theme="light"] .badge--muted   { color: #4B5872; background: rgba(20, 32, 56, .06); }
[data-theme="light"] .badge--violet  { color: #4A3AB8; background: rgba(var(--rgb-brand), .1); border-color: rgba(var(--rgb-brand), .28); }
[data-theme="light"] .badge--domain   { color: #1F5FAE; background: rgba(42, 111, 196, .09); border-color: rgba(42, 111, 196, .26); }
[data-theme="light"] .badge--hosting  { color: #4A3AB8; background: rgba(var(--rgb-brand), .1); border-color: rgba(var(--rgb-brand), .28); }
[data-theme="light"] .badge--uyelik   { color: #9C2A78; background: rgba(200, 52, 148, .09); border-color: rgba(200, 52, 148, .26); }
[data-theme="light"] .badge--komisyon { color: #8A5A00; background: rgba(169, 112, 10, .1); border-color: rgba(169, 112, 10, .3); }
[data-theme="light"] .badge--musteri  { color: #0B7A52; background: rgba(11, 143, 95, .1); border-color: rgba(11, 143, 95, .28); }
[data-theme="light"] .badge--finans   { color: #116A63; background: rgba(13, 148, 136, .1); border-color: rgba(13, 148, 136, .28); }
[data-theme="light"] .badge--fatura   { color: #A04A00; background: rgba(214, 106, 20, .1); border-color: rgba(214, 106, 20, .28); }
[data-theme="light"] .badge--makbuz   { color: #4A7A12; background: rgba(105, 160, 30, .1); border-color: rgba(105, 160, 30, .28); }
[data-theme="light"] .badge--sozlesme { color: #3A46A8; background: rgba(70, 88, 196, .09); border-color: rgba(70, 88, 196, .26); }
[data-theme="light"] .badge--diger    { color: #4B5872; background: rgba(20, 32, 56, .06); }
[data-theme="light"] .badge--belge-diger { color: #8C3A1E; background: rgba(180, 70, 40, .1); border-color: rgba(180, 70, 40, .28); }
[data-theme="light"] .chip { color: #41506B; background: rgba(20, 32, 56, .05); }
[data-theme="light"] .daybar { background: rgba(20, 32, 56, .09); }

[data-theme="light"] .adm-field label { color: #4B5872; }
[data-theme="light"] .adm-field input[type="text"],
[data-theme="light"] .adm-field input[type="email"],
[data-theme="light"] .adm-field input[type="password"],
[data-theme="light"] .adm-field input[type="number"],
[data-theme="light"] .adm-field input[type="date"],
[data-theme="light"] .adm-field input[type="url"],
[data-theme="light"] .adm-field input[type="tel"],
[data-theme="light"] .adm-field input[type="datetime-local"],
[data-theme="light"] .adm-field select,
[data-theme="light"] .adm-field textarea,
[data-theme="light"] .toolbar input[type="text"],
[data-theme="light"] .toolbar input[type="search"],
[data-theme="light"] .toolbar select { background: #FFFFFF; }
[data-theme="light"] .adm-field input::placeholder,
[data-theme="light"] .adm-field textarea::placeholder { color: #9AA6BC; }
[data-theme="light"] .adm-field .hint { color: #77839A; }
[data-theme="light"] .adm-field .file-input { background: #FFFFFF; color: #4B5872; }
[data-theme="light"] .adm-field .file-input::file-selector-button { color: #4A3AB8; }
[data-theme="light"] .check-row { background: #FFFFFF; }
[data-theme="light"] .rating-stars { color: rgba(20,30,60,.18); }
[data-theme="light"] .star-input label { color: rgba(20,30,60,.2); }
[data-theme="light"] .check-row label { color: #35415A; }
[data-theme="light"] .img-preview { background: #FFFFFF; }
[data-theme="light"] .toolbar { background: rgba(20, 32, 56, .015); }
[data-theme="light"] .filter-bar {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--rgb-brand), .07), transparent 62%),
    rgba(20, 32, 56, .015);
}
[data-theme="light"] .filter-field select,
[data-theme="light"] .filter-field input[type="date"],
[data-theme="light"] .filter-search input[type="text"] { background: #FFFFFF; color: #1A2540; }
[data-theme="light"] .filter-field > span,
[data-theme="light"] .filter-quick-label { color: #77839A; }
[data-theme="light"] .filter-field input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }
[data-theme="light"] .filter-chip { background: #FFFFFF; color: #4B5872; }
[data-theme="light"] .filter-chip:hover { color: #1A1233; }
[data-theme="light"] .filter-chip.is-active { color: #FFFFFF; }
[data-theme="light"] .filter-summary { background: rgba(20, 32, 56, .08); }
[data-theme="light"] .filter-summary .fs-item { background: #FFFFFF; }
[data-theme="light"] .filter-summary .fs-item em { color: #77839A; }
[data-theme="light"] .filter-summary b { color: #101B33; }
[data-theme="light"] .filter-range-sep { color: #8592A8; }
[data-theme="light"] .theme-option-inner { background: #FFFFFF; }
[data-theme="light"] .theme-name { color: #1A2540; }
[data-theme="light"] .theme-tick { color: #FFFFFF; }
[data-theme="light"] .theme-option input:checked + .theme-option-inner { background: rgba(var(--rgb-brand), .08); }

[data-theme="light"] .alert--success { color: #0B7A52; background: rgba(11, 143, 95, .09); border-color: rgba(11, 143, 95, .26); }
[data-theme="light"] .alert--error   { color: #B4263A; background: rgba(208, 55, 76, .08); border-color: rgba(208, 55, 76, .26); }
[data-theme="light"] .alert--info    { color: #1F5FAE; background: rgba(42, 111, 196, .08); border-color: rgba(42, 111, 196, .24); }
[data-theme="light"] .alert--warning { color: #8A5A00; background: rgba(169, 112, 10, .09); border-color: rgba(169, 112, 10, .28); }

[data-theme="light"] .login-card {
  background: linear-gradient(170deg, #FFFFFF, #F6F8FF);
  box-shadow: 0 30px 70px -42px rgba(20, 30, 60, .45), inset 0 1px 0 rgba(255, 255, 255, .8);
}
[data-theme="light"] .login-foot { color: #77839A; }

[data-theme="light"] .rt-editor { background: #FFFFFF; }
[data-theme="light"] .rt-toolbar { background: rgba(20, 32, 56, .03); }
[data-theme="light"] .rt-toolbar button { color: #4B5872; }
[data-theme="light"] .rt-toolbar button:hover { color: #1A1233; }
[data-theme="light"] .rt-area { color: #2A3550; }
[data-theme="light"] .rt-area:focus { background: rgba(20, 32, 56, .02); }
[data-theme="light"] .rt-area h2,
[data-theme="light"] .rt-area h3 { color: #101B33; }
[data-theme="light"] .rt-area p,
[data-theme="light"] .rt-area ul,
[data-theme="light"] .rt-area ol { color: #3B4863; }
[data-theme="light"] .rt-area blockquote { color: #35415A; }
[data-theme="light"] .rt-area pre { background: #F2F5FC; }
[data-theme="light"] .rt-area:empty::before { color: #9AA6BC; }

[data-theme="light"] .empty-state .icon { color: #C3CCDC; }
[data-theme="light"] .mini-list li { border-bottom-color: rgba(20, 32, 56, .07); }
[data-theme="light"] .progress-line span:first-child { color: #4B5872; }
[data-theme="light"] .progress-line .bar { background: rgba(20, 32, 56, .08); }
[data-theme="light"] .progress-line b { color: #2A3550; }
[data-theme="light"] .message-quote { background: rgba(20, 32, 56, .03); color: #35415A; }
[data-theme="light"] .kv dd { color: #2A3550; }
[data-theme="light"] .tabs { background: rgba(20, 32, 56, .04); }
[data-theme="light"] .tabs button.is-active,
[data-theme="light"] .tabs a.is-active { color: #1A1233; background: rgba(var(--rgb-brand), .16); }
[data-theme="light"] .adm-form--editor > .panel-foot { background: rgba(255, 255, 255, .96); }
[data-theme="light"] .panel--editor > .panel-foot { background: rgba(255, 255, 255, .96); }
[data-theme="light"] .match-item { background: #FFFFFF; border-color: rgba(20, 32, 56, .12); }
[data-theme="light"] .adm-table td::before { color: #77839A; }
[data-theme="light"] .adm-sidebar { box-shadow: none; }