/* BillAndQuote tasarım sistemi: açık tema, Inter, koyu yeşil vurgu */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-var.woff2") format("woff2"); }

:root {
  --bg: #f6f6f3; --surface: #ffffff; --ink: #0d1a14; --ink-2: #33403a; --muted: #6a756f; --faint: #9aa39e;
  --line: #e4e6e1; --line-2: #eef0ec;
  --brand: #0e5e47; --brand-2: #0b4b39; --brand-soft: #e6f2ec; --lime: #c6f36b;
  --ok: #157f4c; --warn: #b45309; --bad: #c2341d; --info: #2f5fd0;
  --r: 12px; --r-lg: 18px;
  --sh-1: 0 1px 2px rgba(13,26,20,.05);
  --sh-2: 0 1px 2px rgba(13,26,20,.04), 0 8px 24px -8px rgba(13,26,20,.10);
  --sh-3: 0 2px 4px rgba(13,26,20,.04), 0 24px 60px -20px rgba(13,26,20,.22);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.6 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img, svg { display: inline-block; vertical-align: middle; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow-wrap { max-width: 760px; }

h1, h2, h3 { color: var(--ink); letter-spacing: -.025em; line-height: 1.15; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 750; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 700; margin: 0 0 .5rem; }
h3 { font-size: 1.06rem; font-weight: 650; margin: 0 0 .3rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .tiny { font-size: .78rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }
.ic { flex: none; }
code { background: var(--line-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* ---------- Üst çubuk ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(246,246,243,.82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled, .top.solid { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 1.14rem; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand .amp { color: var(--brand); font-weight: 600; margin: 0 1px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.link { color: var(--ink-2); font-size: .93rem; font-weight: 500; padding: 8px 12px; border-radius: 9px; }
.nav a:hover, .nav button.link:hover { background: rgba(13,26,20,.05); color: var(--ink); }
.nav a.on { color: var(--ink); background: rgba(13,26,20,.06); }
.nav .sep { width: 1px; height: 20px; background: var(--line); margin: 0 8px; }
.nav a.btn { color: #fff; padding: 9px 16px; margin-left: 6px; }
.nav a.btn:hover { background: var(--brand-2); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; color: var(--ink); }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; font: inherit; cursor: pointer; }

/* ---------- Düğmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 1px solid var(--brand); padding: 11px 20px; border-radius: 11px; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; transition: background .15s, transform .05s, box-shadow .15s; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 1px 2px rgba(13,26,20,.15); white-space: nowrap; }
.btn:hover { background: var(--brand-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.lg { padding: 14px 24px; font-size: 1rem; border-radius: 13px; }
.btn.sm { padding: 7px 13px; font-size: .86rem; border-radius: 9px; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn.ghost:hover { border-color: #cfd3cd; background: #fbfbfa; color: var(--ink); }
.btn.quiet { background: transparent; color: var(--ink-2); border-color: transparent; box-shadow: none; }
.btn.quiet:hover { background: rgba(13,26,20,.05); color: var(--ink); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: #f0d2cb; box-shadow: none; }
.btn.danger:hover { background: #fdf3f1; color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Pazarlama sayfaları ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.04em; line-height: 1.04; font-weight: 780; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--lime); z-index: -1; border-radius: 3px; opacity: .85; }
.hero .lead { font-size: 1.18rem; margin: 18px 0 26px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--muted); font-size: .88rem; }
.trust span { display: inline-flex; align-items: center; gap: 6px; } .trust .ic { color: var(--brand); }

/* Kahraman alanındaki belge maketi */
.mock { position: relative; }
.mock-doc { background: #fff; border-radius: 16px; box-shadow: var(--sh-3); border: 1px solid var(--line); padding: 26px 26px 22px; transform: rotate(1.2deg); font-size: .78rem; color: var(--ink-2); }
.mock-doc .mh { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.mock-doc .biz { display: flex; gap: 10px; align-items: center; } .mock-doc .biz b { display: block; font-size: .9rem; color: var(--ink); }
.mock-doc .biz i { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); font-style: normal; }
.mock-doc .ttl { text-align: right; } .mock-doc .ttl b { display: block; font-size: 1.15rem; letter-spacing: .06em; color: var(--brand); }
.mock-doc table { width: 100%; border-collapse: collapse; margin: 10px 0 12px; }
.mock-doc th { text-align: left; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 650; padding: 0 0 6px; border-bottom: 1.5px solid var(--ink); }
.mock-doc td { padding: 7px 0; border-bottom: 1px solid var(--line-2); } .mock-doc td.r, .mock-doc th.r { text-align: right; }
.mock-doc .tot { margin-left: auto; width: 58%; } .mock-doc .tot div { display: flex; justify-content: space-between; padding: 2px 0; }
.mock-doc .tot .g { border-top: 1.5px solid var(--ink); margin-top: 6px; padding-top: 7px; font-weight: 750; color: var(--ink); font-size: .95rem; }
.mock-chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-2); padding: 10px 14px; font-size: .82rem; display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.mock-chip small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }
.mock-chip .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.mock-chip.a { left: -26px; bottom: 54px; } .mock-chip.a .dot { background: var(--lime); color: var(--brand-2); }
.mock-chip.b { right: -18px; bottom: -22px; } .mock-chip.b .dot { background: var(--brand-soft); color: var(--brand); }

/* Kartlar ve ızgaralar */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); color: var(--ink); display: block; }
a.card { transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: #cdd8d2; box-shadow: var(--sh-2); transform: translateY(-1px); color: var(--ink); }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }
.trade { display: flex; gap: 14px; align-items: center; padding: 16px 18px; }
.trade .tic, .feat .tic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.trade h3 { margin: 0; font-size: 1rem; } .trade p { font-size: .84rem; }
.trade .go { margin-left: auto; color: var(--faint); transition: transform .15s, color .15s; } a.trade:hover .go { color: var(--brand); transform: translateX(2px); }
.feat .tic { margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.step { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.step::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 99px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }
.band { background: var(--ink); color: #dfe7e2; border-radius: 24px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 6px; } .band p { margin: 0; color: #b5c2bb; }
.band .btn { background: var(--lime); color: var(--ink); border-color: var(--lime); } .band .btn:hover { background: #b8ea55; color: var(--ink); }
.band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); } .band .btn.ghost:hover { background: rgba(255,255,255,.08); }

/* Fiyatlar */
.pricing { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--sh-1); display: flex; flex-direction: column; }
.plan.pro { border: 1.5px solid var(--brand); box-shadow: var(--sh-2); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 30px; background: var(--brand); color: #fff; font-size: .74rem; font-weight: 650; padding: 4px 10px; border-radius: 99px; }
.plan h3 { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan .price { font-size: 2.8rem; font-weight: 780; letter-spacing: -.04em; line-height: 1; margin: 10px 0 4px; } .plan .price small { font-size: 1rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; flex: 1; } .plan li { display: flex; gap: 10px; padding: 6px 0; font-size: .94rem; } .plan li .ic { color: var(--brand); margin-top: 3px; }
.plan .btn { width: 100%; }
.toggle { display: inline-flex; background: var(--line-2); border-radius: 11px; padding: 4px; gap: 2px; margin-bottom: 26px; }
.toggle button { border: 0; background: transparent; font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 16px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.toggle button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.save { font-size: .72rem; background: var(--lime); color: var(--ink); padding: 1px 7px; border-radius: 99px; margin-left: 6px; }

/* SSS */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }

/* Alt bilgi */
.foot { margin-top: 80px; border-top: 1px solid var(--line); background: var(--surface); padding: 52px 0 36px; }
.foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; font-weight: 650; }
.foot a { display: block; color: var(--ink-2); font-size: .92rem; padding: 4px 0; } .foot a:hover { color: var(--brand); }
.foot a.brand { display: inline-flex; color: var(--ink); font-size: 1.14rem; padding: 0; } .foot a.brand:hover { color: var(--ink); }
.foot .legal-line { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .82rem; }

/* ---------- Formlar ---------- */
label.f { display: block; margin: 0 0 14px; font-size: .85rem; font-weight: 550; color: var(--ink-2); }
label.f > input, label.f > select, label.f > textarea { margin-top: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: #d3d7d1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14,94,71,.12); }
textarea { resize: vertical; min-height: 80px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); vertical-align: -3px; margin-right: 6px; }
input[type=color] { padding: 3px; height: 42px; cursor: pointer; }
input[type=file] { padding: 8px; font-size: .88rem; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a756f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.check { display: flex; align-items: center; gap: 2px; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.alert { padding: 12px 16px; border-radius: 12px; margin: 14px 0; font-size: .92rem; border: 1px solid; }
.alert.err { background: #fdf3f1; border-color: #f4d6cf; color: #9a2a17; }
.alert.ok { background: #effaf3; border-color: #cdeedb; color: #0f6b3d; }
.alert.info { background: #f2f6fd; border-color: #dbe5f8; color: #234b9e; }
.alert a { font-weight: 600; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.two { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.three { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }

/* Kimlik sayfaları */
.auth { min-height: calc(100vh - 66px - 200px); display: grid; place-items: center; padding: 48px 0; }
.auth .box { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--sh-2); }
.auth .box .logo { margin-bottom: 18px; }
.auth h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth .btn { width: 100%; margin-top: 6px; }
.auth .alt { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* ---------- Uygulama ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 36px 0 22px; }
.page-head h1 { margin: 0; font-size: 1.85rem; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumbs { font-size: .84rem; color: var(--muted); margin-top: 26px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--ink); }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-1); }
.stat span { display: block; color: var(--muted); font-size: .82rem; font-weight: 550; }
.stat b { display: block; font-size: 1.65rem; letter-spacing: -.03em; font-weight: 720; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat.hl { background: var(--ink); border-color: var(--ink); } .stat.hl span { color: #9fb0a7; } .stat.hl b { color: #fff; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h3 { margin: 0; }
.panel-body { padding: 20px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .tic { width: 52px; height: 52px; border-radius: 15px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h3 { color: var(--ink); }

table.t { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.t th { text-align: left; color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; padding: 11px 20px; background: #fafaf8; border-bottom: 1px solid var(--line); }
table.t td { padding: 13px 20px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .1s; } table.t tbody tr:hover { background: #fbfbf9; }
table.t td.r, table.t th.r { text-align: right; } table.t td.num { font-variant-numeric: tabular-nums; font-weight: 600; }
table.t a.rowlink { color: var(--ink); font-weight: 600; } table.t a.rowlink:hover { color: var(--brand); }
.tablewrap { overflow-x: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 600; background: var(--line-2); color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; opacity: .7; }
.pill.paid, .pill.accepted { background: #e7f6ee; color: var(--ok); }
.pill.sent { background: #eaf0fc; color: var(--info); }
.pill.overdue, .pill.declined { background: #fcebe7; color: var(--bad); }
.pill.void { background: #f1f1ef; color: var(--faint); }
.pill.plain::before { display: none; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.search { position: relative; } .search input { padding-left: 36px; width: 260px; } .search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.tabs { display: inline-flex; gap: 2px; background: var(--line-2); padding: 4px; border-radius: 12px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 9px; color: var(--muted); font-size: .88rem; font-weight: 550; }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); } .tabs a:hover { color: var(--ink); }
.layout-2 { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.settings-sec { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.settings-sec:first-of-type { border-top: 0; }
.settings-sec h3 { margin-bottom: 4px; } .settings-sec .muted { font-size: .88rem; }
.save-bar { position: sticky; bottom: 0; background: rgba(246,246,243,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 14px 0; display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* ---------- Editör ---------- */
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 16px; }
.ed-head h1 { font-size: 1.6rem; margin: 0; }
.ed-bar { position: sticky; top: 66px; z-index: 20; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--sh-2); margin-bottom: 18px; }
.ed-bar .spacer { flex: 1; }
.ed-bar select { width: auto; padding-top: 7px; padding-bottom: 7px; font-size: .88rem; }
#status { font-size: .85rem; color: var(--muted); padding: 0 6px; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 48px 52px; box-shadow: var(--sh-3); position: relative; }
.paper::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--doc-accent, var(--brand)); border-radius: 6px 6px 0 0; }
.paper input, .paper textarea { border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 5px 8px; margin-left: -9px; width: calc(100% + 9px); box-shadow: none; font-size: .92rem; }
.paper textarea { min-height: 0; resize: none; overflow: hidden; }
.paper input:hover, .paper textarea:hover { background: #f8f9f7; border-color: transparent; }
.paper [readonly], .paper [readonly]:hover, .paper [readonly]:focus { background: transparent; border-color: transparent; box-shadow: none; cursor: default; }
.paper input:focus, .paper textarea:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,94,71,.1); }
.p-head { display: grid; grid-template-columns: 1fr 250px; gap: 32px; }
.p-biz input.big { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.p-biz .two { gap: 0 10px; }
.p-meta .doc-title { margin: 0 0 14px; text-align: right; font-size: 1.9rem; font-weight: 780; letter-spacing: .02em; text-transform: uppercase; color: var(--doc-accent, var(--brand)); }
.p-meta label { display: grid; grid-template-columns: 82px 1fr; align-items: center; font-size: .82rem; color: var(--muted); }
.p-meta input { text-align: right; font-weight: 550; }
.lbl { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 30px 0 6px; }
.p-client { max-width: 400px; }
.p-client select { margin: 0 0 6px; font-size: .88rem; }
.p-client input[data-f="client.name"] { font-weight: 650; font-size: 1rem; }
table.lines { width: 100%; border-collapse: collapse; margin-top: 30px; }
table.lines th { text-align: left; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 0 6px 10px; border-bottom: 1.5px solid var(--ink); }
table.lines th.r { text-align: right; }
table.lines td { padding: 4px 2px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.lines td.amt { text-align: right; padding: 10px 8px; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
table.lines input.num { text-align: right; }
table.lines .c-desc { width: 44%; } table.lines .c-q { width: 9%; } table.lines .c-u { width: 9%; } table.lines .c-p { width: 14%; } table.lines .c-t { width: 9%; } table.lines .c-a { width: 14%; } table.lines .c-x { width: 34px; }
table.lines tr .x { opacity: 0; } table.lines tr:hover .x, table.lines tr:focus-within .x { opacity: 1; }
.x { background: none; border: 0; color: var(--faint); cursor: pointer; padding: 7px; border-radius: 7px; line-height: 0; } .x:hover { color: var(--bad); background: #fdf3f1; }
.addline { margin: 12px 0 0; display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px dashed #cfd5cf; color: var(--brand); font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.addline:hover { background: var(--brand-soft); border-color: var(--brand); }
.totals { margin: 22px 0 0 auto; width: 100%; max-width: 320px; font-size: .92rem; }
.totals .tr { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; gap: 10px; color: var(--ink-2); }
.totals .tr span:last-child { font-variant-numeric: tabular-nums; }
.totals .tr input { text-align: right; width: 96px; margin: 0; padding: 4px 8px; border: 1px solid var(--line); background: #fff; }
.totals .pair { display: flex; gap: 6px; align-items: center; color: var(--muted); } .totals .pair input { width: 68px; }
.totals .grand { border-top: 1.5px solid var(--ink); margin-top: 8px; padding-top: 12px; font-size: 1.2rem; font-weight: 780; color: var(--ink); letter-spacing: -.02em; }
.totals .grand span:last-child { color: var(--doc-accent, var(--brand)); }
.totals .bal { background: var(--brand-soft); border-radius: 9px; padding: 8px 10px; margin-top: 6px; color: var(--brand-2); font-weight: 700; }
.p-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 18px; }
.p-notes > div:first-child { grid-column: 1 / -1; }
.p-notes textarea { min-height: 44px; color: var(--ink-2); }
.p-foot { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: .72rem; color: var(--faint); }
.side { position: sticky; top: 140px; display: grid; gap: 14px; }
.side .card { padding: 18px; }
.side h4 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; }
.side label { display: block; font-size: .82rem; font-weight: 550; color: var(--ink-2); margin-bottom: 12px; }
.side label select, .side label input { margin-top: 5px; padding: 8px 10px; font-size: .9rem; }
.side .pro-lock { opacity: .55; }
.tag { font-size: .66rem; background: var(--lime); color: var(--ink); border-radius: 99px; padding: 1px 7px; margin-left: 4px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.side .totalbox b { display: block; font-size: 1.6rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: .9rem; z-index: 60; box-shadow: var(--sh-3); }

/* İçerik sayfaları */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.prose ul { padding-left: 1.2rem; } .prose li { margin: .35rem 0; }
.prose p, .prose li { color: var(--ink-2); }
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.tips li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 46px; position: relative; color: var(--ink-2); font-size: .94rem; }
.tips li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 18px; height: 18px; border-radius: 99px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230e5e47' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat; }
.page-intro { padding: 28px 0 8px; max-width: 760px; }

/* Herkese açık belge */
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 44px; margin: 0 0 20px; box-shadow: var(--sh-3); position: relative; }
.sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--brand); border-radius: 6px 6px 0 0; }
.sheet .head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sheet h2 { margin: 0 0 6px; text-transform: uppercase; color: var(--brand); letter-spacing: .02em; }
.sheet table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .93rem; }
.sheet th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); border-bottom: 1.5px solid var(--ink); padding: 0 4px 10px; }
.sheet td { padding: 10px 4px; border-bottom: 1px solid var(--line-2); } .sheet .r { text-align: right; }
.sheet .tot { margin-left: auto; max-width: 300px; } .sheet .tot div { display: flex; justify-content: space-between; padding: 4px 0; }
.sheet .tot .g { border-top: 1.5px solid var(--ink); font-weight: 780; font-size: 1.2rem; margin-top: 6px; padding-top: 10px; }
.sheet .sm { color: var(--muted); font-size: .88rem; }

/* ---------- Duyarlı ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; }
  .mock { max-width: 520px; margin: 0 auto; width: 100%; }
  .ed-grid { grid-template-columns: 1fr; } .side { position: static; grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .layout-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 16px; box-shadow: var(--sh-2); }
  .nav.open { display: flex; } .nav .sep { display: none; } .nav a.btn { margin: 8px 0 0; }
  .grid.g3, .steps, .tips, .three { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .band { padding: 32px 24px; }
  .mock-chip.a { left: -6px; } .mock-chip.b { right: -6px; }
  .paper { padding: 28px 20px; } .p-head { grid-template-columns: 1fr; gap: 16px; } .p-meta .doc-title { text-align: left; }
  .p-notes { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr; }
  .ed-bar { top: 66px; }
  .settings-sec { grid-template-columns: 1fr; gap: 12px; }
  .search input { width: 100%; }
  table.lines thead { display: none; }
  table.lines, table.lines tbody, table.lines tr, table.lines td { display: block; width: 100% !important; }
  table.lines tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); position: relative; }
  table.lines td { border: 0; padding: 0; } table.lines td.c-desc { grid-column: 1 / -1; padding-right: 34px; }
  table.lines td.amt { text-align: left; padding: 5px 0; }
  table.lines td[data-l]::before { content: attr(data-l); display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
  table.lines td.c-desc::before { display: none; }
  table.lines td.c-x { position: absolute; right: 0; top: 8px; width: auto !important; } table.lines tr .x { opacity: 1; }
  .foot .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .page-head { margin-top: 24px; }
  .hide-sm { display: none; }
  table.t th, table.t td { padding: 12px 14px; }
  table.t a.rowlink, table.t td.num { white-space: nowrap; }
  .toolbar .search, .toolbar .search input { width: 100%; }
}
.gbtn { width: 100%; margin: 6px 0 4px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .8rem; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; z-index: 70; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 14px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .9rem; }
.consent p { margin: 0; color: var(--ink-2); flex: 1 1 260px; }

/* Turnstile (yalnız etkileşim gerekince görünür) */
.ts{margin:0 0 4px}.ts iframe{margin-bottom:10px}

/* ---- Yönetim paneli (önek bq-; "ad-" önekini reklam engelleyiciler gizler) ---- */
.wrap.wide { max-width: 1400px; }
.bq-nav { display: flex; gap: 2px; background: var(--line-2); padding: 4px; border-radius: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.bq-nav a { padding: 7px 13px; border-radius: 9px; color: var(--muted); font-size: .87rem; font-weight: 560; }
.bq-nav a.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); } .bq-nav a:hover { color: var(--ink); }
.bq-nav .n { background: var(--bad); color: #fff; border-radius: 99px; font-size: .68rem; padding: 1px 6px; margin-left: 4px; }
.bq-range { display: inline-flex; gap: 2px; background: var(--line-2); padding: 3px; border-radius: 10px; }
.bq-range a { padding: 5px 11px; border-radius: 8px; color: var(--muted); font-size: .82rem; font-weight: 600; } .bq-range a.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.bq-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 22px; }
.bq-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--sh-1); }
.bq-kpi span { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.bq-kpi b { display: block; font-size: 1.5rem; letter-spacing: -.03em; font-weight: 720; margin-top: 2px; font-variant-numeric: tabular-nums; }
.bq-kpi small { color: var(--faint); font-size: .78rem; }
.bq-g2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.bq-g3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.bq-sec { margin-bottom: 16px; }
.bq-sec .panel-head h3 { font-size: 1rem; }
.bq-chart { width: 100%; height: 220px; display: block; }
.bq-chart .g { stroke: var(--line-2); stroke-width: 1; }
.bq-chart .a { fill: #b9dccb; } .bq-chart .a:hover { fill: var(--brand); }
.bq-chart .b { fill: none; stroke: #e0821b; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.bq-chart .bd { fill: #e0821b; }
.bq-chart text { font-size: 11px; fill: var(--faint); }
.bq-chart .ya { text-anchor: end; } .bq-chart .yb { text-anchor: start; fill: #c4772a; } .bq-chart .xa { text-anchor: middle; }
.bq-legend { display: flex; gap: 18px; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.bq-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bq-legend .la::before { background: #b9dccb; } .bq-legend .lb::before { background: #e0821b; border-radius: 99px; }
.bq-hbar { display: inline-block; width: 90px; height: 6px; background: var(--line-2); border-radius: 9px; overflow: hidden; vertical-align: middle; }
.bq-hbar i { display: block; height: 100%; background: var(--brand); border-radius: 9px; }
table.t.bq-tight td, table.t.bq-tight th { padding: 8px 14px; }
table.t.bq-tight td { font-size: .88rem; }
.bq-trunc { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.bq-kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: .9rem; }
.bq-kv dt { color: var(--muted); } .bq-kv dd { margin: 0; word-break: break-word; }
.bq-actions { display: flex; flex-wrap: wrap; gap: 8px; } .bq-actions form { margin: 0; }
.bq-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.bq-filter input, .bq-filter select { width: auto; padding: 7px 10px; font-size: .88rem; }
.bq-warn { background: #fff8eb; border: 1px solid #f3dfb5; color: #8a4b08; border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; font-size: .9rem; }
.bq-flag { font-size: 1.05rem; margin-right: 4px; }
.bq-pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: .88rem; }
.bq-code { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; word-break: break-all; background: var(--line-2); padding: 8px 10px; border-radius: 8px; display: block; }
@media (max-width: 980px) { .bq-g2, .bq-g3 { grid-template-columns: 1fr; } .bq-kv { grid-template-columns: 1fr; } .bq-kv dt { margin-top: 6px; } }
.bq-flagimg { display: inline-block; width: 20px; height: 15px; border-radius: 2px; vertical-align: -2px; margin-right: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); object-fit: cover; }
.bq-flagimg.none { background: var(--line-2); }
.bq-kpis { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
