/* ============================================================
   Kargoyeri Studio — site.css
   Design tokens + tum UI bilesenlerinin stilleri
   ============================================================ */

/* ---- Tokens — Mavi gündüz teması ---- */
:root {
    --bg:          #f1f5fb;
    --surface:     #ffffff;
    --panel:       #ffffff;
    --panel-dim:   #edf2fa;
    --border:      #d1dced;
    --text:        #17243a;
    --muted:       #63738d;
    --secondary:   #2563eb;
    --accent:      #4f73e8;
    --brand:       #2563eb;
    --brand-dim:   #e7efff;
    --ready-bg:    rgba(37,99,235,.10);
    --ready-text:  #1d4ed8;
    --pending-bg:  rgba(217,119,6,.11);
    --pending-text:#a85d08;
    --live-bg:     rgba(37,99,235,.10);
    --live-text:   #2563eb;
    --danger:      #dc2626;
    --radius:      12px;
    --radius-sm:   7px;
    --transition:  160ms ease;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
input, textarea, select, button {
    font: inherit;
    color: inherit;
}

/* ---- Page shell ---- */
.page-shell {
    display: flex;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: linear-gradient(180deg, #17243d 0%, #111c31 100%);
    border-right: 1px solid #253654;
    display: flex;
    flex-direction: column;
    padding: 0 0 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    text-decoration: none;
    color: #f0fdf4;
}
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #83a5ff, #3568e8);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.brand strong { font-size: .95rem; display: block; }
.brand small { font-size: .72rem; color: rgba(240,253,244,.6); }
.menu {
    display: flex;
    flex-direction: column;
    padding: 12px 10px;
    gap: 3px;
    flex: 1;
}
.menu a {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    color: rgba(232,239,255,.74);
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
    display: block;
}
.menu a:hover { background: rgba(255,255,255,.12); color: #f0fdf4; text-decoration: none; }
.menu a.menu-active {
    background: rgba(104,139,239,.22);
    color: #f1f5ff;
    font-weight: 600;
    border-left: 3px solid #91adff;
    padding-left: 9px;
}
.workspace-chip {
    margin: 0 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: .8rem;
    color: rgba(240,253,244,.65);
}
.workspace-chip strong { display: block; margin-top: 3px; font-size: .88rem; color: #f0fdf4; }

/* ---- Main content ---- */
.content {
    flex: 1;
    min-width: 0;
    padding: 0 32px 40px;
    overflow-x: hidden;
    background: var(--bg);
}
.topbar {
    padding: 22px 0 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.topbar-label { font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.topbar h1 { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.topbar { display:flex;align-items:center;justify-content:space-between;gap:14px; }

/* ---- Browser-like page tabs ---- */
.workspace-tabs { display:flex;align-items:center;gap:10px;min-height:45px;margin:-12px 0 18px;padding:3px 0 9px;border-bottom:1px solid var(--border); }
.workspace-tabs-list { display:flex;align-items:center;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:thin;flex:1; }
.workspace-tab-item { display:flex;align-items:center;gap:4px;max-width:230px;min-width:125px;padding:3px 5px 3px 11px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--muted);transition:background var(--transition),border-color var(--transition),color var(--transition); }
.workspace-tab-item:hover { border-color:#7f9de7; }
.workspace-tab-item.is-active { color:var(--brand);background:var(--brand-dim);border-color:#7392eb;box-shadow:0 0 0 2px rgba(37,99,235,.10); }
.workspace-tab-item.is-active::before { content:"";width:7px;height:7px;border-radius:50%;background:var(--brand);flex:none; }
.workspace-tab { color:inherit;text-decoration:none!important;font-size:.76rem;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1; }
.workspace-tab-close { border:0;background:transparent;color:var(--muted);border-radius:50%;width:22px;height:22px;line-height:1;cursor:pointer;font-size:1rem;flex:none; }
.workspace-tab-close:hover { color:var(--text);background:rgba(127,145,175,.16); }
.workspace-tabs-actions { position:relative;flex:none; }
.workspace-tabs-actions summary { list-style:none;cursor:pointer;border:1px solid var(--border);border-radius:999px;padding:6px 12px;color:var(--muted);font-size:.72rem;font-weight:650;white-space:nowrap; }
.workspace-tabs-actions summary::-webkit-details-marker { display:none; }
.workspace-tabs-actions[open] summary,.workspace-tabs-actions summary:hover { color:var(--brand);border-color:var(--brand); }
.workspace-tabs-menu { position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:190px;padding:5px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 12px 30px rgba(15,31,57,.18); }
.workspace-tabs-menu.is-context { position:fixed;right:auto;top:auto;z-index:80; }
.workspace-tabs-menu button { display:block;width:100%;text-align:left;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:var(--text);font-size:.78rem;cursor:pointer; }
.workspace-tabs-menu button:hover { background:var(--panel-dim);color:var(--brand); }
.workspace-tabs-menu button.is-danger { color:var(--danger); }
.workspace-tabs-menu button.is-danger:hover { color:var(--danger);background:rgba(220,38,38,.08); }
.topbar-theme-toggle { display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--muted);font-size:.75rem;cursor:pointer;white-space:nowrap; }
.topbar-theme-toggle:hover { color:var(--brand);border-color:var(--brand); }
.topbar-theme-toggle .theme-icon-dark { display:none; }
[data-theme="dark"] .ws-step.is-done .ws-num,
[data-theme="dark"] .ix-task.is-done .ix-task-mark { color:#86efac; background:rgba(34,197,94,.16); border-color:rgba(34,197,94,.28); }
[data-theme="dark"] .ix-task.is-done .ix-task-go { color:#86efac; }

/* ---- Flash / alert ---- */
.flash {
    padding: 12px 18px;
    background: rgba(76,175,125,.1);
    border: 1px solid rgba(76,175,125,.25);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: var(--secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.flash-icon { font-weight: 700; font-size: 1rem; }
.flash--warn, .flash--warning {
    background: rgba(203,92,45,.1);
    border-color: rgba(203,92,45,.25);
    color: var(--pending-text);
}
.flash--success {
    background: rgba(22,163,74,.1);
    border-color: rgba(22,163,74,.3);
    color: #15803d;
}
.flash--error {
    background: rgba(220,38,38,.08);
    border-color: rgba(220,38,38,.3);
    color: #b91c1c;
}
.flash--info {
    background: rgba(59,130,246,.08);
    border-color: rgba(59,130,246,.25);
    color: #1e40af;
}

/* ---- Section heading ---- */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.section-heading--tight { margin-bottom: 14px; }
.section-heading h1 { font-size: 1.25rem; font-weight: 700; }
.section-heading h2 { font-size: 1.1rem; font-weight: 700; }
.eyebrow {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin-bottom: 4px;
}

/* ---- Panel card ---- */
.panel-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.panel-card--dim {
    background: var(--panel-dim);
}
.panel-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }

/* ---- Layouts ---- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.split-layout--wide {
    grid-template-columns: 2fr 1fr;
}
@media (max-width: 900px) {
    .split-layout, .split-layout--wide { grid-template-columns: 1fr; }
    .sidebar { width: 200px; min-width: 200px; }
    .content { padding: 0 16px 32px; }
}

/* ---- Hero panel ---- */
.hero-panel {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.hero-panel h1 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.hero-copy { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.flow-list {
    padding-left: 20px;
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.8;
}
.hero-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 160px;
}
/* ---- Page header ---- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.page-header .eyebrow { margin-bottom: 2px; }

/* ---- Metric strip ---- */
.metric-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.metric-card span { font-size: .75rem; color: var(--muted); }
.metric-card strong { font-size: 1.25rem; font-weight: 700; }

/* ---- Stats bar ---- */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 20px;
}
.stat-item strong { font-size: 1.3rem; font-weight: 700; }
.stat-item span { font-size: .75rem; color: var(--muted); }
.stats-bar-sep {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* ---- Form grid ---- */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-grid--dense { gap: 10px; }
.form-grid label, .form-grid .field-span {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .88rem;
}
.form-grid label span, .field-span > span {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 500;
}
.form-grid input,
.form-grid textarea,
.form-grid select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: .9rem;
    color: var(--text);
    transition: border-color var(--transition);
    width: 100%;
}
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
    outline: none;
    border-color: var(--brand);
}
.form-grid textarea { resize: vertical; min-height: 80px; }
.form-grid select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23587860'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

/* ---- Standalone form input (filtre formlarında) ---- */
.form-input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: .9rem;
    color: var(--text);
    transition: border-color var(--transition);
}
.form-input:focus { outline: none; border-color: var(--brand); }
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23587860'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
    cursor: pointer;
}

/* ---- metric-strip (4 kart yan yana) ---- */
.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 0;
}
@media (max-width: 900px) { .metric-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .metric-strip { grid-template-columns: 1fr; } }

/* ---- page-header ---- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.page-header .eyebrow { margin-bottom: 2px; }

/* ---- Form sections ---- */
.form-section { margin-bottom: 8px; }
.form-section-head { margin-bottom: 10px; }
.form-section-head h3 { font-size: .95rem; font-weight: 700; }
.form-section-desc { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.form-section-divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
}
.form-section-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    padding-top: 4px;
    margin-top: 4px;
}

/* ---- Buttons ---- */
.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
    text-decoration: none;
}
.primary-button:hover { opacity: .88; text-decoration: none; color: #fff; }
.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    text-decoration: none;
}
.secondary-button:hover { border-color: var(--brand); background: var(--panel); text-decoration: none; color: var(--text); }
.ghost-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--brand);
    font-size: .88rem;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color var(--transition);
}
.ghost-link:hover { text-decoration: underline; }
.danger-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: rgba(203,92,45,.18);
    color: var(--accent);
    border: 1px solid rgba(203,92,45,.3);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.danger-button:hover { background: rgba(203,92,45,.28); }

/* ---- Action row / stack ---- */
.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.action-row--left { justify-content: flex-start; }
.action-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.inline-form { display: inline; }
.inline-form button { display: inline-flex; }

/* ---- Status pill ---- */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 600;
    background: rgba(255,255,255,.08);
    color: var(--muted);
    white-space: nowrap;
}
.status-pill--ready { background: var(--ready-bg); color: var(--ready-text); }
.status-pill--pending { background: var(--pending-bg); color: var(--pending-text); }
.status-pill--live { background: var(--live-bg); color: var(--live-text); }

/* ---- Cap tag ---- */
.cap-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 500;
    background: var(--live-bg);
    color: var(--live-text);
    white-space: nowrap;
}
.cap-tag--dim { background: rgba(255,255,255,.06); color: var(--muted); }
.cap-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.provider-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.provider-select-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.78);
    border: 1px solid var(--border);
    font-size: .88rem;
    cursor: pointer;
}
.provider-select-chip input {
    width: auto;
    margin: 0;
    accent-color: var(--brand);
}

/* ---- Chip ---- */
.chip {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
}

/* ---- Provider grid v2 ---- */
.provider-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.provider-card-v2 {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.provider-card-v2-head {
    position: relative;
    padding: 18px 18px 16px;
    background: var(--surface);
    overflow: hidden;
}
.provider-card-v2-head h2 { font-size: 1rem; font-weight: 700; }
.provider-card-v2-head p { font-size: .78rem; color: var(--muted); }
.provider-card-v2-body { padding: 14px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.provider-card-v2-foot {
    padding: 12px 18px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---- Provider accent colors ---- */
.accent-surat   { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%); }
.accent-aras    { background: linear-gradient(135deg, #7c2d12 0%, #c2410c 100%); }
.accent-mng     { background: linear-gradient(135deg, #14532d 0%, #166534 100%); }
.accent-ups     { background: linear-gradient(135deg, #78350f 0%, #b45309 100%); }
.accent-yurtici { background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%); }
.accent-ptt     { background: linear-gradient(135deg, #064e3b 0%, #047857 100%); }
.accent-trendyol{ background: linear-gradient(135deg, #581c87 0%, #7e22ce 100%); }
.accent-hepsiburada { background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%); }
.accent-sandbox { background: linear-gradient(135deg, #374151 0%, #4b5563 100%); }
.accent-default { background: linear-gradient(135deg, #1f4424 0%, #166534 100%); }

/* ---- Provider config banner ---- */
.provider-config-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 26px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.provider-config-banner h1 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.provider-config-banner p { font-size: .85rem; opacity: .8; }
.banner-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}
.banner-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: rgba(255,255,255,.7);
}
.banner-stat-row strong { color: rgba(255,255,255,.95); }

/* ---- Checklist ---- */
.checklist-stack { display: flex; flex-direction: column; gap: 8px; }
.checklist-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.checklist-item strong { font-size: .9rem; }
.checklist-item p { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.checklist-item.is-done { border-color: rgba(76,175,125,.2); }
.checklist-item.is-todo { opacity: .85; }
.checklist-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

/* ---- Timeline ---- */
.timeline { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.timeline li {
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .88rem;
}
.timeline li strong { font-weight: 600; display: block; margin-bottom: 4px; }
.timeline li p { color: var(--muted); margin-top: 4px; font-size: .85rem; }

/* ---- Table ---- */
.table-shell {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}
.studio-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.studio-table th {
    text-align: left;
    padding: 11px 16px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.studio-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.studio-table tbody tr:last-child td { border-bottom: none; }
.studio-table tbody tr:hover { background: rgba(22,163,74,.05); cursor: default; }
.studio-table tbody tr[data-href]:hover { background: rgba(22,163,74,.08); cursor: pointer; }

/* ---- Pagination ---- */
.pagination-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    flex-wrap: wrap;
}
.pagination-info { font-size: .82rem; color: var(--muted); }

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; line-height: 1; }
.empty-state h2 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: .88rem; margin-bottom: 16px; }

/* ---- Readiness indicator ---- */
.readiness-wrap { margin-bottom: 10px; }
.readiness-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}
.readiness-pct { font-size: .85rem; font-weight: 700; color: var(--secondary); }
.readiness-bar {
    height: 6px;
    background: var(--surface);
    border-radius: 99px;
    overflow: hidden;
}
.readiness-fill {
    height: 100%;
    background: var(--secondary);
    border-radius: 99px;
    transition: width .5s ease;
}
.readiness-fill--warn { background: var(--accent); }

/* ---- Missing settings list ---- */
.missing-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}
.missing-item {
    font-size: .82rem;
    color: var(--pending-text);
    padding: 4px 10px;
    background: var(--pending-bg);
    border-radius: var(--radius-sm);
}

/* ---- API route list ---- */
.api-route-list { display: flex; flex-direction: column; gap: 7px; }
.api-route {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    flex-wrap: wrap;
}
.api-method {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    flex-shrink: 0;
}
.api-method--get { background: var(--live-bg); color: var(--live-text); }
.api-method--post { background: var(--ready-bg); color: var(--ready-text); }
.api-path {
    font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
    font-size: .78rem;
    color: var(--text);
    flex: 1;
}
.api-desc { font-size: .76rem; color: var(--muted); }

/* ---- Toggle row ---- */
.toggle-row-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}
.toggle-row-v2 strong { font-size: .9rem; }

/* ---- Code block ---- */
.code-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
    font-size: .82rem;
    overflow-x: auto;
    white-space: pre;
    color: var(--text);
    line-height: 1.6;
}

/* ---- Clean list ---- */
.clean-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: .9rem;
}
.clean-list li { color: var(--muted); }
.clean-list li strong { color: var(--text); }

/* ---- Mini note ---- */
.mini-note { font-size: .78rem; color: var(--muted); }
.provider-index-note { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }

/* ---- Validation ---- */
.validation-summary-errors {
    background: var(--pending-bg);
    border: 1px solid rgba(203,92,45,.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: .88rem;
    color: var(--pending-text);
}
.validation-summary-errors ul { padding-left: 16px; }
.field-validation-error { font-size: .78rem; color: var(--pending-text); margin-top: 3px; }

/* ---- Login layout ---- */
.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--bg);
    padding: 32px 16px;
}

/* ---- Misc ---- */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ---- Shipments Index — form + liste layout ---- */
.shipment-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 8px;
}
.shipment-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---- Preview panel (gonderi request on izlemesi) ---- */
.preview-panel { margin-bottom: 24px; }
.preview-metrics {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.preview-metrics .metric-card { flex: 1; min-width: 120px; }

/* ---- Checklist is-todo (is-done zaten var) ---- */
.checklist-item.is-todo { opacity: .78; }
.clean-list--compact { gap: 4px; font-size: .85rem; }
.clean-list--compact li { color: var(--muted); }

/* ---- Roadmap — hero variant ---- */
.hero-panel--roadmap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 28px;
}
@media (max-width: 900px) { .hero-panel--roadmap { grid-template-columns: 1fr; } }

/* ---- Section grid (3 kolon) ---- */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.section-grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .section-grid--three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .section-grid--three { grid-template-columns: 1fr; } }

/* ---- Phase card (Roadmap faz kartlari) ---- */
.phase-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.phase-card--expanded { gap: 12px; }
.phase-card h2 { font-size: 1rem; font-weight: 700; }
.phase-card h3 { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.phase-topline { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.phase-badge {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    background: var(--brand-dim);
    padding: 2px 9px;
    border-radius: 99px;
}
.phase-outcome { font-size: .85rem; color: var(--muted); }

/* ---- Provider mosaic (Roadmap alt kismi) ---- */
.provider-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.provider-mosaic-card {
    position: relative;
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    min-height: 90px;
}
.provider-mosaic-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .15;
}
.provider-mosaic-card > div { position: relative; }
.provider-mosaic-card strong { font-size: .88rem; display: block; }
.provider-mosaic-card p { font-size: .75rem; opacity: .7; margin-top: 2px; }
.provider-visual-fallback {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.15);
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 800;
    color: rgba(255,255,255,.9);
    margin-bottom: 4px;
}

/* ============================================================
   Dashboard Grafik Paneli
   ============================================================ */

/* 3 sütunlu grid: donut | bar | [trend tam genişlik] */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.chart-panel {
    display: flex;
    flex-direction: column;
    min-height: 280px;
}
.chart-panel--wide {
    grid-column: 1 / -1;   /* tam genişlik */
    min-height: 220px;
}
.chart-wrap {
    flex: 1;
    position: relative;
    min-height: 0;
}
.chart-wrap canvas {
    max-height: 240px;
}

/* Özel legend (donut altında) */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    color: var(--muted);
}
.chart-legend-item i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}
.chart-legend-item b {
    color: var(--text);
    font-weight: 600;
}

/* Bildirim kanal satırı */
.notif-channel-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.notif-channel-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}

/* İnce progress bar */
.mini-bar-track {
    height: 5px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}
.mini-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .4s ease;
}
.mini-bar-fill--ok   { background: var(--secondary); }
.mini-bar-fill--warn { background: var(--accent); }
.mini-bar-fill--bad  { background: #e05252; }

/* status-pill--error (bildirim hata rengi) */
.status-pill--error {
    background: rgba(224,82,82,.15);
    color: #e05252;
}

@media (max-width: 768px) {
    .chart-grid { grid-template-columns: 1fr; }
    .chart-panel--wide { grid-column: auto; }
}

/* P2-#5 — Tenant impersonation banner */
.impersonation-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0 0 14px;
    box-shadow: 0 4px 12px rgba(217,119,6,.25);
    font-size: .9rem;
}
.impersonation-banner strong { color: #fffbeb; }
.impersonation-icon { font-size: 1.4rem; line-height: 1; }
.impersonation-stop {
    background: #fff;
    color: #b45309;
    border: 0;
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: 600;
    cursor: pointer;
    font-size: .82rem;
}
.impersonation-stop:hover { background: #fef3c7; }

/* ============================================================
   P3-#3 — Toast notification system
   ============================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.16);
    border-left: 4px solid var(--brand);
    font-size: .9rem;
    color: var(--text);
    animation: toastSlideIn .35s cubic-bezier(.16,1,.3,1);
    min-width: 240px;
}
.toast--success { border-left-color: #10b981; }
.toast--info    { border-left-color: #3b82f6; }
.toast--warning { border-left-color: #f59e0b; }
.toast--error   { border-left-color: #dc2626; }
.toast-icon { font-size: 1.05rem; line-height: 1.2; }
.toast--success .toast-icon { color: #10b981; }
.toast--info    .toast-icon { color: #3b82f6; }
.toast--warning .toast-icon { color: #f59e0b; }
.toast--error   .toast-icon { color: #dc2626; }
.toast-msg { flex: 1; line-height: 1.4; }
.toast-close {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 4px;
}
.toast-close:hover { color: var(--text); }
.toast.is-closing { animation: toastSlideOut .25s ease forwards; }
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastSlideOut {
    to { opacity: 0; transform: translateX(20px); }
}

/* ============================================================
   P3-#6 — Command palette (Ctrl+K)
   ============================================================ */
.cmd-hint {
    margin-top: 10px;
    width: 100%;
    background: rgba(255,255,255,.08);
    color: #f0fdf4;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: background var(--transition);
}
.cmd-hint:hover { background: rgba(255,255,255,.16); }
.cmd-hint kbd {
    background: rgba(0,0,0,.35);
    color: #f0fdf4;
    border-radius: 5px;
    padding: 2px 6px;
    font-size: .68rem;
    font-family: ui-monospace, "SF Mono", monospace;
    border: 1px solid rgba(255,255,255,.14);
}
.cmd-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}
.cmd-modal[hidden] { display: none; }
.cmd-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(3px);
    animation: fadeIn .2s ease;
}
.cmd-panel {
    position: relative;
    width: min(560px, 92vw);
    background: var(--surface);
    border-radius: 14px;
    box-shadow: 0 24px 50px rgba(15,23,42,.35);
    overflow: hidden;
    border: 1px solid var(--border);
    animation: cmdPop .25s cubic-bezier(.16,1,.3,1);
}
.cmd-input {
    width: 100%;
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    outline: none;
}
.cmd-list { max-height: 360px; overflow-y: auto; padding: 6px 0; }
.cmd-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    color: var(--text);
    font-size: .9rem;
    border-left: 3px solid transparent;
}
.cmd-result:hover,
.cmd-result.is-active {
    background: var(--panel-dim);
    border-left-color: var(--brand);
}
.cmd-result .cmd-result-icon { width: 22px; text-align: center; opacity: .8; }
.cmd-result .cmd-result-meta { flex: 1; }
.cmd-result .cmd-result-title { font-weight: 600; }
.cmd-result .cmd-result-sub { font-size: .76rem; color: var(--muted); }
.cmd-empty { padding: 20px; text-align: center; color: var(--muted); font-size: .85rem; }
.cmd-foot {
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    background: var(--panel-dim);
    font-size: .72rem;
    color: var(--muted);
}
.cmd-foot kbd {
    background: var(--surface);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: .68rem;
    font-family: ui-monospace, "SF Mono", monospace;
    border: 1px solid var(--border);
    margin: 0 2px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmdPop {
    from { opacity: 0; transform: translateY(-12px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   P3-#7 — Dark mode
   ============================================================ */
.theme-toggle {
    margin-top: 10px;
    width: 100%;
    background: rgba(255,255,255,.08);
    color: #f0fdf4;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background var(--transition);
}
.theme-toggle:hover { background: rgba(255,255,255,.16); }
.theme-toggle .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-light { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-dark  { display: inline; }

[data-theme="dark"] {
    --bg:        #0b1220;
    --surface:   #111a2e;
    --panel:     #111a2e;
    --panel-dim: #162136;
    --border:    #25324d;
    --text:      #e2e8f0;
    --muted:     #94a3b8;
    --brand:     #7597ff;
    --accent:    #8da8ff;
    --secondary: #7da1ff;
    --brand-dim: rgba(87,123,220,.20);
    --ready-bg:  rgba(73,119,238,.17);
    --ready-text:#a9c0ff;
    --pending-bg:rgba(245,158,11,.18);
    --pending-text:#fcd34d;
    --live-bg:   rgba(73,119,238,.18);
    --live-text: #a9c0ff;
}
[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] .toast { background: var(--surface); color: var(--text); }
[data-theme="dark"] .cmd-panel { background: var(--surface); }
[data-theme="dark"] .cmd-input { background: var(--surface); color: var(--text); }
[data-theme="dark"] .cmd-foot  { background: var(--panel-dim); }
[data-theme="dark"] .topbar-theme-toggle .theme-icon-light { display:none; }
[data-theme="dark"] .topbar-theme-toggle .theme-icon-dark { display:inline; }
[data-theme="dark"] .sidebar { background:linear-gradient(180deg,#121b2e 0%,#0d1729 100%);border-right-color:#202d44; }
[data-theme="dark"] .menu a.menu-active { background:rgba(104,139,239,.23);border-left-color:#8eabff; }
[data-theme="dark"] .brand-mark { background:linear-gradient(135deg,#8ca8ff,#4168d9); }

/* ============================================================
   P3-#8 — Mobile responsive sweep
   ============================================================ */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1100;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #1c2c49;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    box-shadow: 0 6px 18px rgba(15,23,42,.18);
}
.mobile-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #f0fdf4;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    z-index: 1050;
}
body.sidebar-open .sidebar-backdrop { display: block; }

@media (max-width: 800px) {
    .mobile-nav-toggle { display: flex; }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1080;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .25s cubic-bezier(.16,1,.3,1);
        box-shadow: 6px 0 30px rgba(15,23,42,.25);
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .content { padding: 70px 16px 32px; }
    .topbar h1 { font-size: 1.3rem; }
    .page-shell { display: block; }
}
@media (max-width: 540px) {
    .toast-container { left: 12px; right: 12px; max-width: none; }
    .cmd-modal { padding-top: 6vh; }
}

/* ============================================================
   P3-#4 — Empty state
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--surface), var(--panel-dim));
    border: 1px dashed var(--border);
    color: var(--text);
}
.empty-state-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 12px;
    opacity: .82;
}
.empty-state-title {
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: var(--text);
}
.empty-state-msg {
    color: var(--muted);
    font-size: .9rem;
    margin: 0 auto 16px;
    max-width: 460px;
}
.empty-state-cta {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: background var(--transition);
}
.empty-state-cta:hover { background: #15803d; text-decoration: none; }

/* ============================================================
   P3-#5 — Onboarding wizard
   ============================================================ */
.wizard-shell { max-width: 820px; margin: 0 auto; }
.wizard-steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 0 24px;
    position: relative;
}
.wizard-steps::before {
    content: "";
    position: absolute;
    top: 18px; left: 24px; right: 24px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.wizard-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}
.wizard-step .num {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-weight: 700;
    transition: all var(--transition);
}
.wizard-step.is-done .num {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.wizard-step.is-active .num {
    background: var(--surface);
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-dim);
}
.wizard-step .label {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 600;
}
.wizard-step.is-active .label,
.wizard-step.is-done .label { color: var(--text); }

/* ---- Giriş ekranı ---- */
.auth-body {
    min-height: 100vh;
    background: #e8eef8;
    color: var(--text);
}
.auth-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.08fr);
}
.auth-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 28px 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.2)),
        radial-gradient(circle at 1px 1px, rgba(37,99,235,.16) 1px, transparent 0) 0 0 / 22px 22px,
        #eef3fb;
}
.auth-card {
    width: min(100%, 440px);
    background: #fff;
    border: 1px solid #e3eaf6;
    border-radius: 22px;
    padding: 32px 30px 26px;
    box-shadow: 0 18px 50px rgba(23, 36, 61, .08);
}
.auth-brandline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.auth-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #60a5fa, #1d4ed8);
    color: #fff;
    font-weight: 800;
    letter-spacing: -.03em;
    box-shadow: 0 8px 18px rgba(29, 78, 216, .28);
}
.auth-brandline strong { display: block; font-size: 1.05rem; color: #17243a; }
.auth-brandline small {
    display: block;
    margin-top: 1px;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7b8ba6;
    font-weight: 700;
}
.auth-card h1 {
    margin: 0 0 8px;
    font-size: 1.7rem;
    letter-spacing: -.03em;
}
.auth-lead {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: .92rem;
}
.auth-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: .86rem;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; }
.auth-form label > span:first-child {
    font-size: .82rem;
    font-weight: 650;
    color: #334155;
}
.auth-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #d5e0f0;
    border-radius: 12px;
    background: #fff;
}
.auth-field:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.auth-field svg { width: 18px; height: 18px; color: #94a3b8; flex-shrink: 0; }
.auth-field input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    min-width: 0;
    padding: 12px 0;
    font-size: .95rem;
    color: var(--text);
}
.auth-field input::placeholder { color: #a3b0c2; }
.auth-code {
    text-align: center;
    letter-spacing: .42em;
    font-size: 1.25rem !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.auth-eye {
    border: 0;
    background: transparent;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 8px;
}
.auth-eye svg { width: 18px; height: 18px; }
.auth-eye:hover, .auth-eye.is-on { color: #2563eb; background: #eff4ff; }
.auth-submit {
    margin-top: 6px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: #fff;
    font-weight: 700;
    font-size: .98rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .28);
}
.auth-submit:hover { filter: brightness(1.05); }
.auth-back { margin: 16px 0 0; text-align: center; font-size: .84rem; }
.auth-legal {
    width: min(100%, 440px);
    margin: 18px 0 0;
    text-align: center;
    font-size: .75rem;
    line-height: 1.55;
    color: #7b8ba6;
}
.auth-legal a { color: #52627c; text-decoration: underline; }
.auth-stage {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 42px 48px;
    color: #e8eefc;
    background:
        radial-gradient(circle at 80% 10%, rgba(96,165,250,.35), transparent 28%),
        radial-gradient(circle at 15% 90%, rgba(37,99,235,.45), transparent 32%),
        linear-gradient(160deg, #10182b 0%, #172554 48%, #1d4ed8 140%);
}
.auth-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}
.auth-stage > * { position: relative; }
.auth-stage-top, .auth-stage-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.auth-stage-logo { font-weight: 750; letter-spacing: -.02em; }
.auth-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, .16);
    border: 1px solid rgba(52, 211, 153, .35);
    color: #a7f3d0;
    font-size: .75rem;
    font-weight: 700;
}
.auth-live span {
    width: 7px; height: 7px; border-radius: 50%; background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .18);
}
.auth-pill {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
}
.auth-stage h2 {
    max-width: 460px;
    margin: 0 0 10px;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -.04em;
}
.auth-stage-copy p { max-width: 460px; color: #c5d2ea; margin: 0; }
.auth-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.auth-chips span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    font-size: .78rem;
}
.auth-stage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.auth-stage-grid article {
    padding: 16px 16px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
}
.auth-stage-grid strong { display: block; font-size: .92rem; }
.auth-stage-grid span { display: block; margin-top: 4px; color: #b7c6e2; font-size: .78rem; }
.auth-stage-foot { color: #9aafd4; font-size: .75rem; justify-content: flex-start; }
@media (max-width: 980px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-stage { display: none; }
    .auth-pane { padding: 20px 16px 28px; }
    .auth-card { padding: 24px 18px 20px; }
}
.wizard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 6px 20px rgba(15,23,42,.05);
}
.wizard-card h2 { margin: 0 0 6px; }
.wizard-card .lead { color: var(--muted); margin: 0 0 18px; font-size: .92rem; }
.wizard-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 24px;
}
