/* Yake Digital · Satıcı Merkezi — modern dark-first tasarım sistemi (2026 redesign).
   Tailwind CDN ile birlikte yüklenir; bu dosya bileşen katmanını ve temayı tanımlar. */

:root {
  --accent: #3b6ef6;
  --accent-hover: #2f5fe0;
  --accent-soft: rgba(59, 110, 246, 0.14);
  --accent-ring: rgba(59, 110, 246, 0.4);

  --surface-canvas: #0a0e16;
  --surface-card: #121826;
  --surface-raised: #161d2d;
  --surface-hover: #1a2233;
  --surface-sunken: #0d121d;

  --border-subtle: #20283a;
  --border-strong: #2b3650;

  --text-primary: #e8edf6;
  --text-body: #c4ccdb;
  --text-secondary: #94a0b5;
  --text-muted: #6a7488;
  --text-accent: #6f97ff;

  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.14);
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.14);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, 0.14);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);

  --sidebar-w: 252px;
  --topbar-h: 64px;
}

[data-theme='light'] {
  --accent: #2f5fe0;
  --accent-hover: #2550c4;
  --accent-soft: rgba(47, 95, 224, 0.1);

  --surface-canvas: #f5f7fb;
  --surface-card: #ffffff;
  --surface-raised: #ffffff;
  --surface-hover: #f0f3f9;
  --surface-sunken: #eef1f7;

  --border-subtle: #e4e9f1;
  --border-strong: #d3dae6;

  --text-primary: #0f1726;
  --text-body: #2f3a4d;
  --text-secondary: #5a6577;
  --text-muted: #8a93a5;
  --text-accent: #2f5fe0;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.12);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--surface-canvas);
  color: var(--text-body);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-primary); margin: 0; line-height: 1.25; font-weight: 600; }
a { color: var(--text-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.sm { font-size: 12.5px; }
.accent { color: var(--accent); }
.right, .t-right { text-align: right; }
.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mt { margin-top: 14px; }
.break { word-break: break-word; }
.sep { border: none; border-top: 1px solid var(--border-subtle); margin: 18px 0; }
.sub-h { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 4px 0 8px; font-family: var(--font-sans); font-weight: 600; }
.req { color: var(--accent); }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 26px 30px 60px; max-width: 1280px; width: 100%; margin: 0 auto; }
.app-backdrop { display: none; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface-sunken);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-head { padding: 20px 20px 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--violet)); display: grid; place-items: center; color: #fff; font-weight: 700; }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 700; color: var(--text-primary); font-size: 15px; line-height: 1.1; }
.brand-text small { font-weight: 500; font-size: 11px; color: var(--text-muted); font-family: var(--font-sans); }
.nav { flex: 1; padding: 8px 12px; overflow-y: auto; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 16px 10px 6px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text-secondary); font-weight: 500; font-size: 14px; margin-bottom: 2px; transition: background 0.12s, color 0.12s; }
.nav-item:hover { background: var(--surface-hover); color: var(--text-primary); text-decoration: none; }
.nav-item.active { background: var(--accent-soft); color: var(--text-accent); }
.nav-item .ic { width: 18px; height: 18px; }
.sidebar-foot { padding: 14px 14px 16px; border-top: 1px solid var(--border-subtle); }
.userbox { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--text-accent); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.userbox-info { min-width: 0; }
.userbox-info strong { display: block; font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userbox-info small { color: var(--text-muted); font-size: 11.5px; }

/* ---------- Topbar ---------- */
.topbar { height: var(--topbar-h); display: flex; align-items: center; gap: 14px; padding: 0 30px; border-bottom: 1px solid var(--border-subtle); background: color-mix(in srgb, var(--surface-canvas) 80%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.topbar-title h1 { font-size: 17px; }
.topbar-title small { color: var(--text-muted); font-size: 12px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: var(--text-secondary); display: grid; place-items: center; cursor: pointer; transition: background 0.12s, color 0.12s; }
.icon-btn:hover { background: var(--surface-hover); color: var(--text-primary); }
.theme-sun, .theme-moon { display: none; }
[data-theme='dark'] .theme-moon { display: inline-flex; }
[data-theme='light'] .theme-sun { display: inline-flex; }
.only-mobile { display: none; }

/* ---------- Page head ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ph-text h2 { font-size: 22px; }
.ph-text p { color: var(--text-secondary); margin: 4px 0 0; font-size: 14px; }
.page-actions { margin-bottom: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.page-intro { color: var(--text-secondary); margin: 0 0 18px; max-width: 70ch; }
.detail-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.detail-title { font-size: 22px; }
.detail-meta { margin-top: 4px; }

/* ---------- Cards ---------- */
.card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-subtle); }
.card-head h2 { font-size: 15px; }
.card-body { padding: 20px; }
.card-body.no-pad { padding: 0; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border-subtle); }

/* ---------- Grids ---------- */
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 6px; }
.grid-2, .grid-2eq { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.grid-wide { display: grid; gap: 18px; grid-template-columns: 1.6fr 1fr; }
.grid-2.lean, .grid-2.rail { gap: 18px; }
@media (max-width: 900px) { .grid-2, .grid-2eq, .grid-wide { grid-template-columns: 1fr; } }

/* ---------- Stat cards ---------- */
.stat-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); }
.stat-ic { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent); }
.stat-ic.ic-accent { background: var(--accent-soft); color: var(--accent); }
.stat-ic.ic-success, .stat-ic.ic-green, .stat-ic.ic-lime { background: var(--green-soft); color: var(--green); }
.stat-ic.ic-warning, .stat-ic.ic-amber { background: var(--amber-soft); color: var(--amber); }
.stat-ic.ic-info { background: var(--info-soft); color: var(--info); }
.stat-ic.ic-violet { background: var(--violet-soft); color: var(--violet); }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-value { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.stat-label { color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface-raised); color: var(--text-primary); font-family: var(--font-sans); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: background 0.12s, border-color 0.12s, transform 0.05s; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--surface-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-secondary { background: var(--surface-raised); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text-primary); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger-text { background: transparent; border-color: transparent; color: var(--red); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn .ic { width: 16px; height: 16px; }
.btn:disabled, .btn.disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: var(--surface-hover); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.badge-sm { padding: 2px 8px; font-size: 11px; }
.badge-accent { background: var(--accent-soft); color: var(--text-accent); border-color: transparent; }
.badge-success, .badge-green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge-warning, .badge-amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.badge-danger, .badge-red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge-violet { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.badge-neutral { background: var(--surface-hover); color: var(--text-secondary); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table thead th { text-align: left; padding: 11px 16px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); font-weight: 600; white-space: nowrap; }
.table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border-subtle); color: var(--text-body); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table.compact tbody td, .table.compact thead th { padding: 9px 14px; }
.table tbody tr.clickable, .table tbody tr[onclick] { cursor: pointer; }
.table tbody tr.clickable:hover, .table tbody tr[onclick]:hover { background: var(--surface-hover); }
.table strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
/* Tüm metin-türü inputlar (type belirtilmemiş = text dahil) stillenir; checkbox/radio/file/buton hariç.
   :where() ile sıfır-özgüllük → .in input gibi bağlamsal kurallar (ikon padding'i) ezilmez. */
input:where(:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='range']):not([type='color']):not([type='submit']):not([type='button']):not([type='hidden'])),
select, textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface-sunken); color: var(--text-primary); font-family: var(--font-sans); font-size: 14px; line-height: 1.4; transition: border-color 0.12s, box-shadow 0.12s;
}
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236a7488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input:where(:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='submit']):not([type='button']):not([type='hidden'])):focus,
select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-grid.two { grid-template-columns: 1fr; } }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-foot { display: flex; gap: 10px; justify-content: flex-end; }
.form-note { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12.5px; margin: 4px 0 0; }
.in { position: relative; display: flex; align-items: center; }
.in-ic { position: absolute; left: 12px; color: var(--text-muted); display: inline-flex; pointer-events: none; }
.in input { padding-left: 38px; }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: 12px; padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--border-subtle); background: var(--surface-raised); align-items: flex-start; }
.callout .ic { flex-shrink: 0; margin-top: 1px; }
.callout strong { display: block; color: var(--text-primary); font-size: 13.5px; margin-bottom: 2px; }
.callout span { color: var(--text-secondary); font-size: 13px; }
.callout-ok { background: var(--green-soft); border-color: transparent; color: var(--green); }
.callout-info { background: var(--accent-soft); border-color: transparent; color: var(--text-accent); }
.callout-warn { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.callout-err { background: var(--red-soft); border-color: transparent; color: var(--red); }
.callout-ok strong, .callout-info strong, .callout-warn strong, .callout-err strong, .callout-ok span, .callout-info span, .callout-warn span, .callout-err span { color: inherit; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 10px 14px; color: var(--text-secondary); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tab:hover { color: var(--text-primary); text-decoration: none; }
.tab.active { color: var(--text-accent); border-bottom-color: var(--accent); }
.tab-n { background: var(--surface-hover); border-radius: var(--r-pill); padding: 1px 7px; font-size: 11px; }

/* ---------- Key-value ---------- */
.kv { display: flex; flex-direction: column; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); }
.kv-row:last-child { border-bottom: none; }
.kv-k { color: var(--text-muted); font-size: 13px; }
.kv-v { color: var(--text-primary); font-weight: 500; text-align: right; }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 48px 24px; }
.empty-ic { width: 60px; height: 60px; border-radius: var(--r-lg); background: var(--surface-hover); color: var(--text-muted); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h2 { font-size: 16px; margin-bottom: 6px; }
.empty p { color: var(--text-muted); margin: 0; }
.empty-card { padding: 40px; text-align: center; }

/* ---------- Quick actions ---------- */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; border-radius: var(--r-md); border: 1px solid var(--border-subtle); background: var(--surface-sunken); color: var(--text-secondary); font-size: 13px; font-weight: 500; text-align: center; transition: border-color 0.12s, color 0.12s, background 0.12s; }
.qa:hover { border-color: var(--accent); color: var(--text-primary); background: var(--surface-hover); text-decoration: none; }
.qa .ic { color: var(--accent); }

/* ---------- Pager ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; flex-wrap: wrap; }
.pager-info { color: var(--text-muted); font-size: 13px; }
.pager-btns { display: flex; gap: 6px; }
.pager-btn { padding: 6px 12px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); color: var(--text-secondary); background: var(--surface-raised); font-size: 13px; }
.pager-btn:hover { background: var(--surface-hover); text-decoration: none; }
.pager-gap { color: var(--text-muted); }

/* ---------- Media / thumbs ---------- */
.thumb-row { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--border-subtle); }
.catalog-thumb, .prod-thumb { width: 46px; height: 46px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--border-subtle); background: var(--surface-hover); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.media-cell { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border-subtle); background: var(--surface-sunken); cursor: grab; }
.media-cell img { width: 100%; height: 110px; object-fit: cover; display: block; }
.media-cell.dragging { opacity: 0.5; }
.media-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; font-size: 11px; }
.media-ord { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); }
.media-del { display: inline-flex; align-items: center; gap: 4px; color: var(--text-secondary); cursor: pointer; }
.desc-box { background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 14px 16px; color: var(--text-body); font-size: 13.5px; }
.desc-box img { max-width: 100%; height: auto; }
.html-preview { width: 100%; min-height: 120px; max-height: 360px; border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: #fff; display: block; }
.upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-sm); border: 1px dashed var(--border-strong); color: var(--text-secondary); cursor: pointer; font-size: 13px; }
.upload-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.upload-btn input[type='file'] { display: none; }
.dropzone { border: 1px dashed var(--border-strong); border-radius: var(--r-md); padding: 22px; text-align: center; color: var(--text-muted); }

/* ---------- Choice chips/cards ---------- */
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); cursor: pointer; font-size: 13px; color: var(--text-secondary); user-select: none; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--text-accent); }
.choice-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--border-strong); cursor: pointer; color: var(--text-secondary); }
.choice-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--text-accent); }
.cc-ic { color: var(--accent); }
.cc-check { position: absolute; top: 12px; right: 12px; opacity: 0; color: var(--accent); }
.choice-card:has(input:checked) .cc-check { opacity: 1; }

/* ---------- Adım adım sihirbaz ---------- */
.wz-progress { display: flex; gap: 8px; margin-bottom: 22px; }
.wz-dot { flex: 1; height: 4px; border-radius: 2px; background: var(--border-subtle); transition: background 0.2s; }
.wz-dot.done { background: var(--accent); }
.wz-dot.current { background: var(--text-accent); }
.wz-step { display: none; }
.wz-step.active { display: block; animation: wzfade 0.2s ease; }
@keyframes wzfade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.wz-step h3 { font-size: 18px; margin-bottom: 4px; }
.wz-sub { color: var(--text-secondary); font-size: 13.5px; margin: 0 0 18px; }
.wz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.wz-err { color: var(--red); font-size: 13px; margin-top: 12px; min-height: 1.2em; }
.wz-when { margin-top: 4px; }

/* ---------- Onay kutusu satırı (görünür checkbox) ---------- */
.check { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--surface-sunken); cursor: pointer; transition: border-color 0.12s, background 0.12s; }
.check:hover { border-color: var(--border-strong); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border-strong); flex-shrink: 0; margin-top: 1px; display: grid; place-items: center; transition: background 0.12s, border-color 0.12s; }
.check-box::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transform-origin: center; transition: transform 0.12s; margin-top: -1px; }
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check-box::after { transform: rotate(45deg) scale(1); }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check input:focus-visible + .check-box { box-shadow: 0 0 0 3px var(--accent-ring); }
.check-text { font-size: 13.5px; color: var(--text-body); line-height: 1.45; }
.check:has(input:checked) .check-text { color: var(--text-primary); }
.check-stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Combo (searchable select) ---------- */
.combo { position: relative; }
.combo-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow-md); max-height: 240px; overflow-y: auto; display: none; }
.combo-list.open { display: block; }
.combo-opt { padding: 9px 13px; cursor: pointer; font-size: 13.5px; color: var(--text-body); }
.combo-opt:hover, .combo-opt.active { background: var(--accent-soft); color: var(--text-accent); }
.combo-empty { padding: 9px 13px; color: var(--text-muted); font-size: 13px; }

/* ---------- Auth / login ---------- */
.auth-body { background: var(--surface-canvas); }
.login { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.login-aside { position: relative; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #0d1424, #0a0e16 60%); overflow: hidden; }
[data-theme='light'] .login-aside { background: linear-gradient(160deg, #eaf0fe, #f5f7fb 60%); }
.glow { position: absolute; top: -120px; right: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); filter: blur(20px); }
.login-brand { font-family: var(--font-display); font-size: 18px; color: var(--text-primary); position: relative; }
.login-eyebrow { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-accent); font-weight: 600; margin-bottom: 12px; }
.login-h { font-size: 34px; line-height: 1.15; color: var(--text-primary); margin-bottom: 14px; }
.login-lead { color: var(--text-secondary); max-width: 42ch; font-size: 15px; }
.login-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.login-points li { display: flex; align-items: center; gap: 12px; color: var(--text-body); font-size: 14px; }
.login-points .ic { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.login-foot { color: var(--text-muted); font-size: 12px; position: relative; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.l-head h1 { font-size: 25px; }
.l-head p { color: var(--text-secondary); margin: 6px 0 0; }
.apply-card { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 6px; }
.apply-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.apply-head h1 { font-size: 24px; }
.apply-sub { color: var(--text-secondary); margin: 0 0 14px; }
.apply-alt { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.ic-chip { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-aside { display: none; } }

/* ---------- Misc ---------- */
.actions-col { display: flex; flex-direction: column; gap: 14px; }
.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters > input, .filters > select { width: auto; }
.filters > select { min-width: 150px; }
.filters .f-search { flex: 1; min-width: 220px; }
.filters .f-search input { padding-left: 38px; }
.err-code { font-family: var(--font-display); font-size: 64px; color: var(--accent); font-weight: 700; }
.price { font-family: var(--font-mono); color: var(--text-primary); font-weight: 600; }
.brand-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 16px; }
.prod-card { display: flex; flex-direction: column; border: 1px solid var(--border-subtle); border-radius: var(--r-md); overflow: hidden; background: var(--surface-card); transition: border-color 0.12s, box-shadow 0.12s, transform 0.06s; }
.prod-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); text-decoration: none; transform: translateY(-2px); }
.prod-media { position: relative; aspect-ratio: 4 / 5; background: var(--surface-hover); display: grid; place-items: center; overflow: hidden; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-media .ic { color: var(--text-muted); }
.prod-status { position: absolute; top: 8px; left: 8px; }
.prod-info { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 7px; }
.p-title { color: var(--text-primary); font-weight: 600; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.p-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prod-price { font-family: var(--font-mono); color: var(--text-primary); font-weight: 600; font-size: 13.5px; }

/* ---------- Varyant kartları ---------- */
.variants-list { display: flex; flex-direction: column; gap: 12px; }
.variant-card { border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--surface-sunken); padding: 14px 16px; }
.variant-name { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.variant-name strong { color: var(--text-primary); font-size: 14px; }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.variant-grid .field label { font-size: 12px; }
.variant-grid input, .variant-grid select { padding: 8px 10px; font-size: 13.5px; }
.variant-grid .full { grid-column: 1 / -1; }
.vmedia-picker { display: flex; gap: 6px; flex-wrap: wrap; }
.vmedia-opt { width: 42px; height: 42px; border-radius: 7px; border: 2px solid var(--border-strong); overflow: hidden; cursor: pointer; padding: 0; background: var(--surface-hover); display: grid; place-items: center; }
.vmedia-opt img { width: 100%; height: 100%; object-fit: cover; }
.vmedia-opt.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.vmedia-none { font-size: 10px; color: var(--text-muted); line-height: 1.1; text-align: center; }

/* ---------- Görsel yükleme / dropzone ---------- */
.dropzone-up { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 26px 18px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-md); cursor: pointer; text-align: center; transition: border-color 0.15s, background 0.15s; color: var(--text-secondary); }
.dropzone-up:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone-up strong { color: var(--text-primary); font-size: 14px; }
.dropzone-up span { font-size: 12.5px; color: var(--text-muted); }
.dropzone-up .ic { color: var(--accent); }
.dropzone-up input[type='file'] { display: none; }
.media-cell:has(input[name='deleteMedia']:checked) { outline: 2px solid var(--red); outline-offset: -2px; }
.media-cell:has(input[name='deleteMedia']:checked) img { opacity: 0.4; }
.media-del input { accent-color: var(--red); }

/* ---------- Zengin metin editörü (Quill) ---------- */
.rte { border-radius: var(--r-sm); }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: var(--border-strong); }
.ql-toolbar.ql-snow { background: var(--surface-raised); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.ql-container.ql-snow { background: var(--surface-sunken); border-radius: 0 0 var(--r-sm) var(--r-sm); color: var(--text-primary); font-family: var(--font-sans); font-size: 14px; }
.ql-editor { min-height: 170px; }
.ql-editor.ql-blank::before { color: var(--text-muted); font-style: normal; }
.ql-snow .ql-stroke { stroke: var(--text-secondary); }
.ql-snow .ql-fill, .ql-snow .ql-stroke.ql-fill { fill: var(--text-secondary); }
.ql-snow .ql-picker { color: var(--text-secondary); }
.ql-snow .ql-picker-options { background: var(--surface-raised); border-color: var(--border-strong) !important; }
.ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--accent); }
.ql-snow.ql-toolbar button:hover .ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-fill { fill: var(--accent); }
.ql-snow a { color: var(--text-accent); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .only-mobile { display: grid; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform 0.22s ease; box-shadow: var(--shadow-lg); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .app-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 50; }
  .content { padding: 20px 16px 50px; }
  .topbar { padding: 0 16px; }
}

@media (max-width: 640px) {
  .table.compact thead th, .table.compact tbody td { padding: 8px 10px; font-size: 12.5px; }
}
