:root {
    /* "Atölye" teması — sıcak krem + terracotta, serif başlıklar */
    --bg: #f4efe4;
    --surface: #fffdf8;
    --surface-2: #efe8da;
    --border: #e8e0d2;
    --border-strong: #d8c3b4;
    --text: #211d18;
    --text-muted: #8a8073;
    --text-subtle: #a89a86;
    --accent: #c2522e;
    --accent-hover: #a94324;
    --accent-strong: #9c3f1f;
    --accent-soft: #f3e3da;
    --sidebar-bg: #efe8da;
    --sidebar-text: #73695b;
    --ok-bg: #e4efe6; --ok-fg: #3f7d5c;
    --warn-bg: #f7ecd7; --warn-fg: #b5752e;
    --danger-bg: #f6e2da; --danger-fg: #9c3f1f;
    --radius: 14px;
    --radius-sm: 11px;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; font-family: var(--serif); letter-spacing: -.01em; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-muted); }

/* ---------- Shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 230px; flex-shrink: 0; background: var(--sidebar-bg); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px 18px; }
.brand .logo { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 16px; }
.brand .name { font-weight: 600; font-size: 16px; font-family: var(--serif); }
.brand .sub { color: var(--text-subtle); font-size: 11px; }
.nav { padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-section { color: var(--text-subtle); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 16px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--sidebar-text); font-size: 13.5px; cursor: pointer; transition: background .12s, color .12s; }
.nav-item:hover { background: #e7dfcf; color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 500; }
.nav-item.active i { color: var(--accent); }
.nav-item i { font-size: 19px; width: 20px; text-align: center; }
.nav-item.disabled { opacity: .5; cursor: default; }
.nav-item .soon { margin-left: auto; font-size: 9.5px; background: #e4dccb; color: var(--text-subtle); padding: 1px 6px; border-radius: 6px; }
/* Akordeon grup başlıkları */
.nav-group { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; background: transparent; border-radius: 11px; color: var(--sidebar-text); font-size: 13.5px; font-family: inherit; cursor: pointer; text-align: left; transition: background .12s, color .12s; margin-top: 2px; }
.nav-group:hover { background: #e7dfcf; color: var(--text); }
.nav-group.open { color: var(--text); font-weight: 500; }
.nav-group .grp-ic { font-size: 19px; width: 20px; text-align: center; }
.nav-group .chev { margin-left: auto; font-size: 16px; color: var(--text-subtle); transition: transform .15s; transform: rotate(-90deg); }
.nav-group.open .chev { transform: rotate(0deg); }
.nav-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 4px 23px; padding-left: 9px; border-left: 1.5px solid var(--border); }
.nav-item.sub { padding: 8px 11px; font-size: 13px; }
.nav-item.sub i { font-size: 17px; }
.sidebar-foot { padding: 14px 18px; font-size: 11px; color: var(--text-subtle); }

/* Daraltılmış kenar çubuğu (ikon modu) */
.app-shell.collapsed .sidebar { width: 64px; }
.app-shell.collapsed .brand { justify-content: center; }
.app-shell.collapsed .brand-text { display: none; }
.app-shell.collapsed .lbl, .app-shell.collapsed .chev { display: none; }
.app-shell.collapsed .nav-item, .app-shell.collapsed .nav-group { justify-content: center; padding: 10px; gap: 0; }
.app-shell.collapsed .sidebar-foot { display: none; }

/* Üst çubuk: menü butonu + ⌘K arama */
.iconbtn { border: 0; background: transparent; color: var(--text-muted); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.iconbtn i { font-size: 20px; }
.cmdk { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-muted); height: 34px; padding: 0 10px; border-radius: 10px; cursor: pointer; font-size: 13px; }
.cmdk:hover { background: #e7dfcf; color: var(--text); }
.cmdk kbd { font-size: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; color: var(--text-subtle); }
.cmdk i { font-size: 16px; }

/* Komut paleti (⌘K) */
.palette-overlay { align-items: flex-start; justify-content: center; padding-top: 12vh; }
.palette { width: 560px; max-width: 92vw; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 20px 60px rgba(33,29,24,.22); overflow: hidden; }
.palette-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.palette-head i { font-size: 19px; color: var(--text-muted); }
.palette-head input { flex: 1; border: 0; outline: none; font-size: 15px; background: transparent; color: var(--text); }
.palette-head kbd { font-size: 11px; color: var(--text-subtle); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
.palette-list { max-height: 340px; overflow-y: auto; padding: 6px; }
.palette-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--text); }
.palette-item:hover { background: var(--accent-soft); }
.palette-item i { font-size: 18px; color: var(--text-muted); width: 20px; text-align: center; }
.palette-item .pl-group { margin-left: auto; font-size: 11.5px; color: var(--text-subtle); }
.palette-empty { padding: 18px; text-align: center; color: var(--text-muted); }
.pl-sec { font-size: 11px; font-weight: 500; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px 4px; }

/* e-Fatura önizleme (belge görünümü) */
.ef-preview { width: 800px; max-width: 96vw; max-height: 92vh; background: var(--surface); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ef-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ef-bar .t { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.ef-doc { overflow: auto; padding: 28px 32px; background: #fffdf8; color: #211d18; font-size: 12.5px; line-height: 1.5; }
.ef-doc h1 { font-size: 24px; color: var(--accent); margin: 0; text-align: right; letter-spacing: .5px; font-weight: 500; font-family: var(--serif); }
.ef-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.ef-sender b { font-size: 14.5px; color: #211d18; }
.ef-sender { font-size: 12px; color: #73695b; line-height: 1.55; max-width: 320px; }
.ef-sender div { margin-top: 2px; }
.ef-iban { margin-top: 8px; font-size: 12px; color: #73695b; }
.ef-iban .mono { font-family: var(--mono); }
.ef-cust { border: 1px solid var(--border); background: #faf6ee; border-radius: 10px; padding: 12px 14px; margin: 16px 0; }
.ef-cust .lab { color: var(--text-subtle); font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.ef-meta { margin-left: auto; margin-top: 8px; font-size: 12px; }
.ef-meta td { padding: 1px 0; }
.ef-meta td:first-child { color: var(--text-muted); padding-right: 12px; }
.ef-meta td:last-child { font-family: var(--mono); }
.ef-lines { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 12px; }
.ef-lines th { background: #faf6ee; color: #73695b; border: 1px solid var(--border); padding: 6px 8px; text-align: left; font-weight: 500; }
.ef-lines td { border: 1px solid #efe8da; padding: 6px 8px; }
.ef-tot { width: 320px; margin-left: auto; border-collapse: collapse; font-size: 12.5px; }
.ef-tot td { padding: 4px 6px; }
.ef-tot .lbl { color: #73695b; text-align: right; }
.ef-tot .val { text-align: right; font-family: var(--mono); white-space: nowrap; }
.ef-tot .grand td { font-weight: 500; border-top: 1.5px solid var(--border-strong); font-size: 15.5px; font-family: var(--serif); }
.ef-tot .grand td.val { font-family: var(--mono); font-size: 14px; }
.ef-words { margin-top: 16px; padding: 10px 13px; background: #faf6ee; border: 1px solid #efe8da; border-radius: 8px; font-size: 12.5px; color: #73695b; }
.palette-item .pl-label .mono { font-family: var(--mono); color: var(--accent-strong); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 62px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; padding: 0 26px; position: sticky; top: 0; z-index: 5; }
.topbar .crumb { font-size: 14px; } .topbar .crumb b { font-weight: 600; }
.topbar .grow { flex: 1; }
.topbar .firm { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.content { padding: 26px; max-width: 1180px; width: 100%; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn i { font-size: 17px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
input, select { height: 38px; padding: 0 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 14px; font-family: inherit; width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,82,46,.15); }
.search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 15px; background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-sm); flex: 1; }
.search:focus-within { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,82,46,.12); }
.search input { border: none; height: auto; padding: 0; background: transparent; }
.search input:focus { box-shadow: none; }
.search i { color: var(--text-subtle); font-size: 18px; }
.search .kbd { font-family: var(--mono); font-size: 11px; color: var(--text-subtle); background: var(--surface-2); border-radius: 6px; padding: 2px 7px; }

/* ---------- Metrics (Atölye: alt-çizgili, serif değer) ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.metric { border-radius: 0; padding: 2px 2px 14px; background: transparent; border-bottom: 2px solid var(--border); }
.metric .label { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 7px; }
.metric .label i { font-size: 16px; }
.metric .value { font-size: 30px; font-weight: 500; margin-top: 6px; letter-spacing: -.01em; font-family: var(--serif); }
.metric.tint-warn { border-color: #e6c9a8; } .metric.tint-warn .label, .metric.tint-warn .value { color: var(--warn-fg); }
.metric.tint-danger { border-color: #e6b3a8; } .metric.tint-danger .label, .metric.tint-danger .value { color: var(--accent); }
.metric.tint-ok { border-color: #bcd6c4; } .metric.tint-ok .label, .metric.tint-ok .value { color: var(--ok-fg); }
.metric .value.warn { color: var(--warn-fg); } .metric .value.danger { color: var(--accent); }

/* ---------- Banner / segmented ---------- */
.banner { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; }
.banner i { font-size: 17px; }
.banner.ok { background: var(--ok-bg); color: var(--ok-fg); }
.btn-danger { background: var(--danger-fg); color: #fff; border-color: var(--danger-fg); }
.btn-danger:hover { filter: brightness(.93); }
.confirm-msg { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin: 2px 0 6px; }
.seg { display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px; }
.seg-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px; border: 0; background: transparent; color: var(--text-muted); font-size: 13.5px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all .12s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(33,29,24,.08); }
.seg-btn i { font-size: 17px; }

/* ---------- File picker (Türkçe) ---------- */
.hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-row .fname { font-size: 13px; color: var(--text-muted); }
.lines-tbl { width: 100%; border-collapse: collapse; }
.lines-tbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--text-muted); padding: 4px 6px; }
.lines-tbl td { padding: 3px 6px; }
.lines-tbl input, .lines-tbl select { width: 100%; padding: 7px 8px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 13px; }
.lines-tbl input.t-right { text-align: right; }

/* ---------- Autocomplete (cari arama) ---------- */
.ac-wrap { position: relative; }
.ac-list { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: 0 10px 28px rgba(33,29,24,.14); max-height: 240px; overflow-y: auto; }
.ac-item { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--border); }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover { background: var(--accent-soft); }
.ac-item .sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-title { font-size: 24px; font-weight: 500; font-family: var(--serif); letter-spacing: -.01em; }
.page-title .count { font-size: 13px; color: var(--text-subtle); font-weight: 400; margin-left: 8px; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.filters select { width: auto; min-width: 155px; height: 38px; }
.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); cursor: pointer; user-select: none; }
.toggle input { width: auto; height: auto; accent-color: var(--accent); }

/* ---------- Product card list (Direction A) ---------- */
.plist { display: flex; flex-direction: column; gap: 10px; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.pcard { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; cursor: pointer; transition: border-color .12s, background .12s; }
.pcard:hover { border-color: var(--accent); background: #fdf9f0; }
.pcard .code { font-family: var(--mono); font-size: 12px; font-weight: 500; color: #73695b; width: 96px; flex-shrink: 0; }
.pcard .main { flex: 1; min-width: 0; }
.pcard .pname { font-weight: 600; font-size: 14.5px; }
.pcard .psub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.pcard .psub .oem { font-family: var(--mono); color: var(--accent-strong); }
.pcard .price { font-family: var(--mono); font-size: 13.5px; text-align: right; min-width: 84px; }
.pill { font-size: 12px; font-weight: 500; padding: 0; border-radius: 0; white-space: nowrap; min-width: 78px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; background: transparent; color: var(--text-muted); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pill.ok { color: var(--ok-fg); }
.pill.warn { color: var(--warn-fg); }
.pill.danger { color: var(--accent); }

/* ---------- Table (dashboard) ---------- */
.tbl-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th { text-align: left; font-size: 11.5px; font-weight: 500; color: var(--text-subtle); text-transform: none; letter-spacing: .01em; padding: 11px 16px; border-bottom: 1px solid var(--border); background: transparent; }
table.tbl td { padding: 12px 16px; border-bottom: 1px solid #efe8da; }
table.tbl td.mono, table.tbl .prod-name.mono { color: #73695b; font-weight: 500; font-size: 13px; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr { cursor: pointer; } table.tbl tbody tr:hover { background: var(--surface-2); }
.t-right { text-align: right; }
.prod-name { font-weight: 500; } .prod-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.badge { font-size: 12px; font-weight: 500; padding: 0; border-radius: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); background: transparent; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.ok { color: var(--ok-fg); }
.badge.warn { color: var(--warn-fg); }
.badge.danger { color: var(--accent); }
.chip { font-size: 11px; font-family: var(--mono); background: var(--accent-soft); color: var(--accent-strong); padding: 2px 8px; border-radius: 7px; }

/* ---------- Pagination ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 12.5px; color: var(--text-muted); }
.pager .pages { display: flex; gap: 6px; }

/* ---------- Drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(33,29,24,.38); z-index: 40; display: flex; justify-content: flex-end; }
.drawer { width: 480px; max-width: 94vw; background: var(--surface); height: 100%; overflow-y: auto; }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 12px; position: sticky; top: 0; background: var(--surface); }
.drawer-body { padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.drawer .sec-title { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-subtle); font-weight: 600; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 7px 12px; font-size: 13px; }
.kv .k { color: var(--text-muted); }
.stock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.stock-row:last-child { border-bottom: none; }
.stock-row .sname { font-weight: 500; font-size: 13.5px; }
.stock-row .sraf { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.stock-row .sqty { font-weight: 600; font-size: 15px; }
.code-list { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); padding: 20px; }
.login-card { width: 390px; max-width: 100%; background: var(--surface); border-radius: 18px; padding: 34px; border: 1px solid var(--border); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-brand .logo { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 18px; }
.login-card h1 { font-size: 20px; margin-bottom: 4px; }
.login-card .muted { font-size: 13px; margin-bottom: 22px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-err { background: var(--danger-bg); color: var(--danger-fg); font-size: 13px; padding: 10px 13px; border-radius: var(--radius-sm); }
.login-hint { margin-top: 20px; font-size: 11.5px; color: var(--text-subtle); text-align: center; line-height: 1.6; }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 52px 20px; color: var(--text-subtle); }
.empty i { font-size: 34px; display: block; margin-bottom: 10px; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
.btn .spin, .loading .spin { border-color: var(--accent-soft); border-top-color: var(--accent); }
.loading { display: flex; align-items: center; gap: 10px; color: var(--text-muted); padding: 44px; justify-content: center; }
@keyframes sp { to { transform: rotate(360deg); } }

#blazor-error-ui { color-scheme: light only; background: #fff3cd; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(33,29,24,.42); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--surface); border-radius: 16px; width: 440px; max-width: 100%; padding: 24px; }
.modal h3 { font-size: 16px; margin-bottom: 18px; }
.modal .fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* ---------- Form ---------- */
.form-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.form-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.form-section h3 { font-size: 14px; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.dyn-row { display: flex; gap: 10px; align-items: center; margin-bottom: 9px; }
.dyn-row input, .dyn-row select { height: 36px; }
.icon-btn { width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); }
.icon-btn:hover { background: var(--danger-bg); color: var(--danger-fg); border-color: transparent; }
.add-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-strong); font-size: 13px; font-weight: 500; cursor: pointer; margin-top: 4px; }
.add-link:hover { color: var(--accent); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent-strong); font: inherit; font-weight: 500; cursor: pointer; text-decoration: underline; }
.linkbtn:hover { color: var(--accent); }
.text-subtle { color: var(--text-subtle); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin: 4px 0 30px; }

/* ---------- Deneme rozeti ---------- */
.trial-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-strong); white-space: nowrap; }
.trial-badge.soon { background: var(--warn-bg); color: var(--warn-fg); }
.trial-badge.expired { background: var(--danger-bg); color: var(--danger-fg); }

/* ---------- Kayıt (geniş kart) ---------- */
.login-card.lg { width: 460px; }
.form-group-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-subtle); margin-top: 4px; }
.form-group-label:not(:first-child) { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---------- Landing ---------- */
.lp { max-width: 1040px; margin: 0 auto; padding: 0 24px 40px; }
.lp .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 14px; }
.lp .logo.sm { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }
.lp-nav { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.lp-brand { display: flex; align-items: center; gap: 11px; }
.lp-brand-name { font-weight: 600; font-size: 17px; font-family: var(--serif); }
.lp-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.lp-links a { font-size: 13.5px; color: var(--sidebar-text); }
.lp-links a:hover { color: var(--text); }
.lp-links a.lp-login { color: var(--accent-strong); font-weight: 500; }
.lp-links a.btn { color: #fff; }

.lp-hero { display: flex; gap: 36px; align-items: center; padding: 40px 0 30px; }
.lp-hero-text { flex: 1.05; }
.lp-hero-text h1 { font-size: 38px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; margin: 16px 0 14px; }
.lp-hero-text p { font-size: 15px; line-height: 1.65; color: var(--text-muted); margin: 0 0 22px; max-width: 520px; }
.lp-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 20px; }
.lp-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.lp-cta .btn { height: 44px; padding: 0 20px; font-size: 14px; }
.lp-trust { font-size: 12.5px; color: var(--text-subtle); margin-top: 14px; display: flex; align-items: center; gap: 7px; }

.lp-preview { flex: .95; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; padding: 16px; }
.lp-prev-head { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.lp-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.lp-metrics .m { background: var(--surface-2); border-radius: 11px; padding: 10px 12px; }
.lp-metrics .m .l { font-size: 11px; color: var(--text-muted); }
.lp-metrics .m .v { font-size: 20px; font-weight: 600; margin-top: 2px; }
.lp-metrics .m.warn { background: var(--warn-bg); } .lp-metrics .m.warn .l, .lp-metrics .m.warn .v { color: var(--warn-fg); }
.lp-metrics .m.danger { background: var(--danger-bg); } .lp-metrics .m.danger .l, .lp-metrics .m.danger .v { color: var(--danger-fg); }
.lp-metrics .m.ok { background: var(--ok-bg); } .lp-metrics .m.ok .l, .lp-metrics .m.ok .v { color: var(--ok-fg); }
.lp-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.lp-tbl th { text-align: left; font-weight: 400; color: var(--text-muted); padding: 5px 0; }
.lp-tbl th.r, .lp-tbl td.r { text-align: right; }
.lp-tbl td { border-top: 1px solid var(--border); padding: 6px 0; }
.lp-tbl td.mono { font-family: var(--mono); color: var(--accent-strong); }
.lp-tbl td.warn { color: var(--warn-fg); } .lp-tbl td.danger { color: var(--danger-fg); }

.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 14px 0; }
.lp-feat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.lp-feat .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 11px; }
.lp-feat .t { font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.lp-feat .d { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

.lp-steps { padding: 26px 0 10px; }
.lp-steps-title { font-size: 12px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.lp-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.lp-step { display: flex; gap: 12px; align-items: flex-start; }
.lp-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lp-step .t { font-weight: 600; font-size: 14px; }
.lp-step .d { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

.lp-foot { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--border); margin-top: 32px; padding-top: 18px; font-size: 12px; color: var(--text-subtle); }
.lp-foot .grow { flex: 1; }

@media (max-width: 820px) {
    .sidebar { display: none; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .form-grid, .form-grid.three { grid-template-columns: 1fr; }
    .lp-hero { flex-direction: column; align-items: stretch; }
    .lp-hero-text h1 { font-size: 30px; }
    .lp-links { gap: 14px; }
    .lp-links a:not(.btn) { display: none; }
}
