/* t-smile — kurumsal renkler: #F32735 · #7F2629 · #101820 · #F3F3F4 · #878B90 */
:root {
  --brand: #F32735;
  --brand-2: #7F2629;
  --brand-ink: #FFFFFF;
  --bg: #101820;
  --bg-2: #161F29;
  --grey: #878B90;
  --surface: rgba(243, 243, 244, .045);
  --surface-2: rgba(243, 243, 244, .085);
  --line: rgba(243, 243, 244, .09);
  --text: #F3F3F4;
  --muted: rgba(243, 243, 244, .66);
  --faint: rgba(243, 243, 244, .42);
  --grad: linear-gradient(90deg, #101820 0%, #7F2629 34%, #F32735 68%, #F3DADC 100%);
  --grad-red: linear-gradient(135deg, #F32735 0%, #C8202D 55%, #7F2629 100%);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--text); text-decoration-color: var(--brand); text-underline-offset: 3px; }
[hidden] { display: none !important; }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 38% at 85% -4%, rgba(243, 39, 53, .28), transparent 70%),
    radial-gradient(50% 30% at -10% 30%, rgba(127, 38, 41, .35), transparent 70%),
    radial-gradient(80% 40% at 50% 110%, rgba(127, 38, 41, .28), transparent 70%);
}
.bg-glow::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(243,243,244,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 60%);
}

/* ---------- views ---------- */
.view {
  position: relative; z-index: 1;
  display: none;
  min-height: 100dvh;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 16px) 20px calc(var(--safe-b) + 24px);
}
.view.is-active { display: flex; flex-direction: column; animation: viewIn .55s var(--ease) both; }
#view-results { max-width: 1200px; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- topbar / wordmark ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.topbar.sticky {
  position: sticky; top: 0; z-index: 20;
  margin: calc(-1 * (var(--safe-t) + 16px)) -20px 0;
  padding: calc(var(--safe-t) + 10px) 20px 10px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.sticky.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; }
.brand img { height: 26px; width: auto; display: block; }
.wm { font-size: 27px; font-weight: 700; letter-spacing: -.035em; line-height: 1; display: inline-flex; align-items: baseline; }
.brand.small .wm { font-size: 23px; }
.brand.small img { height: 22px; }
.wm-dash { color: var(--brand); margin: 0 .02em; }
.wm-tail { position: relative; }
.wm-smile { position: absolute; left: 8%; right: 8%; bottom: -.32em; width: 84%; height: .3em; overflow: visible; }
.wm-smile path { stroke: var(--brand); stroke-width: 3.2; vector-effect: non-scaling-stroke; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.badge-live {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
}
.badge-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: live 1.6s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(243,39,53,.7); } 70%,100% { box-shadow: 0 0 0 7px rgba(243,39,53,0); } }

/* ---------- hero / emblem ---------- */
.hero { text-align: center; padding: 12px 0 0; }
.emblem { position: relative; width: 220px; height: 220px; margin: 0 auto 18px; }
.emblem::before {
  content: ""; position: absolute; inset: 18px; border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 0 8%, rgba(243,39,53,.0) 10%, #F32735 40%, #7F2629 62%, transparent 80%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 9s linear infinite;
}
.emblem::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(243,243,244,.1);
}
.disc {
  position: absolute; inset: 44px; border-radius: 50%;
  background: var(--grad-red);
  display: grid; place-items: center;
  box-shadow: 0 24px 60px -12px rgba(243, 39, 53, .55), inset 0 2px 0 rgba(255,255,255,.25), inset 0 -10px 30px rgba(16,24,32,.35);
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-6px); } }
.face { width: 84px; height: 84px; color: #fff; }
.face .eyes circle { fill: #fff; stroke: none; }
.face .eyes { transform-origin: 60px 50px; animation: blink 5s infinite; }
@keyframes blink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
.face .smile { stroke: #fff; stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s .25s var(--ease) forwards, grin 5s 1.5s ease-in-out infinite; }
@keyframes grin { 0%, 100% { d: path("M36 68 Q60 96 84 68"); } 50% { d: path("M33 66 Q60 102 87 66"); } }

.orbit { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.snap {
  position: absolute; width: 44px; height: 54px; border-radius: 10px;
  background: linear-gradient(160deg, #2A3542, #18212B); border: 1px solid rgba(243,243,244,.12);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.6);
  animation: spin 40s linear infinite reverse;
}
.snap::before { content: ""; position: absolute; left: 5px; right: 5px; top: 5px; height: 32px; border-radius: 6px; background: linear-gradient(140deg, rgba(243,39,53,.6), rgba(127,38,41,.3) 60%, rgba(243,243,244,.08)); }
.snap.s1 { left: 6px; top: 38px; }
.snap.s2 { right: 0; top: 70px; width: 38px; height: 46px; }
.snap.s2::before { height: 26px; }
.snap.s3 { right: 30px; bottom: 6px; }
.snap.s4 { left: 30px; bottom: 18px; width: 36px; height: 44px; }
.snap.s4::before { height: 24px; }
.snap.s5 { left: 92px; top: -8px; width: 34px; height: 42px; }
.snap.s5::before { height: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }

.ev-chip {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 7px 14px 7px 12px; border-radius: 999px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.ev-chip b { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-chip b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.ev-chip b:not([hidden]) + span:not([hidden])::before { content: "·"; margin-right: 10px; color: var(--faint); }
.ev-chip span { white-space: nowrap; }

.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
h1 { font-size: clamp(36px, 10.5vw, 52px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 14px; font-weight: 700; text-wrap: balance; }
.grad { background: linear-gradient(90deg, #F32735, #FF6B74 55%, #F3C9CC); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 26px; letter-spacing: -.03em; margin: 0 0 8px; line-height: 1.15; font-weight: 700; }
.lead { color: var(--muted); margin: 0 auto; max-width: 380px; font-size: 16.5px; font-weight: 400; text-wrap: pretty; }

/* ---------- panel ---------- */
.panel { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.steps { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps li {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 12px 13px; display: flex; flex-direction: column; gap: 1px; text-align: left;
}
.steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); opacity: .8; }
.steps .num { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .04em; margin-bottom: 8px; }
.steps b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.steps small { font-size: 12px; color: var(--faint); line-height: 1.3; }

.consent {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s;
}
.consent:has(input:checked) { border-color: rgba(243, 39, 53, .45); background: rgba(243, 39, 53, .06); }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box {
  flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.6px solid var(--faint);
  display: grid; place-items: center; margin-top: 1px; transition: all .25s var(--spring);
}
.consent .box svg { width: 15px; height: 15px; stroke-width: 3; color: #fff; opacity: 0; transform: scale(.4); transition: all .25s var(--spring); }
.consent input:checked + .box { background: var(--brand); border-color: var(--brand); }
.consent input:checked + .box svg { opacity: 1; transform: none; }
.consent input:focus-visible + .box { outline: 2px solid var(--brand); outline-offset: 2px; }
.consent .txt { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.consent.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 24px; border-radius: 16px; font-weight: 600; font-size: 16.5px; letter-spacing: -.005em;
  transition: transform .18s var(--ease), opacity .2s, background .2s, box-shadow .25s;
  user-select: none; -webkit-user-select: none;
}
.btn svg { width: 22px; height: 22px; stroke-width: 2; flex: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary {
  background: var(--brand); color: var(--brand-ink);
  box-shadow: 0 14px 34px -12px rgba(243, 39, 53, .75), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg); animation: sheen 4.5s 1.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@media (hover: hover) { .btn-primary:hover { background: #FF3442; } }
.btn-xl { height: 62px; font-size: 18px; border-radius: 18px; }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line); }
.btn.loading { pointer-events: none; }
.btn.loading svg { animation: spin 1s linear infinite; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500;
  transition: background .2s, transform .15s;
}
.chip svg { width: 17px; height: 17px; }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--brand); color: #fff; border-color: transparent; }

.resume {
  margin-top: 6px; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 12px 14px; border-radius: 18px; background: linear-gradient(100deg, rgba(127,38,41,.35), rgba(243,243,244,.04)); border: 1px solid rgba(243,39,53,.25);
}
.resume > svg { width: 20px; height: 20px; margin-left: auto; color: var(--brand); }
.resume-thumbs { display: flex; }
.resume-thumbs img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; border: 2px solid var(--bg); margin-left: -14px; background: #222; }
.resume-thumbs img:first-child { margin-left: 0; }
.resume-txt b { display: block; font-size: 15.5px; font-weight: 600; }
.resume-txt small { color: var(--faint); font-size: 12.5px; }

.privacy-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--faint); margin: 6px 0 0; text-align: center; }
.privacy-note svg { width: 16px; height: 16px; flex: none; color: var(--grey); }

.locked { text-align: center; align-items: center; padding: 28px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.locked p { color: var(--muted); margin: 0; }
.lock-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(243,39,53,.14); color: var(--brand); margin-bottom: 6px; }
.lock-ico svg { width: 32px; height: 32px; }

.foot { margin-top: auto; padding-top: 34px; text-align: center; font-size: 12px; color: var(--faint); }
.foot::before { content: ""; display: block; height: 2px; width: 64px; margin: 0 auto 14px; border-radius: 2px; background: var(--grad); }

/* ---------- camera ---------- */
.view-dark { background: #000; max-width: none; padding: 0; position: fixed; inset: 0; z-index: 50; }
.view-dark.is-active { display: block; animation: fadeIn .3s both; }
@keyframes fadeIn { from { opacity: 0; } }
#video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
#video.rear { transform: none; }
.cam-mask { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cam-mask rect { fill: rgba(16, 24, 32, .62); }
.cam-ring { fill: none; stroke: var(--brand); vector-effect: non-scaling-stroke; stroke-width: 3px; stroke-dasharray: 2 1.4; animation: ring 14s linear infinite; filter: drop-shadow(0 0 6px rgba(243,39,53,.7)); }
@keyframes ring { to { stroke-dashoffset: -60; } }
.cam-top, .cam-bottom { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.cam-top { top: calc(var(--safe-t) + 14px); }
.cam-bottom { bottom: calc(var(--safe-b) + 28px); }
.cam-hint { font-size: 15px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: rgba(16,24,32,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(243,243,244,.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.icon-btn svg { width: 22px; height: 22px; stroke-width: 2; }
.icon-btn-lg { width: 54px; height: 54px; }
.icon-btn.spacer, .spacer { visibility: hidden; }
.shutter { width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; transition: transform .15s; box-shadow: 0 0 0 6px rgba(243,39,53,.25); }
.shutter span { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); transition: transform .15s; }
.shutter:active span { transform: scale(.86); }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }

/* ---------- scan ---------- */
#view-scan.is-active { justify-content: center; }
.scan-wrap { text-align: center; display: flex; flex-direction: column; align-items: center; }
.scan-orb { position: relative; width: 216px; height: 216px; margin-bottom: 34px; }
.scan-orb img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: cover; border-radius: 50%; filter: saturate(.6) brightness(.8); }
.scan-sweep { position: absolute; inset: 14px; border-radius: 50%; overflow: hidden; }
.scan-sweep::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(243,39,53,.55) 88%, #FF6B74);
  animation: sweep 1.8s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes sweep { from { top: -40%; } to { top: 100%; } }
.scan-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 2.6s linear infinite; }
.scan-ring circle { stroke: var(--brand); stroke-width: 3; stroke-dasharray: 110 512; filter: drop-shadow(0 0 8px var(--brand)); }
.scan-dots { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
#scan-sub { color: var(--muted); margin: 0; min-height: 24px; }
.scan-progress { margin-top: 26px; width: 200px; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.scan-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7F2629, #F32735); border-radius: 4px; transition: width .6s var(--ease); }

/* ---------- results ---------- */
.res-head { text-align: center; padding: 30px 0 22px; }
.res-head h1 { font-size: clamp(32px, 8.5vw, 46px); }
.res-tools { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.grid { columns: 2; column-gap: 8px; padding-bottom: 110px; }
@media (min-width: 700px) { .grid { columns: 3; column-gap: 12px; } }
@media (min-width: 1000px) { .grid { columns: 4; } }
.tile {
  position: relative; display: block; width: 100%; margin: 0 0 8px; break-inside: avoid;
  border-radius: 16px; overflow: hidden; background: var(--bg-2);
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .55s var(--ease), transform .55s var(--spring);
}
@media (min-width: 700px) { .tile { margin-bottom: 12px; } }
.tile.in { opacity: 1; transform: none; }
.tile img { display: block; width: 100%; height: auto; opacity: 0; transition: opacity .5s, transform .25s var(--ease), border-radius .25s; }
.tile img.loaded { opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(243,243,244,.06); pointer-events: none; }
.tile .sel {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(16,24,32,.35); display: none; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tile .sel svg { width: 16px; height: 16px; stroke-width: 3; color: #fff; opacity: 0; }
.selecting .tile .sel { display: grid; }
.selecting .tile.picked .sel { background: var(--brand); border-color: var(--brand); }
.selecting .tile.picked .sel svg { opacity: 1; }
.selecting .tile.picked img { transform: scale(.93); border-radius: 12px; }
.selecting .tile.picked { box-shadow: inset 0 0 0 2px var(--brand); }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 18px 20px calc(var(--safe-b) + 16px);
  background: linear-gradient(to top, var(--bg) 55%, transparent);
  display: flex; justify-content: center;
  animation: dockIn .55s var(--spring) both .25s;
}
@keyframes dockIn { from { transform: translateY(100%); } }
.btn-dock { width: 100%; max-width: 420px; height: 58px; border-radius: 18px; }

.empty { text-align: center; padding: 10px 6px 40px; display: flex; flex-direction: column; align-items: center; }
.empty p { color: var(--muted); max-width: 380px; margin: 0 0 18px; }
.empty-art { width: 120px; height: 120px; border-radius: 50%; background: var(--grad-red); display: grid; place-items: center; margin: 10px 0 22px; color: #fff; box-shadow: 0 20px 50px -15px rgba(243,39,53,.6); }
.empty-art svg { width: 70px; height: 70px; stroke-width: 3.5; }
.tips { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; width: 100%; max-width: 380px; text-align: left; }
.tips li { padding: 12px 14px 12px 42px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); position: relative; }
.tips li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(243,39,53,.2); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: #0A0F14; display: flex; flex-direction: column; animation: fadeIn .25s both; touch-action: none; }
.lb-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-t) + 12px) 16px 12px; background: linear-gradient(to bottom, rgba(10,15,20,.75), transparent); }
.lb-count { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.lb-stage { flex: 1; overflow: hidden; position: relative; }
.lb-track { display: flex; height: 100%; will-change: transform; }
.lb-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; padding: 0 0 calc(var(--safe-b) + 112px); padding-top: calc(var(--safe-t) + 64px); position: relative; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity .3s; }
.lb-slide img.loaded { opacity: 1; }
.lb-slide .spin { position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(243,243,244,.15); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.lb-slide img.loaded + .spin { display: none; }
.lb-bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 16px 20px calc(var(--safe-b) + 18px); display: flex; justify-content: center; background: linear-gradient(to top, rgba(10,15,20,.8), transparent); }

.lb-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(243,243,244,.1); display: none; place-items: center; backdrop-filter: blur(10px); }
.lb-nav svg { width: 26px; height: 26px; stroke-width: 2; }
.lb-nav.prev { left: 20px; } .lb-nav.next { right: 20px; }
@media (hover: hover) and (min-width: 800px) { .lb-nav { display: grid; } }

/* ---------- sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(8,12,16,.7); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .25s both; }
.sheet {
  width: 100%; max-width: 560px; max-height: 86dvh; display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0;
  padding: 10px 22px calc(var(--safe-b) + 20px); animation: sheetIn .45s var(--ease) both;
}
@keyframes sheetIn { from { transform: translateY(100%); } }
.sheet-grip { width: 40px; height: 5px; border-radius: 5px; background: var(--surface-2); margin: 0 auto 4px; }
.sheet h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; font-weight: 600; }
.sheet-body { overflow: auto; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.sheet-body p { margin: 0 0 10px; }
.sheet-body b { color: var(--text); font-weight: 600; }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 100; left: 50%; bottom: calc(var(--safe-b) + 96px); transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 500;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: all .35s var(--ease);
  max-width: calc(100vw - 40px); width: max-content; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- filtreler & kişiler ---------- */
.filters {
  display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -20px 16px; padding: 4px 20px 6px; scroll-padding: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
}
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .filters { justify-content: center; } }
.fchip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: all .25s var(--ease);
}
.fchip span { font-size: 12.5px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.fchip svg { width: 16px; height: 16px; stroke-width: 2; }
.fchip.on { background: var(--text); color: var(--bg); border-color: transparent; }
.fchip.on span { color: rgba(16,24,32,.55); }
.fchip.fav.on { background: var(--brand); color: #fff; }
.fchip.fav.on svg { fill: #fff; }
.fchip.fav.on span { color: rgba(255,255,255,.75); }
.fsep { flex: none; font-size: 12px; color: var(--faint); padding: 0 4px 0 10px; border-left: 1px solid var(--line); margin-left: 4px; white-space: nowrap; }
.person { flex: none; position: relative; width: 46px; height: 46px; border-radius: 50%; padding: 2px; background: var(--line); transition: transform .25s var(--spring), background .25s; }
.person img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--bg); background: var(--bg-2); }
.person span {
  position: absolute; right: -4px; bottom: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--bg-2); border: 2px solid var(--bg); font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.person.on { background: linear-gradient(135deg, #F32735, #7F2629); transform: scale(1.08); }
.person.on span { background: var(--brand); }

.filter-note {
  display: flex; align-items: center; gap: 12px; margin: -4px 0 14px; padding: 12px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; flex-wrap: wrap;
}
.filter-note b { font-weight: 600; }
.filter-note span { color: var(--faint); font-size: 13px; flex-basis: 100%; margin-top: -8px; padding-left: 48px; }
.filter-note img, .filter-note > svg { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; }
.filter-note > svg { padding: 8px; background: rgba(243,39,53,.15); color: var(--brand); stroke-width: 2; }
@media (min-width: 700px) { .filter-note { max-width: 520px; margin-left: auto; margin-right: auto; } }

/* ---------- kalp ---------- */
.tile .heart {
  position: absolute; left: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(16,24,32,.38); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .3s var(--spring), background .2s;
}
.tile .heart svg { width: 18px; height: 18px; stroke-width: 2; }
.tile .heart.on { background: var(--brand); }
.tile .heart.on svg { fill: #fff; }
.heart.pop, .lb-act.pop svg { animation: pop .4s var(--spring); }
@keyframes pop { 40% { transform: scale(1.35); } }
.selecting .tile .heart { display: none; }

/* ---------- görüntüleyici aksiyonları ---------- */
.lb-actions { display: flex; align-items: center; gap: 6px; width: 100%; max-width: 440px; }
.lb-act { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.lb-act svg { width: 25px; height: 25px; stroke-width: 1.9; color: var(--text); transition: color .2s; }
.lb-act.on svg { fill: var(--brand); color: var(--brand); }
.lb-share { flex: 1.6; height: 52px; padding: 0 16px; font-size: 16px; }

/* ---------- paylaşım ---------- */
.icon-btn.small { width: 36px; height: 36px; background: var(--surface-2); }
.icon-btn.small svg { width: 18px; height: 18px; }
.share-sheet { gap: 12px; }
.share-head { display: flex; align-items: center; justify-content: space-between; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.seg button { height: 40px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all .2s; }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.seg .r { display: inline-block; border: 1.6px solid currentColor; border-radius: 3px; }
.seg .r-story { width: 9px; height: 15px; }
.seg .r-post { width: 12px; height: 15px; }
.seg .r-frame { width: 16px; height: 12px; border-bottom-width: 4px; }
.seg button.on .r { border-color: var(--brand); }
.share-preview {
  position: relative; display: flex; align-items: center; justify-content: center; padding: 14px;
  height: min(46dvh, 420px); border-radius: 18px;
  background: radial-gradient(70% 60% at 50% 40%, rgba(127,38,41,.35), transparent 70%), rgba(0,0,0,.25);
  overflow: hidden;
}
.share-preview img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 50px -15px rgba(0,0,0,.8); transition: opacity .3s, transform .4s var(--spring); }
.share-preview.loading img { opacity: .25; transform: scale(.97); }
.share-preview .spin { position: absolute; left: calc(50% - 15px); top: calc(50% - 15px); width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(243,243,244,.15); border-top-color: var(--brand); animation: spin .8s linear infinite; display: none; }
.share-preview.loading .spin { display: block; }
.share-hint { margin: -2px 0 2px; text-align: center; font-size: 12.5px; color: var(--faint); }
.share-note { margin: 0; text-align: center; font-size: 12.5px; color: var(--faint); }

/* ---------- onay ---------- */
.confirm-sheet { text-align: center; align-items: stretch; }
.confirm-sheet p { margin: -4px 0 6px; color: var(--muted); font-size: 14.5px; }
.confirm-ico { width: 56px; height: 56px; border-radius: 50%; margin: 4px auto 0; display: grid; place-items: center; background: rgba(243,39,53,.15); color: var(--brand); }
.confirm-ico svg { width: 26px; height: 26px; stroke-width: 2; }

/* kişiler satırı & filtre çubuğu */
.people { margin: 0 0 18px; }
.people-title { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
.people-row {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 6px 20px 8px; margin: 0 -20px;
  justify-content: safe center;
}
.people-row::-webkit-scrollbar { display: none; }
.people .person { width: 58px; height: 58px; }
.filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.filter-bar .filters { flex: 1; margin: 0; padding: 2px 0; -webkit-mask-image: none; mask-image: none; justify-content: flex-start; }
.filter-bar .chip { flex: none; height: 40px; }
@media (min-width: 700px) { .filter-bar { max-width: 640px; margin-left: auto; margin-right: auto; } }
.res-head { padding-bottom: 18px; }

/* aydınlatma metni */
.sheet-body h4 { margin: 18px 0 10px; font-size: 15.5px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.sheet-body h5 { margin: 18px 0 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.sheet-body ul { margin: 0 0 10px; padding-left: 18px; }
.sheet-body li { margin-bottom: 6px; }
.sheet-body a { color: var(--text); word-break: break-all; }
.kv-special { padding: 2px 16px 8px; margin-bottom: 8px; border-radius: 16px; background: rgba(243,39,53,.07); border: 1px solid rgba(243,39,53,.25); }
.kv-special h4 { margin-top: 14px; }

.sheet-body { flex: 1 1 auto; min-height: 0; }
.sheet > .btn { flex: none; }
