:root {
  --bg: #f4f6f9; --surface: #fff; --text: #1d2733; --muted: #5f6b7a; --border: #dde3ea;
  --primary: #1f4e79; --primary-2: #2c6aa3; --primary-soft: #e8f0f8;
  --ok: #1d7a4a; --ok-soft: #e5f4ec; --warn: #9a6200; --warn-soft: #fff4dc; --err: #b42318; --err-soft: #fdecea;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0 0 1rem; } h2 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; } h3 { font-size: 1.05rem; margin: 1rem 0 .5rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Üst menü */
.topbar { background: var(--primary); color: #fff; }
.topbar .container { display: flex; align-items: center; gap: 1rem; min-height: 58px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.brand { font-weight: 700; font-size: 1.1rem; }
.topbar nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* Panel düzeni */
.panel { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 58px); }
.content { padding: 1.5rem; min-width: 0; }
@media (max-width: 800px) {
  .panel { grid-template-columns: 1fr; }
  .content { padding: 1rem 16px; }
}

/* Kutular */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stat .label { color: var(--muted); font-size: .85rem; }
.stat .value { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.page-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.page-head .actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }

/* Tablolar */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: .55rem .7rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { font-size: .8rem; color: var(--muted); font-weight: 600; background: #f9fafb; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot td { font-weight: 700; }

/* Formlar */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=file], select, textarea {
  width: 100%; padding: .55rem .65rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-2); outline-offset: 0; border-color: var(--primary-2); }
.field { margin-bottom: .9rem; }
.field .help { color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.field .errors { color: var(--err); font-size: .85rem; margin-top: .2rem; }
.field.check label, .field ul label { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; }
.field ul { list-style: none; padding: 0; margin: 0; }
.field ul li { margin-bottom: .3rem; }
.form-row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin: 0; }

.btn { display: inline-block; padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--primary); background: var(--primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--primary-2); text-decoration: none; }
.btn.secondary { background: #fff; color: var(--primary); }
.btn.secondary:hover { background: var(--primary-soft); }
.btn.danger { background: #fff; color: var(--err); border-color: var(--err); }
.btn.small { padding: .3rem .6rem; font-size: .85rem; }
.btn.big { padding: .8rem 1.4rem; font-size: 1.05rem; }
.linkbtn { background: none; border: 0; color: var(--primary-2); cursor: pointer; padding: 0; font: inherit; }

/* Mesajlar */
.msg { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.msg.success { background: var(--ok-soft); color: var(--ok); border-color: #b7e0c8; }
.msg.error { background: var(--err-soft); color: var(--err); border-color: #f5c2bd; }
.msg.warning, .msg.info { background: var(--warn-soft); color: var(--warn); border-color: #f1d9a6; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--primary-soft); color: var(--primary); }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.err { background: var(--err-soft); color: var(--err); }
.debt { color: var(--err); } .credit { color: var(--ok); }

/* Tanıtım sayfası */
.hero { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; padding: 3.5rem 0; }
.hero h1 { font-size: 2.1rem; }
.hero p { font-size: 1.1rem; max-width: 640px; opacity: .95; }
.hero .btn { background: #fff; color: var(--primary); border-color: #fff; }
.module-card h3 { margin-top: 0; }
.price { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.price-box { position: sticky; top: 1rem; }
.price-box table td { border: 0; padding: .25rem 0; }
.total-row td { border-top: 1px solid var(--border) !important; font-size: 1.15rem; font-weight: 700; padding-top: .5rem !important; }
.signup-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .signup-layout { grid-template-columns: 1fr; } .price-box { position: static; } }
.legal { white-space: pre-line; }
footer.site-footer { padding: 2rem 0; color: var(--muted); font-size: .85rem; }
footer.site-footer a { margin-right: 1rem; }
.key-box { font-family: ui-monospace, Consolas, monospace; background: #0f172a; color: #e2e8f0; padding: .8rem; border-radius: 8px; word-break: break-all; }
.pagination { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; }

/* Daire limiti */
.limit-bar { margin: .5rem 0; }
.meter { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; margin: .3rem 0; max-width: 420px; }
.meter span { display: block; height: 100%; background: var(--primary-2); max-width: 100%; }

/* Yapı görünümü */
.floor-row { display: grid; grid-template-columns: 110px 1fr; gap: .5rem; padding: .4rem 0; border-top: 1px solid var(--border); align-items: start; }
.floor-row .floor-name { font-size: .82rem; color: var(--muted); padding-top: .35rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.unit-chip { display: block; min-width: 60px; text-align: center; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: .82rem; line-height: 1.3; }
.unit-chip:hover { text-decoration: none; border-color: var(--primary-2); }
.unit-chip b { display: block; font-size: .9rem; }
.unit-chip .who { color: var(--muted); display: block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit-chip.st-malik { background: var(--primary-soft); border-color: #c6d9ec; }
.unit-chip.st-kiraci { background: var(--ok-soft); border-color: #b7e0c8; }
.unit-chip.st-bos { background: #f3f4f6; border-style: dashed; }
.unit-chip.st-kayitsiz { background: var(--warn-soft); border-color: #f1d9a6; }
.unit-chip .debt-dot { color: var(--err); font-weight: 700; }
.legend { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .8rem; }
.legend .unit-chip { min-width: 0; padding: .1rem .5rem; }
dl.info { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
dl.info dt { color: var(--muted); font-size: .88rem; }
dl.info dd { margin: 0; }

/* Web sayfası */
.post-card { padding: 1rem; }
.post-img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: .6rem; display: block; }
.post-img.big { max-height: 420px; margin: 1rem 0; }
.lead { font-size: 1.08rem; color: var(--muted); }
.article-body { font-size: 1.02rem; line-height: 1.7; }
.article-body h3 { margin-top: 1.4rem; }
.article-body a { word-break: break-all; }

/* Denetim */
.check-item { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: .6rem 0; border-top: 1px solid var(--border); align-items: start; }
.check-item .opts { display: flex; gap: .25rem; flex-wrap: wrap; }
.check-item .opts label { font-weight: 500; font-size: .85rem; border: 1px solid var(--border); border-radius: 6px; padding: .25rem .55rem; cursor: pointer; display: flex; gap: .3rem; align-items: center; margin: 0; }
.check-item .note { grid-column: 1 / -1; }
.check-item .note input { font-size: .88rem; padding: .35rem .5rem; }
.res-uygun { color: var(--ok); } .res-uygun_degil { color: var(--err); font-weight: 600; } .res-uygulanamaz { color: var(--muted); }
.sev-kritik, .sev-yuksek { background: var(--err-soft); color: var(--err); } .sev-orta { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 700px) { .check-item { grid-template-columns: 1fr; } }
@media print {
  .sidebar, .topbar, .page-head .actions, .no-print, footer { display: none !important; }
  .panel { display: block; } .content { padding: 0; } .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  body { background: #fff; }
}

/* Daire kişi paneli (sağdan açılan) */
.unit-table tr[data-unit] { cursor: pointer; }
.unit-table tr[data-unit]:hover td { background: #f6f9fc; }
.unit-table tr.selected td { background: var(--primary-soft); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 100vw); background: var(--surface); box-shadow: -8px 0 24px rgba(16,24,40,.18);
  transform: translateX(105%); transition: transform .2s ease; z-index: 50; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.drawer-body { padding: 1rem; overflow-y: auto; flex: 1; }
.pp-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pp-table td { vertical-align: top; }
.pp-box { border: 1px solid var(--border); border-radius: 8px; padding: .6rem .8rem; margin-top: .8rem; }
.pp-box > summary { cursor: pointer; }
.pp-box form { margin-top: .8rem; }
.pp-ops form { border-top: 1px solid var(--border); padding-top: .6rem; }
.pp-ops h4 { margin: .2rem 0; }
.row-actions { position: relative; }
.row-actions > summary { list-style: none; cursor: pointer; }
.row-actions > summary::-webkit-details-marker { display: none; }
.row-actions-menu { position: absolute; right: 0; z-index: 5; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow);
  padding: .6rem; display: flex; flex-direction: column; gap: .45rem; min-width: 250px; }
@media (max-width: 600px) { .row-actions-menu { position: static; min-width: 0; } }
.people-panel .table-wrap { overflow: visible; }
.people-panel .pp-table { margin-bottom: .5rem; }

/* Sekmeler */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin: .5rem 0 1rem; overflow-x: auto; }
.tabs a { padding: .55rem .9rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--primary); }

/* Bütçe: plan / gerçekleşen çubukları */
.bar2 { position: relative; height: 14px; background: #f1f4f8; border-radius: 4px; }
.bar2 span { position: absolute; left: 0; height: 100%; border-radius: 4px; max-width: 100%; }
.bar2 .plan { background: #c9daec; }
.bar2 .act { background: var(--primary-2); height: 6px; top: 4px; }
.bar2 .act.over { background: var(--err); }

/* Finans kısayolları */
.fin-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 1rem; }
.fin-tiles .card { margin: 0; padding: 1rem; }
.fin-tiles h3 { margin: 0 0 .5rem; font-size: .95rem; }
.fin-tiles a { display: block; padding: .45rem .55rem; border-radius: 6px; color: var(--text); font-weight: 600; }
.fin-tiles a span { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.fin-tiles a:hover { background: var(--primary-soft); text-decoration: none; }
.fin-tiles a.locked { color: var(--muted); }

/* Sol menü: ikonlu, gruplar sağa açılır, daraltılabilir */
.panel { transition: grid-template-columns .15s; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: .75rem .5rem; display: flex; flex-direction: column;
  position: sticky; top: 0; align-self: start; min-height: calc(100vh - 58px); z-index: 30; }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.nav-link, .nav-head { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .5rem .65rem; border-radius: 8px;
  color: var(--text); background: none; border: 0; font: inherit; font-size: .93rem; text-align: left; cursor: pointer; }
.nav-link span, .nav-head span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-link .ico, .nav-head .ico:first-child { color: var(--muted); flex: none; }
.nav-head .ico:last-child { width: 14px; height: 14px; color: var(--muted); flex: none; }
.nav-link:hover, .nav-head:hover, .nav-group.open > .nav-head { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.nav-link:hover .ico, .nav-head:hover .ico, .nav-group.open > .nav-head .ico { color: var(--primary); }
.nav-link.active, .nav-group.current > .nav-head { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-link.active .ico, .nav-group.current > .nav-head .ico { color: var(--primary); }
.nav-group.current > .nav-head { box-shadow: inset 3px 0 0 var(--primary); }
.nav-head:focus-visible, .nav-link:focus-visible, .nav-sub a:focus-visible, .nav-icon-btn:focus-visible { outline: 2px solid var(--primary-2); outline-offset: -2px; }

.nav-group { position: relative; }
.nav-sub { display: none; position: absolute; left: calc(100% + .7rem); top: -.35rem; width: 260px; padding: .4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(16,24,40,.14); z-index: 60; }
.nav-sub::before { content: ""; position: absolute; left: -.8rem; top: 0; width: .8rem; height: 3rem; }
.nav-sub-up { top: auto; bottom: -.35rem; }
.nav-sub-up::before { top: auto; bottom: 0; }
.nav-group.open > .nav-sub { display: block; }
@media (hover: hover) and (min-width: 801px) { .nav-group:hover > .nav-sub { display: block; } }
.nav-sub-title { padding: .35rem .6rem .45rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: .3rem; }
.nav-row { display: flex; align-items: center; border-radius: 6px; }
.nav-row:hover { background: var(--primary-soft); }
.nav-sub a { display: block; flex: 1; padding: .45rem .6rem; border-radius: 6px; color: var(--text); }
.nav-sub a:hover { color: var(--primary); text-decoration: none; }
.nav-sub > a:hover { background: var(--primary-soft); }
.nav-sub a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-sub a.locked { color: var(--muted); }
.nav-sub a.locked::after { content: " 🔒"; font-size: .75rem; }
.nav-sep { height: 1px; background: var(--border); margin: .3rem .4rem; }
.nav-empty { padding: .3rem .6rem; margin: 0; }
button.fav { background: none; border: 0; padding: .3rem .45rem; cursor: pointer; color: #c2c9d2; opacity: 0; transition: opacity .1s; }
button.fav .ico { width: 15px; height: 15px; }
.nav-row:hover button.fav, button.fav:focus-visible, button.fav.on { opacity: 1; }
button.fav.on { color: #e0a100; }
button.fav.on .ico { fill: currentColor; }
button.fav:hover { color: #e0a100; }

.nav-bottom { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--border); display: flex; align-items: center; gap: .3rem; }
.nav-icon-btn { background: none; border: 0; padding: .45rem; border-radius: 8px; color: var(--muted); cursor: pointer; display: flex; }
.nav-icon-btn:hover, .nav-settings.open > .nav-icon-btn, .nav-settings.current > .nav-icon-btn { background: var(--primary-soft); color: var(--primary); }
.nav-version { flex: 1; text-align: center; color: var(--muted); font-size: .75rem; line-height: 1.2; }
.nav-version span { display: flex; flex-direction: column; }
.nav-version small { font-size: .68rem; }
.nav-version:hover { color: var(--primary); text-decoration: none; }

/* Daraltılmış menü: sadece ikonlar */
.panel.nav-collapsed { grid-template-columns: 62px 1fr; }
.nav-collapsed .nav-link span, .nav-collapsed .nav-head span, .nav-collapsed .nav-head .ico:last-child, .nav-collapsed .nav-version { display: none; }
.nav-collapsed .nav-link, .nav-collapsed .nav-head { justify-content: center; padding: .55rem 0; }
.nav-collapsed .nav-bottom { flex-direction: column; }
.nav-collapsed #nav-collapse .ico { transform: scaleX(-1); }

@media (max-width: 800px) {
  .sidebar { position: static; min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .nav-sub, .nav-sub-up { position: static; width: auto; box-shadow: none; border: 0; border-left: 2px solid var(--primary-soft); border-radius: 0; margin: .15rem 0 .4rem 1.4rem; padding: 0 0 0 .4rem; }
  .nav-sub::before, .nav-sub-title { display: none; }
  .nav-head .ico:last-child { transform: rotate(90deg); }
  .nav-group.open > .nav-head .ico:last-child { transform: rotate(-90deg); }
  button.fav { opacity: 1; }
  #nav-collapse { display: none; }
  .panel.nav-collapsed { grid-template-columns: 1fr; }
  .nav-settings { position: static; }
}
.hub-tiles a { font-size: 1rem; }

/* Kayıt listeleri: filtre ve toplu işlem */
.filter-card { padding: 1rem 1.25rem; }
.filter-main, .filter-more, .bulk-fields { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; }
.filter-main .field, .filter-more .field, .bulk-fields .field { margin: 0; min-width: 150px; }
.filter-main .grow, .bulk-fields .grow { flex: 1 1 240px; }
.filter-more { margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--border); }
.filter-more[hidden], .bulk-bar[hidden], .bulk-fields [hidden] { display: none; }
.filter-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .75rem; font-size: .9rem; }
.bulk-bar { position: sticky; top: .5rem; z-index: 20; background: var(--primary-soft); border: 1px solid #c9daec; border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: .75rem; box-shadow: var(--shadow); }
.bulk-info { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.bulk-fields .btn { margin-bottom: 1px; }
.bulk-fields .help { font-size: .75rem; }
.bulk-fields .btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.ledger-table th.chk, .ledger-table td.chk { width: 34px; padding-right: 0; }
.ledger-table input[type=checkbox] { width: 16px; height: 16px; }
.ledger-table tr.selected td { background: #f3f8fd; }
.late-summary { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; padding: .9rem 1.25rem; }
.late-summary .label { display: block; font-size: .78rem; color: var(--muted); }
.late-summary b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.late-summary .btn { margin-left: auto; }

/* ---- Tanıtım sitesi ---- */
html { scroll-behavior: smooth; }
.lp-hero { background: linear-gradient(140deg, #163a5c 0%, var(--primary) 45%, var(--primary-2) 100%); color: #fff; padding: 4rem 0 4.5rem; overflow: hidden; }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.lp-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.14); padding: .3rem .7rem; border-radius: 99px; }
.lp-hero h1 { font-size: 2.6rem; line-height: 1.15; margin: .9rem 0 1rem; letter-spacing: -.01em; }
.lp-lead { font-size: 1.12rem; opacity: .93; max-width: 560px; }
.lp-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.6rem 0 1.2rem; }
.lp-hero .btn, .lp-final .btn { background: #fff; color: var(--primary); border-color: #fff; }
.lp-hero .btn.lp-ghost, .lp-final .btn.lp-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.lp-hero .btn.lp-ghost:hover, .lp-final .btn.lp-ghost:hover { background: rgba(255,255,255,.12); }
.lp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.lp-checks li::before { content: "✓"; display: inline-block; width: 1.4rem; font-weight: 700; color: #7ee2a8; }
.lp-contact .lp-checks li::before { color: var(--ok); }

.lp-mock { background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.28); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.lp-mock-top { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; background: var(--primary); color: #fff; font-size: .8rem; }
.lp-mock-top span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45); }
.lp-mock-top b { margin-left: .5rem; font-weight: 600; }
.lp-mock-body { display: grid; grid-template-columns: 44px 1fr; min-height: 250px; }
.lp-mock-side { background: #f7f9fb; border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: .85rem; padding: .9rem 0; color: var(--muted); }
.lp-mock-side .ico:first-child { color: var(--primary); }
.lp-mock-main { padding: .9rem; }
.lp-mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.lp-mock-cards div { border: 1px solid var(--border); border-radius: 8px; padding: .5rem .6rem; }
.lp-mock-cards small { display: block; font-size: .68rem; color: var(--muted); }
.lp-mock-cards b { font-size: .98rem; }
.lp-mock-cards i { display: block; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--primary-2) var(--w), var(--border) var(--w)); margin-top: .3rem; }
.lp-mock-table { margin-top: .7rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: .78rem; }
.lp-mock-table div { display: grid; grid-template-columns: 60px 1fr auto; gap: .5rem; padding: .45rem .6rem; border-top: 1px solid var(--border); }
.lp-mock-table div:first-child { border-top: 0; }

.lp-stats { background: #fff; border-bottom: 1px solid var(--border); }
.lp-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.lp-stats b { display: block; font-size: 1.6rem; color: var(--primary); }
.lp-stats span { font-size: .85rem; color: var(--muted); }

.lp-section { padding: 4rem 16px; }
.lp-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-section h2 { font-size: 1.85rem; text-align: center; margin: 0 0 .5rem; }
.lp-sub { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 2.2rem; }
.lp-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.lp-roles .card { margin: 0; }
.lp-roles h3 { margin: 0 0 .4rem; font-size: 1.02rem; }
.lp-roles p { margin: 0; color: var(--muted); font-size: .92rem; }

.lp-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.lp-module { border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem; background: var(--bg); transition: transform .15s, box-shadow .15s; }
.lp-module:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,24,40,.08); background: #fff; }
.lp-module-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: .6rem; }
.lp-module-ico .ico { width: 22px; height: 22px; }
.lp-module h3 { font-size: 1rem; margin: 0 0 .35rem; }
.lp-module p { margin: 0; font-size: .88rem; color: var(--muted); }

.lp-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.lp-feature { border-left: 3px solid var(--primary-2); background: #fff; border-radius: 0 12px 12px 0; padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.lp-feature h3 { margin: 0 0 .5rem; }
.lp-feature ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.lp-feature li { margin: .25rem 0; }

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.lp-steps > div { text-align: center; padding: 1rem; }
.lp-steps b { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.2rem; }
.lp-steps h3 { margin: .7rem 0 .3rem; }
.lp-steps p { color: var(--muted); margin: 0; }

.lp-pricing { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; padding: 1.5rem; }
.lp-pricing h3 { margin-top: 0; }
.lp-mod-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
.lp-mod-checks label { display: flex; gap: .55rem; align-items: flex-start; border: 1px solid var(--border); border-radius: 8px; padding: .55rem .65rem; cursor: pointer; }
.lp-mod-checks label:has(input:checked) { border-color: var(--primary-2); background: var(--primary-soft); }
.lp-mod-checks input { width: auto; margin-top: .2rem; }
.lp-mod-checks small { display: block; color: var(--muted); font-size: .78rem; }
.lp-calc-side { border-left: 1px solid var(--border); padding-left: 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.lp-period { display: flex; gap: 1rem; }
.lp-period input { width: auto; }
.lp-total { background: var(--bg); border-radius: 10px; padding: 1rem; }
.lp-total small { display: block; color: var(--muted); }
.lp-total b { display: block; font-size: 1.8rem; color: var(--primary); font-variant-numeric: tabular-nums; }

.lp-faq { max-width: 820px; margin: 0 auto; }
.lp-faq details { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: .6rem; }
.lp-faq summary { cursor: pointer; font-weight: 600; }
.lp-faq p { margin: .6rem 0 0; color: var(--muted); }

.lp-contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: start; }
.lp-contact h2 { text-align: left; }
.lp-contact .card { margin: 0; }
.lp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.lp-final { background: linear-gradient(140deg, #163a5c, var(--primary-2)); color: #fff; text-align: center; padding: 3.5rem 0; }
.lp-final h2 { margin: 0 0 .5rem; font-size: 1.8rem; }

.auth-card { max-width: 440px; margin: 2.5rem auto; }
.site-choice { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: .8rem 1rem; margin-bottom: .5rem; cursor: pointer; font: inherit; }
.site-choice:hover { border-color: var(--primary-2); background: var(--primary-soft); }
.site-choice span { display: block; font-size: .82rem; color: var(--muted); }

@media (max-width: 980px) { .lp-navlink { display: none; } }
@media (max-width: 860px) {
  .lp-hero { padding: 2.5rem 0 3rem; }
  .lp-hero-grid, .lp-pricing, .lp-contact, .lp-features, .lp-steps { grid-template-columns: 1fr; }
  .lp-hero h1 { font-size: 1.9rem; }
  .lp-mock { transform: none; }
  .lp-stats .container { grid-template-columns: repeat(2, 1fr); }
  .lp-calc-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 1rem; }
  .lp-section { padding: 2.8rem 16px; }
}

/* Tanıtım sitesi: fotoğraflar */
.lp-hero { background: linear-gradient(115deg, rgba(14,40,66,.93) 0%, rgba(31,78,121,.86) 48%, rgba(31,78,121,.55) 100%), var(--lp-hero-img, url("../img/tanitim/site-havuz.jpg")) center / cover no-repeat; }
.lp-photo { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(16,24,40,.12); background: #dfe6ee; }
.lp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.5rem; align-items: stretch; }
.lp-photo-tall { min-height: 420px; }
.lp-roles-stack { grid-template-columns: repeat(2, 1fr); align-content: start; }
.lp-roles-stack .card:last-child { grid-column: 1 / -1; }
.lp-frows { display: grid; gap: 2.2rem; }
.lp-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.lp-frow:nth-child(even) .lp-photo { order: 2; }
.lp-frow .lp-photo { aspect-ratio: 3 / 2; }
.lp-frow .lp-feature { box-shadow: none; border-left: 0; background: none; padding: 0; }
.lp-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--primary-2); background: var(--primary-soft); padding: .2rem .6rem; border-radius: 99px; margin-bottom: .5rem; }
.lp-frow h3 { font-size: 1.35rem; margin: 0 0 .6rem; }
.lp-frow ul { list-style: none; padding: 0; color: var(--text); }
.lp-frow li { position: relative; padding-left: 1.6rem; margin: .45rem 0; }
.lp-frow li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.lp-credit { font-size: .75rem; color: var(--muted); }
@media (max-width: 860px) {
  .lp-split, .lp-frow, .lp-roles-stack { grid-template-columns: 1fr; }
  .lp-frow:nth-child(even) .lp-photo { order: 0; }
  .lp-photo-tall { min-height: 220px; max-height: 300px; }
  .lp-frows { gap: 2rem; }
}

/* Giriş ekranları: görselli tanıtım + form */
.auth-split { display: grid; grid-template-columns: 1.15fr 1fr; min-height: calc(100vh - 58px); }
.auth-promo { position: relative; color: #fff; background: linear-gradient(160deg, rgba(14,40,66,.92) 0%, rgba(31,78,121,.82) 55%, rgba(31,78,121,.6) 100%), var(--auth-img) center / cover no-repeat; display: flex; align-items: center; }
.auth-promo-inner { padding: 3rem clamp(1.5rem, 5vw, 4rem); max-width: 640px; }
.auth-promo h2 { font-size: 2rem; line-height: 1.2; margin: .8rem 0 1.4rem; }
.auth-slides { position: relative; min-height: 230px; margin-bottom: 1.4rem; }
.auth-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 170px 1fr; gap: 1rem; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: .9rem; backdrop-filter: blur(4px); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; pointer-events: none; }
.auth-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.auth-slide img { width: 170px; height: 190px; object-fit: cover; border-radius: 10px; }
.auth-slide h3 { margin: .3rem 0 .4rem; font-size: 1.15rem; }
.auth-slide p { margin: .2rem 0; font-size: .9rem; opacity: .9; }
.auth-slide-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: .15rem .55rem; border-radius: 99px; }
.auth-dots { position: absolute; left: 0; bottom: -1.5rem; display: flex; gap: .4rem; }
.auth-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.auth-dots button.active { background: #fff; width: 22px; border-radius: 99px; }
.auth-promo .lp-checks { margin-top: 2.4rem; }
.auth-promo-link { display: inline-block; margin-top: 1.2rem; color: #fff; font-weight: 600; opacity: .9; }
.auth-promo-link:hover { opacity: 1; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 16px; background: var(--bg); }
.auth-box { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 50px rgba(16,24,40,.1); padding: 2rem; }
.auth-box h1 { margin: .2rem 0 .4rem; font-size: 1.6rem; }
.auth-site { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--primary-2); background: var(--primary-soft); padding: .2rem .6rem; border-radius: 99px; }
.auth-form { margin: 1.2rem 0 1rem; }
.auth-form .field { margin-bottom: .9rem; }
.auth-alt { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .5rem; flex-wrap: wrap; }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .auth-main { order: -1; padding-top: 1.5rem; }
  .auth-promo-inner { padding: 2rem 16px 2.5rem; }
  .auth-promo h2 { font-size: 1.4rem; }
  .auth-slide { grid-template-columns: 110px 1fr; }
  .auth-slide img { width: 110px; height: 130px; }
  .auth-slides { min-height: 170px; }
}

/* Tanıtım sitesi: kurumsal menü, sayfalar ve alt bilgi */
.pub-drop { position: relative; }
.pub-drop-btn { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 0; }
.pub-drop-menu { display: none; position: absolute; top: 100%; left: -.75rem; min-width: 210px; padding-top: .6rem; z-index: 50; }
.pub-drop-menu::before { content: ""; position: absolute; inset: .6rem 0 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(16,24,40,.15); z-index: -1; }
.pub-drop:hover .pub-drop-menu, .pub-drop:focus-within .pub-drop-menu { display: block; }
.topbar .pub-drop-menu a { display: block; color: var(--text); padding: .55rem .9rem; }
.topbar .pub-drop-menu a:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.pub-mobile { display: none; position: relative; }
.pub-mobile summary { list-style: none; cursor: pointer; font-size: 1.35rem; line-height: 1; padding: .2rem .45rem; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; }
.pub-mobile summary::-webkit-details-marker { display: none; }
.pub-mobile-menu { position: absolute; right: 0; top: calc(100% + .5rem); background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(16,24,40,.15); min-width: 220px; padding: .35rem; z-index: 60; }
.topbar .pub-mobile-menu a { display: block; color: var(--text); padding: .55rem .75rem; border-radius: 6px; }
.topbar .pub-mobile-menu a:hover { background: var(--primary-soft); text-decoration: none; }
@media (max-width: 980px) { .pub-mobile { display: block; } }

.pub-hero { background: linear-gradient(115deg, rgba(14,40,66,.93), rgba(31,78,121,.78)), var(--pub-img, linear-gradient(140deg, #163a5c, #2c6aa3)) center / cover no-repeat; color: #fff; padding: 3.2rem 0 3rem; }
.pub-hero h1 { font-size: 2.3rem; margin: .4rem 0 .5rem; }
.pub-hero p { font-size: 1.08rem; opacity: .92; max-width: 680px; margin: 0; }
.pub-crumb { font-size: .85rem; opacity: .85; }
.pub-crumb a { color: #fff; }
.pub-page { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; padding-top: 2.2rem; padding-bottom: 3rem; align-items: start; }
.pub-article { min-width: 0; font-size: 1.04rem; line-height: 1.7; }
.pub-article h2 { font-size: 1.35rem; margin: 1.8rem 0 .6rem; }
.pub-article ul { padding-left: 1.2rem; }
.pub-article li { margin: .3rem 0; }
.pub-side { display: grid; gap: 1rem; position: sticky; top: 1rem; }
.pub-side .card { margin: 0; }
.pub-side h3 { margin: 0 0 .6rem; font-size: 1rem; }
.pub-side .card > a:not(.btn) { display: block; padding: .4rem 0; border-top: 1px solid var(--border); }
.pub-cta .btn { display: block; text-align: center; margin-top: .5rem; }
.pub-contact-card p { margin: .7rem 0; }
.pub-contact-card .label { display: block; font-size: .78rem; color: var(--muted); }

.pub-footer { background: #10263d; color: #c9d6e3; margin-top: 0; padding: 3rem 0 1.2rem; font-size: .92rem; }
.pub-footer a { color: #e6eef6; }
.pub-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.pub-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .8rem; }
.pub-footer-grid > div > a, .pub-footer-grid > div > span { display: block; margin: .35rem 0; }
.pub-footer-brand { color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: .5rem; }
.pub-footer p { margin: 0 0 1rem; line-height: 1.6; }
.pub-social { display: flex; gap: .8rem; flex-wrap: wrap; }
.pub-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; font-size: .82rem; }
.pub-legal { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .pub-page { grid-template-columns: 1fr; }
  .pub-side { position: static; }
  .pub-footer-grid { grid-template-columns: 1fr 1fr; }
  .pub-hero h1 { font-size: 1.7rem; }
}
@media (max-width: 640px) {
  .pub-footer { font-size: .86rem; padding: 2rem 0 1rem; }
  .pub-footer-grid { grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
  .pub-footer-grid > div:first-child { grid-column: 1 / -1; }
  .pub-footer-grid > div > a, .pub-footer-grid > div > span { margin: .2rem 0; }
  .pub-footer h4 { margin-bottom: .4rem; }
  .pub-footer-bottom { margin-top: 1.2rem; gap: .4rem; }
  .pub-legal { gap: .3rem .9rem; font-size: .78rem; }
}

/* Tanıtım sitesi: üst menü dar ekranda tek satır */
.topbar .brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pub-mobile-actions { display: none; gap: .4rem; padding: .5rem .35rem .25rem; border-top: 1px solid var(--border); margin-top: .35rem; }
.topbar .pub-mobile-actions .btn { flex: 1; text-align: center; color: #fff; }
.topbar .pub-mobile-actions .btn.secondary { color: var(--primary); }
@media (max-width: 640px) {
  .topbar .container { flex-wrap: nowrap; min-height: 54px; }
  .topbar .brand { flex: 1; font-size: 1rem; }
  .topbar nav { flex-wrap: nowrap; gap: .5rem; }
  .pub-top-action { display: none; }
  .pub-mobile-actions { display: flex; }
  .pub-mobile-menu { position: fixed; left: 12px; right: 12px; top: 58px; min-width: 0; max-height: calc(100vh - 70px); overflow-y: auto; }
  .pub-hero { padding: 2.2rem 0 2rem; }
  .pub-hero p { font-size: 1rem; }
  .pub-page { padding-top: 1.5rem; gap: 1.2rem; }
  .pub-article { font-size: 1rem; }
  .pub-footer { padding-top: 2.2rem; }
  .pub-footer-grid { gap: 1.2rem; }
  .pub-footer-bottom { flex-direction: column; }
}

/* İşlem yapılmazsa oturum kapanır uyarısı */
.idle-warn { position: fixed; z-index: 1000; left: 50%; bottom: 1.25rem; transform: translateX(-50%); width: min(560px, calc(100% - 2rem));
  background: var(--surface); border: 2px solid var(--warn); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.25);
  padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.idle-warn[hidden] { display: none; }
.idle-warn p { margin: 0; flex: 1 1 260px; }
