/* =========================================================================
   Argeset Pay - arayüz tasarım sistemi
   ========================================================================= */

/* ---------- Tasarım belirteçleri ---------- */
:root {
    --brand-50:  #eef2ff;
    --brand-100: #e0e7ff;
    --brand-300: #a5b4fc;
    --brand-500: #6366f1;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;

    --ok-50:   #ecfdf3;
    --ok-500:  #12b76a;
    --ok-700:  #027a48;
    --warn-50: #fffaeb;
    --warn-500:#f79009;
    --warn-700:#b54708;
    --err-50:  #fef3f2;
    --err-500: #f04438;
    --err-700: #b42318;
    --info-50: #eff8ff;
    --info-700:#175cd3;

    --bg:        #f4f5fa;
    --surface:   #ffffff;
    --surface-2: #fafbfd;
    --border:    #e4e7ec;
    --border-2:  #d0d5dd;
    --text:      #101828;
    --text-2:    #475467;
    --muted:     #667085;
    --sidebar:   #12172b;
    --sidebar-2: #1c2340;

    --radius:    14px;
    --radius-sm: 10px;
    --radius-xs: 8px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .1), 0 1px 2px rgba(16, 24, 40, .06);
    --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .1), 0 2px 4px -2px rgba(16, 24, 40, .06);
    --shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);
    --shadow-xl: 0 24px 48px -12px rgba(16, 24, 40, .18);

    --sidebar-w: 256px;
}

html[data-theme="dark"] {
    --bg:        #0b0f1c;
    --surface:   #131829;
    --surface-2: #171d31;
    --border:    #262d45;
    --border-2:  #333b56;
    --text:      #eef1f8;
    --text-2:    #b3bbd0;
    --muted:     #8b93ab;
    --sidebar:   #0d1120;
    --sidebar-2: #161c31;

    --brand-50:  #1e1b4b;
    --brand-100: #262263;
    --ok-50:     #062e21;
    --warn-50:   #2e2005;
    --err-50:    #30110f;
    --info-50:   #0b2545;
    --ok-700:    #6ee7b7;
    --warn-700:  #fcd34d;
    --err-700:   #fca5a5;
    --info-700:  #93c5fd;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, .45);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, .5);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, .6);
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 650; letter-spacing: -.015em; color: var(--text); }
p  { margin: 0 0 .75rem; }
a  { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
svg { flex: none; }

.muted     { color: var(--muted); }
.text-sm   { font-size: 13px; }
.text-xs   { font-size: 12px; }
.mono      { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }
.nowrap    { white-space: nowrap; }
.text-right{ text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.5rem }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: .5rem } .mb-2 { margin-bottom: 1rem } .mb-3 { margin-bottom: 1.5rem }

/* ---------- Yerleşim ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex: none;
    background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
    color: #cbd2e6;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    transition: transform .25s ease;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 1.35rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sidebar__logo {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand-500), #22d3ee);
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 15px;
    box-shadow: 0 6px 16px rgba(99, 102, 241, .4);
}
.sidebar__title { color: #fff; font-weight: 650; font-size: 15px; line-height: 1.2; }
.sidebar__sub   { font-size: 11.5px; color: #8b93ab; letter-spacing: .04em; text-transform: uppercase; }

.nav        { padding: 1rem .75rem; flex: 1; overflow-y: auto; }
.nav__label { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: #6a7391;
              padding: .5rem .65rem; margin-top: .5rem; }
.nav__item {
    display: flex; align-items: center; gap: .7rem;
    padding: .62rem .7rem;
    border-radius: var(--radius-sm);
    color: #c3cadf;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background .15s, color .15s;
}
.nav__item:hover      { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav__item.is-active  { background: linear-gradient(90deg, rgba(99,102,241,.28), rgba(99,102,241,.08));
                        color: #fff; box-shadow: inset 2px 0 0 var(--brand-500); }
.nav__item svg        { width: 18px; height: 18px; opacity: .9; }
.nav__badge {
    margin-left: auto; font-size: 11px; font-weight: 600;
    background: rgba(255, 255, 255, .1); padding: .1rem .45rem; border-radius: 20px;
}

.sidebar__footer { padding: 1rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.sidebar__user   { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255, 255, 255, .1); color: #fff;
    display: grid; place-items: center; font-weight: 650; font-size: 13px;
}

.main    { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }
.content { padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem; flex: 1; }
.container-app { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 880px; margin: 0 auto; }

/* ---------- Üst çubuk ---------- */
.topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 1rem;
    padding: .85rem clamp(1rem, 3vw, 2rem);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.topbar__title  { font-size: 17px; font-weight: 650; }
.topbar__sub    { font-size: 12.5px; color: var(--muted); }
.topbar__spacer { flex: 1; }
.topbar__burger { display: none; }

.icon-btn {
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-2); display: grid; place-items: center; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }

/* ---------- Kart ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}
.card__head {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.card__title { font-size: 15px; font-weight: 650; }
.card__desc  { font-size: 12.5px; color: var(--muted); margin-top: .15rem; }
.card__body  { padding: 1.35rem; }
.card__foot  {
    padding: 1rem 1.35rem; border-top: 1px solid var(--border);
    background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius);
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}

/* ---------- İstatistik kutuları ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat  { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
         padding: 1.1rem 1.25rem; box-shadow: var(--shadow-xs); }
.stat__label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: .45rem; }
.stat__value { font-size: 24px; font-weight: 680; letter-spacing: -.02em; margin-top: .35rem; }
.stat__dot   { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); }
.stat--ok   .stat__dot { background: var(--ok-500); }
.stat--err  .stat__dot { background: var(--err-500); }
.stat--warn .stat__dot { background: var(--warn-500); }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.1rem; }
.col-12 { grid-column: span 12 } .col-8 { grid-column: span 8 } .col-6 { grid-column: span 6 }
.col-4  { grid-column: span 4 }  .col-3 { grid-column: span 3 }
@media (max-width: 720px) { .col-8, .col-6, .col-4, .col-3 { grid-column: span 12; } }

.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.label { font-size: 13px; font-weight: 550; color: var(--text-2); display: flex; align-items: center; gap: .35rem; }
.label .req { color: var(--err-500); }

.input, .select, textarea.input {
    width: 100%;
    padding: .68rem .85rem;
    font: inherit; font-size: 14.5px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-xs);
    box-shadow: var(--shadow-xs);
    transition: border-color .15s, box-shadow .15s, background .15s;
    appearance: none;
}
.input::placeholder { color: #98a2b3; }
.input:hover, .select:hover { border-color: #b8c0cf; }
.input:focus, .select:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent);
}
.input:disabled, .input[readonly] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }

.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .7rem center;
    padding-right: 2rem;
}

.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 3rem; }
.input-group__suffix {
    position: absolute; right: .85rem; display: flex; align-items: center; gap: .4rem;
    color: var(--muted); font-size: 13px; font-weight: 600; pointer-events: none;
}
.input-group--lead .input { padding-left: 2.4rem; }
.input-group__lead {
    position: absolute; left: .85rem; color: var(--muted); font-weight: 600; pointer-events: none;
}

.hint      { font-size: 12px; color: var(--muted); }
.error-msg { font-size: 12.5px; color: var(--err-700); display: none; align-items: center; gap: .3rem; }

.field.is-invalid .input,
.field.is-invalid .select { border-color: var(--err-500); }
.field.is-invalid .input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--err-500) 18%, transparent); }
.field.is-invalid .error-msg { display: flex; }
.field.is-valid .input { border-color: var(--ok-500); }
.field.is-valid .input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok-500) 16%, transparent); }

.field-check { display: flex; align-items: flex-start; gap: .6rem; font-size: 13.5px; color: var(--text-2); }
.field-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--brand-600); }

/* Tutar alanı (büyük) */
.amount-input .input {
    font-size: 26px; font-weight: 650; letter-spacing: -.02em;
    padding: .85rem 3rem .85rem 2.6rem; height: auto;
}
.amount-input .input-group__lead  { font-size: 20px; left: 1rem; }
.amount-input .input-group__suffix { font-size: 15px; }
.quick-amounts { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .5rem; }
.chip {
    border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2);
    border-radius: 999px; padding: .3rem .75rem; font-size: 12.5px; font-weight: 550;
    cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-50); }

/* ---------- Düğmeler ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .65rem 1.1rem;
    font: inherit; font-size: 14px; font-weight: 600;
    border-radius: var(--radius-xs);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .08s, box-shadow .15s, background .15s, color .15s, border-color .15s;
    text-decoration: none; white-space: nowrap;
}
.btn:hover  { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover:not(:disabled) { background: var(--brand-700); color: #fff; }
.btn--success { background: var(--ok-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--success:hover:not(:disabled) { background: var(--ok-700); color: #fff; }
.btn--danger  { background: var(--err-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--danger:hover:not(:disabled) { background: var(--err-700); color: #fff; }
.btn--ghost   { background: var(--surface); color: var(--text-2); border-color: var(--border-2); }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn--link    { background: none; color: var(--brand-600); padding: .4rem .5rem; }
.btn--lg      { padding: .85rem 1.5rem; font-size: 15px; }
.btn--sm      { padding: .38rem .7rem; font-size: 12.5px; }
.btn--block   { width: 100%; }

.btn .spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4);
                border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading .btn__label { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Rozetler ---------- */
.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .18rem .55rem; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 1.5;
    border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ok   { background: var(--ok-50);   color: var(--ok-700); }
.badge--err  { background: var(--err-50);  color: var(--err-700); }
.badge--warn { background: var(--warn-50); color: var(--warn-700); }
.badge--info { background: var(--info-50); color: var(--info-700); }
.badge--mute { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.badge--plain::before { display: none; }

/* ---------- Uyarı kutuları ---------- */
.alert {
    display: flex; gap: .75rem; align-items: flex-start;
    padding: .9rem 1.1rem; border-radius: var(--radius-sm);
    border: 1px solid transparent; margin-bottom: 1.25rem; font-size: 13.5px;
}
.alert__title { font-weight: 650; margin-bottom: .15rem; }
.alert--ok   { background: var(--ok-50);   border-color: color-mix(in srgb, var(--ok-500) 35%, transparent);   color: var(--ok-700); }
.alert--err  { background: var(--err-50);  border-color: color-mix(in srgb, var(--err-500) 35%, transparent);  color: var(--err-700); }
.alert--warn { background: var(--warn-50); border-color: color-mix(in srgb, var(--warn-500) 35%, transparent); color: var(--warn-700); }
.alert--info { background: var(--info-50); border-color: color-mix(in srgb, #2e90fa 35%, transparent);         color: var(--info-700); }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
    text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted);
    padding: .7rem 1rem; background: var(--surface-2);
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .cell-actions { text-align: right; white-space: nowrap; }
.table .cell-amount  { font-weight: 650; white-space: nowrap; }

.empty { padding: 3.5rem 1.5rem; text-align: center; color: var(--muted); }
.empty svg { opacity: .35; margin-bottom: .75rem; }
.empty__title { font-weight: 650; color: var(--text-2); margin-bottom: .25rem; }

/* ---------- Sayfa boyutu seçici ---------- */
.page-size { display: inline-flex; align-items: center; gap: .3rem; margin-left: 1rem; }
.page-size__opt {
    min-width: 30px; height: 28px; padding: 0 .4rem;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius-xs);
    font-size: 12.5px; font-weight: 550; color: var(--text-2);
    background: var(--surface);
}
.page-size__opt:hover { border-color: var(--brand-500); color: var(--brand-600); text-decoration: none; }
.page-size__opt.is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; align-items: center; gap: .35rem; justify-content: flex-end; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 34px; height: 34px; padding: 0 .5rem;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-2); border-radius: var(--radius-xs);
    color: var(--text-2); font-size: 13px; font-weight: 550; background: var(--surface);
}
.pagination a:hover { background: var(--surface-2); text-decoration: none; border-color: var(--brand-500); color: var(--brand-600); }
.pagination .is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.pagination .is-disabled { opacity: .45; pointer-events: none; }

/* ---------- Kredi kartı önizleme ---------- */
.cc-preview { perspective: 1200px; }
.cc {
    position: relative;
    width: 100%; max-width: 380px; aspect-ratio: 1.586;
    border-radius: 18px; padding: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, #232a47 0%, #3b4370 45%, #5b5fb0 100%);
    box-shadow: var(--shadow-xl);
    display: flex; flex-direction: column; justify-content: space-between;
    transition: background .45s ease;
    overflow: hidden;
}
.cc::after {
    content: ""; position: absolute; inset: -40% -10% auto auto;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%);
}
.cc[data-brand="visa"]       { background: linear-gradient(135deg, #10245e 0%, #1a3a8f 50%, #3b6ee0 100%); }
.cc[data-brand="mastercard"] { background: linear-gradient(135deg, #2b1103 0%, #7a2a12 50%, #eb6b1e 100%); }
.cc[data-brand="amex"]       { background: linear-gradient(135deg, #033b4a 0%, #0a6c84 50%, #1fb6c9 100%); }
.cc[data-brand="troy"]       { background: linear-gradient(135deg, #0d3823 0%, #12704a 50%, #23b877 100%); }

.cc__top   { display: flex; align-items: flex-start; justify-content: space-between; }
.cc__chip  { width: 42px; height: 32px; border-radius: 7px;
             background: linear-gradient(135deg, #f5d78e, #c9a24a 55%, #f7e6b4);
             position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cc__chip::before, .cc__chip::after {
    content: ""; position: absolute; left: 10%; right: 10%; height: 1px; background: rgba(0,0,0,.25);
}
.cc__chip::before { top: 38%; } .cc__chip::after { top: 62%; }
.cc__brand { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
             opacity: .95; min-height: 20px; }
.cc__number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(16px, 4.6vw, 21px); letter-spacing: .08em;
    text-shadow: 0 1px 2px rgba(0,0,0,.35); word-break: break-all;
}
.cc__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.cc__caption { font-size: 9.5px; text-transform: uppercase; letter-spacing: .11em; opacity: .65; }
.cc__value   { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.cc.is-flipped .cc__value--cvv { color: #ffe9a8; }

.cc-secure { display: flex; align-items: center; gap: .5rem; font-size: 12.5px; color: var(--muted); margin-top: .9rem; }

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(16, 24, 40, .55);
    backdrop-filter: blur(3px); display: none; z-index: 100;
    align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.is-open { display: flex; animation: fade .18s ease; }
.modal {
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow-xl); width: 100%; max-width: 620px;
    max-height: 88vh; display: flex; flex-direction: column;
    animation: pop .2s cubic-bezier(.16, 1, .3, 1);
}
.modal--sm { max-width: 460px; }
.modal__head { padding: 1.15rem 1.35rem; border-bottom: 1px solid var(--border);
               display: flex; align-items: center; gap: 1rem; }
.modal__body { padding: 1.35rem; overflow-y: auto; }
.modal__foot { padding: 1rem 1.35rem; border-top: 1px solid var(--border);
               display: flex; justify-content: flex-end; gap: .6rem; background: var(--surface-2);
               border-radius: 0 0 var(--radius) var(--radius); }
@keyframes fade { from { opacity: 0 } }
@keyframes pop  { from { opacity: 0; transform: translateY(12px) scale(.98) } }

/* ---------- Tanım listesi ---------- */
.dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .1rem 1rem; font-size: 13.5px; }
.dl dt { color: var(--muted); padding: .5rem 0; border-bottom: 1px solid var(--border); }
.dl dd { margin: 0; padding: .5rem 0; border-bottom: 1px solid var(--border); font-weight: 550;
         word-break: break-word; }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }

/* ---------- Sonuç ekranı ---------- */
.result { max-width: 560px; margin: 2rem auto; text-align: center; }
.result__icon {
    width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1.25rem;
    display: grid; place-items: center;
}
.result__icon--ok  { background: var(--ok-50);  color: var(--ok-500);  box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok-500) 10%, transparent); }
.result__icon--err { background: var(--err-50); color: var(--err-500); box-shadow: 0 0 0 8px color-mix(in srgb, var(--err-500) 10%, transparent); }
.result__title { font-size: 22px; margin-bottom: .4rem; }
.result__text  { color: var(--muted); margin-bottom: 1.5rem; }
.result__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Durum / hata sayfası ---------- */
.state-page {
    min-height: 100vh;
    display: grid; place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(900px 420px at 50% -10%, color-mix(in srgb, var(--brand-500) 12%, transparent), transparent 70%),
        var(--bg);
}
.state-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem 1.75rem;
    max-width: 460px; width: 100%;
    text-align: center;
}
.state-icon {
    width: 66px; height: 66px; border-radius: 50%;
    display: grid; place-items: center; margin: 0 auto 1.25rem;
}
.state-icon--err  { background: var(--err-50);  color: var(--err-500);
                    box-shadow: 0 0 0 8px color-mix(in srgb, var(--err-500) 9%, transparent); }
.state-icon--warn { background: var(--warn-50); color: var(--warn-500);
                    box-shadow: 0 0 0 8px color-mix(in srgb, var(--warn-500) 9%, transparent); }
.state-icon--info { background: var(--info-50); color: #2e90fa;
                    box-shadow: 0 0 0 8px color-mix(in srgb, #2e90fa 9%, transparent); }
.state-icon--ok   { background: var(--ok-50);   color: var(--ok-500);
                    box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok-500) 9%, transparent); }

.state-code    { font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--muted); }
.state-title   { font-size: 20px; margin: .35rem 0 .5rem; }
.state-text    { color: var(--muted); font-size: 14px; margin-bottom: 1.5rem; }
.state-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.state-brand   { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--border);
                 font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.state-detail {
    text-align: left; background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.5rem;
}

/* ---------- 3D yönlendirme ekranı ---------- */
.redirect-dots { display: flex; gap: .4rem; justify-content: center; margin: 1.25rem 0 .5rem; }
.redirect-dots span {
    width: 9px; height: 9px; border-radius: 50%; background: var(--brand-500);
    animation: bounce 1.1s infinite ease-in-out;
}
.redirect-dots span:nth-child(2) { animation-delay: .15s; }
.redirect-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: .35; }
    40%           { transform: translateY(-7px); opacity: 1; }
}

/* ---------- Onay penceresi ---------- */
.confirm-icon {
    width: 46px; height: 46px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: var(--err-50); color: var(--err-500);
}
.confirm-icon--warn { background: var(--warn-50); color: var(--warn-500); }
.confirm-body { display: flex; gap: 1rem; align-items: flex-start; }
.confirm-body p { margin: .25rem 0 0; color: var(--muted); font-size: 13.5px; }

/* ---------- Kapatılabilir uyarı ---------- */
.alert { position: relative; }
.alert__close {
    margin-left: auto; background: none; border: 0; cursor: pointer;
    color: inherit; opacity: .55; padding: 0 0 0 .5rem; line-height: 1;
    align-self: flex-start;
}
.alert__close:hover { opacity: 1; }

/* ---------- Ödeme yöntemi seçici ---------- */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 560px) { .method-grid { grid-template-columns: 1fr; } }

.method {
    position: relative;
    border: 1.5px solid var(--border-2);
    border-radius: var(--radius-sm);
    padding: .85rem 1rem;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    display: flex; gap: .7rem; align-items: flex-start;
    background: var(--surface);
}
.method:hover { border-color: var(--brand-300); }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method__mark {
    width: 17px; height: 17px; border-radius: 50%; flex: none; margin-top: 2px;
    border: 2px solid var(--border-2); transition: border-color .15s, box-shadow .15s;
}
.method__title { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: .4rem; }
.method__desc  { font-size: 12px; color: var(--muted); margin-top: .15rem; }

.method:has(input:checked) {
    border-color: var(--brand-500);
    background: color-mix(in srgb, var(--brand-500) 6%, var(--surface));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 13%, transparent);
}
.method:has(input:checked) .method__mark {
    border-color: var(--brand-600);
    box-shadow: inset 0 0 0 3.5px var(--brand-600);
}

/* ---------- Tıklanabilir kullanıcı adı ---------- */
.user-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--brand-600);
    cursor: pointer;
    border-bottom: 1px dashed color-mix(in srgb, var(--brand-600) 45%, transparent);
    transition: color .15s, border-color .15s;
}
.user-link:hover { color: var(--brand-700); border-bottom-color: var(--brand-700); }
.user-link:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 2px; }
.user-link--xs { font-size: 11.5px; color: var(--muted); border-bottom-color: transparent; }
.user-link--xs:hover { color: var(--brand-600); border-bottom-color: color-mix(in srgb, var(--brand-600) 45%, transparent); }

/* ---------- Durum sekmeleri ---------- */
.tabs {
    display: flex;
    gap: .25rem;
    padding: .3rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .85rem;
    border-radius: var(--radius-xs);
    font-size: 13.5px; font-weight: 550;
    color: var(--text-2);
    white-space: nowrap;
    transition: background .15s, color .15s, box-shadow .15s;
}
.tab:hover { background: color-mix(in srgb, var(--brand-500) 8%, transparent);
             color: var(--text); text-decoration: none; }
.tab.is-active {
    background: var(--surface);
    color: var(--text);
    font-weight: 650;
    box-shadow: var(--shadow-xs);
}
.tab__count {
    font-size: 11.5px; font-weight: 650;
    padding: .1rem .42rem; border-radius: 999px;
    background: var(--border); color: var(--text-2);
    min-width: 20px; text-align: center;
}
.tab.is-active .tab__count { background: var(--brand-600); color: #fff; }
.tab__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tab--ok      .tab__dot { background: var(--ok-500); }
.tab--err     .tab__dot { background: var(--err-500); }
.tab--warn    .tab__dot { background: var(--warn-500); }
.tab--info    .tab__dot { background: #2e90fa; }
.tab--all     .tab__dot { background: var(--muted); }

@media (max-width: 640px) {
    .tab { padding: .45rem .6rem; font-size: 12.5px; }
}

/* ---------- Filtre çubuğu ---------- */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .85rem;
           align-items: end; }
.filters__actions { display: flex; gap: .5rem; }

/* ---------- Adım göstergesi ---------- */
.steps { display: flex; align-items: center; gap: .5rem; font-size: 12.5px; color: var(--muted);
         margin-bottom: 1.25rem; flex-wrap: wrap; }
.steps__item { display: flex; align-items: center; gap: .4rem; }
.steps__num  { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2);
               border: 1px solid var(--border-2); display: grid; place-items: center; font-size: 11.5px;
               font-weight: 650; }
.steps__item.is-active { color: var(--text); font-weight: 600; }
.steps__item.is-active .steps__num { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.steps__sep { opacity: .4; }

/* ---------- Giriş ekranı ---------- */
.auth {
    min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
    background: var(--bg);
}
.auth__aside {
    background: linear-gradient(150deg, #12172b 0%, #2b3160 55%, #4f46e5 120%);
    color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.auth__aside::after {
    content: ""; position: absolute; inset: auto -20% -30% auto; width: 460px; height: 460px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%);
}
.auth__headline { font-size: 30px; line-height: 1.25; font-weight: 680; letter-spacing: -.025em; color: #fff; }
.auth__points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .8rem; }
.auth__points li { display: flex; gap: .65rem; align-items: flex-start; color: #cbd2e6; font-size: 14px; }
.auth__main { display: grid; place-items: center; padding: 2rem; }
.auth__card { width: 100%; max-width: 400px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__aside { display: none; } }

/* ---------- Tablo satiri islem dugmeleri ---------- */
/* Ikon dugmeler; metin yerine simge, erisilebilirlik icin aria-label + title. */
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: .3rem; }

.act-btn {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border: 1px solid var(--border-2); border-radius: var(--radius-xs);
    background: var(--surface); color: var(--muted);
    cursor: pointer; padding: 0; text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.act-btn:hover {
    background: var(--surface-2); color: var(--brand-600);
    border-color: var(--brand-500); text-decoration: none;
}
.act-btn:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 1px; }
.act-btn svg { width: 16px; height: 16px; }

/* Ikonlarin yaninda duran metinli dugme (Iade) hizada kalsin. */
.row-actions .btn { height: 32px; padding: 0 .7rem; }

/* ---------- Pano (dashboard) ---------- */

/* Bolum basligi: metin + sagi dolduran ince cizgi */
.dash-section { margin-bottom: 1.6rem; }
.dash-section__title {
    display: flex; align-items: center; gap: .75rem;
    font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .85rem;
}
.dash-section__title::after {
    content: ""; flex: 1 1 auto; height: 1px; background: var(--border);
}

/* --- Hizli islem kartlari --- */
.dash-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: .9rem; }

.dash-action {
    display: flex; align-items: center; gap: .85rem;
    padding: .95rem 1.05rem;
    border: 1px solid var(--border-2); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text-2);
    transition: border-color .16s, background .16s, transform .16s, box-shadow .16s;
}
.dash-action:hover {
    text-decoration: none; color: var(--text);
    border-color: var(--brand-500); background: var(--surface-2);
    transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.dash-action__icon {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--radius-xs);
    display: grid; place-items: center;
    background: var(--surface-2); color: var(--brand-600);
    transition: background .16s, color .16s;
}
.dash-action:hover .dash-action__icon { background: var(--brand-50); }
.dash-action__title { display: block; font-weight: 650; font-size: 14px; color: var(--text); }
.dash-action__desc  { display: block; font-size: 12px; color: var(--muted); margin-top: .1rem; }

.dash-action--primary { border-color: var(--brand-500); background: var(--brand-50); }
.dash-action--primary .dash-action__icon { background: var(--brand-600); color: #fff; }
.dash-action--primary:hover .dash-action__icon { background: var(--brand-700); }

/* --- Ozet kutulari --- */
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 1rem; }

.mstat {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow-xs);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.mstat:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-2);
}

/* Sag ust kosede kartin tonunda yumusak renk lekesi */
.mstat::after {
    content: ""; position: absolute; top: -46px; right: -46px;
    width: 128px; height: 128px; border-radius: 50%;
    background: currentColor; opacity: .09; pointer-events: none;
}

.mstat__top   { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.mstat__icon  {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: var(--radius-xs);
    display: grid; place-items: center;
}
.mstat__icon svg { width: 19px; height: 19px; }
.mstat__label { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.mstat__value {
    font-size: 26px; font-weight: 700; letter-spacing: -.025em;
    color: var(--text); line-height: 1.15; word-break: break-word;
}
.mstat__foot {
    margin-top: .55rem; font-size: 12px; color: var(--muted);
    display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.mstat__foot a { color: var(--brand-600); font-weight: 600; }

/* Kart tonlari: ikon rengi + koşedeki lekenin rengi */
.mstat--brand { color: var(--brand-500); }
.mstat--brand .mstat__icon { background: var(--brand-50); color: var(--brand-600); }
.mstat--ok    { color: var(--ok-500); }
.mstat--ok    .mstat__icon { background: var(--ok-50);   color: var(--ok-700); }
.mstat--err   { color: var(--err-500); }
.mstat--err   .mstat__icon { background: var(--err-50);  color: var(--err-700); }
.mstat--warn  { color: var(--warn-500); }
.mstat--warn  .mstat__icon { background: var(--warn-50); color: var(--warn-700); }
.mstat--info  { color: var(--info-700); }
.mstat--info  .mstat__icon { background: var(--info-50); color: var(--info-700); }

/* Gecen aya gore degisim rozeti */
.trend {
    display: inline-flex; align-items: center; gap: .2rem;
    font-size: 11.5px; font-weight: 650;
    padding: .12rem .4rem; border-radius: 6px;
}
.trend svg { width: 12px; height: 12px; }
.trend--up   { background: var(--ok-50);    color: var(--ok-700); }
.trend--down { background: var(--err-50);   color: var(--err-700); }
.trend--flat { background: var(--surface-2); color: var(--muted); }

/* --- Sutun grafigi (kutuphanesiz) --- */
.chart { display: flex; align-items: flex-end; gap: .55rem; height: 210px; }
.chart__col {
    flex: 1 1 0; min-width: 0; height: 100%;
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.chart__value {
    font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.chart__bar-wrap {
    flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end;
    background: linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 25%;
    border-radius: var(--radius-xs);
}
.chart__bar {
    width: 100%; min-height: 2px;
    border-radius: var(--radius-xs) var(--radius-xs) 2px 2px;
    background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
    transition: filter .15s, transform .15s;
}
.chart__col:hover .chart__bar { filter: brightness(1.15); transform: scaleX(1.04); }
.chart__col:hover .chart__value { color: var(--text); }
.chart__label { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

@media (max-width: 780px) {
    .chart { height: 170px; }
    .chart__value { display: none; }
    .mstat__value { font-size: 22px; }
}

/* ---------- Mobil ---------- */
.sidebar__scrim { display: none; }
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-xl); }
    .sidebar.is-open { transform: none; }
    .main { margin-left: 0; }
    .topbar__burger { display: grid; }
    .sidebar__scrim { position: fixed; inset: 0; background: rgba(16,24,40,.5); z-index: 55; }
    .sidebar__scrim.is-open { display: block; }
}

@media print {
    .sidebar, .topbar, .btn, .filters { display: none !important; }
    .main { margin-left: 0; }
    body  { background: #fff; }
}
