/* Asistiva Dashboard — Stripe / Linear / Vercel esintili kurumsal tema */
:root {
  --bg: #f8fafc;            /* slate-50 */
  --panel: #ffffff;
  --text: #0f172a;          /* slate-900 */
  --text-2: #334155;        /* slate-700 */
  --muted: #64748b;         /* slate-500 */
  --faint: #94a3b8;         /* slate-400 */
  --border: #f1f5f9;        /* slate-100 */
  --border-2: #e2e8f0;      /* slate-200 */
  --hover: #f8fafc;
  --navy: #0b1220;
  --navy-2: #111a2e;
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --accent: #4f46e5;        /* indigo-600 */
  --accent-2: #7c3aed;      /* violet-600 */
  --green: #059669; --green-bg: #ecfdf5; --green-bd: #d1fae5;
  --red: #e11d48;   --red-bg: #fff1f2;   --red-bd: #ffe4e6;
  --amber: #b45309; --amber-bg: #fffbeb; --amber-bd: #fef3c7;
  --blue: #4338ca;  --blue-bg: #eef2ff;  --blue-bd: #e0e7ff;
  --slate-bg: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .25);
  --radius: 12px;
  --sidebar-w: 248px;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0; min-height: 100vh; display: flex;
  font: 14px/1.55 "Inter", "Inter var", ui-sans-serif, system-ui, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  /* calt kapalı: Inter "2x3" gibi dizileri "2×3"e çeviriyor; e-posta/kodlarda yanıltıcı */
  font-feature-settings: "cv11", "ss01", "tnum" 0, "calt" 0;
  color: var(--text); background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- sidebar */
.sidebar {
  width: var(--sidebar-w); position: fixed; inset: 0 auto 0 0; z-index: 5;
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  color: #94a3b8; padding: 20px 14px; display: flex; flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, .04);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 22px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #ec4899 100%);
  box-shadow: 0 6px 16px -4px rgba(99, 102, 241, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-mark svg { width: 18px; height: 18px; color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand-sub { color: #64748b; font-size: 11.5px; font-weight: 500; letter-spacing: .02em; }
.nav-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: #475569; padding: 12px 12px 6px; }
nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 12px; margin-bottom: 2px;
  border-radius: 8px; color: #94a3b8; font-weight: 500; font-size: 13.5px; text-decoration: none;
  transition: background .15s, color .15s;
}
nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
nav a:hover { background: rgba(255, 255, 255, .05); color: #e2e8f0; text-decoration: none; }
nav a.active { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
nav a.active svg { color: #a5b4fc; opacity: 1; }
.sidebar-foot { margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }

/* ---------------------------------------------------------------- layout */
main { margin-left: var(--sidebar-w); padding: 32px 40px 56px; flex: 1; min-width: 0; max-width: 1480px; }
h1 { font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; margin: 0; color: var(--text); }
h2 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 14px; color: var(--text); }
.page-sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 16px; }
.two { grid-template-columns: 2fr 1fr; }
@media (max-width: 1100px) { .two { grid-template-columns: 1fr; } }
.section { margin-top: 16px; }

/* ---------------------------------------------------------------- KPI cards */
.kpi { position: relative; overflow: hidden; }
.kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi .value { font-size: 27px; font-weight: 650; letter-spacing: -.03em; margin-top: 8px; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.15; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--slate-bg); color: var(--muted); }
.kpi-icon svg { width: 15px; height: 15px; }

/* mikro değişim rozetleri */
.delta {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 6px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; border: 1px solid; line-height: 1.6; white-space: nowrap;
}
.delta.up { color: var(--green); background: var(--green-bg); border-color: var(--green-bd); }
.delta.down { color: var(--red); background: var(--red-bg); border-color: var(--red-bd); }
.delta.flat { color: var(--muted); background: var(--slate-bg); border-color: var(--border-2); }
.delta svg { width: 10px; height: 10px; }
.up { color: var(--green); } .down { color: var(--red); } .muted { color: var(--muted); }
td .up, td .down { font-weight: 600; font-size: 13px; }

/* ---------------------------------------------------------------- tables */
.table-wrap { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th {
  font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  background: #fbfcfd; position: sticky; top: 0; z-index: 1; border-bottom-color: var(--border-2);
}
tbody tr { transition: background-color .12s ease; }
tbody tr:hover td { background: #f8fafc; }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--text-2); }
td b { color: var(--text); font-weight: 600; }
td:first-child b { white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; }
.card table th { background: transparent; position: static; }
.card table th:first-child, .card table td:first-child { padding-left: 0; }
.card table th:last-child, .card table td:last-child { padding-right: 0; }

/* ---------------------------------------------------------------- buttons & inputs */
button, .btn {
  font: inherit; font-size: 13.5px; font-weight: 500; line-height: 20px;
  border: 1px solid var(--border-2); background: #fff; color: var(--text);
  padding: 7px 14px; border-radius: 8px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
button:hover, .btn:hover { background: #f8fafc; border-color: #cbd5e1; text-decoration: none; }
button:active { transform: translateY(1px); }
button:focus-visible, .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(79, 70, 229, .25); }
button.primary {
  background: linear-gradient(180deg, #1e293b 0%, var(--primary) 100%); border-color: var(--primary); color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .2), inset 0 1px 0 rgba(255, 255, 255, .08);
}
button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
button.primary svg, .btn svg, button > svg { width: 15px; height: 15px; flex: none; }
button.danger { color: var(--red); }
button.danger:hover { background: var(--red-bg); border-color: var(--red-bd); }
button.small { padding: 3px 10px; font-size: 12px; }
button:disabled { opacity: .75; cursor: progress; }
button.loading { pointer-events: none; }
.spinner {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
button:not(.primary) .spinner { border-color: rgba(15, 23, 42, .15); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

input, select, textarea {
  font: inherit; font-size: 13.5px; padding: 7px 11px; border: 1px solid var(--border-2); border-radius: 8px;
  background: #fff; color: var(--text); width: 100%; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.toolbar input, .toolbar select { width: auto; }
label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; }
.check input { width: auto; box-shadow: none; accent-color: var(--primary); }

/* ---------------------------------------------------------------- pill badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 550; white-space: nowrap; border: 1px solid transparent; line-height: 1.6;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.s-completed, .t-top { background: var(--green-bg); color: #047857; border-color: var(--green-bd); }
.t-momentum { background: var(--blue-bg); color: var(--blue); border-color: var(--blue-bd); }
.t-steady { background: var(--slate-bg); color: #475569; border-color: var(--border-2); }
.s-processing, .s-pending, .s-on-hold, .t-risk { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-bd); }
.s-cancelled, .s-refunded, .s-failed, .t-discontinue { background: var(--red-bg); color: #be123c; border-color: var(--red-bd); }

/* ---------------------------------------------------------------- charts */
.chart { display: flex; align-items: flex-end; gap: 4px; height: 190px; padding-top: 12px; border-bottom: 1px solid var(--border-2); }
.chart .bar {
  flex: 1; min-height: 2px; border-radius: 4px 4px 1px 1px; position: relative;
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%); opacity: .85; transition: opacity .15s;
}
.chart .bar:hover { opacity: 1; background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%); }
.chart-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 8px; }
.meter { display: grid; gap: 4px; min-width: 150px; }
.meter > div { height: 5px; border-radius: 999px; background-color: var(--slate-bg); position: relative; overflow: hidden; }
.meter > div > span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.meter .cur > span { background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%); }
.meter .prev > span { background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 5px; border-radius: 999px; margin-right: 6px; vertical-align: middle; }

/* ---------------------------------------------------------------- onboarding */
.onboard {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; margin-bottom: 16px;
  border-color: #e0e7ff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -16px rgba(79, 70, 229, .35);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 55%, #f5f3ff 100%);
}
.onboard-main { padding: 26px 28px; }
.onboard-title { font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin: 12px 0 6px; }
.onboard-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #4338ca; background: var(--blue-bg); border: 1px solid var(--blue-bd); padding: 2px 10px; border-radius: 999px; }
.onboard-steps { padding: 26px 28px; background: rgba(238, 242, 255, .55); border-left: 1px solid #e0e7ff; font-size: 13px; color: var(--text-2); }
.onboard-steps .steps-title { font-weight: 600; color: var(--text); margin-bottom: 12px; }
.onboard-steps ol { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.onboard-steps li { counter-increment: s; display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.5; }
.onboard-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); }
@media (max-width: 1000px) { .onboard { grid-template-columns: 1fr; } .onboard-steps { border-left: 0; border-top: 1px solid #e0e7ff; } }
button.link-btn { border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
button.link-btn:hover { background: var(--slate-bg); color: var(--text); }
.empty-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* sekmeler */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-2); margin: 14px 0 18px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; margin-bottom: -1px; font-size: 13.5px; font-weight: 550;
  color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; text-decoration: none;
}
.tab:hover { color: var(--text); background: transparent; text-decoration: none; }
.tab.active { color: var(--text); border-bottom-color: var(--primary); }
.tab .dot { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.tab .dot.on { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.tab-logo { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.tab-logo svg { width: 14px; height: 14px; }
.tab-logo-woocommerce { background: #f3e8ff; color: #7e22ce; }
.tab-logo-trendyol { background: #ffedd5; color: #ea580c; }
.tab-logo-hepsiburada { background: #fff7ed; color: #f97316; }
.tab-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 650; color: #fff; background: #f43f5e; }
.admin-tabs { margin-top: -6px; margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13px; }
.soon-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 11px 14px; border-radius: 10px; background: var(--blue-bg); border: 1px solid var(--blue-bd); color: #3730a3; font-size: 13px; line-height: 1.5; }
.soon-note svg { flex: none; margin-top: 2px; }
/* [hidden] özniteliği, display tanımlı öğelerde de gizlesin (ör. sıfır olan menü rozeti) */
[hidden] { display: none !important; }
td button { white-space: nowrap; }
/* otomatik senkron */
.autosync-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 14px 18px; }
.autosync-main { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.autosync-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--blue-bg); color: var(--blue); }
.autosync-icon svg { width: 16px; height: 16px; }
.autosync-errors { margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: #be123c; }
.autosync-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--text-2); margin-top: 10px; }
.autosync-line svg { color: var(--muted); flex: none; }
.as-ok, .as-err, .as-skip { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; cursor: default; }
.as-ok { color: #047857; background: var(--green-bg); border-color: var(--green-bd); }
.as-err { color: #be123c; background: var(--red-bg); border-color: var(--red-bd); }
.as-skip { color: #475569; background: var(--slate-bg); border-color: var(--border-2); }
.spinner.dark { border-color: rgba(15, 23, 42, .15); border-top-color: var(--text); display: inline-block; vertical-align: -2px; width: 12px; height: 12px; }
/* şifre sıfırlama */
.modal-icon.warn { color: #b45309; background: var(--amber-bg); border-color: var(--amber-bd); }
.modal-icon.ok { color: #047857; background: var(--green-bg); border-color: var(--green-bd); }
.reset-notes { margin: 16px 0 4px; padding-left: 18px; color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.new-password { display: flex; gap: 10px; align-items: stretch; margin-top: 18px; }
.new-password code {
  flex: 1; display: flex; align-items: center; padding: 12px 16px; border-radius: 10px; border: 1px dashed #a5b4fc; background: #f5f7ff;
  font: 600 20px/1.2 "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .06em; color: var(--text);
  user-select: all; font-variant-ligatures: none;
}
.strength { display: flex; gap: 4px; margin-top: 8px; }
.strength i { flex: 1; height: 4px; border-radius: 999px; background: var(--slate-bg); transition: background .2s; }
.security-card .form { max-width: 760px; }
.sync-progress { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--border-2); border-radius: 10px; background: #fbfcfd; }
.sync-progress-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.sync-progress-head #hbCount { color: var(--muted); font-variant-numeric: tabular-nums; }
.sync-progress .bar { height: 6px; border-radius: 999px; background: var(--slate-bg); overflow: hidden; position: relative; }
.sync-progress .bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #6366f1, #a855f7); transition: width .4s ease; }
.sync-progress.indeterminate .bar span { width: 35% !important; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { left: -35%; } to { left: 100%; } }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: #f43f5e; }
/* talepler */
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 6px; border: 1px solid; white-space: nowrap; }
.chip-woocommerce { color: #7e22ce; background: #faf5ff; border-color: #f3e8ff; }
.chip-trendyol { color: #c2410c; background: #fff7ed; border-color: #ffedd5; }
.chip-hepsiburada { color: #b45309; background: #fffbeb; border-color: #fef3c7; }
.chip-manual { color: #475569; background: var(--slate-bg); border-color: var(--border-2); }
.contact-link { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.contact-link.muted { color: var(--muted); font-weight: 400; font-size: 13px; }
.lead-actions { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.lead-actions button.is-on { background: var(--green-bg); border-color: var(--green-bd); color: #047857; opacity: 1; cursor: default; }
.lead-actions button.is-on::before { content: "✓"; font-weight: 700; }
.admin-chip { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); vertical-align: 1px; }
.store-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--text); }
.store-link svg { width: 12px; height: 12px; color: var(--faint); }
.store-link:hover { color: var(--accent); }

/* ---------------------------------------------------------------- misc */
pre.summary {
  white-space: pre-wrap; background: #fbfcfd; border: 1px solid var(--border); border-radius: 10px; padding: 16px;
  font: 12.5px/1.65 "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--text-2); margin: 0;
}
.items-table td { padding: 6px 6px; }
.items-table input, .items-table select { padding: 5px 8px; }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain a { color: var(--text); font-weight: 500; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-bg); margin-right: 10px; flex: none; }
.row-center { display: flex; align-items: center; }
.source-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #6d28d9; background: #f5f3ff; border: 1px solid #ede9fe; padding: 1px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }

.modal { position: fixed; inset: 0; background: rgba(2, 6, 23, .45); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 56px 16px; z-index: 10; overflow: auto; }
.modal.hidden { display: none; }
.modal-box { background: #fff; border-radius: 16px; padding: 26px; width: 100%; max-width: 640px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.modal-box.wide { max-width: 920px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toast {
  position: fixed; bottom: 22px; right: 22px; background: var(--primary); color: #fff; padding: 11px 16px;
  border-radius: 10px; z-index: 20; max-width: 420px; font-size: 13.5px; box-shadow: var(--shadow-lg); animation: rise .2s ease;
}
.toast { display: flex; align-items: center; gap: 9px; }
.toast svg { width: 16px; height: 16px; flex: none; }
.toast.error { background: #be123c; }
.toast.success { background: #059669; box-shadow: 0 12px 28px -10px rgba(5, 150, 105, .55); }

/* modal: başlık, alan, hata */
.modal-head { display: flex; align-items: flex-start; gap: 14px; }
.modal-head > div { flex: 1; }
.modal-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #4338ca; background: var(--blue-bg); border: 1px solid var(--blue-bd); }
.modal-icon svg { width: 19px; height: 19px; }
.modal-close { border: 0; box-shadow: none; background: transparent; color: var(--faint); padding: 4px 8px; font-size: 15px; }
.modal-close:hover { background: var(--slate-bg); color: var(--text); }
.field-row { margin-bottom: 14px; }
.field-row.invalid input { border-color: #fda4af; box-shadow: 0 0 0 3px rgba(244, 63, 94, .12); }
.input-group { display: flex; gap: 6px; }
.input-group input { flex: 1; min-width: 0; font-variant-ligatures: none; }
.input-group button { white-space: nowrap; }
.error-box { display: none; background: var(--red-bg); border: 1px solid var(--red-bd); color: #be123c; font-size: 13px; padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; }
.error-box.show { display: block; }
.modal-box { animation: pop .16s ease-out; }
@keyframes pop { from { transform: translateY(6px) scale(.985); opacity: 0; } }
tbody tr.row-new td { animation: rowflash 2.4s ease-out; }
@keyframes rowflash { 0%, 35% { background: #ecfdf5; } 100% { background: transparent; } }
.toast.hidden { display: none; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
