/* Pazarmo — Pazaryeri Yönetim Otomasyonu — arayüz stilleri (tasarım: Berat Bostan) */
/* yazı tipi panelle birlikte gelir (Google'a bağlanmaz, sunucuda/çevrimdışı da aynı görünür) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/vendor/fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/vendor/fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/vendor/fonts/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/vendor/fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/vendor/fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/vendor/fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/vendor/fonts/inter-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/vendor/fonts/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/vendor/fonts/inter-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/vendor/fonts/inter-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --border: #e3e6eb;
  --border-strong: #cfd4dc;
  --text: #1c2230;
  --text-2: #4b5466;
  --muted: #7a8396;
  --brand: #0a6cff;            /* Pazarmo mavisi */
  --brand-deep: #0a3aa8;
  --primary: #1463ff;
  --primary-600: #0b4fd9;
  --primary-50: #eaf2ff;
  --primary-border: #bcd5ff;
  --accent: #00c2ff;
  --row-hover: #f7f9fd;
  --thumb-bg: #ffffff;
  --info-text: #0f4c85; --warning-text-strong: #7a3e00; --danger-text-strong: #8a1c1c; --success-text-strong: #1d5e2a;
  --info-border: #bcd9f5; --warning-border: #f5d3a8; --danger-border: #f3c0c0; --success-border: #bfe5c7;
  --tint: #f6f9ff;
  --auth-glow-1: #d9e7ff; --auth-glow-2: #d9f4ff;
  --success: #2b8a3e;
  --success-50: #e9f7ec;
  --warning: #b35c00;
  --warning-50: #fff4e5;
  --danger: #c92a2a;
  --danger-50: #fdecec;
  --info: #1971c2;
  --info-50: #e7f2fd;
  --sidebar: #070d1d;
  --sidebar-2: #13203f;
  --sidebar-text: #aab7cf;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ty: #ec4899; --hb: #ff6000; --n11: #7d3cff;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
[x-cloak] { display: none !important; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
small, .small { font-size: 12.5px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.danger-text { color: var(--danger); }
.success-text { color: var(--success); }
.warning-text { color: var(--warning); }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- yerleşim */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--sidebar) 248px, var(--bg) 248px); }
.sidebar { background: radial-gradient(420px 260px at -10% -5%, rgba(10,108,255,.32), transparent 70%), linear-gradient(180deg, #0b1633 0%, var(--sidebar) 45%, #040913 100%); color: var(--sidebar-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 20px 16px; color: #fff; }
.brand-logo { height: 32px; width: auto; display: block; filter: drop-shadow(0 4px 14px rgba(10,108,255,.35)); }
.brand-sub { font-size: 9.5px; font-weight: 600; letter-spacing: .07em; white-space: nowrap; text-transform: uppercase; color: #8fa3c9; }
.auth-card .brand { padding: 0 0 22px; align-items: center; }
.auth-card .brand-logo { height: 66px; filter: none; }
.auth-card .brand-sub { color: var(--muted); }
.logo-on-dark { display: none !important; }
[data-theme="dark"] .auth-card .logo-on-light { display: none !important; }
[data-theme="dark"] .auth-card .logo-on-dark { display: block !important; }
.brand-mark { position: relative; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #0a6cff 0%, #1463ff 50%, #06b6d4 100%); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(10,108,255,.45), inset 0 1px 0 rgba(255,255,255,.25); flex: none; }
.brand-mark span { font-weight: 800; font-size: 19px; color: #fff; letter-spacing: -.04em; line-height: 1; }
.brand-mark i { position: absolute; right: 5px; bottom: 5px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(255,255,255,0); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: 10.5px; font-weight: 500; color: #9aa3c7; letter-spacing: .01em; white-space: nowrap; }
.signature { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 18px; letter-spacing: .01em; }
.signature.dark { color: #6f7898; text-align: left; margin: 0 0 10px; font-size: 11px; }
.signature::before { content: "✦ "; color: #5fb2ff; }
.nav { padding: 6px 10px; flex: 1; overflow-y: auto; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6c7589; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--sidebar-text); font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--sidebar-2); color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(10,108,255,.34), rgba(10,108,255,.06)); color: #fff; box-shadow: inset 3px 0 0 #5fb2ff; }
.nav svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.nav .count { margin-left: auto; font-size: 11px; background: #33405a; color: #dbe2f0; padding: 1px 7px; border-radius: 10px; }
.nav .count.danger { background: #7a1f1f; color: #ffd6d6; }
.sidebar-foot { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12.5px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 56px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 24px; gap: 16px; position: sticky; top: 0; z-index: 20; }
.topbar .title { font-weight: 600; font-size: 15px; }
.topbar .spacer { flex: 1; }
.content { padding: 24px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.btn.hamburger { display: none; }

/* ---------------------------------------------------------------- kartlar */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.card-body { padding: 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); display: flex; gap: 8px; justify-content: flex-end; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.gap-lg { gap: 16px; }
.mt { margin-top: 16px; } .mt-sm { margin-top: 8px; } .mb { margin-bottom: 16px; } .mb-sm { margin-bottom: 8px; }

.kpi { padding: 16px 18px; }
.kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi.warn .value { color: var(--warning); }
.kpi-btn { text-align: left; cursor: pointer; font: inherit; color: inherit; width: 100%; }
.kpi-btn:hover { border-color: var(--border-strong); }
.kpi-btn.sel-danger { outline: 2px solid var(--danger); }
.kpi-btn.sel-success { outline: 2px solid var(--success); }

.mp-card { border-top: 3px solid var(--mpc, var(--primary)); }
.mp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mpc); display: inline-block; flex: none; }
.mp-trendyol { --mpc: var(--ty); } .mp-hepsiburada { --mpc: var(--hb); } .mp-n11 { --mpc: var(--n11); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.stat b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------------- formlar */
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--text-2); }
label.field .hint { font-weight: 400; color: var(--muted); font-size: 12px; order: 3; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 7px 10px; min-height: 36px; width: 100%; outline: none; transition: border-color .12s, box-shadow .12s;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
input:disabled, select:disabled { background: var(--surface-2); color: var(--muted); }
select { padding-right: 28px; }
.input-sm, select.input-sm { min-height: 32px; padding: 5px 8px; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 20px; background: #c9ced8; position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(16px); }
.input-group { display: flex; }
.input-group > * { border-radius: 0; }
.input-group > :first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group > :last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group .addon { padding: 7px 10px; background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 0; color: var(--muted); font-size: 13px; white-space: nowrap; display: flex; align-items: center; }

/* ---------------------------------------------------------------- butonlar */
.btn { font: inherit; font-weight: 500; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; min-height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; text-decoration: none !important; }
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-50); border-color: var(--danger-border); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border); }
.btn-sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.btn-xs { min-height: 26px; padding: 2px 8px; font-size: 12px; }
.btn-icon { padding: 6px; min-width: 32px; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- tablolar */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; }
.table td { padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--row-hover); }
.table tr.selected { background: var(--primary-50) !important; }
.table .clickable { cursor: pointer; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.thumb { width: 42px; height: 42px; border-radius: 6px; object-fit: contain; background: var(--thumb-bg); border: 1px solid var(--border); flex: none; }
.thumb.empty { display: grid; place-items: center; color: var(--muted); font-size: 11px; background: var(--surface-2); }
.prod-cell { display: flex; align-items: center; gap: 10px; min-width: 230px; max-width: 400px; }
.prod-cell .t { font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-cell .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

/* ---------------------------------------------------------------- rozetler */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; line-height: 1.5; }
.badge-success { background: var(--success-50); color: var(--success); border-color: var(--success-border); }
.badge-warning { background: var(--warning-50); color: var(--warning); border-color: var(--warning-border); }
.badge-danger { background: var(--danger-50); color: var(--danger); border-color: var(--danger-border); }
.badge-info { background: var(--info-50); color: var(--info); border-color: var(--info-border); }
.badge-primary { background: var(--primary-50); color: var(--primary); border-color: var(--primary-border); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mp-badges { display: flex; gap: 4px; }
.mp-pill { width: 26px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; border: 1px solid var(--border); color: var(--muted); background: var(--surface-2); cursor: default; }
.mp-pill.active { background: var(--success-50); color: var(--success); border-color: var(--success-border); }
.mp-pill.pending { background: var(--info-50); color: var(--info); border-color: var(--info-border); }
.mp-pill.failed { background: var(--danger-50); color: var(--danger); border-color: var(--danger-border); }
.mp-pill.skipped { background: var(--warning-50); color: var(--warning); border-color: var(--warning-border); }

.alert { padding: 12px 14px; border-radius: var(--radius); border: 1px solid; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert-info { background: var(--info-50); border-color: var(--info-border); color: var(--info-text); }
.alert-warning { background: var(--warning-50); border-color: var(--warning-border); color: var(--warning-text-strong); }
.alert-danger { background: var(--danger-50); border-color: var(--danger-border); color: var(--danger-text-strong); }
.alert-success { background: var(--success-50); border-color: var(--success-border); color: var(--success-text-strong); }

/* ---------------------------------------------------------------- sekmeler */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs button { font: inherit; font-weight: 500; background: none; border: 0; padding: 10px 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 2px; }
.seg button { font: inherit; font-size: 13px; font-weight: 500; border: 0; background: none; padding: 5px 12px; white-space: nowrap; border-radius: 5px; cursor: pointer; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.seg button.active { background: var(--surface); box-shadow: var(--shadow); color: var(--text); }

/* ---------------------------------------------------------------- filtre çubuğu / toplu işlem */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px; border-bottom: 1px solid var(--border); }
.toolbar input[type=search] { max-width: 280px; }
.toolbar select { width: auto; max-width: 200px; }
.bulkbar { position: sticky; top: 56px; z-index: 15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: linear-gradient(90deg, #0a1f4d, #0d2e72); color: #fff; border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow-lg); }
.bulkbar .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
.bulkbar .btn:hover { background: #3a4a72; }
.bulkbar select, .bulkbar input { width: auto; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.bulkbar select option { color: #111; }
.pager { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); justify-content: space-between; flex-wrap: wrap; }

/* ---------------------------------------------------------------- modal / çekmece */
.overlay { position: fixed; inset: 0; background: rgba(15, 20, 30, .45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; display: flex; flex-direction: column; max-height: 88vh; }
.modal.lg { max-width: 860px; }
.modal.xl { max-width: 1100px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); border-radius: 0 0 12px 12px; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(15, 20, 30, .35); z-index: 45; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--surface); z-index: 46; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.drawer-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: flex-start; }
.drawer-body { padding: 0 20px 20px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2); }

/* ---------------------------------------------------------------- toast */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.toast { background: #1f2533; color: #fff; padding: 12px 14px; border-radius: 8px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; animation: slidein .18s ease-out; }
.toast.error { background: #8a1c1c; }
.toast.success { background: #1d5e2a; }
@keyframes slidein { from { transform: translateY(8px); opacity: 0; } }

/* ---------------------------------------------------------------- iş göstergesi / ilerleme */
.progress { height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; }
.progress > div { height: 100%; background: var(--primary); transition: width .3s; }
.progress.indeterminate > div { width: 30% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
.job-indicator { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); background: var(--info-50); border: 1px solid var(--info-border); padding: 5px 10px; border-radius: 20px; cursor: pointer; }
.log { background: #0f1420; color: #cfd6e4; font: 12.5px/1.55 var(--mono); padding: 14px; border-radius: 8px; white-space: pre-wrap; max-height: 52vh; overflow-y: auto; }

/* ---------------------------------------------------------------- fiyat dökümü */
.breakdown { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.breakdown td { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.breakdown tr.total td { font-weight: 700; border-bottom: 0; padding-top: 10px; font-size: 15px; }
.breakdown tr.profit td { color: var(--success); font-weight: 600; }
.breakdown tr.loss td { color: var(--danger); font-weight: 600; }

.list-pick { border: 1px solid var(--border); border-radius: var(--radius-sm); max-height: 320px; overflow-y: auto; }
.list-pick button { display: block; width: 100%; text-align: left; font: inherit; border: 0; border-bottom: 1px solid var(--border); background: var(--surface); padding: 9px 12px; cursor: pointer; }
.list-pick button:hover { background: var(--primary-50); }
.list-pick button.sel { background: var(--primary-50); box-shadow: inset 3px 0 0 var(--primary); }
.list-pick .p { font-size: 12px; color: var(--muted); }

.steps { display: flex; gap: 8px; margin-bottom: 18px; }
.steps div { flex: 1; padding: 8px 12px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--muted); font-weight: 500; }
.steps div.on { background: var(--primary-50); border-color: var(--primary-border); color: var(--primary); }

.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(900px 500px at 15% -10%, var(--auth-glow-1), transparent), radial-gradient(700px 500px at 110% 110%, var(--auth-glow-2), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { color: var(--text); padding: 0 0 20px; }
.auth-card .brand-text small { color: var(--muted); }
.auth-wrap { flex-direction: column; }

.dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }

.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.img-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: var(--thumb-bg); }

/* ---------------------------------------------------------------- özet: karşılama, KPI, grafik */
.hero { position: relative; overflow: hidden; border-radius: 14px; padding: 26px 28px; margin-bottom: 18px; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: radial-gradient(520px 240px at 88% -30%, rgba(0,194,255,.55), transparent 70%), radial-gradient(420px 260px at 0% 120%, rgba(10,108,255,.65), transparent 70%), linear-gradient(120deg, #06163d, #0a3aa8 50%, #0a6cff); box-shadow: 0 14px 34px rgba(20,99,255,.30); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.hero-text, .hero-actions { position: relative; z-index: 1; }
.hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hero p { margin: 6px 0 0; color: rgba(255,255,255,.85); font-size: 14.5px; }
.hero-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-glass { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.4); }
.kpi-icon { display: flex; gap: 14px; align-items: flex-start; transition: transform .15s, box-shadow .15s; }
a.kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,.1); text-decoration: none; }
.kpi-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.kpi-ic svg { width: 21px; height: 21px; }
.ic-indigo { background: var(--primary-50); color: var(--primary); } .ic-amber { background: var(--warning-50); color: #d97706; }
.ic-cyan { background: var(--info-50); color: #0891b2; } .ic-green { background: var(--success-50); color: #16a34a; }
.kpi .value.value-sm { font-size: 21px; }
.kpi-icon > div:last-child { min-width: 0; }
.kpi .value { overflow-wrap: anywhere; }
.kpi-alert { border-color: var(--danger-border); background: linear-gradient(180deg, var(--surface), var(--danger-50)); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.chart { position: relative; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); height: 250px; align-items: end; gap: 0; background: repeating-linear-gradient(to top, transparent 0, transparent 61.5px, var(--border) 61.5px, var(--border) 62.5px); border-bottom: 1px solid var(--border-strong); }
.bar-col { height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.bar-col .bar { width: 62%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--brand), var(--accent)); transition: filter .12s, height .4s ease-out; min-height: 0; }
.bar-col.on .bar { filter: brightness(.82) saturate(1.2); }
.bar-col.on { background: rgba(10,108,255,.07); }
.chart-x { display: grid; grid-template-columns: repeat(14, 1fr); font-size: 11px; color: var(--muted); text-align: center; margin-top: 6px; }
.empty-chart { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.share-bar { height: 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin-top: 6px; }
.share-bar > div { height: 100%; background: var(--mpc); border-radius: 8px; transition: width .5s; }
.rank { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--primary-50); color: var(--primary); font-size: 11px; font-weight: 700; margin-right: 8px; }

/* ---------------------------------------------------------------- siparişler */
.status-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { font: inherit; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--text-2); font-size: 12.5px; font-weight: 500; box-shadow: var(--shadow); transition: border-color .12s, transform .12s; }
.tile b { font-size: 20px; color: var(--text); }
.tile:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.tile.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); color: var(--primary); }
.tile.tile-danger b { color: var(--danger); }
.toolbar .spacer { flex: 1; }
.timeline { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--border); margin-left: 6px; padding-left: 16px; }
.tl-item { position: relative; display: flex; gap: 10px; align-items: baseline; padding: 5px 0; }
.tl-dot { position: absolute; left: -22px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }

/* ---------------------------------------------------------------- satıştaki ürünler: satır içi fiyat */
.price-cell { display: inline-flex; flex-direction: column; align-items: flex-end; padding: 4px 8px; margin: -4px -8px; border-radius: 7px; border: 1px dashed transparent; }
.price-cell.editable { cursor: pointer; }
.price-cell.editable:hover { border-color: var(--primary-border); background: var(--primary-50); }
.price-cell .price { font-size: 15px; }
.price-cell .pen { color: var(--muted); opacity: 0; transition: opacity .12s; }
.price-cell.editable:hover .pen { opacity: 1; color: var(--primary); }
.editing-row { background: var(--tint) !important; box-shadow: inset 3px 0 0 var(--primary); }

/* ---------------------------------------------------------------- tedarikçi etiketi, kategori fiyatlandırma */
.src-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px;
  color: hsl(var(--h, 240) 55% 35%); background: hsl(var(--h, 240) 80% 96%); border: 1px solid hsl(var(--h, 240) 60% 88%); white-space: nowrap; }
.src-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip { font-size: 11px; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.chip.on { background: var(--primary-50); border-color: var(--primary-border); color: var(--primary); font-weight: 600; }
.cat-pricing { border: 1px solid var(--primary-border); background: linear-gradient(180deg, var(--tint), var(--surface)); border-radius: 10px; padding: 12px 14px; }
.cp-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--primary); margin-bottom: 10px; }
.cp-title .muted { color: var(--muted); }
.cp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .cp-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- mobil */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2-1 { grid-template-columns: 1fr; }
  .status-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .btn.hamburger { display: inline-flex; }
  .app { background: var(--bg); }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .dl { grid-template-columns: 1fr; }
  .status-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 20px; }
  .kpi-icon { flex-direction: column; gap: 10px; }
  .kpi .value { font-size: 22px; } .kpi .value.value-sm { font-size: 16px; }
  .bars { height: 170px; }
  .chart-x span { font-size: 9.5px; }
  .main { overflow-x: hidden; }
  .hero h1 { font-size: 21px; }
}


/* ---------------------------------------------------------------- tema düğmesi, başlık çubuğu */
.theme-toggle { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; color: var(--text-2); transition: background .15s, transform .15s; }
.theme-toggle:hover { background: var(--primary-50); color: var(--primary); transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.topbar .page-crumb { font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.topbar .page-crumb img { height: 22px; }
.hero-mark { position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(-8deg); width: 190px; height: 190px; object-fit: contain;
  opacity: .22; mix-blend-mode: screen; pointer-events: none; }
.hero-actions { z-index: 2; }

/* ---------------------------------------------------------------- buybox ve envanter */
.bb { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; border: 1px solid; }
.bb-1 { color: var(--success); background: var(--success-50); border-color: var(--success-border); }
.bb-n { color: var(--warning); background: var(--warning-50); border-color: var(--warning-border); }
.bb-alone { color: var(--muted); background: var(--surface-2); border-color: var(--border); font-weight: 600; }
.bb svg { width: 12px; height: 12px; }
.inv-mp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.inv-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); cursor: pointer;
  transition: border-color .15s, transform .15s; overflow: hidden; }
.inv-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--mpc); }
.inv-card:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.inv-card.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.inv-card .big { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.inv-card .mini { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.inv-card .mini b { color: var(--text); }
.match-chip { display: flex; flex-direction: column; gap: 3px; padding: 6px 9px; border-radius: 9px; background: var(--tint); border: 1px solid var(--primary-border); width: 220px; }
.match-chip .t { font-size: 12.5px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-chip .s { font-size: 11.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.managed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; box-shadow: 0 0 0 3px var(--success-50); }
.managed-dot.off { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-50); }
.cand { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.cand:hover { border-color: var(--primary-border); background: var(--tint); }
.cand .why { font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-50); border-radius: 6px; padding: 1px 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
@media (max-width: 900px) { .inv-mp, .split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- iskelet yükleme */
.skel { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* ================================================================ KARANLIK TEMA */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b14; --surface: #0f1522; --surface-2: #151d2e; --border: #243049; --border-strong: #34425f;
  --text: #e9eef8; --text-2: #bdc8dc; --muted: #8390a8;
  --primary: #5c9bff; --primary-600: #7fb2ff; --primary-50: rgba(10,108,255,.16); --primary-border: rgba(90,150,255,.38);
  --success: #4ade80; --success-50: rgba(74,222,128,.12); --success-border: rgba(74,222,128,.3);
  --warning: #fbbf24; --warning-50: rgba(251,191,36,.12); --warning-border: rgba(251,191,36,.3);
  --danger: #f87171; --danger-50: rgba(248,113,113,.12); --danger-border: rgba(248,113,113,.32);
  --info: #60a5fa; --info-50: rgba(96,165,250,.12); --info-border: rgba(96,165,250,.3);
  --info-text: #bcd8ff; --warning-text-strong: #fde3a4; --danger-text-strong: #fecaca; --success-text-strong: #bbf7d0;
  --row-hover: #121a2b; --thumb-bg: #ffffff; --tint: #0f1a30;
  --auth-glow-1: rgba(10,108,255,.28); --auth-glow-2: rgba(0,194,255,.18);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.35); --shadow-lg: 0 16px 40px rgba(0,0,0,.55);
  --sidebar: #050a14; --sidebar-2: #122040;
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .app { background: linear-gradient(to right, var(--sidebar) 248px, var(--bg) 248px); }
[data-theme="dark"] .topbar { background: rgba(15,21,34,.85); backdrop-filter: blur(10px); }
[data-theme="dark"] .btn-primary { color: #fff; background: #1463ff; border-color: #1463ff; }
[data-theme="dark"] .btn-primary:hover { background: #3b82ff; border-color: #3b82ff; }
[data-theme="dark"] .card, [data-theme="dark"] .tile, [data-theme="dark"] .inv-card { box-shadow: none; }
[data-theme="dark"] .log { background: #04070d; }
[data-theme="dark"] .overlay { background: rgba(2,4,10,.7); }
[data-theme="dark"] .hero { box-shadow: 0 14px 40px rgba(10,108,255,.22); }
[data-theme="dark"] select option { background: var(--surface); color: var(--text); }
[data-theme="dark"] .src-chip { color: hsl(var(--h, 270) 80% 78%); background: hsl(var(--h, 270) 45% 16%); border-color: hsl(var(--h, 270) 40% 28%); }
[data-theme="dark"] .toast { background: #14203a; }
[data-theme="dark"] .breakdown td { border-bottom-color: var(--border); }
[data-theme="dark"] .switch input { background: #34425f; }
[data-theme="dark"] .mp-pill { background: var(--surface-2); }
body, .card, .topbar, .table td, input, select, textarea { transition: background-color .2s, border-color .2s, color .2s; }

/* ---------------------------------------------------------------- buybox savaşı kartı */
.bb-card.on { border-color: var(--primary-border); box-shadow: 0 0 0 3px var(--primary-50); }
.bb-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bb-flow > div { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--tint); border: 1px solid var(--primary-border); font-size: 13px; line-height: 1.45; }
.bb-flow > div > b:first-child { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 12px; }
@media (max-width: 1100px) { .bb-flow { grid-template-columns: 1fr; } }

.bb-toggle { margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  cursor: pointer; border: 1px dashed var(--primary-border); color: var(--primary); background: transparent; transition: all .15s; }
.bb-toggle svg { width: 12px; height: 12px; }
.bb-toggle:hover { background: var(--primary-50); }
.bb-toggle.on { border-style: solid; background: linear-gradient(90deg, var(--brand), var(--accent)); color: #fff; border-color: transparent; box-shadow: 0 2px 10px rgba(10,108,255,.3); }
.bb-toggle.on:hover { filter: brightness(1.08); }

.sug-chip { display: flex; flex-direction: column; gap: 3px; padding: 6px 9px; border-radius: 9px; border: 1px dashed var(--warning-border); background: var(--warning-50); width: 220px; }
.sug-chip .t { font-size: 12.5px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-chip .s { font-size: 11.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sug-tag { font-size: 10.5px; font-weight: 700; color: var(--warning); text-transform: uppercase; letter-spacing: .04em; }

/* ================================================================ 2.5 — cila ve yeni bileşenler */
/* sayfa geçişi, modal girişi, bulanık arka plan */
.content > div { animation: pagein .22s ease-out; }
@keyframes pagein { from { opacity: 0; transform: translateY(6px); } }
.overlay { backdrop-filter: blur(3px); animation: fadein .15s ease-out; }
@keyframes fadein { from { opacity: 0; } }
.modal { animation: popin .18s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes popin { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.card { transition: box-shadow .15s, border-color .15s, background-color .2s; }
.card.flat { box-shadow: none; }
.btn:focus-visible, .seg button:focus-visible, .tile:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { box-shadow: 0 2px 8px rgba(20,99,255,.25); }
.btn-warning { background: #d97706; border-color: #d97706; color: #fff; box-shadow: 0 2px 8px rgba(217,119,6,.28); }
.btn-warning:hover { background: #b45309; border-color: #b45309; }
.dialog .btn-danger, .btn-danger.dialog-ok { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: 0 2px 8px rgba(201,42,42,.28); }
.dialog .btn-danger:hover { filter: brightness(.92); background: var(--danger); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.thumb.sm { width: 34px; height: 34px; }
.ic-red { background: var(--danger-50); color: var(--danger); }

/* onay penceresi */
.dialog-overlay { align-items: center; z-index: 90; }
.dialog { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 24px 60px rgba(16,24,40,.28); width: 100%; max-width: 440px;
  padding: 26px 26px 20px; text-align: center; animation: popin .2s cubic-bezier(.2, .9, .3, 1.25); position: relative; overflow: hidden; }
.dialog::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.dialog.tone-danger::before { background: linear-gradient(90deg, #ef4444, #f97316); }
.dialog.tone-warning::before { background: linear-gradient(90deg, #f59e0b, #f97316); }
.dialog-ic { width: 54px; height: 54px; border-radius: 16px; margin: 4px auto 14px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.dialog-ic svg { width: 26px; height: 26px; }
.tone-danger .dialog-ic { background: var(--danger-50); color: var(--danger); }
.tone-warning .dialog-ic { background: var(--warning-50); color: #d97706; }
.dialog h2 { font-size: 18px; font-weight: 700; }
.dialog p { margin: 8px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.dialog-details { text-align: left; margin: 14px 0 0; padding: 10px 12px 10px 28px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; font-size: 12.5px; color: var(--text-2); }
.dialog-details li + li { margin-top: 4px; }
.dialog-foot { display: flex; gap: 10px; margin-top: 22px; }
.dialog-foot .btn { flex: 1; min-height: 40px; font-weight: 600; }

/* bildirim */
.toast { border-radius: 12px; padding: 12px 14px; align-items: center; border: 1px solid rgba(255,255,255,.08); }
.toast-ic { width: 18px; height: 18px; flex: none; opacity: .9; }

/* buybox kartı */
.bb-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; box-shadow: 0 6px 16px rgba(10,108,255,.3); flex: none; }
.bb-ic svg { width: 19px; height: 19px; }
.bb-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.round-demo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.rd-step { display: flex; flex-direction: column; gap: 1px; padding: 6px 12px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; }
.rd-step b { font-size: 15px; }
.rd-step.on { border-color: var(--primary); background: var(--primary-50); color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.rd-arrow { width: 18px; height: 18px; color: var(--muted); }
.bb-rules { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--tint), var(--surface)); }
.bb-rule { border: 1px solid var(--border); border-radius: 11px; background: var(--surface); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
.bb-rule:hover { border-color: var(--primary-border); }
.bb-rule.fresh { animation: popin .25s ease-out; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.bb-rule.general { background: var(--surface-2); border-style: dashed; }
.bb-rule-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bb-rule-no { width: 22px; height: 22px; border-radius: 7px; background: var(--primary-50); color: var(--primary); font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.bb-rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; margin-top: 10px; }
.bb-rule-grid label.field { font-size: 11.5px; gap: 3px; }
.hit { font-size: 12px; color: var(--muted); white-space: nowrap; padding: 2px 9px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); }
.hit b { color: var(--text); }
.chip-soft { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 20px; background: var(--info-50); color: var(--info); border: 1px solid var(--info-border); white-space: nowrap; }
@media (max-width: 700px) { .bb-rule-grid { grid-template-columns: 1fr 1fr; } }
.bb-feed { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.bb-feed-row { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.bb-feed-row:last-of-type { border-bottom: 0; }
.bb-feed-row:hover { background: var(--row-hover); }

/* hareket türleri */
.act { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); box-shadow: 0 0 0 3px var(--surface-2); }
.act-undercut { background: #f59e0b; box-shadow: 0 0 0 3px var(--warning-50); }
.act-raise { background: #22c55e; box-shadow: 0 0 0 3px var(--success-50); }
.act-revert { background: #3b82f6; box-shadow: 0 0 0 3px var(--info-50); }
.act-floor { background: #ef4444; box-shadow: 0 0 0 3px var(--danger-50); }
.act-all { background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 0 0 3px var(--primary-50); }
.act-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px; border: 1px solid; }
.act-badge.act-undercut { color: var(--warning); background: var(--warning-50); border-color: var(--warning-border); box-shadow: none; }
.act-badge.act-raise { color: var(--success); background: var(--success-50); border-color: var(--success-border); box-shadow: none; }
.act-badge.act-revert { color: var(--info); background: var(--info-50); border-color: var(--info-border); box-shadow: none; }
.act-badge.act-floor { color: var(--danger); background: var(--danger-50); border-color: var(--danger-border); box-shadow: none; }
.status-tiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.status-tiles .tile .act { margin-bottom: 4px; }

/* satırdaki savaş durumu */
.bb-state { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.rule-chip { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: var(--primary-50); color: var(--primary); border: 1px solid var(--primary-border); white-space: nowrap; max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.rule-chip.own { background: linear-gradient(90deg, var(--brand), var(--accent)); color: #fff; border-color: transparent; }
.bb-last { font-size: 11.5px; color: var(--text-2); display: flex; gap: 6px; align-items: center; max-width: 250px; }
.bb-last::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.bb-last.st-undercut::before { background: #f59e0b; } .bb-last.st-raise::before { background: #22c55e; }
.bb-last.st-revert::before { background: #3b82f6; } .bb-last.st-floor::before { background: #ef4444; }
.bb-last.st-floor { color: var(--danger); }
.bb-last.big { max-width: none; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.bb-last.big::before { display: none; }
.bb-last.big svg { width: 16px; height: 16px; color: var(--primary); flex: none; }

/* ürün geçmişi penceresi */
.mini-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.mini-kpis > div { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.mini-kpis span { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.mini-kpis b { font-size: 16px; }
.mini-kpis .on { background: var(--primary-50); border-color: var(--primary-border); }
.mini-kpis .on b { color: var(--primary); }
@media (max-width: 800px) { .mini-kpis { grid-template-columns: repeat(2, 1fr); } }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.lgd { display: inline-flex; align-items: center; gap: 6px; }
.lgd::before { content: ""; width: 14px; height: 3px; border-radius: 3px; background: currentColor; }
.lgd-price { color: var(--primary); } .lgd-bb { color: #f59e0b; } .lgd-floor { color: var(--danger); }
.lgd-rev::before { background: var(--primary-border); height: 10px; width: 10px; border-radius: 3px; } .lgd-net::before { background: #22c55e; height: 10px; width: 10px; border-radius: 3px; }
.hchart { position: relative; padding-left: 70px; }
.hchart svg { width: 100%; height: 190px; display: block; overflow: visible; background: repeating-linear-gradient(to top, transparent 0, transparent 46.5px, var(--border) 46.5px, var(--border) 47.5px); border-bottom: 1px solid var(--border-strong); }
.hc-price { fill: none; stroke: var(--primary); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hc-bb { fill: none; stroke: #f59e0b; stroke-width: 2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.hc-floor { stroke: var(--danger); stroke-width: 1.5; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.hc-y { position: absolute; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 6px 0; }
.hc-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }

/* özet: kargo zamanı, kâr ve uyarılar */
.urgent-card.hot { border-color: var(--danger-border); }
.urg-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.urg { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); text-decoration: none !important; color: inherit; }
.urg b { font-size: 22px; font-weight: 800; line-height: 1.1; }
.urg span { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.u-over { border-color: var(--danger-border); background: var(--danger-50); } .u-over b { color: var(--danger); }
.u-h6 { border-color: var(--warning-border); background: var(--warning-50); } .u-h6 b { color: var(--warning); }
.u-today b { color: var(--primary); }
.urg-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.urg-row:hover { background: var(--row-hover); border-color: var(--border); }
.cd { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.cd-overdue { background: var(--danger); color: #fff; border-color: var(--danger); animation: throb 1.8s ease-in-out infinite; }
.cd-h6 { background: var(--warning-50); color: var(--warning); border-color: var(--warning-border); }
.cd-today { background: var(--primary-50); color: var(--primary); border-color: var(--primary-border); }
@keyframes throb { 50% { box-shadow: 0 0 0 5px var(--danger-50); } }
.empty-mini { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 16px; color: var(--success); font-weight: 500; font-size: 13px; border-radius: 10px; background: var(--success-50); }
.empty-mini svg { width: 16px; height: 16px; }
.profit-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 14px 16px; border-radius: 12px;
  background: radial-gradient(260px 120px at 100% 0%, var(--primary-50), transparent), var(--surface-2); border: 1px solid var(--border); }
.profit-hero .label { font-size: 12px; color: var(--muted); font-weight: 500; }
.profit-hero .big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.alert-list { display: flex; flex-direction: column; gap: 6px; }
.al-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; text-decoration: none !important; border: 1px solid var(--border); color: var(--text-2); transition: transform .12s; }
.al-row:hover { transform: translateX(2px); }
.al-row svg { width: 16px; height: 16px; flex: none; }
.al-row.ok svg { color: var(--success); }
.al-row.bad { background: var(--danger-50); border-color: var(--danger-border); color: var(--danger-text-strong); } .al-row.bad svg { color: var(--danger); }
.al-row.warn { background: var(--warning-50); border-color: var(--warning-border); color: var(--warning-text-strong); } .al-row.warn svg { color: #d97706; }

/* kâr raporu */
.bars.auto, .chart-x.auto { grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none; }
.bar-col .bar.bar-rev { background: var(--primary-border); position: relative; display: flex; align-items: flex-end; overflow: hidden; width: 70%; }
.bar-net { width: 100%; background: linear-gradient(180deg, #22c55e, #16a34a); border-radius: 3px 3px 0 0; }
.bar-net.neg { background: linear-gradient(180deg, #f87171, #dc2626); }
.margin-bar { position: relative; height: 22px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.margin-bar > div { height: 100%; background: linear-gradient(90deg, rgba(34,197,94,.25), rgba(34,197,94,.55)); }
.margin-bar > div.low { background: linear-gradient(90deg, rgba(245,158,11,.25), rgba(245,158,11,.55)); }
.margin-bar > div.neg { background: linear-gradient(90deg, rgba(239,68,68,.25), rgba(239,68,68,.6)); }
.margin-bar span { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 8px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* uyarılar */
.tile-kpi { font: inherit; text-align: left; cursor: pointer; color: inherit; width: 100%; }
.tile-kpi:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.tile-kpi.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.alert.big { padding: 16px 18px; align-items: center; }
.alert.big svg { width: 24px; height: 24px; }
.bulkbar.inline { position: static; margin: 0; border-radius: var(--radius) var(--radius) 0 0; box-shadow: none; }
.empty-ic { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.empty-ic svg { width: 26px; height: 26px; }
.empty-ic.ok { background: var(--success-50); color: var(--success); }
.all-good h3 { font-size: 18px; }

@media (max-width: 860px) {
  .status-tiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .urg-chips { grid-template-columns: repeat(2, 1fr); }
  .hchart { padding-left: 0; } .hc-y { display: none; }
  .dialog { padding: 22px 18px 16px; }
}
[data-theme="dark"] .dialog { box-shadow: 0 24px 60px rgba(0,0,0,.6); }
[data-theme="dark"] .btn-warning { color: #1a1206; background: #fbbf24; border-color: #fbbf24; }
.table th.right { text-align: right; }
.mini-kpis .win { background: var(--success-50); border-color: var(--success-border); } .mini-kpis .win b { color: var(--success); }
.nav a { white-space: nowrap; font-size: 13.5px; }

/* ================================================================ 2.7 */
.range-bar { gap: 12px; background: var(--surface-2); }
.range { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.range input { width: 92px; min-height: 32px; padding: 5px 8px; font-size: 13px; }
.range i { font-style: normal; color: var(--muted); }
.switch.small { font-size: 12.5px; gap: 8px; }
.switch.small input { width: 30px; height: 17px; }
.switch.small input::after { width: 13px; height: 13px; }
.switch.small input:checked::after { transform: translateX(13px); }
select.filter-on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); color: var(--primary); font-weight: 600; }
.kpi-link { cursor: pointer; }
.kpi-link:hover { border-color: var(--primary-border); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,.1); }
.war-dialog { max-width: 470px; text-align: left; }
.war-dialog h2, .war-dialog > p { text-align: center; }
.war-dialog > p { max-width: 100%; }
.dialog-ic.war { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; box-shadow: 0 8px 20px rgba(10,108,255,.35); }
.war-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.war-fields .seg button { padding: 3px 9px; font-size: 12px; }
.war-hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 9px; padding: 8px 10px; }
.war-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.war-preview > div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); }
.war-preview span { font-size: 11.5px; color: var(--muted); }
.war-preview b { font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .war-fields, .war-preview { grid-template-columns: 1fr; } .range input { width: 72px; } }
