:root {
  --purple: #7C4DFF;
  --purple-deep: #5B2BEA;
  --purple-soft: #EDE7FF;
  --purple-softer: #F5F1FF;
  --ink: #111827;
  --ink-2: #374151;
  /* Sprint 10.5 — İKİNCİL METİN KONTRASTI.
     Eski değerler ölçüldü: --muted #8A8F99 beyaz üzerinde 3.25:1,
     --muted-2 #A9AEB8 ise 2.23:1. WCAG AA gövde metni için 4.5:1 ister.
     İkincil metin uygulamada 157 yerde kullanılıyor — yani neredeyse HER
     ekranda okunabilirlik eşiğin altındaydı: tarih, sayaç, açıklama,
     boş ekran metni.

     Yeni değer beyaz zeminde 4.98:1, --bg (#F6F6F9) üzerinde 4.62:1 —
     ikisinde de geçer. Eşiği ANCAK geçen en açık ton seçildi; daha koyusu
     tasarımın havadar dilini bozardı.

     --muted-2 dekoratif kullanım içindir (yer tutucu metin, ikon tonu).
     Etiketler görünür olduğu için yer tutucu WCAG'de zorunlu değil; yine de
     2.23'ten 3.25'e çıkarıldı. */
  --muted: #69707D;
  --muted-2: #8A8F99;
  --line: #EEF0F4;
  --bg: #F6F6F9;
  --white: #FFFFFF;
  --grad: linear-gradient(135deg, #7C4DFF, #5B2BEA);
  --shadow: 0 12px 32px rgba(17, 24, 39, .08);
  --shadow-sm: 0 6px 18px rgba(17, 24, 39, .06);

  /* Sprint 7.1 — eksik takma adlar.
     components/map ve components/story bu adları kullanıyordu ama hiçbir
     yerde TANIMLI DEĞİLDİ; var(--card) boşa çözülüp panelleri ŞEFFAF
     bırakıyordu (story oluşturucuda arkadaki akış içeriden görünüyordu). */
  --card: var(--white);
  --text: var(--ink);

  /* Sprint 9 denetimi — AYNI HATANIN İKİNCİ DALGASI.
     `--brand` 41 yerde kullanılıyordu (yorumlar, harita, sosyal, story) ama
     hiç tanımlı değildi. `background: var(--brand); color: #fff` kuralı
     arka planı ŞEFFAF bırakıp yazıyı beyaz yapıyordu; sonuç BEYAZ ZEMİNDE
     BEYAZ oldu:
       · yorum gönder düğmesi (↑) tamamen görünmezdi,
       · haritada SEÇİLİ filtre çipi kayboluyordu — kullanıcı hangi filtrenin
         açık olduğunu göremiyordu.
     Düğme çalışıyordu; görünmüyordu. Bu yüzden testler yakalayamadı. */
  --brand: var(--purple);
  --brand-deep: var(--purple-deep);
  --brand-soft: var(--purple-soft);
  --accent: var(--purple);
  --bg2: var(--purple-softer);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.phone {
  position: relative;
  width: 390px;
}

.app {
  position: relative;
  width: 390px;
  height: 844px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 430px) {
  .app { border-radius: 24px; box-shadow: var(--shadow); }
}
/* The frame was a hard 390px, so anything narrower (iPhone SE/mini, 375px)
   scrolled sideways on every screen. Let it shrink to the viewport. */
@media (max-width: 429px) {
  .phone, .app { width: 100vw; }
  .app { height: 100vh; height: 100dvh; border-radius: 0; }
}
/* Tablet & desktop: let the app breathe instead of staying a phone-sized column. */
@media (min-width: 700px) {
  .phone, .app { width: min(100vw, 760px); }
  .app { height: min(100vh, 940px); }
}
@media (min-width: 1080px) {
  .phone, .app { width: min(100vw, 1100px); }
}

#app-content {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
#app-content::-webkit-scrollbar { display: none; }

.screen {
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px 124px;
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform:none;} }
/* directional tab-to-tab transitions */
.screen.tab-from-right { animation: tabFromRight .26s ease; }
.screen.tab-from-left { animation: tabFromLeft .26s ease; }
@keyframes tabFromRight { from { opacity: .35; transform: translateX(34px);} to {opacity:1; transform:none;} }
@keyframes tabFromLeft { from { opacity: .35; transform: translateX(-34px);} to {opacity:1; transform:none;} }

/* headers */
.page-title { font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin: 8px 0 16px; }
.section-title { font-size: 19px; font-weight: 800; margin: 22px 0 12px; letter-spacing: -.3px; }

.top-row { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 16px; }
.top-row .page-title { margin: 0; }

.back-btn, .icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--white);
  border: none; cursor: pointer;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.icon-btn.ghost { background: transparent; box-shadow: none; }
.back-row { display: flex; align-items: center; margin: 4px 0 4px -4px; }
.back-only { background: transparent; box-shadow: none; border: none; outline: none; color: var(--purple); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s; }
.back-only:hover { background: var(--purple-soft); }
.back-only:active { background: var(--purple-soft); }

/* search */
.search-box {
  height: 54px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; align-items: center;
  gap: 10px; padding: 0 16px;
  box-shadow: var(--shadow-sm);
}
.search-box svg { color: var(--muted-2); flex: 0 0 auto; }
.search-box input {
  border: none; outline: none; background: transparent;
  font: inherit; font-size: 15.5px; width: 100%; color: var(--ink);
}
.search-box input::placeholder { color: var(--muted-2); }

/* chips */
.chips { display: flex; gap: 9px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border-radius: 999px; padding: 10px 16px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; cursor: pointer; flex: 0 0 auto;
  transition: .15s;
}
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(124,77,255,.35); }

/* cards */
.card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.card.tight { padding: 14px; }

/* buttons */
.primary-btn {
  background: var(--grad); color: #fff;
  border: none; border-radius: 16px;
  height: 52px; width: 100%;
  font: inherit; font-weight: 700; font-size: 16px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(124,77,255,.35);
  transition: transform .12s;
}
.primary-btn:active { transform: scale(.98); }
.primary-btn.sm { height: 44px; width: auto; padding: 0 20px; font-size: 14.5px; border-radius: 14px; }
.ghost-btn {
  background: var(--white); color: var(--purple);
  border: 1px solid var(--line); border-radius: 16px;
  height: 52px; width: 100%; font: inherit; font-weight: 700; font-size: 16px;
  cursor: pointer; box-shadow: var(--shadow-sm);
}
.ghost-btn.outline { border: 1.5px solid var(--purple); box-shadow: none; }
.btn-row { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

/* discover featured */
.featured { padding: 14px; }
.feat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple-soft); color: var(--purple-deep);
  font-size: 12.5px; font-weight: 700; padding: 6px 12px;
  border-radius: 999px; margin-bottom: 12px;
}
.feat-media {
  position: relative; height: 160px; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center; color: #fff;
}
.feat-media .play {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.25); backdrop-filter: blur(4px);
  display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.7);
}
.media-label { position: absolute; left: 14px; bottom: 12px; font-weight: 800; font-size: 20px; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.feat-body { padding-top: 14px; }
.feat-body h3 { font-size: 20px; font-weight: 800; }
.feat-body .by { color: var(--muted); font-size: 13.5px; margin: 4px 0 12px; }

.meta-row { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 14px; font-weight: 600; margin: 5px 0; }
.meta-row svg { color: var(--purple); flex: 0 0 auto; }
.meta-row.muted { color: var(--muted); font-weight: 500; }

/* horizontal community cards */
.h-card { display: flex; gap: 10px; }
.mini-card {
  flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center;
}
.mini-card > div { min-width: 0; flex: 1; }
.mini-thumb { width: 58px; height: 58px; border-radius: 15px; flex: 0 0 auto; background-size: cover; background-position: center; }
.mini-card h4 { font-size: 14.5px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.mini-card .ppl { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.mini-card .ppl svg { flex: 0 0 auto; }
.mini-card .see { color: var(--purple); font-weight: 700; font-size: 13px; margin-top: 6px; display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
.v-divider { width: 1px; background: var(--line); margin: 4px 0; }

/* event big card */
.event-card { display: flex; gap: 14px; cursor: pointer; align-items: stretch; transition: transform .12s, box-shadow .12s; }
.event-thumb {
  width: 104px; flex: 0 0 104px; border-radius: 18px; min-height: 104px;
  display: grid; place-items: end start; color: #fff; padding: 10px;
  font-weight: 800; letter-spacing: 1px; font-size: 13px;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
  background-size: cover; background-position: center;
}
.event-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.event-info h3 { font-size: 18.5px; font-weight: 800; letter-spacing: -.3px; }
.event-info .sep { height: 1px; background: var(--line); margin: 10px 0; }
.event-info .actions { margin-top: auto; display: flex; justify-content: flex-end; padding-top: 8px; }
.countdown { color: var(--purple-deep); font-weight: 700; font-size: 13px; background: var(--purple-softer); padding: 6px 10px; border-radius: 10px; display: inline-block; margin-top: 4px; }

/* nearby carousel */
.nb-carousel { position: relative; overflow: hidden; border-radius: 22px; margin-bottom: 12px; box-shadow: 0 16px 36px rgba(39,28,61,.12); touch-action: pan-y; cursor: grab; }

/* thumbs gradients */
/* stage lights */
.g1 { background:
  linear-gradient(200deg, rgba(255,255,255,.45) 0%, transparent 22%),
  radial-gradient(circle at 22% 8%, rgba(255,210,255,.7), transparent 28%),
  radial-gradient(circle at 78% 6%, rgba(180,160,255,.6), transparent 26%),
  radial-gradient(circle at 50% 95%, rgba(255,120,200,.5), transparent 45%),
  linear-gradient(135deg,#8b2fc9,#e0457b 85%); }
/* concert blue spotlights */
.g2 { background:
  radial-gradient(circle at 30% 10%, rgba(160,200,255,.6), transparent 30%),
  radial-gradient(circle at 75% 18%, rgba(120,170,255,.45), transparent 28%),
  radial-gradient(circle at 50% 100%, rgba(99,102,241,.5), transparent 50%),
  linear-gradient(135deg,#1e3a8a,#3b82f6); }
/* festival warm bokeh */
.g3 { background:
  radial-gradient(circle at 18% 22%, rgba(255,240,180,.7), transparent 16%),
  radial-gradient(circle at 70% 14%, rgba(255,210,150,.6), transparent 14%),
  radial-gradient(circle at 86% 60%, rgba(255,190,120,.55), transparent 18%),
  radial-gradient(circle at 40% 78%, rgba(255,170,90,.5), transparent 20%),
  linear-gradient(160deg,#f59e0b,#b45309 92%); }
.g4 { background: linear-gradient(135deg,#7C4DFF,#5B2BEA); }
.g5 { background: linear-gradient(135deg,#0ea5e9,#6366f1); }

/* detail screen */
.detail-hero { position: relative; border-radius: 24px; padding: 22px; color: #fff; margin-bottom: 16px; box-shadow: var(--shadow); overflow: hidden; }
.detail-hero.has-cover { background-size: cover; background-position: center; min-height: 168px; display: flex; flex-direction: column; justify-content: flex-end; }
.detail-hero.has-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,8,40,.12) 0%, rgba(18,8,40,.66) 100%); }
.detail-hero .hero-text { position: relative; z-index: 1; }
.detail-hero h1 { font-size: 27px; font-weight: 800; letter-spacing: -.5px; }
.detail-hero .sub { font-size: 14.5px; opacity: .92; margin-top: 6px; display: flex; align-items: center; gap: 7px; }
.detail-hero .cd { margin-top: 16px; background: rgba(255,255,255,.18); backdrop-filter: blur(3px); padding: 10px 14px; border-radius: 14px; font-weight: 700; display: inline-flex; align-items:center; gap: 8px; font-size: 14px; }
.hero-cam { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.24); color: #fff; border: none; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.hero-cam:active { transform: scale(.92); }
.hero-cam svg { width: 18px; height: 18px; }

/* round community logo */
.comm-logo-row { display: flex; justify-content: center; margin-top: -48px; margin-bottom: 16px; position: relative; z-index: 3; }
.comm-logo { position: relative; width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--white); background: var(--purple-soft); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); padding: 0; }
.comm-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.comm-logo .cl-init { font-size: 36px; font-weight: 800; color: var(--purple-deep); }
.cl-cam { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; border: 3px solid var(--white); }
.cl-cam svg { width: 14px; height: 14px; }

/* image cropper */
.crop-layer { position: fixed; inset: 0; z-index: 60; background: rgba(10,6,24,.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 18px; animation: fade .2s ease; }
.crop-modal { width: 100%; max-width: 340px; background: var(--white); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.crop-head { font-size: 16px; font-weight: 800; text-align: center; margin-bottom: 14px; }
.crop-stage { position: relative; margin: 0 auto; overflow: hidden; border-radius: 14px; background: #11131a; touch-action: none; cursor: grab; }
.crop-stage.is-round { border-radius: 50%; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; top: 0; left: 0; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 12px; margin: 16px 4px 6px; color: var(--muted); }
.crop-zoom .cz-lbl { font-size: 18px; font-weight: 800; color: var(--purple-deep); width: 16px; text-align: center; }
.crop-zoom .cz-lbl.big { font-size: 24px; }
.crop-zoom input[type=range] { flex: 1; accent-color: var(--purple); }
.crop-hint { font-size: 12.5px; color: var(--muted); text-align: center; margin-bottom: 14px; }
.crop-actions { display: flex; gap: 10px; }
.crop-actions .ghost-btn, .crop-actions .primary-btn { flex: 1; }

/* create-event image preview */
.uploader.has-image { position: relative; min-height: 150px; background-size: cover; background-position: center; padding: 0; border-style: solid; border-color: transparent; }
.uploader.has-image .up-change { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(18,8,40,.6); color: #fff; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; backdrop-filter: blur(4px); }
.uploader.has-image .up-change svg { width: 16px; height: 16px; }
.stat-grid { display: flex; gap: 12px; margin-bottom: 16px; }
.stat-box { flex: 1; background: var(--white); border-radius: 18px; padding: 16px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-box .num { font-size: 22px; font-weight: 800; color: var(--purple-deep); }
.stat-box .lbl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.announce-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.announce-item:last-child { border-bottom: none; }
.announce-item .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; flex: 0 0 auto; }
.announce-item p { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; padding-top: 6px; }

.info-note { background: var(--purple-softer); border-radius: 16px; padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); margin: 4px 0 14px; }
.info-note svg { color: var(--purple); flex: 0 0 auto; margin-top: 1px; }

/* rules list */
.rule-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rule-item:last-child { border-bottom: none; }
.rule-item .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; flex: 0 0 auto; }
.rule-item p { font-size: 14.5px; color: var(--ink-2); padding-top: 4px; }
.lead { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 16px; }

/* community inside */
.comm-top { background: var(--white); border-radius: 0 0 22px 22px; padding: 6px 16px 12px; box-shadow: var(--shadow-sm); }
.comm-top h2 { font-size: 18px; font-weight: 800; }
.comm-top .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 13px; padding: 4px; margin-top: 10px; }
.tab { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tab.active { background: var(--white); color: var(--purple-deep); box-shadow: var(--shadow-sm); }

/* chat 3-region layout */
.chat-screen { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.chat-screen .comm-top { flex: 0 0 auto; position: relative; z-index: 5; }
.chat-mid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.chat-mid::-webkit-scrollbar { display: none; }

.chat-area { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.msg-row.them, .msg-row.admin { align-self: flex-start; }
.msg-row.me { align-self: flex-end; flex-direction: row-reverse; }
.msg-av { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; cursor: pointer; object-fit: cover; }
.msg { max-width: 100%; padding: 9px 13px 7px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.msg .name { font-size: 11.5px; font-weight: 700; margin-bottom: 3px; opacity: .85; display: flex; align-items: center; gap: 3px; }
.msg-text { display: block; }
.msg-time { display: block; font-size: 10.5px; margin-top: 3px; text-align: right; }
.msg.them .msg-time { color: var(--muted); }
.msg.admin .msg-time { color: var(--purple); opacity: .7; }
.msg.me .msg-time { color: rgba(255,255,255,.85); }
.vbadge { vertical-align: -2px; flex: 0 0 auto; }
.msg.me .vbadge path { fill: #fff; }
.msg.them { background: var(--white); border-radius: 16px 16px 16px 4px; align-self: flex-start; box-shadow: var(--shadow-sm); color: var(--ink-2); }
.msg.me { background: var(--grad); color: #fff; border-radius: 16px 16px 4px 16px; align-self: flex-end; }
.msg.admin { background: var(--purple-softer); border: 1px solid var(--purple-soft); align-self: flex-start; color: var(--purple-deep); }
.msg.me .name { color: rgba(255,255,255,.85); }

.composer {
  position: relative;
  flex: 0 0 auto;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 4px; align-items: center;
}
.mic-btn { touch-action: none; }
.mic-btn.recording { background: var(--purple-soft); color: var(--purple-deep); transform: scale(1.12); }

/* voice recording overlay */
.rec-overlay {
  position: absolute; inset: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--white);
  display: flex; align-items: center; gap: 10px;
  z-index: 6;
  touch-action: none;
}
.rec-overlay.hidden { display: none; }
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: #FF3B30; flex: 0 0 auto; animation: recpulse 1.1s infinite; }
@keyframes recpulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.rec-time { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); flex: 0 0 auto; }
.rec-slide { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; will-change: transform; }
.rec-lock-hint { display: flex; flex-direction: column; align-items: center; color: var(--purple-deep); flex: 0 0 auto; will-change: transform; }
.rec-lock-hint i { font-style: normal; font-size: 12px; line-height: 1; opacity: .7; }
.rec-locked-tag { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--purple-deep); font-size: 13px; font-weight: 700; }
.rec-trash { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--bg); color: #FF3B30; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.rec-trash:active { transform: scale(.92); }
.rec-send { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; box-shadow: 0 6px 16px rgba(124,77,255,.4); }
.rec-send:active { transform: scale(.94); }
.msg-audio[data-act] { cursor: pointer; }
.msg-audio.playing .au-play { background: var(--purple); color: #fff; }
.composer input {
  flex: 1 1 auto; min-width: 0; height: 44px; border-radius: 14px; border: 1px solid var(--line);
  padding: 0 14px; font: inherit; font-size: 15px; outline: none; background: var(--bg);
}
.send-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; box-shadow: 0 6px 16px rgba(124,77,255,.4); }
.send-btn:active { transform: scale(.94); }

.locked { text-align: center; padding: 50px 24px; }
.locked .lk-ic { width: 70px; height: 70px; border-radius: 50%; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; margin: 0 auto 16px; }
.locked h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.locked p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }

/* uploader */
.uploader {
  border: 2px dashed #C9BCF5; border-radius: 20px;
  padding: 32px 20px; text-align: center; background: var(--purple-softer);
  cursor: pointer; margin-bottom: 8px;
}
.uploader .up-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; margin: 0 auto 14px; }
.uploader h4 { font-size: 16px; font-weight: 800; }
.uploader p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; font: inherit; font-size: 15px; outline: none; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); }
.field textarea { resize: none; min-height: 80px; }
.field .opt { color: var(--muted); font-weight: 500; }

/* message list */
.dm-card { transition: transform .12s, box-shadow .12s; }
.dm-card:active { transform: scale(.99); }
.dm-card.unread { background: var(--purple-softer); box-shadow: inset 3px 0 0 var(--purple), var(--shadow-sm); }
.dm-card.unread .nm { color: var(--ink); }
.dm-card.unread .lastmsg { color: var(--ink-2); font-weight: 600; }
.dm-item { display: flex; gap: 14px; align-items: center; cursor: pointer; }
.dm-av { position: relative; flex: 0 0 auto; }
.dm-av.online::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2.5px solid #fff; }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.avatar.sm { width: 40px; height: 40px; }
.dm-info { flex: 1; min-width: 0; }
.dm-info .nm { font-size: 17px; font-weight: 800; }
.dm-info .lastmsg { color: var(--muted); font-size: 14px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-meta { text-align: right; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.dm-meta .tm { font-size: 12.5px; color: var(--muted); }
.dm-meta .badge { background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }

.dm-header { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.dm-header h2 { font-size: 19px; font-weight: 800; }
.dm-header .st { font-size: 12.5px; color: #22c55e; font-weight: 600; }

/* profile */
.profile-card { text-align: center; padding: 0 22px 22px; overflow: hidden; position: relative; }
.profile-cover { height: 100px; margin: 0 -22px; background: linear-gradient(135deg, #7C4DFF 0%, #5B2BEA 55%, #9B6BFF 100%); position: relative; }
.profile-cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.22), transparent 45%); }
/* base size for every .pavatar — without it a real photo renders at natural size */
.pavatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; display: block; background: var(--bg);
  max-width: 100%;
}
.profile-card .pavatar { width: 96px; height: 96px; border-radius: 50%; margin: -52px auto 12px; border: 4px solid #fff; box-shadow: 0 8px 22px rgba(91,43,234,.32); position: relative; object-fit: cover; }
.profile-card .uname { font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; }
.profile-card .ucity { color: var(--muted); font-size: 14px; margin-top: 3px; display: flex; align-items: center; gap: 5px; justify-content: center; }
.priv-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--purple-soft); color: var(--purple-deep); font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; margin-top: 12px; cursor: pointer; }
.stats { display: flex; gap: 10px; margin: 18px 0; }
.stats .s { flex: 1; text-align: center; background: var(--bg); border-radius: 16px; padding: 12px 4px; cursor: pointer; transition: transform .12s, background .12s; }
.stats .s:active { transform: scale(.96); background: var(--purple-soft); }
.stats .s .n { font-size: 21px; font-weight: 800; color: var(--purple-deep); }
.stats .s .l { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* toggle */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: none; }
.toggle-row .tl { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.switch { width: 48px; height: 28px; border-radius: 999px; background: #D8DBE2; position: relative; cursor: pointer; transition: .2s; flex: 0 0 auto; }
.switch.on { background: var(--purple); }
.switch::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.switch.on::after { left: 23px; }

/* list rows (sheet) */
.list-row { display: flex; align-items: center; gap: 14px; padding: 11px 4px; min-height: 60px; cursor: pointer; border-bottom: 1px solid var(--line); }
/* Bazı satırlar <div>, bazıları <button> (Çık / Sil). Buton varsayılan UA stili
   (kendi kenarlığı, arka planı, daralan genişliği, ortalı metni) satır düzenini
   bozuyordu — kutulanmış ve kaymış görünüyorlardı. Butonu satıra eşitliyoruz. */
button.list-row { width: 100%; border: 0; background: none; font: inherit; text-align: left; color: inherit; }
button.list-row:focus-visible { outline: 3px solid var(--purple); outline-offset: -3px; border-radius: 12px; }
.list-row:last-child { border-bottom: none; }
.list-row .lic { width: 38px; height: 38px; border-radius: 11px; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; flex: 0 0 auto; }
.list-row .lt { flex: 1; font-size: 15.5px; font-weight: 600; }
.list-row .chev { color: var(--muted-2); }
.list-row.danger .lt { color: #ef4444; }
.list-row.danger .lic { background: #FEE2E2; color: #ef4444; }
.list-row.danger .chev { color: #f87171; }

/* community mine cards */
.cm-card .cm-top { display: flex; gap: 12px; }
.cm-status { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.cm-status.soon { background: #FEF3C7; color: #B45309; }
.cm-status.mem { background: var(--purple-soft); color: var(--purple-deep); }
.cm-status.today { background: #DCFCE7; color: #15803D; }
.cm-status.arch { background: #E5E7EB; color: #4B5563; }
.cm-news { color: var(--purple-deep); font-weight: 600; font-size: 13px; margin-top: 6px; }
.dots-btn { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); border: none; cursor: pointer; color: var(--muted); flex: 0 0 auto; }

/* memories */
.mem-card { padding: 0; overflow: hidden; }
.mem-media { height: 200px; display: grid; place-items: center; color: #fff; position: relative; }
.mem-media .tag { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.2); backdrop-filter: blur(4px); color:#fff; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.mem-body { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.mem-body .nm { font-weight: 800; font-size: 15px; }
.mem-body .by { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; cursor: pointer; }
.cbx { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #C9BCF5; flex: 0 0 auto; display: grid; place-items: center; color: #fff; }
.cbx.on { background: var(--purple); border-color: var(--purple); }
.checkbox-row span { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

/* empty search */
.empty-state { text-align: center; padding: 30px 20px; }
.empty-state p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }

/* bottom nav — liquid glass floating pill */
.bottom-nav {
  position: absolute; z-index: 20;
  left: 16px; right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  height: 64px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.32));
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 34px rgba(31,16,72,.20), 0 2px 10px rgba(31,16,72,.08), inset 0 1px 0 rgba(255,255,255,.75);
  display: flex; align-items: stretch; justify-content: space-around;
  overflow: hidden;
  touch-action: none;
}
/* glossy specular sheen */
.bottom-nav::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 48%);
}
.bottom-nav.hidden { display: none; }
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* Alt gezinme etiketleri METİNDİR ve 11px'tir: dekoratif tonda
     (3.25:1) okunmuyordu. Seçili sekme zaten mor; seçili olmayanların
     da okunabilir olması gerekir. */
  gap: 4px; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 600;
  background: none; border: none; font-family: inherit; position: relative; transition: color .15s;
}
.nav-item svg { transition: transform .2s; }
.nav-item.active { color: var(--purple-deep); font-weight: 700; }
.nav-item.active svg { transform: translateY(-1px); }
.nav-item:active svg { transform: scale(.9); }

/* sliding liquid-glass highlight that follows finger / active tab */
.nav-glide {
  position: absolute; top: 8px; bottom: 8px; left: 0; width: 48px;
  border-radius: 18px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(124,77,255,.18));
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 5px 16px rgba(124,77,255,.26), inset 0 1px 0 rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(8px) saturate(170%);
  backdrop-filter: blur(8px) saturate(170%);
  transition: left .42s cubic-bezier(.34,1.32,.5,1), width .42s cubic-bezier(.34,1.32,.5,1);
  will-change: left, width;
}
.nav-glide.dragging { transition: none; }
.bottom-nav.pressing .nav-glide { transform: scale(1.04); }
.nav-badge {
  position: absolute; top: 6px; left: calc(50% + 6px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: #FF3B30; color: #fff; font-size: 10px; font-weight: 800; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--white);
}

/* toast */
.toast {
  position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(20px);
  background: #1f2230; color: #fff; padding: 13px 20px; border-radius: 14px;
  font-size: 14px; font-weight: 600; max-width: 320px; text-align: center;
  opacity: 0; pointer-events: none; transition: .3s; z-index: 50; box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* bottom sheet */
.sheet-layer { position: absolute; inset: 0; z-index: 60; display: flex; align-items: flex-end; }
.sheet-layer.hidden { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(17,24,39,.32); animation: fade .2s; }
.sheet {
  position: relative; width: 100%; background: var(--white);
  border-radius: 28px 28px 0 0; padding: 12px 22px calc(28px + env(safe-area-inset-bottom));
  max-height: 80%; overflow-y: auto; animation: slideup .28s cubic-bezier(.2,.8,.2,1);
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
@keyframes slideup { from { transform: translateY(100%);} to { transform: none; } }
.sheet-grab { width: 44px; height: 5px; border-radius: 999px; background: #CBCBD4; margin: 4px auto 16px; }
.sheet h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }

/* compose modal (Discover) */
.compose-modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(17,24,39,.45); animation: fade .2s;
}
.compose-modal-inner {
  background: var(--white); border-radius: 20px; padding: 24px; width: 320px; max-width: 90vw;
  box-shadow: 0 24px 64px rgba(17,24,39,.18);
}
.compose-modal-inner textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  font-family: inherit; font-size: 15px; resize: none; outline: none;
}
.compose-modal-inner textarea:focus { border-color: var(--purple); }
.compose-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* ===== content-fill components ===== */
/* event detail info grid */
.info-grid { display: flex; flex-wrap: wrap; gap: 4px 0; }
.ig { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ig:last-child { border-bottom: none; }
.igl { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.igv { font-size: 14.5px; color: var(--ink); font-weight: 700; text-align: right; }

/* feed posts */
.post-card { padding: 16px; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-name { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 5px; }
.post-tag { font-size: 11px; font-weight: 700; color: var(--purple-deep); background: var(--purple-soft); padding: 3px 9px; border-radius: 999px; }
.post-text { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; margin-bottom: 12px; }
.post-actions { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 11px; }
.post-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--bg); border: none; border-radius: 12px; padding: 9px 6px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.post-btn:active { background: var(--purple-soft); color: var(--purple-deep); }
.post-btn svg { flex: 0 0 auto; }

/* empty state card */
.empty-card { text-align: center; padding: 34px 22px; }
.empty-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; margin: 0 auto 14px; }
.empty-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.empty-card .primary-btn { margin: 0 auto; }

/* notif descriptions */
.tl-wrap { display: flex; flex-direction: column; gap: 3px; padding-right: 14px; }
.tl-desc { font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.35; }

/* admin panel */
.admin-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px; border-radius: 24px; margin-bottom: 14px;
  background: radial-gradient(circle at 15% 15%, rgba(255,255,255,.36), transparent 30%), linear-gradient(135deg, #7C4DFF, #B56BFF);
  color: #fff; box-shadow: 0 18px 40px rgba(124,77,255,.26);
}
.admin-hero h1 { font-size: 26px; font-weight: 900; letter-spacing: -.6px; margin: 3px 0 5px; }
.admin-hero p { font-size: 13.5px; line-height: 1.35; opacity: .9; max-width: 235px; }
.admin-kicker { font-size: 11px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase; opacity: .82; }
.admin-shield {
  width: 56px; height: 56px; flex: 0 0 auto; border-radius: 20px; display: grid; place-items: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.26); backdrop-filter: blur(10px);
}
.admin-shield svg { width: 28px; height: 28px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.admin-stat { margin: 0; padding: 14px; border: 1px solid rgba(124,77,255,.12); }
.admin-stat:first-child { grid-column: span 2; }
.as-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.as-top span {
  width: 34px; height: 34px; border-radius: 13px; display: grid; place-items: center;
  background: var(--purple-softer); color: var(--purple);
}
.as-top b { font-size: 27px; font-weight: 900; color: var(--purple-deep); letter-spacing: -.5px; }
.as-lbl { font-size: 12.5px; color: var(--muted); margin-top: 8px; font-weight: 700; }
.admin-quick { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.admin-action {
  min-height: 58px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font: inherit; font-size: 11.5px; font-weight: 850; cursor: pointer; box-shadow: 0 10px 26px rgba(39,28,61,.06);
}
.admin-action.primary { background: var(--grad); color: #fff; border: none; box-shadow: 0 14px 30px rgba(124,77,255,.2); }
.admin-action svg { width: 18px; height: 18px; }
.admin-action:active { transform: scale(.97); }
.admin-section { margin-bottom: 14px; padding: 14px; }
.admin-section.purple { border-left: 4px solid var(--purple); }
.admin-section.blue { border-left: 4px solid #3b82f6; }
.admin-section.red { border-left: 4px solid #ef4444; }
.admin-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.admin-section-head h2 { font-size: 16px; font-weight: 900; letter-spacing: -.2px; }
.admin-section-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.admin-pill {
  min-width: 30px; height: 30px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center;
  background: var(--purple-softer); color: var(--purple-deep); font-weight: 900; font-size: 13px;
}
.admin-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: none; padding-bottom: 0; }
.admin-avatar {
  width: 44px; height: 44px; border-radius: 16px; flex: 0 0 auto; display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .4px; overflow: hidden;
}
.admin-avatar.danger { background: #FEE2E2; color: #ef4444; }
.ar-info { flex: 1; min-width: 0; }
.ar-name { font-size: 14.5px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-sub { font-size: 12.2px; color: var(--muted); margin-top: 2px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-actions { display: flex; gap: 8px; }
.mini-btn { flex: 1; border: none; border-radius: 12px; padding: 9px 9px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.admin-row .mini-btn { flex: 0 0 auto; min-width: 72px; }
.mini-btn.ok { background: var(--grad); color: #fff; }
.mini-btn.no { background: #FEE2E2; color: #ef4444; }
.mini-btn.nt { background: var(--bg); color: var(--ink-2); }
.mini-btn:active { transform: scale(.97); }
.admin-mod-card { overflow: hidden; padding: 16px; }
.admin-mod-preview {
  height: 118px; border-radius: 18px; display: grid; place-items: end start; padding: 12px; color: #fff;
  font-size: 12px; font-weight: 900; letter-spacing: .8px; margin: 12px 0 10px; text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.admin-status-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.admin-status {
  border-radius: 999px; padding: 5px 9px; font-size: 11.5px; font-weight: 900;
}
.admin-status.ok { background: var(--purple-softer); color: var(--purple-deep); }
.admin-status.nt { background: var(--bg); color: var(--ink-2); }
.admin-status.warn { background: #FEF3C7; color: #b45309; }
.admin-mod-card .post-head { align-items: center; gap: 10px; }
.admin-mod-card .post-name { line-height: 1.1; }
.admin-mod-card .post-text { font-size: 13.5px; line-height: 1.38; margin: 8px 0 12px; }
.admin-mod-card .mod-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.admin-mod-card .mod-actions + .mod-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px !important;
}
.admin-mod-card .mini-btn {
  min-height: 46px;
  padding: 10px 8px;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}

/* memories detail */
.mem-detail { padding: 14px 16px; }
.mem-detail .by { color: var(--muted); font-size: 12.5px; }
.mem-caption { font-size: 14.5px; color: var(--ink); font-weight: 600; margin: 6px 0 8px; }
.mt-ev { font-size: 13px; font-weight: 800; color: var(--purple-deep); }

/* clickable chat name */
.msg .name[data-act] { cursor: pointer; }

/* username privacy icon */
.uname-priv { display: inline-flex; align-items: center; color: var(--muted-2); margin-left: 7px; vertical-align: 1px; }
.priv-chip[data-menu-open] { cursor: pointer; }

/* profile shares grid */
.mem-grid { display: flex; flex-direction: column; gap: 12px; }
.mem-thumb { display: flex; gap: 12px; padding: 10px; cursor: pointer; align-items: stretch; }
.mt-media { width: 96px; flex: 0 0 96px; border-radius: 14px; display: grid; place-items: center; color: #fff; position: relative; min-height: 84px; }
.mt-media .play { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.25); backdrop-filter: blur(4px); display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.6); }
.mt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mt-cap { font-size: 14px; color: var(--ink-2); font-weight: 600; margin: 4px 0 6px; }
.mt-meta { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.mt-meta svg { color: var(--purple); }
.mt-date { margin-left: auto; color: var(--muted); font-weight: 500; }

/* friend / blocked rows */
.friend-row { display: flex; align-items: center; gap: 12px; }
.friend-row .avatar { cursor: pointer; }
.fr-info { flex: 1; min-width: 0; cursor: pointer; }
.fr-info .nm { font-size: 15.5px; font-weight: 800; }
.fr-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.fr-sub svg { flex: 0 0 auto; }

/* report reason radio */
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; }
.radio.on { border-color: var(--purple); background: radial-gradient(circle at center, var(--purple) 0 6px, transparent 7px); }

/* messages: profile icon button on dm card */
.dm-item .dots-btn { color: var(--muted-2); }

/* ghost button small + icon buttons in profile */
.ghost-btn.sm { height: 44px; width: auto; flex: 0 0 auto; padding: 0 16px; font-size: 13.5px; border-radius: 12px; white-space: nowrap; }
.profile-card .btn-row .ghost-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.profile-card .btn-row .primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }

/* ===========================================================
   v2 — chat overhaul, media, sponsored, sheets, discover, admin
   =========================================================== */

/* community header */
.ct-title { flex: 1; min-width: 0; cursor: pointer; }
.ct-title h2 { font-size: 19px; font-weight: 800; line-height: 1.1; }
.ct-title .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ct-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-softer); color: var(--purple-deep); border: none; cursor: pointer; flex: 0 0 auto; }
.ct-search { display: flex; align-items: center; gap: 9px; background: var(--bg); border-radius: 12px; padding: 0 14px; height: 42px; margin-top: 10px; }
.ct-search svg { color: var(--muted-2); flex: 0 0 auto; }
.ct-search input { border: none; outline: none; background: transparent; font: inherit; font-size: 14.5px; width: 100%; }

/* pinned bar */
.pin-bar { display: flex; align-items: center; gap: 10px; background: var(--purple-softer); border-radius: 12px; padding: 9px 12px; margin-top: 10px; cursor: pointer; color: var(--purple-deep); }
.pin-bar > svg:first-child { flex: 0 0 auto; }
.pb-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pb-lbl { font-size: 11px; font-weight: 800; }
.pb-text { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-bar .chev, .pin-bar svg:last-child { color: var(--muted-2); flex: 0 0 auto; }

/* event-day panel */
.day-panel { background: var(--grad); color: #fff; border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.dp-title { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.dp-title svg { fill: #fff; }
.dp-grid { display: flex; gap: 14px; margin-top: 8px; font-size: 12.5px; opacity: .95; flex-wrap: wrap; }
.dp-grid b { font-weight: 800; }
.dp-note { font-size: 12px; margin-top: 8px; display: flex; align-items: center; gap: 6px; opacity: .92; }
.dp-note svg { flex: 0 0 auto; }

/* chat search empty */
.chat-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 30px 0; }

/* media messages */
.msg.has-media { padding: 5px; max-width: 74%; }
.msg-row.me .msg.has-media, .msg-row.them .msg.has-media { width: 230px; max-width: 100%; }
.msg-media { width: 100%; height: 160px; border-radius: 14px; background-size: cover; background-position: center; position: relative; background-color: var(--purple-soft); }
.msg-media.video { display: grid; place-items: center; }
.msg-media .mv-play { width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; }
.msg-media .mv-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.5); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 8px; }
.msg.has-media .msg-time { padding: 0 6px 2px; }
.msg-audio { display: flex; align-items: center; gap: 9px; padding: 4px 6px; min-width: 200px; }
.au-play { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(124,77,255,.16); color: var(--purple-deep); display: grid; place-items: center; flex: 0 0 auto; cursor: pointer; padding: 0; }
.au-play:active { transform: scale(.92); }
.msg.me .au-play { background: rgba(255,255,255,.25); color: #fff; }
.au-wave { position: relative; flex: 1; height: 26px; cursor: pointer; touch-action: none; }
.au-bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.au-bars i { flex: 1; border-radius: 2px; height: 30%; background: var(--purple); }
.au-bars i:nth-child(3n) { height: 80%; } .au-bars i:nth-child(2n) { height: 55%; } .au-bars i:nth-child(5n) { height: 100%; }
.au-bars.base i { opacity: .3; }
.au-bars.played { clip-path: inset(0 100% 0 0); }
.au-bars.played i { opacity: 1; }
.msg.me .au-bars i { background: #fff; }
.au-knob { position: absolute; top: 50%; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--purple); box-shadow: 0 1px 3px rgba(0,0,0,.3); transform: translate(-50%,-50%); transition: left .1s linear; pointer-events: none; }
.msg.me .au-knob { background: #fff; }
.au-dur { font-size: 11.5px; font-weight: 700; color: var(--muted); flex: 0 0 auto; font-variant-numeric: tabular-nums; min-width: 30px; text-align: right; }
.msg.me .au-dur { color: rgba(255,255,255,.9); }

/* reply quote inside bubble */
.msg-reply { border-left: 3px solid var(--purple); background: rgba(124,77,255,.08); border-radius: 8px; padding: 5px 9px; margin-bottom: 5px; display: flex; flex-direction: column; }
.msg.me .msg-reply { border-left-color: #fff; background: rgba(255,255,255,.18); }
.mr-name { font-size: 11.5px; font-weight: 800; }
.mr-text { font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

/* search highlight */
.msg mark { background: #FDE68A; color: inherit; border-radius: 3px; padding: 0 2px; }

/* sponsored message */
.sponsor-card { border: 1px solid var(--purple-soft); background: var(--white) !important; color: var(--ink-2) !important; box-shadow: var(--shadow-sm); }
.sp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.sp-name { font-size: 13px; font-weight: 800; color: var(--ink); }
.sp-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; color: var(--purple-deep); background: var(--purple-soft); padding: 2px 8px; border-radius: 999px; }
.sp-tag svg { flex: 0 0 auto; }
.sp-btn { margin-top: 9px; width: 100%; border: none; border-radius: 11px; background: var(--grad); color: #fff; font: inherit; font-weight: 700; font-size: 13.5px; padding: 9px; cursor: pointer; }

/* reply bar above composer */
.reply-bar { flex: 0 0 auto; background: var(--purple-softer); display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); }
.rb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; border-left: 3px solid var(--purple); padding-left: 9px; }
.rb-name { font-size: 12px; font-weight: 800; color: var(--purple-deep); }
.rb-text { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-close { background: none; border: none; color: var(--muted); cursor: pointer; flex: 0 0 auto; }

/* composer media icons */
/* Besteci ikonları 38 -> 44px: sohbette en sık dokunulan kontroller. */
.comp-ic { width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.comp-ic svg { width: 22px; height: 22px; }
.comp-ic:active { background: var(--purple-soft); color: var(--purple-deep); }

/* typing indicator */
.typing-row { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 4px 16px 6px; font-size: 12.5px; color: var(--muted); }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); opacity: .5; animation: typing 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; }
.typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.typing-row:empty { display: none; padding: 0; }
.typing-bubble { padding: 12px 16px !important; display: inline-flex; align-items: center; }
.typing-in { animation: fade .2s ease; }
.sub.is-typing { color: var(--purple-deep); display: inline-flex; align-items: center; gap: 6px; }
.sub.is-typing .typing-dots i { width: 5px; height: 5px; }
.typing-name { font-weight: 700; }

/* feed composer + locked inline */
.feed-composer textarea { width: 100%; border: none; outline: none; resize: none; min-height: 54px; font: inherit; font-size: 14.5px; background: transparent; }
.fc-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--purple-softer); color: var(--purple-deep); border: none; border-radius: 11px; padding: 8px 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.fc-actions .primary-btn.sm { margin-left: auto; }
.locked-inline { display: flex; align-items: center; gap: 12px; }
.locked-inline .li-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; flex: 0 0 auto; }
.locked-inline .li-t { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.locked-inline .primary-btn.sm { flex: 0 0 auto; }

/* likes + post stats */
.like-btn.liked { color: #ef4444; background: #FEE2E2; }
.like-btn.liked svg { fill: #ef4444; stroke: #ef4444; }
.post-stat { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.post-stat svg { color: var(--purple); }

/* discover share cards */
.share-card { padding: 0; overflow: hidden; }
.sh-meta { min-width: 0; }
.sh-user { font-size: 14px; font-weight: 800; }
.sh-ev { font-size: 12.5px; color: var(--purple-deep); font-weight: 600; }
.share-body { padding: 12px 14px 14px; }
.sh-cap { font-size: 14.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 10px; }
.sh-foot { display: flex; align-items: center; gap: 14px; }

/* ticket sheet */
.ticket-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ticket-row:last-of-type { border-bottom: none; }
.ticket-row .lic { width: 44px; height: 44px; border-radius: 12px; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; flex: 0 0 auto; }
.tk-info { flex: 1; min-width: 0; }
.tk-name { font-size: 15px; font-weight: 800; }
.tk-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ticket-row .primary-btn.sm { flex: 0 0 auto; height: 44px; }
.tk-link { display: inline-flex; align-items: center; gap: 6px; color: var(--purple-deep); font-weight: 700; font-size: 13.5px; text-decoration: none; margin-top: 4px; }

/* quick profile sheet */
.qp-card { text-align: center; padding: 6px 0 4px; }
.qp-av { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 10px; display: block; object-fit: cover; background: var(--bg); }
.qp-name { font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 5px; }
.qp-sub { font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 3px; }
.qp-sub svg { color: var(--purple); }

/* comments sheet */
.cmt-preview { background: var(--purple-softer); border-radius: 12px; padding: 11px 14px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
#cmt-list { display: flex; flex-direction: column; gap: 12px; max-height: 280px; overflow-y: auto; margin-bottom: 12px; }
.cmt-row { display: flex; gap: 10px; align-items: flex-start; }
.cmt-bubble { background: var(--bg); border-radius: 14px; padding: 8px 12px; }
.cmt-name { font-size: 12.5px; font-weight: 800; display: block; }
.cmt-text { font-size: 14px; color: var(--ink-2); }
.cmt-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 16px 0; }
.cmt-composer { display: flex; gap: 10px; align-items: center; }
.cmt-composer input { flex: 1; height: 46px; border-radius: 14px; border: 1px solid var(--line); padding: 0 16px; font: inherit; font-size: 15px; outline: none; background: var(--bg); }

/* admin review */
.review-media { height: 130px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.admin-empty { color: var(--muted); font-size: 13.5px; padding: 10px 0; text-align: center; }
.mod-actions { display: flex; gap: 8px; }

/* edit profile avatar */
.avatar-edit { position: relative; cursor: pointer; width: 92px; height: 92px; }
.avatar-edit .pavatar { width: 100%; height: 100%; margin: 0; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.ae-cam { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.ae-cam svg { width: 16px; height: 16px; }

/* feed post media */
.post-media { height: 180px; border-radius: 14px; background-size: cover; background-position: center; margin-bottom: 12px; }

/* warning note */
.warn-note { background: #FEF3C7 !important; }
.warn-note svg { color: #B45309 !important; }
.warn-note span { color: #7c5e16; }

/* ===========================================================
   AUTH SCREEN — giriş / kayıt
   =========================================================== */
.auth-screen {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  background: radial-gradient(120% 80% at 50% -10%, #efe9ff 0%, var(--bg) 55%);
}
.auth-card {
  width: 100%;
  background: var(--white);
  border-radius: 24px;
  padding: 30px 24px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.auth-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 800; color: var(--purple-deep);
  margin-bottom: 18px;
}
.auth-logo svg { width: 26px; height: 26px; color: var(--purple); }
.auth-title { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.auth-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.auth-field { display: block; margin-bottom: 14px; }
.auth-field > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.auth-field > span em { font-style: normal; font-weight: 500; color: var(--muted); }
.auth-field input {
  width: 100%; height: 48px;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 0 16px; font: inherit; font-size: 15px;
  background: var(--bg); color: var(--ink); outline: none;
  transition: border-color .15s, background .15s;
}
.auth-field input:focus { border-color: var(--purple); background: var(--white); }
.auth-error { min-height: 18px; font-size: 12.5px; color: #DC2626; font-weight: 600; margin-bottom: 8px; opacity: 0; transition: opacity .15s; }
.auth-error.on { opacity: 1; }
.auth-error.info { color: var(--purple-deep); }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-submit.loading { opacity: .6; pointer-events: none; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 10px; }
/* Dokunma alanı: ölçülen yükseklik 18px'ti. Apple HIG 44pt, Material 48dp
   ister. Metin boyutu KORUNUR, dokunulabilir alan dikey dolguyla büyütülür —
   yazıyı büyütmek kartın dengesini bozardı. */
.auth-link {
  background: none; border: none; color: var(--purple-deep);
  font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer;
  min-height: 44px; padding: 0 10px;
}
.auth-link:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 8px; }
body.auth-active #bottom-nav { display: none !important; }

/* ===========================================================
   SETTINGS — Instagram tarzı tam sayfa
   =========================================================== */
.set-account { display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; }
.set-av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.set-ac-info { flex: 1; min-width: 0; }
.set-ac-name { font-size: 17px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.set-ac-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.role-badge { font-size: 10.5px; font-weight: 800; color: #fff; background: var(--grad); padding: 2px 8px; border-radius: 999px; letter-spacing: .3px; }
.set-account .chev { color: var(--muted-2); flex: 0 0 auto; }

.set-group-label { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 20px 4px 8px; }
.set-list { padding: 4px 0; }
.set-list .list-row { padding: 13px 16px; }
.set-list .list-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.set-val { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; }
.set-list .list-row .chev { color: var(--muted-2); margin-left: 6px; }
.set-list .list-row .set-val + .chev { margin-left: 8px; }

.logout-btn {
  width: 100%; margin-top: 22px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; border-radius: 16px;
  /* #DC2626 açık kırmızı zeminde 4.41:1 — AA eşiği 4.5. Bir tık koyu
     ton 5.3:1 verir ve uyarı rengi kimliğini korur. */
  border: 1px solid #FCA5A5; background: #FEF2F2; color: #C81E1E;
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.logout-btn:active { background: #FEE2E2; }
.set-foot { text-align: center; font-size: 12px; color: var(--muted); margin: 16px 0 8px; }

/* rol rozetleri */
.role-badge.super { background: linear-gradient(135deg, #F59E0B, #DC2626); }

/* kullanıcı yönetimi */
.um-list { padding: 4px 0; }
.um-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.um-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.um-info { flex: 1; min-width: 0; }
.um-name { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.um-you { font-size: 12px; font-weight: 600; color: var(--muted-2); }
.um-locked { color: var(--muted-2); display: grid; place-items: center; width: 34px; height: 34px; }

/* error toasts stay visible even when informational toasts are disabled */
.toast.is-error { background:#DC2626; color:#fff; font-weight:600; }

/* ===========================================================
   EXPLORE (Keşfet) — beyaz ağırlıklı, bol boşluk, premium kartlar.
   Tek tasarım dili: radius 20px+, hafif gölge, mor vurgular.
   =========================================================== */
/* keeps the last card clear of the floating bottom nav (matches .screen) */
.exp { padding: 0 0 124px; }

/* ---- header ---- */
.exp-head {
  position: sticky; top: 0; z-index: 20;
  padding: 18px 16px 12px;
  background: linear-gradient(180deg, var(--white) 72%, rgba(255,255,255,0));
  padding-top: max(18px, env(safe-area-inset-top));
}
.exp-titlerow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.exp-title {
  font-size: 30px; font-weight: 900; letter-spacing: -.9px;
  color: var(--ink); margin: 0; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* single "+" in the corner — replaces the old compose prompt row */
.exp-add {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  border: none; border-radius: 14px; background: var(--grad); color: #fff;
  cursor: pointer; box-shadow: 0 8px 20px rgba(124,77,255,.32);
  transition: transform .16s cubic-bezier(.4,0,.2,1), filter .2s, box-shadow .2s;
}
.exp-add svg { width: 21px; height: 21px; }
.exp-add:hover { filter: brightness(1.08); box-shadow: 0 10px 26px rgba(124,77,255,.42); }
.exp-add:active { transform: scale(.92); }
.exp-add:focus-visible { outline: 3px solid rgba(124,77,255,.35); outline-offset: 2px; }
.exp-searchrow { display: flex; align-items: center; gap: 10px; }
.exp-search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 16px;
  background: var(--bg); border: 1.5px solid transparent; border-radius: 16px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.exp-search:focus-within {
  background: var(--white); border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124,77,255,.12);
}
.exp-search svg { flex: 0 0 auto; color: var(--muted); }
.exp-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 15px; font-weight: 500; color: var(--ink); font-family: inherit;
}
.exp-search input::placeholder { color: var(--muted-2); font-weight: 500; }
.exp-filter {
  flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 16px;
  background: var(--white); color: var(--ink-2); cursor: pointer;
  transition: transform .15s, border-color .2s, background .2s, color .2s;
}
.exp-filter:hover { border-color: var(--purple); color: var(--purple); }
.exp-filter:active { transform: scale(.94); }
.exp-filter.on { background: var(--grad); border-color: transparent; color: #fff; }

/* ---- filter chips ---- */
.exp-chips {
  display: flex; gap: 8px; margin-top: 12px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 2px; scroll-padding: 0 16px;
}
.exp-chips::-webkit-scrollbar { display: none; }
/* Dokunma alanı 36 -> 44px (Sprint 10.5). Keşif/etkinlik filtreleri bu
   ekranların birincil kontrolü; yazı boyutu korunup yükseklik büyütüldü. */
.exp-chip {
  flex: 0 0 auto; height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink-2);
  font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: transform .15s, border-color .2s, background .2s, color .2s;
}
.exp-chip:hover { border-color: var(--purple); color: var(--purple); }
.exp-chip:active { transform: scale(.95); }
.exp-chip.on { background: var(--grad); border-color: transparent; color: #fff; }
.exp-sheet-filters { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- sections ---- */
.exp-sec { padding: 0 16px; margin-top: 30px; }
.exp-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.exp-sec-head h2 { font-size: 19px; font-weight: 850; letter-spacing: -.5px; color: var(--ink); margin: 0; }

/* ---- horizontal rail ---- */
.exp-rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  margin: 0 -16px; padding: 4px 16px 6px;
}
.exp-rail::-webkit-scrollbar { display: none; }
.exp-rail > .exp-card { flex: 0 0 74%; max-width: 290px; scroll-snap-align: start; }

/* ---- grid ---- */
.exp-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* ---- shared card ---- */
.exp-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s, border-color .2s;
}
.exp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #E4E2F0; }
.exp-cover-wrap { position: relative; cursor: pointer; }
.exp-cover {
  height: 132px; background-size: cover; background-position: center;
  display: grid; place-items: center;
}
.exp-cover-txt {
  font-size: 13px; font-weight: 900; letter-spacing: .6px; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.3); padding: 0 14px; text-align: center;
}
.exp-comm.is-big .exp-cover { height: 168px; }
.exp-logo {
  position: absolute; left: 14px; bottom: -18px; width: 48px; height: 48px;
  border-radius: 15px; border: 3px solid var(--white); object-fit: cover;
  background: var(--white); box-shadow: var(--shadow-sm);
}
.exp-tag {
  position: absolute; top: 12px; right: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  font-size: 11.5px; font-weight: 800; color: var(--purple-deep);
}
.exp-body { padding: 14px 16px 16px; }
.exp-comm .exp-body { padding-top: 26px; }
.exp-name {
  font-size: 16.5px; font-weight: 800; letter-spacing: -.3px; color: var(--ink);
  margin: 0 0 8px; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.exp-meta {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 5px;
}
.exp-meta svg { flex: 0 0 auto; width: 14px; height: 14px; }
.exp-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line);
}
.exp-count {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.exp-count svg { flex: 0 0 auto; width: 14px; height: 14px; color: var(--muted); }
.exp-count span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-join {
  flex: 0 0 auto; height: 44px; padding: 0 18px; border: none; border-radius: 12px;
  background: var(--grad); color: #fff; font-size: 13.5px; font-weight: 800;
  font-family: inherit; cursor: pointer; transition: transform .15s, filter .2s;
}
.exp-join:hover { filter: brightness(1.07); }
.exp-join:active { transform: scale(.95); }
.exp-join.is-ghost {
  background: var(--purple-softer); color: var(--purple-deep);
  border: 1.5px solid var(--purple-soft);
}

/* ---- posts ---- */
.exp-posts { display: flex; flex-direction: column; gap: 16px; }
.exp-post {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  padding: 16px; box-shadow: var(--shadow-sm); transition: box-shadow .22s;
}
.exp-post:hover { box-shadow: var(--shadow); }
.exp-post-head { display: flex; align-items: center; gap: 11px; }
.exp-post-av { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; cursor: pointer; }
.exp-post-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.exp-post-name {
  font-size: 14.5px; font-weight: 800; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; gap: 5px; min-width: 0;
}
.exp-post-time { font-size: 12px; font-weight: 600; color: var(--muted-2); }
.exp-post-more {
  flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center;
  border: none; border-radius: 10px; background: transparent; color: var(--muted);
  cursor: pointer; transition: background .2s, color .2s;
}
.exp-post-more:hover { background: var(--bg); color: var(--ink-2); }
.exp-post-text {
  margin: 13px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2);
  overflow-wrap: anywhere;
}
.exp-post-mediawrap {
  /* min-height keeps the layout stable while the media decodes */
  margin-top: 13px; border-radius: 16px; overflow: hidden; background: var(--bg);
  min-height: 120px; max-height: 420px; display: flex;
}
.exp-post-media {
  display: block; width: 100%; height: auto; max-height: 420px;
  object-fit: cover; background: var(--bg);
}
video.exp-post-media { background: #000; }
.exp-post-acts {
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line);
}
.exp-act {
  display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px;
  border: none; border-radius: 11px; background: transparent;
  font-size: 13.5px; font-weight: 700; font-family: inherit; color: var(--muted);
  cursor: pointer; transition: background .2s, color .2s, transform .15s;
}
.exp-act svg { width: 18px; height: 18px; }
.exp-act:hover { background: var(--bg); color: var(--ink-2); }
.exp-act:active { transform: scale(.93); }
.exp-act.is-on { color: var(--purple-deep); }
.exp-act.is-on svg { fill: currentColor; }
.exp-act-end { margin-left: auto; }

/* ---- empty state ---- */
.exp-empty {
  display: grid; place-items: center; gap: 10px; padding: 40px 20px;
  background: var(--white); border: 1px dashed var(--line); border-radius: 22px;
  text-align: center;
}
.exp-empty svg { width: 26px; height: 26px; color: var(--muted-2); }
.exp-empty p { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---- skeleton ---- */
.exp-sk {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; padding-bottom: 16px;
}
.exp-sk-media { height: 132px; }
.exp-sk-line { height: 12px; border-radius: 6px; margin: 12px 16px 0; }
.exp-sk-media, .exp-sk-line {
  background: linear-gradient(90deg, #F1F1F6 25%, #E7E7EF 37%, #F1F1F6 63%);
  background-size: 400% 100%; animation: exp-shimmer 1.4s ease-in-out infinite;
}
.exp-sk-line.w70 { width: 70%; }
.exp-sk-line.w45 { width: 45%; }
@keyframes exp-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---- entrance animation ---- */
.exp-rise { opacity: 0; animation: exp-rise .5s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes exp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .exp-rise { animation: none; opacity: 1; }
  .exp-sk-media, .exp-sk-line { animation: none; }
  .exp-card, .exp-post { transition: none; }
}

/* ---- responsive: tablet ---- */
@media (min-width: 700px) {
  .exp-head { padding: 24px 24px 14px; }
  .exp-title { font-size: 34px; }
  .exp-add { width: 48px; height: 48px; border-radius: 15px; }
  .exp-sec { padding: 0 24px; margin-top: 34px; }
  .exp-rail { margin: 0 -24px; padding: 4px 24px 6px; }
  .exp-rail > .exp-card { flex-basis: 300px; }
  .exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .exp-grid.is-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp-post-media { height: 320px; }
}

/* ---- responsive: desktop ---- */
@media (min-width: 1080px) {
  .exp-head { padding: 30px 32px 16px; }
  .exp-title { font-size: 38px; letter-spacing: -1.2px; }
  .exp-add { width: 50px; height: 50px; border-radius: 16px; }
  .exp-sec { padding: 0 32px; margin-top: 40px; }
  .exp-rail { margin: 0 -32px; padding: 4px 32px 8px; }
  .exp-rail > .exp-card { flex-basis: 320px; }
  .exp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .exp-grid.is-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp-comm.is-big .exp-cover { height: 200px; }
  .exp-posts { max-width: 620px; }
}

/* ---- landscape phones: keep the header from eating the viewport ---- */
@media (max-height: 460px) and (orientation: landscape) {
  .exp-head { position: static; padding-top: 12px; }
  .exp-title { font-size: 24px; }
  .exp-titlerow { margin-bottom: 10px; }
  .exp-add { width: 38px; height: 38px; border-radius: 12px; }
}

/* ---- composer: photo / video attachment ---- */
.dp-pickrow { display: flex; gap: 10px; margin-top: 12px; }
.dp-pick {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--white); color: var(--ink-2);
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: border-color .2s, color .2s, transform .15s, background .2s;
}
.dp-pick svg { width: 18px; height: 18px; }
.dp-pick:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-softer); }
.dp-pick:active { transform: scale(.97); }

.dp-preview {
  position: relative; margin-top: 12px; border-radius: 16px; overflow: hidden;
  background: var(--bg); min-height: 64px;
}
.dp-preview-media {
  display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover;
}
video.dp-preview-media { background: #000; }
.dp-preview-x {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(17,24,39,.62); color: #fff; backdrop-filter: blur(4px);
  transition: background .2s, transform .15s;
}
.dp-preview-x svg { width: 15px; height: 15px; }
.dp-preview-x:hover { background: rgba(17,24,39,.82); }
.dp-preview-x:active { transform: scale(.9); }
.dp-uploading {
  display: grid; place-items: center; padding: 26px 0;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
}

/* ---- profile post media (image or video) ---- */
.post-mediawrap {
  border-radius: 16px 16px 0 0; overflow: hidden; background: var(--bg);
  min-height: 120px; max-height: 360px; display: flex;
}
.post-media { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }
video.post-media { background: #000; }
.post-avatar-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }

/* ===========================================================
   PROFILE POST GRID (Instagram tarzı kare ızgara) + DETAY AKIŞI
   =========================================================== */
.pg-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  margin: 0 -20px;                      /* .screen padding'ini iptal et: kenardan kenara */
}
.pg-cell {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border: none; padding: 0; background: var(--bg); cursor: pointer;
  opacity: 0; animation: exp-rise .4s cubic-bezier(.22,1,.36,1) forwards;
  transition: filter .18s;
}
.pg-cell:hover { filter: brightness(.92); }
.pg-cell:active { filter: brightness(.85); }
.pg-cell:focus-visible { outline: 3px solid var(--purple); outline-offset: -3px; z-index: 1; }
.pg-media {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
video.pg-media { background: #000; }
/* text-only posts still need a tile */
.pg-cell.is-text {
  display: grid; place-items: center; padding: 10px;
  background: var(--purple-softer);
}
.pg-text {
  font-size: 11.5px; font-weight: 700; line-height: 1.4; color: var(--purple-deep);
  text-align: center; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}
.pg-badge {
  position: absolute; top: 7px; right: 7px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(3px);
  pointer-events: none;
}
.pg-badge svg { width: 12px; height: 12px; }
/* skeleton cells while the list loads */
.pg-cell.pg-sk {
  animation: exp-shimmer 1.4s ease-in-out infinite; opacity: 1;
  background: linear-gradient(90deg, #F1F1F6 25%, #E7E7EF 37%, #F1F1F6 63%);
  background-size: 400% 100%; cursor: default;
}

/* ---- detail feed ---- */
.pd { padding: 0 0 124px; }
.pd-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: max(14px, env(safe-area-inset-top)) 16px 12px;
  background: linear-gradient(180deg, var(--white) 76%, rgba(255,255,255,0));
}
.pd-head h2 { margin: 0; font-size: 18px; font-weight: 850; letter-spacing: -.4px; color: var(--ink); }
.pd-list { display: flex; flex-direction: column; gap: 16px; padding: 4px 16px 0; }
.pd-item { scroll-margin-top: 68px; }

/* tablet / desktop: keep the grid tight and the feed readable */
@media (min-width: 700px) {
  .pg-grid { gap: 4px; margin: 0 -24px; }
  .pd-list { max-width: 620px; margin: 0 auto; padding: 4px 24px 0; }
  .pd-head { padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 1080px) {
  .pg-grid { grid-template-columns: repeat(4, 1fr); margin: 0 -32px; }
  .pd-head { padding-left: 32px; padding-right: 32px; }
}

/* comment timestamps */
.cmt-time { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--muted-2); }
#cmt-list { max-height: 46vh; overflow-y: auto; }

/* ---- source community under the author name ---- */
.exp-post-comm {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  margin: 1px 0 1px -6px; padding: 3px 8px;
  border: none; border-radius: 8px; background: transparent;
  font-size: 12.5px; font-weight: 700; font-family: inherit;
  color: var(--purple-deep); cursor: pointer; max-width: 100%;
  transition: background .18s, transform .15s;
}
.exp-post-comm svg { width: 13px; height: 13px; flex: 0 0 auto; }
.exp-post-comm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-post-comm:hover { background: var(--purple-softer); }
.exp-post-comm:active { transform: scale(.96); }
.exp-post-comm:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }

/* ═══════════════════════════════════════════════════════════════════════
   Sprint 10.5 — ODAK GÖRÜNÜRLÜĞÜ
   Klavyeyle gezen kullanıcı NEREDE olduğunu görmek zorundadır. Tarayıcı
   varsayılan halkası pek çok yerde `outline: none` ile siliniyordu; tek
   bir kural bunu geri getirir ve marka rengiyle çizer.
   :focus-visible kullanılır — fareyle tıklayana halka ÇIKMAZ.
   ═══════════════════════════════════════════════════════════════════════ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Tıklanabilir başlık: dokunma alanı için biraz nefes. */
.fcard-sug-info h3[role="button"] { padding: 4px 0; }
