/* =====================================================================
   Etik Panel — tasarım sistemi
   Mobil öncelikli, koyu/açık tema. Tüm renkler ve ölçüler değişkenlerde;
   tema <html data-theme="dark|light"> ile seçilir. Satır içi stil yok (CSP).
   ===================================================================== */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tasarım belirteçleri */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --bg: #f6f7f9;
  --bg-grad: radial-gradient(1000px 500px at 100% -10%, rgba(99,102,241,.07), transparent 60%);
  --surface: #ffffff;
  --surface-2: #f3f4f7;
  --surface-3: #eceef2;
  --border: #e5e7ec;
  --border-strong: #d5d9e0;
  --text: #0f1219;
  --text-2: #3c4352;
  --muted: #6b7384;
  --faint: #9aa1af;

  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-soft: rgba(15,118,110,.10);
  --primary-ring: rgba(15,118,110,.28);
  --on-primary: #ffffff;

  --success: #12845a; --success-soft: rgba(18,132,90,.10);
  --warning: #b25e09; --warning-soft: rgba(217,119,6,.12);
  --danger:  #c8332b; --danger-soft: rgba(200,51,43,.10);
  --info:    #1f6feb; --info-soft: rgba(31,111,235,.10);

  --shadow-sm: 0 1px 2px rgba(15,18,25,.05);
  --shadow: 0 1px 2px rgba(15,18,25,.04), 0 4px 12px rgba(15,18,25,.05);
  --shadow-lg: 0 12px 40px rgba(15,18,25,.14);

  --r-xs: 6px; --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --sidebar-w: 256px;
  --topbar-h: 60px;
  --tabbar-h: 62px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a0c10;
  --bg-grad: radial-gradient(1000px 500px at 100% -10%, rgba(45,212,191,.07), transparent 60%);
  --surface: #111419;
  --surface-2: #171b22;
  --surface-3: #1e232c;
  --border: #22272f;
  --border-strong: #2e343e;
  --text: #eceef2;
  --text-2: #c3c8d2;
  --muted: #8b93a3;
  --faint: #5f6778;

  --primary: #2dd4bf;
  --primary-hover: #5eead4;
  --primary-soft: rgba(45,212,191,.12);
  --primary-ring: rgba(45,212,191,.35);
  --on-primary: #042f2b;

  --success: #3fcf8e; --success-soft: rgba(63,207,142,.12);
  --warning: #f5b544; --warning-soft: rgba(245,181,68,.12);
  --danger:  #ff6b63; --danger-soft: rgba(255,107,99,.12);
  --info:    #5ea8ff; --info-soft: rgba(94,168,255,.12);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.25);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.55);
  color-scheme: dark;
}

/* ---------- temel */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; font: 400 14.5px/1.55 var(--font); color: var(--text);
  background: var(--bg-grad), var(--bg); background-attachment: fixed;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.011em; font-weight: 650; }
p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 600; }
code, .mono { font-family: var(--mono); font-size: .86em; }
code { background: var(--surface-3); padding: .12em .4em; border-radius: var(--r-xs); word-break: break-all; color: var(--text-2); }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
::selection { background: var(--primary-ring); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-xs); }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small, small { font-size: .85em; }
.danger { color: var(--danger); }
.success { color: var(--success); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt { margin-top: 16px; } .mt-xs { margin-top: 6px; } .mb { margin-bottom: 16px; }
.hidden { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- ikon */
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.85;
        stroke-linecap: round; stroke-linejoin: round; vertical-align: -3.5px; }
.icon-sm { width: 15px; height: 15px; vertical-align: -2.5px; }
.icon-lg { width: 22px; height: 22px; }
.chip-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none;
             background: var(--surface-3); color: var(--text-2); }
.chip-icon .icon { width: 18px; height: 18px; }
.tone-primary { background: var(--primary-soft); color: var(--primary); }
.tone-success { background: var(--success-soft); color: var(--success); }
.tone-warning { background: var(--warning-soft); color: var(--warning); }
.tone-danger  { background: var(--danger-soft);  color: var(--danger); }
.tone-info    { background: var(--info-soft);    color: var(--info); }

/* =====================================================================
   İskelet: kenar çubuğu + üst çubuk + içerik + (mobil) alt sekme çubuğu
   ===================================================================== */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }

.sidebar {
  width: var(--sidebar-w); flex: none; position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; gap: 6px; padding: 16px 12px;
  background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 14px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #2dd4bf, #0f766e 55%, #134e4a); color: #fff;
  font-weight: 800; font-size: 15px; letter-spacing: -.02em; box-shadow: 0 4px 14px rgba(15,118,110,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand-sub { font-size: 11.5px; color: var(--muted); }

.nav-group { display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 10px 12px 6px; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 8.5px 12px;
  border-radius: var(--r-sm); color: var(--text-2); font: inherit; font-weight: 500; background: none; border: 0;
  cursor: pointer; text-align: left; transition: background .12s, color .12s;
}
.nav-link .icon { color: var(--muted); transition: color .12s; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link:hover .icon { color: var(--text-2); }
.nav-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-link.active .icon { color: var(--primary); }
.nav-link.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary);
}
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.user-card {
  display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border);
  border-radius: var(--r); background: var(--surface-2);
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #5eead4, #0f766e); color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase;
}
.user-meta { flex: 1; min-width: 0; line-height: 1.25; }
.user-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-status { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  min-height: var(--topbar-h); padding: 10px 32px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border);
}
.topbar-titles { flex: 1; min-width: 0; }
.topbar-title { font-size: 16px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.content { width: 100%; max-width: 1320px; padding: 28px 32px 48px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); flex: none;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: background .12s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.icon-btn.ghost:hover { background: var(--surface-3); }
[data-theme="dark"] .theme-icon-light, :root:not([data-theme="dark"]) .theme-icon-dark { display: none; }

.only-mobile { display: none !important; }
.backdrop { display: none; }
.tabbar { display: none; }

@media (max-width: 1023px) {
  .only-mobile { display: inline-grid !important; }
  .only-desktop { display: none !important; }
  .sidebar {
    position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: min(300px, 86vw);
    transform: translateX(-105%); transition: transform .22s cubic-bezier(.2,.8,.2,1);
    box-shadow: var(--shadow-lg); padding-top: max(16px, env(safe-area-inset-top));
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(5,7,10,.5); backdrop-filter: blur(2px); }
  body.nav-open { overflow: hidden; }
  .topbar { padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); min-height: 56px; }
  .content { padding: 18px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }

  /* Alt sekme çubuğu */
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--border);
  }
  .tabbar-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); font: inherit; font-size: 11px; font-weight: 500; background: none; border: 0; cursor: pointer;
  }
  .tabbar-item .icon { width: 22px; height: 22px; }
  .tabbar-item.active { color: var(--primary); font-weight: 600; }
}

/* =====================================================================
   Sayfa başlığı, kartlar, ızgaralar
   ===================================================================== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.page-sub { color: var(--muted); margin-top: 4px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 18px; overflow: hidden;
}
.card-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-header.plain { border-bottom: 0; padding-bottom: 4px; }
.card-titles { flex: 1; min-width: 0; }
.card-title { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 18px 20px; }
.card-body.flush { padding: 0; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 13px; color: var(--muted); }
.card.highlight { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: 0 0 0 3px var(--primary-soft); }
.card.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }

.grid { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.dash-grid > * { grid-column: span 4; min-width: 0; }
.dash-grid > .wide { grid-column: 1 / -1; }
.dash-grid .card { margin: 0; height: 100%; }
@media (max-width: 1180px) { .dash-grid > * { grid-column: span 6; } }
@media (max-width: 720px) { .dash-grid { gap: 14px; } .dash-grid > * { grid-column: 1 / -1; } }

/* ---------- KPI kutucukları */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; margin-bottom: 22px; }
.stat {
  position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  color: var(--text); transition: border-color .12s, transform .12s;
}
a.stat:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.stat-body { min-width: 0; }
.stat-label { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.stat-value { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-hint { font-size: 12px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat .arrow { position: absolute; right: 14px; top: 14px; color: var(--faint); opacity: 0; transition: opacity .12s; }
a.stat:hover .arrow { opacity: 1; }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { flex-direction: column; gap: 10px; padding: 14px; }
  .stat-value { font-size: 19px; }
}

/* ---------- karşılama */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-title { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.hero-sub { color: var(--muted); margin-top: 4px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 550;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
@media (max-width: 560px) { .hero-title { font-size: 21px; } }

/* ---------- yerleşim yardımcıları */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.narrow { max-width: 560px; }
.split { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* =====================================================================
   Formlar
   ===================================================================== */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 550; color: var(--text-2); }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.input {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); padding: 9px 12px; min-height: 40px; transition: border-color .12s, box-shadow .12s;
  box-shadow: var(--shadow-sm);
}
.input::placeholder { color: var(--faint); }
.input:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--border-strong)); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
select.input { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input-code { font-family: var(--mono); font-size: 20px; letter-spacing: .3em; text-align: center; max-width: 240px; padding: 10px; }
.auth-card .input-code { max-width: none; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon .input { padding-left: 36px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; color: var(--text-2); }
.check input { width: 17px; height: 17px; accent-color: var(--primary); margin: 0; }

.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 40px; height: 23px; border-radius: 999px; background: var(--border-strong); transition: background .15s; flex: none; margin-top: 1px; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .18s cubic-bezier(.2,.8,.2,1); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(17px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--primary-ring); }
.switch-text { display: flex; flex-direction: column; gap: 1px; }
.switch-title { font-weight: 550; color: var(--text); }
.switch-desc { font-size: 12.5px; color: var(--muted); }

.form-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.form-row:first-child { padding-top: 0; }
.form-row:last-of-type { border-bottom: 0; }
.form-row-label .label { font-size: 13.5px; color: var(--text); }
.form-row-label .hint { margin-top: 3px; }
@media (max-width: 760px) { .form-row { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--border); margin-top: 4px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters > * { flex: 1 1 170px; width: auto; }
.filters .grow { flex: 3 1 240px; }

/* =====================================================================
   Butonlar
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: 13.5px; font-weight: 550;
  padding: 8px 14px; min-height: 38px; border-radius: var(--r-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: background .12s, border-color .12s, box-shadow .12s, transform .06s;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.disabled { opacity: .5; pointer-events: none; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { padding: 5px 10px; min-height: 31px; font-size: 12.5px; }
.btn-lg { min-height: 44px; font-size: 14.5px; padding: 10px 18px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; box-shadow: none; color: var(--primary); padding: 4px 0; min-height: 0; font-weight: 550; }
.btn-link:hover { background: none; text-decoration: underline; color: var(--primary-hover); }
.btn-link.danger { color: var(--danger); }
.htmx-request.btn, .htmx-request .btn, .btn.htmx-request { opacity: .65; pointer-events: none; }

/* =====================================================================
   Geri bildirim: uyarı, bildirim (toast), rozet, durum noktası
   ===================================================================== */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--r); margin-bottom: 14px; border: 1px solid transparent; font-size: 13.5px; }
.alert .icon { margin-top: 1px; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 22%, transparent); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 22%, transparent); }
.alert-danger  { background: var(--danger-soft);  color: var(--danger);  border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.alert-info    { background: var(--info-soft);    color: var(--info);    border-color: color-mix(in srgb, var(--info) 22%, transparent); }

.toasts { position: fixed; z-index: 100; top: calc(var(--topbar-h) + 12px); right: 20px; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 13.5px;
  animation: toast-in .25s cubic-bezier(.2,.8,.2,1);
}
.toast .chip-icon { width: 26px; height: 26px; border-radius: 8px; }
.toast .chip-icon .icon { width: 15px; height: 15px; }
.toast-text { flex: 1; padding-top: 2px; }
.toast .icon-btn { width: 26px; height: 26px; margin: -2px -4px 0 0; }
.toast.fade { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@media (max-width: 1023px) { .toasts { top: auto; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); right: 16px; left: 16px; width: auto; } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 550; white-space: nowrap; background: var(--surface-3); color: var(--text-2); line-height: 1.6; }
.badge .icon { width: 13px; height: 13px; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-info    { background: var(--info-soft);    color: var(--info); }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
a.badge:hover { filter: brightness(1.05); }
.spinner { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.dot-ok { background: var(--success); } .dot-bad { background: var(--danger); } .dot-warn { background: var(--warning); }
.dot-ok::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--success); opacity: .25; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =====================================================================
   Sekmeler (yatay) ve yan menü (dikey)
   ===================================================================== */
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 20px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .icon { width: 16px; height: 16px; }

.side-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--topbar-h) + 24px); }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; border: 1px solid transparent; }
.side-nav a .icon { color: var(--muted); }
.side-nav a:hover { background: var(--surface-3); color: var(--text); }
.side-nav a.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); border-color: var(--border); }
.side-nav a.active .icon { color: var(--primary); }
@media (max-width: 900px) {
  .side-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 -16px 18px; padding: 0 16px 2px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { flex: none; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13px; }
  .side-nav a.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
  .side-nav a.active .icon { color: var(--on-primary); }
  .side-nav a .icon { width: 15px; height: 15px; }
}

/* =====================================================================
   Tablolar — telefonda kartlara dönüşür
   ===================================================================== */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table td.actions { text-align: right; white-space: nowrap; }
.table td.actions form { display: inline; }
.cell-main { font-weight: 600; color: var(--text); }
.cell-sub { font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) {
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tbody { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
  .rtable tr { border: 1px solid var(--border); border-radius: var(--r); padding: 4px 14px; background: var(--surface); }
  .rtable tbody tr:hover { background: var(--surface); }
  .rtable td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; border: 0; padding: 8px 0; text-align: right; border-bottom: 1px dashed var(--border); }
  .rtable tr td:last-child { border-bottom: 0; }
  .rtable td[data-label]::before { content: attr(data-label); font-size: 12.5px; font-weight: 550; color: var(--muted); text-align: left; flex: none; }
  .rtable td.primary-cell { display: block; text-align: left; padding: 12px 0 10px; }
  .rtable td.primary-cell::before { display: none; }
  .rtable td.actions { justify-content: flex-end; padding: 10px 0 12px; }
  .rtable td.actions form, .rtable td.actions .btn { flex: 1; }
  .rtable td.actions form .btn { width: 100%; }
}

/* =====================================================================
   Listeler, tanım listeleri, ölçerler
   ===================================================================== */
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--text); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.kv.left dd { text-align: left; }

.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.status-list li:first-child { padding-top: 0; }
.status-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.status-list .grow { flex: 1; font-weight: 500; }

.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.event-list li:last-child { border-bottom: 0; }
.event-body { flex: 1; min-width: 0; }
.event-msg { overflow-wrap: anywhere; font-size: 13.5px; }
.event-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.steps li::before { content: counter(step); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--primary-soft); color: var(--primary); margin-top: -1px; }
.plain-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plain-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 13.5px; }
.plain-list li .icon { color: var(--muted); margin-top: 2px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }

.meter { margin-bottom: 14px; }
.meter-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.meter-head span { color: var(--muted); }
.meter-head b { font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: 6px; appearance: none; border: 0; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--surface-3); }
progress::-webkit-progress-value { background: linear-gradient(90deg, #5eead4, var(--primary)); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--primary); border-radius: 99px; }
progress.warn::-webkit-progress-value { background: var(--warning); }
progress.warn::-moz-progress-bar { background: var(--warning); }
progress.bad::-webkit-progress-value { background: var(--danger); }
progress.bad::-moz-progress-bar { background: var(--danger); }

/* =====================================================================
   Loglar ve kod blokları
   ===================================================================== */
.log-list { display: flex; flex-direction: column; }
.log-row { border-bottom: 1px solid var(--border); position: relative; }
.log-row:last-child { border-bottom: 0; }
.log-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.log-row.level-warning::before { background: var(--warning); }
.log-row.level-error::before, .log-row.level-critical::before { background: var(--danger); }
.log-row summary { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 11px 20px; cursor: pointer; list-style: none; }
.log-row summary::-webkit-details-marker { display: none; }
.log-row summary:hover { background: var(--surface-2); }
.log-row[open] summary { background: var(--surface-2); }
.log-msg { min-width: 0; overflow-wrap: anywhere; font-size: 13.5px; }
.log-meta { font-size: 12px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.log-row .pre { margin: 0 20px 14px; }
@media (max-width: 640px) {
  .log-row summary { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 11px 16px; }
  .log-row summary .badge { grid-row: 1; grid-column: 1; justify-self: start; }
  .log-row summary .log-meta { grid-row: 1; grid-column: 2; }
  .log-row summary .log-msg { grid-column: 1 / -1; }
  .log-row .pre { margin: 0 16px 14px; }
}
.pre { font-family: var(--mono); font-size: 12px; line-height: 1.6; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; overflow: auto; white-space: pre-wrap; word-break: break-word; max-height: 420px; margin: 0; color: var(--text-2); }
.pre-tall { max-height: 68vh; }
.terminal { background: #0b0e13; color: #c9d1d9; border: 0; border-radius: 0; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); }
.count-line { font-size: 12.5px; color: var(--muted); }

/* =====================================================================
   2FA kurulumu, kodlar
   ===================================================================== */
.setup-grid { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; margin-top: 20px; }
@media (max-width: 640px) { .setup-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .setup-grid .input-code { margin: 0 auto; } .setup-grid .secret-box, .setup-grid .row { justify-content: center; } }
.qr { background: #fff; border-radius: var(--r); padding: 10px; border: 1px solid var(--border); display: block; }
.secret-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.secret { font-family: var(--mono); font-size: 13.5px; letter-spacing: .08em; background: var(--surface-3); padding: 7px 10px; border-radius: var(--r-sm); color: var(--text); }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); gap: 8px; margin: 14px 0; }
.codes code { font-size: 14px; text-align: center; padding: 9px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }

/* =====================================================================
   Boş durum, hata sayfası
   ===================================================================== */
.empty { text-align: center; padding: 56px 20px; }
.empty .chip-icon { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px; }
.empty .chip-icon .icon { width: 22px; height: 22px; }
.empty h2 { font-size: 18px; margin-bottom: 6px; }
.empty.small { padding: 36px 20px; color: var(--muted); font-size: 13.5px; }
.empty-code { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px;
              background: linear-gradient(135deg, #a5a5ff, var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =====================================================================
   Giriş ekranı
   ===================================================================== */
.auth-body { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); }
.auth-aside {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px;
  color: #e6fffb; background: radial-gradient(800px 500px at 0% 0%, #0f766e 0%, transparent 60%),
    radial-gradient(700px 500px at 100% 100%, #155e75 0%, transparent 55%), #04201d;
}
.auth-aside::after {
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 70%);
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .brand-name { color: #fff; }
.auth-aside .brand-sub { color: rgba(230,255,251,.65); }
.auth-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px !important; font-weight: 600; color: #5eead4 !important; margin: 0 0 14px !important; }
.auth-pitch h2 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; color: #fff; max-width: 440px; }
.auth-pitch p { color: rgba(230,255,251,.74); margin-top: 14px; max-width: 420px; font-size: 15px; }
.auth-features { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-features li { display: flex; gap: 12px; align-items: center; color: rgba(230,255,251,.88); font-size: 14px; }
.auth-features .chip-icon { background: rgba(255,255,255,.1); color: #fff; width: 30px; height: 30px; border-radius: 9px; }
.auth-features .chip-icon .icon { width: 16px; height: 16px; }
.auth-foot { font-size: 12.5px; color: rgba(230,255,251,.55); }
.auth-foot a { color: rgba(230,255,251,.8); }
.auth-foot a:hover { color: #fff; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.auth-card { width: 100%; max-width: 380px; }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
.auth-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.auth-sub { color: var(--muted); margin: 6px 0 24px; }
.auth-meta { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--faint); display: flex; align-items: center; justify-content: center; gap: 6px; }
.auth-theme { position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px; }
@media (max-width: 900px) {
  .auth-body { grid-template-columns: 1fr; background: var(--bg-grad), var(--bg); }
  .auth-aside { display: none; }
  .auth-mobile-brand { display: flex; }
  .auth-main { align-items: start; padding-top: max(64px, calc(env(safe-area-inset-top) + 40px)); }
}

/* ================================================================ Reels Studyo */
.mb { margin-bottom: 14px; }
.text { color: var(--text); }
.dash-grid > .half { grid-column: span 6; }
@media (max-width: 720px) { .dash-grid > .half { grid-column: 1 / -1; } }

/* Araç çubuğu + segment (durum filtresi) */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 550; color: var(--muted); text-decoration: none; white-space: nowrap; }
.segmented a:hover { color: var(--text); }
.segmented a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented .count { font-size: 11px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); line-height: 1.6; }
.segmented a.active .count { background: var(--primary-soft); color: var(--primary); }

/* Toplu işlem çubuğu */
.bulk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); position: sticky; top: calc(var(--topbar-h) + 6px); z-index: 5; box-shadow: var(--shadow-sm); }
.bulk-bar .check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }

/* Konu kartları */
.topic-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; }
@media (max-width: 560px) { .topic-list { grid-template-columns: minmax(0, 1fr); } }
.topic { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); scroll-margin-top: 90px; transition: border-color .15s; }
.topic:has(.topic-check:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.topic.editing { grid-column: 1 / -1; }
.topic-head { display: flex; gap: 12px; align-items: flex-start; }
.topic-check { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.topic-title { font-size: 15px; font-weight: 650; line-height: 1.4; margin: 0; }
.topic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: 12.5px; }
.topic-meta .icon-sm { width: 13px; height: 13px; vertical-align: -2px; }
.topic-body { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 13.5px; line-height: 1.5; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-sm); }
.topic-body dt { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding-top: 2px; }
.topic-body dd { margin: 0; color: var(--text-2); }
.topic-sources summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.topic-sources ul { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; word-break: break-all; }
.topic-video { font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.topic-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.queue-no { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 700; flex: none; }

/* Sıra listesi ve canlı işler */
.queue-list, .job-live { list-style: none; margin: 0; padding: 0; }
.queue-list li { display: flex; gap: 12px; align-items: center; padding: 11px 20px; border-top: 1px solid var(--border); }
.queue-list li:first-child { border-top: 0; }
.job-live li { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.job-live li + li { border-top: 1px solid var(--border); }
.job-live .chip-icon .icon { animation: none; }
.job-live .tone-info .icon { animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.grow { flex: 1; min-width: 0; }

/* Video ızgarası (dikey kapaklar) */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.video-grid.compact { grid-template-columns: repeat(auto-fill, minmax(130px, 170px)); }
@media (max-width: 720px) { .video-grid, .video-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.video-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; min-width: 0; }
.video-thumb { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: linear-gradient(160deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--border); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.video-card:hover .video-thumb img { transform: scale(1.03); }
.video-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.video-ph .icon { width: 28px; height: 28px; }
.video-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.72); color: #fff; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.video-state { position: absolute; left: 8px; top: 8px; }
.video-title { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Video ayrıntı */
.video-detail { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .video-detail { grid-template-columns: minmax(0, 1fr); } }
.video-player video, .video-ph.big { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-lg); background: #000; display: block; box-shadow: var(--shadow); }
.video-ph.big { position: relative; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--border); }
@media (max-width: 900px) { .video-player { max-width: 380px; margin: 0 auto; width: 100%; } }
.pre.wrap { white-space: pre-wrap; word-break: break-word; }

/* Ayarlar */
.settings-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .settings-cols { grid-template-columns: minmax(0, 1fr); } }
.settings-cols .card { margin: 0; }
.time-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.inline-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-fields > * { flex: 1 1 120px; }
.input-suffix { display: flex; align-items: center; gap: 8px; }
.input-suffix .input { max-width: 110px; }
.input-suffix span { color: var(--muted); font-size: 13px; }
.key-row { display: flex; flex-direction: column; gap: 8px; }
.key-row + .key-row { border-top: 1px solid var(--border); padding-top: 16px; }
.key-row .hint { margin: 0; }
.topic-actions .push-right { margin-left: auto; }
.time-slots { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
/* Reels ana şalter + kota */
.power-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; border: 1px solid var(--border); transition: background .15s, color .15s; }
.power-btn .icon { width: 16px; height: 16px; }
.power-btn.on { background: var(--success-soft); color: var(--success); border-color: transparent; }
.power-btn.off { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.power-btn:hover { filter: brightness(1.1); }
.paused-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 18px; border-radius: var(--r-lg); background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.paused-banner .cell-sub { margin-top: 2px; }
.quota-big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.quota-big b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.quota-big span { color: var(--muted); font-size: 13px; }
.warning { color: var(--warning); }
.settings-cols .stack > .card { margin: 0; }
/* Konu dosyaları */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topic-files { display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.file-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.file-thumb { position: relative; margin: 0; flex: none; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-kind { position: absolute; left: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px; border-radius: 5px; background: rgba(0,0,0,.7); color: #fff; font-size: 10.5px; font-weight: 600; }
.file-kind .icon { width: 11px; height: 11px; }
.file-del { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; opacity: .85; }
.file-del .icon { width: 13px; height: 13px; }
.file-thumb form { margin: 0; }
.upload-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.upload-form .input-sm { height: 32px; font-size: 13px; min-width: 180px; }
.upload-form label.btn { cursor: pointer; }
.upload-progress { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px; }
.upload-progress.error span { color: var(--danger); }
.upload-hint { flex-basis: 100%; }
/* Server sayfası */
.summary-header { cursor: pointer; list-style: none; }
.summary-header::-webkit-details-marker { display: none; }
.summary-chevron { transition: transform .15s; color: var(--muted); }
details[open] .summary-chevron { transform: rotate(90deg); }
.topic, .topic-files, .file-strip, .upload-form { min-width: 0; max-width: 100%; }
.upload-form .input-sm { flex: 1 1 180px; min-width: 0; }
@media (max-width: 640px) { .upload-form label.btn { flex: 1 1 100%; justify-content: center; } }
/* Uzun açıklamalı istatistikler mobilde sütunu genişletmesin */
.stat, .stat-body { min-width: 0; }
.stat-body { align-self: stretch; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.srv-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.srv-alerts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.srv-alert { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); font-size: 13px; min-width: 0; }
.srv-alert b { flex: none; } .srv-alert span { color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.srv-alert .icon { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.srv-alert.lv-warn .icon { color: var(--warning); } .srv-alert.lv-bad .icon { color: var(--danger); }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.srv-card { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .12s, transform .12s; }
.srv-card:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.srv-card.has-alert { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); }
.srv-card.offline { border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); }
.srv-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.srv-titles { min-width: 0; flex: 1; }
.srv-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-temp { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--muted); }
.status-dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.status-dot.on { background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 20%, transparent); }
.status-dot.off { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 20%, transparent); }
.status-dot.on.warn { background: var(--warning); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 20%, transparent); }
.srv-bar { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.srv-bar-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.srv-bar-head > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.srv-bar-head b { color: var(--text); font-variant-numeric: tabular-nums; flex: none; }
.srv-bar progress, .disk-cell progress { width: 100%; height: 6px; }
.lv-warn { color: var(--warning) !important; } .lv-bad { color: var(--danger) !important; }
.srv-foot { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.srv-foot:empty { display: none; }
.srv-foot span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.srv-foot .icon { width: 13px; height: 13px; flex: none; }
.srv-offline { color: var(--danger); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.srv-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.spark { width: 100%; height: 30px; margin: 2px 0 4px; color: var(--primary); display: block; }
.spark.alt { color: var(--success); } .spark.alt2 { color: var(--warning); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv { grid-template-columns: minmax(72px, max-content) minmax(0, 1fr); gap: 8px 12px; font-size: 13px; } }
.disk-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.disk-cell b { font-variant-numeric: tabular-nums; }
.srv-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.srv-mini-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r); color: var(--text); font-size: 13px; min-width: 0; }
.srv-mini-item:hover { border-color: var(--border-strong); color: var(--text); }
.srv-mini-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-mini-val { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.disk-cell progress { flex: 1; min-width: 90px; }
/* Özel konu */
.custom-topic { margin-bottom: 14px; }
.custom-topic-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.custom-topic-form .chip-icon { margin-bottom: 2px; }
.custom-topic-form .field.grow { flex: 1 1 260px; min-width: 0; }
.custom-topic-form .field.adet { flex: 0 0 110px; }
@media (max-width: 640px) {
  .custom-topic-form .chip-icon { display: none; }
  .custom-topic-form .field.adet { flex: 1 1 90px; }
  .custom-topic-form .btn { flex: 1 1 120px; justify-content: center; }
}
.custom-running { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.custom-running .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-running .icon { animation: spin 1.2s linear infinite; }
.theme-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.theme-chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 550; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--primary-soft, rgba(15,118,110,.12)); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.chip .icon { width: 13px; height: 13px; }
.chip .count { font-size: 11.5px; opacity: .8; }
.btn-danger-ghost { color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft, rgba(220,38,38,.1)); color: var(--danger); }
.srv-stats { margin-bottom: 12px; }
.srv-summary .icon { width: 13px; height: 13px; vertical-align: -2px; }

/* ---------- Müşteri & Finans */
.min0 { min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-right { text-align: right; }
.lv-ok { color: var(--success) !important; }
.muted-row { opacity: .6; }
.search-bar { display: flex; gap: 8px; flex: 1 1 320px; min-width: 0; flex-wrap: wrap; }
.search-bar select.input { flex: 0 1 170px; min-width: 0; }
.search-input { position: relative; flex: 1 1 200px; min-width: 0; display: block; }
.search-input .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.search-input .input { padding-left: 34px; width: 100%; }
.export-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin: 10px 0 18px; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; overflow-wrap: anywhere; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); align-items: center; margin-bottom: 4px; }
.detail-meta > a, .detail-meta > span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.detail-meta .icon { width: 14px; height: 14px; flex: none; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.note-box { margin-top: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.money-row { display: flex; gap: 8px; min-width: 0; }
.money-row .input:first-child { flex: 1; min-width: 0; }
.money-row select.input { flex: 0 0 86px; }
.ledger-forms { align-items: start; }
.mini-form > summary { list-style: none; display: inline-flex; cursor: pointer; }
.mini-form > summary::-webkit-details-marker { display: none; }
.mini-form[open] > summary { margin-bottom: 12px; }
.mini-form form { padding: 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
.grid-2.tight { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.renew-form { display: inline-flex !important; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.danger-zone { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
.form-card { max-width: 860px; }
.section-title { font-size: 14px; font-weight: 650; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.btn-success { background: var(--success); color: #fff; border-color: transparent; }
.btn-success:hover { filter: brightness(1.08); color: #fff; }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.sm .icon { width: 15px; height: 15px; }
.q-items { display: flex; flex-direction: column; gap: 12px; }
.q-item { border: 1px solid var(--border); border-radius: var(--r); padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.q-item-main { display: flex; gap: 8px; align-items: center; }
.q-item-main .input { flex: 1; min-width: 0; font-weight: 550; }
.q-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); gap: 10px; }
.q-item-grid .label { font-size: 11.5px; }
.status-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-actions form { margin: 0; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; margin: 0; padding: 16px 20px; border-top: 1px solid var(--border); font-size: 14px; max-width: 460px; margin-left: auto; }
.totals dt { color: var(--muted); text-align: right; } .totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 17px; font-weight: 700; color: var(--text); padding-top: 8px; border-top: 1px solid var(--border); }
.type-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.type-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.type-list li span { display: inline-flex; align-items: center; gap: 8px; } .type-list .icon { width: 15px; height: 15px; color: var(--muted); }
.type-list form { margin: 0; }
.logo-preview { max-height: 70px; max-width: 100%; background: #fff; padding: 8px; border-radius: var(--r); border: 1px solid var(--border); align-self: flex-start; }
@media (max-width: 480px) { .hide-xs { display: none; } }
@media (max-width: 760px) {
  .rtable td.actions .renew-form { width: 100%; justify-content: space-between; }
  .detail-actions { width: 100%; } .detail-actions .btn { flex: 1; justify-content: center; }
  .totals { max-width: none; padding: 14px 16px; }
}
ul.list { list-style: none; margin: 0; padding: 0; }
.card-body.flush > ul.list { padding: 12px; }
.list.compact .list-row { padding: 7px 10px; font-size: 13px; }
.list-row .cell-main { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .cell-sub { overflow-wrap: anywhere; }
/* Kart görünümünde hücre değeri tek blok (bölünmesin) */
.rtable td .v { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .rtable td[data-label] .v { text-align: right; } .rtable td[data-label] .v .disk-cell { justify-content: flex-end; } }
/* "Kaç ayda bir" yalnız Özel periyot seçiliyken */
.q-item .months-field, .period-fields .months-field { display: none; }
.q-item:has(select[name=item_period] option[value=custom]:checked) .months-field,
.period-fields:has(select[name=period] option[value=custom]:checked) .months-field { display: flex; }
.ledger-forms { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.ledger-forms details[open] { flex: 1 1 100%; order: -1; }

/* Sunucu detayı: sıkı listeler (tablo kartlarından daha az yer kaplar) */
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.srv-list { list-style: none; margin: 0; padding: 4px 0; }
.srv-row { padding: 10px 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.srv-row:first-child { border-top: 0; }
.srv-row-top, .srv-row-sub { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.srv-row-top { font-size: 13.5px; } .srv-row-top > :first-child { min-width: 0; }
.srv-row-sub { font-size: 12px; color: var(--muted); } .srv-row-sub > :first-child { min-width: 0; }
.srv-row progress { width: 100%; height: 6px; }
.srv-row .status-dot { display: inline-block; vertical-align: middle; }
.proc-table { padding: 6px 0; font-size: 13px; }
.proc-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; gap: 10px; padding: 7px 18px; border-top: 1px solid var(--border); align-items: center; }
.proc-row > :not(:first-child) { text-align: right; }
.proc-head { border-top: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.proc-row code { font-size: 12px; }
@media (max-width: 480px) { .srv-row, .proc-row { padding-left: 14px; padding-right: 14px; } .proc-row { grid-template-columns: minmax(0, 1fr) 54px 54px; } }
/* Bildirimler */
.notif-list { display: flex; flex-direction: column; gap: 0; padding-top: 6px; padding-bottom: 6px; }
.notif-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--border); }
.notif-item:first-child { border-top: 0; }
.notif-item .switch { flex: 1; min-width: 0; }
.notif-count { flex: none; margin-top: 2px; }
.notif-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.notif-history li { padding: 10px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.notif-history li:first-child { border-top: 0; }
.notif-h-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.notif-h-text { font-size: 13px; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sticky-actions { position: sticky; bottom: 8px; z-index: 5; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 14px; box-shadow: var(--shadow-md, 0 4px 14px rgba(0,0,0,.25)); flex-wrap: wrap; align-items: center; }
@media (max-width: 1023px) { .sticky-actions { bottom: calc(var(--tabbar-h) + 8px + env(safe-area-inset-bottom)); } }
/* iOS, 16 px'ten küçük yazılı kutuya dokununca sayfayı büyütür ve yana kaydırılabilir hâle getirir: telefonda 16 px */
@media (max-width: 760px) { .input, select.input, textarea.input { font-size: 16px; } }
/* Son güvence: hiçbir öğe sayfayı yana kaydıramasın (iç kaydırmalı alanlar kendi içinde kayar) */
html, body { max-width: 100%; overflow-x: clip; }
/* Host */
.host-chips { margin-bottom: 12px; }
.host-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.host-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg, 14px); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; box-shadow: var(--shadow-sm); }
.host-card.host-bad { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.host-card.host-warn { border-color: color-mix(in srgb, var(--warning) 40%, var(--border)); }
.host-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.host-name { display: block; font-weight: 650; font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-days { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.host-days b { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.host-days span { font-size: 11px; color: var(--muted); }
.host-days.lv-ok b { color: var(--success); } .host-days.lv-warn b { color: var(--warning); } .host-days.lv-bad b { color: var(--danger); } .host-days.lv-none b { color: var(--faint); }
.host-card progress, .host-hero progress { width: 100%; height: 6px; }
.host-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.host-meta span { display: inline-flex; align-items: center; gap: 5px; }
.host-meta .icon { width: 13px; height: 13px; }
.host-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed var(--border); }
.host-actions form { margin: 0; }
.host-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--r-lg, 14px); background: var(--surface); border: 1px solid var(--border); }
.host-hero .host-days { align-items: flex-start; }
.host-hero .host-days b { font-size: 28px; }
.host-hero > .grow { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; }
/* Hizmet türleri */
.type-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.type-row { border: 1px solid var(--border); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); min-width: 0; }
.type-edit { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 170px) auto; gap: 8px; align-items: center; margin: 0; }
.type-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.type-tools form { margin: 0; }
.type-tools .icon-btn[disabled] { opacity: .35; pointer-events: none; }
.type-del { position: relative; }
.type-del > summary { list-style: none; cursor: pointer; } .type-del > summary::-webkit-details-marker { display: none; }
.type-del[open] { flex: 1 1 100%; order: 9; }
.type-del-form { margin-top: 8px; padding: 10px; border: 1px dashed var(--border-strong); border-radius: var(--r); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.type-new { padding: 10px; border: 1px dashed var(--border-strong); border-radius: var(--r); }
@media (max-width: 560px) {
  .type-edit { grid-template-columns: auto minmax(0, 1fr) auto; }
  .type-edit select.input { grid-column: 2 / 3; grid-row: 2; }
  .type-new .btn { grid-column: 3; grid-row: 2; }
}
/* Grid/flex içindeki kutular (özellikle saat/tarih) kendi doğal genişliğiyle kapsayıcıyı itmesin */
.input { min-width: 0; max-width: 100%; }
input[type=time].input, input[type=date].input { min-width: 0; }
.inline-fields > * { min-width: 0; }
.time-slots { grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr)); }
/* X indirici */
.x-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 14px; min-width: 0; }
.x-status .badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.x-status .icon { animation: spin 1.2s linear infinite; }
.x-link-form { display: flex; gap: 8px; flex-wrap: wrap; }
.x-link-form .search-input { flex: 1 1 240px; }
.x-log { list-style: none; margin: 0; padding: 0; }
.x-log-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; border-top: 1px solid var(--border); min-width: 0; }
.x-log-row:first-child { border-top: 0; }
.x-log-row > .chip-icon { flex: none; }
.x-log-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.x-log-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.x-log-text { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.x-log-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.x-log-actions { display: flex; gap: 2px; flex: none; }
@media (max-width: 560px) {
  .x-log-row { padding: 12px 14px; gap: 6px 10px; flex-wrap: wrap; }
  .x-log-main { flex: 1 1 calc(100% - 50px); }
  .x-log-actions { width: 100%; justify-content: flex-end; padding-left: 46px; }
}
.text-danger { color: var(--danger); }
.card-body.pb-0 { padding-bottom: 0; }
.tg-chats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tg-chats li { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); min-width: 0; }
.tg-chats li > div { min-width: 0; flex: 1; }
.tg-chats li > div > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-chats li > form, .tg-chats li > .badge { flex: none; }
.input-prefix { display: flex; align-items: stretch; min-width: 0; }
.input-prefix > span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--surface-2); color: var(--muted); }
.input-prefix .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; flex: 1; }
kbd { font-family: var(--mono); font-size: 12px; padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); }

/* ---------- İndir ---------- */
.dl-form-card { max-width: 760px; }
.dl-url { display: flex; gap: 8px; min-width: 0; }
.dl-url .search-input { flex: 1; min-width: 0; }
.dl-opts { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); max-width: 100%; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: calc(var(--r) - 3px); font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }
.dl-q { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.dl-opts:has(input[value="mp3"]:checked) .dl-q { opacity: .4; pointer-events: none; }
.dl-go { width: 100%; max-width: 260px; }
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; border-top: 1px solid var(--border); min-width: 0; }
.dl-row:first-child { border-top: 0; }
.dl-row.is-new { background: var(--primary-soft); }
.dl-row > .chip-icon { flex: none; }
.dl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dl-title { font-weight: 600; font-size: 14px; }
.dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.dl-meta .icon { width: 13px; height: 13px; vertical-align: -2px; }
.dl-bar { width: 100%; height: 6px; }
.dl-err { overflow-wrap: anywhere; }
.dl-actions { display: flex; gap: 4px; flex: none; align-items: center; }
@media (max-width: 560px) {
  .dl-row { padding: 12px 14px; gap: 6px 10px; flex-wrap: wrap; }
  .dl-main { flex: 1 1 calc(100% - 50px); }
  .dl-actions { width: 100%; justify-content: flex-end; padding-left: 46px; }
  .dl-go { max-width: none; }
  .seg { width: 100%; } .seg label { flex: 1; } .seg span { justify-content: center; width: 100%; padding: 9px 8px; }
  .dl-q { flex: 1; }
}

/* Diskler (ağ diski durumu) */
.disks { display: grid; gap: 1rem; }
.disk { display: grid; gap: .5rem; min-width: 0; }
.disk + .disk { border-top: 1px solid var(--border); padding-top: 1rem; }
.disk-head { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.disk-title { flex: 1; min-width: 0; }
.disk-head .badge { flex-shrink: 0; }
.disk .meter { margin: 0; }
.disk-err { margin: 0; overflow-wrap: anywhere; }

/* ---------- müşteri portalı ve bilgi satırları ---------- */
.portal-hello { margin: 2px 0 16px; }
.portal-hello h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.portal-hello p { margin: 4px 0 0; }
.psvc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.psvc { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-lg, 12px); background: var(--surface-2, transparent); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; min-width: 0; }
a.psvc:hover { border-color: var(--primary); transform: translateY(-1px); }
.psvc-bad { border-left: 3px solid var(--danger); } .psvc-warn { border-left: 3px solid var(--warning); } .psvc-ok { border-left: 3px solid var(--success); }
.psvc-head { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.psvc-name { font-weight: 600; font-size: 15px; }
.psvc-days { text-align: right; line-height: 1.1; flex: none; }
.psvc-days b { display: block; font-size: 20px; } .psvc-days span { font-size: 11.5px; color: var(--muted); }
.psvc-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; }
.psvc-kv dt { font-size: 11.5px; color: var(--muted); } .psvc-kv dd { margin: 1px 0 0; font-size: 13.5px; font-weight: 550; }
.psvc-single .psvc { max-width: 640px; }
.prewrap { white-space: pre-wrap; word-break: break-word; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.border-top { border-top: 1px solid var(--border); }
.field-row { align-items: center; }
.row-actions { display: flex; gap: 2px; flex: none; }
.row-actions form { margin: 0; }
details.secret summary { cursor: pointer; list-style: none; font-weight: 600; letter-spacing: .08em; }
details.secret summary::-webkit-details-marker { display: none; }
details.secret code { display: block; margin-top: 4px; user-select: all; }
.acct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-actions form { margin: 0; }
.field-row .cell-main, .field-row code { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
/* destek talepleri */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: min(640px, 92%); padding: 10px 13px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.msg-mine { align-self: flex-end; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.msg-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-bottom: 4px; }
.msg-body { font-size: 14px; overflow-wrap: anywhere; }
.seg-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.seg-tabs .btn { flex: none; }
.input.input-sm { height: 32px; font-size: 13px; width: auto; min-width: 0; }
.msg-head { flex-wrap: wrap; } .msg-head span { white-space: nowrap; }
.msg-head b { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .rtable td[data-label="Domain bitişi"] .faint.small { display: inline-block; max-width: 220px; } }

/* SVG logo */
.brand-mark { background: none !important; padding: 0 !important; overflow: visible; box-shadow: 0 6px 18px -8px #2dd4bf88; }
.brand-mark .logo { width: 100%; height: 100%; display: block; }

/* ödeme durumu: müşteri kartı ve yönetici "ödendi" işareti */
.paystate { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.35; border: 1px solid transparent; }
.paystate .i, .paystate svg { flex: none; width: 18px; height: 18px; }
.paystate.paid { background: color-mix(in srgb, var(--success, #16a34a) 12%, transparent); border-color: color-mix(in srgb, var(--success, #16a34a) 30%, transparent); color: var(--success, #16a34a); }
.paystate.due { background: color-mix(in srgb, var(--primary, #0f766e) 10%, transparent); border-color: color-mix(in srgb, var(--primary, #0f766e) 28%, transparent); }
.paystate.late { background: color-mix(in srgb, var(--danger, #dc2626) 12%, transparent); border-color: color-mix(in srgb, var(--danger, #dc2626) 32%, transparent); color: var(--danger, #dc2626); }
.paystate b { font-weight: 650; }
.paytick { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap;
  cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--text-2, inherit); transition: background .15s, border-color .15s, color .15s; }
.paytick svg { width: 16px; height: 16px; }
.paytick:hover:not([disabled]) { border-color: var(--success, #16a34a); color: var(--success, #16a34a); }
.paytick.on { background: color-mix(in srgb, var(--success, #16a34a) 14%, transparent); border-color: color-mix(in srgb, var(--success, #16a34a) 40%, transparent); color: var(--success, #16a34a); }
.paytick.on:hover:not([disabled]) { border-color: var(--danger, #dc2626); color: var(--danger, #dc2626); }
.paytick[disabled] { cursor: default; opacity: .85; }
.paytick.sm { min-height: 32px; padding: 0 10px; }
.inline-form { display: inline; margin: 0; }
.profit-preview:empty { display: none; }
.profit-preview { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 10px; font-size: 14px; }
details.adv { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
details.adv summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.pay-now { display: grid; gap: 12px; padding: 12px; border-radius: 10px; background: var(--surface-2, transparent); border: 1px solid var(--border); }
.acct-row > .grow { flex: 1 1 180px; }
@media (max-width: 620px) { .acct-actions { flex: 1 1 100%; } .acct-actions .mini-form { flex: 1; } }

/* hizmete dahil */
fieldset.incl { border: 0; padding: 0; margin: 0; min-width: 0; }
.incl-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.incl-chip { position: relative; cursor: pointer; }
.incl-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.incl-chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; color: var(--text-2); background: var(--surface); transition: background .15s, border-color .15s, color .15s; }
.incl-chip span svg { width: 15px; height: 15px; opacity: 0; margin-left: -4px; width: 0; transition: width .15s, opacity .15s; }
.incl-chip input:checked + span { border-color: var(--success); color: var(--success); background: var(--success-soft); font-weight: 600; }
.incl-chip input:checked + span svg { opacity: 1; width: 15px; margin-left: 0; }
.incl-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-ring); }
.incl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; }
.incl-list li, .incl-mini li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.35; }
.incl-list svg, .incl-mini svg { flex: none; width: 17px; height: 17px; color: var(--success); margin-top: 1px; }
.incl-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-2); }
.incl-mini svg { width: 15px; height: 15px; }

/* tek seferlik satış: yenileme alanları gizlenir */
.once-only { display: none; }
form:has(select[name=period] option[value=once]:checked) .recurring-only { display: none; }
form:has(select[name=period] option[value=once]:checked) .once-only { display: inline; }
/* tutarlar bölünmesin */
td[data-label="Satış"] .v, td[data-label="Alış"] .v, td[data-label="Kâr"] .v, td[data-label="Alış → Satış"] b, .stat-value { white-space: nowrap; }
td[data-label="Satış"] .faint, td[data-label="Kâr"] .faint { white-space: nowrap; }
.money-stack { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; text-align: right; }
@media (min-width: 761px) { .money-stack { align-items: flex-start; text-align: left; } }

/* Gelir & Gider */
.kasa-month { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.kasa-month-title { min-width: 160px; text-align: center; font-size: 17px; }
.kasa-month-title a { display: block; margin-top: 2px; }
.kasa-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 180px; align-items: end; }
.kc-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; color: inherit; text-decoration: none; border-radius: 8px; padding: 4px 0; }
.kc-col:hover, .kc-col.cur { background: var(--surface-2); }
.kc-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.kc-bars span { width: min(14px, 38%); border-radius: 4px 4px 0 0; min-height: 2px; }
.kc-in { background: var(--success); } .kc-out { background: var(--danger); opacity: .8; }
.kc-lbl { font-size: 11.5px; color: var(--muted); }
.kc-col.cur .kc-lbl { color: var(--text); font-weight: 650; }
.kc-legend { display: flex; gap: 16px; justify-content: center; margin-top: 10px; }
.kc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }
.kc-dot.in { background: var(--success); } .kc-dot.out { background: var(--danger); opacity: .8; }
.kasa-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kcat-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 5px; }
.kcat-head b { white-space: nowrap; }
progress.kcat-bar { height: 8px; background: var(--surface-2); }
progress.kcat-bar::-webkit-progress-bar { background: var(--surface-2); }
progress.kcat-bar::-webkit-progress-value { background: var(--danger); opacity: .75; }
progress.kcat-bar::-moz-progress-bar { background: var(--danger); opacity: .75; }
.kind-seg { align-self: flex-start; }
@media (max-width: 760px) { .kasa-grid { grid-template-columns: 1fr; } .kasa-chart { gap: 2px; height: 150px; } .kc-lbl { font-size: 10px; } }
.kasa-filter { padding-top: 0; padding-bottom: 12px; }
.kasa-list .list-row { align-items: center; gap: 12px; }
.kasa-amt { white-space: nowrap; font-size: 15px; }
.kasa-sp { width: 32px; flex: none; }
@media (max-width: 760px) { .kasa-list .chip-icon { display: none; } .kasa-list .list-row { gap: 8px; } }

/* Borçlarım */
.debt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.debt-head { display: flex; align-items: center; gap: 12px; }
.debt-main { display: flex; flex-direction: column; margin: 14px 0 10px; }
.debt-main b { font-size: 24px; letter-spacing: -.01em; white-space: nowrap; }
progress.debt-bar { height: 8px; background: var(--surface-2); margin-bottom: 12px; }
progress.debt-bar::-webkit-progress-bar { background: var(--surface-2); }
progress.debt-bar::-webkit-progress-value { background: var(--primary); }
progress.debt-bar::-moz-progress-bar { background: var(--primary); }
.debt-loan progress.debt-bar::-webkit-progress-value { background: var(--success); }
.debt-loan progress.debt-bar::-moz-progress-bar { background: var(--success); }
progress.debt-bar.hot::-webkit-progress-value { background: var(--danger); }
progress.debt-bar.hot::-moz-progress-bar { background: var(--danger); }
.debt-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0 0 12px; font-size: 14px; }
.debt-kv dt { font-size: 12px; color: var(--muted); } .debt-kv dd { margin: 0; font-weight: 600; }
.debt-pay summary { list-style: none; } .debt-pay summary::-webkit-details-marker { display: none; }
.debt-kind { flex-wrap: wrap; align-self: flex-start; }
.nowrap { white-space: nowrap; }
.debt-form .only-loan, .debt-form .only-card, .debt-form .only-limit, .debt-form .only-other, .debt-form .only-od { display: none; }
.debt-form:has(input[name=kind][value=loan]:checked) .only-loan { display: flex; }
.debt-form:has(input[name=kind][value=loan]:checked) .not-loan { display: none; }
.debt-form:has(input[name=kind][value=card]:checked) .only-card,
.debt-form:has(input[name=kind][value=card]:checked) .only-limit,
.debt-form:has(input[name=kind][value=overdraft]:checked) .only-limit,
.debt-form:has(input[name=kind][value=other]:checked) .only-other { display: grid; }
.debt-form:has(input[name=kind][value=card]:checked) span.only-card,
.debt-form:has(input[name=kind][value=overdraft]:checked) .only-od { display: inline; }
.debt-form:has(input[name=kind][value=card]:checked) label.only-card,
.debt-form:has(input[name=kind][value=other]:checked) label.only-other,
.debt-form:has(input[name=kind][value=card]:checked) label.only-limit,
.debt-form:has(input[name=kind][value=overdraft]:checked) label.only-limit { display: flex; }

/* Destek al: konu seçimi */
.dtopic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dtopic { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); color: inherit; text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s; }
.dtopic:hover { border-color: var(--primary); background: var(--surface-2); }
.dtopic b { display: block; font-size: 14.5px; } .dtopic small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.dtopic input { position: absolute; opacity: 0; pointer-events: none; }
.dtopic:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); background: var(--surface-2); }
.dtopic:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.dtopic-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.dtopic-pick legend { margin-bottom: 8px; padding: 0; }
@media (max-width: 520px) { .dtopic-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .dtopic { padding: 10px; gap: 8px; flex-direction: column; align-items: flex-start; } .dtopic small { display: none; } }

/* ana sayfa: bu ay, her şey dahil */
.mo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; }
.mo-col { min-width: 0; }
.mo-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.mo-head b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mo-col .kv { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
.mo-col .kv dt { overflow-wrap: anywhere; } .mo-col .kv dd { white-space: nowrap; }
@media (max-width: 900px) { .mo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mo-net { grid-column: 1 / -1; } }
@media (max-width: 560px) { .mo-grid { grid-template-columns: 1fr; } .mo-net { grid-column: auto; } }

/* grafik çubuk yükseklikleri (CSP satır içi stile izin vermez): hp0..hp100, 2'lik adım */
.hp0{height:0%}.hp2{height:2%}.hp4{height:4%}.hp6{height:6%}.hp8{height:8%}.hp10{height:10%}.hp12{height:12%}.hp14{height:14%}.hp16{height:16%}.hp18{height:18%}.hp20{height:20%}.hp22{height:22%}.hp24{height:24%}.hp26{height:26%}.hp28{height:28%}.hp30{height:30%}.hp32{height:32%}.hp34{height:34%}.hp36{height:36%}.hp38{height:38%}.hp40{height:40%}.hp42{height:42%}.hp44{height:44%}.hp46{height:46%}.hp48{height:48%}.hp50{height:50%}.hp52{height:52%}.hp54{height:54%}.hp56{height:56%}.hp58{height:58%}.hp60{height:60%}.hp62{height:62%}.hp64{height:64%}.hp66{height:66%}.hp68{height:68%}.hp70{height:70%}.hp72{height:72%}.hp74{height:74%}.hp76{height:76%}.hp78{height:78%}.hp80{height:80%}.hp82{height:82%}.hp84{height:84%}.hp86{height:86%}.hp88{height:88%}.hp90{height:90%}.hp92{height:92%}.hp94{height:94%}.hp96{height:96%}.hp98{height:98%}.hp100{height:100%}
.jc-center { justify-content: center; } .mw-180 { max-width: 180px; }

/* borç: yaklaşan ödeme satırı (tutar + gün sağda alt alta) */
.up-row .up-amt { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
@media (max-width: 560px) {
  .up-row .up-amt { flex-direction: column; align-items: flex-end; gap: 4px; }
  .up-row > .chip-icon { display: none; }
}
/* portal: değerlendirme kartı, dar ekranda düğme alta */
@media (max-width: 560px) { .review-card .review-btn { flex: 1 1 100%; justify-content: center; } }

/* site mesajları */
.sm-list { margin: 0; padding: 0; list-style: none; }
.sm-item { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.sm-item:last-child { border-bottom: 0; }
.sm-head { display: flex; align-items: flex-start; gap: 10px; }
.sm-name { font-size: 15px; }
.sm-text { margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.sm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.sm-ip { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.sm-ua { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-actions { display: flex; gap: 6px; margin-left: auto; }
.sm-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.sm-add .field { flex: 1 1 200px; margin: 0; }
@media (max-width: 560px) { .sm-item { padding: 14px; } .sm-ua { flex-basis: 100%; } .sm-actions { margin-left: 0; flex: 1 1 100%; } .sm-actions form, .sm-actions .btn { flex: 1; justify-content: center; } .sm-add .btn { flex: 1 1 100%; justify-content: center; } }

/* Portal teklif listesi: numara + başlık telefonda kesilmesin */
.quote-row { flex-wrap: wrap; }
.quote-row .cell-main { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
@media (max-width: 640px) { .quote-row > .grow { flex-basis: 100%; } }

/* Portal ödeme bilgileri */
.pay-info .kv-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-info .iban { font-size: .95em; letter-spacing: .02em; word-break: break-all; }
