/* Kimbu – arayüz stilleri (teal / nane tasarım dili) */
:root {
  --bg: #f6faf8;
  --surface: #ffffff;
  --surface-2: #eff5f3;
  --ink: #1b3533;
  --mute: #5a6e6b;
  --line: #e1ebe7;
  --brand: #087f74;
  --brand-ink: #ffffff;
  --brand-soft: #e2f1ed;
  --gold: #825b19;
  --gold-soft: #fff4dc;
  --ok: #17785a;
  --ok-soft: #e3f4ec;
  --bad: #b43f3f;
  --bad-soft: #fbeceb;
  --cover-a: #c1ded4;
  --cover-b: #6b9d8e;
  --cover-ink: #20483d;
  --warm-a: #eddec8;
  --warm-b: #b49b80;
  --warm-ink: #58402b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 50, 45, .04), 0 10px 30px rgba(20, 50, 45, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181a;
    --surface: #171e20;
    --surface-2: #273632;
    --ink: #edf6f4;
    --mute: #b2c6c1;
    --line: #364840;
    --brand: #79dcca;
    --brand-ink: #102b25;
    --brand-soft: #1f3a34;
    --gold: #f2d18c;
    --gold-soft: #443821;
    --ok: #6fd6a8;
    --ok-soft: #173326;
    --bad: #ffaaaa;
    --bad-soft: #3a1d1d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.has-tabs { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
a { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; }
h1 { font-size: 27px; letter-spacing: -1px; font-weight: 700; }
h2 { font-size: 18px; letter-spacing: -.3px; }
h3 { font-size: 16px; }
p { margin: 0 0 .75em; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 16px; flex: 1; }
.muted { color: var(--mute); }
.small { font-size: 12px; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.serif { font-family: Georgia, "Times New Roman", serif; }

/* Üst bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; padding-top: calc(14px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 25px; letter-spacing: -1.5px; text-decoration: none; color: var(--ink); line-height: 1; }
.logo b, .logo i { color: var(--brand); font-weight: 800; font-style: normal; }
.topnav { display: none; gap: 2px; }
.topnav a { text-decoration: none; color: var(--mute); padding: 7px 11px; border-radius: 12px; font-weight: 600; font-size: 14px; position: relative; }
.topnav a.is-active, .topnav a:hover { color: var(--brand); background: var(--surface-2); }
@media (min-width: 760px) {
  .topnav { display: flex; }
  .tabbar { display: none !important; }
  body.has-tabs { padding-bottom: 0; }
}

/* Alt sekme çubuğu (mobil) */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-around;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { position: relative; display: grid; justify-items: center; gap: 4px; padding: 8px 6px; min-width: 58px; font-size: 10px; color: var(--mute); text-decoration: none; }
.tabbar a.is-active { color: var(--brand); }
.tabbar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .badge { position: absolute; top: 2px; left: calc(50% + 5px); }

.badge, .count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 7px; border-radius: 20px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 12px;
  min-height: 44px; padding: 12px 16px; font: 600 14px/1.1 inherit; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: 8px 12px; font-size: 13px; border-radius: 11px; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-accent { background: var(--brand); color: var(--brand-ink); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-link { background: none; color: var(--brand); padding: 10px 4px; min-height: 44px; font-weight: 500; }
.btn-google { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 14px 22px; font-size: 15px; }
.btn-google svg { width: 22px; height: 22px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1; }
.icon-btn { border: 0; background: var(--surface-2); color: var(--ink); width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 18px; line-height: 1; cursor: pointer; text-decoration: none; flex: none; }
.icon-btn:hover { filter: brightness(.97); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Kartlar ve formlar */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.tile { background: var(--surface-2); border-radius: var(--radius); padding: 16px; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.form { display: flex; flex-direction: column; gap: 8px; }
.form.inline { flex-direction: row; align-items: center; flex-wrap: wrap; }
.form label { font-weight: 600; font-size: 12px; margin-top: 8px; }
input[type=text], input:not([type]), input[type=email], input[type=password], input[type=url], input[type=number], textarea, select {
  width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: 16px Arial, sans-serif; resize: vertical; min-width: 0;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.check { display: flex !important; gap: 12px; align-items: flex-start; justify-content: space-between; font-weight: 400 !important; font-size: 13px !important; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); flex: none; order: 2; }
.hint { color: var(--mute); font-size: 12px; margin: 0; }
.prefix-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.prefix-input span { padding: 12px 0 12px 12px; color: var(--mute); white-space: nowrap; font-size: 15px; }
.prefix-input input { border: 0; padding-left: 2px; background: transparent; }
.prefix-input:focus-within { outline: 2px solid var(--brand); }
.prefix-input input:focus { outline: none; }
.form-error { color: var(--bad); font-weight: 600; font-size: 13px; margin-top: 8px; }

.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 13px; }
.flash-ok { background: var(--brand-soft); color: var(--brand); }
.flash-err { background: var(--bad-soft); color: var(--bad); }
.notice { background: var(--surface-2); color: var(--brand); padding: 12px; border-radius: 12px; font-size: 12px; margin: 12px 0; }

.tag { display: inline-block; font-size: 11px; padding: 4px 9px; border-radius: 20px; background: var(--surface-2); color: var(--mute); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-bad { background: var(--bad-soft); color: var(--bad); }
.tag-gold, .plus-badge { background: var(--gold-soft); color: var(--gold); }
.plus-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; vertical-align: middle; }

/* Avatar */
.avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 88px; height: 88px; border: 3px solid var(--surface); }
.anon-av { display: inline-grid; place-items: center; font-weight: 700; font-size: 18px; color: var(--brand); background: var(--surface-2); }

/* Ana sayfa */
.hero { text-align: center; padding: 26px 8px 22px; }
.orb { width: 120px; height: 120px; border-radius: 36px; background: var(--surface-2); color: var(--brand); display: grid; place-items: center; margin: 6px auto 26px; font-size: 58px; font-weight: 800; transform: rotate(-7deg); }
.eyebrow { display: inline-block; font-size: 11px; color: var(--gold); background: var(--gold-soft); padding: 5px 11px; border-radius: 20px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(27px, 7vw, 36px); margin: 0 0 10px; }
.hl { color: var(--brand); }
.lead { font-size: 15px; color: var(--mute); max-width: 460px; margin: 0 auto 22px; }
.fine { font-size: 12px; color: var(--mute); margin-top: 14px; }
.hero .btn-google { width: 100%; max-width: 360px; }
.steps { display: grid; gap: 12px; margin: 8px 0 18px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface-2); border-radius: var(--radius); padding: 18px; }
.step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); color: var(--brand); margin-bottom: 10px; }
.step h2 { font-size: 1.12rem; margin: 0 0 6px; }
.step p { color: var(--mute); font-size: 13px; margin: 0; word-break: break-word; }
.trust { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.trust ul { padding-left: 18px; margin: 0 0 8px; }
.trust li { margin-bottom: 6px; font-size: 14px; }

/* Profil */
.profile-card { text-align: center; padding: 10px 0 6px; }
.profile-card .avatar-xl { margin: 0 auto 12px; display: block; }
.profile-card h1 { margin: 0 0 2px; }
.handle { color: var(--mute); font-size: 12px; margin: 0 0 10px; }
.bio { max-width: 420px; margin: 0 auto 8px; white-space: pre-wrap; }
.send-card { border: 0; background: var(--surface-2); }
.send-label { font-size: 16px !important; font-weight: 700 !important; margin: 0 0 4px !important; }
.send-card textarea { font-size: 16px; min-height: 120px; background: var(--surface); }
.send-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login-gate { text-align: center; margin-top: 12px; }
.sent-ok { text-align: center; }
.big-check { width: 72px; height: 72px; margin: 4px auto 12px; border-radius: 24px; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--brand); background: var(--surface); transform: rotate(-7deg); }
.sent-ok .btn { margin: 4px; }
.cta-card { text-align: center; }
.copy-row { display: flex; gap: 8px; margin-bottom: 12px; }
.copy-row input { flex: 1; }
.story-preview { display: block; width: 180px; margin: 16px auto 0; border-radius: 16px; box-shadow: var(--shadow); }

/* Sekmeler ve sohbet listesi */
.tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.tabs a { padding: 7px 13px; border-radius: 20px; text-decoration: none; font-size: 13px; color: var(--mute); }
.tabs a.is-active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.page-h { font-size: 27px; }
.page-sub { color: var(--mute); font-size: 13px; margin: -4px 0 14px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.page-head .btn { flex: none; white-space: nowrap; }
.conv-list { list-style: none; margin: 0; padding: 0; }
.conv { display: flex; align-items: center; gap: 12px; padding: 16px 2px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conv-top { display: flex; align-items: center; gap: 6px; }
.conv-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-top time { margin-left: auto; color: var(--mute); font-size: 12px; flex: none; }
.conv-prev { color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-prev em { font-style: normal; font-weight: 600; }
.conv.is-unread b { color: var(--ink); }
.conv.is-unread .conv-prev { color: var(--ink); }
.empty { text-align: center; padding: 40px 15px; color: var(--mute); }
.empty-ico { width: 80px; height: 80px; border-radius: 26px; background: var(--surface-2); color: var(--brand); display: grid; place-items: center; margin: 0 auto 16px; font-size: 32px; transform: rotate(-7deg); }
.empty h2 { color: var(--ink); }

/* Sohbet */
.chat { display: flex; flex-direction: column; height: calc(100vh - 150px); height: calc(100dvh - 150px); min-height: 420px; }
body.has-tabs .chat { height: calc(100dvh - 215px); }
@media (min-width: 760px) { body.has-tabs .chat { height: calc(100dvh - 150px); } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 0 0 4px; }
.chat-who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-who a { text-decoration: none; }
.chat-note { margin: 10px 0 4px; }
.day-sep { text-align: center; color: var(--mute); font-size: 12px; letter-spacing: .04em; margin: 6px 0; }
.msgs { flex: 1; overflow-y: auto; padding: 6px 2px; display: flex; flex-direction: column; overscroll-behavior: contain; }
.msg { max-width: 86%; align-self: flex-start; background: var(--surface-2); border-radius: 16px 16px 16px 3px; padding: 12px 14px; margin: 6px 0; overflow-wrap: anywhere; }
.msg p { margin: 0; white-space: pre-wrap; }
.msg time { display: block; font-size: 10px; opacity: .8; margin-top: 6px; text-align: right; }
.msg.mine { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-radius: 16px 16px 3px 16px; }
.composer { display: flex; gap: 7px; padding-top: 12px; align-items: flex-end; }
.composer textarea { min-height: 46px; max-height: 140px; resize: none; font-size: 15px; }
.composer .icon-btn { width: 46px; height: 46px; background: var(--brand); color: var(--brand-ink); }
.blocked-bar { text-align: center; padding: 14px; color: var(--mute); font-size: 13px; }
.chat .form-error { padding: 6px 0 0; }

/* Alt sayfa diyalogları */
dialog.sheet { border: 0; border-radius: 22px; padding: 22px; width: min(420px, calc(100% - 24px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
dialog.sheet::backdrop { background: rgba(10, 25, 22, .45); }
dialog.sheet h3 { font-size: 20px; letter-spacing: -.5px; }
.sheet-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.6rem; color: var(--mute); cursor: pointer; }
.sheet-item { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; font: 14px Arial, sans-serif; cursor: pointer; }
.sheet-item.danger { color: var(--bad); border-bottom: 0; }

/* Shuffle / keşfet */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person { display: block; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .12s ease; min-width: 0; }
.person:hover { transform: translateY(-2px); }
.cover { height: 110px; display: flex; align-items: center; justify-content: center; position: relative; background: linear-gradient(140deg, var(--cover-a), var(--cover-b)); color: var(--cover-ink); }
.person:nth-child(even) .cover { background: linear-gradient(140deg, var(--warm-a), var(--warm-b)); color: var(--warm-ink); }
.cover .avatar { width: 58px; height: 58px; border: 3px solid rgba(255, 255, 255, .7); }
.cover .tag { position: absolute; top: 6px; left: 6px; font-size: 10px; padding: 3px 8px; }
.cover .dot { position: absolute; right: calc(50% - 32px); bottom: 22px; width: 13px; height: 13px; border-radius: 50%; background: #22b573; border: 2px solid #fff; }
.person .info { padding: 11px; }
.person .info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .info .muted { font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person.is-boost { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.boost-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); margin: 4px 0 18px; text-decoration: none; color: var(--ink); background: var(--gold-soft); font-size: 13px; }
.boost-banner b { color: var(--gold); }
.boost-banner.is-on { color: var(--gold); font-weight: 600; }

/* Öne çık */
.status-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.stat { background: var(--surface-2); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat span { color: var(--mute); font-size: 12px; }
.stat.on { background: var(--gold-soft); }
.stat.on span, .stat.on b { color: var(--gold); }
.perks { display: grid; gap: 10px; margin-bottom: 18px; }
.perks .tile { font-size: 14px; }
.packages { display: grid; gap: 12px; margin-bottom: 12px; }
@media (min-width: 560px) { .packages { grid-template-columns: 1fr 1fr; } }
.pkg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.pkg-type { align-self: flex-start; }
.pkg h3 { margin: 4px 0 0; }
.pkg-price { font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin: 0; }
.pkg .form { gap: 6px; }
.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.simple-list li:last-child { border-bottom: 0; }

/* Ayarlar */
.avatar-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.danger-zone { margin-top: 16px; padding-top: 6px; }
.danger-zone summary { cursor: pointer; color: var(--bad); font-weight: 600; font-size: 13px; padding: 10px 0; }
.danger-zone .form { margin-top: 6px; }
.reason { background: var(--surface-2); border-radius: 12px; padding: 14px; margin: 12px 0 18px; }
.reason p { font-weight: 600; margin: 4px 0; }
.prose p { white-space: normal; }

.foot { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; padding: 22px 16px 26px; font-size: 12px; color: var(--mute); }
.foot a { color: var(--mute); }
@media (max-width: 759px) { body.has-tabs .foot { display: none; } }

/* Giriş / kayıt */
.auth-btns { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto; }
.auth-btns .btn-google { width: 100%; max-width: none; }
.auth-card { max-width: 420px; margin: 0 auto; padding-top: 6px; }
.auth-card h1 { margin-bottom: 6px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 12px; margin: 18px 0 6px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { text-align: center; font-size: 13px; color: var(--mute); margin-top: 16px; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 76px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--brand); font: 13px Arial, sans-serif; padding: 8px; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Mesaj paneli (v0.3) --- */
.chat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chat-head { background: var(--brand); color: var(--brand-ink); padding: 10px 10px; gap: 8px; }
.chat-head .chat-who b { color: var(--brand-ink); font-size: 16px; }
.chat-head .chat-who .muted { color: color-mix(in srgb, var(--brand-ink) 78%, transparent); }
.chat-head .avatar { width: 40px; height: 40px; border: 2px solid color-mix(in srgb, var(--brand-ink) 60%, transparent); }
.chat-head .anon-av { background: color-mix(in srgb, var(--brand-ink) 18%, transparent); color: var(--brand-ink); }
.icon-btn.ghost { background: transparent; color: inherit; }
.icon-btn.ghost:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.icon-btn.dark { background: rgba(0, 0, 0, .45); color: #fff; }
.chat-toast { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 5; background: rgba(20, 30, 28, .88); color: #fff; font-size: 13px; padding: 9px 16px; border-radius: 12px; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; transition: opacity .4s, transform .4s; pointer-events: none; }
.chat-toast.hide { opacity: 0; transform: translate(-50%, -8px); }
.chat .msgs { background: var(--bg); padding: 14px 12px; }
.chat .composer { background: var(--surface); border-top: 1px solid var(--line); padding: 8px 10px; gap: 8px; align-items: flex-end; }
.composer-field { flex: 1; min-width: 0; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 24px; padding: 2px 4px 2px 0; }
.composer-field textarea { flex: 1; min-width: 0; background: transparent; border: 0; min-height: 44px; max-height: 140px; padding: 12px 6px 12px 16px; resize: none; font-size: 15px; }
.composer-field textarea:focus { outline: none; }
.composer-field:focus-within { outline: 2px solid var(--brand); }
.tool { border: 0; background: none; color: var(--mute); width: 40px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; flex: none; }
.tool:hover { color: var(--brand); }
.tool svg, .round-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.round-btn { border: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.round-btn.light { background: var(--surface-2); color: var(--bad); }
.anon-tip { position: absolute; left: 12px; right: 56px; bottom: 74px; z-index: 4; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(20, 50, 45, .14); }
.anon-tip div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.anon-tip b { color: var(--brand); font-size: 17px; }
.anon-tip span { color: var(--brand); font-size: 13px; opacity: .85; }
.anon-tip-ico { width: 44px; height: 44px; fill: none; stroke: color-mix(in srgb, var(--brand) 35%, transparent); stroke-width: 2.2; flex: none; }
.anon-tip-x { position: absolute; top: 4px; right: 8px; border: 0; background: none; color: var(--mute); font-size: 18px; cursor: pointer; }
.recorder { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--surface); }
.rec-info { flex: 1; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.msg.is-media { padding: 6px; }
.msg.is-media time { padding: 0 6px 2px; }
.media { display: flex; flex-direction: column; gap: 4px; }
.media-src { font-size: 11px; opacity: .8; padding: 0 6px; }
.media-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; border: 0; border-radius: 12px; padding: 12px 14px; min-width: 210px; background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; font: 14px Arial, sans-serif; cursor: pointer; }
.media-card .media-ico { grid-row: span 2; font-size: 22px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, currentColor 12%, transparent); }
.media-card small { opacity: .75; font-size: 11px; }
.media-card.sealed { background: repeating-linear-gradient(135deg, color-mix(in srgb, currentColor 10%, transparent) 0 8px, color-mix(in srgb, currentColor 4%, transparent) 8px 16px); }
.media-card:disabled { cursor: default; }
.media-card.opened { opacity: .7; }
.media-img { display: block; max-width: 240px; max-height: 320px; border-radius: 12px; cursor: zoom-in; }
.audio-row { display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 6px 8px; }
.audio-play { border: 0; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; cursor: pointer; font-size: 12px; flex: none; }
.audio-bar { flex: 1; height: 4px; border-radius: 4px; background: color-mix(in srgb, currentColor 22%, transparent); cursor: pointer; position: relative; }
.audio-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: currentColor; border-radius: 4px; }
.audio-dur { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }

body.no-scroll { overflow: hidden; }
.cam, .viewer { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; display: flex; flex-direction: column; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam video.mirror { transform: scaleX(-1); }
.cam-top, .viewer-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; }
.cam-timer { background: var(--bad); color: #fff; border-radius: 20px; padding: 4px 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.cam-bottom { position: relative; z-index: 2; margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 16px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.cam-modes { display: flex; gap: 6px; background: rgba(0, 0, 0, .45); border-radius: 20px; padding: 4px; }
.cam-modes button { border: 0; background: none; color: #fff; padding: 6px 14px; border-radius: 16px; font: 13px Arial, sans-serif; cursor: pointer; }
.cam-modes button.on { background: #fff; color: #000; }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: none; display: grid; place-items: center; cursor: pointer; }
.shutter i { width: 60px; height: 60px; border-radius: 50%; background: #fff; transition: all .2s; }
.cam.video-mode .shutter i { background: #e5484d; }
.shutter.rec i { width: 28px; height: 28px; border-radius: 6px; }
.cam-hint { color: rgba(255, 255, 255, .8) !important; }
.viewer-body { flex: 1; display: grid; place-items: center; min-height: 0; padding: 8px; }
.viewer-body img, .viewer-body video { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.viewer-label { font-size: 13px; opacity: .85; }
.viewer-count { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-weight: 700; }
.viewer-note { text-align: center; font-size: 12px; opacity: .75; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); margin: 0; }
.preview-sheet { width: min(460px, calc(100% - 24px)); }
.preview-box { border-radius: 14px; overflow: hidden; background: #000; display: grid; place-items: center; max-height: 52vh; margin-top: 18px; }
.preview-box img, .preview-box video { max-width: 100%; max-height: 52vh; display: block; }
.src-label { font-size: 12px; color: var(--mute); margin: 8px 0; }
.mode-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.mode-chips .chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 20px; padding: 8px 13px; font: 13px Arial, sans-serif; cursor: pointer; }
.mode-chips .chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.progress { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin: 8px 0; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.app-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(10px); z-index: 80; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-size: 13px; max-width: calc(100% - 32px); text-align: center; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.app-toast.show { opacity: 1; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } .chat-toast, .app-toast, .shutter i { transition: none; } }

/* Telefonda sohbet tam ekran: üst logo, alt menü ve alt bilgi gizlenir */
@media (max-width: 759px) {
  body:has(#chat) .topbar, body:has(#chat) .tabbar, body:has(#chat) .foot { display: none; }
  body:has(#chat) .wrap { padding: 0; }
  body:has(#chat) .chat { position: fixed; inset: 0; height: auto; min-height: 0; border: 0; border-radius: 0; z-index: 20; }
  body:has(#chat) .chat-head { padding-top: max(10px, env(safe-area-inset-top)); }
  body:has(#chat) .chat .composer, body:has(#chat) .recorder { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  body:has(#chat) .chat-toast { top: calc(70px + env(safe-area-inset-top)); }
}
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-btn.busy { opacity: .6; pointer-events: none; }

/* Hediye öne çıkma */
.gift-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.gift-ico { font-size: 30px; line-height: 1; }
.gift-txt { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.gift-txt b { color: var(--gold); }
.gift-txt span { font-size: 13px; color: var(--mute); }
.gift-strip { display: block; text-decoration: none; background: var(--gold-soft); color: var(--gold); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin: 10px 0 4px; }
.gift-strip span { white-space: nowrap; }

.person .info strong .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.person .info { display: block; padding: 11px 12px 13px; }

/* --- Altın Halo: Plus ve Öne çıkan --- */
.pill-plus, .pill-boost { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; font: 800 10px/1 Arial, sans-serif; letter-spacing: .06em; white-space: nowrap; flex: none; }
.pill-plus { margin-left: 7px; padding: 4px 8px 4px 6px; color: #fff; background: linear-gradient(135deg, #f3d27a 0%, #d39a2c 45%, #b5791a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 1px 4px rgba(150,100,20,.35); text-shadow: 0 1px 1px rgba(110,70,10,.45); vertical-align: middle; }
.pill-plus svg { width: 13px; height: 10px; fill: #fff6d6; }
.pill-boost { padding: 5px 10px 5px 8px; color: #7a5410; background: linear-gradient(180deg, #fff8e6, #fbe9bd); border: 1px solid #ecc977; letter-spacing: 0; font-weight: 700; font-size: 11px; box-shadow: 0 2px 8px rgba(170,120,30,.18); }
.pill-boost svg { width: 13px; height: 13px; fill: #d99a1c; }
.pill-boost.corner { position: absolute; top: 8px; right: 8px; z-index: 3; }
h1 .pill-plus { font-size: 12px; padding: 5px 11px 5px 8px; margin-left: 10px; }
h1 .pill-plus svg { width: 17px; height: 13px; }
.chat-head .pill-plus { font-size: 9px; padding: 3px 6px 3px 5px; }

/* Plus çerçevesi: taçlı altın halka görseli (assets/img/plus-frame.webp).
   Görseldeki iç boşluk: merkez %49.9 / %52.6, yarıçap genişliğin %35.7'si → çerçeve = fotoğraf × 1.40 */
.halo { --s: 58px; --f: calc(var(--s) * 1.37); position: relative; display: inline-block; width: var(--s); height: var(--s); flex: none; }
.halo > img.avatar { width: var(--s) !important; height: var(--s) !important; margin: 0 !important; border: 0 !important; border-radius: 50%; display: block; object-fit: cover; }
.halo::after { content: ""; position: absolute; width: var(--f); height: var(--f); left: calc(var(--s) * .5 - var(--f) * .4992); top: calc(var(--s) * .5 - var(--f) * .5263); background: url("../img/plus-frame.webp") center / contain no-repeat; pointer-events: none; z-index: 2; animation: haloGlow 3.2s ease-in-out infinite; }
@keyframes haloGlow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.15) saturate(1.1); } }
@media (prefers-reduced-motion: reduce) { .halo::after { animation: none; } }
.halo-lg { --s: 112px; display: block; margin: 34px auto 22px; }
.halo-md { --s: 58px; margin-bottom: 6px; }
.halo-sm { --s: 36px; margin: 6px 8px 0 4px; }

/* Öne çıkan kart: altın çerçeve + ışıltı */
.person.is-boost, .profile-card.is-boost { border: 1.5px solid #e2b85c; box-shadow: 0 0 0 4px rgba(242,206,120,.18), 0 10px 30px rgba(190,140,40,.22); position: relative; }
.person.is-boost .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,236,190,.45) 50%, transparent 70%); background-size: 250% 100%; animation: boostShine 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes boostShine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .person.is-boost .cover::after { animation: none; } }
.profile-card { position: relative; }
.profile-card.is-boost { background: linear-gradient(180deg, #fffdf7, var(--surface)); border-radius: 24px; padding: 34px 16px 18px; margin-bottom: 14px; }
.profile-card.is-boost .pill-boost.corner { top: 12px; right: 12px; }
.profile-card h1 { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.person .info strong { display: flex; align-items: center; }
.person .info .pill-plus { font-size: 8.5px; padding: 3px 6px 3px 5px; margin-left: 5px; }
.person .info .pill-plus svg { width: 11px; height: 8px; }
.cover .pill-boost.corner { top: 6px; right: 6px; font-size: 10px; padding: 4px 8px 4px 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .profile-card.is-boost { background: linear-gradient(180deg, #2a2516, var(--surface)); } }
/* Keşfet kartı: rozet ile taç çakışmasın */
.cover { height: 132px; align-items: flex-end; padding-bottom: 14px; }
.cover .dot { bottom: 20px; }
.halo-md { margin-top: 0; }
/* Sohbet başlığında taç kesilmesin */
.chat-head:has(.halo) { padding-top: 18px; }
body:has(#chat) .chat-head:has(.halo), .chat .chat-head:has(.halo) { padding-top: max(20px, env(safe-area-inset-top)); }

/* --- Görüldü / yazıyor --- */
.seen-mark { align-self: flex-end; font-size: 11px; color: var(--mute); margin: -2px 4px 6px; }
.seen-mark.is-seen { color: var(--brand); font-weight: 700; }
.seen-mark.is-seen::before { content: "✓✓ "; letter-spacing: -2px; margin-right: 3px; }
.typing { display: flex; align-items: center; gap: 8px; padding: 4px 14px 8px; background: var(--bg); font-size: 12px; color: var(--mute); }
.typing-dots { display: inline-flex; gap: 3px; background: var(--surface-2); padding: 9px 11px; border-radius: 14px 14px 14px 4px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: tdot 1.2s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing-dots i { animation: none; } }

/* --- Sabitleme --- */
.conv-li { position: relative; }
.conv-li .conv { padding-right: 46px; }
.pin-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--mute); display: grid; place-items: center; cursor: pointer; opacity: .45; }
.pin-btn svg, .pin-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pin-btn:hover, .pin-btn:focus-visible { opacity: 1; background: var(--surface-2); color: var(--brand); }
.pin-btn.on { opacity: 1; color: var(--brand); }
.pin-btn.on svg { fill: currentColor; }
.pin-ico { color: var(--brand); display: inline-flex; }
.pin-ico svg { width: 14px; height: 14px; fill: currentColor; }
.conv-li.is-pinned .conv { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.conv-li .count { margin-right: 4px; }

/* --- Keşfet filtresi --- */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 2px; scrollbar-width: none; }
.filter-chips a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.filter-chips a.on { background: var(--brand); color: var(--brand-ink); }
.filter-chips a.locked { color: var(--mute); }
.mini-plus { font-size: 9px; font-weight: 800; letter-spacing: .05em; color: #fff; background: linear-gradient(135deg, #f3d27a, #c48b25); padding: 2px 5px; border-radius: 6px; }

/* --- İstatistikler --- */
.stats-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 14px; }
.stats-link .arrow { color: var(--brand); font-weight: 700; }
.stats-wrap { position: relative; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-box { background: var(--surface-2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat-box b { font-size: 26px; letter-spacing: -.5px; color: var(--ink); }
.stat-box span { font-size: 12px; color: var(--mute); }
.chart-card { padding: 16px; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--mute); margin-bottom: 10px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg-v, .bar-v { background: var(--brand); }
.lg-c, .bar-c { background: #e0ac3f; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 160px; align-items: end; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bar-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.bar-pair i { width: 40%; max-width: 16px; border-radius: 5px 5px 2px 2px; position: relative; min-height: 3px; }
.bar-pair em { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; color: var(--mute); }
.bar-col small { font-size: 11px; color: var(--mute); }
.src-row { display: flex; justify-content: space-between; font-size: 14px; margin-top: 8px; }
.src-bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.src-bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.stats-wrap.is-locked > :not(.stats-lock) { filter: blur(6px); pointer-events: none; user-select: none; }
.stats-lock { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; }
.lock-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; text-align: center; max-width: 320px; box-shadow: 0 20px 50px rgba(0,0,0,.15); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.lock-card p { margin: 0 0 6px; font-size: 13px; color: var(--mute); }
.lock-ico { font-size: 28px; }

/* --- Plus ayrıcalık listesi --- */
.plus-tile-head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.plus-tile-head .pill-plus { margin-left: 0; }
.plus-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plus-list li { display: flex; gap: 10px; align-items: flex-start; }
.plus-list li > span { font-size: 18px; line-height: 1.2; }
.plus-list b { display: block; font-size: 14px; }
.plus-list small { color: var(--mute); font-size: 12px; }

/* Sohbetler listesinde "yazıyor…" */
.conv-typing { display: none; align-items: center; gap: 6px; color: var(--brand); font-size: 13px; font-weight: 600; }
.conv-typing .typing-dots { padding: 4px 6px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 10%, transparent); }
.conv-typing .typing-dots i { width: 4px; height: 4px; background: var(--brand); }
.conv-li.is-typing .conv-typing { display: inline-flex; }
.conv-li.is-typing .conv-prev { display: none; }
.cover .dot { z-index: 3; }

/* Gül Çiçek çerçevesi: iç boşluk merkezi %51.2 / %51.4, yarıçap %36.2 */
.halo.frame-rose { --f: calc(var(--s) * 1.355); }
.halo.frame-rose::after { background-image: url("../img/plus-frame-rose.webp"); left: calc(var(--s) * .5 - var(--f) * .512); top: calc(var(--s) * .5 - var(--f) * .5144); }

/* Ayarlar: çerçeve seçimi */
.frame-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 8px 0 12px; }
.frame-opt { cursor: pointer; }
.frame-opt input { position: absolute; opacity: 0; pointer-events: none; }
.frame-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 10px 14px; border-radius: 18px; background: var(--surface-2); border: 2px solid transparent; transition: border-color .15s; }
.frame-card b { font-size: 14px; }
.frame-opt input:checked + .frame-card { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface-2)); }
.frame-opt input:focus-visible + .frame-card { outline: 2px solid var(--brand); outline-offset: 2px; }
.frame-pick .halo-md { --s: 64px; margin: 0; }
.frame-pick.is-locked .frame-opt { cursor: default; opacity: .75; }
.frame-pick.is-locked .frame-opt input:checked + .frame-card { border-color: transparent; background: var(--surface-2); }

/* --- Hikâye görseli oluşturucu --- */
.story-maker { margin-top: 12px; }
.tpl-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tpl { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 8px; border-radius: 999px; border: 2px solid transparent; background: var(--surface-2); color: var(--ink); font: 600 13px Arial, sans-serif; cursor: pointer; }
.tpl i { width: 20px; height: 20px; border-radius: 50%; display: inline-block; }
.tpl.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface-2)); }
.story-stage { display: flex; justify-content: center; margin: 14px 0; }
.story-stage canvas { width: min(62vw, 240px); height: auto; aspect-ratio: 9 / 16; border-radius: 18px; box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.row-2 .btn { padding-left: 8px; padding-right: 8px; font-size: 13px; }
.guide-sheet { max-height: 90vh; overflow-y: auto; }
.guide-steps { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.guide-steps li { display: flex; gap: 14px; align-items: center; }
.guide-steps .g-phone { width: 66px; flex: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .15)); }
.guide-steps b { display: block; margin-bottom: 3px; }
.guide-steps span { font-size: 13px; color: var(--mute); }
.guide-steps span b { display: inline; margin: 0; color: var(--ink); }

/* --- Arkadaşını getir --- */
.gift-mini { margin: 12px 0; padding: 12px 14px; gap: 12px; }
.gift-mini .gift-ico { font-size: 24px; }
.gift-mini .gift-txt { min-width: 0; }
.gift-mini .gift-txt b { font-size: 14px; }
.sent-cta { display: block; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); color: var(--gold); font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; }
.ref-card { margin-top: 12px; }
.ref-head { display: flex; gap: 12px; align-items: flex-start; }
.ref-head .gift-ico { font-size: 26px; line-height: 1; }
.ref-head b { display: block; color: var(--gold); font-size: 15px; }
.ref-head span { font-size: 13px; color: var(--mute); }
.ref-count { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); margin: 14px 0 6px; }
.ref-count b { color: var(--ink); }
.ref-bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.ref-bar i { display: block; height: 100%; border-radius: 6px; background: var(--brand); }
.ref-new { background: var(--gold-soft); color: var(--gold); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.ref-new a { color: inherit; }

.match-msg { margin: -2px 0 0; font-size: 13px; font-weight: 600; color: var(--bad); }
.match-msg.ok { color: var(--brand); }

/* --- Uygulama olarak ekle --- */
.install-bar { position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 36px rgba(10, 40, 36, .18); max-width: 520px; margin: 0 auto; animation: ibIn .35s ease-out; }
@keyframes ibIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .install-bar { animation: none; } }
@media (min-width: 760px) { .install-bar { bottom: 20px; } }
body:not(.has-tabs) .install-bar { bottom: calc(16px + env(safe-area-inset-bottom)); }
.install-bar img { border-radius: 10px; flex: none; }
.install-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.install-txt b { font-size: 14px; }
.install-txt span { font-size: 12px; color: var(--mute); line-height: 1.35; }
.install-x { border: 0; background: none; color: var(--mute); font-size: 22px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; flex: none; }
.install-x:hover { background: var(--surface-2); }
.install-steps { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.install-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.st-n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.ios-share { width: 20px; height: 20px; vertical-align: -4px; fill: none; stroke: #0a84ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ios-pill { display: inline-block; margin-top: 4px; padding: 4px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; font-weight: 600; }

/* --- Dolan halka: yükleme göstergesi --- */
.ring-wrap { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring-wrap .ring { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); transform: rotate(-90deg); pointer-events: none; opacity: 0; transition: opacity .2s; }
.ring-wrap.is-loading .ring { opacity: 1; }
.ring-track { fill: none; stroke: color-mix(in srgb, var(--brand) 16%, transparent); stroke-width: 6; }
.ring-bar { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .25s ease-out, stroke .2s; }
.ring-wrap.is-spin .ring { animation: ringSpin 1s linear infinite; }
.ring-wrap.is-done .ring-bar { stroke: #22b573; }
@keyframes ringSpin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
@media (prefers-reduced-motion: reduce) { .ring-wrap.is-spin .ring { animation-duration: 3s; } }
.ring-pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55); opacity: 0; transition: opacity .2s; pointer-events: none; }
.ring-wrap.is-loading .ring-pct { opacity: 1; }
.ring-wrap.is-loading > img { filter: brightness(.72); transition: filter .2s; }
.ring-wrap.is-done > img { filter: none; }
#avatarRing { margin: 7px; }
#avatarRing .ring-pct { font-size: 14px; }

/* Sohbette gönderilen medya balonu */
.msg.is-sending { opacity: 1; }
.sending-media { display: flex; flex-direction: column; gap: 6px; }
.send-thumb { position: relative; width: 190px; height: 190px; border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.25); display: grid; place-items: center; }
.send-thumb img, .send-thumb video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.send-thumb.is-audio { width: 200px; height: 64px; grid-template-columns: auto 1fr auto; gap: 10px; padding: 0 12px; background: rgba(255,255,255,.14); }
.send-audio-ico { font-size: 20px; }
.send-audio-len { font-size: 13px; font-weight: 700; }
.send-ring { position: absolute; width: 58px; height: 58px; }
.send-thumb.is-audio .send-ring { position: static; width: 38px; height: 38px; grid-column: 3; }
.send-thumb.is-audio .send-ring .ring { inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); }
.send-thumb.is-audio .ring-pct { font-size: 10px; }
.send-ring .ring-track { stroke: rgba(255,255,255,.3); }
.send-ring .ring-bar { stroke: #fff; }
.send-ring.is-done .ring-bar { stroke: #8ef0c5; }
.send-ring .ring-pct { font-size: 14px; }
.send-status { font-size: 11px; opacity: .85; display: flex; gap: 8px; flex-wrap: wrap; }
.msg.is-failed .send-ring .ring-bar { stroke: #ffb4b4; }
.send-retry, .send-cancel { border: 0; border-radius: 10px; padding: 6px 10px; font: 700 12px Arial, sans-serif; cursor: pointer; }
.send-retry { background: #fff; color: var(--brand); }
.send-cancel { background: rgba(255,255,255,.2); color: #fff; }
.ring-wrap.is-spin .ring-pct { font-size: 10px; letter-spacing: .02em; }
.seen-mark:has(~ .msg.is-sending) { display: none; }

.onb-avatar { display: flex; align-items: center; gap: 14px; margin: 12px 0 4px; }
.onb-avatar .ring-wrap { margin: 7px; }

/* --- Keşfet kartları: fotoğraf kartla birlikte büyür (v0.7.2) --- */
.person { container-type: inline-size; }
.person .cover { height: auto; aspect-ratio: 1 / 0.92; padding: 0; align-items: center; }
.person .cover > img.avatar { width: 58cqw; height: 58cqw; border-width: 4px; box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
.person .cover .halo-md { --s: 48cqw; --rw: 0px; margin: 7cqw 0 0; }
.person .cover .dot { width: 9cqw; height: 9cqw; min-width: 12px; min-height: 12px; max-width: 18px; max-height: 18px; border-width: 2px; right: calc(50% - 22cqw); bottom: calc(50% - 25cqw); top: auto; }
.person .cover:has(.halo) .dot { right: calc(50% - 19cqw); bottom: calc(50% - 25cqw); }
.cover .pill-boost.corner { top: auto; right: auto; bottom: 7px; left: 7px; }
.person .info { padding: 10px 12px 12px; }
.person .info strong { font-size: 15px; }
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .person .cover > img.avatar { width: 52cqw; height: 52cqw; }
  .person .cover .halo-md { --s: 44cqw; }
}

/* --- Keşfet: daire kutuyu neredeyse doldurur (v0.7.3) --- */
.person .cover { aspect-ratio: 1 / 1; }
.person .cover > img.avatar { width: 84cqw; height: 84cqw; border-width: 4px; }
.person .cover .halo-md { --s: 64cqw; margin: 3cqw 0 0; }
.person .cover .dot { width: 11cqw; height: 11cqw; max-width: 20px; max-height: 20px; border-width: 3px; right: calc(50% - 33cqw); bottom: calc(50% - 35cqw); }
.person .cover:has(.halo) .dot { right: calc(50% - 26cqw); bottom: calc(50% - 27cqw); }
.cover .pill-boost.corner { left: 50%; right: auto; top: auto; bottom: -12px; transform: translateX(-50%); z-index: 4; box-shadow: 0 3px 10px rgba(170, 120, 30, .25); }
.person.is-boost .info { padding-top: 18px; }
@media (min-width: 760px) {
  .person .cover > img.avatar { width: 84cqw; height: 84cqw; }
  .person .cover .halo-md { --s: 64cqw; }
}

/* --- Profil fotoğrafı tam ekran (v0.7.3) --- */
.avatar-open { background: none; border: 0; padding: 0; margin: 0 auto 12px; display: block; cursor: zoom-in; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.avatar-open .avatar-xl { margin: 0 auto; }
.avatar-open:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.photo-view { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(6, 20, 18, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; cursor: zoom-out; }
.photo-view.show { opacity: 1; }
.photo-view figure { margin: 0; text-align: center; transform: scale(.92); transition: transform .22s ease; }
.photo-view.show figure { transform: none; }
.photo-view img { display: block; width: min(92vw, 78vh, 640px); aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #dfe9e7; cursor: default; }
.photo-view figcaption { color: #fff; font-weight: 700; font-size: 17px; margin-top: 14px; }
.pv-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.pv-close:hover { background: rgba(255, 255, 255, .24); }

/* --- Kayıt: kullanıcı adı ilk adımda (v0.7.5) --- */
.un-msg { margin-top: -2px; }
.un-msg.ok-msg { color: var(--brand); font-weight: 600; }
.un-msg.bad-msg { color: var(--bad); font-weight: 600; }
[data-signup] .check { border-bottom: 0; padding: 8px 0 4px; }
[data-google-pre] { width: 100%; }
[data-google-pre] .btn-google { width: 100%; justify-content: center; }

/* --- Kullanıcı adı ekranı sadeleşti (v0.7.6) --- */
.onb-head { text-align: center; display: grid; justify-items: center; gap: 4px; margin-bottom: 8px; }
.onb-head .ring-wrap { margin: 4px auto 6px; }
.onb-head > img.avatar { margin: 4px auto 6px; }
.onb-head h1 { margin: 6px 0 0; }
.onb-head p { margin: 0; }
.onb .onb-check { border-bottom: 0; padding: 10px 0 6px; }
.onb .gift-card { margin: 6px 0 4px; }
.btn-lg { padding-top: 15px; padding-bottom: 15px; font-size: 16px; }

/* --- Keşfet: duruma göre değişen öne çıkma kutusu (v0.7.9) --- */
.bv { display: flex; align-items: center; gap: 12px; border-radius: 18px; margin: 0 0 14px; text-decoration: none; color: var(--ink); font-size: 14px; }
.bv b { font-weight: 700; }
.bv small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 2px; line-height: 1.35; }
.bv .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; }
.bv .go { margin-left: auto; flex: none; border: 0; border-radius: 999px; padding: 10px 15px; font: inherit; font-weight: 700; font-size: 13px; white-space: nowrap; cursor: pointer; }
.bv-gift { background: linear-gradient(135deg, #fff7e6, #fff1d2); border: 1.5px solid #ecd29a; padding: 12px 12px 12px 14px; }
.bv-gift .ic { background: #fff; box-shadow: 0 2px 8px rgba(130, 91, 25, .15); }
.bv-gift .go { background: var(--gold); color: #fff; }
.bv-invite { background: var(--brand); color: #fff; padding: 14px 14px 14px 16px; }
.bv-invite small { color: rgba(255, 255, 255, .82); }
.bv-invite .ic { font-size: 24px; width: auto; }
.bv-invite .go { background: #fff; color: var(--brand); }
.bv-strip { border: 1.5px dashed #e2b85c; padding: 10px 14px; justify-content: center; gap: 8px; color: var(--gold); font-weight: 600; }
.bv-strip .st { color: #c8952c; }
.bv-strip.is-on { border-style: solid; background: var(--gold-soft); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bv-gift { background: linear-gradient(135deg, #2f2715, #3a2e15); border-color: #6b5626; }
  :root:not([data-theme="light"]) .bv-gift .ic { background: #1b1f1e; }
  :root:not([data-theme="light"]) .bv-gift .go { background: #e3b75a; color: #2a1e05; }
  :root:not([data-theme="light"]) .bv-invite { color: #102b25; }
  :root:not([data-theme="light"]) .bv-invite small { color: rgba(16, 43, 37, .78); }
  :root:not([data-theme="light"]) .bv-invite .go { background: #102b25; color: #fff; }
  :root:not([data-theme="light"]) .bv-strip { border-color: #8a6d2f; }
}

/* --- Kimbu Destek sohbeti (v0.8.0) --- */
.support-av { background: #fff; border: 1.5px solid var(--brand-soft); object-fit: contain; padding: 4px; }
.tag-official { background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 10.5px; padding: 3px 8px; vertical-align: middle; }
.composer.text-only .tool, .composer.text-only [data-act="mic"] { display: none; }
