:root {
  --bg: #151716;
  --bg-2: #1b1e1b;
  --card: #222520;
  --line: #383c34;
  --text: #f4f3e9;
  --muted: #a5aa9e;
  --accent: #d4f779;
  --accent-2: #d4f779;
  --hot: #c7b5f8;
  --danger: #f43f5e;
  --ok: #34d399;
  --me: #d4f779;
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: var(--text); }

.screen { display: none; height: 100dvh; max-width: 560px; margin: 0 auto; }
.screen.active { display: flex; flex-direction: column; }
.muted { color: var(--muted); }

/* ---------- butonlar ---------- */
.btn {
  border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 600;
  transition: transform .12s ease, opacity .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--hot)); box-shadow: 0 8px 24px -8px #8b5cf699; }
.btn.ghost { background: var(--card); border: 1px solid var(--line); }
.btn.text { background: none; color: var(--muted); }
.btn.small { padding: 10px 16px; font-size: 14px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); font-size: 18px; flex: none;
}
.icon-btn.danger { color: var(--danger); }

/* ---------- giriş ---------- */
#home { overflow-y: auto; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); gap: 16px; }
.home-top { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 26px; letter-spacing: -.5px; }
.logo span { background: linear-gradient(90deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.online { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.online b { color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px #34d39922; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px #34d39900; } }

.hero h1 { font-size: clamp(34px, 9vw, 46px); line-height: 1.05; margin: 12px 0 10px; letter-spacing: -1px; }
.hero em { font-style: normal; background: linear-gradient(90deg, var(--hot), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.5; }
.hero p b { color: var(--text); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card h2 { font-size: 15px; margin: 0 0 12px; color: var(--muted); font-weight: 500; }
.rules ul { margin: 0 0 14px; padding-left: 18px; line-height: 1.55; font-size: 14px; }
.rules li { margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; transition: all .15s;
}
.chip.on { background: #8b5cf633; border-color: var(--accent); color: #fff; }

.home-actions { display: flex; gap: 10px; margin-top: auto; position: sticky; bottom: 0; padding-top: 8px; }
.home-actions .primary { flex: 1; font-size: 17px; }

/* ---------- sohbet ---------- */
.chat-top {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: #0f0c1dcc; backdrop-filter: blur(10px);
}
.who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex: none;
  background: linear-gradient(135deg, #2d2650, #1d1833); border: 1px solid var(--line);
}
.partner-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partner-sub { font-size: 12px; color: var(--muted); }

.timer { position: relative; width: 40px; height: 40px; flex: none; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 3; }
.timer .track { stroke: var(--line); }
.timer .ring { stroke: var(--accent-2); stroke-linecap: round; stroke-dasharray: 97.4; transition: stroke-dashoffset 1s linear; }
.timer span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.timer.done .ring { stroke: var(--hot); }

.messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
/* Liste taşınca flex öğeleri küçülmesin: overflow:hidden olan fotoğraf balonları şerit gibi eziliyordu. */
.messages > * { flex-shrink: 0; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 18px; line-height: 1.4; word-wrap: break-word; animation: pop .18s ease-out; }
.msg.me { align-self: flex-end; background: var(--me); border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.sys { align-self: center; font-size: 13px; color: var(--muted); text-align: center; padding: 6px 12px; max-width: 90%; }
.sys.warn { color: #fda4af; }
@keyframes pop { from { transform: translateY(6px) scale(.98); opacity: 0; } }

.searching { margin: auto; text-align: center; color: var(--muted); }
.radar { width: 90px; height: 90px; margin: 0 auto 16px; border-radius: 50%; position: relative; background: #8b5cf622; }
.radar::before, .radar::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ripple 1.8s infinite ease-out;
}
.radar::after { animation-delay: .9s; }
@keyframes ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

.profile-card {
  align-self: stretch; margin: 8px 0; padding: 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, #8b5cf622, #22d3ee18); border: 1px solid #8b5cf666; animation: pop .3s ease-out;
}
.profile-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.profile-card .avatar { width: 52px; height: 52px; font-size: 28px; }
.profile-card .name { font-weight: 700; font-size: 18px; }
.profile-card .bio { margin: 6px 0 10px; }
.profile-card .chip { font-size: 12px; padding: 5px 10px; }

.typing { display: flex; gap: 4px; padding: 0 20px 8px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.reveal-bar {
  margin: 0 12px 8px; padding: 14px; border-radius: var(--radius);
  background: linear-gradient(135deg, #f472b633, #8b5cf633); border: 1px solid #f472b666; animation: pop .25s ease-out;
}
.reveal-bar p { margin: 0 0 10px; font-weight: 500; }
.reveal-actions { display: flex; gap: 8px; justify-content: flex-end; }

.composer { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.btn.next { background: var(--card); border: 1px solid var(--line); padding: 0 16px; flex: none; }
.btn.next.confirm { background: var(--danger); border-color: var(--danger); }
#form { flex: 1; display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
#input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 0 12px; font-size: 16px; }
.send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--accent), var(--hot)); flex: none; }
.send:disabled { opacity: .3; }

/* ---------- ban ---------- */
.banned { margin: auto; text-align: center; padding: 24px; }
.banned .big { font-size: 56px; }

/* ---------- diyaloglar ---------- */
dialog {
  width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 22px; padding: 20px;
}
dialog::backdrop { background: #05030dcc; backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 6px; }
dialog h2:focus { outline: none; }
dialog h3 { margin: 18px 0 6px; font-size: 15px; }
.field-label { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 500; }
dialog input, dialog textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; outline: none; resize: none;
}
dialog input:focus, dialog textarea:focus { border-color: var(--accent); }
.avatar-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.avatar-grid button { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 20px; }
.avatar-grid button.on { border-color: var(--accent); background: #8b5cf633; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.error { color: #fda4af; font-size: 14px; margin: 10px 0 0; }
.report-options { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 8px; }
.report-options .btn { text-align: left; border-radius: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 10;
  background: #1d1833f2; border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; font-size: 14px;
  max-width: calc(100% - 32px); text-align: center;
}

@media (max-width: 380px) {
  .avatar-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- giriş / kayıt ---------- */
#auth { overflow-y: auto; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); gap: 16px; }
.badge18 { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hero.small h1 { font-size: clamp(28px, 8vw, 36px); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.tab { border: 0; background: none; border-radius: 999px; padding: 10px; font-weight: 600; color: var(--muted); }
.tab.on { background: var(--card); color: var(--text); box-shadow: 0 1px 0 var(--line) inset; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form input:not([type=checkbox]) {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; outline: none;
}
.auth-form input:focus { border-color: var(--accent); }
.auth-form input[type=date] { color-scheme: dark; }
.auth-form .field-label { margin: 4px 0 -4px; }
.auth-form .check { font-size: 14px; font-weight: 400; margin: 4px 0; }
.auth-form .btn { margin-top: 4px; }
a { color: var(--accent-2); }

/* ---------- ana sayfa ---------- */
.profile-summary { display: flex; align-items: center; gap: 12px; }
.profile-summary .avatar { width: 52px; height: 52px; font-size: 26px; }
.profile-summary .grow { flex: 1; min-width: 0; }
.profile-summary .name { font-weight: 600; }
.profile-summary .hint { font-size: 13px; color: var(--muted); }
.home-links { text-align: center; font-size: 14px; color: var(--muted); }
.home-links a { color: var(--muted); }

.avatar img, .photo-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar { overflow: hidden; }

/* ---------- profil ---------- */
.photo-row { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.photo-preview {
  width: 88px; height: 88px; border-radius: 22px; flex: none; display: grid; place-items: center; font-size: 40px;
  background: var(--card); border: 1px solid var(--line); overflow: hidden;
}
.photo-side { display: flex; flex-direction: column; gap: 8px; }
.photo-status { font-size: 13px; color: var(--muted); }
.photo-status.pending { color: #fbbf24; }
.photo-status.approved { color: var(--ok); }
.photo-status.rejected { color: #fda4af; }
.photo-buttons { display: flex; gap: 6px; align-items: center; }
.photo-buttons label { cursor: pointer; }
.socials-inputs { display: flex; flex-direction: column; gap: 8px; }
.social-input { display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.social-input span { width: 96px; padding-left: 12px; font-size: 14px; color: var(--muted); flex: none; }
.social-input input { border: 0 !important; background: none !important; }

/* ---------- sohbet eklentileri ---------- */
.profile-card .photo { width: 100%; aspect-ratio: 1; border-radius: 14px; object-fit: cover; margin-bottom: 12px; display: block; }
.socials-card { align-self: stretch; margin: 8px 0; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.socials-card a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.socials-card a:last-child { border-bottom: 0; }
.socials-card a span:last-child { color: var(--accent-2); }
.warn-list { padding-left: 18px; line-height: 1.55; margin: 12px 0; }
.warn-list li { margin-bottom: 6px; }

/* ---------- e-posta doğrulama / şifre sıfırlama ---------- */
.text-link { color: var(--muted); font-size: 14px; text-align: center; margin-top: 4px; }
.small { font-size: 14px; margin: 4px 0 0; line-height: 1.5; }
.info { color: var(--ok); font-size: 14px; margin: 10px 0 0; line-height: 1.5; }
#reset { overflow-y: auto; padding: 20px 16px; gap: 16px; }
#reset .title { font-size: 20px; color: var(--text); }
.verify-banner { display: flex; gap: 12px; align-items: center; border-color: #fbbf2466; background: linear-gradient(135deg, #fbbf2418, var(--card)); }
.verify-banner > div { flex: 1; min-width: 0; }
.verify-banner .muted { word-break: break-word; }

/* ---------- hesap silme ---------- */
.danger-link { display: block; margin: 14px auto 0; color: #fda4af; }
.btn.danger { background: var(--danger); color: #fff; }

/* Brand and responsive application layout */
:root { color-scheme: dark; }
button, a, input, textarea, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a { text-underline-offset: 4px; }
button:hover:not(:disabled) { filter: brightness(1.08); }
.btn { border-radius: 12px; min-height: 46px; }
.btn.primary, .send { background: var(--accent); color: #202617; box-shadow: none; }
.btn.primary { display: flex; justify-content: center; align-items: center; gap: 24px; }
.btn.primary span { font-size: 23px; }
.btn.ghost { background: transparent; }
.logo { display: flex; align-items: center; gap: 0; font-size: 28px; letter-spacing: -1.3px; }
.logo::before { content: ':)'; display: grid; place-items: center; width: 34px; height: 32px; background: var(--accent); color: var(--bg); margin-right: 10px; border-radius: 10px 10px 3px 10px; font-size: 22px; transform: rotate(-8deg); letter-spacing: -2px; }
.logo span { background: none; color: var(--text); }
#auth { max-width: 1240px; padding: 30px 48px 20px; gap: 0; }
#auth > .home-top { min-height: 46px; flex-shrink: 0; }
.landing-nav { display: flex; gap: 28px; }
.landing-nav button { padding: 10px 0; background: none; border: 0; color: #c6c9bf; font-size: 13px; }
.landing-nav span { margin-left: 6px; color: var(--accent); }
.badge18 { border-color: #4b5140; color: var(--accent); font-size: 12px; padding: 7px 11px; }
.badge18 span { color: var(--muted); margin-left: 7px; }
.landing-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 80px; align-items: center; flex: 1; padding: 56px 0 44px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.little-star { font-size: 20px; color: var(--accent); }
.landing-hero h1 { font-size: clamp(42px, 4.5vw, 64px); font-weight: 500; letter-spacing: -2.6px; line-height: 1.09; margin: 20px 0; }
.hero em { color: var(--accent); background: none; }
.landing-hero h1 em { display: inline-block; position: relative; }
.landing-hero h1 em::after { content: ''; position: absolute; left: 2px; bottom: -6px; width: 100%; height: 6px; border-top: 2px solid var(--accent); border-radius: 50%; transform: rotate(-2deg); opacity: .7; }
.landing-hero > p { font-size: 16px; line-height: 1.7; margin-top: 24px; }
.conversation-art { position: relative; height: 207px; margin-top: 28px; border-radius: 18px; background-image: radial-gradient(#444a3b 1px, transparent 1px); background-size: 16px 16px; }
.art-caption { position: absolute; top: 12px; left: 12px; font-size: 9px; letter-spacing: 2px; color: #858c7b; }
.sample-message { display: flex; align-items: center; gap: 10px; position: absolute; font-size: 14px; }
.sample-message.first { top: 44px; left: 10px; transform: rotate(-4deg); }
.sample-message.second { top: 116px; right: 22px; transform: rotate(4deg); }
.sample-message > div { background: var(--hot); color: #282036; padding: 13px 18px; border-radius: 14px 14px 14px 2px; box-shadow: 0 6px 0 #0002; }
.sample-message small { display: block; font-size: 9px; opacity: .65; margin-bottom: 5px; }
.sample-message.second > div { background: var(--accent); border-radius: 14px 14px 2px 14px; }
.sample-avatar { background: #35392e; color: var(--accent); border: 1px solid #555c47; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 23px; }
.second .sample-avatar { background: var(--hot); color: #282036; border: 0; }
.art-spark { position: absolute; right: 12px; top: 23px; color: var(--accent); font-size: 52px; }
.art-note { position: absolute; bottom: 6px; left: 42px; color: var(--muted); font-size: 12px; transform: rotate(-5deg); }
.hero-footnote { color: var(--muted); font-size: 11px; margin-top: 16px; }
.hero-footnote > span { color: var(--accent); margin-right: 7px; }
.auth-card { background: #20231f; padding: 30px; border-radius: 22px; box-shadow: 0 20px 65px #0002; }
.auth-heading { margin-bottom: 24px; }
.mini-mark { display: grid; place-items: center; width: 43px; height: 43px; background: #333c27; border: 1px solid #4c5a37; border-radius: 14px; color: var(--accent); font-size: 25px; margin-bottom: 18px; }
.auth-heading h2 { font-size: 27px; color: var(--text); letter-spacing: -.7px; margin: 0 0 6px; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.tabs { border-radius: 10px; border: 1px solid var(--line); padding: 4px; margin-bottom: 24px; }
.tab { border-radius: 7px; font-size: 13px; }
.tab.on { background: #394030; box-shadow: none; color: var(--accent); }
.auth-form { gap: 10px; }
.auth-form .field-label { font-size: 12px; margin: 4px 0 0; color: #c7cbbf; }
.auth-form input:not([type=checkbox]) { background: #191c18; border-radius: 9px; padding: 14px; font-size: 14px; }
.auth-form input::placeholder { color: #818779; }
.auth-form .btn.primary { margin-top: 12px; }
.text-link { font-size: 12px; margin-top: 9px; }
.auth-assurance { display: flex; justify-content: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 19px; color: var(--muted); font-size: 11px; }
.auth-assurance > span { color: var(--accent); }
.how-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 27px 0; }
.how-strip > div { display: flex; gap: 16px; align-items: flex-start; }
.step-number { font-size: 11px; color: var(--accent); border: 1px solid #444c36; border-radius: 50%; width: 29px; height: 29px; display: grid; place-items: center; flex: none; }
.how-strip h3 { margin: 1px 0 6px; font-size: 14px; font-weight: 500; }
.how-strip p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.landing-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; font-size: 10px; color: #8d9585; }
.footer-dot { margin: 0 8px; color: #59624e; }
#home { max-width: 780px; gap: 24px; padding: 30px 36px; }
#home .home-top { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
#home .hero { padding: 18px 0 6px; }
#home .hero h1 { margin: 16px 0; font-size: 40px; font-weight: 500; }
#home .hero p { max-width: 530px; font-size: 14px; }
#home .card { padding: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-heading h2 { color: var(--text); font-size: 18px; margin: 0; }
.section-heading > span { color: var(--muted); font-size: 11px; }
#topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#topics .chip { border-radius: 13px; text-align: left; padding: 16px 12px; font-size: 14px; }
#topics .chip:first-child { grid-column: 1 / -1; }
.chip.on { color: var(--accent); border-color: #82954e; background: #d4f77912; }
.profile-summary { cursor: pointer; }
.profile-summary::after { content: '↗'; font-size: 24px; color: var(--muted); }
.profile-summary .hint { margin-top: 4px; }
.avatar { background: #333b2a; }
.privacy-note { display: flex; gap: 12px; align-items: center; padding: 0 8px; }
.privacy-note > span { color: var(--accent); font-size: 26px; }
.privacy-note b { font-size: 13px; font-weight: 500; }
.privacy-note p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.home-actions { background: var(--bg); padding: 12px 0 0; }
.home-links { font-size: 12px; }
#chat { max-width: 780px; background: #191c18; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.chat-top { background: var(--bg); padding: 18px; }
.chat-privacy { text-align: center; padding: 12px; color: var(--muted); font-size: 11px; border-bottom: 1px solid #30352b; }
.messages { padding: 24px; gap: 10px; }
.msg { padding: 12px 16px; }
.msg.me { color: #222a16; }
.composer { background: var(--bg); padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
#form { border-radius: 14px; background: #22271e; }
.send { border-radius: 10px; }
.reveal-bar, .profile-card { background: #303926; border-color: #596b3d; }
.radar { background: #d4f77912; }
.searching strong { display: block; color: var(--text); font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.searching p { max-width: 290px; line-height: 1.6; font-size: 13px; }
.toast { background: #30372a; border-color: #586547; border-radius: 12px; }
dialog { padding: 28px; border-radius: 20px; }
dialog h2 { font-weight: 500; letter-spacing: -.5px; }
dialog .eyebrow { margin-bottom: 18px; }
dialog::backdrop { background: #080b08c9; }
.avatar-grid button.on { background: #d4f77922; }
#reset { padding-top: 40px; }
#reset .home-top { margin-bottom: 24px; }
@media (min-width: 1500px) { #auth { max-width: 1380px; } .landing-grid { gap: 130px; } .landing-hero h1 { font-size: 76px; } }
@media (max-width: 1000px) { #auth { padding: 24px 28px; } .landing-grid { gap: 36px; } .badge18 span { display: none; } .landing-nav { gap: 20px; } .auth-card { padding: 24px; } }
@media (max-width: 720px) {
  #auth { padding: 20px 22px calc(24px + env(safe-area-inset-bottom)); }
  .landing-nav { display: none; }
  .landing-grid { grid-template-columns: 1fr; gap: 30px; padding: 35px 0; }
  .landing-hero h1 { font-size: clamp(40px, 8.8vw, 60px); letter-spacing: -1.8px; }
  .landing-hero > p { font-size: 14px; margin-top: 20px; }
  .conversation-art { height: 180px; max-width: 430px; margin-top: 20px; }
  .sample-message { font-size: 12px; }
  .sample-message > div { padding: 11px 13px; }
  .sample-message.first { left: 0; }
  .sample-message.second { right: 4px; top: 105px; }
  .sample-avatar { width: 30px; height: 30px; }
  .hero-footnote { display: none; }
  .auth-card { padding: 24px; }
  .auth-heading { margin-bottom: 20px; }
  .mini-mark { display: none; }
  .how-strip { grid-template-columns: 1fr; gap: 24px; padding: 26px 0; }
  .how-strip p { font-size: 12px; }
  .landing-footer { flex-direction: column; gap: 8px; }
  #home { padding: 22px 18px; gap: 20px; }
  #home .hero h1 { font-size: 32px; }
  #home .card { padding: 18px; }
  #topics { grid-template-columns: repeat(2, 1fr); }
  .section-heading h2 { font-size: 17px; }
  .section-heading > span { display: none; }
  .messages { padding: 16px; }
  .chat-top { padding: 12px; }
  .composer { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
  .btn.next { padding: 0 12px; font-size: 12px; }
  dialog { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 380px) {
  .home-actions .primary { font-size: 14px; gap: 10px; padding: 14px; }
  .home-actions .ghost { padding: 14px; }
}
#chat { width: 100%; overflow: hidden; }
.who > div:last-child { min-width: 0; }
#form { min-width: 0; }
#input { width: 0; }

/* ---------- tarama düzeltmeleri ---------- */
/* dvh desteklemeyen eski tarayıcılar (iOS < 15.4) için yedek. */
@supports not (height: 100dvh) {
  .screen { height: 100vh; }
}
#reset { padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
label:has(> .visually-hidden:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; }
#input:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
#timer[role="button"] { cursor: pointer; }
/* Beyaz metin + kırmızı zemin kontrastı AA'nın altındaydı. */
.btn.danger, .btn.next.confirm { background: #be123c; border-color: #be123c; color: #fff; }

/* ---------- ana sayfa alt çubuğu (mobil) ----------
   Yapışık çubuk, kaydırılan alanın alt boşluğu kadar yukarıda duruyordu; o şeritten ve
   çubuğun kenarlarından alttaki içerik görünüyordu (iOS'ta yüzen araç çubuğuyla daha belirgin).
   Alt boşluk çubuğun içine taşınır: düz zemin ekranın en altına kadar uzanır, butonlar
   güvenli alanın üstünde kalır, üstte yumuşak bir geçiş olur. */
#home { padding-bottom: 0; }
.home-actions {
  position: sticky; bottom: 0; z-index: 2;
  background: var(--bg);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}
.home-actions::before {
  content: ''; position: absolute; left: 0; right: 0; top: -28px; height: 28px;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.home-links { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }

/* ---------- çoklu fotoğraf ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-tile, .photo-add {
  position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile.pending img { opacity: .55; }
.tile-badge {
  position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; background: rgba(0, 0, 0, .65); color: #fff;
}
.tile-badge.primary { background: var(--accent); color: var(--bg); }
.tile-badge.pending { top: auto; bottom: 6px; }
.tile-actions { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.tile-actions button {
  width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; line-height: 1;
}
.tile-actions button:focus-visible, .photo-add:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-style: dashed; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px;
}
.photo-add span:first-child { font-size: 26px; color: var(--accent); }
.photo-status { font-size: 13px; color: var(--muted); margin: 8px 0 0; min-height: 1em; }

.gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px;
  margin-bottom: 12px; scrollbar-width: none; background: #000;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 4; max-height: 62vh;
  object-fit: cover; scroll-snap-align: center; display: block;
}
.gallery-count { text-align: center; font-size: 12px; color: var(--muted); margin: -6px 0 10px; }

/* ---------- sohbette fotoğraf ---------- */
.attach {
  flex: none; width: 40px; border: 0; background: none; font-size: 20px; cursor: pointer;
  border-radius: 50%; color: var(--text);
}
.attach:disabled { opacity: .4; cursor: progress; }
.attach:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.msg.image { padding: 4px; position: relative; overflow: hidden; }
.msg.image img {
  display: block; width: min(240px, 60vw); height: auto; max-height: 320px; object-fit: cover;
  min-height: 120px; background: var(--card); border-radius: 14px; cursor: zoom-in;
}
.msg.image.blurred img { filter: blur(28px); transform: scale(1.1); cursor: default; }
.reveal-image {
  position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, .35); color: #fff;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 12px;
}
.reveal-image:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
