/* Turuncu Fatura · elle yazılır, derleme yok. Renkler yalnızca değişkenlerle.
   --brand dekor ve vurgu içindir; metin / düğme üstünde okunurluk için --brand-strong (beyaz üzerinde ≥ 4.5:1). */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
    --brand: #ff8800;
    --brand-strong: #b35c00;   /* açık zeminde turuncu metin (beyaz üstünde ≥ 4.5:1) */
    --brand-deep: #8a4700;
    --brand-hover: color-mix(in srgb, var(--brand) 88%, #000000);
    --brand-ink: #222222;      /* turuncu düğme üstündeki koyu yazı (≥ 6:1) */
    --ink: #222222;
    --on-ink: #ffffff;         /* koyu yüzey üstündeki yazı */
    --side-bg: #ff8800;        /* yan menü + panelin çevresi */
    --side-ink: #222222;       /* yan menü yazısı */
    --logo-h: 36px;
    --brand-soft: #fff1de;
    --brand-ring: color-mix(in srgb, var(--brand) 28%, transparent);

    --bg: #f6f6f4;
    --surface: #ffffff;
    --text: #1f1a17;
    --muted: #6a625c;
    --line: #e8e2dd;

    --ok: #166534;
    --ok-bg: #e7f6ec;
    --bad: #b42318;
    --bad-bg: #fdeceb;
    --warn: #92400e;
    --warn-bg: #fff4dc;
    --info: #1d4ed8;
    --info-bg: #e8f0ff;
    --neutral-bg: #efebe7;

    /* Giriş ekranı marka paneli */
    --panel-top: color-mix(in srgb, var(--brand) 12%, #ffffff);
    --panel-bottom: color-mix(in srgb, var(--brand) 30%, #ffffff);
    --panel-grid: rgb(255 255 255 / 0.5);
    --sq-dark: var(--ink);
    --sq-hot: var(--brand);
    --sq-soft: color-mix(in srgb, var(--brand) 45%, #ffffff);
    --sq-pale: #fff6ef;

    --radius: 14px;
    --shadow: 0 1px 2px rgb(31 26 23 / 0.05), 0 6px 20px rgb(31 26 23 / 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.5 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--brand-strong); }
h1, h2, h3, p { margin-top: 0; }

.icon { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.inline { display: inline; }
.mt { margin-top: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* ==== Form bileşenleri ==== */
.field { margin-bottom: 18px; }
.field label, .field > summary { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 16px;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.input-code { text-align: center; font-size: 24px; letter-spacing: 0.4em; font-weight: 600; }
.narrow { max-width: 380px; }
.field-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: 13px; color: var(--bad); }
.check { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-strong); }
details summary { cursor: pointer; font-size: 14px; color: var(--muted); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 20px; border: 0; border-radius: 12px;
    background: var(--brand); color: var(--brand-ink);
    font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brand-hover); }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 50px; font-size: 15px; font-weight: 500; border-radius: 12px; margin-top: 4px; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: #cfc6bf; }
.btn-ghost { font-weight: 500; }
.link-btn { background: none; border: 0; padding: 4px; color: var(--brand-strong); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }

.flash { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: 0 0 20px; }
.flash .icon { width: 18px; height: 18px; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.bad { background: var(--bad-bg); color: var(--bad); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.neutral { background: var(--neutral-bg); color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 24px 20px; margin-bottom: 16px; }
.card-title { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.page-title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 20px; }
.codes { columns: 2; padding-left: 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.qr { display: block; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #ffffff; }
.secret { word-break: break-all; }

/* Marka işareti */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.logo b { color: var(--brand-strong); font-weight: 600; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--ink); }
.logo-mark .icon { width: 18px; height: 18px; }

/* ==== Giriş / 2FA / şifre ekranları ==== */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--surface); }
.auth-brand { display: none; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 20px 24px; min-height: 100vh; }
.auth-panel { width: 100%; max-width: 440px; }
.auth-mobile-logo { display: flex; justify-content: center; margin-bottom: 36px; }
.auth-head { margin-bottom: 32px; }
.auth-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 6px; }
.auth-head p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 18px; }
.auth-icon .icon { width: 26px; height: 26px; }
.auth-form .field > label, .auth-form .field > summary { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.auth-form .field > label.mt { margin-top: 12px; }
.auth-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 22px; }
.auth-help { margin: 24px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.auth-out { display: flex; justify-content: center; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 24px; }
.auth-panel .flash { margin-bottom: 20px; }

/* İkonlu alan: sol hücrede ikon, ayırıcı çizgi, sağda isteğe bağlı göster / gizle */
.input-icon { display: flex; align-items: stretch; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.input-icon:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.input-icon > .icon { box-sizing: content-box; width: 18px; height: 18px; padding: 0 4px 0 16px; align-self: center; color: #a39a93; }
.input-icon:focus-within > .icon { color: var(--brand-strong); }
.input-icon .input { flex: 1; min-width: 0; min-height: 48px; border: 0; border-radius: 0; box-shadow: none; padding: 0 12px; }
.reveal { flex: none; display: grid; place-items: center; width: 48px; border: 0; background: none; color: #a39a93; cursor: pointer; }
.reveal:hover, .reveal.is-on { color: var(--brand-strong); }
.reveal .icon { width: 18px; height: 18px; }
/* Tarayıcı otomatik doldurmasında mavi zemin olmasın */
.input:-webkit-autofill, .input:-webkit-autofill:hover, .input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
    transition: background-color 9999s ease-out 0s;
}

/* ==== Uygulama kabuğu (giriş sonrası): koyu yan menü + üstte / altta boşluklu, yuvarlak köşeli açık panel ==== */
.admin.has-app { --side-w: 264px; background: var(--side-bg); }
.app { min-height: 100vh; }
.sidebar { background: var(--side-bg); color: var(--side-ink); padding: 12px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 20; }
.side-logo { color: var(--side-ink); }
.side-logo b { font-weight: 600; color: inherit; }
.sidebar .logo-mark { background: var(--ink); color: var(--brand); box-shadow: none; }
.brand-logo { display: block; height: var(--logo-h); width: auto; max-width: 220px; object-fit: contain; }
.nav-check { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--side-ink) 35%, transparent); border-radius: 12px; font-size: 14px; color: var(--side-ink); cursor: pointer; }
.nav-check:focus-visible ~ .nav-toggle { outline: 3px solid var(--side-ink); outline-offset: 2px; }
.side-nav, .side-foot { display: none; grid-column: 1 / -1; }
.nav-check:checked ~ .side-nav, .nav-check:checked ~ .side-foot { display: block; }
.side-nav { padding: 8px 0 4px; }
.side-title { margin: 20px 14px 8px; font-size: 13px; color: color-mix(in srgb, var(--side-ink) 80%, transparent); }
.side-item { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 14px; color: var(--side-ink); text-decoration: none; font-size: 15px; font-weight: 400; }
.side-item .icon { width: 20px; height: 20px; color: color-mix(in srgb, var(--side-ink) 80%, transparent); }
.side-item:hover { background: color-mix(in srgb, var(--side-ink) 10%, transparent); }
.side-item.is-active { background: #ffffff; color: #1f1a17; font-weight: 500; }
.side-item.is-active .icon { color: var(--brand-strong); }
.side-sub { padding: 8px 14px 8px 48px; font-size: 14px; justify-content: space-between; }
.side-count { min-width: 22px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; text-align: center; }
.side-foot { padding-top: 12px; }
.env-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 4px 12px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--side-ink) 12%, transparent); font-size: 12px; color: var(--side-ink); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--side-ink); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: var(--ink); color: var(--on-ink); border: 1px solid color-mix(in srgb, var(--on-ink) 14%, transparent); }
.avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 15px; }
.user-card-name { flex: 1; min-width: 0; line-height: 1.3; }
.user-card-name b { display: block; font-size: 14px; font-weight: 500; color: var(--on-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card-name small { font-size: 12px; color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
.icon-link { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: color-mix(in srgb, var(--on-ink) 78%, transparent); cursor: pointer; }
.icon-link:hover { background: color-mix(in srgb, var(--on-ink) 14%, transparent); color: var(--on-ink); }
.icon-link .icon { width: 18px; height: 18px; }
.user-card form { margin: 0; }

/* Panel: sağ kenara yapışık, sağ köşeler düz; mobilde üstü yuvarlak */
.app-body { min-width: 0; padding: 0; }
.admin-main { background: var(--bg); border-radius: 26px 26px 0 0; padding: 24px 16px 48px; min-height: calc(100vh - 64px); }
.admin-main > * { max-width: 1160px; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.page-head .page-title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 14px; border-radius: 12px; }
.btn-danger { background: var(--surface); color: var(--bad); border: 1px solid #f1c9c5; }
.btn-danger:hover { background: var(--bad-bg); }
.btn .icon { width: 18px; height: 18px; }
.crumb { margin: 0 0 6px; font-size: 13px; }
.crumb a { color: var(--muted); text-decoration: none; }
.card { border-radius: 22px; box-shadow: none; }

.stats { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 22px; }
.stat { position: relative; overflow: hidden; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; color: inherit; text-decoration: none; }
a.stat:hover { border-color: #d3d3cf; }
.stat b { position: relative; z-index: 1; display: block; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.stat span { position: relative; z-index: 1; font-size: 14px; color: var(--muted); }
.stat.is-feature { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.stat.is-feature span { color: #bdbdbd; }
.stat.is-feature::after { content: ""; position: absolute; right: -64px; top: -34px; width: 190px; height: 190px; border-radius: 50%; border: 26px solid var(--brand); }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--brand); margin-bottom: 8px; }
.empty p { margin: 0 0 4px; }

/* Süzgeç çipleri, arama */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; text-decoration: none; }
.chip b { font-weight: 500; color: var(--text); }
.chip:hover { border-color: #cfcfca; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: color-mix(in srgb, var(--on-ink) 80%, transparent); }
.chip.is-active b { color: var(--on-ink); }
.search { display: flex; gap: 8px; margin-bottom: 16px; }
.search .input { min-height: 44px; border-radius: 14px; }
.search .btn { min-height: 44px; }

/* Tablo: başlık satırı yumuşak şerit */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 8px 12px 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 12px 14px; text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); background: #f4f4f1; white-space: nowrap; }
.table th:first-child { border-radius: 12px 0 0 12px; }
.table th:last-child { border-radius: 0 12px 12px 0; }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfbf9; }
.table .right { text-align: right; white-space: nowrap; }
@media (max-width: 719px) { .hide-sm { display: none; } .table th, .table td { padding: 12px 10px; } }
.table a { color: var(--text); font-weight: 500; text-decoration: none; }
.table a:hover { color: var(--brand-strong); }
.table small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Ayrıntı */
.two-col { display: grid; grid-template-columns: 1fr; gap: 16px; }
.two-col > .card { margin-bottom: 0; }
.kv { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); font-size: 13px; margin-top: 12px; }
.kv dt:first-child { margin-top: 0; }
.kv dd { margin: 2px 0 0; word-break: break-word; }
.totals { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-size: 18px; font-weight: 600; padding-top: 8px; border-top: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { position: relative; padding-left: 18px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline small { display: block; color: var(--muted); font-size: 12px; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--neutral-bg); font-size: 14px; margin: 0 0 16px; }
.callout .icon { margin-top: 1px; color: var(--muted); }
.callout.warn { background: var(--warn-bg); }
.callout.warn .icon { color: var(--warn); }
.callout p { margin: 0; }
.code { padding: 1px 8px; border-radius: 6px; background: var(--neutral-bg); color: var(--muted); font-size: 12px; font-weight: 500; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }

@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } .kv { grid-template-columns: 200px 1fr; } .kv dt { margin-top: 0; padding: 10px 0; border-top: 1px solid var(--line); } .kv dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); } .kv dt:first-of-type, .kv dt:first-of-type + dd { border-top: 0; } }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
    .admin.has-app .app { display: grid; grid-template-columns: var(--side-w) 1fr; }
    .sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: stretch; padding: 26px 16px 16px; overflow-y: auto; }
    .side-logo { margin: 0 8px 18px; }
    .nav-toggle { display: none; }
    .side-nav { display: block; flex: 1; padding: 0; }
    .side-foot { display: block; padding-top: 12px; }
    .app-body { padding: 14px 0 14px 0; }
    .admin-main { min-height: calc(100vh - 28px); border-radius: 30px 0 0 30px; padding: 34px 40px 56px; }
}

/* Görünüm ayarları */
.logo-slots { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 8px; }
.logo-slot h3 { margin: 0 0 8px; font-size: 14px; font-weight: 500; }
.logo-preview { display: grid; place-items: center; min-height: 96px; margin-bottom: 12px; padding: 16px; border-radius: 16px; border: 1px dashed var(--line); background: #ffffff; }
.logo-preview.is-side { background: var(--side-bg); border-style: solid; border-color: transparent; color: var(--side-ink); }
.logo-preview.is-side .muted { color: var(--side-ink); opacity: 0.8; }
.color-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 8px; }
.color-field { display: flex; gap: 14px; align-items: flex-start; }
.color-field input[type="color"] { flex: none; width: 56px; height: 56px; padding: 3px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; cursor: pointer; }
.color-field label { display: block; font-size: 14px; font-weight: 500; }
.color-field .field-hint { margin: 2px 0 0; }
@media (min-width: 720px) { .logo-slots, .color-grid { grid-template-columns: 1fr 1fr; } }

/* Entegrasyonlar */
.section-title { font-size: 15px; font-weight: 600; margin: 28px 0 4px; }
.tile { display: flex; align-items: center; gap: 14px; margin: 12px 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; }
.tile:hover { border-color: #d3c8bf; }
.tile-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); flex: none; }
.tile-body { flex: 1; min-width: 0; }
.tile-body b { display: block; font-weight: 500; }
.tile-body small { color: var(--muted); font-size: 13px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.card-head .card-title { margin: 0; }
.card-soon { opacity: 0.7; }
.narrow-card { max-width: 520px; }

/* Fatura formu */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.form-grid .field { margin-bottom: 14px; }
.lines { display: grid; gap: 12px; margin-bottom: 12px; }
.line-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 14px 14px 4px; border: 1px solid var(--line); border-radius: 14px; background: #fcfaf8; position: relative; }
.line-row .field { margin-bottom: 10px; }
.line-row .field label { font-size: 12px; color: var(--muted); }
.line-name { grid-column: 1 / -1; }
.line-total { display: flex; flex-direction: column; justify-content: center; margin-bottom: 10px; font-size: 14px; }
.line-total span { font-size: 12px; color: var(--muted); }
.icon-btn { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--neutral-bg); color: var(--bad); }
.line-name { padding-right: 36px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 8px; }
textarea.input { min-height: 84px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8a8179 50%), linear-gradient(135deg, #8a8179 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
@media (min-width: 720px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid .span-2 { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
    .line-row { grid-template-columns: minmax(180px, 2.4fr) 80px 100px 1fr 1fr 90px 1.1fr 34px; align-items: start; padding: 14px 14px 4px; }
    .line-name { grid-column: auto; padding-right: 0; }
    .line-total { padding-top: 24px; margin-bottom: 0; }
    .icon-btn { position: static; margin-top: 22px; }
}

/* ==== Masaüstü: solda marka paneli, sağda form ==== */
@media (min-width: 960px) {
    .auth-split { grid-template-columns: minmax(500px, 1.15fr) minmax(440px, 1fr); padding: 16px; gap: 16px; }
    .auth-mobile-logo { display: none; }
    .auth-main { min-height: calc(100vh - 32px); padding: 40px 56px 24px; align-items: stretch; }
    .auth-panel { max-width: 520px; margin: auto; }
    .auth-head h1 { font-size: 32px; }

    .auth-brand {
        position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 32px;
        --u: clamp(40px, 4vw, 76px);
        padding: 48px 56px; border-radius: 28px; color: var(--text);
        background: linear-gradient(160deg, var(--panel-top), var(--panel-bottom));
    }
    /* ince ızgara */
    .auth-brand::before {
        content: ""; position: absolute; inset: 0; pointer-events: none;
        background-image: linear-gradient(var(--panel-grid) 1px, transparent 1px), linear-gradient(90deg, var(--panel-grid) 1px, transparent 1px);
        background-size: 96px 96px;
    }
    .auth-brand > * { position: relative; z-index: 1; }

    /* Süs kareleri: panel yüzdeleriyle, metnin bulunduğu sol %64'ün dışında */
    .auth-sq { position: absolute; z-index: 0; }
    .auth-sq-1 { top: 7%; right: 22%; width: var(--u); height: var(--u); background: var(--sq-soft); opacity: 0.55; }
    .auth-sq-2 { top: 17%; right: 6%; width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.5); background: var(--sq-dark); opacity: 0.92; }
    .auth-sq-3 { top: 46%; right: 5%; width: var(--u); height: var(--u); background: var(--sq-hot); opacity: 0.9; }

    .auth-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-strong); }
    .auth-brand-title { margin: 0 0 18px; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; max-width: 80%; }
    .auth-brand-text { margin: 0; font-size: 16px; line-height: 1.6; color: color-mix(in srgb, var(--text) 62%, transparent); max-width: 64%; }

    /* Örnek fatura kartı (süs; gerçek veri değil) */
    .auth-demo { position: relative; margin-top: auto; max-width: 500px; padding-bottom: 12px; }
    .auth-demo::before { content: ""; position: absolute; top: -12px; bottom: 14px; left: 14px; right: -14px; border-radius: 20px; background: rgb(255 255 255 / 0.5); transform: rotate(1.2deg); }
    .inv-card { position: relative; z-index: 1; border-radius: 20px; background: var(--surface); box-shadow: 0 10px 28px rgb(120 53 15 / 0.08); overflow: hidden; }
    .inv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 26px 6px; }
    .inv-type { padding: 3px 10px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-strong); font-size: 13px; font-weight: 500; }
    .inv-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 500; }
    .inv-state .icon { width: 15px; height: 15px; }
    .inv-rows { margin: 0; padding: 6px 26px 16px; }
    .inv-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
    .inv-rows dt { color: var(--muted); }
    .inv-rows dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
    .inv-total { padding: 14px 26px 18px; background: var(--brand-soft); }
    .inv-total small { display: block; font-size: 13px; font-weight: 500; color: var(--brand-deep); }
    .inv-total b { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
}

@media (max-width: 959px) {
    .auth-split { background: var(--bg); }
}
