:root {
  --brand: #0b5fff;
  --ink: #0f1b33;
  --muted: #5b6b86;
  --bg: #f4f6fb;
  --card: #fff;
  --line: #e2e8f2;
  --ok: #0a8f55;
  --warn: #b45309;
  --err: #c0262d;
  --r: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 51, .06), 0 8px 24px rgba(15, 27, 51, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: 1.35rem; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.center { text-align: center; }

/* üst bar */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { height: 32px; width: auto; }
.logo-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--brand); display: inline-block; }
#nav { display: flex; gap: 18px; }
#nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
#nav a:hover { color: var(--brand); }
#lang { width: auto; flex: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; font: inherit; font-size: .9rem; }
#lang[hidden] { display: none; }
.brand { min-width: 0; }
.brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nav a { white-space: nowrap; }

/* butonlar, formlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--err); }
.btn.sm { padding: 6px 11px; font-size: .88rem; border-radius: 8px; }
.btn.block { width: 100%; }
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
label > input, label > select, label > textarea { margin-top: 5px; }
input, select, textarea { width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #cfd8e6; border-radius: 10px; padding: 10px 12px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand); }
input[type=checkbox] { width: auto; margin: 0; }
input[type=color] { padding: 2px; height: 42px; }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-bottom: 6px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 4px; margin: 0 0 14px; min-width: 0; }
legend { font-weight: 700; font-size: .85rem; padding: 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
details { margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.alert { border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: .95rem; }
.alert.err { background: #fdecec; color: #7d1a1f; border: 1px solid #f5c2c4; }
.alert.warn { background: #fff4e0; color: #7a4a05; border: 1px solid #f3d9a8; }
.alert.ok { background: #e6f6ee; color: #0b5c37; border: 1px solid #b8e3cc; }

/* hero */
.hero { color: #fff; background: linear-gradient(115deg, rgba(8, 18, 40, .93), rgba(8, 18, 40, .72)), var(--hero-img, linear-gradient(120deg, #0f1b33, var(--brand))); background-size: cover; background-position: center; padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.hero .card { color: var(--ink); }
.hero p.lead { font-size: 1.1rem; color: #d6e0f5; max-width: 34em; }
.hero.platform { padding: 72px 0; }

/* bölümler */
.section { padding: 44px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; margin-bottom: 8px; }
.firms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.firm { display: flex; flex-direction: column; gap: 8px; }
.firm .tag { font-size: .8rem; color: var(--muted); }
.firm .btn { margin-top: auto; align-self: flex-start; }
.firm-head { display: flex; align-items: center; gap: 10px; }
.firm-head img { height: 34px; }
.firm-dot { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); flex: none; }

/* sonuç */
.result { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand); line-height: 1.1; }
.price-box { padding: 6px 0; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: .93rem; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: #f1f5fd; }
.tablewrap { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #e8eefb; color: #27418a; white-space: nowrap; }
.badge.new { background: #e3efff; color: #0b4bc7; }
.badge.contacted { background: #fff1d6; color: #8a5a00; }
.badge.offered { background: #ece3ff; color: #5a2db3; }
.badge.won { background: #ddf4e8; color: #0a6b3f; }
.badge.lost { background: #f1f1f4; color: #666b78; }
.badge.off { background: #f1f1f4; color: #666b78; }

/* panel */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 16px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select { width: auto; }
.toolbar .sp { margin-left: auto; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 10px; }
.panel-head h2 { margin: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: .93rem; margin-bottom: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.tier-row { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; gap: 8px; margin-bottom: 8px; }
.hint { font-size: .83rem; color: var(--muted); margin: -4px 0 12px; }
.imgfield { display: flex; gap: 8px; align-items: center; }
.imgfield img { height: 40px; border-radius: 6px; border: 1px solid var(--line); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.fld { margin-bottom: 10px; }
.fld > label { margin-bottom: 5px; }
.imgfield input[type=text], .imgfield input:not([type]) { flex: 1; min-width: 0; }
.modal-err .alert { margin: 8px 0 0; }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(8, 18, 40, .5); display: grid; place-items: start center; overflow-y: auto; padding: 4vh 12px; z-index: 50; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal.wide { max-width: 760px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-b { padding: 18px 20px; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.x { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; opacity: 0; transition: .25s; z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--err); }

.foot { border-top: 1px solid var(--line); background: var(--card); margin-top: 40px; padding: 18px 0; font-size: .88rem; }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 860px) {
  .hero-grid, .result, .steps { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 44px; }
  #nav { display: none; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: 1fr 1fr; }
}
