/* =====================================================================
   Tahsilat (Sanal POS) — Arayüz Stilleri
   Tema: Turuncu fintech (Finrota esinli) — temiz, güvenilir, profesyonel
   Tipografi: Sora (başlıklar) + Figtree (gövde)
   ===================================================================== */

:root {
  /* Marka renkleri */
  --brand:        #FF6B1A;
  --brand-600:    #F4570B;
  --brand-700:    #D8470A;
  --brand-50:     #FFF3EB;
  --brand-100:    #FFE3D1;

  /* Nötr palet */
  --ink:          #1B1B23;
  --ink-soft:     #3A3A46;
  --muted:        #6B6B78;
  --muted-2:      #9A9AA6;
  --line:         #ECECEF;
  --line-2:       #E2E2E7;
  --bg:           #F6F6F8;
  --surface:      #FFFFFF;
  --surface-2:    #FAFAFB;

  /* Durum renkleri */
  --green:        #16A34A;
  --green-bg:     #E9F8EF;
  --red:          #DC2626;
  --red-bg:       #FDECEC;
  --amber:        #D97706;
  --amber-bg:     #FFF4E2;
  --blue:         #2563EB;
  --blue-bg:      #E8F0FE;

  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    22px;
  --shadow-sm:    0 1px 2px rgba(20, 20, 30, .05);
  --shadow:       0 6px 24px rgba(20, 20, 30, .07);
  --shadow-lg:    0 18px 50px rgba(20, 20, 30, .12);

  --sidebar-w:    264px;
  --font-head:    'Sora', system-ui, sans-serif;
  --font-body:    'Figtree', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===================== Düğmeler ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 26, .28);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(255, 107, 26, .38); text-decoration: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 24px; font-size: 15px; }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink-soft);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted-2); text-decoration: none; }
.btn-danger {
  background: #fff;
  border-color: #F3C2C2;
  color: var(--red);
}
.btn-danger:hover { background: var(--red-bg); text-decoration: none; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ===================== Form öğeleri ===================== */
.field { margin-bottom: 18px; }
.field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field .hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; }

.input, .select, textarea.input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  outline: none;
}
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px var(--brand-50);
}
.input::placeholder { color: var(--muted-2); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6B78' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 140px; }

.input-group { position: relative; }
.input-group .suffix {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 600;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-soft);
}
.checkbox input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); cursor: pointer; }

/* ===================== Kartlar ===================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 24px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.stat-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-soft); }
.pill b { font-weight: 700; }
.pill-green { background: var(--green-bg); color: var(--green); border-color: #C6EBD3; }
.pill-amber { background: var(--amber-bg); color: var(--amber); border-color: #F6E0B8; }
.pill-red   { background: var(--red-bg);   color: var(--red);   border-color: #F4C9C9; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.form-actions { display: flex; gap: 12px; align-items: center; }
.meta-details { margin-top: 4px; }
.meta-details > summary { cursor: pointer; color: var(--brand); font-size: 12px; user-select: none; }
.meta-pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin: 6px 0 0; font-size: 11.5px; line-height: 1.5; overflow: auto; max-height: 220px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.card-head h2, .card-head h3 { font-size: 16px; }

/* ===================== Rozetler / etiketler ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.4;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { color: var(--green); background: var(--green-bg); }
.badge-failed  { color: var(--red);   background: var(--red-bg); }
.badge-pending { color: var(--amber); background: var(--amber-bg); }
.badge-info    { color: var(--blue);  background: var(--blue-bg); }
.badge-muted   { color: var(--muted); background: #EFEFF2; }

/* ===================== Tablolar ===================== */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data thead th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted-2);
  padding: 13px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .12s ease; }
table.data tbody tr:hover { background: var(--brand-50); }
table.data .num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
table.data .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }

.empty {
  text-align: center;
  color: var(--muted-2);
  padding: 56px 24px;
}
.empty svg { color: var(--line-2); margin-bottom: 12px; }

/* ===================== Bildirimler ===================== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-success { background: var(--green-bg); color: #166534; border-color: #BBF0CC; }
.alert-error   { background: var(--red-bg);   color: #991B1B; border-color: #F6C9C9; }
.alert-info    { background: var(--blue-bg);  color: #1E40AF; border-color: #C7DBFD; }

/* ===================== Yardımcı sınıflar ===================== */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny  { font-size: 12px; }
.mono  { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }

/* =====================================================================
   PANEL DÜZENİ (sidebar + içerik)
   ===================================================================== */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  overflow: hidden;
  z-index: 40;
}
.sidebar-brand {
  padding: 22px 22px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-700) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 6px 16px rgba(255, 107, 26, .35);
  letter-spacing: -.02em;
}
.brand-text { line-height: 1.15; }
.brand-text .name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.brand-text .sub { font-size: 11px; color: var(--muted-2); letter-spacing: .02em; }
/* Kurum logosu (assets/img/logo.png yüklendiğinde) */
.sidebar-logo { max-width: 188px; width: 100%; height: auto; max-height: 58px; object-fit: contain; object-position: left center; display: block; }

.nav { padding: 8px 14px; flex: 1; overflow-y: auto; }
.nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted-2);
  font-weight: 600;
  padding: 16px 12px 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14.5px;
  margin-bottom: 2px;
  transition: background .13s ease, color .13s ease;
  text-decoration: none;
}
.nav-item svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--muted-2); transition: color .13s ease; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-item:hover svg { color: var(--ink-soft); }
.nav-item.active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}
.nav-item.active svg { color: var(--brand); }

.sidebar-foot { padding: 14px; border-top: 1px solid var(--line); }
.user-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--surface-2);
}
.user-chip .ava {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: grid; place-items: center;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 14px;
}
.user-chip .meta { line-height: 1.2; min-width: 0; }
.user-chip .meta .n { font-weight: 600; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .meta .r { font-size: 11.5px; color: var(--muted-2); }

/* Çıkış butonu (kenar çubuğu) */
.logout-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.logout-btn svg { width: 18px; height: 18px; color: var(--muted-2); }
.logout-btn:hover { background: var(--red-bg); border-color: #F3C2C2; color: var(--red); }
.logout-btn:hover svg { color: var(--red); }
.topbar .actions .btn svg { width: 16px; height: 16px; }

/* İçerik alanı */
.content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 68px;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar .page-title { font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.topbar .actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  width: 40px; height: 40px;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--ink-soft);
}

.page { padding: clamp(20px, 2.2vw, 40px) clamp(18px, 3vw, 52px); max-width: none; width: 100%; }

/* İstatistik kartları */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.stat .ic svg { width: 22px; height: 22px; }
.stat .ic.green { background: var(--green-bg); color: var(--green); }
.stat .ic.red   { background: var(--red-bg);   color: var(--red); }
.stat .ic.blue  { background: var(--blue-bg);  color: var(--blue); }
.stat .ic.brand { background: var(--brand-50); color: var(--brand); }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat .value { font-family: var(--font-head); font-size: 25px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; color: var(--ink); }
.stat .value .cur { font-size: 16px; color: var(--muted-2); font-weight: 600; }
.stat .accent { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.stat .accent.green { background: var(--green); }
.stat .accent.red   { background: var(--red); }
.stat .accent.blue  { background: var(--blue); }
.stat .accent.brand { background: var(--brand); }

/* Raporlar */
.report-filter { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.report-filter .field { margin-bottom: 0; }
.report-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.report-presets a {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface);
}
.report-presets a:hover { border-color: var(--brand); color: var(--brand-700); text-decoration: none; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Sayfa başlığı blok */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.page-header h1 { font-size: 23px; }
.page-header .sub { color: var(--muted); font-size: 14px; margin-top: 3px; }

/* İki kolon */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }

/* Sayfalama */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 20px; justify-content: center; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-soft);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand-700); text-decoration: none; }
.pagination .cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled { opacity: .45; pointer-events: none; }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a {
  padding: 11px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { color: var(--brand-700); border-bottom-color: var(--brand); }

/* Tanım listesi (detay) */
.dl { display: grid; grid-template-columns: 180px 1fr; }
.dl dt { padding: 12px 0; color: var(--muted); font-size: 13.5px; border-bottom: 1px solid var(--line); }
.dl dd { padding: 12px 0; margin: 0; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.dl > dt:last-of-type, .dl > dd:last-of-type { border-bottom: none; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } .dl dt { padding-bottom: 2px; border: none; } .dl dd { padding-top: 2px; } }

/* Kopyala kutusu */
.copybox {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.copybox input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-family: ui-monospace, monospace;
  outline: none;
  min-width: 0;
}
.copybox button {
  border: none;
  border-left: 1px solid var(--line-2);
  background: var(--surface);
  padding: 0 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-700);
  display: flex; align-items: center; gap: 6px;
}
.copybox button:hover { background: var(--brand-50); }

/* =====================================================================
   GİRİŞ EKRANI (auth layout)
   ===================================================================== */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  position: relative;
  background: radial-gradient(135% 100% at 0% 0%, #ffffff 0%, var(--bg) 62%);
}
.auth-logo {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-700) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  box-shadow: 0 10px 26px rgba(255, 107, 26, .4);
}
.auth-logo-img { max-width: 238px; width: auto; max-height: 76px; height: auto; display: block; margin: 0 auto 24px; }
.auth-center {
  flex: none;
  width: 100%;
  max-width: 410px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 36px 30px;
  box-shadow: var(--shadow);
}
.auth-center .auth-logo { margin: 0 auto 24px; }
.auth-center h1 { font-size: 26px; text-align: center; margin-bottom: 6px; }
.auth-center .lead { text-align: center; color: var(--muted); margin-bottom: 30px; }
.remember-field { margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; color: var(--ink-soft); user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }

.pw-field { position: relative; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--muted-2); padding: 4px;
  display: flex;
}
.pw-toggle:hover { color: var(--ink-soft); }

.auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  opacity: .72;
}
.auth-trust .item { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.auth-trust .item svg { width: 16px; height: 16px; }

.auth-right {
  background:
    radial-gradient(120% 120% at 80% 10%, rgba(255,255,255,.28) 0%, transparent 55%),
    linear-gradient(150deg, var(--brand) 0%, var(--brand-700) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.auth-right::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  border: 60px solid rgba(255,255,255,.10);
  border-radius: 50%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
  right: -120px; bottom: -120px;
}
.auth-right h2 { color: #fff; font-size: 30px; text-align: center; max-width: 360px; line-height: 1.25; position: relative; }
.auth-right p { color: rgba(255,255,255,.85); text-align: center; max-width: 320px; margin-top: 14px; position: relative; }
.auth-phone {
  position: relative;
  margin: 36px 0 8px;
  width: 190px; height: 300px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  display: grid; place-items: center;
  border: 8px solid #1c1c22;
}
.auth-phone .lock-ic { color: var(--brand); }

/* =====================================================================
   ÖDEME / CHECKOUT (public) düzeni
   ===================================================================== */
.checkout-bg {
  min-height: 100vh;
  background:
    radial-gradient(110% 80% at 50% -10%, var(--brand-50) 0%, transparent 60%),
    var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 18px 48px;
}
.checkout-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
}
.checkout-logo { max-height: 48px; width: auto; max-width: 230px; display: block; }
.checkout-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.checkout-head {
  padding: 26px 28px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
}
.checkout-head .amount { font-family: var(--font-head); font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.checkout-head .desc { color: rgba(255,255,255,.88); font-size: 14px; margin-top: 4px; }
.checkout-body { padding: 26px 28px; }

.card-visual {
  border-radius: 14px;
  background: linear-gradient(135deg, #2b2b33 0%, #15151a 100%);
  padding: 20px;
  color: #fff;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  min-height: 150px;
}
.card-visual .chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #e6c878, #b8902f); margin-bottom: 22px; }
.card-visual .pan { font-family: ui-monospace, monospace; font-size: 18px; letter-spacing: 2px; }
.card-visual .meta { display: flex; justify-content: space-between; margin-top: 16px; font-size: 12px; }
.card-visual .meta .lab { opacity: .55; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.card-visual .brand-logo { position: absolute; right: 20px; top: 20px; font-weight: 700; font-family: var(--font-head); opacity: .9; }

.checkout-trust {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; color: var(--muted); font-size: 12.5px; font-weight: 500;
}
.checkout-trust svg { width: 15px; height: 15px; color: var(--green); }

/* Sonuç ikon */
.result-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 8px auto 18px;
}
.result-icon.ok { background: var(--green-bg); color: var(--green); }
.result-icon.fail { background: var(--red-bg); color: var(--red); }
.result-icon svg { width: 42px; height: 42px; }

/* Hata sayfası */
.error-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.error-box { text-align: center; max-width: 440px; }
.error-box .code { font-family: var(--font-head); font-size: 88px; font-weight: 700; color: var(--brand); line-height: 1; letter-spacing: -.04em; }
.error-box h1 { font-size: 22px; margin: 10px 0 8px; }
.error-box p { color: var(--muted); margin-bottom: 22px; }

/* =====================================================================
   Duyarlı (responsive)
   ===================================================================== */
@media (max-width: 880px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .content { margin-left: 0; }
  .menu-toggle { display: flex; }
  .page { padding: 20px 16px; }
  .topbar { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(20,20,30,.4);
    z-index: 35;
  }
  .sidebar-backdrop.show { display: block; }
}
@media (max-width: 820px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-right { display: none; }
  .auth-left { padding: 40px 24px; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 12px; height: 60px; }
  .topbar .page-title { display: none; }
  .topbar .actions { gap: 8px; }
  .btn-label { display: none; }
  .btn-label.keep-label { display: inline; white-space: nowrap; }
  table.data thead th, table.data tbody td { padding: 11px 12px; }
  .page-header h1 { font-size: 20px; }
  .card-pad { padding: 18px 16px; }
  .stat-grid { gap: 12px; }
  .stat { padding: 16px; }
  .stat .value { font-size: 22px; }
}
@media (max-width: 560px) {
  .split { grid-template-columns: 1fr; }
  .row { flex-direction: column; gap: 0; }
  .row > .field { width: 100% !important; flex: 1 1 auto !important; }
  .auth-left { padding: 32px 18px; }
  .auth-center h1 { font-size: 23px; }
  .pagination a, .pagination span { min-width: 34px; height: 34px; padding: 0 9px; font-size: 13px; }
}
