/* PROPAY TR Panel — sade, Apple benzeri açık arayüz */
:root {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --sidebar-bg: #fbfbfc;
  --hairline: rgba(0, 0, 0, 0.13);
  --hairline-strong: rgba(0, 0, 0, 0.2);
  --text: #1d1d1f;
  --text-secondary: #424245;
  --muted: #6e6e73;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-soft: rgba(0, 113, 227, 0.1);
  --blue-focus: rgba(0, 113, 227, 0.22);
  --danger: #ff3b30;
  --danger-deep: #c41e16;
  --danger-soft: rgba(255, 59, 48, 0.12);
  --success: #34c759;
  --success-deep: #1d7a3a;
  --success-soft: rgba(52, 199, 89, 0.14);
  --warning: #ff9500;
  --warning-deep: #b15c00;
  --warning-soft: rgba(255, 149, 0, 0.14);
  --purple: #5e5ce6;
  --purple-soft: rgba(94, 92, 230, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 32px -8px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --fill-form: #f5f5f7;
  --fill-form-focus: #ffffff;
  --radius-pill: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --sidebar-w: 300px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Hafif kart / üst çubuk — ağır cam efekti yok */
.glass {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}

.app {
  display: flex;
  min-height: 100vh;
}

/* ——— Sidebar (macOS Ayarlar benzeri) ——— */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem 0.75rem;
  color: var(--text);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 40;
}

.sidebar.glass {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.sidebar-head {
  position: relative;
  padding: 0 0.4rem 0.55rem;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.4rem 0.55rem;
  margin: 0 -0.15rem 0;
  border-radius: var(--radius-sm);
  transition: background 0.15s var(--ease);
}

.sidebar-brand:hover {
  background: rgba(0, 0, 0, 0.04);
}

.sidebar-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  color: #fff;
  background: var(--blue);
  flex-shrink: 0;
}

.sidebar-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sidebar-brand-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.15;
}

.sidebar-brand-sub {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.2;
}

.sidebar-search {
  width: 100%;
  padding: 0.4rem 0.65rem 0.4rem 1.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--bg-elevated) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 0.6rem 50%;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sidebar-search::placeholder {
  color: var(--muted);
}

.sidebar-search:hover {
  border-color: var(--hairline-strong);
}

.sidebar-search:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-focus);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.15rem 0.15rem 0.5rem;
  margin: 0 -0.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 99px;
}

/* ——— Ağaç şeması menü ——— */
.nav-group {
  --tree-indent: 16px;
  --tree-stub: 12px;
  --tree-color: rgba(0, 0, 0, 0.18);
  position: relative;
  margin-bottom: 1.1rem;
  padding-left: var(--tree-indent);
}

.nav-group.is-empty {
  display: none;
}

.nav-group-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text);
  padding: 0.6rem 0.55rem 0.55rem 0.55rem;
  margin-left: calc(var(--tree-indent) * -1);
  margin-bottom: 0.15rem;
  border-bottom: 1px solid var(--hairline);
  border-radius: 6px;
  transition: background 0.12s var(--ease);
}

.nav-group-title::-webkit-details-marker { display: none; }
.nav-group-title::marker { content: ""; }

.nav-group-title:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Başlık başında küçük mavi gösterge */
.nav-group-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: var(--blue);
  flex-shrink: 0;
}

.nav-group-label {
  flex: 1;
  min-width: 0;
}

.nav-group-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.18s var(--ease), color 0.15s;
  transform: rotate(-90deg);
}

.nav-group[open] > .nav-group-title .nav-group-chevron {
  transform: rotate(0deg);
  color: var(--text-secondary);
}

.nav-group-title:hover .nav-group-chevron {
  color: var(--text);
}

/* Açılır/kapanır gövde — kapalıyken çizgi de gizlenir */
.nav-group:not([open]) > .nav-group-body {
  display: none;
}

.nav-group:not([open])::before {
  display: none;
}

/* Grubun yanında alt öğeleri birbirine bağlayan dikey çizgi */
.nav-group::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  bottom: 0.4rem;
  left: calc(var(--tree-indent) - 1px);
  width: 1.5px;
  background: var(--tree-color);
  border-radius: 2px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem 0.5rem calc(var(--tree-stub) + 0.85rem);
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2px;
  transition: background 0.12s var(--ease), color 0.12s;
}

/* Yatay bağ çizgisi: dikey çizgiden öğeye iner */
.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--tree-stub);
  height: 1.5px;
  background: var(--tree-color);
  transform: translateY(-50%);
}

/* İçi dolu nokta */
.nav-item::after {
  content: "";
  position: absolute;
  left: calc(var(--tree-stub) - 1px);
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  transform: translate(-2px, -50%);
  box-shadow: 0 0 0 2px var(--sidebar-bg);
  transition: background 0.15s var(--ease), transform 0.15s, box-shadow 0.15s;
}

/* Son öğenin altındaki dikey çizgiyi kapat (L şekli) */
.nav-item:last-child::before {
  background: linear-gradient(to bottom, var(--tree-color) 0, var(--tree-color) 50%, transparent 50%);
  top: 0;
  height: 50%;
  width: var(--tree-stub);
  transform: none;
}

.nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

.nav-item:hover::after {
  background: var(--blue);
  transform: translate(-2px, -50%) scale(1.18);
}

.nav-item.is-active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

.nav-item.is-active::after {
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--sidebar-bg), 0 0 0 4px var(--blue-soft);
}

.nav-item.is-hidden {
  display: none;
}

.nav-label {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.nav-badge {
  background: var(--danger);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  border-radius: var(--radius-pill);
  min-width: 1.4rem;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(255, 59, 48, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  animation: navBadgePulse 1.8s ease-in-out infinite;
}
.nav-badge.is-empty,
.nav-group-badge.is-empty {
  display: none;
}

/* ——— Realtime poll toast ——— */
.rt-toast {
  position: fixed;
  bottom: 1.1rem;
  right: 1.25rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.92);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.rt-toast.is-visible { opacity: 1; transform: translateY(0); }
.rt-toast-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.25);
  animation: rtPulse 1.2s ease-in-out infinite;
}
@keyframes rtPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
}

.nav-group-badge {
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
  min-width: 1.4rem;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(255, 59, 48, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: navBadgePulse 1.8s ease-in-out infinite;
}

@keyframes navBadgePulse {
  0%, 100% { box-shadow: 0 1px 2px rgba(255, 59, 48, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
  50%      { box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
}

.nav-item.subtle {
  font-size: 0.92rem;
}

.sidebar-foot {
  flex-shrink: 0;
  padding-top: 0.65rem;
  margin-top: auto;
  border-top: 1px solid var(--hairline);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.12s, color 0.12s;
}

.sidebar-logout:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.sidebar-logout-icon {
  display: flex;
  color: inherit;
  opacity: 0.85;
}

.sidebar-backdrop {
  display: none;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar.glass {
  box-shadow: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.topbar-page-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex-shrink: 0;
}

.topbar-user {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8e8ed;
  border: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.app-content {
  padding: 1.25rem 1.5rem 2.5rem;
  flex: 1;
}

/* Sayfa içi bölüm başlıkları (ör. Havuz kullanıcıları) */
.page-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.muted {
  color: var(--muted);
}

.card {
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}

.card.glass {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.65rem;
}

.card-title {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
}

.field span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.field input,
.field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-focus);
}

.field-row {
  display: flex;
  gap: 0.5rem;
}

.field-actions {
  display: flex;
  align-items: flex-end;
}

.summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
}

.summary-item strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.text-success {
  color: var(--success);
}

.summary-actions {
  margin-left: auto;
}

.table-wrap {
  border-radius: var(--radius);
  overflow: auto;
  max-height: calc(100vh - 320px);
  padding: 0;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 1100px;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 0.75rem 0.8rem;
  background: #e8e8ed;
  border-bottom: 1px solid var(--hairline-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
  color: var(--text-secondary);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

.data-table tbody tr:hover td {
  background: rgba(0, 113, 227, 0.04);
}

.cell-sm {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nowrap {
  white-space: nowrap;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.center {
  text-align: center;
}

.actions-cell {
  white-space: nowrap;
}

.actions-cell .inline-form,
.actions-cell .btn-row {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  vertical-align: middle;
}

.actions-cell .btn {
  flex: 0 0 auto;
  margin: 0;
}

.btn-row {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
}

.inline-form {
  display: inline;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-family: var(--font);
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease,
              box-shadow 0.18s ease, transform 0.1s ease, filter 0.16s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(180deg, #3a8bff 0%, #0a84ff 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset,
              0 1px 2px rgba(10, 132, 255, 0.18),
              0 6px 16px rgba(10, 132, 255, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset,
              0 2px 4px rgba(10, 132, 255, 0.22),
              0 10px 22px rgba(10, 132, 255, 0.3);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--blue);
  border: 1px solid var(--hairline-strong);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
}

.btn-accent {
  background: linear-gradient(180deg, #3a8bff 0%, #0a84ff 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset,
              0 1px 2px rgba(10, 132, 255, 0.18),
              0 6px 16px rgba(10, 132, 255, 0.22);
}

.btn-accent:hover {
  filter: brightness(1.04);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--hairline);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

.btn-danger {
  background: linear-gradient(180deg, #ff605c 0%, #ff3b30 100%);
  color: #fff;
  border: 1px solid rgba(255, 59, 48, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset,
              0 1px 2px rgba(255, 59, 48, 0.18),
              0 6px 14px rgba(255, 59, 48, 0.22);
}

.btn-danger:hover {
  filter: brightness(1.04);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset,
              0 2px 4px rgba(255, 59, 48, 0.22),
              0 10px 20px rgba(255, 59, 48, 0.3);
}

.btn-success {
  background: linear-gradient(180deg, #4cd771 0%, #34c759 100%);
  color: #fff;
  border: 1px solid rgba(52, 199, 89, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
              0 1px 2px rgba(52, 199, 89, 0.16),
              0 6px 14px rgba(52, 199, 89, 0.24);
}

.btn-success:hover {
  filter: brightness(1.04);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset,
              0 2px 4px rgba(52, 199, 89, 0.22),
              0 10px 20px rgba(52, 199, 89, 0.32);
}

.btn-warning {
  background: linear-gradient(180deg, #ffb13a 0%, #ff9500 100%);
  color: #fff;
  border: 1px solid rgba(255, 149, 0, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
              0 1px 2px rgba(255, 149, 0, 0.18),
              0 6px 14px rgba(255, 149, 0, 0.24);
}

.btn-warning:hover {
  filter: brightness(1.04);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset,
              0 2px 4px rgba(255, 149, 0, 0.22),
              0 10px 20px rgba(255, 149, 0, 0.32);
}

.btn-info {
  background: linear-gradient(180deg, #6bb7ff 0%, #2a8bff 100%);
  color: #fff;
  border: 1px solid rgba(10, 132, 255, 0.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
              0 1px 2px rgba(10, 132, 255, 0.16),
              0 6px 14px rgba(10, 132, 255, 0.22);
}

.btn-info:hover {
  filter: brightness(1.04);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset,
              0 2px 4px rgba(10, 132, 255, 0.22),
              0 10px 20px rgba(10, 132, 255, 0.3);
}

.btn-sm {
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 9px;
  min-height: 2.1rem;
}

.btn.is-active {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  border: 1px solid var(--hairline);
}

/* Durum etiketleri */
.badge-success {
  background: var(--success-soft);
  color: var(--success-deep);
  border-color: rgba(52, 199, 89, 0.32);
}

.badge-waiting,
.badge-joy {
  background: var(--warning-soft);
  color: var(--warning-deep);
  border-color: rgba(255, 149, 0, 0.32);
}

.badge-rejection,
.badge-rejected {
  background: var(--danger-soft);
  color: var(--danger-deep);
  border-color: rgba(255, 59, 48, 0.32);
}

/* İşlem türü pillleri (deposit / withdraw) */
.kind-pill {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--hairline);
}

.kind-deposit {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: rgba(0, 113, 227, 0.25);
}

.kind-withdraw {
  background: var(--purple-soft);
  color: var(--purple);
  border-color: rgba(94, 92, 230, 0.28);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}

.stat-card.glass {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.stat-card h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.stat-card .big {
  margin: 0.5rem 0 0;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.stat-card-body .big {
  margin-top: 0.35rem;
}

.stat-card-unit {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.15em;
}

.error-hero {
  text-align: center;
  padding: 3rem 1rem;
}

.error-code {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pool-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
}

.pool-card h3 {
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.badge-ok {
  background: var(--success-soft);
  color: #1d7a3a;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
}

.badge-off {
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
}

.icon-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.mobile-only {
  display: none;
}

.content-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.content-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
}

.content-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.content-list li::before {
  display: none;
}

.content-list strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 960px) {
  .mobile-only {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease);
    box-shadow: var(--shadow-md);
    background: var(--sidebar-bg);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 35;
  }
  .sidebar-backdrop[hidden] {
    display: none !important;
  }

  .data-table {
    min-width: 900px;
  }
}

/* ==========================================================================
   Auth (Login) — split-screen, marka panelli
   ========================================================================== */
.auth-page {
  min-height: 100vh;
  margin: 0;
  background: #f5f5f7;
  color: var(--text);
  font-family: var(--font);
  display: flex;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  width: 100%;
  min-height: 100vh;
}

/* ---- Sol: marka paneli ---- */
.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 2.4rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, #4f46e5 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, #0ea5e9 0%, transparent 55%),
    linear-gradient(135deg, #0a0a23 0%, #18154a 60%, #0a1633 100%);
  isolation: isolate;
}

.auth-page--sub .auth-brand {
  background:
    radial-gradient(circle at 20% 0%, #6366f1 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, #8b5cf6 0%, transparent 55%),
    linear-gradient(135deg, #0e0a2e 0%, #1e1547 55%, #2a1056 100%);
}

.auth-brand-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.auth-brand-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orb-float 18s ease-in-out infinite;
}

.auth-brand-bg .orb-1 {
  width: 360px; height: 360px;
  background: #5b8cff;
  top: -80px; left: -80px;
}

.auth-brand-bg .orb-2 {
  width: 320px; height: 320px;
  background: #9333ea;
  bottom: -100px; right: -60px;
  animation-delay: -6s;
}

.auth-brand-bg .orb-3 {
  width: 240px; height: 240px;
  background: #06b6d4;
  top: 40%; right: 20%;
  animation-delay: -12s;
  opacity: 0.35;
}

.auth-brand-bg .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: 0.7;
}

@keyframes orb-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(20px, -28px, 0) scale(1.08); }
}

.auth-brand-head {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-brand-mark {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

.auth-brand-name {
  font-size: 1.12rem;
}

.auth-brand-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-brand-shield {
  display: inline-flex;
  width: 116px;
  height: 116px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 50px rgba(0, 0, 0, 0.35);
  position: relative;
}

.auth-brand-shield::before,
.auth-brand-shield::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.auth-brand-shield::after {
  inset: -44px;
  border-color: rgba(255, 255, 255, 0.04);
}

.auth-brand-foot {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

.trust-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.1;
}

.trust-item span {
  display: block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.1rem;
  letter-spacing: 0.005em;
}

.trust-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.01em;
}

.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0.06); }
}

/* ---- Sağ: form kartı ---- */
.auth-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 2rem;
  background: #f5f5f7;
}

.auth-card {
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 22px;
  padding: 2.2rem 2rem 1.8rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.08);
}

.auth-card-head {
  margin-bottom: 1.4rem;
  text-align: left;
}

.auth-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.auth-page--sub .auth-eyebrow {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.auth-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.3rem;
  color: var(--text);
}

.auth-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.auth-alert {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: var(--danger-soft);
  border: 1px solid rgba(255, 59, 48, 0.18);
  color: #c41e16;
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
  animation: shake 0.45s ease-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(2px); }
}

.auth-form {
  display: grid;
  gap: 0.95rem;
}

.auth-field {
  display: block;
}

.auth-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.auth-field-optional {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.35rem;
}

.auth-caps {
  font-size: 0.72rem;
  color: #b45309;
  background: rgba(255, 149, 0, 0.12);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-weight: 500;
}

.auth-field-input {
  position: relative;
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-field-input:focus-within {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--blue-focus);
}

.auth-page--sub .auth-field-input:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.auth-field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem 0 0.85rem;
  color: var(--muted);
  pointer-events: none;
}

.auth-field-input input {
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0.85rem 0.6rem 0.85rem 0;
  font-family: var(--font);
  font-size: 0.98rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.auth-field-input input::placeholder {
  color: #b0b0b6;
}

.auth-pw-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0 0.85rem;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-pw-toggle:hover {
  color: var(--text);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.15rem;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.auth-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-check-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #fafafa;
  border: 1.5px solid #d1d1d6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  position: relative;
}

.auth-check-box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
  margin-bottom: 2px;
}

.auth-check input:checked + .auth-check-box {
  background: var(--blue);
  border-color: var(--blue);
}

.auth-page--sub .auth-check input:checked + .auth-check-box {
  background: #6366f1;
  border-color: #6366f1;
}

.auth-check input:checked + .auth-check-box::after {
  transform: rotate(45deg) scale(1);
}

.auth-check input:focus-visible + .auth-check-box {
  box-shadow: 0 0 0 3px var(--blue-focus);
}

.auth-link {
  color: var(--blue);
  font-size: 0.86rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.auth-page--sub .auth-link {
  color: #6366f1;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-meta-inline {
  font-size: 0.82rem;
}

.auth-submit {
  appearance: none;
  border: 0;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #007aff 0%, #0064d6 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: var(--font);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.28);
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.auth-page--sub .auth-submit {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.32);
}

.auth-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.36);
}

.auth-page--sub .auth-submit:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.auth-submit:active:not(:disabled) {
  transform: scale(0.985);
}

.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-submit-spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  display: none;
  animation: auth-spin 0.7s linear infinite;
}

.auth-submit.is-loading .auth-submit-spin { display: inline-block; }
.auth-submit.is-loading .auth-submit-text { opacity: 0.85; }

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-foot {
  margin: 1.45rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.01em;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    padding: 1.4rem 1.6rem 1.5rem;
    min-height: auto;
  }
  .auth-brand-center {
    display: none;
  }
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    padding-top: 1rem;
    gap: 0.6rem;
  }
  .trust-item span {
    display: none;
  }
  .trust-item strong {
    font-size: 0.82rem;
  }
  .trust-status {
    display: none;
  }
  .auth-card-wrap {
    padding: 1.5rem 1rem 2rem;
  }
}

@media (max-width: 560px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .auth-brand {
    padding: 1.1rem 1.1rem 1.2rem;
  }
  .auth-card {
    padding: 1.7rem 1.3rem 1.5rem;
    border-radius: 18px;
  }
  .auth-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.alert {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.95rem;
  background: var(--danger-soft);
  border: 1px solid rgba(255, 59, 48, 0.25);
  color: #c41e16;
  font-size: 0.92rem;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.top-actions .btn {
  font-size: 0.88rem;
}

.sim-banks {
  margin-top: 0.95rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ——— İşlem ekranı: Apple tarzı filtre / özet / tablo ——— */
.tx-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.tx-workspace > .filter-card {
  margin-bottom: 0;
  padding: 1.3rem 1.4rem 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-elevated);
  background: var(--bg-elevated);
}

.tx-workspace > .filter-card .card-header {
  margin-bottom: 1.05rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}

.tx-workspace > .filter-card .card-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.tx-workspace > .filter-card .filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: flex-end;
}

.tx-workspace > .filter-card .filter-grid > .field {
  flex: 1 1 190px;
  min-width: 170px;
}

.tx-workspace > .filter-card .filter-grid > .field:has(.field-row) {
  flex: 1 1 280px;
  min-width: 250px;
}

.tx-workspace > .filter-card .filter-grid > .field-actions {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}

.tx-workspace > .filter-card .filter-grid--compact > .field {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tx-workspace > .filter-card .field span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.tx-workspace > .filter-card .field input,
.tx-workspace > .filter-card .field select {
  background: var(--fill-form);
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0.7rem 0.9rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background 0.15s var(--ease), border-color 0.15s, box-shadow 0.15s;
}

.tx-workspace > .filter-card .field input:hover,
.tx-workspace > .filter-card .field select:hover {
  background: #ebebed;
}

.tx-workspace > .filter-card .field input:focus,
.tx-workspace > .filter-card .field select:focus {
  background: var(--fill-form-focus);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-focus), inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tx-workspace > .filter-card .field-actions .btn-primary {
  min-height: 2.75rem;
  padding: 0.55rem 1.4rem;
  border-radius: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 113, 227, 0.35);
}

.tx-workspace > .filter-card .field-actions .btn-primary:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 6px 18px rgba(0, 113, 227, 0.38);
}

.tx-workspace > .summary-bar {
  margin-bottom: 0;
  padding: 1rem 1.15rem;
  gap: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 100%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tx-workspace > .summary-bar .summary-item {
  background: var(--bg-elevated);
  padding: 0.65rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  min-width: 8.5rem;
}

.tx-workspace > .summary-bar .summary-item .muted {
  font-size: 0.78rem;
  font-weight: 500;
}

.tx-workspace > .summary-bar .summary-item strong {
  margin-top: 0.25rem;
  font-size: 1.22rem;
}

.tx-workspace > .summary-bar .summary-actions .btn {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  font-weight: 600;
  padding: 0.45rem 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tx-workspace > .summary-bar .summary-actions .btn:hover {
  background: #f5f5f7;
}

.tx-workspace > .table-wrap {
  margin-bottom: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-elevated);
  background: var(--bg-elevated);
}

/* Havuz mutabakatı — özet şeridi + tablo kartı */
.tx-workspace.consensus-pool-page > .consensus-summary-strip {
  margin-bottom: 0;
}

.tx-workspace > .consensus-pool-table-card {
  margin-bottom: 0;
  padding: 1.3rem 1.4rem 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-elevated);
  background: var(--bg-elevated);
}

.tx-workspace > .consensus-pool-table-card .card-header {
  margin-bottom: 1.05rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.tx-workspace > .consensus-pool-table-card .card-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-header-meta {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
  max-width: 22rem;
}

.consensus-section-head .consensus-date-range {
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.consensus-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-end;
}

.tx-workspace .consensus-table-wrap {
  margin-bottom: 0;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  background: var(--bg-elevated);
  overflow-x: auto;
}

.consensus-pool-table .table-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.consensus-pool-table .table-currency {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.2rem;
}

.consensus-pool-table .consensus-cash {
  color: var(--success-deep);
  font-weight: 700;
}

.consensus-pool-table tbody tr.consensus-row-active {
  background: rgba(0, 113, 227, 0.055);
}

.consensus-pool-table tbody tr.consensus-row-active:hover {
  background: rgba(0, 113, 227, 0.09);
}

.consensus-pool-table tfoot tr.consensus-tfoot th {
  background: #e8e8ed;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-top: 2px solid var(--hairline-strong);
}

.tx-workspace .data-table thead th {
  background: #e8e8ed;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--hairline-strong);
}

/* Tablo üstünde inline toplamlar şeridi */
.table-totals {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #e8e8ed;
  border-bottom: 1px solid var(--hairline-strong);
  position: sticky;
  left: 0;
  font-size: 0.92rem;
}

.table-totals-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}

.table-totals-item--start {
  justify-self: start;
}

.table-totals-item--center {
  justify-self: center;
}

.table-totals-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.table-totals-value {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--success-deep);
}

.table-totals-actions {
  justify-self: end;
}

.table-totals-actions .btn-ghost {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-strong);
  color: var(--text);
  font-weight: 600;
}

.table-totals-actions .btn-ghost:hover {
  background: #f5f5f7;
}

.tx-workspace .data-table tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--hairline);
}

.tx-workspace .data-table tbody tr:hover td {
  background: rgba(0, 113, 227, 0.055);
}

.tx-workspace .actions-cell .btn-sm {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  min-height: 2.2rem;
}

.tx-workspace .actions-cell .btn-secondary {
  background: #e8e8ed;
  color: var(--text);
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tx-workspace .actions-cell .btn-secondary:hover {
  background: #d8d8de;
}

.tx-workspace .actions-cell .btn-ghost {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-strong);
  color: var(--text);
  font-weight: 600;
}

.tx-workspace .actions-cell .btn-ghost:hover {
  background: #f5f5f7;
}

/* ——— Kontrol paneli (ana sayfa) ——— */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 1100px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 960px) {
  .dashboard-row {
    grid-template-columns: 1fr;
  }
}

.dashboard-ops {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

@media (max-width: 1100px) {
  .dashboard-ops {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .dashboard-ops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard-op {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 0.95rem 0.75rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s, background 0.15s;
}

a.dashboard-op:hover {
  border-color: rgba(0, 113, 227, 0.32);
  box-shadow: 0 1px 8px rgba(0, 113, 227, 0.06);
}

.dashboard-op.is-alert {
  border-color: rgba(255, 149, 0, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #fff8f0 100%);
}

.dashboard-op-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.dashboard-op-value {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.dashboard-op-value--warn {
  color: var(--warning-deep);
}

.dashboard-chart-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dashboard-chart-legend {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.dashboard-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dashboard-chart-legend-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.dashboard-chart-legend-item.is-dep::before {
  background: var(--success);
}

.dashboard-chart-legend-item.is-wdr::before {
  background: var(--purple);
}

.dashboard-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
  align-items: end;
  height: 160px;
  padding: 0 0.25rem;
}

.dashboard-chart-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  height: 100%;
}

.dashboard-chart-bars {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.dashboard-chart-bar {
  width: 9px;
  min-height: 2px;
  border-radius: 4px 4px 2px 2px;
  background: var(--success);
  transition: filter 0.15s;
}

.dashboard-chart-bar.is-wdr {
  background: var(--purple);
}

.dashboard-chart-bar:hover {
  filter: brightness(1.06);
}

.dashboard-chart-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.dashboard-panel .card-header {
  align-items: baseline;
}

.dashboard-panel-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.dashboard-panel-link:hover {
  text-decoration: underline;
}

.dashboard-empty {
  margin: 0;
  padding: 1.25rem 0;
  text-align: center;
}

.dashboard-table-wrap {
  overflow-x: auto;
  margin: 0 -0.25rem;
}

.dashboard-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.dashboard-mini-table th {
  text-align: left;
  padding: 0.5rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--hairline-strong);
  background: #e8e8ed;
}

.dashboard-mini-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}

.dashboard-mini-table tbody tr:hover td {
  background: rgba(0, 113, 227, 0.04);
}

.dashboard-mini-table .right {
  text-align: right;
}

.cell-clip {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-notify-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline);
}

.dashboard-notify-item:last-child {
  border-bottom: none;
}

.dashboard-notify-title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.dashboard-notify-msg {
  display: block;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.dashboard-notify-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.dashboard-field-full {
  grid-column: 1 / -1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 24, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade 0.18s ease-out;
}

.modal-dialog {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 3rem);
  display: flex;
  animation: modalPop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(15, 17, 24, 0.32);
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--hairline);
  gap: 0.75rem;
}

.modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0.25rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: var(--hairline);
  color: var(--text);
}

.modal-body {
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.modal-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--fill-form, #f5f5f7);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}

.modal-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.modal-meta dt {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.modal-meta dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-body .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-body .field > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.modal-body select,
.modal-body textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--fill-form, #f5f5f7);
  font: inherit;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.modal-body select:focus,
.modal-body textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18);
}

.modal-body textarea {
  resize: vertical;
  min-height: 84px;
  font-family: inherit;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--hairline);
  background: rgba(245, 245, 247, 0.55);
}

body.modal-open {
  overflow: hidden;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 540px) {
  .modal-meta {
    grid-template-columns: 1fr;
  }
}

/* ——— Progress bar bileşenleri ——— */
.progress {
  position: relative;
  height: 6px;
  width: 100%;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.progress--success .progress-bar { background-color: var(--success, #34c759); }
.progress--danger  .progress-bar { background-color: var(--danger,  #ff3b30); }
.progress--warning .progress-bar { background-color: var(--warning, #ff9500); }
.progress--purple  .progress-bar { background-color: var(--purple,  #5e5ce6); }
.progress--info    .progress-bar { background-color: var(--blue,    #0071e3); }

.progress--lg { height: 9px; }
.progress--sm { height: 4px; }

/* iki renkli (yatırım/çekim) bölünmüş bar */
.progress-split {
  display: flex;
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  overflow: hidden;
}

.progress-split > span {
  display: block;
  height: 100%;
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-split-dep {
  background: linear-gradient(90deg, #34c759 0%, #2aa84d 100%);
}

.progress-split-wdr {
  background: linear-gradient(90deg, #5e5ce6 0%, #4a48c4 100%);
}

/* stat-card progress yerleşimi */
.stat-card--with-bar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.stat-card--with-bar .progress,
.stat-card--with-bar .progress-split {
  margin-top: 0.4rem;
}

.stat-card-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.stat-card-meta strong {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.text-danger { color: var(--danger, #ff3b30); }

/* dashboard-op progress */
.dashboard-op {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-op .progress {
  margin-top: auto;
}

/* mutabakat tablosu — pay sütunu */
.consensus-share-col {
  width: 220px;
}

.consensus-share-cell {
  vertical-align: middle;
}

.consensus-share {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.consensus-share-bar {
  flex: 1;
  height: 8px;
  position: relative;
}

.consensus-share-pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary, var(--muted));
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
  text-align: right;
}

.consensus-site-slug {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* ——— Test işlem ekleme sayfası ——— */
.test-tx-shell { display: flex; flex-direction: column; gap: 1rem; }

.test-tx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.test-tx-stat {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.95rem 1.1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-xl, 16px);
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.test-tx-stat-label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; }
.test-tx-stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.test-tx-stat-sub { font-size: 0.78rem; color: var(--muted); }

.text-warning { color: #b87800; }
.text-muted { color: var(--muted); }

.test-tx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 980px) {
  .test-tx-grid { grid-template-columns: 1fr; }
}

.test-tx-card {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.2rem;
}

.test-tx-card-head {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--hairline);
}

.test-tx-card-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.test-tx-card-head p { margin: 0.2rem 0 0; font-size: 0.85rem; }

.test-tx-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  font-weight: 700; font-size: 1.1rem; color: #fff;
  flex-shrink: 0;
}

.test-tx-card-head--dep .test-tx-card-icon { background: linear-gradient(180deg, #4cd771, #34c759); }
.test-tx-card-head--wdr .test-tx-card-icon { background: linear-gradient(180deg, #ffb13a, #ff9500); }

.test-tx-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
}

.test-tx-fields .field { display: flex; flex-direction: column; gap: 0.3rem; }
.test-tx-fields .field span { font-size: 0.78rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.test-tx-fields .field input,
.test-tx-fields .field select {
  background: var(--fill-form, #f2f2f7);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: inherit;
}
.test-tx-fields .field input:focus,
.test-tx-fields .field select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-focus, rgba(10,132,255,0.18));
}

.test-tx-card-foot {
  display: flex; justify-content: flex-end; gap: 0.5rem;
  padding-top: 0.5rem; border-top: 1px solid var(--hairline);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.alert-success { background: #ecfdf3; color: #166534; border-color: rgba(52,199,89,0.35); }
.alert-danger { background: #fff4f3; color: #991b1b; border-color: rgba(255,59,48,0.35); }
.alert-info { background: #f0f7ff; color: #0a4f8a; border-color: rgba(10,132,255,0.3); }

/* ——— Sub-panel: çekim uygunluğu (kapasite) widget'ı ——— */
.capacity-card { padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; }

.capacity-card-head {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: flex-start; justify-content: space-between;
}

.capacity-card-title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.capacity-card-sub { margin: 0.2rem 0 0; font-size: 0.85rem; }

.capacity-card-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.capacity-meta-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  min-width: 130px;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.capacity-meta-label { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.capacity-meta-value { font-size: 1.05rem; font-weight: 700; line-height: 1; }
.capacity-meta-value small { font-size: 0.72rem; color: var(--muted); font-weight: 500; margin-left: 0.15rem; }

.capacity-card-progress { width: 100%; }

.capacity-form {
  display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap;
  padding-top: 0.5rem; border-top: 1px solid var(--hairline);
}
.capacity-form-input { flex: 1 1 220px; display: flex; flex-direction: column; gap: 0.3rem; }
.capacity-form-input span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.capacity-form-input input {
  background: var(--fill-form, #f2f2f7);
  border: 1px solid transparent;
  border-radius: 10px; padding: 0.55rem 0.75rem; font: inherit;
}
.capacity-form-input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-focus, rgba(10,132,255,0.18)); }
.capacity-form-actions { flex: 0 0 auto; }

/* ——— Otomatik dağıtım bandı (Çekimler havuzu) ——— */
.auto-dist-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-xl, 16px);
  border: 1px solid rgba(0, 122, 255, 0.18);
  background: linear-gradient(180deg, #f5faff 0%, #eaf3ff 100%);
  box-shadow: 0 1px 2px rgba(0, 122, 255, 0.06), 0 8px 22px rgba(0, 122, 255, 0.08);
}

.auto-dist-bar-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.auto-dist-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.1);
  color: #0a84ff;
  flex-shrink: 0;
}

.auto-dist-bar-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.auto-dist-bar-text strong {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #1c1c1e;
}

.auto-dist-bar-text .muted {
  font-size: 0.82rem;
  color: #6b7280;
}

.auto-dist-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.auto-dist-toggle-form {
  margin: 0;
}

.auto-dist-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.7rem 0.4rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  color: #1c1c1e;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auto-dist-toggle:hover {
  border-color: rgba(0, 0, 0, 0.12);
}

.auto-dist-toggle.is-on {
  background: #ecfdf3;
  border-color: rgba(52, 199, 89, 0.4);
  color: #1f7a44;
}

.auto-dist-toggle.is-off {
  background: #f3f4f6;
  border-color: rgba(0, 0, 0, 0.08);
  color: #4b5563;
}

.auto-dist-toggle-track {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 160ms ease;
}

.auto-dist-toggle.is-on .auto-dist-toggle-track {
  background: #34c759;
}

.auto-dist-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease;
}

.auto-dist-toggle.is-on .auto-dist-toggle-thumb {
  transform: translateX(16px);
}

@media (max-width: 640px) {
  .auto-dist-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .auto-dist-bar-actions {
    justify-content: space-between;
  }
}

/* ——— Geçmiş bekleyen işlem uyarı bandı ——— */
.pending-history-banner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-xl, 16px);
  border: 1px solid rgba(255, 59, 48, 0.32);
  background: linear-gradient(180deg, #fff4f3 0%, #ffeae8 100%);
  box-shadow: 0 1px 2px rgba(255, 59, 48, 0.08), 0 8px 22px rgba(255, 59, 48, 0.1);
}

.pending-history-banner-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pending-history-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: var(--danger, #ff3b30);
  box-shadow: 0 2px 6px rgba(255, 59, 48, 0.35);
  flex-shrink: 0;
}

.pending-history-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pending-history-banner-text strong {
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  color: var(--danger-deep, #b3261e);
}

.pending-history-banner-text .muted {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(120, 25, 18, 0.75);
}

.pending-history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pending-history-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem 0.45rem 0.85rem;
  background: #fff;
  border: 1px solid rgba(255, 59, 48, 0.28);
  border-radius: 999px;
  text-decoration: none;
  color: var(--danger-deep, #b3261e);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s var(--ease, ease), box-shadow 0.15s, background 0.15s, border-color 0.15s;
}

.pending-history-chip:hover {
  background: var(--danger, #ff3b30);
  color: #fff;
  border-color: var(--danger, #ff3b30);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.3);
}

.pending-history-chip-date {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.005em;
}

.pending-history-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.4rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(255, 59, 48, 0.14);
  color: var(--danger, #ff3b30);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background 0.15s, color 0.15s;
}

.pending-history-chip:hover .pending-history-chip-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

@media (max-width: 640px) {
  .pending-history-banner-head {
    flex-wrap: wrap;
  }
  .pending-history-chips {
    gap: 0.4rem;
  }
}

/* ——— Site rozeti / logo ——— */
.site-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  vertical-align: middle;
}

.site-badge-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--hairline, rgba(0, 0, 0, 0.08));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.site-badge-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-badge-logo--fallback {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, #f3f4f7 0%, #e6e7ec 100%);
  letter-spacing: 0.02em;
}

.site-badge-name {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-badge-name--strong {
  font-weight: 700;
  letter-spacing: -0.005em;
}

.site-badge--md .site-badge-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-badge--md .site-badge-logo--fallback {
  font-size: 0.95rem;
}

.site-badge--lg .site-badge-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.site-badge--lg .site-badge-logo--fallback {
  font-size: 1.15rem;
}

.site-badge--xs .site-badge-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.site-badge--xs .site-badge-logo--fallback {
  font-size: 0.7rem;
}

.pool-card-site {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

/* Ana panel — operatöre atama */
.actions-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.assign-sub-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.25rem;
  border-top: 1px dashed var(--hairline);
  width: 100%;
}

.assign-sub-select {
  min-width: 10rem;
  max-width: 16rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--hairline-strong);
  background: var(--fill-form);
  font-size: 0.82rem;
}

.op-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.55rem 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(94, 92, 230, 0.10);
  color: #4846b8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid rgba(94, 92, 230, 0.22);
}

.op-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5e5ce6, #4846b8);
  box-shadow: 0 0 0 2px rgba(94, 92, 230, 0.18);
  flex-shrink: 0;
}

.btn.btn-xs {
  padding: 0.18rem 0.55rem;
  font-size: 0.74rem;
  border-radius: 7px;
  line-height: 1.2;
}

.dashboard-ops-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-ops-card-sub {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.op-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  padding: 0.4rem 0 0.2rem;
}

.op-overview-item {
  border: 1px solid var(--hairline);
  background: var(--surface-soft, rgba(255, 255, 255, 0.55));
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.op-overview-item:hover {
  border-color: rgba(94, 92, 230, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -18px rgba(94, 92, 230, 0.6);
}

.op-overview-item--off {
  opacity: 0.6;
}

.op-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.op-overview-figs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.7rem;
}

.op-overview-figs > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.op-overview-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #6b6b73);
}

.op-overview-val {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.op-overview-val .muted {
  font-size: 0.7rem;
  font-weight: 500;
  margin-left: 0.15rem;
}

.op-overview-links {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.1rem;
}

.op-badge--off {
  opacity: 0.55;
  background: rgba(120, 120, 130, 0.08);
  color: #6b6b73;
  border-color: rgba(120, 120, 130, 0.18);
}

.pool-form-card {
  margin-bottom: 1rem;
}

.pool-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pool-form .field-checkbox {
  align-items: flex-start;
}

.pool-form .switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--hairline-strong);
  background: var(--fill-form);
  font-size: 0.85rem;
  cursor: pointer;
}

.pool-form-ops {
  grid-column: 1 / -1;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: var(--surface-soft, rgba(255, 255, 255, 0.5));
}

.pool-form-ops legend {
  padding: 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #6b6b73);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.op-pick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.4rem 0 0.2rem;
}

.op-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem 0.3rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--fill-form);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.op-pick input[type="checkbox"] {
  accent-color: #5e5ce6;
  margin: 0;
}

.op-pick:hover {
  border-color: rgba(94, 92, 230, 0.4);
}

.op-pick:has(input:checked) {
  background: rgba(94, 92, 230, 0.10);
  border-color: rgba(94, 92, 230, 0.55);
}

.op-pick--off {
  opacity: 0.65;
}

.pool-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.pool-card-ops {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pool-card-ops-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* ===== Pool modal & chip-grid ===== */
.modal-dialog--lg {
  width: min(820px, 100%);
}

.modal-helper {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
}

.pool-modal-section {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  margin: 0.85rem 0 0;
  background: var(--surface-soft, rgba(255, 255, 255, 0.55));
}

.pool-modal-section legend {
  padding: 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #6b6b73);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pool-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.3rem 0 0.1rem;
}

.pool-card-section {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pool-card-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #6b6b73);
  font-weight: 600;
}

.pool-card-section-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.pool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1180px) {
  .pool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .pool-grid { grid-template-columns: 1fr; }
}

.pool-card-section-list--row {
  flex-wrap: nowrap;
  overflow: hidden;
  min-width: 0;
}

.pool-card-section-list--row .site-badge {
  flex-shrink: 0;
  max-width: 7.5rem;
  overflow: hidden;
}

.pool-card-section-list--row .site-badge-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extra-count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(94, 92, 230, 0.12);
  color: #4846b8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid rgba(94, 92, 230, 0.22);
  cursor: help;
}

.op-badge--site {
  background: rgba(0, 113, 227, 0.08);
  color: #0a4ea3;
  border-color: rgba(0, 113, 227, 0.22);
  padding: 0.1rem 0.5rem 0.1rem 0.25rem;
}

.op-badge--site .site-badge {
  gap: 0.35rem;
}

/* ========================================================================
   SUB-PANEL (havuz operatörü) — özel tema
   ======================================================================== */

.app--sub {
  background: linear-gradient(180deg, #f5f4ff 0%, #f7f7fb 60%, #f4f4f7 100%);
}

.app--sub .topbar--sub {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  border-bottom: 1px solid rgba(94, 92, 230, 0.10);
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  padding: 0.25rem 0.55rem 0.25rem 0.65rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.topbar-link:hover { background: rgba(94, 92, 230, 0.08); }

.avatar--sub {
  background: linear-gradient(145deg, #5e5ce6, #4846b8) !important;
  color: #fff !important;
}

.app--sub .sidebar--sub {
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(247,247,255,0.96));
  border-right: 1px solid rgba(94, 92, 230, 0.12);
}

.sidebar-op-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.65rem 0.35rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(94,92,230,0.10), rgba(0,113,227,0.06));
  border: 1px solid rgba(94, 92, 230, 0.12);
}
.sidebar-op-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #5e5ce6, #4846b8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -4px rgba(94,92,230,0.55);
}
.sidebar-op-meta { display: flex; flex-direction: column; min-width: 0; }
.sidebar-op-name {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-op-role { font-size: 0.7rem; color: var(--text-muted, #6b6b73); }

.sidebar-nav--sub .nav-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  color: #2c2c33;
  font-weight: 500;
  font-size: 0.88rem;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-nav--sub .nav-item .nav-ic {
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b6b85;
  flex-shrink: 0;
}
.sidebar-nav--sub .nav-item .nav-ic svg { width: 18px; height: 18px; }
.sidebar-nav--sub .nav-item:hover {
  background: rgba(94, 92, 230, 0.08);
}
.sidebar-nav--sub .nav-item.is-active {
  background: linear-gradient(135deg, rgba(94,92,230,0.15), rgba(0,113,227,0.08));
  color: #2a2960;
  font-weight: 600;
}
.sidebar-nav--sub .nav-item.is-active .nav-ic {
  color: #5e5ce6;
}
.sidebar-nav--sub .nav-group-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #8b8b99);
  padding: 0.85rem 0.7rem 0.3rem;
}

.nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff3b30;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px -2px rgba(255, 59, 48, 0.55);
}

/* MATRIX-style sub-panel navigation & pages (layout only; colors stay app theme) */
.sidebar-nav--matrix {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.5rem;
}
.sub-nav-section {
  margin-top: 0.5rem;
}
.sub-nav-section:first-child { margin-top: 0; }
.sub-nav-section-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-muted, #8b8b99);
  padding: 0.75rem 0.75rem 0.35rem;
}
.sub-nav-mtx {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 11px;
  text-decoration: none;
  color: #2c2c33;
  transition: background 0.15s ease;
}
.sub-nav-mtx:hover {
  background: rgba(94, 92, 230, 0.07);
}
.sub-nav-mtx.is-active {
  background: linear-gradient(135deg, rgba(94,92,230,0.16), rgba(0,113,227,0.09));
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.sub-nav-mtx-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(94, 92, 230, 0.08);
  color: #5e5ce6;
  flex-shrink: 0;
}
.sub-nav-mtx-ic svg { width: 18px; height: 18px; }
.sub-nav-mtx.is-active .sub-nav-mtx-ic {
  background: rgba(94, 92, 230, 0.18);
  color: #4846b8;
}
.sub-nav-mtx-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  flex: 1;
}
.sub-nav-mtx-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.sub-nav-mtx-sub {
  font-size: 0.72rem;
  color: var(--text-muted, #6b6b73);
  line-height: 1.2;
}
.sub-nav-mtx .nav-badge {
  margin-left: 0;
  flex-shrink: 0;
}

.topbar-page-title--ghost {
  min-width: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.sub-matrix-page {
  max-width: 1280px;
  margin: 0 auto 1rem;
}
.sub-matrix-page--dash {
  margin-bottom: 0.35rem;
}
.sub-matrix-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1c1c1e;
}
.sub-matrix-lead {
  text-align: center;
  margin: -0.5rem 0 1.25rem;
  font-size: 0.9rem;
}

.sub-matrix-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.sub-matrix-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--hairline, rgba(0,0,0,0.08));
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
a.sub-matrix-card:hover {
  border-color: rgba(94, 92, 230, 0.25);
  box-shadow: 0 4px 14px -6px rgba(94, 92, 230, 0.35);
}
.sub-matrix-card.is-active {
  border-color: rgba(94, 92, 230, 0.45);
  box-shadow: 0 4px 18px -8px rgba(94, 92, 230, 0.45);
}
.sub-matrix-card--static {
  cursor: default;
}
.sub-matrix-card--action {
  cursor: pointer;
  list-style: none;
}
.sub-matrix-card--action::-webkit-details-marker { display: none; }
.sub-matrix-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #6b6b73);
}
.sub-matrix-card-count {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1c1c1e;
}
.sub-matrix-card-amt {
  font-size: 0.8rem;
  font-weight: 600;
  color: #34c759;
}
.sub-matrix-manual-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  list-style: none;
}
.sub-matrix-manual-plus {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  background: rgba(94, 92, 230, 0.12);
  color: #5e5ce6;
}
.sub-matrix-manual-body {
  padding: 0 0.5rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
}

.sub-matrix-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.sub-matrix-toolbar-dates {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.sub-matrix-toolbar-dates input[type="date"] {
  border: 1px solid var(--hairline, rgba(0,0,0,0.1));
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  background: var(--fill-form, #f2f2f7);
}
.sub-matrix-toolbar-sep { color: var(--text-muted); font-size: 0.85rem; }
.sub-matrix-toolbar-search {
  flex: 1 1 200px;
  min-width: 160px;
  border: 1px solid var(--hairline, rgba(0,0,0,0.1));
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  background: var(--fill-form, #f2f2f7);
}

.sub-matrix-table-wrap {
  border-radius: 14px;
  overflow: auto;
  border: 1px solid var(--hairline, rgba(0,0,0,0.08));
}
.sub-matrix-table th {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sub-matrix-export-form {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem;
}
.sub-matrix-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.sub-matrix-export-actions {
  margin-top: 1rem;
}

/* shell wrapper */
.sub-shell {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* hero card */
.sub-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, rgba(94,92,230,0.10), rgba(0,113,227,0.06)) !important;
}
.sub-hero-left { display: flex; flex-direction: column; gap: 0.15rem; }
.sub-hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted, #6b6b73);
  text-transform: uppercase;
}
.sub-hero-title {
  margin: 0.1rem 0 0.25rem;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #4846b8, #0071e3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub-hero-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted, #4a4a55);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sub-hero-meta .dot { opacity: 0.4; }

/* collateral ring */
.collateral-ring {
  --p: 0%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background:
    conic-gradient(#5e5ce6 var(--p), rgba(94, 92, 230, 0.12) 0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 28px -16px rgba(94, 92, 230, 0.55);
}
.collateral-ring-inner {
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.05rem;
}
.collateral-ring-label {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #6b6b73);
}
.collateral-ring-pct {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #4846b8;
}
.collateral-ring-meta {
  font-size: 0.72rem;
  color: var(--text-muted, #6b6b73);
}

/* stat tiles */
.sub-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}
.sub-stat {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(94, 92, 230, 0.10);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
}
.sub-stat:hover {
  border-color: rgba(94, 92, 230, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -14px rgba(94,92,230,0.55);
}
.sub-stat--wide { grid-column: span 2; }
.sub-stat-label {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #6b6b73);
}
.sub-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sub-stat-value small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted, #6b6b73);
  margin-left: 0.15rem;
}
.sub-stat-hint { font-size: 0.72rem; color: var(--text-muted, #8b8b99); }
.sub-stat.is-alert {
  border-color: rgba(255, 59, 48, 0.40);
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.06), rgba(255,255,255,0.85));
}
.sub-stat.is-alert .sub-stat-value { color: #ff3b30; }

/* row layout */
.sub-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
.sub-row .sub-card { min-width: 0; }
.sub-card--wide { grid-column: span 1; }
@media (max-width: 980px) {
  .sub-row { grid-template-columns: 1fr; }
}

/* limit blocks */
.limit-block { margin: 0.6rem 0; }
.limit-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}
.limit-block-foot { font-size: 0.75rem; margin: 0.5rem 0 0; }

.card-header-link {
  font-size: 0.78rem;
  color: #5e5ce6;
  text-decoration: none;
  font-weight: 600;
}
.card-header-link:hover { text-decoration: underline; }

/* recent transactions list */
.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.recent-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.2rem;
  border-bottom: 1px solid var(--hairline);
}
.recent-item:last-child { border-bottom: none; }
.recent-kind {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.recent-kind.is-dep { background: rgba(52,199,89,0.15); color: #34c759; }
.recent-kind.is-wdr { background: rgba(255,159,10,0.15); color: #ff9f0a; }
.recent-main { flex: 1; min-width: 0; }
.recent-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.recent-line.muted { font-size: 0.75rem; margin-top: 0.15rem; }
.recent-amount { margin-left: auto; font-weight: 600; }

/* quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.4rem;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.6);
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.quick-action:hover {
  border-color: rgba(94, 92, 230, 0.45);
  transform: translateY(-1px);
}
.qa-ic {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(94,92,230,0.18), rgba(0,113,227,0.10));
  color: #4846b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem !important;
}
.empty-state-ic {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}
.empty-state h3 {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

/* my pools grid */
.my-pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.95rem;
}
.my-pool-card {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.my-pool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 92, 230, 0.30);
  box-shadow: 0 14px 36px -22px rgba(94, 92, 230, 0.55);
}
.my-pool-card--off { opacity: 0.65; }
.my-pool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.my-pool-name { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.my-pool-id { font-size: 0.72rem; }
.my-pool-section { display: flex; flex-direction: column; gap: 0.35rem; }
.my-pool-section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #6b6b73);
  font-weight: 600;
}
.my-pool-sites { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.my-pool-limits { display: flex; flex-direction: column; gap: 0.15rem; }
.my-pool-foot { margin: 0.15rem 0 0; }

/* IBAN cards */
.sub-banks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.sub-banks-title { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.iban-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 0.95rem;
}
.iban-card {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f7f7ff 100%) !important;
  border: 1px solid rgba(94, 92, 230, 0.16) !important;
}
.iban-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.iban-bank { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.iban-del-btn {
  background: transparent;
  border: 1px solid var(--hairline);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted, #6b6b73);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.iban-del-btn:hover {
  background: rgba(255, 59, 48, 0.10);
  color: #ff3b30;
  border-color: rgba(255, 59, 48, 0.40);
}
.iban-number {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  background: rgba(94, 92, 230, 0.06);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  word-break: break-all;
}
.iban-card-foot {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-size: 0.85rem;
}
.iban-card-foot .muted { font-size: 0.7rem; }

/* profile */
.profile-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
}
@media (max-width: 900px) {
  .profile-row { grid-template-columns: 1fr; }
}
.profile-overview {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(145deg, #5e5ce6, #0071e3);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 14px 32px -18px rgba(94, 92, 230, 0.6);
}
.profile-meta { width: 100%; }
.profile-name { margin: 0; font-size: 1.4rem; letter-spacing: -0.02em; }
.profile-username { margin: 0.1rem 0 0.85rem; font-size: 0.85rem; }
.profile-stats {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  text-align: left;
}
.profile-stats > div { padding: 0.4rem 0; border-top: 1px dashed var(--hairline); }
.profile-stats dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #8b8b99);
  margin: 0 0 0.15rem;
}
.profile-stats dd { margin: 0; font-size: 0.88rem; }

.profile-forms {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* notifications */
.notif-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}
.notif-bullet {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5e5ce6, #4846b8);
  margin-top: 0.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(94, 92, 230, 0.18);
}
.notif-body { flex: 1; }
.notif-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}
.notif-title { font-size: 0.95rem; letter-spacing: -0.005em; }
.notif-time { font-size: 0.72rem; }
.notif-msg { margin: 0.25rem 0 0; font-size: 0.85rem; line-height: 1.45; color: #2c2c33; }

/* alerts */
.alert--success {
  background: rgba(52, 199, 89, 0.10);
  border-color: rgba(52, 199, 89, 0.35);
  color: #1a7d3a;
}

/* consensus summary cards (sub-panel) */
.consensus-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.consensus-summary-card {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.consensus-summary-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted, #6b6b73);
}
.consensus-summary-card-big {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.consensus-summary-card-big small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted, #6b6b73);
  margin-left: 0.15rem;
}
.consensus-summary-card-meta { font-size: 0.75rem; color: var(--text-muted, #8b8b99); }

/* Alt panel (havuz operatörü) */
.app--sub .sidebar--sub .nav-item {
  margin-left: 0;
}

.app--sub .sidebar--sub .nav-item::before,
.app--sub .sidebar--sub .nav-item::after {
  display: none;
}

.sidebar-brand-logo--sub {
  background: linear-gradient(145deg, #5e5ce6 0%, #4846b8 100%);
}

.brand-gradient--sub {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #5e5ce6, #0071e3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.table-totals--pair {
  grid-template-columns: 1fr 1fr;
}

.table-totals--pair .table-totals-actions {
  display: none;
}

/* ==========================================================================
   SUB PANEL — PRO REFRESH (havuz operatörü)
   Tüm /havuz/* sayfaları için tutarlı, minimal, premium tema
   ========================================================================== */

/* ---- Tema değişkenleri ---- */
.app--sub {
  --sp-bg: #f5f5f7;
  --sp-card: #ffffff;
  --sp-card-soft: #fafafa;
  --sp-text: #1d1d1f;
  --sp-muted: #6e6e73;
  --sp-line: rgba(0, 0, 0, 0.06);
  --sp-line-strong: rgba(0, 0, 0, 0.1);
  --sp-radius: 18px;
  --sp-radius-sm: 12px;
  --sp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --sp-shadow-md: 0 4px 24px rgba(15, 23, 42, 0.06);
  --sp-shadow-lg: 0 14px 40px rgba(15, 23, 42, 0.08);
  --sp-accent: #6366f1;
  --sp-accent-2: #4f46e5;
  --sp-accent-soft: rgba(99, 102, 241, 0.1);
  --sp-success: #16a34a;
  --sp-success-soft: rgba(22, 163, 74, 0.1);
  --sp-warning: #d97706;
  --sp-warning-soft: rgba(217, 119, 6, 0.12);
  --sp-danger: #dc2626;
  --sp-danger-soft: rgba(220, 38, 38, 0.1);
  --sp-info: #0891b2;
  --sp-info-soft: rgba(8, 145, 178, 0.1);
  background: var(--sp-bg);
}

.app--sub .app-content {
  padding: 1rem clamp(0.85rem, 1.2vw, 1.1rem) 1.6rem;
}

/* ---- Topbar refresh ---- */
.app--sub .topbar--sub {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--sp-line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.app--sub .topbar-page-title {
  color: var(--sp-text);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.app--sub .avatar--sub {
  background: linear-gradient(145deg, var(--sp-accent), var(--sp-accent-2));
  box-shadow: 0 6px 16px -8px rgba(79, 70, 229, 0.55);
}
.app--sub .topbar-link {
  border-radius: 999px;
  padding: 0.3rem 0.5rem 0.3rem 0.85rem;
  transition: background 0.15s ease;
}
.app--sub .topbar-link:hover {
  background: var(--sp-accent-soft);
}

/* ---- Sidebar refresh ---- */
.app--sub .sidebar--sub {
  background: linear-gradient(180deg, #ffffff 0%, #f9f9fb 100%);
  border-right: 1px solid var(--sp-line);
  box-shadow: var(--sp-shadow-sm);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.app--sub .sidebar-head { border-bottom: 1px solid var(--sp-line); }
.app--sub .sidebar-brand-meta { color: var(--sp-text); }
.app--sub .sidebar-brand-name { font-weight: 600; letter-spacing: -0.01em; }
.app--sub .sidebar-brand-sub { color: var(--sp-muted); }
.app--sub .sidebar-op-card {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.06), rgba(79, 70, 229, 0.04));
  border: 1px solid var(--sp-line);
  border-radius: 14px;
}
.app--sub .sidebar-op-name { color: var(--sp-text); }
.app--sub .sidebar-op-role { color: var(--sp-accent); font-weight: 600; }

.app--sub .sub-nav-section-label {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: #9a9aa1;
  font-weight: 600;
}

.app--sub .sub-nav-mtx {
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  color: #4a4a52;
  transition: background 0.15s ease, color 0.15s ease, transform 0.06s ease;
  position: relative;
}
.app--sub .sub-nav-mtx::before,
.app--sub .sub-nav-mtx::after { display: none; }
.app--sub .sub-nav-mtx-ic {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--sp-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.app--sub .sub-nav-mtx-ic svg { width: 18px; height: 18px; }
.app--sub .sub-nav-mtx-title { color: var(--sp-text); font-weight: 500; font-size: 0.92rem; letter-spacing: -0.005em; }
.app--sub .sub-nav-mtx-sub   { color: #8e8e94; font-size: 0.74rem; }
.app--sub .sub-nav-mtx:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--sp-text);
}
.app--sub .sub-nav-mtx.is-active {
  background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
  color: #fff;
  box-shadow: 0 6px 18px -10px rgba(79, 70, 229, 0.6);
}
.app--sub .sub-nav-mtx.is-active .sub-nav-mtx-ic { background: rgba(255, 255, 255, 0.18); color: #fff; }
.app--sub .sub-nav-mtx.is-active .sub-nav-mtx-title { color: #fff; }
.app--sub .sub-nav-mtx.is-active .sub-nav-mtx-sub   { color: rgba(255, 255, 255, 0.78); }

.app--sub .nav-badge {
  background: var(--sp-danger);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  min-width: 22px;
  text-align: center;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.app--sub .sub-nav-mtx.is-active .nav-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: none;
}

.app--sub .sidebar-foot { border-top: 1px solid var(--sp-line); }
.app--sub .sidebar-logout {
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  color: var(--sp-muted);
  font-size: 0.88rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.app--sub .sidebar-logout:hover {
  background: var(--sp-danger-soft);
  color: var(--sp-danger);
}

/* ---- Page header ---- */
.sp-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.2rem;
}
.sp-page-head__main { min-width: 0; }
.sp-page-head__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sp-accent);
  background: var(--sp-accent-soft);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}
.sp-page-head__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--sp-text);
}
.sp-page-head__sub {
  margin: 0.25rem 0 0;
  color: var(--sp-muted);
  font-size: 0.92rem;
}
.sp-page-head__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

/* ---- Stat grid ---- */
.sp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.sp-stat {
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--sp-shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.sp-stat:hover {
  transform: translateY(-1px);
  box-shadow: var(--sp-shadow-md);
}
.sp-stat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sp-stat__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sp-muted);
  letter-spacing: 0.005em;
}
.sp-stat__icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-accent-soft);
  color: var(--sp-accent);
  flex-shrink: 0;
}
.sp-stat__icon svg { width: 16px; height: 16px; }
.sp-stat--success .sp-stat__icon { background: var(--sp-success-soft); color: var(--sp-success); }
.sp-stat--warning .sp-stat__icon { background: var(--sp-warning-soft); color: var(--sp-warning); }
.sp-stat--danger  .sp-stat__icon { background: var(--sp-danger-soft);  color: var(--sp-danger); }
.sp-stat--info    .sp-stat__icon { background: var(--sp-info-soft);    color: var(--sp-info); }
.sp-stat__value {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sp-text);
  line-height: 1.05;
}
.sp-stat__value small { font-size: 0.6em; color: var(--sp-muted); font-weight: 500; margin-left: 0.2em; }
.sp-stat__sub {
  font-size: 0.78rem;
  color: var(--sp-muted);
  margin-top: 0.1rem;
}
.sp-stat__sub.is-pos { color: var(--sp-success); }
.sp-stat__sub.is-neg { color: var(--sp-danger); }

a.sp-stat {
  text-decoration: none;
  color: inherit;
}
a.sp-stat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.04));
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
a.sp-stat:hover::after { opacity: 1; }
a.sp-stat.is-active {
  border-color: var(--sp-accent);
  box-shadow: 0 0 0 3px var(--sp-accent-soft), var(--sp-shadow-sm);
}

/* ---- Cards ---- */
.sp-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-sm);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.sp-card--pad-lg { padding: 1.35rem 1.4rem; }
.sp-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}
.sp-card__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--sp-text);
  margin: 0;
}
.sp-card__sub {
  font-size: 0.82rem;
  color: var(--sp-muted);
  margin: 0;
}

/* ---- Toolbar (filtre/arama/aksiyon) ---- */
.sp-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-sm);
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.sp-toolbar__dates {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--sp-card-soft);
  border-radius: 10px;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--sp-line);
}
.sp-toolbar input[type="date"],
.sp-toolbar input[type="search"],
.sp-toolbar input[type="text"],
.sp-toolbar select {
  appearance: none;
  border: 1px solid var(--sp-line);
  background: var(--sp-card-soft);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--sp-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-width: 0;
}
.sp-toolbar__dates input[type="date"] {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.3rem;
  min-width: 130px;
}
.sp-toolbar input:focus,
.sp-toolbar select:focus {
  border-color: var(--sp-accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--sp-accent-soft);
}
.sp-toolbar__search {
  flex: 1;
  min-width: 200px;
}
.sp-toolbar__sep { color: var(--sp-muted); }
.sp-toolbar__spacer { flex: 1; }

/* ---- Buttons (sub theme) ---- */
.app--sub .btn {
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: transform 0.06s ease, filter 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.app--sub .btn-sm {
  padding: 0.42rem 0.7rem;
  font-size: 0.82rem;
  border-radius: 9px;
}
.app--sub .btn-primary {
  background: linear-gradient(180deg, var(--sp-accent), var(--sp-accent-2));
  color: #fff;
  border: 0;
  box-shadow: 0 6px 16px -8px rgba(79, 70, 229, 0.55);
}
.app--sub .btn-primary:hover { filter: brightness(1.05); box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.65); }
.app--sub .btn-success {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  border: 0;
  box-shadow: 0 5px 14px -8px rgba(22, 163, 74, 0.6);
}
.app--sub .btn-success:hover { filter: brightness(1.05); }
.app--sub .btn-danger {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #fff;
  border: 0;
  box-shadow: 0 5px 14px -8px rgba(220, 38, 38, 0.55);
}
.app--sub .btn-danger:hover { filter: brightness(1.05); }
.app--sub .btn-secondary,
.app--sub .btn-soft {
  background: var(--sp-card-soft);
  color: var(--sp-text);
  border: 1px solid var(--sp-line-strong);
}
.app--sub .btn-secondary:hover,
.app--sub .btn-soft:hover { background: #f0f0f4; }
.app--sub .btn-ghost {
  background: transparent;
  color: var(--sp-accent);
  border: 1px solid var(--sp-accent-soft);
}
.app--sub .btn-ghost:hover { background: var(--sp-accent-soft); }
.app--sub .btn:active { transform: scale(0.97); }

/* ---- Badges/pills ---- */
.app--sub .badge,
.app--sub .badge-ok,
.app--sub .badge-off {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
}
.app--sub .badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.app--sub .badge-success    { background: var(--sp-success-soft); color: var(--sp-success); border-color: rgba(22,163,74,0.18); }
.app--sub .badge-rejection,
.app--sub .badge-rejected   { background: var(--sp-danger-soft);  color: var(--sp-danger);  border-color: rgba(220,38,38,0.18); }
.app--sub .badge-waiting    { background: var(--sp-warning-soft); color: var(--sp-warning); border-color: rgba(217,119,6,0.18); }
.app--sub .badge-joy        { background: var(--sp-info-soft);    color: var(--sp-info);    border-color: rgba(8,145,178,0.18); }
.app--sub .badge-ok  { background: var(--sp-success-soft); color: var(--sp-success); padding: 0.22rem 0.55rem; }
.app--sub .badge-off { background: rgba(0,0,0,0.05); color: var(--sp-muted); padding: 0.22rem 0.55rem; }

.app--sub .kind-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.app--sub .kind-deposit  { background: var(--sp-success-soft); color: var(--sp-success); }
.app--sub .kind-withdraw { background: var(--sp-warning-soft); color: var(--sp-warning); }

/* ---- Table refresh (sub) ---- */
.sp-table-wrap {
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-sm);
  overflow: hidden;
}
.sp-table-wrap__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--sp-line);
}
.sp-table-wrap__head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sp-text);
}
.sp-table-wrap__totals {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.82rem;
  color: var(--sp-muted);
}
.sp-table-wrap__totals strong { color: var(--sp-text); font-weight: 600; }
.sp-table-wrap__totals .is-amt { color: var(--sp-success); }

.sp-table-scroll { overflow-x: auto; }

.app--sub .data-table { background: transparent; }
.app--sub .data-table thead th {
  background: var(--sp-card-soft);
  color: var(--sp-muted);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--sp-line);
}
.app--sub .data-table tbody td {
  padding: 0.78rem 0.85rem;
  border-top: 1px solid var(--sp-line);
  font-size: 0.88rem;
  color: var(--sp-text);
  vertical-align: middle;
}
.app--sub .data-table tbody tr:hover td { background: rgba(99, 102, 241, 0.025); }
.app--sub .data-table .mono { font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace; font-size: 0.82rem; color: var(--sp-muted); }

/* ---- Empty state ---- */
.sp-empty {
  background: var(--sp-card);
  border: 1px dashed var(--sp-line-strong);
  border-radius: var(--sp-radius);
  padding: 2.6rem 1.5rem;
  text-align: center;
  color: var(--sp-muted);
}
.sp-empty__icon {
  width: 64px; height: 64px;
  margin: 0 auto 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--sp-accent-soft);
  color: var(--sp-accent);
}
.sp-empty__icon svg { width: 28px; height: 28px; }
.sp-empty__title { color: var(--sp-text); font-weight: 600; font-size: 1.05rem; margin: 0 0 0.3rem; letter-spacing: -0.01em; }
.sp-empty__sub   { margin: 0 0 1rem; font-size: 0.9rem; }

/* ---- Mevcut sub-matrix sayfaları için override (Yatırımlar/Çekimler/Excel/Log) ---- */
.app--sub .sub-matrix-page { padding: 0; }
.app--sub .sub-matrix-title {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--sp-text);
  margin: 0 0 1.1rem;
  text-transform: none;
}
.app--sub .sub-matrix-lead { margin: -0.6rem 0 1.1rem; color: var(--sp-muted); font-size: 0.92rem; }

.app--sub .sub-matrix-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.95rem;
}
.app--sub .sub-matrix-card {
  --tone: 99, 102, 241;
  --tone-strong: var(--sp-accent);
  background:
    linear-gradient(150deg, rgba(var(--tone), 0.20) 0%, rgba(var(--tone), 0.08) 55%, rgba(var(--tone), 0.04) 100%),
    var(--sp-card);
  border: 1px solid rgba(var(--tone), 0.22);
  border-radius: var(--sp-radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
  min-height: 96px;
}
.app--sub .sub-matrix-card::before {
  content: "";
  position: absolute;
  inset: auto -22% -45% auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(var(--tone), 0.35) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(2px);
}
.app--sub .sub-matrix-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(var(--tone), 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-color: rgba(var(--tone), 0.4);
}
.app--sub .sub-matrix-card.is-active {
  border-color: rgb(var(--tone));
  box-shadow: 0 0 0 3px rgba(var(--tone), 0.22), 0 6px 20px rgba(var(--tone), 0.18);
}
.app--sub .sub-matrix-card-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(var(--tone));
  position: relative;
  z-index: 1;
}
.app--sub .sub-matrix-card-count {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--sp-text);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.app--sub .sub-matrix-card-amt {
  font-size: 0.88rem;
  color: rgb(var(--tone));
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.app--sub .sub-matrix-card-amt.muted { color: var(--sp-muted) !important; font-weight: 500 !important; font-size: 0.78rem; }

/* ---- Renk varyantları (mevcut site konseptiyle uyumlu pasteller) ---- */
.app--sub .sub-matrix-card[data-tone="waiting"]  { --tone: 217, 119, 6;  }
.app--sub .sub-matrix-card[data-tone="approved"] { --tone: 22, 163, 74;  }
.app--sub .sub-matrix-card[data-tone="rejected"] { --tone: 220, 38, 38;  }
.app--sub .sub-matrix-card[data-tone="all"]      { --tone: 14, 116, 144; }
.app--sub .sub-matrix-card[data-tone="total"]    { --tone: 99, 102, 241; }
.app--sub .sub-matrix-card[data-tone="action"]   { --tone: 124, 58, 237; }

.app--sub .sub-matrix-card--static { /* heritage hook */ }
.app--sub .sub-matrix-card--action {
  background:
    linear-gradient(140deg, rgba(124, 58, 237, 0.08), rgba(99, 102, 241, 0.04));
  border: 1px dashed rgba(124, 58, 237, 0.45);
  align-items: center;
  justify-content: center;
  text-align: center;
}
.app--sub .sub-matrix-card--action::before { display: none; }
.app--sub .sub-matrix-manual-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--sp-text);
  font-size: 0.92rem;
}
.app--sub .sub-matrix-manual-summary::-webkit-details-marker { display: none; }
.app--sub .sub-matrix-manual-plus {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sp-accent-soft);
  color: var(--sp-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.app--sub .sub-matrix-manual-body { font-size: 0.82rem; margin-top: 0.55rem; line-height: 1.45; }

.app--sub .sub-matrix-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-sm);
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  backdrop-filter: none;
}
.app--sub .sub-matrix-toolbar-dates {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--sp-card-soft);
  border-radius: 10px;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--sp-line);
}
.app--sub .sub-matrix-toolbar-dates input[type="date"] {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.3rem;
  font-family: var(--font);
  font-size: 0.86rem;
  color: var(--sp-text);
  outline: none;
  min-width: 120px;
}
.app--sub .sub-matrix-toolbar-sep { color: var(--sp-muted); }
.app--sub .sub-matrix-toolbar-search {
  flex: 1;
  min-width: 200px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--sp-line);
  background: var(--sp-card-soft);
  color: var(--sp-text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.app--sub .sub-matrix-toolbar-search:focus {
  border-color: var(--sp-accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--sp-accent-soft);
}

.app--sub .sub-matrix-table-wrap {
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-sm);
  overflow: hidden;
  backdrop-filter: none;
}
.app--sub .sub-matrix-table { background: transparent; }

/* ---- Sub-shell containers (eski şablonlu sayfalar) ---- */
.app--sub .sub-shell { padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.app--sub .card.glass {
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-sm);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.app--sub .filter-card { padding: 0.85rem 1rem; }
.app--sub .filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem 0.9rem;
  align-items: end;
}
.app--sub .field span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sp-muted);
  margin-bottom: 0.3rem;
  display: block;
}
.app--sub .field input,
.app--sub .field select,
.app--sub .field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--sp-line);
  background: var(--sp-card-soft);
  color: var(--sp-text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.app--sub .field input:focus,
.app--sub .field select:focus,
.app--sub .field textarea:focus {
  border-color: var(--sp-accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--sp-accent-soft);
}
.app--sub .field-row { display: flex; gap: 0.4rem; }
.app--sub .field-actions { display: flex; align-items: end; }

/* ---- Tables (sub-shell sayfaları) ---- */
.app--sub .table-wrap {
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-sm);
  overflow: hidden;
  backdrop-filter: none;
}
.app--sub .table-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--sp-line);
  background: linear-gradient(180deg, rgba(99,102,241,0.04), transparent);
}
.app--sub .table-totals-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sp-muted); display: block; }
.app--sub .table-totals-value { font-size: 1.15rem; font-weight: 700; color: var(--sp-success); letter-spacing: -0.01em; }

/* ---- IBAN sayfası ---- */
.app--sub .sub-banks-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.app--sub .sub-banks-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.2rem;
  color: var(--sp-text);
}
.app--sub .iban-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}
.app--sub .iban-card {
  position: relative;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f9f9fb 100%);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-sm);
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.app--sub .iban-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -30%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08), transparent 65%);
  pointer-events: none;
}
.app--sub .iban-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow-md);
}
.app--sub .iban-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.95rem;
}
.app--sub .iban-bank {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sp-text);
}
.app--sub .iban-del-btn {
  appearance: none;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--sp-danger);
  border: 0;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.app--sub .iban-del-btn:hover { background: rgba(220, 38, 38, 0.16); }
.app--sub .iban-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--sp-text);
  background: rgba(0,0,0,0.03);
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}
.app--sub .iban-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
}
.app--sub .iban-card-foot .muted { color: var(--sp-muted); }
.app--sub .iban-card-foot strong { color: var(--sp-text); }

/* ---- Havuzlarım sayfası ---- */
.app--sub .my-pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.95rem;
}
.app--sub .my-pool-card {
  padding: 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.app--sub .my-pool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(99,102,241,0.04), transparent 30%);
  pointer-events: none;
}
.app--sub .my-pool-card--off { opacity: 0.7; filter: grayscale(0.3); }
.app--sub .my-pool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}
.app--sub .my-pool-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--sp-text);
}
.app--sub .my-pool-id { font-size: 0.78rem; color: var(--sp-muted); }
.app--sub .my-pool-section { display: flex; flex-direction: column; gap: 0.45rem; }
.app--sub .my-pool-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-muted);
  font-weight: 600;
}
.app--sub .my-pool-sites { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.app--sub .my-pool-limits { display: flex; flex-direction: column; gap: 0.85rem; }
.app--sub .limit-block-head { display: flex; justify-content: space-between; font-size: 0.83rem; margin-bottom: 0.35rem; color: var(--sp-text); }
.app--sub .limit-block-head strong { color: var(--sp-text); font-weight: 600; }
.app--sub .progress {
  height: 6px;
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.app--sub .progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sp-accent), var(--sp-accent-2));
  border-radius: inherit;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.app--sub .progress--success .progress-bar { background: linear-gradient(90deg, #22c55e, #16a34a); }
.app--sub .progress--warning .progress-bar { background: linear-gradient(90deg, #f59e0b, #d97706); }
.app--sub .my-pool-foot { margin: 0; }

/* ---- Bildirimler ---- */
.app--sub .notif-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.app--sub .notif-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.app--sub .notif-item:hover { transform: translateY(-1px); box-shadow: var(--sp-shadow-md); }
.app--sub .notif-bullet {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--sp-accent-soft);
  color: var(--sp-accent);
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.app--sub .notif-bullet::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}
.app--sub .notif-body { flex: 1; min-width: 0; }
.app--sub .notif-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.2rem;
}
.app--sub .notif-title { font-weight: 600; color: var(--sp-text); font-size: 0.95rem; letter-spacing: -0.01em; }
.app--sub .notif-time  { color: var(--sp-muted); font-size: 0.78rem; }
.app--sub .notif-msg   { margin: 0; color: var(--sp-text); font-size: 0.9rem; line-height: 1.5; }

/* ---- Profile ---- */
.app--sub .profile-row { gap: 1rem; }
.app--sub .profile-overview {
  background: linear-gradient(145deg, #ffffff 0%, #f6f7fc 100%);
  border: 1px solid var(--sp-line);
}
.app--sub .profile-avatar {
  background: linear-gradient(145deg, var(--sp-accent), var(--sp-accent-2));
  box-shadow: 0 16px 36px -16px rgba(79, 70, 229, 0.55);
}
.app--sub .profile-name { color: var(--sp-text); }

/* ---- Capacity card (dashboard) ---- */
.app--sub .capacity-card {
  padding: 1.2rem 1.3rem;
  background: linear-gradient(145deg, #ffffff 0%, #fdfdff 100%);
}
.app--sub .capacity-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}
.app--sub .capacity-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--sp-text);
  margin: 0;
}
.app--sub .capacity-card-sub { margin: 0.2rem 0 0; font-size: 0.83rem; color: var(--sp-muted); }
.app--sub .capacity-card-meta { display: inline-flex; gap: 0.7rem; flex-wrap: wrap; }
.app--sub .capacity-meta-tile {
  background: var(--sp-card-soft);
  border: 1px solid var(--sp-line);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  min-width: 130px;
}
.app--sub .capacity-meta-label { font-size: 0.72rem; color: var(--sp-muted); display: block; letter-spacing: 0.04em; text-transform: uppercase; }
.app--sub .capacity-meta-value { font-size: 1.05rem; font-weight: 700; color: var(--sp-text); letter-spacing: -0.01em; }
.app--sub .capacity-meta-value small { font-size: 0.7em; color: var(--sp-muted); font-weight: 500; }
.app--sub .capacity-card-progress { margin: 0.95rem 0 0.85rem; height: 8px; }
.app--sub .capacity-form {
  display: flex;
  align-items: end;
  gap: 0.7rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--sp-line);
  padding-top: 0.95rem;
  margin-top: 0.6rem;
}
.app--sub .capacity-form-input { flex: 1; min-width: 200px; }
.app--sub .capacity-form-actions { display: flex; }

/* ---- Hero (dashboard) ---- */
.app--sub .sub-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f6f7fc 100%);
  border: 1px solid var(--sp-line);
  padding: 1.4rem 1.5rem;
  border-radius: var(--sp-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.app--sub .sub-hero-eyebrow { font-size: 0.78rem; color: var(--sp-muted); }
.app--sub .sub-hero-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; color: var(--sp-text); margin: 0.15rem 0 0.45rem; }
.app--sub .sub-hero-meta  { font-size: 0.86rem; color: var(--sp-muted); display: inline-flex; gap: 0.55rem; flex-wrap: wrap; }
.app--sub .sub-hero-meta strong { color: var(--sp-text); font-weight: 600; }
.app--sub .sub-hero-meta .dot { color: var(--sp-line-strong); }

.app--sub .collateral-ring {
  --p: 0%;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: conic-gradient(var(--sp-accent) var(--p), rgba(0,0,0,0.06) var(--p));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.app--sub .collateral-ring-inner {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--sp-line);
}
.app--sub .collateral-ring-label { font-size: 0.7rem; color: var(--sp-muted); letter-spacing: 0.02em; }
.app--sub .collateral-ring-pct   { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--sp-text); }
.app--sub .collateral-ring-meta  { font-size: 0.72rem; color: var(--sp-muted); }

.app--sub .sub-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
}
.app--sub .sub-stat {
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-sm);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.app--sub a.sub-stat:hover { transform: translateY(-1px); box-shadow: var(--sp-shadow-md); }
.app--sub .sub-stat-label { font-size: 0.78rem; color: var(--sp-muted); font-weight: 500; }
.app--sub .sub-stat-value { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; color: var(--sp-text); line-height: 1.05; }
.app--sub .sub-stat-value small { font-size: 0.6em; color: var(--sp-muted); font-weight: 500; margin-left: 0.2em; }
.app--sub .sub-stat-hint  { font-size: 0.78rem; color: var(--sp-muted); }
.app--sub .sub-stat.is-alert { border-color: rgba(217, 119, 6, 0.4); box-shadow: 0 0 0 3px var(--sp-warning-soft), var(--sp-shadow-sm); }
.app--sub .sub-stat--wide { grid-column: span 2; }
@media (max-width: 720px) {
  .app--sub .sub-stat--wide { grid-column: span 1; }
}

.app--sub .sub-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.95rem;
  margin-top: 0.95rem;
}
@media (max-width: 980px) { .app--sub .sub-row { grid-template-columns: 1fr; } }
.app--sub .sub-card { padding: 1.1rem 1.2rem; }
.app--sub .sub-card--wide { grid-column: span 1; }
.app--sub .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.app--sub .card-title  { font-weight: 600; font-size: 0.95rem; color: var(--sp-text); letter-spacing: -0.01em; }
.app--sub .card-header-link { color: var(--sp-accent); text-decoration: none; font-size: 0.85rem; font-weight: 500; }

.app--sub .dashboard-chart { display: flex; align-items: flex-end; gap: 0.55rem; height: 140px; }
.app--sub .dashboard-chart-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.app--sub .dashboard-chart-bars { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.app--sub .dashboard-chart-bar  { width: 12px; min-height: 4px; border-radius: 4px 4px 0 0; transition: height 0.4s cubic-bezier(0.4,0,0.2,1); }
.app--sub .dashboard-chart-bar.is-dep { background: linear-gradient(180deg, #22c55e, #16a34a); }
.app--sub .dashboard-chart-bar.is-wdr { background: linear-gradient(180deg, #f59e0b, #d97706); }
.app--sub .dashboard-chart-label { font-size: 0.72rem; color: var(--sp-muted); }
.app--sub .dashboard-chart-legend { display: inline-flex; gap: 0.65rem; font-size: 0.78rem; color: var(--sp-muted); }
.app--sub .dashboard-chart-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.app--sub .dashboard-chart-legend-item::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.app--sub .dashboard-chart-legend-item.is-dep::before { background: #22c55e; }
.app--sub .dashboard-chart-legend-item.is-wdr::before { background: #f59e0b; }

.app--sub .recent-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.app--sub .recent-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0; border-top: 1px solid var(--sp-line); }
.app--sub .recent-item:first-child { border-top: 0; }
.app--sub .recent-kind { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; }
.app--sub .recent-kind.is-dep { background: var(--sp-success-soft); color: var(--sp-success); }
.app--sub .recent-kind.is-wdr { background: var(--sp-warning-soft); color: var(--sp-warning); }
.app--sub .recent-main { flex: 1; min-width: 0; }
.app--sub .recent-line { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; font-size: 0.88rem; }
.app--sub .recent-line.muted { color: var(--sp-muted); font-size: 0.76rem; margin-top: 0.15rem; }
.app--sub .recent-line strong { color: var(--sp-text); }
.app--sub .recent-amount.text-success { color: var(--sp-success); font-weight: 600; }

.app--sub .quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.app--sub .quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.6rem;
  border-radius: 12px;
  background: var(--sp-card-soft);
  border: 1px solid var(--sp-line);
  text-decoration: none;
  color: var(--sp-text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.08s ease, border-color 0.15s ease;
}
.app--sub .quick-action:hover { background: var(--sp-accent-soft); border-color: var(--sp-accent); color: var(--sp-accent); transform: translateY(-1px); }
.app--sub .quick-action .qa-ic { font-size: 1.4rem; line-height: 1; }

/* ---- Consensus özet kartları ---- */
.app--sub .consensus-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.app--sub .consensus-summary-card { padding: 1.1rem 1.2rem; }
.app--sub .consensus-summary-card-label { font-size: 0.78rem; color: var(--sp-muted); font-weight: 500; }
.app--sub .consensus-summary-card-big { display: block; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; margin: 0.35rem 0 0.15rem; color: var(--sp-text); }
.app--sub .consensus-summary-card-big small { font-size: 0.55em; color: var(--sp-muted); font-weight: 500; }
.app--sub .consensus-summary-card-meta { font-size: 0.78rem; color: var(--sp-muted); }
.app--sub .text-success { color: var(--sp-success) !important; }
.app--sub .text-danger  { color: var(--sp-danger) !important; }
.app--sub .text-warning { color: var(--sp-warning) !important; }

.app--sub .progress-split {
  display: flex;
  height: 6px;
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
  overflow: hidden;
}
.app--sub .progress-split-dep { background: var(--sp-success); }
.app--sub .progress-split-wdr { background: var(--sp-warning); }

/* ---- Mobile drawer / responsive ---- */
@media (max-width: 920px) {
  .app--sub .sidebar--sub {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 60;
  }
  .app--sub .sidebar--sub.is-open { transform: translateX(0); }
  .app--sub .app-main { margin-left: 0; }
}

/* Eski .glass'ı sub'ta nötrle */
.app--sub .glass {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Sidebar backdrop */
.app--sub .sidebar-backdrop {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Modal sub theme */
.app--sub .modal-content {
  background: var(--sp-card);
  border-radius: var(--sp-radius);
  border: 1px solid var(--sp-line);
  box-shadow: var(--sp-shadow-lg);
}
.app--sub .modal-header { border-bottom: 1px solid var(--sp-line); padding: 1rem 1.2rem; }
.app--sub .modal-title  { color: var(--sp-text); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.app--sub .modal-close  { color: var(--sp-muted); }
.app--sub .modal-body   { padding: 1.1rem 1.2rem; }
.app--sub .modal-footer { padding: 0.95rem 1.2rem; border-top: 1px solid var(--sp-line); display: flex; justify-content: flex-end; gap: 0.5rem; background: var(--sp-card-soft); }

.app--sub .alert {
  background: var(--sp-danger-soft);
  border: 1px solid rgba(220, 38, 38, 0.18);
  color: var(--sp-danger);
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  font-size: 0.9rem;
}
.app--sub .alert--success {
  background: var(--sp-success-soft);
  border-color: rgba(22, 163, 74, 0.18);
  color: var(--sp-success);
}

/* Empty states (eski sub-shell) */
.app--sub .empty-state {
  background: var(--sp-card);
  border: 1px dashed var(--sp-line-strong);
  border-radius: var(--sp-radius);
  padding: 2.6rem 1.5rem;
  text-align: center;
}
.app--sub .empty-state-ic {
  font-size: 2.3rem;
  margin-bottom: 0.55rem;
  display: inline-flex;
  width: 64px; height: 64px;
  background: var(--sp-accent-soft);
  border-radius: 18px;
  align-items: center;
  justify-content: center;
}
.app--sub .empty-state h3 { color: var(--sp-text); margin: 0 0 0.35rem; }

/* Excel/Log lead spacing */
.app--sub .sub-matrix-export-form { padding: 1.2rem 1.3rem; }
.app--sub .sub-matrix-export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.85rem; margin-bottom: 1rem; }
.app--sub .sub-matrix-export-actions { display: flex; justify-content: flex-end; padding-top: 0.85rem; border-top: 1px solid var(--sp-line); }

.app--sub .actions-cell { text-align: right; white-space: nowrap; }
.app--sub .inline-form { display: inline-flex; gap: 0.35rem; flex-wrap: nowrap; }

/* ==========================================================================
   IBAN YÖNETİMİ — filtre kartı, tablo, aksiyon stilleri
   ========================================================================== */
.app--sub .sp-filter-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.app--sub .sp-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem 0.85rem;
}
.app--sub .sp-filter-grid .field { gap: 0.3rem; }
.app--sub .sp-filter-grid .field > span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-muted);
}
.app--sub .sp-filter-grid .field input,
.app--sub .sp-filter-grid .field select {
  background: var(--sp-card-soft);
  border: 1px solid var(--sp-line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  color: var(--sp-text);
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.app--sub .sp-filter-grid .field input:focus,
.app--sub .sp-filter-grid .field select:focus {
  outline: none;
  border-color: var(--sp-accent);
  background: var(--sp-card);
  box-shadow: 0 0 0 3px var(--sp-accent-soft);
}
.app--sub .sp-filter-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  border-top: 1px solid var(--sp-line);
  padding-top: 0.75rem;
}

/* Form grid (modal içi) */
.app--sub .sp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.95rem;
}
.app--sub .sp-form-grid .field--full { grid-column: 1 / -1; }
.app--sub .sp-form-grid .field { display: flex; flex-direction: column; gap: 0.3rem; }
.app--sub .sp-form-grid .field > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sp-text);
}
.app--sub .sp-form-grid .field input,
.app--sub .sp-form-grid .field select {
  background: var(--sp-card-soft);
  border: 1px solid var(--sp-line);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  color: var(--sp-text);
  font-size: 0.92rem;
}
.app--sub .sp-form-grid .field input:focus,
.app--sub .sp-form-grid .field select:focus {
  outline: none;
  border-color: var(--sp-accent);
  box-shadow: 0 0 0 3px var(--sp-accent-soft);
}
@media (max-width: 640px) {
  .app--sub .sp-form-grid { grid-template-columns: 1fr; }
}

/* Tablo: IBAN listesi */
.app--sub .sp-table-wrap {
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-sm);
  overflow: hidden;
}
.app--sub .sp-table-scroll { overflow-x: auto; }
.app--sub .sp-iban-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.app--sub .sp-iban-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--sp-card-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-muted);
  padding: 0.78rem 0.9rem;
  border-bottom: 1px solid var(--sp-line);
  text-align: left;
  white-space: nowrap;
}
.app--sub .sp-iban-table thead th.table-num,
.app--sub .sp-iban-table tbody td.table-num { text-align: right; font-variant-numeric: tabular-nums; }
.app--sub .sp-iban-table thead th.actions-cell { text-align: right; }
.app--sub .sp-iban-table tbody td {
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: var(--sp-text);
  border-bottom: 1px solid var(--sp-line);
  vertical-align: middle;
}
.app--sub .sp-iban-table tbody tr:last-child td { border-bottom: none; }
.app--sub .sp-iban-table tbody tr:hover td { background: rgba(99, 102, 241, 0.025); }
.app--sub .sp-iban-table tr.is-off td { opacity: 0.62; }
.app--sub .sp-iban-table .cell-sm { width: 1%; white-space: nowrap; color: var(--sp-muted); }
.app--sub .sp-iban-table .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.app--sub .sp-iban-table .text-success { color: var(--sp-success); font-weight: 700; }

.app--sub .sp-iban-bank {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}
.app--sub .sp-iban-bank-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sp-accent-soft), rgba(99, 102, 241, 0.04));
  color: var(--sp-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--sp-line);
  flex-shrink: 0;
}
.app--sub .sp-iban-cell { letter-spacing: 0.02em; color: var(--sp-text); }

.app--sub .sp-iban-actions {
  display: inline-flex;
  gap: 0.32rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

/* Aksiyon buton renkleri (tabloya özel ton) */
.app--sub .btn.btn-warning {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #422006;
  font-weight: 600;
}
.app--sub .btn.btn-warning:hover {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  color: #1f1300;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}
.app--sub .btn.btn-success {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #052e10;
  font-weight: 600;
}
.app--sub .btn.btn-success:hover {
  background: linear-gradient(180deg, #16a34a, #15803d);
  color: #022007;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}
.app--sub .btn.btn-soft {
  background: var(--sp-card-soft);
  border: 1px solid var(--sp-line-strong);
  color: var(--sp-muted);
  font-weight: 600;
}
.app--sub .btn.btn-soft:hover {
  background: #eef2ff;
  color: var(--sp-accent-2);
  border-color: var(--sp-accent);
}
.app--sub .btn.btn-danger {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #fff;
  font-weight: 600;
}
.app--sub .btn.btn-danger:hover {
  background: linear-gradient(180deg, #dc2626, #b91c1c);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.app--sub .badge.badge-success {
  background: var(--sp-success-soft);
  color: var(--sp-success);
  border: 1px solid rgba(22, 163, 74, 0.2);
}
.app--sub .badge.badge-off {
  background: rgba(110, 110, 115, 0.1);
  color: var(--sp-muted);
  border: 1px solid var(--sp-line-strong);
}

.app--sub .sp-table-empty { padding: 0 !important; }
.app--sub .sp-table-empty .sp-empty {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 2.5rem 1.5rem;
}

/* Mobil uyum */
@media (max-width: 720px) {
  .app--sub .sp-iban-table thead { display: none; }
  .app--sub .sp-iban-table,
  .app--sub .sp-iban-table tbody,
  .app--sub .sp-iban-table tr,
  .app--sub .sp-iban-table td { display: block; width: 100%; }
  .app--sub .sp-iban-table tr {
    border-bottom: 1px solid var(--sp-line);
    padding: 0.85rem 0.95rem;
  }
  .app--sub .sp-iban-table tbody tr:last-child { border-bottom: none; }
  .app--sub .sp-iban-table td {
    border: none;
    padding: 0.25rem 0;
    text-align: left !important;
  }
  .app--sub .sp-iban-table td.cell-sm { color: var(--sp-muted); font-size: 0.78rem; }
  .app--sub .sp-iban-actions { justify-content: flex-start; flex-wrap: wrap; gap: 0.4rem; }
  .app--sub .sp-iban-actions .btn { flex: 1 1 auto; min-width: 95px; }
}

/* sp-page-head action button right alignment */
.app--sub .sp-page-head__actions { display: flex; gap: 0.5rem; align-items: center; }

/* ==========================================================================
   YATIRIMLAR / ÇEKİMLER tablosu — yeni düzen
   ========================================================================== */
.app--sub .sub-matrix-table-wrap.glass {
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-sm);
  overflow: hidden;
}
.app--sub .sub-matrix-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.app--sub .sub-matrix-table thead th {
  background: var(--sp-card-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-muted);
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--sp-line);
  text-align: left;
  white-space: nowrap;
}
.app--sub .sub-matrix-table tbody td {
  padding: 0.85rem 0.95rem;
  font-size: 0.92rem;
  color: var(--sp-text);
  border-bottom: 1px solid var(--sp-line);
  vertical-align: middle;
}
.app--sub .sub-matrix-table tbody tr:last-child td { border-bottom: none; }
.app--sub .sub-matrix-table tbody tr:hover td { background: rgba(99, 102, 241, 0.025); }
.app--sub .sub-matrix-table .nowrap { white-space: nowrap; }
.app--sub .sub-matrix-table .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.app--sub .sub-matrix-table .text-success { color: var(--sp-success); font-weight: 700; }
.app--sub .sub-matrix-table .text-danger  { color: var(--sp-danger);  font-weight: 700; }
.app--sub .sub-matrix-table .actions-cell { white-space: nowrap; }
.app--sub .sub-matrix-table .table-num { text-align: right; font-variant-numeric: tabular-nums; }

/* Pill butonları (Onayla / Reddet) */
.app--sub .sub-matrix-table .btn-success.btn-sm,
.app--sub .sub-matrix-table .btn-danger.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
.app--sub .sub-matrix-table .btn-success.btn-sm::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.app--sub .sub-matrix-table .btn-danger.btn-sm::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* Tutar hücresi: yeşil/kırmızı pill ikonu */
.app--sub .tx-amount {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.app--sub .tx-amount__ic {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 900;
}
.app--sub .tx-amount--in  { color: var(--sp-success); }
.app--sub .tx-amount--in  .tx-amount__ic { background: var(--sp-success-soft); color: var(--sp-success); }
.app--sub .tx-amount--out { color: var(--sp-danger); }
.app--sub .tx-amount--out .tx-amount__ic { background: var(--sp-danger-soft); color: var(--sp-danger); }

/* Banka hücresi: avatar + iki satır */
.app--sub .tx-bank {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.app--sub .tx-bank__mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sp-accent-soft), rgba(99, 102, 241, 0.04));
  color: var(--sp-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid var(--sp-line);
  flex-shrink: 0;
}
.app--sub .tx-bank__name { font-weight: 600; line-height: 1.15; }
.app--sub .tx-bank__sub  { color: var(--sp-muted); font-size: 0.74rem; line-height: 1.1; margin-top: 2px; }

/* Tarih hücresi (geliş + yanıt) */
.app--sub .tx-when { white-space: nowrap; line-height: 1.2; }
.app--sub .tx-when__main { color: var(--sp-text); font-size: 0.86rem; }
.app--sub .tx-when__sub  { color: var(--sp-muted); font-size: 0.76rem; margin-top: 2px; }

/* Kalan zaman */
.app--sub .tx-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.app--sub .tx-countdown--ok    { color: var(--sp-success); }
.app--sub .tx-countdown--warn  { color: var(--sp-warning); }
.app--sub .tx-countdown--late  { color: var(--sp-danger); }
.app--sub .tx-countdown__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}
.app--sub .tx-countdown--late .tx-countdown__dot { animation: tx-blink 1s infinite; }
@keyframes tx-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Durum badge — daha görünür */
.app--sub .badge.badge-waiting {
  background: var(--sp-warning-soft);
  color: var(--sp-warning);
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}
.app--sub .badge.badge-success {
  background: var(--sp-success-soft);
  color: var(--sp-success);
  border: 1px solid rgba(22, 163, 74, 0.25);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
}
.app--sub .badge.badge-rejection {
  background: var(--sp-danger-soft);
  color: var(--sp-danger);
  border: 1px solid rgba(220, 38, 38, 0.25);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
}

/* Mobil */
@media (max-width: 720px) {
  .app--sub .sub-matrix-table thead { display: none; }
  .app--sub .sub-matrix-table,
  .app--sub .sub-matrix-table tbody,
  .app--sub .sub-matrix-table tr,
  .app--sub .sub-matrix-table td { display: block; width: 100%; }
  .app--sub .sub-matrix-table tr {
    border-bottom: 1px solid var(--sp-line);
    padding: 0.85rem 0.95rem;
  }
  .app--sub .sub-matrix-table tbody tr:last-child { border-bottom: none; }
  .app--sub .sub-matrix-table td { border: none; padding: 0.25rem 0; }
  .app--sub .sub-matrix-table .actions-cell .inline-form { flex-wrap: wrap; gap: 0.4rem; }
}

/* ==========================================================================
   LOGLAR sayfası — filtre + tablo + collapsable JSON
   ========================================================================== */
.app--sub .sp-log-table th,
.app--sub .sp-log-table td {
  padding: 0.78rem 0.9rem;
  font-size: 0.88rem;
  vertical-align: top;
}
.app--sub .sp-log-table thead th {
  background: var(--sp-card-soft);
  color: var(--sp-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--sp-line);
  text-align: left;
}
.app--sub .sp-log-table tbody td { border-bottom: 1px solid var(--sp-line); }
.app--sub .sp-log-table tbody tr:last-child td { border-bottom: none; }
.app--sub .sp-log-table tr.log-row:hover td { background: rgba(99, 102, 241, 0.025); }
.app--sub .sp-log-table tr.log-detail-row td {
  background: var(--sp-card-soft);
  padding: 0;
  border-bottom: 1px solid var(--sp-line);
}

.app--sub .log-dir-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app--sub .log-dir-pill--in  { background: var(--sp-info-soft);    color: var(--sp-info); }
.app--sub .log-dir-pill--out { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }

.app--sub .log-http {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--sp-card-soft);
  border: 1px solid var(--sp-line);
}
.app--sub .log-http--ok  { color: var(--sp-success); border-color: rgba(22,163,74,0.25); background: var(--sp-success-soft); }
.app--sub .log-http--err { color: var(--sp-danger);  border-color: rgba(220,38,38,0.25); background: var(--sp-danger-soft); }

.app--sub .log-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--sp-line);
  color: var(--sp-muted);
  width: 22px; height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 0.4rem;
  transition: all 0.15s ease;
}
.app--sub .log-toggle:hover {
  background: var(--sp-accent-soft);
  color: var(--sp-accent);
  border-color: var(--sp-accent);
}
.app--sub tr.log-row[data-open="1"] .log-toggle {
  background: var(--sp-accent);
  color: #fff;
  border-color: var(--sp-accent);
}

.app--sub .log-detail {
  padding: 1rem 1.2rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px) {
  .app--sub .log-detail { grid-template-columns: 1fr; }
}
.app--sub .log-detail__block {
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: 12px;
  overflow: hidden;
}
.app--sub .log-detail__head {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-muted);
  padding: 0.55rem 0.8rem;
  background: var(--sp-card-soft);
  border-bottom: 1px solid var(--sp-line);
}
.app--sub .log-detail__pre {
  padding: 0.75rem 0.9rem;
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--sp-text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow: auto;
}

/* ==========================================================================
   ANA PANEL — Modal form-grid + ortak action bileşenleri
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.95rem;
}
.form-grid .field { display: flex; flex-direction: column; gap: 0.32rem; }
.form-grid .field--full { grid-column: 1 / -1; }
.form-grid .field > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.005em;
}
.form-grid .field input,
.form-grid .field select,
.form-grid .field textarea {
  background: var(--fill-form, #fafafa);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.form-grid .field input:focus,
.form-grid .field select:focus,
.form-grid .field textarea:focus {
  outline: none;
  border-color: var(--accent, #6366f1);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.modal-footer {
  padding: 0.95rem 1.4rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  background: var(--fill-form, #fafafa);
}

/* Banka hesabı durum badge'leri */
.badge-open       { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.badge-limit_full { background: rgba(217, 119, 6, 0.14); color: #b45309; }
.badge-suspended  { background: rgba(120, 113, 108, 0.14); color: #57534e; }
.badge-used       { background: rgba(8, 145, 178, 0.14); color: #0e7490; }
.badge-blocked    { background: rgba(220, 38, 38, 0.14); color: #b91c1c; }

/* Ortak inline-form aksiyon stilleri (ana panel) */
.actions-cell .inline-form { display: inline-flex; gap: 0.32rem; flex-wrap: nowrap; align-items: center; }
.btn.btn-warning {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #422006;
  font-weight: 600;
}
.btn.btn-warning:hover {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  color: #1f1300;
}
.btn.btn-soft {
  background: var(--fill-form, #f5f5f7);
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-weight: 600;
}
.btn.btn-soft:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent, #6366f1);
  border-color: var(--accent, #6366f1);
}
.btn.btn-soft:disabled,
.btn.btn-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.alert.alert--success {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: #15803d;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.site-badge-cell { display: inline-flex; align-items: center; }

/* table-num genel hizalama */
.data-table th.table-num,
.data-table td.table-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Ayarlar sayfası ve 2FA ===== */
.settings-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.settings-card { padding: 1.25rem 1.4rem; }
.settings-card--wide { grid-column: 1 / -1; }
.settings-card-head { margin-bottom: 1rem; }
.settings-card-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  background: rgba(99, 102, 241, 0.08);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}
.settings-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}
.settings-form { display: grid; gap: 1rem; }
.settings-form-actions { display: flex; gap: 0.6rem; margin-top: 0.5rem; }

/* Switch (toggle) */
.switch-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.15s, background 0.15s;
}
.switch-row:hover { border-color: rgba(99, 102, 241, 0.35); }
.switch-row input[type='checkbox'] { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  background: #d1d5db;
  border-radius: 999px;
  position: relative;
  transition: background 0.18s;
}
.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s;
}
.switch-row input:checked + .switch-track { background: #16a34a; }
.switch-row input:checked + .switch-track .switch-knob { transform: translateX(18px); }
.switch-meta { display: flex; flex-direction: column; gap: 0.15rem; line-height: 1.3; }
.switch-meta strong { font-weight: 600; color: var(--text, #0f172a); }
.switch-meta small { font-size: 0.82rem; }

/* 2FA durumu */
.twofa-status {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.55);
}
.twofa-status--on  { border-color: rgba(22, 163, 74, 0.35); background: rgba(22, 163, 74, 0.06); }
.twofa-status--off { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.06); }
.twofa-status div { display: flex; flex-direction: column; line-height: 1.3; }
.twofa-status strong { font-weight: 600; color: var(--text, #0f172a); }
.twofa-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.twofa-status--on .twofa-icon  { background: rgba(22, 163, 74, 0.15); color: #16a34a; }
.twofa-status--off .twofa-icon { background: rgba(245, 158, 11, 0.15); color: #b45309; }

/* 2FA kurulum (QR + secret) */
.twofa-setup {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.4rem;
  align-items: start;
  margin-top: 0.5rem;
}
.twofa-qr {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #fff;
  padding: 8px;
}
.twofa-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.twofa-setup-meta { display: flex; flex-direction: column; gap: 0.85rem; }
.twofa-steps {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}
.twofa-steps li { margin-bottom: 0.25rem; }
.twofa-secret {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  border: 1px solid var(--hairline);
}
.twofa-code-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  word-break: break-all;
  color: var(--text);
}
.twofa-verify {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}
.twofa-verify input {
  flex: 1 1 140px;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* user create grid (settings sayfasında) */
.user-create-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.1fr 0.9fr 1.2fr auto;
  gap: 0.75rem;
  align-items: end;
}
.user-create-grid .field-actions { align-self: end; }
.user-create-grid .field-2fa-toggle { align-self: end; }
.user-create-grid .field-2fa-toggle > span { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.3rem; }

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--hairline, rgba(15,23,42,.08));
  background: rgba(59, 130, 246, 0.04);
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.check-pill input { accent-color: var(--blue, #2563eb); }
.check-pill:hover { background: rgba(59, 130, 246, 0.08); }

/* QR modal — 2FA görüntüleme */
.qr-modal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.2rem;
  align-items: start;
}
.qr-modal-grid .creds-qr img { width: 240px; height: 240px; }
@media (max-width: 720px) {
  .qr-modal-grid { grid-template-columns: 1fr; }
  .qr-modal-grid .creds-qr { margin: 0 auto; }
}

/* Yeni oluşturulan kullanıcı / 2FA üretildi credentials kartı */
.creds-card {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06), rgba(59, 130, 246, 0.06));
  border: 1px solid rgba(34, 197, 94, 0.25);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.creds-card-head { margin-bottom: 0.9rem; }
.creds-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #16a34a;
  margin-bottom: 0.25rem;
}
.creds-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.creds-card-head .muted { font-size: 0.82rem; margin-top: 0.25rem; }

.creds-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.2rem;
  align-items: start;
}
.creds-qr {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--hairline, rgba(15,23,42,.08));
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  display: inline-flex;
}
.creds-qr img { display: block; width: 220px; height: 220px; }

.creds-meta { display: flex; flex-direction: column; gap: 0.6rem; }
.creds-row { display: flex; flex-direction: column; gap: 0.3rem; }
.creds-row label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
}
.creds-copy {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.creds-copy input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  border: 1px solid var(--hairline, rgba(15,23,42,.1));
  background: #fff;
  font-size: 0.85rem;
}
.creds-copy input.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.creds-copy .btn { white-space: nowrap; }

/* responsive */
@media (max-width: 900px) {
  .settings-grid { grid-template-columns: 1fr; }
  .twofa-setup { grid-template-columns: 1fr; }
  .twofa-qr { margin: 0 auto; }
  .user-create-grid { grid-template-columns: 1fr 1fr; }
  .user-create-grid .field-actions { grid-column: 1 / -1; }
  .user-create-grid .field-2fa-toggle { grid-column: 1 / -1; }
  .creds-grid { grid-template-columns: 1fr; }
  .creds-qr { margin: 0 auto; }
}

/* badge-info küçük etiket */
.badge.badge-info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ===== Site detay sayfası ===== */
.site-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(99,102,241,0.06), rgba(255,255,255,0.6));
  border: 1px solid var(--hairline);
}
.site-detail-meta { min-width: 0; }
.site-detail-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0.25rem 0;
}
.site-detail-stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 170px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hairline);
}
.site-stat-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.site-stat-value { font-size: 1.4rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.site-stat-sub   { font-size: 0.78rem; color: var(--muted); }

/* Tabs */
.tabs { width: 100%; }
.tabs-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.4rem;
}
.tab {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.55rem 1rem;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  transition: all 0.15s;
}
.tab:hover { color: var(--text); background: rgba(99, 102, 241, 0.05); }
.tab.is-active {
  color: #6366f1;
  border-color: var(--hairline);
  border-bottom-color: transparent;
  background: var(--bg-elevated, #fff);
  margin-bottom: -1px;
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: tabFade 0.18s ease-out; }
@keyframes tabFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* form-grid varyasyonları */
.form-grid.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .form-grid.form-grid--2,
  .form-grid.form-grid--3 { grid-template-columns: 1fr; }
}

/* API key kartı */
.api-key-card {
  border: 1px dashed rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.04);
  border-radius: 14px;
  padding: 1rem;
}
.api-key-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.api-key-row .field { min-width: 220px; }
.api-key-row input.mono { font-size: 0.82rem; }
.api-key-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }

.api-endpoint-card { border-top: 1px dashed var(--hairline); padding-top: 1rem; }
.api-endpoint-card table.data-table td.mono { font-size: 0.82rem; word-break: break-all; }

/* dashboard-style success/warning text helper */
.text-success { color: #16a34a; }
.text-warning { color: #b45309; }
.text-muted   { color: var(--muted); }

/* PROPAY brand logo (image variant) */
.sidebar-brand-logo--img {
  background: #fff;
  padding: 3px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.sidebar-brand-logo--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.app--sub .sidebar-brand-logo--img {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.04);
}

.auth-brand-mark--img {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.auth-brand-mark--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
