:root {
  --bg: #0d0f14;
  --panel: #161a22;
  --panel2: #202633;
  --text: #f7f7f8;
  --muted: #9aa3b2;
  --line: rgba(255,255,255,.11);
  --accent: #ffffff;
  --danger: #ff6b6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.screen { min-height: 100dvh; width: 100%; max-width: 520px; margin: 0 auto; position: relative; }
.hidden { display: none !important; }
.auth-screen { display: flex; flex-direction: column; justify-content: center; padding: 28px; gap: 16px; }
.brand { text-align: center; margin-bottom: 10px; }
.logo { width: 68px; height: 68px; border: 1px solid var(--line); border-radius: 22px; display: grid; place-items: center; margin: 0 auto 14px; font-weight: 900; letter-spacing: -1px; background: linear-gradient(135deg, #222838, #0f1118); }
h1 { margin: 0; font-size: 42px; letter-spacing: -2px; }
p { color: var(--muted); line-height: 1.45; }
.card, .modal-body { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.form { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); border-radius: 16px; padding: 14px 15px; outline: none; }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(255,255,255,.45); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form button, .tabs button, .nav-btn { border: 0; border-radius: 16px; padding: 14px 16px; font-weight: 800; }
.form button { background: var(--accent); color: #101218; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tab { color: var(--muted); background: transparent; border: 1px solid var(--line) !important; }
.tab.active { color: var(--bg); background: var(--accent); }
.error { min-height: 20px; color: var(--danger); text-align: center; margin: 0; }
.main-screen { overflow: hidden; background: #000; }
.topbar { position: absolute; z-index: 7; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 14px) 16px 12px; background: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,0)); }
.topbar strong { display: block; }
.topbar span { display: block; color: rgba(255,255,255,.68); font-size: 12px; }
.top-actions { display: flex; gap: 8px; }
.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; }
.feed { height: 100dvh; overflow: hidden; touch-action: pan-y; }
.life-card { width: 100%; height: 100dvh; position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.18), transparent 28%), linear-gradient(135deg, #263143, #08090d); }
.life-card.empty { justify-content: center; align-items: center; text-align: center; padding: 22px; }
.life-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.life-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.45) 36%, rgba(0,0,0,.1) 70%); pointer-events: none; }
.post-info { position: relative; z-index: 2; padding: 0 18px 128px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.meta span { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 7px 10px; font-size: 13px; backdrop-filter: blur(8px); }
.caption { font-size: 25px; line-height: 1.16; color: #fff; letter-spacing: -.6px; margin: 0 0 18px; text-shadow: 0 3px 20px rgba(0,0,0,.45); }
.reactions { display: flex; gap: 8px; }
.reaction { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; font-size: 21px; }
.reaction.active { background: #fff; }
.bottom-nav { position: absolute; z-index: 8; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 14px); background: rgba(18,20,25,.78); border: 1px solid var(--line); backdrop-filter: blur(16px); border-radius: 22px; padding: 8px; display: grid; grid-template-columns: 1fr 1.35fr 1.25fr; gap: 8px; }
.nav-btn { background: transparent; color: rgba(255,255,255,.7); }
.nav-btn.active { background: rgba(255,255,255,.14); color: #fff; }
.nav-btn.primary { background: #fff; color: #101218; }
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.72); display: flex; align-items: flex-end; justify-content: center; padding: 14px; }
.modal-body { position: relative; width: 100%; max-width: 520px; padding: 20px; border-radius: 28px 28px 20px 20px; background: var(--panel); }
.close { position: absolute; right: 18px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); color: #fff; font-size: 24px; }
.modal h2 { margin: 8px 0 0; font-size: 28px; letter-spacing: -1px; }
.muted { margin-top: 4px; }
small { color: var(--muted); text-align: right; }
@media (min-width: 700px) {
  body { background: radial-gradient(circle at top, #1d2433, #05060a 55%); }
  .main-screen { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

.version { text-align: center; font-size: 12px; margin: 0; }
.mode-banner { position: absolute; z-index: 6; top: 78px; left: 14px; right: 14px; padding: 10px 12px; border-radius: 16px; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.82); font-size: 12px; backdrop-filter: blur(12px); text-align: center; }
.hint { position: absolute; z-index: 7; left: 0; right: 0; bottom: 88px; text-align: center; color: rgba(255,255,255,.48); font-size: 12px; pointer-events: none; }
.opposite-card { margin-bottom: 12px; padding: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.34); border-radius: 18px; backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 3px; }
.opposite-card strong { color: #fff; font-size: 14px; }
.opposite-card small { color: rgba(255,255,255,.72); text-align: left; }
.stats-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.stats-box div { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.05); }
.stats-box strong { display: block; font-size: 30px; color: #fff; letter-spacing: -1px; }
.stats-box span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 430px) {
  .caption { font-size: 22px; }
  .bottom-nav { grid-template-columns: .95fr 1.15fr 1.1fr; }
  .nav-btn { padding: 12px 9px; font-size: 13px; }
  .hint { display: none; }
}

/* v7 curiosity feed */
.form button.secondary { background: rgba(255,255,255,.10); color: #fff; border: 1px solid var(--line); }
.demo-creds { text-align: center; color: rgba(255,255,255,.55); }
.hook-chip { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 8px 11px; border-radius: 999px; color: #101218; background: rgba(255,255,255,.92); font-size: 13px; font-weight: 900; letter-spacing: -.1px; box-shadow: 0 8px 26px rgba(0,0,0,.22); }
.hook-chip::before { content: '●'; font-size: 10px; }
.why-card { display: inline-block; margin-bottom: 12px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; background: rgba(0,0,0,.30); color: rgba(255,255,255,.76); font-size: 12px; backdrop-filter: blur(12px); }
.next-life { position: absolute; z-index: 9; right: 18px; bottom: calc(env(safe-area-inset-bottom) + 88px); border: 1px solid rgba(255,255,255,.20); background: rgba(255,255,255,.92); color: #101218; border-radius: 999px; padding: 12px 16px; font-weight: 900; box-shadow: 0 18px 50px rgba(0,0,0,.30); }
.bottom-nav { grid-template-columns: .9fr .75fr .85fr .75fr; }
@media (max-width: 430px) {
  .bottom-nav { grid-template-columns: .86fr .72fr .78fr .68fr; gap: 5px; }
  .nav-btn { padding: 11px 5px; font-size: 12px; }
  .next-life { bottom: calc(env(safe-area-inset-bottom) + 82px); right: 12px; padding: 10px 13px; font-size: 13px; }
  .post-info { padding-bottom: 130px; }
}

/* v9 Turkish retention layer */
.seen-counter {
  position: absolute;
  z-index: 7;
  top: 124px;
  left: 18px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}
.hook-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.hook-row .hook-chip { margin-bottom: 0; }
.save-btn {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.34);
  color: #fff;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}
.save-btn.saved {
  background: rgba(255,255,255,.94);
  color: #101218;
}
.prompt-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prompt-box span {
  width: 100%;
  color: var(--muted);
  font-size: 13px;
}
.prompt-box button {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.09);
  color: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}
.bottom-nav { grid-template-columns: .92fr .72fr .62fr .82fr .72fr; }
@media (max-width: 430px) {
  .bottom-nav { grid-template-columns: .9fr .68fr .56fr .76fr .68fr; gap: 4px; }
  .seen-counter { top: 118px; left: 14px; font-size: 11px; }
  .post-info { padding-bottom: 132px; }
  .hook-row { flex-wrap: wrap; }
}

/* v11 cinematic minimal redesign */
.topbar {
  padding: calc(env(safe-area-inset-top) + 14px) 18px 36px;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.18) 60%, rgba(0,0,0,0));
}
.topbar strong { font-size: 15px; letter-spacing: -.2px; }
.topbar span { opacity: .72; }
.ghost {
  padding: 8px 11px;
  background: rgba(0,0,0,.20);
  border-color: rgba(255,255,255,.16);
  backdrop-filter: blur(14px);
  font-size: 13px;
}
.mode-banner {
  top: 78px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: auto;
  max-width: calc(100% - 36px);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.26);
  color: rgba(255,255,255,.70);
  font-size: 11px;
  white-space: nowrap;
}
.life-card::after {
  background:
    linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.64) 26%, rgba(0,0,0,.18) 62%, rgba(0,0,0,.22) 100%);
}
.post-info {
  padding: 0 22px 118px;
}
.context-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.context-pill strong {
  color: #fff;
  font-size: 12px;
}
.context-pill small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.62);
  text-align: left;
}
.meta-line {
  margin-bottom: 12px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.15px;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.caption {
  max-width: 94%;
  margin-bottom: 18px;
  font-size: clamp(27px, 6vw, 36px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.2px;
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.reactions {
  gap: 9px;
}
.reaction {
  width: 42px;
  height: 42px;
  font-size: 19px;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
}
.save-btn {
  padding: 10px 13px;
  background: rgba(0,0,0,.26);
  border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.85);
}
.next-life {
  right: 18px;
  bottom: calc(env(safe-area-inset-bottom) + 72px);
  padding: 10px 14px;
  background: rgba(255,255,255,.90);
  font-size: 13px;
}
.share-fab {
  position: absolute;
  z-index: 10;
  right: 18px;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #101218;
  font-size: 27px;
  line-height: 1;
  font-weight: 850;
  box-shadow: 0 16px 42px rgba(0,0,0,.35);
}
.bottom-nav {
  left: 18px;
  right: 78px;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  padding: 5px;
  border-radius: 18px;
  background: rgba(10,12,16,.58);
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.nav-btn {
  padding: 10px 7px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
}
.nav-btn.active { background: rgba(255,255,255,.13); }
.seen-counter, .why-card, .hook-row, .hook-chip, .meta { display: none !important; }
@media (max-width: 430px) {
  .post-info { padding: 0 18px 114px; }
  .caption { font-size: 27px; max-width: 100%; }
  .bottom-nav { left: 14px; right: 72px; bottom: calc(env(safe-area-inset-bottom) + 14px); }
  .share-fab { right: 14px; bottom: calc(env(safe-area-inset-bottom) + 14px); }
  .next-life { right: 14px; bottom: calc(env(safe-area-inset-bottom) + 70px); }
  .reaction { width: 40px; height: 40px; }
  .save-btn { padding: 9px 11px; font-size: 12px; }
  .context-pill { max-width: 88%; }
}


/* v12 hidden stories */
.life-card { cursor: pointer; }
.caption { cursor: pointer; }
.story-input {
  min-height: 96px;
  opacity: .92;
}
.story-modal {
  z-index: 34;
  background: rgba(0,0,0,.72);
  align-items: flex-end;
}
.story-sheet {
  max-height: 72dvh;
  overflow: auto;
  background: rgba(15,17,23,.96);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 -22px 80px rgba(0,0,0,.55);
}
.story-meta {
  margin: 4px 38px 10px 0;
  color: rgba(255,255,255,.58);
  font-size: 13px;
  font-weight: 750;
}
.story-sheet h2 {
  margin: 0 34px 16px 0;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -1px;
}
.story-text {
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.55;
}
.story-text p {
  margin: 0 0 14px;
  color: rgba(255,255,255,.82);
}
@media (max-width: 430px) {
  .story-sheet h2 { font-size: 24px; }
  .story-text { font-size: 15px; }
}

/* v13 onboarding + safety */
.onboarding-body { text-align: center; }
.onboard-logo {
  width: 58px;
  height: 58px;
  margin: 4px auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #101218;
  font-weight: 950;
  letter-spacing: -1px;
}
.onboard-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  text-align: left;
}
.onboard-steps div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}
.onboard-steps strong {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.94);
  color: #101218;
}
.onboard-steps span { color: rgba(255,255,255,.82); line-height: 1.35; }
.safety-note {
  margin: 12px 0 4px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.35;
}
.right-actions { display: flex; align-items: center; gap: 8px; }
.more-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  backdrop-filter: blur(12px);
  padding: 0 0 4px;
}
.action-sheet { padding-bottom: calc(env(safe-area-inset-bottom) + 18px); }
.sheet-action {
  width: 100%;
  margin-top: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid var(--line);
  text-align: left;
  padding: 15px 16px;
}
.sheet-action.danger { color: #ffb6b6; border-color: rgba(255,120,120,.30); }
@media (max-width: 430px) {
  .right-actions { gap: 6px; }
  .more-btn { width: 36px; height: 36px; }
}

/* v14 admin/test panel */
.admin-body {
  min-height: 100vh;
  overflow: auto;
  background: radial-gradient(circle at top left, #283245, #07080d 52%, #030407);
}
.admin-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 28px 16px 48px;
}
.compact-brand { margin: 0 auto 20px; }
.admin-login {
  max-width: 440px;
  margin: 40px auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.045);
}
.admin-panel { display: block; }
.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.admin-header h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -1.5px; }
.admin-header p { color: var(--muted); max-width: 720px; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.admin-stat {
  padding: 16px;
  min-height: 112px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
}
.admin-stat strong { display: block; font-size: 34px; letter-spacing: -1px; }
.admin-stat span { display: block; color: #fff; font-weight: 800; margin-top: 4px; }
.admin-stat small { display: block; text-align: left; margin-top: 8px; color: var(--muted); }
.admin-section {
  margin-top: 24px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.admin-section h2 { margin: 0 0 14px; }
.admin-list { display: grid; gap: 10px; }
.admin-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
}
.admin-item.no-image { grid-template-columns: 1fr; }
.admin-item img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: #111;
}
.admin-item strong, .admin-item span, .admin-item small { display: block; }
.admin-item span { color: rgba(255,255,255,.75); margin-top: 3px; }
.admin-item small { color: var(--muted); text-align: left; margin-top: 4px; }
@media (max-width: 840px) {
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-header { flex-direction: column; }
}

/* v15 share mode polish */
.mode-picker .mode-chip.active {
  background: rgba(255,255,255,.94);
  color: #101218;
  border-color: rgba(255,255,255,.94);
}
.compact-admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}
.compact-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .compact-admin-grid,
  .compact-list { grid-template-columns: 1fr; }
}

/* v16 market foundation */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  font-size: 12px;
}
.legal-links a {
  color: rgba(255,255,255,.62);
  text-decoration: none;
}
.legal-links a:hover { color: #fff; }
.auth-links { margin: 6px 0 0; }
.account-tools {
  margin-top: 18px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.account-tools h3 { margin: 0 0 4px; }
.account-tools p { margin: 0 0 12px; font-size: 13px; }
.danger-outline {
  width: 100%;
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255,107,107,.08);
  color: #ffb6b6;
  border: 1px solid rgba(255,107,107,.28);
  font-weight: 800;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.admin-actions button {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}
.admin-actions button:hover { background: rgba(255,255,255,.15); }
.legal-page {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 36px 18px 72px;
}
.legal-page .card {
  padding: 24px;
}
.legal-page h1 { font-size: clamp(30px, 6vw, 48px); }
.legal-page h2 { margin-top: 28px; }
.legal-page p, .legal-page li { color: rgba(255,255,255,.75); }
.legal-page a { color: #fff; }


/* v18 Android test build readiness */
.image-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 160px;
  background: rgba(255,255,255,.05);
}
.image-preview img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.image-preview span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 12px;
  font-weight: 800;
}
.small-note { font-size: 12px; }
#backendUrlInput { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
@media (display-mode: standalone) {
  body { overscroll-behavior-y: contain; }
}


/* v20 profile sheet */
.profile-sheet { padding-bottom: calc(env(safe-area-inset-bottom) + 22px); max-height: 88dvh; overflow: auto; }
.profile-box { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.profile-head { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.05); }
.profile-avatar { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; font-weight: 900; letter-spacing: -1px; background: #fff; color: #101218; }
.profile-head strong { display: block; font-size: 20px; }
.profile-head span { color: var(--muted); font-size: 13px; }
.profile-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-info div, .profile-last { padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.045); }
.profile-info span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.profile-info strong { display: block; color: #fff; line-height: 1.25; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.profile-stat { padding: 13px 8px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.055); text-align: center; }
.profile-stat strong { display: block; font-size: 22px; color: #fff; }
.profile-stat span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.profile-last h3 { margin: 0 0 8px; }
.profile-last p { margin: 0; color: #fff; }
.profile-last small { display: block; text-align: left; margin-top: 8px; }
.profile-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-links a { color: #fff; text-decoration: none; text-align: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.05); }
@media (max-width: 430px) {
  .top-actions { gap: 6px; }
  .ghost { padding: 8px 10px; font-size: 12px; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
}


/* v21 production + right swipe navigation */
.next-life { display: none !important; }
.swipe-cue {
  position: absolute;
  z-index: 9;
  right: 18px;
  bottom: calc(env(safe-area-inset-bottom) + 72px);
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.66);
  font-size: 11px;
  font-weight: 750;
  backdrop-filter: blur(12px);
  opacity: .72;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.swipe-cue.show {
  opacity: 1;
  transform: translateX(4px);
  color: rgba(255,255,255,.92);
}
.life-card.swipe-right {
  transition: transform .22s ease, opacity .22s ease;
  transform: translateX(115%) rotate(8deg) !important;
  opacity: .2;
}
.life-card.swipe-reset {
  transition: transform .18s ease;
  transform: translateX(0) rotate(0);
}
@media (max-width: 430px) {
  .swipe-cue { right: 14px; bottom: calc(env(safe-area-inset-bottom) + 68px); }
}

/* v22 swipe experience 2.0 */
.feed { touch-action: none; }
.life-card { will-change: transform, opacity; transition: transform 180ms ease, opacity 180ms ease; }
.life-card.card-enter { animation: cardIn 260ms ease both; }
@keyframes cardIn {
  from { opacity: .65; transform: translateX(18px) scale(.985); filter: blur(2px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}
.life-card.drag-right::before,
.life-card.drag-left::before,
.life-card.drag-up::before {
  position: absolute;
  z-index: 5;
  top: calc(env(safe-area-inset-top) + 92px);
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.1px;
  color: #101218;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 45px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
}
.life-card.drag-right::before { content: 'Sonraki hayat'; }
.life-card.drag-left::before { content: 'Sende kalsın'; }
.life-card.drag-up::before { content: 'Hikayeye yaklaş'; }
.life-card.swipe-right { animation: swipeRight 250ms ease both; }
.life-card.swipe-left { animation: swipeLeft 250ms ease both; }
.life-card.swipe-up { animation: swipeUp 250ms ease both; }
.life-card.swipe-reset { animation: cardReset 220ms ease both; }
@keyframes swipeRight { to { transform: translateX(135%) rotate(9deg); opacity: 0; } }
@keyframes swipeLeft { to { transform: translateX(-48%) rotate(-7deg) scale(.98); opacity: .72; } }
@keyframes swipeUp { to { transform: translateY(-12%) scale(1.025); opacity: .92; } }
@keyframes cardReset { from { transform: translateX(14px) scale(.992); opacity: .85; } to { transform: translateX(0) scale(1); opacity: 1; } }
.swipe-cue {
  right: 14px;
  left: auto;
  bottom: calc(env(safe-area-inset-bottom) + 74px);
  width: auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.13);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(10px);
}
.swipe-cue.show { opacity: 1; transform: translateY(0); }
.gesture-toast {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 104px);
  transform: translate(-50%, 14px) scale(.96);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #101218;
  font-weight: 900;
  box-shadow: 0 16px 50px rgba(0,0,0,.34);
  transition: opacity 180ms ease, transform 180ms ease;
}
.gesture-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.reaction.pop { animation: emojiPop 280ms ease both; }
.save-btn.save-pop { animation: savePulse 320ms ease both; }
@keyframes emojiPop { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes savePulse { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
.story-modal { opacity: 0; transition: opacity 180ms ease; }
.story-modal:not(.hidden) { opacity: 1; }
.story-modal:not(.hidden) .story-sheet { animation: storySheetIn 230ms ease both; }
@keyframes storySheetIn { from { transform: translateY(32px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
.gesture-coach-body { text-align: center; padding-top: 26px; }
.gesture-icon { width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 24px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid var(--line); font-size: 34px; font-weight: 900; }
.gesture-steps { display: grid; gap: 9px; margin: 18px 0; text-align: left; }
.gesture-steps div { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.gesture-steps strong { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #101218; font-size: 22px; }
.gesture-coach-body button { width: 100%; border: 0; border-radius: 17px; padding: 15px 16px; font-weight: 900; background: #fff; color: #101218; }
@media (max-width: 430px) {
  .swipe-cue { right: 12px; bottom: calc(env(safe-area-inset-bottom) + 70px); font-size: 11px; }
  .life-card.drag-right::before,
  .life-card.drag-left::before,
  .life-card.drag-up::before { top: calc(env(safe-area-inset-top) + 84px); font-size: 12px; }
}
