/* Yozgat Köprü — lansman önizlemesi. Tokenlar mobile/constants/theme.ts (Modern Blue) ile birebir. */
:root {
  --primary: #0A66C2;
  --primary-muted: #E8F2FC;
  --accent: #06B6D4;
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --surface-muted: #EEF2F7;
  --border: #D7DEE8;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  --icon: #64748B;
  --danger: #DC2626;
  --success: #16A34A;
  --warning: #D97706;
  --overlay: rgba(15, 23, 42, .45);
  --tab-inactive: #94A3B8;
  --shadow: 0 4px 12px rgba(15, 23, 42, .08);
  --map-land: #EAF0F6;
  --map-road: #FFFFFF;
  --map-park: #CDEBD3;
  --map-water: #BFE3F5;

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-theme="dark"] {
  --primary: #3B9EFF;
  --primary-muted: #1E3A5F;
  --accent: #22D3EE;
  --bg: #0B1220;
  --surface: #111827;
  --surface-muted: #1E293B;
  --border: #334155;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-inverse: #0F172A;
  --icon: #94A3B8;
  --danger: #F87171;
  --success: #4ADE80;
  --warning: #FBBF24;
  --overlay: rgba(0, 0, 0, .55);
  --tab-inactive: #64748B;
  --shadow: 0 4px 12px rgba(0, 0, 0, .35);
  --map-land: #152033;
  --map-road: #24324A;
  --map-park: #173A2B;
  --map-water: #12314A;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; font-size: 16px; color: var(--text); }
svg.ic { flex: none; display: block; }

/* ---------- Sunum düzeni (masaüstü) + cihaz çerçevesi ---------- */
.p-top, .p-arrow, .p-nav, .p-show, .p-intro, .p-video, .p-app-tools, .p-qr-side { display: none; }
.fake-status { display: none; }
.device { position: fixed; inset: 0; background: var(--bg); color: var(--text); overflow: hidden; }
.app { position: absolute; inset: 0; }

@media (min-width: 760px) {
  body {
    --p-navy: #0F2A4F; --p-brand: #4763A0; --p-ink: #13294B; --p-muted: #5B6B85;
    background: #F3F6FB; color: var(--p-ink); overflow: hidden;
  }
  body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 82% 58%, #DCE7F7 0%, rgba(220,231,247,0) 70%); }
  .p-top { display: flex; position: fixed; top: 0; left: 0; right: 0; height: 84px; align-items: center; justify-content: space-between; padding: 0 40px; border-bottom: 1px solid #E1E8F2; background: rgba(243,246,251,.85); backdrop-filter: blur(8px); z-index: 20; }
  .p-logo { height: 58px; width: auto; }
  .p-tagline { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--p-brand); white-space: nowrap; }
  .p-icon-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #E3EAF5; color: var(--p-ink); transition: background .15s, transform .15s; }
  .p-icon-btn:hover { background: #D5DFEE; }
  .p-icon-btn:active { transform: scale(.95); }

  .p-stage { position: fixed; top: 84px; bottom: 58px; left: 0; right: 0; transition: bottom .3s; }
  body.p-nav-hidden .p-stage { bottom: 0; }
  .p-sec { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
  .p-sec.on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s ease; }

  .p-eyebrow { font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--p-brand); font-weight: 500; }
  .p-eyebrow span { color: var(--p-muted); margin: 0 4px; }
  .p-intro { justify-content: flex-start; padding: 0 clamp(120px, 9vw, 180px); overflow: hidden; }
  .p-intro-inner { position: relative; max-width: 900px; }
  .p-h1 { font-size: clamp(56px, 6.4vw, 104px); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 0; font-weight: 800; color: var(--p-ink); }
  .p-h1 em, .p-h2 em { font-style: normal; color: var(--p-brand); }
  .p-lead { font-size: clamp(20px, 1.7vw, 28px); margin: 44px 0 0; color: var(--p-ink); }
  .p-pillars { list-style: none; padding: 0; margin: 52px 0 0; display: flex; gap: 22px; font-size: clamp(18px, 1.4vw, 22px); }
  .p-pillars li { border-top: 2px solid var(--p-brand); padding: 14px 18px 0 0; min-width: 96px; }
  .p-fed { position: absolute; right: clamp(110px, 10vw, 240px); top: 50%; width: min(24vw, 46vh); max-width: 460px; transform: translateY(-50%); filter: drop-shadow(0 24px 48px rgba(15,42,79,.18)); pointer-events: none; }
  .p-sec.on .p-fed { animation: fedIn .8s .2s both; }
  @keyframes fedIn { from { opacity: 0; transform: translateY(-50%) scale(.9); } to { opacity: 1; transform: translateY(-50%); } }
  .p-watermark { position: absolute; right: -4vw; bottom: 6%; width: 46vw; max-width: 760px; opacity: .07; pointer-events: none; }
  .p-sec.on .p-h1, .p-sec.on .p-lead, .p-sec.on .p-pillars, .p-sec.on .p-eyebrow { animation: fadeUp .7s both; }
  .p-sec.on .p-h1 { animation-delay: .08s; } .p-sec.on .p-lead { animation-delay: .2s; } .p-sec.on .p-pillars { animation-delay: .3s; }

  .p-app { z-index: 1; }
  .device {
    position: relative; inset: auto; flex: none;
    width: 393px; height: min(852px, calc(100vh - 84px - 58px - 40px));
    border-radius: 54px; border: 12px solid #0B1220;
    box-shadow: 0 0 0 2px #334155, 0 40px 80px rgba(15,42,79,.35);
    --sat: 50px; --sab: 22px;
  }
  body.p-nav-hidden .device { height: min(852px, calc(100vh - 84px - 40px)); }
  .device::after { /* dynamic island */
    content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 34px; border-radius: 20px; background: #000; z-index: 100; pointer-events: none;
  }
  .fake-status {
    display: flex; position: absolute; top: 0; left: 0; right: 0; height: 50px; z-index: 90;
    justify-content: space-between; align-items: center; padding: 6px 30px 0 38px;
    font-weight: 600; font-size: 15px; color: var(--text); pointer-events: none;
  }
  .fake-status svg { fill: currentColor; }
  .fs-icons { display: flex; gap: 6px; align-items: center; }
  .splash .splash-inner { margin-top: 0; }

  /* Uygulama bölümünde QR katmanı: telefonun solunda (iOS ve Web) ve sağında (Android) */
  body { --nav-h: 58px; --phone-w: 417px; }
  body.p-nav-hidden { --nav-h: 0px; }
  .p-app-tools { display: flex; flex-direction: column; gap: 12px; position: absolute; top: 20px; right: 28px; z-index: 6; }
  .p-tool { width: 60px; height: 60px; border-radius: 16px; background: #fff; border: 1px solid #DCE4F0; box-shadow: 0 8px 24px rgba(15,42,79,.1); }
  .p-tool svg { width: 30px; height: 30px; }
  .p-tool[aria-pressed="true"] { background: var(--p-navy); color: #fff; border-color: var(--p-navy); }
  .p-qr-side {
    --qr: min(16vw, 270px, calc((100vw - var(--phone-w)) / 2 - 120px), calc(100vh - 84px - var(--nav-h) - 240px));
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    position: absolute; top: 0; bottom: 0; width: calc((100vw - var(--phone-w)) / 2); margin: 0;
    opacity: 0; pointer-events: none; transition: opacity .4s ease, transform .4s ease;
  }
  .p-qr-side.left { left: 0; transform: translateX(-24px); }
  .p-qr-side.right { right: 0; transform: translateX(24px); }
  body.p-qr-open .p-qr-side { opacity: 1; transform: none; pointer-events: auto; }
  .p-qr-card { background: #fff; border-radius: 24px; padding: 18px; box-shadow: 0 30px 70px rgba(15,42,79,.16); border: 1px solid #E1E8F2; }
  .p-qr-code { width: var(--qr); aspect-ratio: 1; }
  .p-qr-code svg, .p-qr-code img { width: 100%; height: 100%; display: block; object-fit: contain; }
  .p-qr-code svg path, .p-qr-code svg rect[fill="black"] { fill: var(--p-navy); }
  .p-qr-title { display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 2.3vw, 38px); font-weight: 800; letter-spacing: -.01em; color: var(--p-ink); }
  .p-qr-cap { font-size: clamp(18px, 1.5vw, 24px); font-weight: 600; color: var(--p-brand); }
  .p-qr-icons { display: inline-flex; gap: 8px; color: var(--p-brand); }
  body.p-qr-open .p-arrow { opacity: 0; pointer-events: none; }

  .p-video { padding: 32px 160px; }
  .p-video-frame { width: min(100%, calc((100vh - 84px - 58px - 64px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--p-navy); box-shadow: 0 30px 70px rgba(15,42,79,.25); }
  .p-video-frame iframe, .p-video-frame video { width: 100%; height: 100%; border: 0; display: block; background: #000; object-fit: contain; }
  .p-video-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; color: #fff; background: radial-gradient(80% 90% at 70% 20%, #2A4A80 0%, var(--p-navy) 70%); }
  .p-video-logo { width: 22%; opacity: .9; }
  .p-play { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.5); padding-left: 6px; }

  .p-arrow { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 60px; height: 60px; border-radius: 50%; color: var(--p-ink); background: rgba(255,255,255,.75); border: 1px solid #DCE4F0; box-shadow: 0 8px 24px rgba(15,42,79,.08); transition: background .15s, transform .15s, opacity .3s; }
  .p-arrow:hover { background: #fff; }
  .p-arrow.prev { left: 28px; } .p-arrow.next { right: 28px; }
  .p-arrow.prev:active { transform: translateY(-50%) translateX(-2px); } .p-arrow.next:active { transform: translateY(-50%) translateX(2px); }

  .p-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 58px; align-items: center; justify-content: center; gap: 6px; background: var(--p-navy); z-index: 20; transition: transform .3s; }
  body.p-nav-hidden .p-nav { transform: translateY(100%); }
  .p-nav button { color: #DCE5F3; width: 52px; height: 40px; display: grid; place-items: center; border-radius: 10px; transition: background .15s; }
  .p-nav button:hover { background: rgba(255,255,255,.08); }
  .p-nav button.on { background: #fff; color: var(--p-ink); }
  .p-nav-sep { width: 1px; height: 24px; background: rgba(255,255,255,.18); margin: 0 10px; }
  .p-nav .p-hide { color: #9FB2CF; }
  .p-show:not([hidden]) { display: grid; place-items: center; position: fixed; right: 20px; bottom: 16px; z-index: 21; width: 44px; height: 44px; background: var(--p-navy); color: #fff; border-radius: 12px; opacity: .55; }
  .p-show:hover { opacity: 1; }
}
@media (min-width: 760px) and (max-width: 1100px) {
  .p-tagline { display: none; }
  .p-qr-title { font-size: 22px; }
  .p-qr-cap { font-size: 16px; }
}
}

/* ---------- Splash ---------- */
.splash {
  position: absolute; inset: 0; z-index: 200;
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center; color: #4763A0;
  transition: opacity .45s ease, transform .45s ease;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s ease, visibility 0s .45s; }
/* Logo ve yazı kendi animasyon katmanlarında kalıp uygulamanın üstünde asılı kalmasın diye ayrıca gizlenir. */
.splash.hide .splash-inner, .splash.hide .splash-bar { opacity: 0; transition: opacity .2s ease; }
.splash.hide .splash-mark, .splash.hide .splash-sub { animation: none; }
.splash-inner { text-align: center; }
.splash-mark { width: 190px; animation: markIn .9s cubic-bezier(.2,.9,.3,1.2) both; }
.splash-title { font-size: 33px; font-weight: 800; letter-spacing: .02em; margin-top: 22px; animation: fadeUp .6s .25s both; }
.splash-sub { font-size: 15px; color: #6B7FA8; margin-top: 18px; font-weight: 500; animation: fadeUp .6s .4s both; }
.splash-bar { position: absolute; bottom: calc(64px + var(--sab)); width: 120px; height: 4px; border-radius: 4px; background: rgba(71,99,160,.15); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: #4763A0; animation: load 1.1s ease-in-out infinite; }
@keyframes markIn { from { opacity: 0; transform: translateY(18px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ---------- Ekran yığını ---------- */
.screen {
  position: absolute; inset: 0; background: var(--bg);
  display: flex; flex-direction: column; will-change: transform;
}
.screen.with-tabs { bottom: calc(56px + var(--sab)); }
.screen.push-in { animation: pushIn .32s cubic-bezier(.2,.8,.2,1) both; box-shadow: -8px 0 24px rgba(0,0,0,.08); }
.screen.push-under { animation: pushUnder .32s cubic-bezier(.2,.8,.2,1) both; }
.screen.pop-out { animation: popOut .28s cubic-bezier(.4,0,.6,1) both; z-index: 5; }
.screen.pop-under { animation: popUnder .28s cubic-bezier(.4,0,.6,1) both; }
.screen.fade-in { animation: fadeIn .22s ease both; }
@keyframes pushIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pushUnder { from { transform: none; } to { transform: translateX(-28%); } }
@keyframes popOut { from { transform: none; } to { transform: translateX(100%); } }
@keyframes popUnder { from { transform: translateX(-28%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.android .screen.push-in { animation-name: aIn; box-shadow: none; }
.android .screen.pop-out { animation-name: aOut; }
.android .screen.push-under, .android .screen.pop-under { animation: none; }
@keyframes aIn { from { opacity: 0; transform: translateY(6%); } to { opacity: 1; transform: none; } }
@keyframes aOut { from { opacity: 1; } to { opacity: 0; transform: translateY(6%); } }

.header {
  flex: none; padding-top: var(--sat); background: var(--bg);
  position: relative; z-index: 2;
}
.header.bordered { box-shadow: 0 .5px 0 var(--border); }
.header-bar { height: 50px; display: flex; align-items: center; padding: 0 8px; gap: 4px; }
.header-title { flex: 1; font-size: 17px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.android .header-title { text-align: left; font-size: 20px; font-weight: 500; padding-left: 8px; }
.header-side { min-width: 72px; display: flex; align-items: center; }
.header-side.right { justify-content: flex-end; }
.android .header-side { min-width: 0; }
.back-btn { display: flex; align-items: center; color: var(--primary); font-size: 17px; height: 44px; padding-right: 8px; }
.android .back-btn { color: var(--text); width: 44px; justify-content: center; }
.android .back-btn span { display: none; }
.head-action { color: var(--primary); font-weight: 700; font-size: 15px; padding: 10px 12px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 20px; color: var(--text); position: relative; flex: none; }
.icon-btn .dot { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.header-side { min-width: 84px; }
.icon-btn:active { background: var(--surface-muted); }

.content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.content::-webkit-scrollbar { display: none; }
.pad { padding: 0 24px 32px; }
.screen.no-header .content { padding-top: var(--sat); }

/* ---------- Tab bar ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(56px + var(--sab)); padding-bottom: var(--sab);
  background: var(--surface); border-top: .5px solid var(--border);
  display: flex; transition: transform .25s ease;
}
.tabbar.hidden { transform: translateY(110%); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--tab-inactive); font-size: 10.5px; font-weight: 500; position: relative; }
.tab.active { color: var(--primary); }
.tab.active svg { fill: color-mix(in srgb, currentColor 18%, transparent); }
.tab:active svg { transform: scale(.88); }
.tab svg { transition: transform .15s; }
.tab .dot { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.android .tab.active::before { content: ""; position: absolute; top: 6px; width: 56px; height: 30px; border-radius: 15px; background: var(--primary-muted); z-index: -1; }
.android .tab { z-index: 0; }

/* ---------- Temel bileşenler ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; box-shadow: var(--shadow);
}
.card.tight { padding: 16px; }
.pressable { transition: transform .12s ease, opacity .12s ease; cursor: pointer; }
.pressable:active { transform: scale(.985); opacity: .92; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; line-height: 18px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-display { font-size: 34px; font-weight: 700; line-height: 40px; }
.t-title { font-size: 22px; font-weight: 700; line-height: 28px; margin: 0; }
.t-title-sm { font-size: 18px; font-weight: 600; line-height: 24px; margin: 0; }
.t-body { font-size: 16px; line-height: 24px; }
.t-label { font-size: 14px; font-weight: 600; }
.primary { color: var(--primary); }
.center { text-align: center; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb16 { margin-bottom: 16px; }

.btn {
  min-height: 52px; border-radius: 12px; padding: 0 20px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600; background: var(--primary); color: var(--text-inverse);
  transition: opacity .12s, transform .12s;
}
.btn:active { opacity: .9; transform: scale(.99); }
.btn.secondary { background: var(--surface-muted); color: var(--text); border: 1px solid var(--border); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.destructive { background: var(--danger); color: #fff; }
.btn.success { background: var(--success); color: #fff; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; }

.search-box {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); padding: 0 14px; height: 48px; color: var(--text-muted);
}
.search-box.muted-bg { background: var(--surface-muted); }
.search-box input { border: 0; outline: 0; background: transparent; flex: 1; height: 100%; padding: 0; }
.search-box input::placeholder { color: var(--text-muted); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 24px; margin: 0 -24px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; white-space: nowrap;
}
.chip.active { border-color: var(--primary); background: var(--primary-muted); color: var(--primary); }
.chip-sep { flex: none; width: 1px; background: var(--border); margin: 0 4px; }

.segment { display: flex; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; position: relative; }
.segment button { flex: 1; padding: 8px 0; border-radius: 9px; font-weight: 700; color: var(--text-muted); position: relative; z-index: 1; transition: color .2s; }
.segment button.active { color: var(--primary); }
.segment button { font-size: 14px; white-space: nowrap; }
.segment .seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px - (var(--n, 2) - 1) * 4px) / var(--n, 2)); border-radius: 9px; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: transform .25s cubic-bezier(.2,.8,.2,1); }

.badge { display: inline-flex; align-items: center; gap: 3px; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge.warn { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); }
.badge.ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.badge.info { background: var(--primary-muted); color: var(--primary); }
.badge.danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

.section-head { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 12px; }
.section-head button { color: var(--primary); font-weight: 700; }

.logo { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; flex: none; letter-spacing: .02em; overflow: hidden; position: relative; }
.logo::after { content: ""; position: absolute; width: 70%; height: 70%; right: -20%; top: -20%; border-radius: 50%; background: rgba(255,255,255,.14); }
.logo.lg { width: 96px; height: 96px; border-radius: 22px; font-size: 32px; box-shadow: 0 10px 24px rgba(10,102,194,.25); }
.logo.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.logo.img { border: 1px solid var(--border); padding: 5px; }
.logo.img::after { display: none; }
.logo.img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo.img.lg { padding: 10px; }
.logo.img.sm { padding: 3px; }
.badge.tier-elit { background: linear-gradient(135deg, #FDE68A, #F59E0B); color: #5B3A00; }
.badge.tier-kurumsal { background: color-mix(in srgb, #4763A0 16%, transparent); color: #4763A0; }
[data-theme="dark"] .badge.tier-kurumsal { color: #9DB4E6; }
.badge.muted { background: var(--surface-muted); color: var(--text-muted); }
.icon-wrap { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-muted); color: var(--primary); display: grid; place-items: center; flex: none; }
.art { display: block; width: 100%; height: 100%; }
.cover { border-radius: 12px; overflow: hidden; height: 140px; position: relative; }
.cover.tall { height: 190px; border-radius: 16px; }
.thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; }

.stars { display: inline-flex; color: var(--warning); gap: 1px; }
.stars svg { fill: currentColor; }
.stars svg.empty { fill: none; }

.divider { height: 1px; background: var(--border); margin: 12px 0; }

/* Ana sayfa */
.greet-title { font-size: 26px; font-weight: 800; margin-top: 2px; letter-spacing: -.01em; }
.avatar { width: 44px; height: 44px; border-radius: 22px; background: var(--primary-muted); color: var(--primary); display: grid; place-items: center; font-weight: 800; flex: none; position: relative; }
.avatar.lg { width: 72px; height: 72px; border-radius: 36px; font-size: 28px; }
.avatar .pip { position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 6px; background: var(--danger); border: 2px solid var(--bg); }
.banners { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -24px 8px; padding: 0 24px; scroll-padding: 0 24px; }
.banners::-webkit-scrollbar { display: none; }
.banner { flex: none; width: 300px; height: 140px; border-radius: 14px; overflow: hidden; position: relative; scroll-snap-align: start; }
.banner-ov { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; }
.banner-ov b { display: block; font-size: 16px; font-weight: 800; }
.banner-ov span { font-size: 13px; color: #F0F0F0; }
.dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--border); transition: all .25s; }
.dots i.on { width: 18px; background: var(--primary); }
.quick-row { display: flex; gap: 8px; margin-bottom: 8px; }
.quick { flex: 1; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.quick .icon-wrap { width: 38px; height: 38px; border-radius: 12px; }
.quick-wide { width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-weight: 700; margin-bottom: 8px; text-align: left; }
.stat-grid { display: flex; gap: 8px; margin-top: 8px; }
.stat { flex: 1; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 12px 0; text-align: center; }
.stat b { display: block; font-size: 19px; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.stat span { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* Liste satırı */
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; width: 100%; text-align: left; }
.list-row .chev { color: var(--icon); }
.list-group { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.list-group .list-row { border: 0; border-radius: 0; box-shadow: none; }
.list-group .list-row + .list-row { border-top: 1px solid var(--border); }
.list-row:active { background: var(--surface-muted); }

/* Firma detayı */
.firm-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 8px 0 16px; text-align: center; }
.action-pill { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 12px; padding: 8px 16px; min-width: 88px; font-size: 12px; color: var(--text-muted); background: var(--surface); }
.action-pill.on-heart svg { color: var(--danger); fill: var(--danger); }
.action-pill.on-follow { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.contact-grid .btn:first-child { grid-column: 1 / -1; }
.contact-grid .btn.secondary { flex-direction: column; gap: 4px; min-height: 66px; padding: 0 6px; font-size: 13px; }
.info-list { display: grid; gap: 12px; }
.info-list .row { align-items: flex-start; }
.info-list svg { color: var(--primary); margin-top: 2px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px; }
.kv b { display: block; font-size: 18px; }
.kv span { font-size: 12px; color: var(--text-muted); }

/* Bildirimler */
.notif { padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); border-left: 4px solid transparent; display: flex; gap: 12px; text-align: left; width: 100%; }
.notif.unread { border-left-color: var(--primary); }
.notif.unread .n-title { font-weight: 800; }
.n-title { font-size: 16px; font-weight: 600; }

/* Form */
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.input { width: 100%; min-height: 52px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 12px 16px; outline: none; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
textarea.input { min-height: 96px; resize: none; }
.switch { width: 51px; height: 31px; border-radius: 16px; background: var(--border); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.switch.on { background: var(--success); }
.switch.on::after { transform: translateX(20px); }
.switch.locked { opacity: .5; }

/* Onboarding & karşılama */
.onb { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: var(--sat); padding-bottom: calc(16px + var(--sab)); background: var(--bg); }
.onb-top { display: flex; justify-content: flex-end; padding: 8px 24px; }
.onb-slides { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.onb-slides::-webkit-scrollbar { display: none; }
.onb-slide { flex: none; width: 100%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 36px; text-align: center; }
.onb-icon { width: 140px; height: 140px; border-radius: 70px; background: var(--primary-muted); color: var(--primary); display: grid; place-items: center; position: relative; }
.onb-icon::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--primary) 25%, transparent); animation: spin 24s linear infinite; }
.onb-dots { display: flex; justify-content: center; gap: 6px; padding: 20px 0; }
.onb-dots i { height: 8px; width: 8px; border-radius: 4px; background: var(--border); transition: all .25s; }
.onb-dots i.on { width: 20px; background: var(--primary); }
.welcome-hero { min-height: 360px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 32px; }
.blob { position: absolute; border-radius: 50%; }
.welcome-logo { position: absolute; top: 24px; right: 28px; width: 168px; animation: markIn .8s both; }
.welcome-brand { font-size: 34px; font-weight: 700; line-height: 40px; letter-spacing: 2px; color: var(--primary); position: relative; animation: fadeUp .6s both; }

/* Toast */
#toast-root { position: absolute; top: calc(var(--sat) + 8px); left: 12px; right: 12px; z-index: 150; pointer-events: none; display: grid; gap: 8px; }
.toast { background: var(--surface); border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(15,23,42,.18); border-left: 5px solid var(--success); display: flex; gap: 10px; align-items: center; animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2) both; pointer-events: auto; }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--primary); }
.toast.out { animation: toastOut .25s ease both; }
.toast b { font-size: 14px; display: block; }
.toast span { font-size: 13px; color: var(--text-muted); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-120%); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-120%); } }

/* Sheet */
.sheet-backdrop { position: absolute; inset: 0; z-index: 120; background: var(--overlay); animation: fadeIn .2s both; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 121; background: var(--surface); border-radius: 24px 24px 0 0; padding: 8px 24px calc(24px + var(--sab)); max-height: 88%; overflow-y: auto; animation: sheetIn .35s cubic-bezier(.2,.8,.2,1) both; }
.sheet.closing { animation: sheetOut .25s ease both; }
.sheet-backdrop.closing { animation: fadeOut .25s both; }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto 16px; }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { to { transform: translateY(100%); } }
@keyframes fadeOut { to { opacity: 0; } }
.qr-box { background: #fff; padding: 14px; border-radius: 16px; display: inline-block; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.code-big { font-size: 28px; font-weight: 900; letter-spacing: 2px; color: var(--primary); }
.ticket { border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.ticket-top { height: 110px; position: relative; }
.ticket-cut { position: relative; border-top: 2px dashed var(--border); margin: 0 16px; }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); }
.ticket-cut::before { left: -29px; } .ticket-cut::after { right: -29px; }

/* Skeleton */
.skel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: grid; gap: 10px; }
.skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--surface-muted) 25%, var(--border) 50%, var(--surface-muted) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skel i:nth-child(1) { width: 60%; height: 16px; } .skel i:nth-child(2) { width: 90%; } .skel i:nth-child(3) { width: 40%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Harita */
.map { position: relative; height: 260px; overflow: hidden; background: var(--map-land); }
.map svg.base { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.pin-head { width: 34px; height: 34px; border-radius: 17px 17px 17px 3px; transform: rotate(-45deg); background: var(--primary); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0,0,0,.25); border: 2px solid #fff; }
.pin-head svg { transform: rotate(45deg); color: #fff; }
.pin.event .pin-head { background: #F97316; }
.pin.branch .pin-head { background: #0F766E; }
.pin.sel .pin-head { transform: rotate(-45deg) scale(1.2); }
.me { position: absolute; left: 50%; top: 52%; width: 18px; height: 18px; border-radius: 50%; background: #3B82F6; border: 3px solid #fff; transform: translate(-50%,-50%); box-shadow: 0 0 0 0 rgba(59,130,246,.5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(59,130,246,.45); } 100% { box-shadow: 0 0 0 26px rgba(59,130,246,0); } }
.map-callout { position: absolute; left: 12px; right: 12px; bottom: 12px; }

/* Grafik */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 8px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars i { width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(var(--primary), var(--accent)); transform-origin: bottom; animation: grow .6s cubic-bezier(.2,.8,.2,1) both; }
.bars span { font-size: 11px; color: var(--text-muted); }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.kpi b { display: block; font-size: 22px; font-weight: 800; margin: 6px 0 2px; }
.kpi .up { color: var(--success); font-size: 12px; font-weight: 700; }

.faq summary { list-style: none; font-weight: 600; display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 14px 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details + details { border-top: 1px solid var(--border); }
.faq details[open] summary svg { transform: rotate(90deg); }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--text-muted); line-height: 22px; }

.empty { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty .icon-wrap { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 12px; }

/* Form */
.field-error { color: var(--danger); font-size: 13px; font-weight: 500; line-height: 18px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 20%, transparent); }
.form-banner { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: 14px; font-weight: 600; }

.install-card {background: linear-gradient(135deg, #0A66C2, #06B6D4); color: #fff; border-radius: 16px; padding: 16px; display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.install-card img { width: 44px; height: 44px; border-radius: 11px; }
.install-card button { background: #fff; color: #0A66C2; font-weight: 700; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.demo-ribbon { font-size: 11px; font-weight: 700; color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); padding: 6px 10px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; }

/* Paket seviyesi ve seçim kartları */
.lvl { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; flex: none; }
.lvl i { width: 5px; border-radius: 2px; background: var(--border); }
.lvl i:nth-child(1) { height: 6px; } .lvl i:nth-child(2) { height: 10px; } .lvl i:nth-child(3) { height: 14px; } .lvl i:nth-child(4) { height: 18px; }
.lvl i.on { background: var(--primary); }
.pkg-group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 4px 4px 6px; }
.pkg-list { display: grid; gap: 8px; }
.pkg-list[aria-invalid="true"] .pkg-option { border-color: var(--danger); }
.pkg-option { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
/* Gizli radio kartın içinde kalmalı; aksi hâlde odaklanınca tarayıcı dış çerçeveyi kaydırıyor. */
.pkg-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.pkg-option .pkg-check { width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--border); display: grid; place-items: center; flex: none; color: transparent; transition: all .15s; }
.pkg-option:has(input:checked) { border-color: var(--primary); background: var(--primary-muted); }
.pkg-option:has(input:checked) .pkg-check { background: var(--primary); border-color: var(--primary); color: #fff; }
.pkg-option:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.label-hint { font-weight: 500; color: var(--text-muted); }

/* Yakınımda: logolu firma işaretleri */
.pin.firm-logo { z-index: 2; }
.pin-card { width: 66px; height: 40px; border-radius: 10px; display: grid; place-items: center; padding: 5px; box-shadow: 0 6px 16px rgba(15,23,42,.28); border: 2px solid #fff; transition: transform .2s; }
.pin-card img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pin-tail { width: 10px; height: 10px; background: #fff; transform: rotate(45deg); margin-top: -6px; box-shadow: 2px 2px 4px rgba(15,23,42,.18); }
.pin-label { position: absolute; top: calc(100% + 2px); white-space: nowrap; font-size: 10.5px; font-weight: 700; color: var(--text); background: color-mix(in srgb, var(--surface) 88%, transparent); padding: 1px 6px; border-radius: 6px; pointer-events: none; }
.pin.firm-logo.sel .pin-card { transform: scale(1.15); }
.near-map { height: 320px; }

/* Yeni firma formu */
.ff-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ff-step { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--text-muted); line-height: 14px; }
.ff-step i { width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; background: var(--surface-muted); color: var(--text-muted); }
.ff-step.on { color: var(--primary); } .ff-step.on i { background: var(--primary); color: #fff; }
.ff-step.done i { background: var(--success); color: #fff; }
.ff-logo { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px dashed var(--border); border-radius: 12px; cursor: pointer; }
.ff-logo img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.ff-person { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg); }
.ff-person + .ff-person { margin-top: 10px; }
.ff-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ff-map { height: 200px; border-radius: 12px; cursor: crosshair; border: 1px solid var(--border); }
.ff-pin { position: absolute; transform: translate(-50%, -100%); pointer-events: none; }
.ff-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 18px; color: var(--text-muted); background: var(--primary-muted); border-radius: 12px; padding: 12px; }
.ff-note svg { color: var(--primary); margin-top: 1px; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
select.input:disabled { opacity: .6; }

/* Gerçek harita (Leaflet) */
.lmap { position: absolute; inset: 0; z-index: 1; }
.lmap.leaflet-container { background: transparent; font: inherit; }
.lf-icon { background: none; border: 0; }
.lf-icon .pin, .lf-icon .me { left: 0; top: 0; }
.lf-icon .me { transform: translate(-50%, -50%); }
.pin-wrap { position: absolute; }
.map .map-callout { z-index: 1001; }
.map .leaflet-control-attribution { font-size: 9px; padding: 0 5px; background: color-mix(in srgb, var(--surface) 75%, transparent); color: var(--text-muted); }
.map .leaflet-control-attribution a { color: inherit; }
.map .leaflet-bar { border: 0; box-shadow: 0 4px 12px rgba(15,23,42,.18); border-radius: 10px; overflow: hidden; }
.map .leaflet-bar a { width: 32px; height: 32px; line-height: 32px; background: var(--surface); color: var(--text); border-color: var(--border); }
.leaflet-marker-icon.lf-icon:hover { z-index: 1000 !important; }
.lmap .pin-card img { position: static !important; width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; padding: 0 !important; }
[data-theme="dark"] .lmap .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.6); }

/* Doğrulama kodu (OTP) */
.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; cursor: text; }
.otp i { height: 56px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); display: grid; place-items: center; font-style: normal; font-size: 26px; font-weight: 800; color: var(--text); transition: border-color .15s, transform .15s; }
.otp i.filled { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); animation: otpPop .22s ease; }
.otp:focus-within i.on, .otp i.on:empty { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.otp i.on:empty::after { content: ""; width: 2px; height: 26px; background: var(--primary); animation: blink 1s steps(1) infinite; }
.otp input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; border: 0; caret-color: transparent; }
@keyframes otpPop { from { transform: scale(.88); } to { transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
