/* ============ Renkler (tarzı buradan değiştir) ============ */
:root {
  --bg: #0E0E10;
  --card: #17171A;
  --card-2: #232328;
  --line: #2A2A2F;
  --line-2: #3F3F46;
  --text: #F4F4F5;
  --muted: #A1A1AA;
  --dim: #71717A;
  --link: #D4D4D8;
  --accent: #E9B44C;
  --accent-ink: #0E0E10;
  --err: #FCA5A5;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: #fff; }
h1, h2 { font-family: var(--display); font-weight: 700; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }

/* Telefon öncelikli: varsayılan stiller telefona göre, büyük ekran ayarları en altta */
.page { --gut: 16px; max-width: 560px; margin: 0 auto; padding: 0 var(--gut) calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 28px; }

/* ============ Üst kısım ============ */
.hero { display: flex; flex-direction: column; gap: 16px; }
/* telefonda kenardan kenara, alt köşeler yuvarlak */
.hero__img { width: calc(100% + 2 * var(--gut)); max-width: none; margin: 0 calc(-1 * var(--gut)); height: auto; aspect-ratio: 1152 / 928; object-fit: cover; border-radius: 0 0 24px 24px; background: #151517; }

.profile { display: flex; align-items: center; gap: 12px; }
.profile__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex: 0 0 auto; }
.profile__id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.profile h1 { font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile__id a { font-size: 14px; color: var(--muted); text-decoration: none; }
.profile__follow { flex: 0 0 auto; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.profile__follow:hover { border-color: var(--accent); color: var(--text); }
.hero__bio { font-size: 14.5px; color: var(--muted); }

@media (min-width: 561px) {
  .page { --gut: 20px; padding-top: 40px; gap: 32px; }
  .hero__img { width: 100%; margin: 0; border-radius: 24px; border: 1px solid var(--line); }
}

/* ============ Liste ============ */
.stack { display: flex; flex-direction: column; gap: 16px; }
.head { display: flex; flex-direction: column; gap: 4px; }
.head h2 { font-size: 20px; }
.head p { font-size: 14px; }
.list { display: flex; flex-direction: column; gap: 12px; }

.item { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 88px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, transform .15s, background .15s; }
.item:hover { border-color: var(--line-2); background: #1B1B1F; }
.item:active { transform: scale(.99); }
.item__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.item__title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.item__desc { font-size: 14px; line-height: 1.45; color: var(--muted); }
.item__go { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; transition: background .15s; }
.item:hover .item__go { background: var(--accent); }
.item:hover .item__go svg { stroke: var(--accent-ink); }

.tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }

/* kapak / ikon karesi */
.thumb { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 20% 0%, rgba(233,180,76,.28), rgba(233,180,76,.06) 55%, transparent), var(--card-2);
  border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 34px; height: 34px; stroke: var(--accent); }
.thumb--lg { width: 96px; height: 96px; border-radius: 14px; }
.thumb--lg svg { width: 40px; height: 40px; }
@media (max-width: 480px) {
  .item { gap: 12px; padding: 12px; }
  .item .thumb { width: 64px; height: 64px; border-radius: 10px; }
  .item .thumb svg { width: 28px; height: 28px; }
  .item__title { font-size: 15px; }
  .item__desc { font-size: 13.5px; }
  .item__go { display: none; } /* telefonda kartın tamamı tıklanabilir, ok gereksiz yer kaplıyor */
}

/* ============ Form & panel ============ */
.panel { display: flex; flex-direction: column; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
@media (max-width: 380px) { .panel { padding: 20px 16px; } }
.panel--center { align-items: center; text-align: center; gap: 16px; padding: 36px 24px; }
.back { align-self: flex-start; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; margin: -8px 0 -8px -4px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.back:hover { color: var(--text); }
.picked { display: flex; align-items: center; gap: 16px; }
.picked__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.picked h2 { font-size: 21px; line-height: 1.3; }
.panel > p { font-size: 14px; }

form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field .muted { font-weight: 400; }
.field input { height: 52px; padding: 0 16px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); font: inherit; font-size: 16px; }
.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233,180,76,.18); }
.field input[aria-invalid="true"] { border-color: var(--err); }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.check em { font-style: normal; color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { font-size: 14px; color: var(--err); }
.note { margin-top: -4px; font-size: 12.5px; line-height: 1.5; color: var(--dim); text-align: center; }
.note a { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: filter .15s, transform .1s; }
.btn:hover { filter: brightness(1.07); color: var(--accent-ink); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn--ghost { background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); font-weight: 500; height: 48px; }
.btn--ghost:hover { color: var(--text); filter: none; border-color: var(--muted); }
.btn--sm { width: auto; height: 40px; padding: 0 14px; font-size: 14px; }
.spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(14,14,16,.3); border-top-color: var(--accent-ink); border-radius: 50%; animation: s .7s linear infinite; }
.btn.is-loading .spin { display: inline-block; }
@keyframes s { to { transform: rotate(360deg); } }

/* ============ Teşekkür ============ */
.avatar { position: relative; width: 112px; height: 112px; }
.avatar img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.avatar__ok { position: absolute; right: -2px; bottom: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); border: 3px solid var(--card); display: grid; place-items: center; animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.3); } }
/* görsel panelin üst kenarına yaslanır */
.done__img { width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 1; object-fit: cover; margin: -36px -24px 4px; border-radius: 19px 19px 0 0; background: #151517; }
.done__ig { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.done__ig p { font-size: 14.5px; color: var(--muted); }
.btn--ghost.igLink svg { color: var(--accent); }
.done__back { color: var(--muted); font-size: 14px; min-height: 44px; }
.panel--center h2 { font-size: 24px; }
.panel--center p { font-size: 15px; line-height: 1.55; }
.panel--center p strong { color: var(--text); font-weight: 600; word-break: break-all; }

.view-in { animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }

/* ============ Alt bilgi & çerez ============ */
.foot { display: flex; justify-content: center; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; max-width: 496px; margin: 0 auto; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; font-size: 14px; color: var(--muted); box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); }
.cookie p { margin-bottom: 12px; }
.cookie__btns { display: flex; gap: 8px; justify-content: flex-end; }
.cookie .btn--ghost { height: 40px; }

/* ============ Yasal metin sayfası ============ */
.page--doc { padding-top: 20px; }
.doc { display: flex; flex-direction: column; gap: 12px; }
.doc h1 { font-size: 30px; }
.doc h2 { font-size: 19px; margin-top: 20px; scroll-margin-top: 20px; }
.doc p, .doc li { color: #D4D4D8; font-size: 15px; }
.doc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc .warn { background: rgba(233,180,76,.1); border: 1px solid rgba(233,180,76,.35); color: var(--accent); padding: 12px 14px; border-radius: 12px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
