
/*
 * Palet: Stripe esintili. Lacivert mürekkep, "blurple" vurgu, gün batımı gradyanı.
 */
:root {
  --bg: #f5f5f4;
  --surface: #ffffff;
  --surface-2: #fafaf9;
  --ink: #1c1c1e;
  --ink-2: #1c1c1e;
  --text: #3f3f43;
  --muted: #6b6b70;
  --line: #e4e4e2;
  --line-2: #eeeeec;
  --accent: #1c1c1e;
  --accent-2: #000000;
  --accent-soft: #ededeb;
  --accent-ring: rgba(28, 28, 30, .16);
  --night: #1c1c1e;
  --night-2: #2c2c2e;
  --grad: #1c1c1e;
  --grad-btn: #1c1c1e;
  --grad-cool: #1c1c1e;
  --ok: #1f7a46; --ok-bg: #e3f3e9; --ok-ico: #1f8a4c;
  --wait: #8a5a00; --wait-bg: #f7eed8;
  --err: #b42318; --err-bg: #fbe9e7;
  --info: #3f3f43; --info-bg: #efefed;
  --r-sm: 8px; --r: 10px; --r-lg: 14px; --r-xl: 18px;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .04);
  --sh-2: 0 2px 8px rgba(0, 0, 0, .06);
  --sh-3: 0 12px 40px rgba(0, 0, 0, .10);
  --input-sh: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; letter-spacing: -.015em; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
pre { background: var(--night); color: #d6e4f5; padding: 18px; border-radius: var(--r-lg); overflow: auto; font-size: 13px; line-height: 1.65; margin: 0; }
pre code { font-size: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; color: var(--ink); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ico { width: 16px; height: 16px; flex: none; }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }

/* ================= Admin shell ================= */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); border-right: 1px solid var(--line-2); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 24px; color: var(--ink); font-weight: 600; font-size: 16px; letter-spacing: -.01em; line-height: 1.2; }
.sb-brand:hover { color: var(--ink); }
.sb-brand img { width: 30px; height: 30px; }
.sb-brand small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.logo-box { display: block; }
.logo-box img { display: block; height: 30px; width: auto; }
.sb-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.sb-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r); color: var(--ink-2); font-weight: 500; font-size: 14px; transition: background .12s, color .12s; }
.sb-nav a .ico { color: #8792a2; }
.sb-nav a:hover { background: var(--surface-2); color: var(--ink); }
.sb-nav a.on { color: var(--ink); background: #e8e8ed; font-weight: 600; box-shadow: none; }
.sb-nav a.on .ico { color: var(--ink); }
.sb-nav a.on .ico { color: var(--ink); }
.sb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 14px 8px 0; }
.env { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.env i { width: 8px; height: 8px; border-radius: 50%; background: #f5a623; box-shadow: 0 0 0 3px rgba(245, 166, 35, .18); }
.env-live i { background: var(--ok-ico); box-shadow: 0 0 0 3px rgba(30, 166, 114, .18); }
.sb-out { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: var(--r); display: grid; }
.sb-out:hover { color: var(--ink); background: var(--surface-2); }
.content { padding: 32px 40px 80px; max-width: 1200px; width: 100%; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; font-size: 13px; color: var(--muted); margin-bottom: 10px; font-weight: 500; }

/* ================= Cards ================= */
.card { background: var(--surface); border-radius: var(--r-xl); padding: 24px 26px; margin-bottom: 20px; box-shadow: none; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .card-head { padding: 18px 24px 14px; margin: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head .card-title { margin: 0; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.text-link { font-size: 13px; font-weight: 600; }
.stack > .card:last-child { margin-bottom: 0; }

/* ================= Buttons ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: var(--r); padding: 9px 14px; font: 600 14px/1.25 inherit; font-family: inherit; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: none; border-radius: 980px; padding: 9px 18px; font-weight: 500; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--accent); box-shadow: 0 0 0 1px var(--accent); border-radius: 980px; padding: 9px 18px; font-weight: 500; }
.btn-ghost:hover { color: #fff; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.btn-white { background: #fff; color: #1d1d1f; border-radius: 980px; box-shadow: var(--sh-1); }
.btn-white:hover { background: var(--accent-soft); color: var(--accent-2); }
.btn-danger { background: var(--surface); color: var(--err); box-shadow: 0 0 0 1px #f8c9d8, var(--sh-1); }
.btn-danger:hover { background: var(--err-bg); color: var(--err); }
.btn-pay { background: var(--accent); color: #fff; font-size: 17px; font-weight: 500; padding: 14px 22px; border-radius: 12px; box-shadow: none; }
.btn-pay:hover { background: var(--accent-2); color: #fff; }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font: 500 13px inherit; font-family: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; margin-top: 10px; }
.linkbtn:hover { color: var(--ink); }
.icon-btn { border: 0; background: none; color: #a3acb9; cursor: pointer; display: grid; place-items: center; padding: 6px; border-radius: var(--r-sm); }
.icon-btn:hover { color: var(--err); background: var(--err-bg); }

/* ================= Forms ================= */
label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 16px; }
label small { display: block; font-weight: 400; margin-top: 4px; }
.req { color: var(--err); font-style: normal; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 9px 12px; border: 0; border-radius: var(--r); background: #fff; color: var(--ink); font: 400 15px/1.4 inherit; font-family: inherit; box-shadow: 0 0 0 1px #d6d6d3; transition: box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #a3acb9; }
input:hover, select:hover, textarea:hover { box-shadow: 0 0 0 1px #8e8e93; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); }
input[readonly] { background: var(--surface-2); color: var(--text); }
input.invalid { box-shadow: 0 0 0 1px #df1b41, 0 0 0 4px rgba(223, 27, 65, .15); color: #df1b41; }
input[type=checkbox] { display: inline; width: auto; margin: 0 8px 0 0; accent-color: var(--accent); box-shadow: none; }
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='%236b7c93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='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 { margin: 10px 0 0; font-weight: 500; display: flex; align-items: center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .card { margin-bottom: 20px; }
.step { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.money-input { position: relative; display: block; margin-top: 6px; }
.money-input input { margin: 0; padding-right: 32px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.money-input em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 600; pointer-events: none; }
.money-input.big input { font-size: 22px; padding: 11px 36px 11px 14px; }
.form-foot { display: flex; justify-content: flex-end; }

/* ================= Alerts / badges ================= */
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r); padding: 12px 14px; margin-bottom: 20px; font-size: 14px; }
.alert .ico { margin-top: 2px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.alert form { display: block; }
.alert-ok { background: #e7f8f0; color: var(--ok); }
.alert-err { background: #fff0f5; color: var(--err); box-shadow: inset 0 0 0 1px #ffd1e1; }
.alert-warn { background: #fff8e1; color: var(--wait); box-shadow: inset 0 0 0 1px #fbe3a1; }
.alert-info { background: var(--info-bg); color: var(--info); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; vertical-align: middle; line-height: 1.6; white-space: nowrap; }
.badge i { display: none; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-wait { background: var(--wait-bg); color: var(--wait); }
.badge-muted { background: #ebeef1; color: #545969; }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-test { background: #f7eed8; color: #8a5a00; font-size: 12px; }

/* ================= Dashboard ================= */
.hero { border-radius: var(--r-xl); padding: 28px 30px; margin-bottom: 20px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: #1d1d1f; }
.hero-text { max-width: 520px; }
.hero h2 { color: #fff; font-size: 22px; font-weight: 700; margin: 12px 0 6px; }
.hero p { color: #a1a1a6; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #a1a1a6; }
.eyebrow .ico { width: 13px; height: 13px; }
.hero-form { display: flex; align-items: flex-end; gap: 10px; }
.hero-form label { color: #a1a1a6; margin: 0; width: 140px; }
.hero-form input { background: rgba(255, 255, 255, .96); box-shadow: none; }
.hero-form input:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--surface); border-radius: var(--r-lg); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; box-shadow: none; }
.kpi small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi b { display: block; font-size: 22px; letter-spacing: -.02em; margin: 2px 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; color: var(--muted); font-size: 13px; }
.kpi-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #ebeef1; color: var(--ink-2); flex: none; }
.kpi-ico.ok { background: var(--ok-bg); color: var(--ok); }
.kpi-ico.wait { background: var(--wait-bg); color: var(--wait); }
.kpi-ico.info { background: var(--info-bg); color: var(--info); }
.kpi-action .btn { margin-top: 8px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li > .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; }
.checks .ok > .ico { background: var(--ok-bg); color: var(--ok); }
.checks .bad > .ico { background: var(--err-bg); color: var(--err); }
.checks b { display: block; font-size: 14px; color: var(--ink); }
.checks span { color: var(--muted); font-size: 13px; word-break: break-word; }

/* ================= Tables ================= */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600;  border-bottom: 1px solid var(--line); padding: 10px 16px; white-space: nowrap; }
.table th.num { text-align: right; }
.table td { border-bottom: 1px solid var(--line-2); padding: 12px 16px; vertical-align: middle; color: var(--ink-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.card-flush .table th:first-child, .card-flush .table td:first-child { padding-left: 24px; }
.card-flush .table th:last-child, .card-flush .table td:last-child { padding-right: 24px; }
.row-link { cursor: pointer; transition: background .1s; }
.row-link:hover { background: #f7f9fc; }
.cust { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.cust small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; letter-spacing: .02em; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ico { width: 34px; height: 34px; color: #c1c9d2; margin-bottom: 8px; }
.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filters input { flex: 1; min-width: 220px; margin: 0; }
.filters select { width: auto; margin: 0; min-width: 150px; }
.pager { display: flex; gap: 14px; justify-content: center; align-items: center; padding: 14px; border-top: 1px solid var(--line-2); }

/* ================= Link detail ================= */
.share-card { display: grid; grid-template-columns: auto 1fr; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--sh-2), 0 0 0 1px rgba(10, 37, 64, .05); margin-bottom: 20px; }
.share-amount { background: var(--night); color: #fff; padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; min-width: 230px; }
.share-amount small { color: #a1a1a6; font-size: 11px;  font-weight: 600; }
.share-amount b { font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.share-body { padding: 20px 24px; min-width: 0; }
.copy-row { display: flex; gap: 8px; margin: 4px 0 14px; }
.copy-row input { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; min-width: 0; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.chip:hover { color: var(--accent); box-shadow: 0 0 0 1px #c9c6ff; background: #fbfbff; }
.chip .ico { width: 14px; height: 14px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.attempts { list-style: none; margin: 0; padding: 0; }
.attempts li { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.attempts li:first-child { padding-top: 0; }
.attempts li:last-child { border-bottom: 0; padding-bottom: 0; }
.att-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.att-top code { font-size: 12px; color: var(--ink-2); }
.att-meta { font-size: 12px; margin-top: 4px; }
.att-err { font-size: 12px; color: var(--err); margin-top: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 0 0 14px; position: relative; font-size: 14px; color: var(--ink-2); }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.timeline time { display: block; color: var(--muted); font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #c1c9d2; margin-top: 7px; flex: none; box-shadow: 0 0 0 3px #fff; }
.dot-paid { background: var(--ok-ico); } .dot-attempt { background: var(--accent); } .dot-cancelled, .dot-duplicate, .dot-mismatch, .dot-failed { background: #df1b41; } .dot-created { background: var(--night); }

/* ================= Invoice ================= */
.inv-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.inv-cust { font-size: 16px; font-weight: 600; color: var(--ink); }
.inv-meta { display: flex; gap: 22px; margin: 0; flex-wrap: wrap; }
.inv-meta dt { font-size: 11px; color: var(--muted);  font-weight: 600; }
.inv-meta dd { margin: 2px 0 0; font-weight: 500; font-size: 14px; color: var(--ink); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; margin: 18px 0 0 auto; max-width: 340px; font-size: 14px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.totals .grand { color: var(--ink); font-weight: 600; font-size: 16px; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); }
.note { background: var(--surface-2); border-radius: var(--r); padding: 12px 14px; margin-top: 16px; font-size: 14px; color: var(--text); }

/* ================= New link form ================= */
.items-head, .item-row { display: grid; grid-template-columns: minmax(180px, 1fr) 76px 84px 140px 82px 116px 30px; gap: 8px; align-items: center; }
.items-head { font-size: 11px; color: var(--muted); font-weight: 600;  margin-bottom: 6px; padding: 0 2px; }
.item-row { margin-bottom: 8px; }
.item-row input, .item-row select { margin: 0; padding: 8px 10px; }
.item-row output { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
#add-item { margin-top: 4px; }
.sum-box { margin: 22px 0 0 auto; max-width: 360px; background: var(--surface-2); border-radius: var(--r-lg); padding: 18px; }
.sum-box .totals { margin: 0 0 14px; max-width: none; }
.payable { margin: 0; }
#total-hint { display: block; margin-top: 8px; font-size: 12px; }
#total-hint.warn { color: var(--wait); font-weight: 600; }

/* ================= PDF upload ================= */
.dropzone { border: 1.5px dashed #c1c9d2; border-radius: var(--r-xl); padding: 52px 16px; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: center; margin-bottom: 20px; background: var(--surface-2); transition: border-color .15s, background .15s; position: relative; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: #fafaff; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone b { font-size: 16px; color: var(--ink); }
.dz-ico { width: 52px; height: 52px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); box-shadow: none; margin-bottom: 8px; }
.dz-ico .ico { width: 22px; height: 22px; }
.how { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.how li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.how span { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
#pdf-form > .muted { margin-bottom: 18px; }

.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start; }
.settings h4 { margin: 18px 0 8px; font-size: 13px; }
.api td { font-size: 13px; }

/* ================= Public pages ================= */
body.public { background: #fff; color: var(--text); }
.pub { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pub-top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.pub-top-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; justify-content: space-between; align-items: center; }
.pub-brand { display: inline-flex; line-height: 0; }
.pub-brand img { width: 32px; height: 32px; }
.secure-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.secure-pill .ico { width: 14px; height: 14px; }
.pub-main { width: 100%; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.pub-foot { background: var(--bg); border-top: 1px solid var(--line-2); font-size: 12px; color: #86868b; }
.pub-foot-in { max-width: 1080px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-logos { display: inline-flex; align-items: center; gap: 14px; }
.card-logos img { display: block; width: auto; }
.cl-visa { height: 15px; }
.cl-mc { height: 24px; }
.cl-troy { height: 18px; }

.btn-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 500; padding: 13px 26px; border-radius: 980px; transition: background .15s; }
.btn-pill:hover { background: #000; color: #fff; }
.btn-pill:focus-visible, .lp-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.lp-hero { width: 100%; max-width: 1080px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.lp-copy h1 { font-size: 60px; line-height: 1.04; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.lp-sub { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 30em; margin-top: 22px; }
.lp-ctas { display: flex; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.lp-link { font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #c7c7c4; }
.lp-link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.lp-facts { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; max-width: 30em; font-size: 14px; color: var(--muted); }
.lp-facts li { display: flex; align-items: center; gap: 8px; }
.lp-facts .ico { color: var(--ink); width: 17px; height: 17px; }

.lp-paper { position: relative; padding: 14px 18px 0 0; }
.lp-paper::before { content: ""; position: absolute; inset: 0 0 18px 18px; background: #ecece9; border-radius: 16px; transform: rotate(2.2deg); }
.paper { position: relative; background: #fff; border-radius: 16px; padding: 30px 30px 26px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 24px 60px -18px rgba(0, 0, 0, .22); border: 1px solid var(--line-2); }
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.paper-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.paper-brand img { width: 26px; height: 26px; }
.paper-head span { text-align: right; font-size: 12px; color: var(--muted); line-height: 1.5; }
.paper-head b { color: var(--ink); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.paper-to { padding: 18px 0 6px; font-size: 13px; color: var(--muted); }
.paper-to b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-top: 2px; }
.paper-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--ink); }
.paper-rows small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.paper-rows b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paper-sum { padding-top: 12px; }
.paper-sum div { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 4px 0; font-variant-numeric: tabular-nums; }
.paper-sum .paper-total { color: var(--ink); font-size: 17px; font-weight: 600; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line); }
.paper-btn { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 500; }
.paper-btn .ico { width: 15px; height: 15px; }

.lp-how { background: var(--bg); padding: 88px 24px; }
.lp-how h2, .lp-steps { max-width: 1032px; margin-left: auto; margin-right: auto; }
.lp-how h2 { font-size: 36px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.lp-steps { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: none; }
.lp-steps li { border-top: 1px solid #d6d6d3; padding-top: 22px; }
.lp-steps span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.lp-steps h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: -.01em; }
.lp-steps p { font-size: 15px; color: var(--muted); max-width: 26em; }

.lp-tami { max-width: 1080px; margin: 88px auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.lp-tami h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin-bottom: 6px; }
.lp-tami p { color: var(--muted); font-size: 16px; max-width: 34em; }
.lp-tami .btn-pill { flex: none; }

/* ---------- Checkout (Stripe Checkout düzeni) ---------- */
body.checkout-page { background: var(--surface); }
.co { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.co-summary { background: var(--bg); color: var(--text); display: flex; justify-content: flex-end; padding: 64px 64px 40px 24px; }
.co-form { background: #fff; display: flex; justify-content: flex-start; padding: 64px 24px 40px 64px; }
.co-inner { width: 100%; max-width: 400px; }
.co-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.co-brand { color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.co-brand img { width: 30px; height: 30px; }
.co-brand .badge-test { margin-left: 4px; }
.co-pay-to { color: var(--muted); font-size: 15px; font-weight: 500; }
.co-amount { font-size: 44px; font-weight: 700; color: var(--ink); letter-spacing: -.035em; line-height: 1.15; margin: 4px 0 28px; font-variant-numeric: tabular-nums; }
.co-lines { list-style: none; margin: 0; padding: 0; }
.co-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 14px; }
.co-lines li b { color: var(--ink); font-weight: 500; }
.co-lines li small { display: block; color: var(--muted); font-size: 13px; }
.co-lines li span:last-child { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-sub { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.co-sub div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.co-sub .co-total { color: var(--ink); font-weight: 600; font-size: 15px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.co-meta { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 13px; }
.co-meta dt { color: var(--muted); font-size: 12px; }
.co-meta dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; word-break: break-word; }
.co-meta .muted { color: var(--muted); }
.co-note { margin-top: 20px; font-size: 13px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.co-pdf { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--accent); }
.co-pdf:hover { color: var(--accent-2); }
.co-title { font-size: 24px; font-weight: 600; margin-bottom: 22px; letter-spacing: -.02em; }
.co-test { display: flex; gap: 10px; align-items: flex-start; background: #fff8e1; color: var(--wait); border-radius: var(--r); padding: 11px 13px; margin-bottom: 20px; font-size: 13px; box-shadow: inset 0 0 0 1px #fbe3a1; }
.co-test b { display: block; }
.co-test code { background: rgba(255, 255, 255, .8); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.co-test .ico { margin-top: 2px; }

.field-group { margin-top: 6px; border-radius: var(--r); box-shadow: 0 0 0 1px #d6d6d3; background: #fff; }
.field-group input { margin: 0; box-shadow: none; border-radius: 0; }
.field-group input:focus { box-shadow: none; }
.field-group:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); }
.fg-row { position: relative; }
.fg-row + .fg-row, .fg-split { border-top: 1px solid #e6ebf1; }
.fg-split { display: grid; grid-template-columns: 1fr 1fr; }
.fg-split input:first-child { border-right: 1px solid #e6ebf1; }
.fg-row:first-child input { border-radius: var(--r) var(--r) 0 0; }
.fg-split input:first-child { border-radius: 0 0 0 var(--r); }
.fg-split input:last-child { border-radius: 0 0 var(--r) 0; }
.field-group input.invalid { box-shadow: none; color: #df1b41; background: #fff7f9; }
.brands { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; pointer-events: none; }
.brand { font: 800 9px/1 -apple-system, "Segoe UI", sans-serif; letter-spacing: .02em; padding: 4px 5px; border-radius: 3px; color: #fff; opacity: 1; transition: opacity .15s, filter .15s; }
.brand-visa { background: #1a1f71; font-style: italic; }
.brand-mc { background: linear-gradient(90deg, #eb001b 50%, #f79e1b 50%); color: transparent; width: 26px; }
.brand-troy { background: #00a5b5; }
.brand-amex { background: #2e77bc; }
.brands.has .brand { opacity: .15; filter: grayscale(1); }
.brands.has .brand.on { opacity: 1; filter: none; }
.field-err { color: #df1b41; font-size: 13px; margin-top: 6px; min-height: 0; }
.pay-form label { margin-bottom: 18px; }
.co-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.co-secure .ico { width: 13px; height: 13px; }
.co-foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.co-foot .card-logos { margin-left: auto; }
.co-foot b { color: var(--muted); font-weight: 600; }
.pay-state { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-lg); padding: 16px; }
.pay-state b, .pay-state span { display: block; }
.pay-state span { font-size: 13px; opacity: .9; }
.pay-state.ok { background: #e7f8f0; color: var(--ok); }
.pay-state.off { background: #f1f4f8; color: var(--ink-2); }

.state-card { max-width: 480px; margin: 72px auto; background: var(--surface); color: var(--text); border-radius: 22px; padding: 44px 34px; text-align: center; box-shadow: var(--sh-3); border: 1px solid var(--line-2); }
.state-card h1 { font-size: 22px; margin: 18px 0 8px; }
.state-card p { margin-bottom: 6px; }
.state-card .btn { margin-top: 18px; }
.state-amount { font-size: 32px; font-weight: 700; color: var(--ink); letter-spacing: -.03em; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.receipt { margin: 20px 0 0; text-align: left; border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 8px; font-size: 13px; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; word-break: break-all; }
.state-ico { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.state-ico .ico { width: 30px; height: 30px; stroke-width: 2.5; }
.state-ico.ok { background: var(--ok-ico); color: #fff; box-shadow: 0 0 0 8px #e3f5ec; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.state-ico.bad { background: #df1b41; color: #fff; box-shadow: 0 0 0 8px #ffe7ee; }
.state-ico.wait { background: var(--accent-soft); }
.state-ico.muted { background: #ebeef1; color: var(--muted); }
.spinner { width: 30px; height: 30px; border: 3px solid rgba(99, 91, 255, .2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .state-ico.ok { animation: none; } }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .co { grid-template-columns: 1fr; min-height: 0; }
  .co-summary, .co-form { justify-content: center; padding: 28px 20px; }
  .co-form { padding-bottom: 48px; }
  .co-summary { padding-top: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .co-inner { max-width: 480px; }
  .co-brand { margin-bottom: 20px; }
  .co-amount { margin-bottom: 18px; }
}
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sb-brand { padding: 0; }
  .sb-brand > span { display: none; }
  .sb-brand img { width: 26px; height: 26px; }
  .sb-nav { flex-direction: row; overflow-x: auto; gap: 2px; scrollbar-width: none; }
  .sb-nav::-webkit-scrollbar { display: none; }
  .sb-nav a { padding: 7px 9px; white-space: nowrap; font-size: 13px; }
  .sb-nav a span { display: none; }
  .sb-nav a.on span { display: inline; }
  .sb-foot { border: 0; padding: 0; }
  .env { display: none; }
  .content { padding: 22px 16px 60px; }
  .form-grid, .settings { grid-template-columns: 1fr; gap: 0; }
  .share-card { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 22px; }
  .kpis { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .hero { padding: 24px; }
  .hero-form { width: 100%; flex-wrap: wrap; }
  .hero-form label { width: 100%; }
  .hero-form .btn { flex: 1; }
  .hide-sm { display: none; }
  .items-head { display: none; }
  .item-row { grid-template-columns: 1fr 1fr 30px; background: var(--surface-2); border-radius: var(--r-lg); padding: 10px; }
  .item-row > :first-child { grid-column: 1 / -1; }
  .item-row output { grid-column: 1 / 3; text-align: left; }
  .sum-box { max-width: none; }
  .inv-table thead { display: none; }
  .inv-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  .inv-table td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 2px 0; white-space: normal; text-align: right; }
  .inv-table td::before { content: attr(data-label); color: var(--muted); text-align: left; }
  .state-card { margin: 40px 16px; padding: 36px 22px; }
  .lp-hero { grid-template-columns: 1fr; padding: 28px 20px; gap: 0; }
  .lp-paper { display: none; }
  .lp-copy h1 { font-size: 38px; }
  .lp-sub { font-size: 17px; }
  .lp-facts { gap: 12px 16px; margin-top: 32px; font-size: 13px; }
  .lp-paper { padding-right: 10px; }
  .paper { padding: 22px 20px; }
  .lp-how { padding: 56px 20px; }
  .lp-how h2 { font-size: 28px; }
  .lp-steps { grid-template-columns: 1fr; gap: 28px; }
  .lp-tami { flex-direction: column; align-items: flex-start; margin: 56px auto; padding: 0 20px; }
  .hero-pub > p { font-size: 16px; }
  .demo-card { flex-direction: column; align-items: stretch; padding: 22px; }
  .copy-row { flex-wrap: wrap; }
  .copy-row .btn { width: 100%; }
  .filters select { flex: 1; }
  .co-amount { font-size: 34px; }
  .co-meta { grid-template-columns: 1fr; }
  .pub-top-in, .pub-foot-in { padding-left: 20px; padding-right: 20px; }
  .pub-brand img { width: 28px; height: 28px; }
}
