/* HEY AI — mobil uygulama tasarım sistemi
   Sistem fontu (iOS: SF Pro, Android: Roboto), marka renkleri, açık/koyu tema. */
[hidden] { display: none !important; }

:root {
  --navy: #0A2147;
  --navy-2: #12305F;
  --teal: #16AFB2;
  --teal-2: #22C7C9;
  --teal-soft: rgba(22, 175, 178, .12);
  --green: #22C55E;
  --red: #E5484D;
  --amber: #F5A524;

  --bg: #F2F4F8;
  --surface: #FFFFFF;
  --surface-2: #F7F8FB;
  --ink: #0B1B33;
  --ink-2: #44536A;
  --ink-3: #8592A6;
  --line: rgba(11, 27, 51, .08);
  --line-2: rgba(11, 27, 51, .14);
  --shadow: 0 1px 2px rgba(11, 27, 51, .05), 0 6px 18px rgba(11, 27, 51, .06);
  --bubble-me: #0A2147;
  --bubble-me-ink: #fff;
  --bubble-them: #FFFFFF;

  --r-s: 10px;
  --r: 16px;
  --r-l: 22px;
  --tab-h: 58px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Montserrat Alternates", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070F1E;
    --surface: #0F1B30;
    --surface-2: #14223B;
    --ink: #EEF3FA;
    --ink-2: #B4C1D4;
    --ink-3: #7486A0;
    --line: rgba(255, 255, 255, .07);
    --line-2: rgba(255, 255, 255, .13);
    --shadow: none;
    --bubble-me: #16AFB2;
    --bubble-me-ink: #04222A;
    --bubble-them: #17263F;
    --teal-soft: rgba(34, 199, 201, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  /* Varsayılan tema: marka laciverti (Gece #04142F) */
  --bg: #04142F; --surface: #0B2247; --surface-2: #112B55; --ink: #EEF3FA; --ink-2: #BCC9DD; --ink-3: #8094B2;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.15); --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,6,20,.28); --bubble-me: #16AFB2; --bubble-me-ink: #04222A; --bubble-them: #13305C; --teal-soft: rgba(34,199,201,.16);
  color-scheme: dark;
}
:root[data-theme="dark"] body { background: radial-gradient(120% 60% at 100% 0%, rgba(14, 90, 138, .32), transparent 60%), var(--bg); }
:root[data-theme="dark"] .page { background: radial-gradient(110% 46% at 100% 0%, rgba(14, 90, 138, .30), transparent 62%), radial-gradient(70% 30% at 0% 100%, rgba(34, 199, 201, .06), transparent 70%), var(--bg); }
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .profile-top.pcard { background-color: #0E2D5C; box-shadow: 0 0 0 1px rgba(99, 242, 227, .12), 0 16px 36px rgba(0, 6, 20, .4); }
:root[data-theme="dark"] .date.navy { background: rgba(255,255,255,.08); color: #CFE0F5; }
:root[data-theme="dark"] .cal-grid button.sel { background: var(--teal); color: #04222A; }
:root[data-theme="dark"] .chip.green { background: rgba(34, 197, 94, .2); color: #8EEBB0; }
:root[data-theme="dark"] .chip.gray { background: rgba(255,255,255,.1); color: #C8D4E6; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.s { width: 18px; height: 18px; }
svg.i.xs { width: 15px; height: 15px; }

/* ---------- İskelet ---------- */
#app { position: fixed; inset: 0; display: flex; flex-direction: column; }
.stack { position: relative; flex: 1; overflow: hidden; }
.page { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); will-change: transform; }
.page.enter { animation: pageIn .32s var(--ease) both; }
.page.enter-back { animation: pageInBack .28s var(--ease) both; }
.page.leave { animation: pageOut .28s var(--ease) both; pointer-events: none; }
.page.fade { animation: fadeIn .22s ease both; }
@keyframes pageIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pageInBack { from { transform: translateX(-28%); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes pageOut { to { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
.no-tabs .scroll { padding-bottom: calc(var(--safe-b) + 24px); }

/* ---------- Üst çubuk ---------- */
.nav { position: relative; z-index: 5; padding: calc(var(--safe-t) + 6px) 8px 6px; display: flex; align-items: center; gap: 4px; min-height: calc(var(--safe-t) + 50px); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .t { flex: 1; text-align: center; font-weight: 600; font-size: 16.5px; opacity: 0; transition: opacity .18s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.nav.scrolled .t, .nav.always .t { opacity: 1; }
.nav .btn-i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--teal); }
.nav .btn-i:active { background: var(--line); }
.nav .back { display: flex; align-items: center; gap: 2px; color: var(--teal); font-weight: 500; padding: 8px 6px; border-radius: 10px; min-width: 40px; }
.nav .spacer { width: 40px; }
.big { padding: 2px 20px 12px; }
.big h1 { margin: 0; font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
.big p { margin: 4px 0 0; color: var(--ink-3); font-size: 14.5px; }

/* ---------- Alt sekmeler ---------- */
.tabs { position: relative; z-index: 6; display: flex; padding: 0 4px var(--safe-b); height: calc(var(--tab-h) + var(--safe-b)); background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); border-top: 1px solid var(--line); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); font-size: 10.5px; font-weight: 500; position: relative; transition: color .15s; }
.tabs a.on { color: var(--teal); }
.tabs a::before { content: ""; position: absolute; top: 5px; width: 54px; height: 30px; border-radius: 15px; background: var(--teal-soft); transform: scale(.4); opacity: 0; transition: transform .28s var(--ease), opacity .2s; }
.tabs a.on::before { transform: none; opacity: 1; }
.tabs a svg, .tabs a span { position: relative; }
.tabs a.on svg.i { stroke-width: 2.2; }
.tabs a:active svg { transform: scale(.88); }
.tabs a svg { transition: transform .15s; }
.tabs .dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.no-tabs .tabs { display: none; }
.tabs .dot[hidden], .quick .dot[hidden] { display: none; }

/* ---------- Bölümler ve kartlar ---------- */
.sec { padding: 0 16px; margin-top: 22px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 10px; }
.sec-h h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.sec-h a, .sec-h button { color: var(--teal); font-size: 14.5px; font-weight: 500; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.card + .card { margin-top: 12px; }
.pad { padding: 16px; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }

.list { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; min-height: 56px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: 64px; border-top: 1px solid var(--line); }
.list.flat .row + .row::before { left: 16px; }
a.row:active, button.row:active { background: var(--surface-2); }
button.row { width: 100%; text-align: left; }
.row .main { flex: 1; min-width: 0; }
.row .ttl { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { color: var(--ink-3); font-size: 13.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub.wrap { white-space: normal; }
.row .end { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; flex: none; }
.row .chev { color: var(--ink-3); opacity: .7; }
.ico-box { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--teal-soft); color: var(--teal); }
.ico-box.navy { background: rgba(10, 33, 71, .09); color: var(--navy); }
.ico-box.red { background: rgba(229, 72, 77, .12); color: var(--red); }
.ico-box.amber { background: rgba(245, 165, 36, .14); color: #B7770C; }
.ico-box.green { background: rgba(34, 197, 94, .13); color: #16A34A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico-box.navy { background: rgba(255,255,255,.08); color: #CFE0F5; } }
:root[data-theme="dark"] .ico-box.navy { background: rgba(255,255,255,.08); color: #CFE0F5; }

/* ---------- Avatar ve çevrimiçi ---------- */
.av { position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: #fff; letter-spacing: .01em; }
.av.s { width: 36px; height: 36px; font-size: 13px; }
.av.l { width: 84px; height: 84px; font-size: 28px; }
.av.xs { width: 28px; height: 28px; font-size: 11px; }
.av .on { position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 2.5px solid var(--surface); box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: ping 2.4s ease-out infinite; }
.av.l .on { width: 22px; height: 22px; border-width: 4px; right: 2px; bottom: 2px; }
.av.s .on, .av.xs .on { width: 11px; height: 11px; border-width: 2px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.online-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 20px 8px; scrollbar-width: none; }
.online-strip::-webkit-scrollbar { display: none; }
.online-strip a { width: 58px; flex: none; text-align: center; font-size: 11.5px; color: var(--ink-2); }
.online-strip .av { width: 54px; height: 54px; margin: 0 auto 5px; font-size: 17px; }
.online-strip span.n { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Kahraman alan (ana sayfa) ---------- */
.hero { margin: 0 16px; border-radius: var(--r-l); padding: 20px; color: #fff; background: var(--navy); background-image: radial-gradient(120% 90% at 100% 0%, rgba(34, 199, 201, .45), transparent 60%), radial-gradient(80% 60% at 0% 100%, rgba(22, 175, 178, .18), transparent 70%); position: relative; overflow: hidden; }
.hero.genc { background: #0B3B4F; background-image: radial-gradient(120% 90% at 100% 0%, rgba(92, 225, 227, .55), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(245, 165, 36, .25), transparent 70%); }
.hero .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #9FF0F1; font-weight: 600; }
.hero h2 { margin: 6px 0 2px; font-size: 24px; letter-spacing: -.02em; }
.hero p { margin: 0; color: #C5D4EA; font-size: 14px; }
.hero .chips { margin-top: 14px; }
.hero svg.stars { position: absolute; right: -6px; top: -6px; width: 120px; height: 120px; opacity: .22; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--teal-soft); color: var(--teal); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hero .chip { background: rgba(255, 255, 255, .12); color: #E4F7F8; }
.chip.green { background: rgba(34, 197, 94, .14); color: #15803D; }
.chip.red { background: rgba(229, 72, 77, .12); color: var(--red); }
.chip.gray { background: var(--line); color: var(--ink-2); }

/* ---------- Hızlı işlemler ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 16px; margin-top: 16px; }
.quick a, .quick button { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--ink-2); position: relative; }
.quick a:active, .quick button:active { transform: scale(.96); }
.quick .ico-box { width: 38px; height: 38px; border-radius: 12px; }
.quick .dot { position: absolute; top: 8px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* ---------- Tarih kutusu ---------- */
.date { width: 46px; flex: none; text-align: center; border-radius: 12px; background: var(--teal-soft); padding: 5px 0 6px; color: var(--teal); }
.date b { display: block; font-size: 19px; line-height: 1.1; font-weight: 700; }
.date span { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.date.navy { background: rgba(10, 33, 71, .08); color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .date.navy { background: rgba(255,255,255,.08); color: #CFE0F5; } }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px; font-weight: 600; font-size: 15.5px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); transition: transform .1s, opacity .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--navy); color: #fff; border-color: transparent; }
.btn.teal { background: var(--teal); color: #fff; border-color: transparent; }
.btn.danger { color: var(--red); }
.btn.block { width: 100%; }
.btn.s { height: 34px; padding: 0 14px; border-radius: 11px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--teal); color: #04222A; } }
:root[data-theme="dark"] .btn.primary { background: var(--teal); color: #04222A; }
.seg2 { display: flex; gap: 8px; }
.seg2 button { flex: 1; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14.5px; background: var(--surface); color: var(--ink-2); }
.seg2 button.on.yes { background: var(--teal); border-color: var(--teal); color: #fff; }
.seg2 button.on.no { background: rgba(229, 72, 77, .1); border-color: rgba(229, 72, 77, .35); color: var(--red); }
.seg2 button.on.maybe { background: rgba(245, 165, 36, .14); border-color: rgba(245, 165, 36, .4); color: #B7770C; }

.segment { display: flex; padding: 3px; border-radius: 11px; background: var(--line); margin: 0 16px; }
.segment button { flex: 1; height: 32px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.segment button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* ---------- Formlar ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 4px 6px; }
.input, textarea.input, select.input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; font-size: 16px; }
textarea.input { resize: none; line-height: 1.45; }
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.code-input { display: flex; gap: 8px; justify-content: center; }
.code-input input { width: 46px; height: 58px; text-align: center; font-size: 24px; font-weight: 700; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); outline: none; }
.code-input input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 16px; background: var(--line-2); transition: background .2s; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .22s var(--ease); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pick label:has(input:focus-visible) { outline: 2.5px solid var(--teal); outline-offset: 2px; }
.pick label:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.pick .n { font-size: 12px; opacity: .65; }

/* ---------- Giriş ---------- */
.login { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--navy); background-image: radial-gradient(90% 60% at 85% 0%, rgba(34, 199, 201, .45), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(22, 175, 178, .2), transparent 70%); color: #fff; overflow-y: auto; }
.login .top { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 40px) 28px 20px; text-align: center; }
.login .top img { width: 190px; }
.login .top { gap: 0; }
.login .top p { color: #B9C9E0; max-width: 300px; margin: 18px 0 0; font-size: 15px; }
.login .sheet { background: var(--surface); color: var(--ink); border-radius: 28px 28px 0 0; padding: 26px 22px calc(var(--safe-b) + 26px); animation: sheetUp .45s var(--ease) both; }
.login .sheet h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.login .sheet .muted { margin: 0 0 18px; font-size: 14.5px; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Sohbet ---------- */
.chat-wrap { flex: 1; overflow-y: auto; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior-y: contain; }
.msg { max-width: 78%; padding: 8px 12px 7px; border-radius: 19px; font-size: 15.5px; line-height: 1.38; word-wrap: break-word; white-space: pre-wrap; position: relative; animation: msgIn .22s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.msg.them { align-self: flex-start; background: var(--bubble-them); color: var(--ink); box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--bubble-me); color: var(--bubble-me-ink); border-bottom-right-radius: 6px; }
.msg.cont.them { border-top-left-radius: 6px; }
.msg.cont.me { border-top-right-radius: 6px; }
.msg .who { display: block; font-size: 12px; font-weight: 700; color: var(--teal); margin-bottom: 1px; }
.msg .tm { font-size: 10.5px; opacity: .55; margin-left: 8px; float: right; margin-top: 6px; }
.msg.pending { opacity: .6; }
.msg-gap { height: 8px; }
.day-sep { align-self: center; font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--line); padding: 3px 10px; border-radius: 10px; margin: 10px 0 6px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(var(--safe-b) + 8px); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 40px; max-height: 140px; padding: 9px 14px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); outline: none; resize: none; font-size: 16px; line-height: 1.35; }
.composer button { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; transition: transform .12s, opacity .15s; }
.composer button[disabled] { opacity: .35; }
.composer button:active { transform: scale(.9); }
.chat-head { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 0 4px; }
.chat-head .tt { min-width: 0; }
.chat-head b { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head small { display: block; font-size: 12px; color: var(--ink-3); }
.chat-head small.on { color: #16A34A; }
.unread { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }

/* ---------- Takvim ---------- */
.cal { padding: 4px 16px 0; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-h b { font-size: 18px; font-weight: 700; text-transform: capitalize; }
.cal-h .arrows { display: flex; gap: 4px; }
.cal-h .arrows button { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--teal); }
.cal-h .arrows button:active { background: var(--line); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 2px; }
.cal-grid .wd { font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 6px 0; }
.cal-grid button { height: 42px; border-radius: 12px; position: relative; font-size: 15px; font-weight: 500; }
.cal-grid button.out { color: var(--ink-3); opacity: .45; }
.cal-grid button.today { color: var(--teal); font-weight: 800; }
.cal-grid button.sel { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-grid button.sel { background: var(--teal); color: #04222A; } }
.cal-grid .dots { position: absolute; bottom: 5px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; }
.cal-grid .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.cal-grid .dots i.ev { background: var(--amber); }
.cal-grid button.sel .dots i { background: #fff; }

/* ---------- Durum, iskelet, boş ---------- */
.empty { text-align: center; padding: 34px 24px; color: var(--ink-3); }
.empty .ico-box { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 12px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.sk { background: linear-gradient(90deg, var(--line) 25%, var(--line-2) 50%, var(--line) 75%); background-size: 200% 100%; animation: sk 1.3s infinite linear; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.sk-row .a { width: 44px; height: 44px; border-radius: 50%; }
.sk-row .l1 { height: 13px; width: 60%; margin-bottom: 8px; }
.sk-row .l2 { height: 11px; width: 38%; }
.ptr { height: 0; overflow: hidden; display: grid; place-items: center; color: var(--ink-3); transition: height .2s; }
.ptr svg { transition: transform .2s; }
.ptr.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bildirim ve alt sayfa ---------- */
.toast { position: fixed; left: 50%; top: calc(var(--safe-t) + 10px); transform: translate(-50%, -140%); z-index: 100; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 16px; font-size: 14.5px; font-weight: 500; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); display: flex; align-items: center; gap: 8px; }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--red); color: #fff; }
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(5, 12, 26, .4); opacity: 0; transition: opacity .25s; }
.backdrop.show { opacity: 1; }
.sheet-m { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--surface); border-radius: 24px 24px 0 0; padding: 8px 18px calc(var(--safe-b) + 18px); transform: translateY(105%); transition: transform .32s var(--ease); max-height: 88vh; overflow-y: auto; }
.sheet-m.show { transform: none; }
.sheet-m .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 14px; }
.sheet-m h3 { margin: 0 0 4px; font-size: 19px; }

/* ---------- Detay ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 15px; }
.kv dt { color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kv dd { margin: 0; font-weight: 500; }
.prose { font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; }
.agenda { margin: 0; padding: 0; list-style: none; counter-reset: a; }
.agenda li { counter-increment: a; display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.agenda li:first-child { border-top: 0; }
.agenda li::before { content: counter(a); width: 24px; height: 24px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.dec { border-left: 3px solid var(--teal); padding: 4px 0 4px 12px; margin: 10px 0; }
.dec b { font-size: 14.5px; }
.profile-top { text-align: center; padding: 10px 20px 4px; }
.profile-top .av { margin: 0 auto 12px; }
.profile-top h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.profile-top p { margin: 4px 0 0; color: var(--ink-3); }
.actions3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.actions3 a, .actions3 button { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--teal); font-size: 13px; font-weight: 600; }
.actions3 .off { opacity: .35; pointer-events: none; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.stat { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; }
.stat b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--ink-3); }
.stat.hl { background: var(--navy); color: #fff; }
.stat.hl span { color: #B9C9E0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li:last-child { border-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); border: 2px solid var(--surface); }
.frame { width: 100%; border: 0; display: block; background: #EEF2F7; }
.banner { margin: 12px 16px 0; padding: 12px 14px; border-radius: 14px; display: flex; gap: 10px; align-items: center; background: var(--teal-soft); color: var(--ink); font-size: 14px; }
.banner .btn { margin-left: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pick label:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #04222A; } :root:not([data-theme="light"]) .stat.hl { background: var(--teal); color: #04222A; } :root:not([data-theme="light"]) .stat.hl span { color: #0B3B4F; } }
:root[data-theme="dark"] .pick label:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #04222A; }
:root[data-theme="dark"] .stat.hl { background: var(--teal); color: #04222A; }

/* =========================================================
   Marka hareketleri — logodaki yıldızlar
   ========================================================= */
.stars-c, .mark-c { display: block; overflow: visible; }
.stars-c .st, .mark-c .st { fill: var(--teal-2); transform-box: fill-box; transform-origin: center; }
.mark-c .frame path { fill: var(--teal-2); }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.72); filter: none; } 45% { opacity: 1; transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(92, 225, 227, .9)); } }
@keyframes flash { 0% { opacity: 0; transform: scale(.3) rotate(-25deg); } 35% { opacity: 1; transform: scale(1.18) rotate(0); filter: drop-shadow(0 0 8px rgba(92, 225, 227, .95)); } 70% { opacity: .9; transform: scale(.95); } 100% { opacity: 0; transform: scale(.6) rotate(12deg); } }
.twinkle .st { animation: twinkle 2.6s ease-in-out infinite; }
.twinkle .st1 { animation-delay: .45s; } .twinkle .st2 { animation-delay: .9s; }
.flash .st { opacity: 0; animation: flash .78s var(--ease) both; }
.flash .st1 { animation-delay: .08s; } .flash .st2 { animation-delay: .16s; }

.glint { position: fixed; z-index: 90; top: calc(var(--safe-t) + 8px); left: 50%; width: 30px; height: 32px; margin-left: -15px; pointer-events: none; opacity: 0; }
.glint.go { opacity: 1; }
.spark { position: fixed; z-index: 90; width: 22px; height: 24px; margin: -18px 0 0 -11px; pointer-events: none; }
.burst { position: fixed; z-index: 95; left: 50%; top: 42%; width: 120px; height: 126px; margin: -63px 0 0 -60px; pointer-events: none; }

.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #0A2147; background-image: radial-gradient(90% 60% at 85% 0%, rgba(34, 199, 201, .4), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(22, 175, 178, .18), transparent 70%); transition: opacity .4s ease; }
.splash.out { opacity: 0; }
.splash.out .splash-in { transform: scale(1.06); }
.splash-in { display: flex; flex-direction: column; align-items: center; gap: 18px; transition: transform .45s var(--ease); }
.splash .mark-c { width: 132px; height: 138px; }
.splash .mark-c .frame { animation: frameIn .55s var(--ease) both; transform-box: fill-box; transform-origin: center; }
@keyframes frameIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.intro .st { opacity: 0; animation: flash .7s var(--ease) both, twinkle 2.2s ease-in-out .7s infinite; }
.intro .st0 { animation-delay: .35s, 1.05s; } .intro .st1 { animation-delay: .5s, 1.2s; } .intro .st2 { animation-delay: .65s, 1.35s; }
.splash-w { color: #fff; font-size: 15px; letter-spacing: .42em; font-weight: 500; opacity: 0; animation: fadeIn .5s ease .55s both; padding-left: .42em; }
.splash-w b { color: var(--teal-2); font-weight: 700; }

/* yenileme göstergesi ve hero'daki yıldızlar */
.ptr .stars-c { width: 22px; height: 24px; }
.hero .hero-stars { position: absolute; right: 14px; top: 12px; width: 64px; height: 68px; opacity: .9; }
.login .mark-c { width: 96px; height: 100px; margin: 0 auto; }
.login .wm { margin-top: 14px; color: #fff; font-size: 14px; letter-spacing: .42em; padding-left: .42em; font-weight: 500; }
.login .wm b { color: var(--teal-2); }
.empty .stars-c { width: 44px; height: 46px; margin: 0 auto 10px; }
@media (prefers-reduced-motion: reduce) { .twinkle .st, .intro .st, .flash .st { animation: none !important; opacity: 1 !important; } .page.enter, .page.enter-back, .page.leave, .page.fade { animation-duration: .01s !important; } }

.seen { align-self: flex-end; font-size: 11.5px; color: var(--ink-3); margin: 3px 6px 0; animation: fadeIn .3s ease both; }
.seen[hidden] { display: none; }

/* =========================================================
   Dijital üye kartı
   ========================================================= */
.card-stage { padding: 18px 20px 0; perspective: 900px; }
.mcard { position: relative; aspect-ratio: 1.586; border-radius: 22px; padding: 20px 22px; color: #fff; overflow: hidden; background: #0A2147; background-image: radial-gradient(120% 120% at 100% 0%, rgba(34, 199, 201, .55), transparent 55%), radial-gradient(100% 90% at 0% 100%, rgba(22, 175, 178, .28), transparent 60%), linear-gradient(135deg, #0A2147, #0D2D5E); box-shadow: 0 20px 50px rgba(10, 33, 71, .35), inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .35s var(--ease); transform-style: preserve-3d; display: flex; flex-direction: column; }
.mcard.sk { background: var(--line); box-shadow: none; }
.mc-sheen { position: absolute; inset: 0; background: radial-gradient(circle at var(--sx, 30%) var(--sy, 20%), rgba(255, 255, 255, .22), transparent 45%), linear-gradient(115deg, transparent 30%, rgba(92, 225, 227, .16) 45%, rgba(255, 255, 255, .1) 50%, transparent 62%); background-size: 100% 100%, 250% 100%; animation: sheen 6s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 100% { background-position: 0 0, 120% 0; } 50% { background-position: 0 0, -20% 0; } }
.mc-stars { position: absolute; right: 18px; bottom: 56px; width: 74px; height: 78px; opacity: .85; }
.mc-top { display: flex; align-items: center; justify-content: space-between; }
.mc-top img { height: 32px; width: auto; }
.mc-top span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9FF0F1; background: rgba(255, 255, 255, .08); padding: 4px 9px; border-radius: 8px; }
.mc-name { margin-top: auto; font-size: 23px; font-weight: 700; letter-spacing: -.01em; }
.mc-sub { font-size: 13px; color: #B9D3EA; margin-top: 2px; min-height: 18px; }
.mc-bot { display: flex; gap: 26px; margin-top: 14px; }
.mc-bot small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #8FB3D6; }
.mc-bot b { font: 600 14px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; }
.qr-box { margin: 22px 20px 0; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.qr-box .qr { width: 210px; height: 210px; margin: 0 auto; display: block; border-radius: 14px; }
.qr-box p { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }
.hero .card-btn { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(6px); }

/* =========================================================
   Anketler
   ========================================================= */
.poll { display: flex; flex-direction: column; gap: 10px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); border: 1.5px solid transparent; text-align: left; overflow: hidden; flex-wrap: wrap; transition: border-color .15s, transform .1s; }
.opt:active { transform: scale(.985); }
.opt.on { border-color: var(--teal); }
.opt .bar { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--teal-soft); transition: width .9s var(--ease); z-index: 0; }
.opt.lead .bar { background: rgba(22, 175, 178, .22); }
.opt > *:not(.bar) { position: relative; z-index: 1; }
.opt .tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; transition: all .15s; }
.opt.on .tick { background: var(--teal); border-color: var(--teal); color: #fff; }
.opt .lbl { flex: 1; font-weight: 600; font-size: 15.5px; }
.opt .pct { font-weight: 700; font-size: 15px; color: var(--teal); }
.opt .who { flex-basis: 100%; padding-left: 36px; font-size: 12px; color: var(--ink-3); }
.opt[disabled] { cursor: default; }

/* =========================================================
   Erişilebilirlik, çevrimdışı, geniş ekran (Pazar QA)
   ========================================================= */
:focus { outline: none; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 2px; border-radius: 10px; }
.offline { position: fixed; left: 50%; top: calc(var(--safe-t) + 8px); transform: translate(-50%, -160%); z-index: 60; padding: 8px 14px; border-radius: 20px; background: #3A2A00; color: #FFE7A3; font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .35s var(--ease); white-space: nowrap; pointer-events: none; }
body.is-offline .offline { transform: translate(-50%, 0); }
@media (min-width: 700px) {
  .scroll > *, .nav > .t { max-width: 680px; margin-left: auto !important; margin-right: auto !important; }
  .scroll > .sec, .scroll > .big, .scroll > .card-stage, .scroll > .qr-box { width: calc(100% - 0px); box-sizing: border-box; }
  .card-stage { max-width: 480px !important; }
  .qr-box { max-width: 440px !important; }
  .tabs { justify-content: center; }
  .tabs a { flex: 0 1 120px; }
  .sheet-m { max-width: 560px; margin: 0 auto; }
  .login .sheet { max-width: 520px; margin: 0 auto; width: 100%; box-sizing: border-box; }
}
@media (min-width: 1000px) {
  .stack { background: var(--bg); }
  .quick { grid-template-columns: repeat(6, 1fr); }
}

/* =========================================================
   Resmî logo (Kurumsal Kimlik Kılavuzu 1.0)
   Kılavuz: parçalar ayrılmaz, gölge/parlama yok, soluklaştırılmaz.
   Hareket: yalnızca üç yıldız sırayla "Işıltı" rengine döner.
   ========================================================= */
.logo-c { display: block; width: 100%; height: auto; overflow: visible; }
.logo-c .st { transform-box: fill-box; transform-origin: center; }
@keyframes logoStar { 0%, 70%, 100% { fill: #22C7C9; transform: none; } 82% { fill: #63F2E3; transform: scale(1.14); } }
.logo-c.twinkle .st { animation: logoStar 3.6s ease-in-out infinite; filter: none; opacity: 1; }
.logo-c.twinkle .st0 { animation-delay: 0s; } .logo-c.twinkle .st1 { animation-delay: .35s; } .logo-c.twinkle .st2 { animation-delay: .7s; }
.logo-c.intro { animation: fadeIn .45s ease both; }
.logo-c.intro .st { opacity: 1; animation: logoStar 1.2s ease-in-out both; filter: none; }
.logo-c.intro .st0 { animation-delay: .45s; } .logo-c.intro .st1 { animation-delay: .7s; } .logo-c.intro .st2 { animation-delay: .95s; }
.login .top .logo-c { width: min(250px, 66vw); margin: 0 auto; }
.splash .logo-c { width: min(280px, 70vw); }
@media (prefers-reduced-motion: reduce) { .logo-c .st, .logo-c.intro { animation: none !important; } }

/* Katılım (Sen de aramızda ol) */
.join-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; margin-top: 22px; border-radius: 16px; background: #22C7C9; color: #04142F; font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; box-shadow: 0 10px 28px rgba(34, 199, 201, .35); max-width: 340px; }
.join-cta:active { transform: scale(.98); }
.login .top .join-sub { color: #9FB6D3; font-size: 13px; margin-top: 10px; }
.join-types { display: flex; flex-direction: column; gap: 12px; }
.jt { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); text-align: left; border: 1.5px solid transparent; }
.jt:active { border-color: var(--teal); }
.jt .ico-box { flex: none; }
.jt h3 { margin: 0; font-size: 17px; }
.jt p { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.jt .tag { display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.join-done { text-align: center; padding: 40px 24px; }
.join-done .logo-c { width: 180px; margin: 0 auto 26px; }
.steps-mini { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 0; }
.steps-mini li { counter-increment: s; position: relative; padding: 0 0 12px 34px; font-size: 14px; color: var(--ink-2); }
.steps-mini li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.mc-top .logo-c { width: 124px; }

/* =========================================================
   Burs · Bir fikrim var · Başvuru takibi
   ========================================================= */
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 20px; color: #fff; overflow: hidden; min-height: 118px; box-shadow: var(--shadow); }
.cta-tile svg { width: 26px; height: 26px; margin-bottom: auto; color: #9FF0F1; }
.cta-tile b { font-size: 16px; letter-spacing: -.01em; margin-top: 14px; }
.cta-tile span { font-size: 12.5px; color: rgba(255, 255, 255, .78); line-height: 1.35; }
.cta-tile.idea { background: linear-gradient(140deg, #16AFB2, #0E7C7F); }
.cta-tile.idea svg { color: #E6FFFE; }
.cta-tile.burs { background: radial-gradient(120% 120% at 100% 0%, rgba(34, 199, 201, .45), transparent 55%), #0A2147; }
.cta-tile:active { transform: scale(.98); }
.login-alt { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.login-alt a { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 14px; font-weight: 600; }
.login-alt a svg { width: 16px; height: 16px; color: #22C7C9; }

.prog-hero { position: relative; margin: 8px 20px 0; padding: 22px 22px 20px; border-radius: 24px; color: #fff; overflow: hidden; background: radial-gradient(120% 110% at 100% 0%, rgba(34, 199, 201, .5), transparent 55%), linear-gradient(135deg, #0A2147, #0D2D5E); }
.prog-hero.idea { background: radial-gradient(120% 110% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%), linear-gradient(140deg, #16AFB2, #0A5E66); }
.prog-hero .ph-stars { position: absolute; right: 16px; top: 16px; width: 54px; height: 58px; opacity: .9; }
.prog-hero .kick { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9FF0F1; }
.prog-hero.idea .kick { color: #E6FFFE; }
.prog-hero h1 { margin: 6px 60px 8px 0; font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
.prog-hero p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.prog-hero .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.prog-hero .facts div { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px 12px; }
.prog-hero .facts small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.prog-hero .facts b { font-size: 15px; letter-spacing: -.01em; }

.steps { display: flex; gap: 8px; padding: 18px 20px 4px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 3; background: var(--bg); }
.steps::-webkit-scrollbar { display: none; }
.steps button { flex: 1 0 auto; min-width: 74px; display: flex; flex-direction: column; gap: 7px; text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.steps button i { height: 4px; border-radius: 4px; background: var(--line-2); position: relative; overflow: hidden; }
.steps button i::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.steps button.on, .steps button.done { color: var(--ink); }
.steps button.on i::after, .steps button.done i::after { transform: scaleX(1); }
.pstep { display: none; border: 0; padding: 0; margin: 0; animation: fadeIn .35s ease both; }
.pstep.on { display: block; }
.pstep-h { font-size: 20px; letter-spacing: -.02em; margin: 10px 4px 14px; }
.pnav { display: flex; gap: 10px; margin-top: 8px; position: sticky; bottom: 0; padding: 12px 0 calc(12px + var(--safe-b, 0px)); background: linear-gradient(transparent, var(--bg) 30%); }
.pnav .btn { flex: 1; }
.pnav [data-prev] { flex: 0 0 96px; }
.pick.vert { flex-direction: column; }
.pick.vert label { height: auto; min-height: 44px; padding: 10px 14px; border-radius: 14px; }
.chk { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.chk input { width: 22px; height: 22px; accent-color: var(--teal); flex: none; margin-top: 1px; }
.chk a { color: var(--teal); font-weight: 600; }
.field .req { color: var(--teal); }
.cnt { text-align: right; font-size: 11.5px; color: var(--ink-3); margin: 4px 4px 0; }

.trk h2 { margin: 12px 0 6px; font-size: 20px; letter-spacing: -.02em; }
.trk p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.trk.ok { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--teal); }
.tl { display: flex; margin-top: 18px; }
.tl-s { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ink-3); text-align: center; }
.tl-s::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--line-2); z-index: 0; }
.tl-s:first-child::before { display: none; }
.tl-s.done::before, .tl-s.now::before { background: var(--teal); }
.tl-s i { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: #fff; }
.tl-s.done i { background: var(--teal); border-color: var(--teal); }
.tl-s.now i { border-color: var(--navy); box-shadow: 0 0 0 4px var(--teal-soft); }
.tl-s.now i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 1.8s ease-in-out infinite; }
.tl-s.now { color: var(--ink); }
.tl.neg .tl-s:last-child i { background: var(--ink-3); border-color: var(--ink-3); }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .6; } }
.person { display: flex; align-items: center; gap: 12px; }
.person .main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.person small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.person b { font-size: 16px; }
.person span { font-size: 13px; color: var(--ink-3); }
.evs { list-style: none; margin: 0; padding: 6px 16px; }
.evs li { position: relative; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--line); }
.evs li:last-child { border-bottom: 0; }
.evs li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.evs b { display: block; font-size: 15px; }
.evs time { font-size: 12px; color: var(--ink-3); }
.evs p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.pick-row { width: 100%; text-align: left; }
.pick-row.on { box-shadow: inset 0 0 0 1.5px var(--teal); border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .tl-s.now i::after { animation: none; } }
.pnav [hidden] { display: none !important; }

/* =========================================================
   OTP girişi
   ========================================================= */
.otp { position: relative; }
.otp-real { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; color: transparent; caret-color: transparent; border: 0; background: transparent; z-index: 2; letter-spacing: 40px; }
.otp-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 340px; margin: 0 auto; }
.otp-cell { position: relative; height: 62px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-2); display: grid; place-items: center; overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .35s var(--ease); }
.otp-cell .d { font-size: 27px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.otp-cell.filled { border-color: var(--ink-3); }
.otp-cell.active, .otp-cell.active-full { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.otp-cell .caret { position: absolute; width: 2px; height: 26px; border-radius: 1px; background: var(--teal); opacity: 0; }
.otp-cell.active .caret { animation: otpCaret 1.2s ease-in-out infinite; }
@keyframes otpCaret { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
.otp-cell.pop .d { animation: otpIn .38s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes otpIn { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
/* doğrulanıyor: kutuların üzerinden sırayla turkuaz ışık geçer */
.otp.is-verifying .otp-cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(34, 199, 201, .28) 50%, transparent 80%); transform: translateX(-110%); animation: otpSweep 1.1s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: calc(var(--i) * .08s); }
@keyframes otpSweep { to { transform: translateX(110%); } }
/* başarılı: kutular soldan sağa turkuaza döner */
.otp.is-success .otp-cell { border-color: var(--teal); background: var(--teal); transition-delay: calc(var(--i) * .06s); }
.otp.is-success .otp-cell .d { color: #fff; transition: color .2s calc(var(--i) * .06s); }
/* hatalı: sakin kırmızı çerçeve, rakamlar sağdan sola söner (sallanma yok) */
.otp.is-error .otp-cell { border-color: var(--red, #D92D20); box-shadow: 0 0 0 4px rgba(217, 45, 32, .12); }
.otp.is-error .otp-cell .d { animation: otpOut .5s ease both; animation-delay: calc((5 - var(--i)) * .05s + .25s); }
@keyframes otpOut { to { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .otp-cell .d, .otp-cell::after, .otp-cell .caret { animation: none !important; } }

/* =========================================================
   Süre seçici
   ========================================================= */
.dpick { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 14px; }
.dp-presets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dp-presets::-webkit-scrollbar { display: none; }
.dp-presets button { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--bg); color: var(--ink-2); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.dp-presets button.on { background: var(--navy); color: #fff; }
.dp-wheel { position: relative; display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 6px; height: 220px; margin-top: 10px; -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); }
.dp-band { position: absolute; left: 0; right: 0; top: 88px; height: 44px; border-radius: 12px; background: var(--teal-soft); pointer-events: none; }
.dp-col { position: relative; height: 220px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; outline: none; }
.dp-col::-webkit-scrollbar { display: none; }
.dp-item { height: 44px; display: grid; place-items: center; scroll-snap-align: center; font-size: 22px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: color .15s; }
.dp-item.sel { color: var(--ink); font-weight: 700; }
.dp-unit { font-size: 14px; font-weight: 600; color: var(--ink-3); position: relative; z-index: 1; padding-right: 10px; }
.dp-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding: 10px 4px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dp-sum b { color: var(--teal); }

/* =========================================================
   Yapay zekâ çekirdeği (yıldızların arkasında)
   ========================================================= */
.hero .hero-core { position: absolute; right: 12px; top: 10px; width: 84px; height: 84px; display: grid; place-items: center; cursor: pointer; }
.hero .hero-core .hero-stars { position: relative; right: auto; top: auto; width: 54px; height: 58px; z-index: 1; }
.orb { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.orb canvas { width: 100%; height: 100%; display: block; filter: blur(7px) saturate(1.15); transform: scale(1.15); }
.hero h2, .hero .k, .hero p { padding-right: 96px; }
.hero .hero-core .hero-stars path { fill: #fff; }

/* iPhone ana ekran uygulaması: bazı iOS sürümlerinde sabit konumlu kök, üst durum çubuğu kadar kısa
   hesaplanıyor ve alt menünün altında boşluk kalıyor. Bağımsız modda kökü tam ekran yüksekliğine sabitle. */
@media (display-mode: standalone) {
  html, body { height: 100vh; min-height: 100vh; }
  #app { bottom: auto; height: 100vh; }
}

/* ---------- Kişi fotoğrafı ve üye yönetimi ---------- */
.av { overflow: visible; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 22%; background: var(--surface-2); }
.av.xl { width: 112px; height: 112px; font-size: 38px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px color-mix(in srgb, var(--teal-2) 55%, transparent), 0 14px 30px rgba(10, 33, 71, .22); }
.av.xl .on { width: 24px; height: 24px; border-width: 4px; right: 4px; bottom: 4px; border-color: var(--bg); }
.profile-top.pcard { position: relative; margin: 4px 16px 0; padding: 26px 18px 22px; border-radius: 26px; color: #fff; overflow: hidden; isolation: isolate; background: #0A2147; background-image: radial-gradient(110% 80% at 100% 0%, rgba(34, 199, 201, .42), transparent 58%), radial-gradient(90% 70% at 0% 100%, rgba(22, 175, 178, .2), transparent 70%); box-shadow: 0 14px 34px rgba(10, 33, 71, .22); animation: fadeIn .4s var(--ease) both; }
.profile-top.pcard::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 14px; width: 190px; height: 190px; margin-left: -95px; border-radius: 50%; background: radial-gradient(closest-side, rgba(99, 242, 227, .28), transparent); filter: blur(6px); }
.profile-top.pcard .av { margin: 0 auto 16px; }
.profile-top.pcard .av.xl { box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 0 0 6px rgba(99, 242, 227, .35), 0 16px 30px rgba(0, 0, 0, .35); }
.profile-top.pcard .av.xl .on { border-color: #0E2A52; }
.profile-top.pcard h1 { font-size: 25px; color: #fff; }
.profile-top.pcard p { color: #C5D4EA; font-size: 14.5px; }
.profile-top.pcard .chip { background: rgba(255, 255, 255, .13); color: #E4F7F8; }
.profile-top.pcard .chip.green { background: rgba(34, 197, 94, .22); color: #B6F5CC; }
.profile-top.pcard .ph-cam { background: #fff; color: #0A2147; border-color: #0E2A52; }
.profile-top.busy .av { opacity: .45; }
.profile-top.busy .ph-cam { animation: spin 1s linear infinite; }
.ph-wrap { display: flex; justify-content: center; }
.ph-btn { position: relative; border-radius: 50%; display: block; margin: 0 auto 16px; transition: transform .25s var(--ease); }
.ph-btn .av { margin: 0 !important; }
.ph-btn:active { transform: scale(.95); }
.ph-cam { position: absolute; right: -2px; bottom: -2px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; border: 3px solid var(--bg); box-shadow: 0 4px 12px rgba(10, 33, 71, .28); }
:root[data-theme="dark"] .ph-cam { background: var(--teal); color: #04222A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ph-cam { background: var(--teal); color: #04222A; } }
.card.pad { padding: 14px 16px; }
.bio { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; }
.hscroll { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hscroll::-webkit-scrollbar { display: none; }
.fchip { flex: none; height: 34px; padding: 0 13px; border-radius: 17px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.fchip span { font-weight: 500; opacity: .6; font-size: 12px; }
.fchip:active { transform: scale(.95); }
.fchip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .fchip.on { background: var(--teal); border-color: var(--teal); color: #04222A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fchip.on { background: var(--teal); border-color: var(--teal); color: #04222A; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Akıcılık: giriş animasyonları ve dokunma geri bildirimi ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: riseIn .46s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; } .stagger > *:nth-child(2) { animation-delay: .05s; } .stagger > *:nth-child(3) { animation-delay: .08s; }
.stagger > *:nth-child(4) { animation-delay: .11s; } .stagger > *:nth-child(5) { animation-delay: .14s; } .stagger > *:nth-child(6) { animation-delay: .17s; }
.stagger > *:nth-child(7) { animation-delay: .2s; } .stagger > *:nth-child(8) { animation-delay: .23s; } .stagger > *:nth-child(9) { animation-delay: .26s; }
.stagger > *:nth-child(n+10) { animation-delay: .29s; }
#home > .hero, #home > .quick, #home > .sec, #home > .banner, .stat-grid, .actions3 { animation: riseIn .5s var(--ease) both; }
#home > :nth-child(2) { animation-delay: .05s; } #home > :nth-child(3) { animation-delay: .1s; } #home > :nth-child(4) { animation-delay: .15s; } #home > :nth-child(n+5) { animation-delay: .2s; }
.stat, .actions3 a, .actions3 button, .hero, .quick a, .cta-tile, .card, .pcard { transition: transform .22s var(--ease), box-shadow .22s; }
a.stat:active, .actions3 a:active, .actions3 button:active { transform: scale(.96); }
a.row, button.row { transition: background .18s; }
a.row:active .av, button.row:active .av { transform: scale(.93); }
.av { transition: transform .22s var(--ease); }
.row .chev { transition: transform .22s var(--ease); }
a.row:active .chev { transform: translateX(3px); }
.nav .me-av { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.nav .me-av .av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px color-mix(in srgb, var(--teal-2) 70%, transparent); }
.nav .me-av:active .av { transform: scale(.9); }

/* Rehber: yönetim şeridi (fotoğraflı portre kartları) */
.rail-h { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 20px 0; }
.rail-h h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.rail-h span { font-size: 13px; color: var(--ink-3); }
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 12px 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.pcardlet { position: relative; flex: none; width: 128px; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; scroll-snap-align: start; color: #fff; background: #0A2147; box-shadow: 0 8px 20px rgba(10, 33, 71, .16); transition: transform .25s var(--ease); isolation: isolate; }
.pcardlet:active { transform: scale(.96); }
.pcardlet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; z-index: -2; }
.pcardlet .ini { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; padding-bottom: 26px; font-size: 40px; font-weight: 700; letter-spacing: -.03em; color: rgba(255, 255, 255, .9); background-image: radial-gradient(120% 90% at 100% 0%, rgba(34, 199, 201, .5), transparent 60%); }
.pcardlet::after { content: ""; position: absolute; inset: 40% 0 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 14, 34, .9), transparent); }
.pcardlet .cap { position: absolute; left: 12px; right: 10px; bottom: 11px; }
.pcardlet b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.pcardlet small { display: block; margin-top: 2px; font-size: 11.5px; color: #BFD0E8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcardlet .live { position: absolute; top: 10px; right: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(4, 14, 34, .45); }
@media (prefers-reduced-motion: reduce) { .stagger > *, #home > *, .stat-grid, .actions3, .profile-top.pcard { animation: none !important; } }

/* ---------- Fotoğrafsız kişi: logodaki yıldızlar ---------- */
.av.star { color: transparent; font-size: 0; background-color: #0A2147 !important; background-image: url(../icons/stars.svg), radial-gradient(120% 120% at 85% 10%, rgba(34, 199, 201, .55), transparent 62%), linear-gradient(160deg, #12305F, #04142F); background-repeat: no-repeat; background-position: 54% 46%, center, center; background-size: 50% auto, cover, cover; box-shadow: inset 0 0 0 1px rgba(99, 242, 227, .22); }
.av.star.v1 { background-image: url(../icons/stars.svg), radial-gradient(120% 120% at 15% 90%, rgba(34, 199, 201, .5), transparent 62%), linear-gradient(200deg, #0E5A8A, #04142F); }
.av.star.v2 { background-image: url(../icons/stars.svg), radial-gradient(110% 110% at 50% 0%, rgba(99, 242, 227, .38), transparent 60%), linear-gradient(180deg, #0B3B4F, #06203F); }
.av.star.v3 { background-image: url(../icons/stars.svg), radial-gradient(120% 120% at 100% 100%, rgba(14, 90, 138, .8), transparent 65%), linear-gradient(140deg, #0A2147, #0B2E57); }
.av.xl.star { box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 0 0 6px rgba(99, 242, 227, .35), 0 16px 30px rgba(0, 0, 0, .35); background-size: 46% auto, cover, cover; }
.pcardlet .ini { font-size: 0; padding: 0; background-image: url(../icons/stars.svg), radial-gradient(120% 90% at 100% 0%, rgba(34, 199, 201, .5), transparent 60%), linear-gradient(170deg, #12305F, #04142F); background-repeat: no-repeat; background-position: 50% 34%, center, center; background-size: 44% auto, cover, cover; }

/* ---------- Resmî bilgilerim ---------- */
.chip.amber { background: rgba(245, 165, 36, .16); color: #B7770C; }
:root[data-theme="dark"] .chip.amber { color: #F5C26B; }
.btn.sm { min-height: 34px; height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }

/* Karşılama kartı: arkada hareketli dalga ağı (eski küre ve yıldızların yerine) */
.hero { isolation: isolate; }
.hero .hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero h2, .hero .k { padding-right: 0; }
