/* ═══════════════════════════════════════════════════════
   COOKIE — Nordisop Entertainment
   Karanlık oda: mürekkep zemin, safelight kehribarı, kağıt metin.
   ═══════════════════════════════════════════════════════ */

:root {
  --ink:      #0E0F12;
  --ink-2:    #15171C;
  --ink-3:    #1D2027;
  --line:     #282C35;
  --paper:    #ECEAE4;
  --paper-dim:#9AA0AB;
  --amber:    #FFB020;
  --amber-dp: #C77B00;
  --crimson:  #E5484D;
  --green:    #3DD68C;

  --r-1: 10px;
  --r-2: 16px;
  --r-3: 24px;

  --rail-w:  248px;
  --shelf-w: 312px;
  --col-w:   636px;

  --t: 180ms cubic-bezier(.2,.7,.3,1);

  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, serif;
}

[data-theme="paper"] {
  --ink:      #F2F0EA;
  --ink-2:    #FFFFFF;
  --ink-3:    #E9E6DE;
  --line:     #DAD6CC;
  --paper:    #16181C;
  --paper-dim:#6B7280;
  --amber:    #B87200;
  --amber-dp: #8A5600;
}

[data-theme="oled"] {
  --ink:      #000000;
  --ink-2:    #0A0A0B;
  --ink-3:    #141416;
  --line:     #202023;
  --paper:    #F2F2F2;
  --paper-dim:#8E8E93;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  background-image:
    radial-gradient(60rem 40rem at 82% -8%, color-mix(in srgb, var(--amber) 7%, transparent), transparent 62%),
    radial-gradient(48rem 34rem at -10% 18%, color-mix(in srgb, #5B8DEF 6%, transparent), transparent 58%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--amber); color: #0E0F12; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 3px solid var(--ink); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ───────── Diyafram işareti ───────── */
.aperture {
  position: relative;
  width: 76px; height: 76px;
  display: inline-block;
  flex: none;
}
.aperture span {
  position: absolute;
  inset: 0;
  border: 2px solid var(--amber);
  border-radius: 50%;
  clip-path: polygon(50% 50%, 100% 8%, 100% 92%);
  transform-origin: 50% 50%;
}
.aperture span:nth-child(1) { transform: rotate(0deg); }
.aperture span:nth-child(2) { transform: rotate(60deg); }
.aperture span:nth-child(3) { transform: rotate(120deg); }
.aperture span:nth-child(4) { transform: rotate(180deg); }
.aperture span:nth-child(5) { transform: rotate(240deg); }
.aperture span:nth-child(6) { transform: rotate(300deg); }
.aperture.sm { width: 34px; height: 34px; }
.aperture.sm span { border-width: 1.6px; }
.aperture.xs { width: 22px; height: 22px; }
.aperture.xs span { border-width: 1.4px; }

/* ═════════ AÇILIŞ ═════════ */
.boot {
  position: fixed; inset: 0; z-index: 900;
  background: var(--ink);
  display: grid; place-items: center;
  grid-template-rows: 1fr auto;
}
.boot.out { animation: bootOut .5s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes bootOut { to { opacity: 0; visibility: hidden; } }

.boot-inner { display: grid; place-items: center; gap: 22px; align-self: center; }
.boot .aperture span { animation: irisOpen 1.1s cubic-bezier(.3,.9,.3,1) forwards; }
@keyframes irisOpen {
  from { clip-path: polygon(50% 50%, 100% 42%, 100% 58%); opacity: .4; }
  to   { clip-path: polygon(50% 50%, 100% 8%, 100% 92%); opacity: 1; }
}
.boot-word {
  font-size: 30px; font-weight: 700; letter-spacing: -.04em;
  animation: fadeUp .6s .35s both;
}
.boot-foot {
  padding-bottom: 34px;
  font-size: 12px; letter-spacing: .06em;
  color: var(--paper-dim);
  animation: fadeUp .6s .5s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ═════════ GİRİŞ / KAYIT ═════════ */
.gate {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 470px);
}

.gate-pitch {
  padding: clamp(40px, 6vw, 84px);
  display: flex; flex-direction: column; justify-content: center;
  gap: 26px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(255,176,32,.09), transparent 58%),
    var(--ink);
}
.gate-brand {
  display: flex; align-items: center; gap: 11px;
  font-size: 19px; font-weight: 700; letter-spacing: -.03em;
}
.gate-head {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.025em;
  max-width: 14ch;
}
.gate-body {
  max-width: 46ch;
  color: var(--paper-dim);
  font-size: 15.5px;
  line-height: 1.7;
}
.gate-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 18px; max-width: 46ch; }
.gate-points li { display: grid; gap: 3px; padding-left: 16px; border-left: 2px solid var(--amber); }
.gate-points b { font-weight: 600; font-size: 14.5px; }
.gate-points span { color: var(--paper-dim); font-size: 13.5px; line-height: 1.5; }

.gate-form-wrap {
  display: grid; place-items: center;
  padding: 32px 28px;
  background: var(--ink-2);
}
.gate-card { width: 100%; max-width: 372px; }

.seg {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 4px;
  background: var(--ink-3);
  border-radius: 99px;
  margin-bottom: 26px;
}
.seg-btn {
  padding: 9px 0;
  border-radius: 99px;
  font-size: 14px; font-weight: 500;
  color: var(--paper-dim);
  transition: background var(--t), color var(--t);
}
.seg-btn:hover { color: var(--paper); }
.seg-btn.is-on { background: var(--ink); color: var(--paper); font-weight: 600; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--paper-dim); }

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="search"],
.field textarea,
.searchbox input,
.dm-input input,
.story-foot input {
  width: 100%;
  padding: 11px 13px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  font-size: 14.5px;
  transition: border-color var(--t), background var(--t);
}
[data-theme="paper"] .field input,
[data-theme="paper"] .field textarea { background: var(--ink-2); }

.field textarea { resize: vertical; line-height: 1.55; font-family: inherit; }
.field input::placeholder, .field textarea::placeholder { color: var(--paper-dim); opacity: .65; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); }

.hint { font-size: 12px; color: var(--paper-dim); }

.pass-wrap { position: relative; }
.pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 6px 10px; font-size: 12.5px; color: var(--paper-dim);
  border-radius: 7px;
}
.pass-toggle:hover { color: var(--amber); }

.meter { height: 3px; background: var(--ink-3); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--crimson); transition: width var(--t), background var(--t); }
.meter.ok i   { background: var(--amber); }
.meter.good i { background: var(--green); }

.form-error {
  padding: 10px 12px;
  background: rgba(229,72,77,.1);
  border: 1px solid rgba(229,72,77,.35);
  border-radius: var(--r-1);
  color: #FF9A9D;
  font-size: 13.5px;
  margin-bottom: 14px;
}

.gate-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.link { font-size: 13.5px; color: var(--paper-dim); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--amber); }
.danger-link { color: var(--crimson); }

.legal { margin-top: 18px; font-size: 12.5px; color: var(--paper-dim); line-height: 1.5; }

/* ═════════ DÜĞMELER ═════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-1);
  font-size: 14.5px; font-weight: 600;
  white-space: nowrap;
  transition: transform var(--t), background var(--t), border-color var(--t), opacity var(--t);
}
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--amber); color: #14110A; }
.btn-primary:hover { background: #FFC048; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper-dim); }
.btn-danger { background: transparent; border: 1px solid rgba(229,72,77,.4); color: var(--crimson); }
.btn-danger:hover { background: rgba(229,72,77,.1); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ═════════ UYGULAMA İSKELETİ ═════════ */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, var(--col-w)) var(--shelf-w);
  justify-content: center;
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Kenar çubuğu ── */
.rail {
  position: sticky; top: 0;
  height: 100dvh;
  padding: 26px 0 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px 24px;
  font-size: 20px; font-weight: 700; letter-spacing: -.035em;
}
.rail-nav { display: grid; gap: 2px; }
.rail-item {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  padding: 10px 12px;
  border-radius: var(--r-1);
  font-size: 15px;
  color: var(--paper-dim);
  transition: background var(--t), color var(--t);
}
.rail-item svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail-item:hover { background: var(--ink-2); color: var(--paper); }
.rail-item.is-on { color: var(--paper); font-weight: 600; }
.rail-item.is-on svg { stroke: var(--amber); stroke-width: 2; }

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  margin-left: auto;
}
.rail-cta { margin: 16px 12px 0; }

.me-chip {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-2);
  text-align: left;
  transition: background var(--t);
}
.me-chip:hover { background: var(--ink-2); }
.me-meta { display: grid; min-width: 0; }
.me-meta b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-meta i { font-style: normal; font-size: 12px; color: var(--amber); }

/* ── Ana sütun ── */
.main {
  min-width: 0;
  padding: 26px 0 80px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding-inline: 22px;
}
.page { display: none; }
.page.is-on { display: block; }

.page-head { margin-bottom: 22px; display: grid; gap: 6px; }
.page-head h2 { font-size: 25px; }
.page-head p { color: var(--paper-dim); font-size: 14px; max-width: 54ch; }
.back {
  justify-self: start;
  font-size: 13.5px; color: var(--paper-dim);
  margin-bottom: 4px;
}
.back::before { content: "←"; margin-right: 6px; }
.back:hover { color: var(--amber); }

.sub {
  font-size: 13px; font-weight: 600; color: var(--paper-dim);
  margin: 30px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}

/* ── Sağ raf ── */
.shelf {
  position: sticky; top: 0;
  height: 100dvh;
  padding: 26px 0;
  display: flex; flex-direction: column; gap: 20px;
  overflow-y: auto;
}
.shelf-box { display: grid; gap: 12px; }
.shelf-box h4 { font-size: 13px; color: var(--paper-dim); font-weight: 600; }
.shelf-foot { margin-top: auto; font-size: 12px; color: var(--paper-dim); line-height: 1.7; }
.motto { font-family: var(--serif); font-style: italic; font-size: 13px; }

.level { display: grid; gap: 8px; }
.level-bar { height: 5px; background: var(--ink-3); border-radius: 99px; overflow: hidden; }
.level-bar i { display: block; height: 100%; background: var(--amber); border-radius: 99px; transition: width 400ms cubic-bezier(.2,.7,.3,1); }
.level-name { font-size: 15px; font-weight: 600; }
.level-note { font-size: 12.5px; color: var(--paper-dim); line-height: 1.5; }

/* ═════════ AVATAR ═════════ */
.av {
  display: grid; place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--ink-3);
  background-size: cover;
  background-position: center;
  color: var(--paper-dim);
  font-weight: 600;
  overflow: hidden;
  user-select: none;
}
.av-sm { width: 34px; height: 34px; font-size: 13px; }
.av-md { width: 42px; height: 42px; font-size: 15px; }
.av-lg { width: 92px; height: 92px; font-size: 30px; }
.av-edit { cursor: pointer; position: relative; }
.av-edit::after {
  content: "Değiştir";
  position: absolute; inset: auto 0 0 0;
  padding: 4px 0;
  background: rgba(0,0,0,.65);
  color: #fff; font-size: 10.5px; font-weight: 500;
  text-align: center;
  opacity: 0; transition: opacity var(--t);
}
.av-edit:hover::after { opacity: 1; }

/* ═════════ HİKAYELER ═════════ */
.stories {
  display: flex; gap: 16px;
  overflow-x: auto;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }
.story-chip { display: grid; gap: 7px; justify-items: center; flex: none; width: 66px; }
.story-ring {
  width: 60px; height: 60px; border-radius: 50%;
  padding: 2px;
  background: var(--amber);
  transition: transform var(--t);
}
.story-chip:hover .story-ring { transform: scale(1.05); }
.story-ring.seen { background: var(--line); }
.story-ring.mine { background: none; border: 1.5px dashed var(--line); padding: 1px; }
.story-ring .av { width: 100%; height: 100%; border: 2.5px solid var(--ink); font-size: 20px; }
.story-chip small {
  font-size: 11.5px; color: var(--paper-dim);
  max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ═════════ SEKMELER ═════════ */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab {
  position: relative;
  padding: 0 0 11px;
  font-size: 14.5px; color: var(--paper-dim);
  transition: color var(--t);
}
.tab:hover { color: var(--paper); }
.tab.is-on { color: var(--paper); font-weight: 600; }
.tab.is-on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--amber);
}

/* ═════════ BESTECİ ŞERİDİ ═════════ */
.composer {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  margin-bottom: 22px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  cursor: pointer;
  transition: border-color var(--t);
}
.composer:hover { border-color: var(--paper-dim); }
.composer > span:last-of-type { color: var(--paper-dim); font-size: 14.5px; flex: 1; }
.composer b { font-weight: 600; }

/* ═════════ GÖNDERİ ═════════ */
.post {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.post-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.post-who { display: grid; min-width: 0; cursor: pointer; }
.post-who b { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.post-who small { font-size: 12px; color: var(--paper-dim); }
.post-top .btn { margin-left: auto; }

.badge {
  display: inline-grid; place-items: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--amber); color: #14110A;
  font-size: 9.5px; font-weight: 800;
}
.badge.blue { background: #3B82F6; color: #fff; }

.post-img {
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--ink-3);
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
}
.post-img img { width: 100%; height: 100%; object-fit: cover; }

.post-why {
  margin-top: 13px;
  font-size: 14.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.post-tag {
  display: inline-block;
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--amber);
}

.post-acts { display: flex; align-items: center; gap: 4px; margin-top: 13px; }
.act {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px;
  border-radius: 99px;
  font-size: 13.5px;
  color: var(--paper-dim);
  transition: background var(--t), color var(--t);
}
.act svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.act:hover { background: var(--ink-2); color: var(--paper); }
.act.on { color: var(--amber); }
.act.on svg { fill: var(--amber); stroke: var(--amber); }
.act.pop svg { animation: pop 340ms cubic-bezier(.3,1.5,.5,1); }
@keyframes pop { 0%,100% { transform: scale(1); } 45% { transform: scale(1.3); } }
.act-more { margin-left: auto; }

.comments { margin-top: 14px; display: grid; gap: 9px; }
.comment { font-size: 13.5px; line-height: 1.55; }
.comment b { font-weight: 600; margin-right: 6px; }
.comment-form { display: flex; gap: 8px; margin-top: 12px; }
.comment-form input {
  flex: 1;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13.5px;
}
.comment-form input:focus { outline: none; border-color: var(--amber); }
.locked {
  margin-top: 12px;
  padding: 11px 13px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.5;
}

/* ═════════ IZGARA ═════════ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.cell {
  position: relative;
  aspect-ratio: 1;
  background: var(--ink-3);
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}
.cell img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t); }
.cell:hover img { opacity: .75; }

/* ═════════ SATIRLAR ═════════ */
.rows { display: grid; gap: 4px; }
.rows-tight { gap: 2px; }
.row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px;
  border-radius: var(--r-1);
  transition: background var(--t);
}
.row:hover { background: var(--ink-2); }
.row-id { display: grid; min-width: 0; flex: 1; cursor: pointer; }
.row-id b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-id small { font-size: 12.5px; color: var(--paper-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-acts { display: flex; gap: 6px; flex: none; }

/* ═════════ ARAMA ═════════ */
.searchbox {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 99px;
  margin-bottom: 18px;
  transition: border-color var(--t);
}
.searchbox:focus-within { border-color: var(--amber); }
.searchbox svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--paper-dim); stroke-width: 1.8; stroke-linecap: round; }
.searchbox input { flex: 1; padding: 12px 0; background: none; border: 0; font-size: 15px; }
.searchbox input:focus { outline: none; }

/* ═════════ YÜKLEME ═════════ */
.drop {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 420px;
  margin-bottom: 22px;
  background: var(--ink-2);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-2);
  display: grid; place-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.drop:hover, .drop.over { border-color: var(--amber); background: var(--ink-3); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop-empty { display: grid; justify-items: center; gap: 7px; text-align: center; padding: 20px; }
.drop-empty svg { width: 34px; height: 34px; fill: none; stroke: var(--paper-dim); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.drop-empty b { font-size: 15px; font-weight: 600; }
.drop-empty small { font-size: 12.5px; color: var(--paper-dim); max-width: 30ch; }
.drop-clear {
  position: absolute; top: 12px; right: 12px;
  padding: 6px 12px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border-radius: 99px;
  font-size: 12.5px;
  backdrop-filter: blur(6px);
}
.compose-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ═════════ PROFİL ═════════ */
.profile-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 22px; }
.profile-id { min-width: 0; display: grid; gap: 7px; }
.profile-id h2 { font-size: 22px; display: flex; align-items: center; gap: 8px; }
.profile-bio { font-size: 14px; color: var(--paper-dim); line-height: 1.6; max-width: 48ch; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.stats { display: flex; gap: 8px; padding: 14px 0; border-block: 1px solid var(--line); }
.stats button, .stats div {
  flex: 1;
  display: grid; gap: 1px;
  padding: 6px 4px;
  border-radius: var(--r-1);
  text-align: center;
  transition: background var(--t);
}
.stats button:hover { background: var(--ink-2); }
.stats b { font-size: 19px; font-weight: 700; }
.stats span { font-size: 12.5px; color: var(--paper-dim); }

.plus-card {
  display: flex; align-items: center; gap: 16px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: linear-gradient(120deg, rgba(255,176,32,.1), transparent 62%);
}
.plus-card b { font-size: 15px; }
.plus-card p { font-size: 13px; color: var(--paper-dim); margin-top: 3px; line-height: 1.5; }
.plus-card .btn { margin-left: auto; flex: none; }

/* ═════════ AYARLAR ═════════ */
.theme-row { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-row button {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13.5px;
  transition: border-color var(--t);
}
.theme-row button:hover { border-color: var(--paper-dim); }
.theme-row button.is-on { border-color: var(--amber); }
.theme-row i { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line); }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.switch-row span { display: grid; gap: 2px; }
.switch-row b { font-size: 14.5px; font-weight: 500; }
.switch-row small { font-size: 12.5px; color: var(--paper-dim); }
.switch-row input { width: 19px; height: 19px; accent-color: var(--amber); cursor: pointer; }

.danger { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }

.admin-stats { display: flex; gap: 10px; margin-bottom: 22px; }
.admin-stats div { flex: 1; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-2); display: grid; gap: 2px; }
.admin-stats b { font-size: 24px; font-weight: 700; color: var(--amber); }
.admin-stats span { font-size: 12.5px; color: var(--paper-dim); }

/* ═════════ BOŞ DURUM ═════════ */
.empty {
  padding: 54px 20px;
  text-align: center;
  display: grid; gap: 8px; justify-items: center;
}
.empty b { font-size: 16px; font-weight: 600; }
.empty p { font-size: 13.5px; color: var(--paper-dim); max-width: 38ch; line-height: 1.6; }
.empty .btn { margin-top: 8px; }

.skel {
  background: linear-gradient(90deg, var(--ink-2) 25%, var(--ink-3) 50%, var(--ink-2) 75%);
  background-size: 600px 100%;
  animation: shim 1.3s linear infinite;
  border-radius: var(--r-2);
}
@keyframes shim { to { background-position: 600px 0; } }
.skel-post { height: 400px; margin-bottom: 26px; }

/* ═════════ KATMANLAR ═════════ */
.sheet {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(6,7,9,.78);
  backdrop-filter: blur(5px);
  display: grid; place-items: center;
  padding: 24px;
  animation: fade 160ms ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet-card {
  position: relative;
  width: 100%; max-width: 430px;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 26px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  animation: rise 220ms cubic-bezier(.2,.8,.3,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.sheet-wide { max-width: 940px; padding: 0; }
.sheet-tall { max-width: 460px; height: 76dvh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }

.sheet-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h3 { font-size: 16px; flex: 1; }
.sheet-note { padding: 10px 20px; font-size: 12px; color: var(--paper-dim); border-bottom: 1px solid var(--line); }
.x {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--paper-dim);
  font-size: 15px;
  transition: background var(--t), color var(--t);
}
.x:hover { background: var(--ink-3); color: var(--paper); }
.sheet-x { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(0,0,0,.5); color: #fff; }

.post-sheet-grid { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 0; }
.post-sheet-img { background: #000; display: grid; place-items: center; }
.post-sheet-img img { max-height: 84dvh; width: 100%; object-fit: contain; }
.post-sheet-side { padding: 22px; overflow-y: auto; max-height: 84dvh; }

.dm-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 8px; align-content: start; }
.dm-input { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.dm-input input { flex: 1; padding: 10px 13px; background: var(--ink); border: 1px solid var(--line); border-radius: 99px; font-size: 14px; }
.dm-input input:focus { outline: none; border-color: var(--amber); }
.bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.bubble.them { background: var(--ink-3); border-bottom-left-radius: 5px; justify-self: start; }
.bubble.me { background: var(--amber); color: #14110A; border-bottom-right-radius: 5px; justify-self: end; }
.bubble time { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; }

.pay-title { font-size: 26px; color: var(--amber); }
.pay-sub { font-size: 13.5px; color: var(--paper-dim); margin: 5px 0 18px; }
.pay-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.pay-list li { position: relative; padding-left: 22px; font-size: 14px; }
.pay-list li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Hikaye görüntüleyici ── */
.story-view {
  position: fixed; inset: 0; z-index: 800;
  background: #050506;
  display: flex; flex-direction: column;
  padding: 16px;
  animation: fade 160ms ease both;
}
.story-bar { height: 2.5px; background: rgba(255,255,255,.2); border-radius: 99px; overflow: hidden; }
.story-bar i { display: block; height: 100%; width: 0; background: #fff; }
.story-bar i.run { width: 100%; transition: width 5s linear; }
.story-top { display: flex; align-items: center; gap: 12px; padding: 14px 2px; color: #fff; }
.story-who { display: flex; align-items: center; gap: 10px; flex: 1; font-size: 14px; }
.story-top-actions { display: flex; align-items: center; gap: 10px; }
.story-stage {
  flex: 1;
  display: grid; place-items: center;
  overflow: hidden;
  border-radius: var(--r-2);
  background: #0A0A0C;
}
.story-stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.story-stage .story-text {
  padding: 40px; text-align: center;
  font-family: var(--serif); font-size: 25px; line-height: 1.4; color: #fff;
  max-width: 22ch;
}
.story-foot { display: flex; gap: 8px; padding-top: 14px; }
.story-foot input {
  flex: 1; padding: 11px 15px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px;
  color: #fff; font-size: 14px;
}
.story-foot input:focus { outline: none; border-color: var(--amber); }

/* ═════════ TOAST ═════════ */
.toasts {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 950;
  display: grid; gap: 8px; justify-items: center;
  width: max-content; max-width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  padding: 11px 17px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  animation: rise 220ms cubic-bezier(.2,.8,.3,1) both;
}
.toast.out { animation: fadeOut 220ms ease both; }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-6px); } }
.toast.ok { border-color: rgba(61,214,140,.5); }
.toast.err { border-color: rgba(229,72,77,.5); }

/* ═════════ MOBİL KROM ═════════ */
.mobile-bar, .tabbar { display: none; }

/* ═════════ DUYARLI ═════════ */
@media (max-width: 1180px) {
  .app { grid-template-columns: 84px minmax(0, var(--col-w)); gap: 22px; }
  .shelf { display: none; }
  .brand-word, .rail-item span, .me-meta { display: none; }
  .rail { align-items: center; }
  .brand { padding: 0 0 24px; }
  .rail-item { justify-content: center; padding: 12px; }
  .dot { position: absolute; top: 8px; right: 10px; margin: 0; }
  .rail-cta { margin: 16px 0 0; width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 0; }
  .rail-cta::after { content: "+"; font-size: 24px; font-weight: 400; }
  .me-chip { justify-content: center; padding: 9px; }
}

@media (max-width: 860px) {
  .gate { grid-template-columns: 1fr; }
  .gate-pitch { border-right: 0; border-bottom: 1px solid var(--line); padding: 46px 26px 38px; }
  .gate-points { display: none; }
  .gate-head { max-width: 18ch; }
  .post-sheet-grid { grid-template-columns: 1fr; }
  .post-sheet-img img { max-height: 46dvh; }
  .post-sheet-side { max-height: 38dvh; }
}

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .rail { display: none; }
  .main {
    border: 0;
    padding: 12px 16px calc(78px + env(safe-area-inset-bottom));
  }

  .mobile-bar {
    position: sticky; top: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    background: color-mix(in srgb, var(--ink) 86%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .brand-mini { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; letter-spacing: -.035em; }
  .mobile-bar-actions { display: flex; gap: 4px; }
  .ico { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); }
  .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .ico .dot { position: absolute; top: 7px; right: 8px; margin: 0; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-around;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--ink) 90%, transparent);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .tabbar-item { width: 46px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--paper-dim); }
  .tabbar-item svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar-item.is-on { color: var(--amber); }
  .tabbar-cta { background: var(--amber); color: #14110A; width: 50px; }
  .tabbar-cta svg { stroke-width: 2.2; }

  .profile-head { gap: 16px; }
  .av-lg { width: 74px; height: 74px; font-size: 25px; }
  .profile-id h2 { font-size: 19px; }
  .sheet { padding: 0; place-items: end stretch; }
  .sheet-card { max-width: none; max-height: 92dvh; border-radius: var(--r-3) var(--r-3) 0 0; }
  .sheet-tall { height: 92dvh; }
  .plus-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .plus-card .btn { margin-left: 0; }
  .grid { gap: 3px; }
}

@media (max-width: 420px) {
  .compose-actions { flex-direction: column; }
  .compose-actions .btn { width: 100%; }
  .pay-row { grid-template-columns: 1fr; }
}

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

.stats-ro div { cursor: default; }

/* ═══════════════════════════════════════════════════════
   v2.1 — yüzeyler, reklam alanları, abonelik, yönetim
   ═══════════════════════════════════════════════════════ */

:root {
  --glass: color-mix(in srgb, var(--ink-2) 82%, transparent);
  --hair: color-mix(in srgb, var(--paper) 8%, transparent);
  --lift: 0 1px 0 color-mix(in srgb, var(--paper) 6%, transparent) inset,
          0 18px 40px -28px rgba(0,0,0,.9);
}

/* Kenar çubuğu ve raf zeminden hafifçe ayrılsın */
.rail, .shelf { padding-inline: 4px; }

.main {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid var(--hair);
  border-radius: 22px;
  margin-block: 18px;
  box-shadow: var(--lift);
}

.composer, .plus-card, .shelf-box, .drop {
  background: color-mix(in srgb, var(--ink-2) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--amber) 92%, #fff), var(--amber));
  box-shadow: 0 6px 18px -10px var(--amber);
}
.btn-primary:hover { filter: brightness(1.06); }

.post-img { box-shadow: 0 20px 44px -34px rgba(0,0,0,.95); }

.story-ring {
  background: conic-gradient(from 210deg, var(--amber), #FF7A45, #5B8DEF, var(--amber));
}

/* ── Reklam alanları ── */
.ad {
  position: relative;
  margin: 0 0 26px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--ink-2) 55%, transparent);
}
.shelf .ad { margin-bottom: 0; }
.ad-label {
  position: absolute; top: 10px; right: 12px;
  font-size: 10px; letter-spacing: .08em;
  color: var(--paper-dim);
  text-transform: uppercase;
}
.ad-body { min-height: 92px; display: grid; place-items: center; }
.shelf .ad-body { min-height: 240px; }
.ad-empty {
  text-align: center;
  font-size: 12.5px;
  color: var(--paper-dim);
  line-height: 1.6;
  padding: 10px;
}
.ad-empty small { opacity: .7; font-size: 11.5px; }

/* ── Abonelik planları ── */
.plan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.plan {
  display: grid; gap: 2px;
  padding: 14px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  transition: border-color var(--t), background var(--t);
}
.plan:hover { border-color: var(--paper-dim); }
.plan.is-on { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 9%, transparent); }
.plan b { font-size: 13.5px; font-weight: 600; }
.plan-price { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.plan small { font-size: 11.5px; color: var(--paper-dim); }

.plus-active {
  display: flex; align-items: center; gap: 16px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--line));
  border-radius: var(--r-2);
  background: linear-gradient(120deg, color-mix(in srgb, var(--amber) 12%, transparent), transparent 64%);
}
.plus-active b { font-size: 15px; }
.plus-active p { font-size: 13px; color: var(--paper-dim); margin-top: 3px; }
.plus-active .btn { margin-left: auto; flex: none; }

/* ── Rozet açıklaması ── */
.badge-legend { display: grid; gap: 12px; }
.badge-legend > div { display: flex; gap: 11px; align-items: flex-start; }
.badge-legend .badge { margin-top: 3px; flex: none; }
.badge-legend span { font-size: 13.5px; color: var(--paper-dim); line-height: 1.55; }
.badge-legend b { color: var(--paper); font-weight: 600; margin-right: 4px; }

/* ── Yönetim paneli ── */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.adm-stat {
  padding: 13px 14px;
  border: 1px solid var(--hair);
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--ink-2) 60%, transparent);
  display: grid; gap: 1px;
}
.adm-stat b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.adm-stat span { font-size: 11.5px; color: var(--paper-dim); }
.adm-stat-flag b { color: var(--crimson); }

.adm-revenue {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  margin-bottom: 22px;
  border: 1px solid color-mix(in srgb, var(--amber) 34%, var(--line));
  border-radius: var(--r-2);
  background: linear-gradient(110deg, color-mix(in srgb, var(--amber) 11%, transparent), transparent 70%);
}
.adm-revenue span { font-size: 13px; color: var(--paper-dim); }
.adm-revenue b { font-size: 20px; font-weight: 700; color: var(--amber); }

.adm-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.adm-bar .tabs { flex: 1; }

.adm-list { display: grid; gap: 6px; }
.adm-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "av id tags" "acts acts acts";
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px;
  border: 1px solid var(--hair);
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--ink-2) 50%, transparent);
  transition: border-color var(--t);
}
.adm-row:hover { border-color: var(--line); }
.adm-row.is-banned { opacity: .55; border-color: color-mix(in srgb, var(--crimson) 35%, var(--line)); }
.adm-row > .av, .adm-thumb, .adm-flag { grid-area: av; }
.adm-id { grid-area: id; display: grid; min-width: 0; }
.adm-id b { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.adm-id small { font-size: 12.5px; color: var(--paper-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-tags { grid-area: tags; display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.adm-acts { grid-area: acts; display: flex; gap: 6px; flex-wrap: wrap; }

.adm-thumb {
  width: 42px; height: 42px; flex: none;
  border-radius: 9px; overflow: hidden;
  background: var(--ink-3);
  cursor: pointer;
}
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-flag {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--crimson) 18%, transparent);
  color: var(--crimson);
  font-weight: 800;
}

.tag {
  font-style: normal;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--paper-dim);
  white-space: nowrap;
}
.tag-blue  { border-color: rgba(59,130,246,.45); color: #7EA9FF; }
.tag-amber { border-color: color-mix(in srgb, var(--amber) 45%, transparent); color: var(--amber); }
.tag-red   { border-color: rgba(229,72,77,.45); color: var(--crimson); }

@media (min-width: 620px) {
  .adm-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "av id tags acts";
  }
  .adm-acts { justify-content: flex-end; }
}

@media (max-width: 760px) {
  .main { margin-block: 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; box-shadow: none; }
  .plan-row { grid-template-columns: 1fr; }
  .plus-active { flex-direction: column; align-items: flex-start; }
  .plus-active .btn { margin-left: 0; }
  .adm-bar { flex-direction: column; }
}

/* ═════════ YASAL METİNLER (KVKK / Gizlilik / Şartlar / Çerezler) ═════════ */
.legal-links { display: flex; gap: 8px; flex-wrap: wrap; }

.legal-tabs { padding: 0 20px; margin: 0; border-bottom: 1px solid var(--line); }
.legal-body { padding: 20px; overflow-y: auto; flex: 1; }
.legal-text h4 { font-size: 15px; margin: 22px 0 8px; }
.legal-text h4:first-child { margin-top: 0; }
.legal-text p { font-size: 13.5px; line-height: 1.65; color: var(--paper-dim); margin-bottom: 4px; }
.legal-text p b { color: var(--paper); font-weight: 600; }
.legal-text ul { margin: 6px 0 10px 18px; padding: 0; }
.legal-text li { font-size: 13.5px; line-height: 1.6; color: var(--paper-dim); margin-bottom: 4px; }
.legal-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; padding: 1px 6px; border-radius: 5px;
  background: var(--ink-3); color: var(--amber);
}
#legalNote .link { display: inline; }
