/* ==========================================================================
   Bet Amca — yönetim paneli (app.css token ve bileşenlerini kullanır)
   ========================================================================== */
body.admin { background: var(--bg); padding-bottom: 0; font-size: 14px; }
.adm {
  display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh;
  --s1: #3987e5;   /* grafik seri 1 (mavi) */
  --s2: #d95926;   /* grafik seri 2 (turuncu) */
  --s3: #199e70;   /* grafik seri 3 (deniz yeşili) */
  --s4: #c98500;   /* grafik seri 4 (sarı) */
}
@media (min-width: 1024px) { .adm { background: linear-gradient(to right, var(--bg-2) 251px, var(--border) 251px, var(--border) 252px, transparent 252px); } }
.adm-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 18px 12px 24px; scrollbar-width: thin;
}
.adm-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px 18px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.adm-brand .brand-text { font-size: 18px; }
.adm-brand .brand-mark { width: 32px; height: 32px; }
.adm-brand .brand-logo { height: 44px; }
.adm-tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border-2); border-radius: 6px; padding: 2px 6px; }
.adm-sec { margin-top: 2px; }
.adm-sec summary {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; cursor: pointer; list-style: none;
  color: var(--text-2); font-weight: 500; font-size: 14px; user-select: none;
}
.adm-sec summary::-webkit-details-marker { display: none; }
.adm-sec summary span { flex: 1; }
.adm-sec summary:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.adm-sec summary > .i:last-child { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.adm-sec[open] summary { color: var(--text); }
.adm-sec[open] summary > .i:last-child { transform: rotate(180deg); }
.adm-sec[open] summary .count { display: none; }
.adm-sec:has(a.active) summary { color: var(--gold); }
.adm-sec-items { margin: 2px 0 6px 20px; padding-left: 10px; border-left: 1px solid var(--border); }
.adm-sec-items a { padding: 8px 10px; font-size: 13.5px; }
.adm-sec-items a .i { width: 16px; height: 16px; }
.adm-nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 500; font-size: 14px; margin-bottom: 2px;
}
.adm-nav a span { flex: 1; }
.adm-nav a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.adm-nav a.active { background: rgba(var(--accent-rgb), .12); color: var(--gold); }
.adm-nav .count { font-style: normal; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 24px; background: rgba(var(--bg-rgb), .86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.adm-top h1 { font-size: 18px; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-top-actions { display: flex; align-items: center; gap: 10px; }
.adm-who { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.adm-who strong { font-size: 13px; color: var(--text); }
.adm-who small { font-size: 11px; color: var(--muted); }
.adm-menu { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); place-items: center; }
.adm-content { padding: 24px; flex: 1; }
.adm-backdrop { display: none; }

@media (max-width: 1023px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; z-index: 70; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .22s ease; }
  .adm.side-open .adm-side { transform: none; box-shadow: var(--shadow); }
  .adm.side-open .adm-backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .5); }
  .adm-menu { display: grid; }
  .adm-top { padding: 0 16px; }
  .adm-content { padding: 16px; }
}

/* ---------------------------------------------------------------- KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.kpi .k-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 255, 255, .06); color: var(--text-2); }
.kpi .k-icon .i { width: 21px; height: 21px; }
.kpi small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.kpi strong { display: block; font-size: 21px; font-weight: 700; line-height: 1.25; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }
.kpi.warn { border-color: rgba(245, 158, 11, .35); }
.kpi.warn .k-icon { background: rgba(245, 158, 11, .14); color: #fbbf24; }
.kpi.gold .k-icon { background: rgba(var(--accent-rgb), .14); color: var(--gold); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1200px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid-2.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.grid-2 > .panel { margin-bottom: 0; }
.stack { display: grid; gap: 20px; }
.panel .table { min-width: 0; }
.panel .table-wrap .table { min-width: 620px; }
.panel .table-wrap .table.compact { min-width: 0; }
.table.compact td { padding: 11px 10px; }
.table td .sub { display: block; font-size: 12px; color: var(--muted); }
.table tr.row-muted td { opacity: .55; }
.ulink { color: var(--gold); font-weight: 600; }
.ulink:hover { text-decoration: underline; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- Grafik */
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; font-size: 13px; color: var(--text-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-legend b { color: var(--text); font-weight: 600; }
.chart-plot { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg .grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.chart-svg .baseline { stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.chart-svg .axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart-svg .hit { fill: transparent; cursor: crosshair; }
.chart-svg .hit:hover { fill: rgba(255, 255, 255, .04); }
.chart-empty { position: absolute; inset: 0 0 30px 64px; display: grid; place-items: center; color: var(--muted); font-size: 13px; pointer-events: none; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 170px;
  background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 12px;
  box-shadow: var(--shadow); font-size: 12px;
}
.chart-tip strong { display: block; margin-bottom: 6px; font-size: 13px; }
.chart-tip div { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.chart-tip div i { width: 10px; height: 10px; border-radius: 3px; }
.chart-tip div b { margin-left: auto; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-table { margin-top: 12px; }
.chart-table summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--muted); }
.chart-table summary:hover { color: var(--text); }
.chart-table .table { margin-top: 8px; }

/* ---------------------------------------------------------------- Filtre / araç çubuğu */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .input, .toolbar select { height: 40px; width: auto; min-width: 160px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font-size: 14px; }
.toolbar .input:focus, .toolbar select:focus { outline: none; border-color: var(--gold); }
.toolbar .grow { flex: 1; min-width: 200px; }
.toolbar .spacer { flex: 1; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--gold); border-bottom-color: var(--gold); }
.tabs a em { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }

/* ---------------------------------------------------------------- Satır içi eylemler */
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-actions form { display: inline-flex; gap: 6px; margin: 0; }
.row-actions.nowrap { flex-wrap: nowrap; }
.row-actions .input { height: 34px; min-width: 140px; font-size: 13px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); }
.icon-btn:hover { color: var(--text); border-color: var(--gold); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }
.btn-xs { height: 32px; padding: 0 10px; font-size: 12px; border-radius: 8px; gap: 6px; }

/* ---------------------------------------------------------------- Form ızgarası + anahtar */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 760px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.form-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 16px; }
.field input[type=color] { padding: 4px; height: 48px; cursor: pointer; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-2); margin: 6px 18px 12px 0; }
.field label.switch { display: inline-flex; font-size: 14px; font-weight: 400; color: var(--text-2); margin: 6px 18px 12px 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { width: 40px; height: 22px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .15s; flex-shrink: 0; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--success); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.help { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.help code, .kv code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 12px; color: var(--gold); }
.help pre { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: 12px; color: var(--text-2); margin: 8px 0 0; }

/* ---------------------------------------------------------------- Detay */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.profile-head .avatar { width: 54px; height: 54px; font-size: 22px; }
.profile-head h2 { margin: 0; font-size: 20px; }
.profile-head small { color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.mini-stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.mini-stats small { display: block; font-size: 12px; color: var(--muted); }
.mini-stats strong { font-size: 16px; }
details.json { font-size: 12px; }
details.json summary { cursor: pointer; color: var(--muted); }
details.json pre { white-space: pre-wrap; word-break: break-all; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px; margin: 6px 0 0; max-width: 520px; max-height: 260px; overflow: auto; }

/* ---------------------------------------------------------------- Oyun önizleme */
.preview-box { max-width: 200px; }
.thumb-sm { width: 40px; height: 50px; border-radius: 8px; background: linear-gradient(150deg, var(--c1), var(--c2)); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.thumb-sm .i { width: 20px; height: 20px; color: rgba(255, 255, 255, .8); }
.cell-game { display: flex; align-items: center; gap: 12px; }

/* ---------------------------------------------------------------- Giriş ekranı */
.adm-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.adm-login .card { width: 100%; max-width: 420px; }
.adm-login .brand { margin-bottom: 24px; }
.adm-login .brand-logo { height: 64px; margin: 0 auto 24px; }

@media (max-width: 600px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { flex-direction: column; gap: 8px; padding: 12px; }
  .kpi .k-icon { width: 34px; height: 34px; border-radius: 10px; }
  .kpi strong { font-size: 17px; }
}

/* ---------------------------------------------------------------- Oyun görselleri */
.progress { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px 12px; }
.cover-item { min-width: 0; font-size: 12px; }
.cover-item strong { display: block; font-size: 13px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-item .mono { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-item em { font-style: normal; color: #fbbf24; font-size: 11px; }
.thumb-md { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, var(--c1), var(--c2)); transition: transform .15s; }
.thumb-md:hover { transform: translateY(-2px); }
.thumb-md img { width: 100%; height: 100%; object-fit: cover; }
.thumb-md .i { width: 34px; height: 34px; color: rgba(255, 255, 255, .55); stroke-width: 1.5; }
.link-btn { background: none; border: 0; padding: 0; color: #f87171; font-size: 11px; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Kimlikli selfie inceleme */
.kyc-doc { display: block; margin-bottom: 8px; }
.kyc-doc img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; border: 1px solid var(--border-2); background: #000; }
.kyc-meta { font-size: 12px; margin: 0 0 10px; }
.kyc-reject { padding-top: 14px; border-top: 1px solid var(--border); }
.kyc-reject .field { margin-bottom: 10px; }
.kyc-history { display: grid; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.kyc-item { display: flex; gap: 12px; align-items: flex-start; }
.kyc-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-2); background: #000; display: block; }
.kyc-item .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.kyc-thumb img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-2); background: #000; display: block; }
.notice-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 16px; border-radius: 12px;
  background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .3); color: #fde68a; font-size: 14px;
}
.notice-bar span { flex: 1; }
.notice-bar b { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.notice-bar b .i { width: 16px; height: 16px; }
.notice-bar:hover { border-color: rgba(245, 158, 11, .55); }

/* ---------------------------------------------------------------- Sık form yerleşimi (yönetim) */
.adm .field { margin-bottom: 14px; }
.adm .field label { font-size: 12.5px; margin-bottom: 5px; }
.adm .field label em { font-style: normal; font-weight: 400; color: var(--muted); }
.adm .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .adm .field select { height: 42px; font-size: 14px; }
.adm .field textarea { font-size: 14px; }

/* ---------------------------------------------------------------- Bonus ayarları */
.cfg-cols { display: grid; gap: 8px 28px; }
@media (min-width: 1200px) { .cfg-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cfg-col h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.cfg-col h4 .i { width: 18px; height: 18px; color: var(--gold); }
.cfg-col .form-grid { grid-template-columns: 1fr 1fr; align-items: end; }
.cfg-col .form-grid .full { grid-column: 1 / -1; }
.panel-head .note { font-size: 12px; color: var(--muted); }
.stack > .panel { margin-bottom: 0; }
.grid-2.top { align-items: start; }
.fold summary { font-size: 14px; font-weight: 600; color: var(--text-2); margin-top: 18px; }
.fold summary .i { width: 16px; height: 16px; transition: transform .2s; }
.fold[open] summary .i { transform: rotate(180deg); }

/* PayGlobal ayarları */
.form-sub { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 18px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.form-sub .i { width: 18px; height: 18px; color: var(--gold); }
.plain-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.plain-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gw-note { display: block; font-size: 12px; margin-top: 4px; }
.gw-note.err { color: #fca5a5; }

/* ---------------------------------------------------------------- Affiliate / partner paneli */
.ref-box { display: grid; gap: 10px; }
.ref-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg-2); border: 1px dashed var(--border-2); border-radius: 12px; padding: 10px 12px; }
.ref-row small { color: var(--muted); font-size: 12px; min-width: 72px; }
.ref-row code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: var(--gold); word-break: break-all; }
.section-title { display: flex; align-items: baseline; gap: 8px; font-size: 16px; margin: 4px 0 14px; }
.section-title small { font-size: 13px; font-weight: 500; }
.kv.calc { grid-template-columns: 1fr auto; }
.kv.calc dd { text-align: right; font-variant-numeric: tabular-nums; }
.form-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.plain-list li .i { color: var(--gold); }
.grid-2 > *, .stack > * { min-width: 0; }
.plain-list.terms li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.plain-list.terms li .i { width: 18px; height: 18px; margin-top: 3px; }
@media (max-width: 600px) {
  .ref-row code { order: 3; flex-basis: 100%; }
  .ref-row small { flex: 1; }
}

/* Ana sayfa slider */
.slide-thumb { display: block; height: 56px; width: auto; max-width: 160px; border-radius: 8px; background: var(--surface-2); }
.slide-preview { display: block; max-width: 100%; max-height: 180px; border-radius: 10px; margin-bottom: 10px; background: var(--surface-2); }

/* ---------------------------------------------------------------- Modal (<dialog class="modal">, admin.js açar/kapatır) */
dialog.modal {
  width: min(680px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden;
}
dialog.modal[open] { display: flex; animation: modal-in .24s cubic-bezier(.2, 1, .4, 1); }
dialog.modal::backdrop { background: rgba(4, 5, 12, .74); backdrop-filter: blur(4px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-box { display: flex; flex-direction: column; width: 100%; min-height: 0; margin: 0; }
.modal-head {
  display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 18px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .07), transparent);
}
.modal-ic {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-2)); color: var(--gold-ink); box-shadow: 0 8px 20px rgba(var(--accent-2-rgb), .3);
}
.modal-ic .i { width: 22px; height: 22px; }
.modal-head > div { flex: 1; min-width: 0; padding-top: 2px; }
.modal-head h2 { margin: 0 0 3px; font-size: 19px; }
.modal-head p { margin: 0; font-size: 13px; color: var(--muted); }
.modal-x { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; padding: 0; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); }
.modal-x:hover { color: var(--text); border-color: var(--gold); }
.modal-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 8px; }
.modal-body > .alert { margin-bottom: 18px; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg-2); }
.modal-foot .spacer { flex: 1; }
.modal-sec + .modal-sec { margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--border); }
.modal-sec h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.modal-sec h3 span {
  width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 800;
  color: var(--gold); background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .3);
}
.modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.modal-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) {
  dialog.modal { width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .modal-head, .modal-body, .modal-foot { padding-left: 18px; padding-right: 18px; }
  .modal-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
  .modal-foot .spacer { display: none; }
  .modal-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Yeni partner formu */
.pm-pass { display: flex; gap: 8px; }
.pm-pass input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.adm .pm-pass .btn { height: 42px; flex-shrink: 0; }
.pm-link {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 2px 0 18px; padding: 10px 12px;
  border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--border-2); font-size: 13px; color: var(--muted);
}
.pm-link > .i { width: 16px; height: 16px; color: var(--gold); }
.pm-link b { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 500; color: var(--gold); word-break: break-all; }
.pm-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.pm-model { position: relative; cursor: pointer; }
.pm-model input { position: absolute; opacity: 0; pointer-events: none; }
.pm-model span {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--border-2); background: var(--bg-2); transition: border-color .15s, background .15s, box-shadow .15s;
}
.pm-model strong { font-size: 14px; }
.pm-model small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.pm-model:hover span { border-color: rgba(var(--accent-rgb), .45); }
.pm-model input:checked + span { border-color: var(--gold); background: rgba(var(--accent-rgb), .08); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12); }
.pm-model input:checked + span strong { color: var(--gold); }
.pm-model input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 600px) { .pm-models { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.pm-suffix { position: relative; }
.pm-suffix input { padding-right: 40px !important; }
.pm-suffix em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--gold); pointer-events: none; }

/* ==========================================================================
   v2: yönetim paneli yenilemesi — dashboard, oyun/sağlayıcı yönetimi, arama talepleri, promosyon kodları
   ========================================================================== */
.adm-nav .count[hidden], .adm-sec summary .count[hidden] { display: none; }
.adm-side { display: flex; flex-direction: column; }
.adm-nav { flex: 1; }
.adm-side-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding: 12px 8px 0; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.adm-side-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.adm-side-foot a:hover { color: var(--gold); }
.adm-side-foot .i { width: 14px; height: 14px; }
.adm-ver { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; opacity: .7; }
.adm-top .nt-btn { width: 40px; height: 40px; }
.adm-top .nt-panel { right: -60px; }
@media (max-width: 600px) { .adm-top .nt-panel { position: fixed; top: 70px; left: 12px; right: 12px; width: auto; max-width: none; } }
.i.ok { color: #4ade80; width: 15px; height: 15px; vertical-align: -.15em; }
.profile-head { flex-wrap: wrap; }
.profile-head > div:nth-child(2) { flex: 1; min-width: 0; }
.profile-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.kpis-5 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (min-width: 1100px) { .kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.kpi .kpi-text { font-size: 14px; line-height: 1.4; }
.panel-head .note { font-size: 12px; color: var(--muted); }
.refresh-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .35); color: var(--gold); font-size: 13px; font-weight: 600; animation: modal-in .3s ease; }
.refresh-bar:hover { background: rgba(var(--accent-rgb), .16); }

/* ---------------------------------------------------------------- Dashboard: karşılama + dönem seçimi */
.dash-hero {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  margin-bottom: 18px; padding: 22px 24px; border-radius: var(--radius-lg); border: 1px solid rgba(var(--accent-rgb), .18);
  background: radial-gradient(620px 240px at 100% 0%, rgba(var(--glow-rgb), .2), transparent 70%), radial-gradient(520px 220px at 0% 120%, rgba(var(--accent-rgb), .1), transparent 70%), var(--surface);
}
.dh-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.dh-date .i { width: 14px; height: 14px; }
.dash-hero h2 { margin: 6px 0 4px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.dash-hero p { margin: 0; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.dash-hero p strong { color: var(--gold); }
.dh-live { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 99px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .28); color: #86efac; font-size: 12px; font-weight: 600; }
.dh-live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.dh-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dh-range { font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-2); }
.seg a { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.seg a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.seg a.on { background: linear-gradient(180deg, var(--gold-light), var(--gold-2)); color: var(--gold-ink); box-shadow: 0 4px 12px rgba(var(--accent-2-rgb), .25); }
@media (max-width: 700px) { .dh-right { align-items: stretch; width: 100%; } .seg { display: grid; grid-template-columns: repeat(4, 1fr); } .seg a { justify-content: center; padding: 0 6px; } }

/* Bekleyen işler şeridi */
.queue { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.q-tile { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.q-tile:hover { border-color: var(--border-2); transform: translateY(-1px); }
.q-tile > .i { width: 16px; height: 16px; color: var(--muted); }
.q-ic { position: relative; width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--muted); }
.q-ic .i { width: 20px; height: 20px; }
.q-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.q-txt small { font-size: 12px; color: var(--muted); }
.q-txt strong { font-size: 22px; font-weight: 800; }
.q-txt span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-tile.is-hot { border-color: rgba(245, 158, 11, .4); background: linear-gradient(120deg, rgba(245, 158, 11, .1), transparent 60%), var(--surface); }
.q-tile.is-hot .q-ic { background: rgba(245, 158, 11, .16); color: #fbbf24; }
.q-tile.is-hot strong { color: #fde68a; }
.q-pulse { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); animation: q-pulse 1.8s ease-out infinite; }
@keyframes q-pulse { 70% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }

/* Hero değer + stat kartları */
.dash-top { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 1200px) { .dash-top { grid-template-columns: minmax(300px, 1fr) minmax(0, 2.4fr); } }
.hero-stat, .stat { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.hero-stat {
  display: flex; flex-direction: column; padding: 20px 20px 0;
  background: radial-gradient(400px 220px at 0% 0%, rgba(25, 158, 112, .16), transparent 70%), var(--surface); border-color: rgba(25, 158, 112, .3);
}
.hs-head, .stat-head { display: flex; align-items: center; gap: 10px; }
.hs-head small, .stat-head small { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.stat-ic { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--text-2); }
.stat-ic .i { width: 17px; height: 17px; }
.hero-stat .stat-ic { background: rgba(25, 158, 112, .18); color: #34d399; }
.hs-value { display: block; margin: 14px 0 6px; font-size: clamp(32px, 3.4vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.hs-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 12px 0; border-top: 1px solid var(--border); }
.hs-split dt { font-size: 11.5px; color: var(--muted); }
.hs-split dd { margin: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-stat .spark { margin: auto -20px 0; width: calc(100% + 40px); height: 64px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats-4 { margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; min-height: 132px; padding: 14px 16px 0; transition: border-color .15s; }
a.stat:hover { border-color: var(--border-2); }
.stat > strong { display: block; margin: 10px 0 4px; font-size: 21px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.stat-foot { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; min-height: 22px; }
.stat-sub { font-size: 11.5px; color: var(--muted); }
.stat .spark { margin: auto -16px 0; width: calc(100% + 32px); height: 34px; }
.stat:not(:has(.spark)) { padding-bottom: 14px; }
.spark { display: block; }
.spark-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: var(--c); opacity: .1; }
.delta { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 7px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: rgba(255, 255, 255, .06); color: var(--text-2); }
.delta .i { width: 13px; height: 13px; }
.delta.good { background: rgba(12, 163, 12, .14); color: #4ade80; }
.delta.bad { background: rgba(208, 59, 59, .16); color: #f87171; }
@media (max-width: 600px) { .stat { min-height: 120px; padding: 12px 12px 0; } .stat > strong { font-size: 17px; } .stat .spark { margin: auto -12px 0; width: calc(100% + 24px); } }

/* Grafikler */
.dash-charts { margin-bottom: 20px; }
.chart-line .line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-line .line-area { fill: var(--c); opacity: .1; }
.chart-line .end-dot, .chart-line .hover-dot { fill: var(--c); stroke: var(--surface); stroke-width: 2; }
.chart-line .end-label { fill: var(--text); font-size: 12px; font-weight: 600; font-family: inherit; }
.chart-line .xhair { stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.chart-line .hit:hover { fill: transparent; }
.chart-svg .axis { font-variant-numeric: tabular-nums; }

/* Üçlü panel sırası */
.dash-3 { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 1100px) { .dash-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 1099px) { .dash-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-3 > .panel { margin-bottom: 0; min-width: 0; }

/* Yatay çubuklar */
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hb-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.hb-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-label .i { width: 16px; height: 16px; color: var(--muted); }
a.hb-label:hover { color: var(--gold); }
.hb-top strong { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.hb-track span { display: block; height: 100%; border-radius: 99px; background: var(--c); }
.hbars small, .top-games small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.top-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.top-games li { display: flex; align-items: center; gap: 12px; }
.tg-rank { width: 18px; flex-shrink: 0; text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); }
.top-games li:first-child .tg-rank { color: var(--gold); }
.tg-main { flex: 1; min-width: 0; }

/* Akış listeleri */
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.feed li:last-child { border-bottom: 0; }
.feed-ic, .feed-av { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; }
.feed-ic .i { width: 18px; height: 18px; }
.feed-deposit .feed-ic { background: rgba(57, 135, 229, .16); color: #7cb5f2; }
.feed-withdraw .feed-ic { background: rgba(217, 89, 38, .16); color: #f0956c; }
.feed-av { background: linear-gradient(180deg, rgba(var(--accent-rgb), .2), rgba(var(--accent-rgb), .06)), var(--surface-2); border: 1px solid rgba(var(--accent-rgb), .4); color: var(--gold); font-weight: 700; font-size: 14px; }
.feed-main { flex: 1; min-width: 0; }
.feed-main strong { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-main small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed-amt a:hover { color: var(--gold); }
.feed-amt .badge { font-size: 11px; padding: 2px 8px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 2px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: var(--border-2); }
.timeline li { position: relative; display: flex; gap: 12px; padding: 7px 0; }
.tl-ic { position: relative; z-index: 1; width: 31px; height: 31px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted); }
.tl-ic .i { width: 15px; height: 15px; }
.tl-admin .tl-ic { color: var(--gold); border-color: rgba(var(--accent-rgb), .4); }
.tl-api .tl-ic { color: #7dd3fc; }
.timeline p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.timeline small { font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------------- Anahtar (switch) düğmesi: tıklayınca anında kaydeder */
.sw { position: relative; width: 40px; height: 22px; padding: 0; border: 0; border-radius: 99px; background: var(--surface-3); cursor: pointer; transition: background .15s; vertical-align: middle; }
.sw span { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s cubic-bezier(.3, 1.4, .5, 1); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.sw.on { background: var(--success); }
.sw.on span { transform: translateX(18px); }
.sw.partial { background: var(--warning); }
.sw.partial span { transform: translateX(9px); }
.sw.busy { opacity: .6; pointer-events: none; }
.sw:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------------------------------------------------------------- Oyunlar */
.games-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.gh-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.gh-stats a { display: inline-flex; align-items: baseline; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.gh-stats a:hover { border-color: var(--border-2); }
.gh-stats strong { font-size: 15px; line-height: 38px; }
.gh-stats small { font-size: 12px; color: var(--muted); }
.gh-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.search-in { position: relative; }
.search-in > .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.toolbar .search-in .input { width: 100%; padding-left: 38px; }
.brand-chips { margin: -4px 0 14px; }
.brand-chips .chip { height: 34px; font-size: 13px; }
.list-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: var(--text-2); }
.games-table td { padding-top: 9px; padding-bottom: 9px; }
.games-table tr.row-picked td { background: rgba(var(--accent-rgb), .06); }
.col-pick { width: 36px; padding-right: 0 !important; }
.pick { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick span { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--border-2); background: var(--bg-2); transition: background .12s, border-color .12s; }
.pick input:checked + span, .pick input:indeterminate + span { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--bg-2); }
.pick input:indeterminate + span { box-shadow: inset 0 0 0 5px var(--bg-2); }
.pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.game-link { font-weight: 600; color: var(--text); }
.game-link:hover, .plain-link:hover { color: var(--gold); }
.plain-link { color: var(--text-2); font-weight: 500; }
.mini-select, .mini-num { height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font-size: 13px; transition: border-color .15s, box-shadow .2s; }
.mini-num { width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.mini-select:focus, .mini-num:focus { outline: none; border-color: var(--gold); }
.mini-num.saving, .mini-select.saving { opacity: .6; }
.mini-num.saved, .mini-select.saved { border-color: var(--success); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.bulkbar {
  position: sticky; bottom: 14px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(var(--accent-rgb), .4);
  background: linear-gradient(180deg, var(--pop-1), var(--pop-2)); box-shadow: 0 18px 44px rgba(0, 0, 0, .55); animation: modal-in .25s ease;
}
.bulkbar[hidden] { display: none; }
.bb-count { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.bb-count strong { font-size: 18px; color: var(--gold); }
.bb-all { color: var(--gold); font-size: 12px; margin-left: 6px; }
.bb-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bb-cat { display: inline-flex; gap: 6px; }

/* ---------------------------------------------------------------- Sağlayıcılar */
.prov-name { display: flex; align-items: center; gap: 12px; }
.prov-name strong { display: block; }
.prov-rank { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); font-size: 11px; font-weight: 700; color: var(--muted); }
.stackbar { display: flex; gap: 2px; width: 150px; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.stackbar span { min-width: 3px; }
.prov-table td { vertical-align: middle; }

/* ---------------------------------------------------------------- Arama talepleri */
.call-list { display: grid; gap: 10px; }
.call-row {
  display: grid; grid-template-columns: minmax(200px, 1.3fr) minmax(170px, 1fr) minmax(170px, 1.2fr) minmax(140px, 1fr) auto; align-items: center; gap: 12px 18px;
  padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border);
}
.call-row.is-open { border-left: 3px solid var(--warning); }
.call-row.is-calling { border-left-color: var(--info); background: linear-gradient(90deg, rgba(56, 189, 248, .06), transparent 40%), var(--bg-2); }
.call-row.is-late { border-color: rgba(239, 68, 68, .35); border-left-color: var(--danger); }
.call-row .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.call-row .sub.late { color: #fca5a5; font-weight: 600; }
.cr-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cr-who > div { min-width: 0; }
.cr-who strong { font-size: 14px; }
.cr-avatar { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--gold); font-weight: 700; }
.cr-phone { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cr-tel { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .28); color: #86efac; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-tel:hover { background: rgba(34, 197, 94, .18); }
.cr-tel .i { width: 16px; height: 16px; }
.cr-topic .sub { display: flex; align-items: center; gap: 5px; }
.cr-topic .sub .i { width: 13px; height: 13px; }
.cr-msg { margin: 6px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.45; overflow-wrap: anywhere; }
.cr-note { display: flex !important; gap: 5px; align-items: flex-start; }
.cr-note .i { width: 13px; height: 13px; margin-top: 2px; flex-shrink: 0; }
.cr-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cr-actions form { margin: 0; }
@media (max-width: 1250px) {
  .call-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cr-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 10px; border-top: 1px solid var(--border); }
}
@media (max-width: 600px) { .call-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Promosyon kodları */
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pc-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); }
.pc-card.pc-active { border-color: rgba(var(--accent-rgb), .35); background: radial-gradient(380px 140px at 0% 0%, rgba(var(--accent-rgb), .08), transparent 70%), var(--bg-2); }
.pc-card.pc-passive, .pc-card.pc-expired { opacity: .7; }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-code { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pc-code code { padding: 5px 10px; border-radius: 8px; border: 1px dashed rgba(var(--accent-rgb), .55); color: var(--gold); font: 700 14px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-card h4 { margin: 0; font-size: 15px; }
.pc-reward { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.pc-reward .i { width: 18px; height: 18px; color: var(--gold); }
.pc-terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.pc-terms li::before { content: '•'; color: var(--muted); margin-right: 6px; }
.pc-usage { padding-top: 10px; border-top: 1px solid var(--border); }
.pc-usage-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.pc-usage-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 99px; background: rgba(57, 135, 229, .16); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 99px; background: var(--s1); }
.pc-meta { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.pc-meta span { display: flex; align-items: center; gap: 6px; }
.pc-meta .i { width: 13px; height: 13px; flex-shrink: 0; }
.pc-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.pc-actions form { margin: 0; }
.pm-models-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .pm-models-2 { grid-template-columns: minmax(0, 1fr); } }
.form-hint .i { width: 14px; height: 14px; vertical-align: -.2em; color: var(--gold); }
/* Satırında nowrap metin olan grid listeler kapsayıcıyı taşırmasın */
.feed, .hbars, .top-games, .timeline { grid-template-columns: minmax(0, 1fr); }
.feed-amt .muted { font-size: 12px; font-weight: 500; }
.q-tile { gap: 12px; padding: 14px; }
.q-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  .queue { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .q-tile { padding: 12px; gap: 10px; }
  .q-ic { width: 34px; height: 34px; border-radius: 10px; }
  .q-ic .i { width: 17px; height: 17px; }
  .q-txt strong { font-size: 19px; }
  .dash-hero { padding: 18px; }
}

/* ---------------------------------------------------------------- Sağlayıcı borçları */
.fee-hero h2 span { color: var(--gold); }
.fee-period { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fee-period .mini-select { height: 38px; min-width: 190px; font-size: 14px; }
.fee-rate { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.fee-rate .pm-suffix input, .fee-rate-row .pm-suffix input { padding-right: 26px !important; }
.fee-rate .pm-suffix em, .fee-rate-row .pm-suffix em { right: 10px; font-size: 12px; }
.fee-rate .mini-num { width: 78px; }
.fee-rate-row { display: inline-block; }
.fee-rate-row .mini-num { width: 72px; }
.fee-rate-row .mini-num::placeholder { color: var(--muted); opacity: .8; }
.mini-num.is-custom { border-color: rgba(var(--accent-rgb), .55); color: var(--gold); }
.fee-table td { vertical-align: middle; }
.fee-table .fee-bar { width: 140px; height: 5px; margin-top: 7px; }
.fee-cell strong { color: var(--gold); font-size: 15px; }
.fee-table tfoot th { padding: 12px; border-top: 1px solid var(--border-2); font-size: 13px; color: var(--text); text-transform: none; letter-spacing: 0; }
.fee-table tfoot .fee-total { color: var(--gold); font-size: 15px; }
.hs-fee { display: flex; align-items: center; gap: 12px; margin: 0 -20px; padding: 12px 20px; border-top: 1px solid var(--border); background: rgba(217, 89, 38, .06); transition: background .15s; }
.hs-fee:hover { background: rgba(217, 89, 38, .12); }
.hs-fee > span { flex: 1; display: flex; flex-direction: column; }
.hs-fee small { font-size: 11.5px; color: var(--muted); }
.hs-fee strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.hs-fee > span:first-child strong { color: #f0956c; }
.hs-fee > .i { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 600px) {
  .panel .table-wrap .fee-table { min-width: 0; }
  .fee-table .col-sm-off { display: none; }
  .fee-table th, .fee-table td { padding-left: 8px; padding-right: 8px; }
  .fee-table .fee-bar { width: 100%; }
  .fee-rate { flex-wrap: wrap; }
}
/* Games360 bağlantı sağlığı */
.g360-health .mini-stats { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 14px; }
.mini-stats .sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.mini-stats .is-warn { border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .06); }
.mini-stats .is-warn strong { color: #fde68a; }
.mini-stats .is-bad { border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .08); }
.mini-stats .is-bad strong { color: #fca5a5; }
.g360-health .alert { margin-bottom: 0; }
.g360-health .alert + .alert { margin-top: 10px; }
