/* =========================================================================
   components.css — Kuzey Panel
   Yeniden kullanılabilir bileşenler: kartlar, butonlar, tablolar, formlar,
   badge, modal, drawer, toast, stepper, timeline, boş durumlar, skeleton
   ========================================================================= */

/* ---------- PAGE HEAD ---------- */
.page-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.page-head p { color: var(--text-muted); margin-top: 4px; font-size: 13.5px; }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 600; border: 1px solid transparent;
    transition: all .12s ease; white-space: nowrap;
}
.btn i { font-size: 13px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(99,91,255,.3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-soft); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-soft); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--success); color: #fff; }
.btn-outline-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-lg { padding: 13px 22px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-icon-only { padding: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- CARDS ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.card-pad { padding: 22px; }
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.card-header h3 { font-size: 15px; font-weight: 700; }
.card-header .card-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; font-weight: 400; }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ---------- KPI CARDS ---------- */
.kpi-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px 20px;
    box-shadow: var(--shadow-xs);
    display: flex; flex-direction: column; gap: 10px;
    transition: box-shadow .15s ease, transform .15s ease;
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.kpi-icon {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.kpi-icon-primary { background: var(--primary-soft); color: var(--primary); }
.kpi-icon-success { background: var(--success-soft); color: var(--success); }
.kpi-icon-warning { background: var(--warning-soft); color: var(--warning); }
.kpi-icon-danger { background: var(--danger-soft); color: var(--danger); }
.kpi-icon-info { background: var(--info-soft); color: var(--info); }
.kpi-value { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.kpi-foot { display: flex; align-items: center; justify-content: space-between; }
.kpi-change { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.kpi-change.up { color: var(--success); }
.kpi-change.down { color: var(--danger); }
.kpi-link { font-size: 11.5px; color: var(--text-faint); font-weight: 600; }
.kpi-link:hover { color: var(--primary); }
.kpi-sparkline { height: 32px; margin-top: 4px; }

/* ---------- BADGES ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 11.5px; font-weight: 700;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-danger-strong { background: var(--danger); color: #fff; }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { background: var(--surface-soft); color: var(--text-faint); border: 1px solid var(--border); }
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- TABLE ---------- */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table thead th {
    text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--text-faint);
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: var(--surface-soft);
}
.data-table thead th:first-child { border-top-left-radius: var(--radius); }
.data-table thead th:last-child { border-top-right-radius: var(--radius); }
.data-table tbody td {
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    font-size: 13px; vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--surface-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }
.cell-strong { font-weight: 700; color: var(--text); }
.cell-sub { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.cell-user { display: flex; align-items: center; gap: 10px; }

.checkbox-cell { width: 34px; }

/* ---------- FILTERS ---------- */
.filter-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 18px;
}
.filter-select, .filter-input {
    border: 1px solid var(--border); background: var(--surface);
    border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12.5px;
    color: var(--text-muted); font-weight: 500;
}
.filter-select:focus, .filter-input:focus { outline: none; border-color: var(--primary); color: var(--text); }
.filter-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border);
    font-size: 12.5px; font-weight: 600; color: var(--text-muted); background: var(--surface);
}
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-chip .count { opacity: .75; }

/* ---------- EMPTY / SKELETON ---------- */
.empty-state {
    text-align: center; padding: 56px 20px; color: var(--text-faint);
}
.empty-state i { font-size: 34px; margin-bottom: 14px; color: var(--border-strong); }
.empty-state h4 { font-size: 14.5px; color: var(--text); font-weight: 700; margin-bottom: 6px; }
.empty-state p { font-size: 12.5px; max-width: 320px; margin: 0 auto; }

.skeleton {
    background: linear-gradient(90deg, var(--surface-soft) 25%, var(--border) 37%, var(--surface-soft) 63%);
    background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite;
    border-radius: 6px;
}
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-row { height: 16px; margin-bottom: 10px; }
.skeleton-card { height: 90px; border-radius: var(--radius-lg); }

/* ---------- FORMS ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-grid .form-field { margin-bottom: 0; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.form-field .hint { font-size: 11px; color: var(--text-faint); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 10px 12px; background: var(--surface); color: var(--text);
    width: 100%; outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-field textarea { resize: vertical; min-height: 60px; }
.form-field.error input, .form-field.error select { border-color: var(--danger); }
.field-error { font-size: 11.5px; color: var(--danger); margin-top: -2px; }
.input-with-suffix { display: flex; }
.input-with-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1; }
.input-with-suffix select {
    width: auto; border-top-left-radius: 0; border-bottom-left-radius: 0;
    border-left: none; background: var(--surface-soft); font-weight: 600; font-size: 12.5px;
}
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.checkbox-row input { width: 16px; height: 16px; }

.form-section-title { font-size: 13px; font-weight: 700; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.form-section-title i { color: var(--primary); }

.segmented { display: inline-flex; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; margin-bottom: 16px; }
.segmented button { padding: 8px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); background: transparent; border: none; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

.advanced-toggle { font-size: 12.5px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 16px; background: none; border: none; }
.advanced-panel { display: none; }
.advanced-panel.open { display: block; }

/* ---------- UPLOAD ---------- */
.upload-zone {
    border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
    padding: 30px 20px; text-align: center; background: var(--surface-soft);
    cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: var(--primary-soft); }
.upload-zone i { font-size: 26px; color: var(--text-faint); margin-bottom: 10px; }
.upload-zone p { font-size: 13px; margin-bottom: 4px; }
.upload-zone span { font-size: 11.5px; color: var(--text-faint); }
.upload-mini {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface-soft); font-size: 12.5px; color: var(--text-muted); cursor: pointer;
}
.upload-mini i { color: var(--text-faint); }
.upload-preview-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.upload-preview-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    background: var(--surface-soft); border-radius: var(--radius-sm); font-size: 12.5px;
}
.upload-preview-item i { color: var(--primary); }
.upload-preview-item .remove { margin-left: auto; color: var(--text-faint); }

/* ---------- STEPPER (Yeni Satış Sihirbazı) ---------- */
.stepper {
    display: flex; align-items: center; margin-bottom: 28px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px 24px; overflow-x: auto;
}
.step-item { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.step-circle {
    width: 30px; height: 30px; border-radius: 50%;
    border: 2px solid var(--border-strong); color: var(--text-faint);
    display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 700; flex-shrink: 0;
}
.step-label { font-size: 12.5px; font-weight: 600; color: var(--text-faint); white-space: nowrap; }
.step-item.active .step-circle { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-item.active .step-label { color: var(--text); }
.step-item.done .step-circle { background: var(--success); border-color: var(--success); color: #fff; }
.step-item.done .step-label { color: var(--text-muted); }
.step-connector { width: 40px; height: 2px; background: var(--border); margin: 0 6px; flex-shrink: 0; }
.step-item.done + .step-connector { background: var(--success); }

.wizard-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: flex-start; }
.wizard-panel { min-width: 0; }
.wizard-summary {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; position: sticky; top: calc(var(--topbar-h) + 20px);
}
.wizard-summary h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.summary-row:last-child { border-bottom: none; }
.summary-row span { color: var(--text-muted); }
.summary-row b { font-weight: 700; }
.summary-total { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14.5px; font-weight: 800; }

.wizard-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}

.option-card-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.option-card {
    border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px 14px;
    cursor: pointer; text-align: left; background: var(--surface);
}
.option-card i { font-size: 18px; color: var(--text-faint); margin-bottom: 10px; display: block; }
.option-card b { display: block; font-size: 13px; margin-bottom: 3px; }
.option-card span { font-size: 11.5px; color: var(--text-faint); }
.option-card.selected { border-color: var(--primary); background: var(--primary-soft); }
.option-card.selected i { color: var(--primary); }

.customer-suggest {
    border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
    display: flex; align-items: center; gap: 12px; margin-bottom: 8px; background: var(--surface-soft);
}
.customer-suggest b { font-size: 13px; }
.customer-suggest span { font-size: 11.5px; color: var(--text-faint); }

/* ---------- TABS ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab-item {
    padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--text-faint);
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-item.active { color: var(--primary-dark); border-color: var(--primary); }
.tab-item:hover { color: var(--text); }

/* ---------- TIMELINE ---------- */
.timeline { display: flex; flex-direction: column; gap: 18px; margin: 16px 0; }
.timeline-item { display: flex; gap: 14px; position: relative; padding-left: 4px; }
.timeline-item:not(:last-child)::before {
    content: ''; position: absolute; left: 9px; top: 22px; bottom: -18px; width: 1.5px; background: var(--border);
}
.timeline-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--info-soft); border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--border); flex-shrink: 0; margin-top: 1px; }
.timeline-dot-danger { background: var(--danger-soft); box-shadow: 0 0 0 1.5px var(--danger); }
.timeline-dot-success { background: var(--success-soft); box-shadow: 0 0 0 1.5px var(--success); }
.timeline-item b { display: block; font-size: 13px; font-weight: 600; }
.timeline-item span { font-size: 11.5px; color: var(--text-faint); }

/* ---------- MODAL / DRAWER ---------- */
.modal-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(23,32,51,.5);
    z-index: 90; backdrop-filter: blur(2px);
}
.modal-backdrop.show { display: block; }
.modal {
    display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 520px; max-width: calc(100vw - 32px); max-height: calc(100vh - 60px);
    background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    z-index: 100; flex-direction: column; overflow: hidden;
}
.modal.show { display: flex; }
.modal-sm { width: 440px; }
.modal-lg { width: 640px; }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.modal-header h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.modal-header h3 i { color: var(--primary); }
.modal-body { padding: 22px; overflow-y: auto; flex: 1; min-height: 0; }
.modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 22px; border-top: 1px solid var(--border); flex-shrink: 0;
}

.drawer {
    display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 400px;
    max-width: 92vw; background: var(--surface); box-shadow: var(--shadow-lg);
    z-index: 100; flex-direction: column;
    transform: translateX(100%); transition: transform .2s ease;
}
.drawer.show { display: flex; transform: translateX(0); }
.drawer-wide { width: 520px; }
.drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.drawer-header h3 { font-size: 15.5px; font-weight: 700; }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; }
.drawer-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.drawer-profile-name { font-size: 15px; font-weight: 700; }
.drawer-profile-sub { font-size: 12px; color: var(--text-faint); }
.drawer-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.drawer-kpis div { background: var(--surface-soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.drawer-kpis span { display: block; font-size: 11px; color: var(--text-faint); margin-bottom: 3px; }
.drawer-kpis b { font-size: 14px; }
.drawer-actions { display: flex; gap: 8px; margin-top: 16px; }

.summary-mini {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    background: var(--surface-soft); border-radius: var(--radius); margin-bottom: 18px;
}
.summary-mini-title { font-size: 13.5px; font-weight: 700; }
.summary-mini-sub { font-size: 11.5px; color: var(--text-faint); }
.summary-mini-amount { margin-left: auto; font-size: 15px; font-weight: 800; }

/* ---------- TOAST ---------- */
.toast-stack {
    position: fixed; bottom: 24px; right: 24px; z-index: 200;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    display: flex; align-items: center; gap: 10px;
    background: var(--text); color: #fff; padding: 13px 18px;
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    font-size: 13px; font-weight: 600; min-width: 260px;
    animation: toast-in .18s ease;
}
.toast-success { background: var(--success); }
.toast-danger { background: var(--danger); }
.toast-info { background: var(--info); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- ALERTS ---------- */
.alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border-radius: var(--radius-sm);
    font-size: 12.5px; margin-bottom: 16px; line-height: 1.5;
}
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert i { margin-top: 1px; }

/* ---------- NOTE PAPER (senet önizleme) ---------- */
.note-paper {
    border: 1.5px solid var(--border-strong); border-radius: var(--radius);
    padding: 26px; background: #fffdf9;
}
.note-paper-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--border-strong); }
.note-paper p { font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }
.note-paper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.note-paper-grid span { display: block; font-size: 11px; color: var(--text-faint); }
.note-paper-grid b { font-size: 13.5px; }
.note-paper-sign { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; text-align: center; }
.note-paper-sign div { border-top: 1px solid var(--border-strong); padding-top: 8px; font-size: 11px; color: var(--text-faint); }

/* ---------- PAGINATION ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 12.5px; color: var(--text-faint); }
.pagination-btns { display: flex; gap: 6px; }
.pagination-btns button {
    width: 30px; height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--surface); font-size: 12px; color: var(--text-muted);
}
.pagination-btns button.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- MISC ---------- */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.progress-bar { height: 6px; background: var(--border); border-radius: 10px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--primary); border-radius: 10px; }
.icon-circle { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.list-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-preview-frame {
    background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius);
    height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; color: var(--text-faint); margin-bottom: 16px;
}
.doc-preview-frame i { font-size: 34px; }

.doc-card {
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.doc-card-thumb {
    height: 110px; background: var(--surface-soft); display: flex; align-items: center; justify-content: center;
    color: var(--text-faint); font-size: 26px; border-bottom: 1px solid var(--border);
}
.doc-card-body { padding: 12px 14px; }
.doc-card-title { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.doc-card-meta { font-size: 11px; color: var(--text-faint); margin-bottom: 8px; }
.doc-card-actions { display: flex; gap: 6px; }

.flow-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; background: var(--surface); margin-bottom: 14px; }
.flow-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.flow-card-head b { font-size: 14px; }
.flow-step { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--border); font-size: 12.5px; }
.flow-step:first-of-type { border-top: none; }
.flow-step-offset { font-weight: 700; min-width: 130px; color: var(--text-muted); }
.flow-step-channel { display: inline-flex; align-items: center; gap: 5px; background: var(--primary-soft); color: var(--primary-dark); padding: 3px 9px; border-radius: 20px; font-weight: 600; font-size: 11.5px; }
.flow-step-template { flex: 1; color: var(--text-faint); }

.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; inset: 0; background: var(--border-strong); border-radius: 20px; transition: .15s; }
.switch-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + .switch-slider { background: var(--primary); }
.switch input:checked + .switch-slider::before { transform: translateX(16px); }

.rank-list { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.rank-row:last-child { border-bottom: none; }
.rank-num { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-soft); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-faint); flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 13px; font-weight: 600; }
.rank-sub { font-size: 11px; color: var(--text-faint); }
.rank-value { font-weight: 700; font-size: 13px; }

.login-security-badges { display: flex; gap: 14px; margin-top: 20px; }
.login-security-badges div { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,.75); }

/* =========================================================================
   AUTH SAYFALARI (login / forgot-password / reset-password)
   ========================================================================= */
.auth-page {
    min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr;
    background: var(--bg);
}
.auth-visual {
    background: linear-gradient(160deg, #4f46e5 0%, #635bff 55%, #7c72ff 100%);
    color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.auth-visual::before {
    content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
    background: rgba(255,255,255,.06); top: -160px; right: -160px;
}
.auth-visual::after {
    content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255,255,255,.05); bottom: -120px; left: -80px;
}
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-brand .brand-mark { background: rgba(255,255,255,.16); }
.auth-brand-name { font-weight: 800; font-size: 17px; }
.auth-headline { position: relative; z-index: 1; max-width: 420px; }
.auth-headline h2 { font-size: 28px; font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.auth-headline p { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.6; }

.auth-mock-panel {
    position: relative; z-index: 1; background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg);
    padding: 20px; backdrop-filter: blur(6px);
}
.auth-mock-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 12.5px; }
.auth-mock-row:last-child { border-bottom: none; }
.auth-mock-row span { color: rgba(255,255,255,.7); }
.auth-mock-row b { font-weight: 700; }
.auth-mock-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.18); margin-top: 12px; overflow: hidden; }
.auth-mock-bar-fill { height: 100%; background: #fff; border-radius: 6px; }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-form-card { width: 100%; max-width: 380px; }
.auth-form-card h1 { font-size: 23px; font-weight: 800; margin-bottom: 6px; }
.auth-form-card > p { color: var(--text-muted); font-size: 13.5px; margin-bottom: 28px; }
.auth-form-foot { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 12.5px; }
.auth-form-foot a { color: var(--primary); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--text-faint); font-size: 11.5px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-bottom-link { text-align: center; margin-top: 22px; font-size: 13px; color: var(--text-muted); }
.auth-bottom-link a { color: var(--primary); font-weight: 700; }
.password-field { position: relative; }
.password-field .toggle-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-faint); background: none; border: none; }
.auth-icon-circle {
    width: 56px; height: 56px; border-radius: 50%; background: var(--success-soft); color: var(--success);
    display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px;
}

@media (max-width: 860px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
}
