/* ==========================================================================
   Ödeme Paneli — tasarım sistemi
   Açık (light) tema, tek kaynak: bu dosya.
   ========================================================================== */

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

/* --- Tokenlar ------------------------------------------------------------ */
:root {
  /* Yüzeyler — nötr gri/beyaz basamakları */
  --bg:            #fafafa;
  --surface:       #ffffff;
  --surface-2:     #fafafa;
  --surface-3:     #f4f4f5;
  --border:        #eaeaea;
  --border-strong: #d4d4d4;

  /* Metin — siyaha yakın */
  --text:   #0a0a0a;
  --text-2: #525252;
  --text-3: #8f8f8f;

  /* Ana eylem rengi siyahtır; renk yalnızca durum bildirir. */
  --ink:        #0a0a0a;
  --ink-hover:  #262626;
  --brand:      #0a0a0a;
  --brand-600:  #0a0a0a;
  --brand-700:  #0a0a0a;
  --brand-50:   #f4f4f5;
  --brand-100:  #e5e5e5;
  --ring:       rgba(10, 10, 10, .10);

  /* Durum renkleri — monokrom kabuğun içinde ölçülü kullanılır */
  --success:    #16794c;  --success-bg: #edf7f2;
  --warning:    #9a6700;  --warning-bg: #fdf6e7;
  --danger:     #b42318;  --danger-bg:  #fdf0ef;
  --info:       #175cd3;  --info-bg:    #eef4ff;
  --neutral:    #525252;  --neutral-bg: #f4f4f5;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, .07), 0 2px 6px -2px rgba(0, 0, 0, .05);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .16);

  --sidebar-w: 264px;
  --topbar-h:  68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Sıfırlama ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  font-variant-numeric: tabular-nums;
}

img, svg { display: block; max-width: 100%; }

/* Yazar kuralları (ör. .field__help { display:block }) tarayıcının
   [hidden] varsayılanını ezdiği için gizleme burada garantiye alınır. */
[hidden] { display: none !important; }

/* Satır içi ikonların varsayılan boyutu. Bileşene özel kurallar
   (.btn svg, .nav-link svg …) daha yüksek özgüllükle bunu ezer. */
.icon      { width: 1.05em; height: 1.05em; flex-shrink: 0; display: inline-block; vertical-align: -.15em; }
.icon--lg  { width: 26px;   height: 26px; }
.icon--md  { width: 18px;   height: 18px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.125rem; }
h3 { font-size: 1rem; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--brand-100); }

/* İnce kaydırma çubuğu */
* { scrollbar-width: thin; scrollbar-color: #d4d4d4 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #d4d4d4; border: 3px solid transparent; border-radius: 8px; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #b0b0b0; background-clip: content-box; }

/* ==========================================================================
   Uygulama kabuğu
   ========================================================================== */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar-h);
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar__brand:hover { text-decoration: none; }

.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--ink);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, .25);
  flex-shrink: 0;
}
.brand-mark svg { width: 17px; height: 17px; }

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: .935rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { font-size: .72rem; color: var(--text-3); letter-spacing: .02em; }

.sidebar__nav { flex: 1; overflow-y: auto; padding: 16px 12px; }

/* Öğe aralığı gap ile verilir; böylece etkin/hover pill'leri birbirine değmez
   ve form gibi sarmalayıcı etiketler araya girse de boşluk korunur. */
.nav-group { display: flex; flex-direction: column; gap: 3px; }
.nav-group + .nav-group { margin-top: 22px; }
.nav-group__title {
  font-size: .68rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-3);
  padding: 0 10px; margin-bottom: 4px;
}

.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 8.5px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-weight: 500; font-size: .885rem;
  transition: background .15s var(--ease), color .15s var(--ease);
  position: relative;
}
.nav-link:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.nav-link svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .8; }
.nav-link.is-active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.nav-link.is-active svg { opacity: 1; }
.nav-link__badge {
  margin-left: auto;
  background: var(--surface-3); color: var(--text-2);
  font-size: .7rem; font-weight: 600;
  padding: 1px 7px; border-radius: 20px;
}
.nav-link.is-active .nav-link__badge { background: #fff; color: var(--brand-700); }

.sidebar__footer { padding: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }

.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  transition: background .15s var(--ease);
}
.user-card:hover { background: var(--surface-3); text-decoration: none; }
.user-card__meta { min-width: 0; flex: 1; }
.user-card__meta strong { display: block; font-size: .85rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card__meta span { display: block; font-size: .74rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(150deg, #3f3f3f, #0a0a0a);
  color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .02em;
}
.avatar svg { width: 13px; height: 13px; }
.avatar--sm { width: 26px; height: 26px; font-size: .64rem; }
.avatar--lg { width: 52px; height: 52px; font-size: 1.05rem; }

/* --- Ana alan ------------------------------------------------------------ */
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__title { flex: 1; min-width: 0; }
.topbar__title h1 { font-size: 1.12rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__title p { font-size: .8rem; color: var(--text-3); margin-top: 1px; }
.topbar__actions { display: flex; align-items: center; gap: 9px; }

.content { padding: 26px 28px 56px; flex: 1; }
.content--narrow { max-width: 940px; }

.topbar .menu-toggle { display: none; }

/* ==========================================================================
   Bileşenler
   ========================================================================== */

/* --- Kart ---------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.card__header {
  display: flex; align-items: center; gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}
.card__header h2 { font-size: .98rem; }
.card__header p { font-size: .8rem; color: var(--text-3); margin-top: 2px; }
.card__header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card__body { padding: 20px; }
.card__body--flush { padding: 0; }
.card__footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* --- Düğmeler ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: .875rem; font-weight: 550;
  cursor: pointer; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .08s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(.5px); }
/* Pasif düğme, soluk bir birincil düğme gibi değil; kendi başına
   okunabilen nötr bir durum olarak görünür. */
.btn:disabled,
.btn.is-disabled {
  background: var(--surface-3);
  color: var(--text-3);
  border-color: var(--border);
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}
.btn:disabled svg,
.btn.is-disabled svg { opacity: .7; }
.btn.is-disabled { pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.btn--primary:hover { background: var(--ink-hover); color: #fff; }

.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn--secondary:hover { background: var(--surface-3); border-color: #bdbdbd; color: var(--text); }

.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-3); color: var(--text); }

.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #93231a; color: #fff; }

.btn--danger-soft { background: var(--danger-bg); color: var(--danger); }
.btn--danger-soft:hover { background: #f8e2df; color: #93231a; }

.btn--sm { height: 32px; padding: 0 11px; font-size: .81rem; border-radius: var(--radius-xs); }
.btn--sm svg { width: 14px; height: 14px; }
.btn--lg { height: 46px; padding: 0 22px; font-size: .95rem; border-radius: var(--radius); }
.btn--block { width: 100%; }
.btn--icon { width: 32px; padding: 0; }

/* --- Formlar ------------------------------------------------------------- */
.field { margin-bottom: 17px; }
/* Yalnızca kart gövdesinin son alanında boşluk sıfırlanır; ızgara içindeki
   son alan, altındaki alanla arasında nefes payını korumalıdır. */
.card__body > .field:last-child,
.preview__body > .field:last-child { margin-bottom: 0; }

.label {
  display: block;
  font-size: .82rem; font-weight: 550; color: var(--text);
  margin-bottom: 6px;
}
.label .req { color: var(--danger); margin-left: 2px; }
.label svg { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 3px; color: var(--text-3); }
.label__hint { font-weight: 400; color: var(--text-3); margin-left: 5px; font-size: .78rem; }

.input, .select, .textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: .89rem;
  color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #a3a3a3; }
.input:hover, .select:hover, .textarea:hover { border-color: #bdbdbd; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px var(--ring);
}
.input:disabled, .select:disabled { background: var(--surface-3); color: var(--text-3); cursor: not-allowed; }
.textarea { min-height: 88px; resize: vertical; line-height: 1.5; }

.select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238f8f8f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  cursor: pointer;
}

.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.input-group .select { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; width: auto; min-width: 92px; background-color: var(--surface-2); font-weight: 550; }
.input-group:focus-within .input, .input-group:focus-within .select { border-color: var(--brand); }
.input-group:focus-within { border-radius: var(--radius-sm); box-shadow: 0 0 0 3.5px var(--ring); }
.input-group:focus-within .input, .input-group:focus-within .select { box-shadow: none; }

.input--amount { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; height: 48px; }

.field__error { display: block; margin-top: 5px; font-size: .79rem; color: var(--danger); }
.field__help  { display: block; margin-top: 5px; font-size: .78rem; color: var(--text-3); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field.has-error .input:focus { box-shadow: 0 0 0 3.5px rgba(180, 35, 24, .12); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .col-span-2 { grid-column: span 2; }

.check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.check:hover { border-color: var(--border-strong); }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand-600); cursor: pointer; flex-shrink: 0; }
.check__text { font-size: .84rem; }
.check__text strong { display: block; font-weight: 550; }
.check__text span { color: var(--text-3); font-size: .78rem; }
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }

/* Segment seçici (radyo grubu) */
.segmented { display: grid; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.segment { position: relative; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment__body {
  display: block; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.segment__body strong { display: block; font-size: .87rem; font-weight: 600; }
.segment__body span { display: block; font-size: .77rem; color: var(--text-3); margin-top: 2px; line-height: 1.4; }
.segment input:checked + .segment__body { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--ring); }
.segment input:focus-visible + .segment__body { outline: 2px solid var(--brand); outline-offset: 2px; }

/* --- Rozetler ------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2.5px 9px;
  border-radius: 20px;
  font-size: .755rem; font-weight: 550;
  white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--danger  { background: var(--danger-bg);  color: var(--danger); }
.badge--info    { background: var(--info-bg);    color: var(--info); }
.badge--neutral { background: var(--neutral-bg); color: var(--neutral); }
.badge--plain::before { display: none; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 2px 8px; border-radius: var(--radius-xs);
  background: var(--surface-3); color: var(--text-2);
  font-size: .74rem; font-weight: 500;
}

/* --- Tablo --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .865rem; }
.table th {
  text-align: left; font-weight: 550; font-size: .755rem;
  text-transform: uppercase; letter-spacing: .055em; color: var(--text-3);
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table__primary { font-weight: 550; color: var(--text); }
.table__secondary { font-size: .78rem; color: var(--text-3); margin-top: 1px; }

/* --- Boş durum ----------------------------------------------------------- */
.empty { padding: 56px 24px; text-align: center; }
.empty__icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: var(--radius);
  background: var(--surface-3); color: var(--text-3);
  display: grid; place-items: center;
}
.empty__icon svg { width: 24px; height: 24px; }
.empty h3 { font-size: .97rem; margin-bottom: 5px; }
.empty p { font-size: .855rem; color: var(--text-3); max-width: 380px; margin: 0 auto 18px; }

/* --- İstatistik kutuları -------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 17px 18px;
  box-shadow: var(--shadow-xs);
  position: relative; overflow: hidden;
}
.stat__label { display: flex; align-items: center; gap: 7px; font-size: .79rem; font-weight: 500; color: var(--text-3); }
.stat__label svg { width: 15px; height: 15px; }
.stat__value { font-size: 1.6rem; font-weight: 650; letter-spacing: -.025em; margin-top: 9px; line-height: 1.15; }
.stat__meta { font-size: .77rem; color: var(--text-3); margin-top: 5px; }
.stat--accent { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .55); }
.stat--accent .stat__label, .stat--accent .stat__meta { color: rgba(255, 255, 255, .62); }
.stat--accent .stat__value { color: #fff; }

/* --- Grafik (saf CSS sütunlar) ------------------------------------------- */
.chart { display: flex; align-items: flex-end; gap: 5px; height: 148px; padding-top: 8px; }
.chart__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.chart__bar {
  width: 100%;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, #404040, #0a0a0a);
  min-height: 3px;
  transition: opacity .15s var(--ease);
}
.chart__col:hover .chart__bar { opacity: .78; }
.chart__bar--empty { background: var(--surface-3); }
.chart__axis { display: flex; gap: 5px; margin-top: 8px; }
.chart__axis span { flex: 1; text-align: center; font-size: .66rem; color: var(--text-3); white-space: nowrap; overflow: hidden; }

/* --- Bildirimler --------------------------------------------------------- */
.toasts {
  position: fixed; top: 16px; right: 16px; z-index: 90;
  display: flex; flex-direction: column; gap: 9px;
  width: min(380px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--neutral);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: .865rem;
  animation: toast-in .28s var(--ease);
}
.toast svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.toast p { flex: 1; min-width: 0; }
.toast--success { border-left-color: var(--success); }
.toast--success svg { color: var(--success); }
.toast--error   { border-left-color: var(--danger); }
.toast--error svg { color: var(--danger); }
.toast--info    { border-left-color: var(--info); }
.toast--info svg { color: var(--info); }
.toast__close { background: none; border: 0; cursor: pointer; color: var(--text-3); padding: 0; line-height: 0; }
.toast__close:hover { color: var(--text); }

@keyframes toast-in { from { opacity: 0; transform: translateX(16px) scale(.97); } to { opacity: 1; transform: none; } }

/* --- Uyarı kutusu -------------------------------------------------------- */
.alert {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 15px;
  border-radius: var(--radius);
  font-size: .86rem;
  border: 1px solid transparent;
}
.alert svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.alert__body { flex: 1; min-width: 0; }
.alert__body strong { display: block; font-weight: 600; margin-bottom: 2px; }
.alert__body strong.inline { display: inline; margin: 0; }
.alert--warning { background: var(--warning-bg); border-color: #eeddb4; color: #7a5200; }
/* Bilgi notu bir durum değil, bağlam açıklamasıdır: nötr kalır.
   Renk yalnızca uyarı / hata / başarı için ayrılmıştır. */
.alert--info    { background: var(--surface-2); border-color: var(--border); color: var(--text-2); }
.alert--info svg { color: var(--text-3); }
.alert--info strong { color: var(--text); }
.alert--danger  { background: var(--danger-bg);  border-color: #f3d3cf; color: #93231a; }
.alert--success { background: var(--success-bg); border-color: #c9e6d8; color: #135f3d; }

/* --- Filtre çubuğu ------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.filters .input, .filters .select { height: 36px; min-height: 36px; font-size: .85rem; width: auto; }
.filters .search { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.filters .search .input { width: 100%; padding-left: 34px; }
.filters .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }

/* --- Sayfalama ----------------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pagination__info { font-size: .81rem; color: var(--text-3); }
.pagination__pages { display: flex; gap: 5px; }
.page-link {
  min-width: 32px; height: 32px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: var(--radius-xs);
  background: var(--surface); color: var(--text-2);
  font-size: .82rem; font-weight: 500;
}
.page-link svg { width: 15px; height: 15px; }
.page-link:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.page-link.is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.page-link.is-disabled { opacity: .45; pointer-events: none; }

/* --- Açılır menü (details/summary) --------------------------------------- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary::marker { content: ''; }

/* --- Kopyalanabilir alan -------------------------------------------------- */
.copy-field {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px 11px 15px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.copy-field > svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.copy-field code {
  flex: 1; min-width: 0;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .82rem; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.copy-field--lg { padding: 15px 15px 15px 18px; background: #fff; border-style: solid; }
.copy-field--lg code { font-size: .93rem; font-weight: 500; }

/* --- Tanım listesi ------------------------------------------------------- */
.dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; }
.dl > dt, .dl > dd { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .865rem; }
.dl > dt { color: var(--text-3); font-weight: 500; }
.dl > dd { text-align: right; font-weight: 500; word-break: break-word; }
.dl > dt:last-of-type, .dl > dd:last-of-type { border-bottom: 0; }

/* --- Bölümler ------------------------------------------------------------ */
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.section-title h2 { font-size: 1rem; }
.section-title a { margin-left: auto; font-size: .82rem; font-weight: 500; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; }
.text-muted { color: var(--text-3); }
.text-sm { font-size: .82rem; }
.text-xs { font-size: .75rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace; font-size: .84em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hide { display: none !important; }

/* ==========================================================================
   Giriş ekranı
   ========================================================================== */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: var(--surface);
}

.auth__aside {
  position: relative;
  padding: 44px;
  display: flex; flex-direction: column;
  color: #fff;
  background: #0a0a0a;
  overflow: hidden;
}
.auth__aside::before,
.auth__aside::after {
  content: '';
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .13), transparent 64%);
  pointer-events: none;
}
.auth__aside::before { width: 460px; height: 460px; top: -140px; right: -160px; }
.auth__aside::after  { width: 380px; height: 380px; bottom: -150px; left: -110px; opacity: .45; }

.auth__brand { display: flex; align-items: center; gap: 11px; position: relative; }
.auth__brand .brand-mark { background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; }
.auth__brand strong { font-size: 1rem; font-weight: 600; }

.auth__pitch { margin-top: auto; margin-bottom: auto; position: relative; }
.auth__pitch h2 { font-size: 1.85rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; }
.auth__pitch p { margin-top: 12px; font-size: .95rem; color: rgba(255, 255, 255, .66); max-width: 400px; line-height: 1.6; }

.auth__points { margin-top: 30px; display: flex; flex-direction: column; gap: 13px; position: relative; }
.auth__point { display: flex; align-items: flex-start; gap: 11px; font-size: .885rem; color: rgba(255, 255, 255, .88); }
.auth__point-icon {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .12);
  display: grid; place-items: center;
}
.auth__point-icon svg { width: 13px; height: 13px; }

.auth__legal { margin-top: 34px; font-size: .76rem; color: rgba(255, 255, 255, .42); position: relative; }

.auth__main { display: grid; place-items: center; padding: 40px 24px; }
.auth__form { width: 100%; max-width: 380px; }
.auth__form h1 { font-size: 1.6rem; letter-spacing: -.03em; }
.auth__form > p { color: var(--text-3); margin-top: 6px; margin-bottom: 26px; font-size: .89rem; }

/* Dikey ritim: başlık ve ana eylem aynı bölüm boşluğuyla (26px) ayrılır,
   alanlar aralarında daha sıkı nefes alır (18px). */
.auth__form .field { margin-bottom: 18px; }
.auth__form .field:last-of-type { margin-bottom: 26px; }

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 42px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; background: none; cursor: pointer;
  color: var(--text-3); display: grid; place-items: center; border-radius: var(--radius-xs);
}
.password-toggle:hover { color: var(--text); background: var(--surface-3); }
.password-toggle svg { width: 17px; height: 17px; }

/* ==========================================================================
   Bağlantı sonuç ekranı
   ========================================================================== */
.link-hero {
  background: linear-gradient(160deg, var(--surface-2) 0%, #fff 58%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.link-hero__top { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.link-hero__amount { font-size: 2.15rem; font-weight: 650; letter-spacing: -.035em; line-height: 1.1; }
.link-hero__title { font-size: .93rem; color: var(--text-2); margin-top: 3px; }

.qr-box {
  width: 148px; height: 148px; flex-shrink: 0;
  padding: 9px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }

.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 9px; }

.step-list { counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step__num {
  counter-increment: step;
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%; background: var(--brand-50); color: var(--brand-700);
  display: grid; place-items: center;
  font-size: .76rem; font-weight: 650;
}
.step__num::before { content: counter(step); }
.step__body { font-size: .865rem; }
.step__body strong { display: block; font-weight: 600; margin-bottom: 1px; }
.step__body span { color: var(--text-3); }

/* --- Canlı önizleme ------------------------------------------------------ */
.preview {
  position: sticky; top: calc(var(--topbar-h) + 26px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.preview__head {
  padding: 16px 18px;
  background: var(--ink);
  color: #fff;
}
.preview__head span { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; opacity: .58; }
.preview__amount { font-size: 1.75rem; font-weight: 650; letter-spacing: -.03em; margin-top: 4px; }
.preview__name { font-size: .85rem; opacity: .68; margin-top: 2px; word-break: break-word; }
.preview__body { padding: 16px 18px; }

/* ==========================================================================
   Duyarlı davranış
   ========================================================================== */
@media (max-width: 1180px) {
  .grid--sidebar { grid-template-columns: 1fr; }
  .preview { position: static; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 268px; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .24s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { opacity: 1; pointer-events: auto; }

  .backdrop {
    position: fixed; inset: 0; z-index: 35;
    background: rgba(0, 0, 0, .38);
    opacity: 0; pointer-events: none;
    transition: opacity .24s var(--ease);
    border: 0;
  }

  .main { margin-left: 0; }
  .topbar .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 48px; }
  .grid--2 { grid-template-columns: 1fr; }
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .form-grid .col-span-2 { grid-column: auto; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .dl { grid-template-columns: 1fr; }
  .dl > dt { padding-bottom: 0; border-bottom: 0; }
  .dl > dd { text-align: left; padding-top: 2px; }
}

@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: 1fr; }
  .topbar__title p { display: none; }
  .link-hero { padding: 18px; }
  .link-hero__amount { font-size: 1.75rem; }
}

@media print {
  .sidebar, .topbar, .toasts, .btn { display: none !important; }
  .main { margin-left: 0; }
  .card { border-color: #ddd; box-shadow: none; }
}
