/* =========================================================
   Bakıştık — ortak stil dosyası
   Mobil öncelikli. Koyu tema varsayılan (gece otobüsü),
   açık tema sistemden ya da menüdeki Tema seçiminden (html[data-theme]).
   ========================================================= */

:root {
  color-scheme: dark light;

  /* Marka: siyah ve beyaz ağırlıklı; vurgu petrol yeşili ve altın sarısı.
     --orange / --pink adları eski stillerde kullanıldığı için korunur: ikisi de petrol vurgusudur. */
  --navy: #0b0b0c;
  --petrol: #0e7c7b;
  --petrol-deep: #0a5559;
  --gold: #f5c518;
  --orange: #35b8b2;
  --pink: #0e7c7b;
  --grad: linear-gradient(135deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  --grad-soft: linear-gradient(135deg, rgba(14, 124, 123, .22), rgba(10, 85, 89, .22));

  /* Koyu tema (varsayılan) */
  --bg: #0b0b0c;
  --bg-glow: radial-gradient(1200px 600px at 80% -10%, rgba(14, 124, 123, .16), transparent 60%);
  --surface: #161718;
  --surface-2: #202223;
  --surface-3: #2b2e30;
  --text: #ffffff;
  --text-muted: #a6abad;
  --border: rgba(255, 255, 255, .13);
  --input-bg: #121314;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .4);
  --success: #2fbf8a;
  --danger: #e5484d;
  --tabbar-bg: rgba(11, 11, 12, .9);

  /* Ölçüler */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --tap: 48px;
  --tabbar-h: 0px;
  --nav-w: 280px;
  --maxw: 640px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Açık tema: sistem açık temadaysa (ve kullanıcı Koyu'yu seçmediyse) ya da menüden Açık seçildiyse.
   İki blok aynı değerleri taşır; birini değiştirince diğerini de değiştir. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --gold: #9a7200;
    --orange: #0e7c7b;
    --grad-soft: linear-gradient(135deg, rgba(14, 124, 123, .12), rgba(10, 85, 89, .12));
    --bg: #ffffff;
    --bg-glow: radial-gradient(1200px 600px at 80% -10%, rgba(14, 124, 123, .07), transparent 60%);
    --surface: #f7f7f5;
    --surface-2: #eeeeeb;
    --surface-3: #e3e3df;
    --text: #0b0b0c;
    --text-muted: #5c6163;
    --border: rgba(11, 11, 12, .13);
    --input-bg: #ffffff;
    --shadow: 0 10px 30px rgba(11, 11, 12, .10);
    --shadow-sm: 0 4px 14px rgba(11, 11, 12, .08);
    --tabbar-bg: rgba(255, 255, 255, .92);
  }
}
:root[data-theme="light"] {
  --gold: #9a7200;
  --orange: #0e7c7b;
  --grad-soft: linear-gradient(135deg, rgba(14, 124, 123, .12), rgba(10, 85, 89, .12));
  --bg: #ffffff;
  --bg-glow: radial-gradient(1200px 600px at 80% -10%, rgba(14, 124, 123, .07), transparent 60%);
  --surface: #f7f7f5;
  --surface-2: #eeeeeb;
  --surface-3: #e3e3df;
  --text: #0b0b0c;
  --text-muted: #5c6163;
  --border: rgba(11, 11, 12, .13);
  --input-bg: #ffffff;
  --shadow: 0 10px 30px rgba(11, 11, 12, .10);
  --shadow-sm: 0 4px 14px rgba(11, 11, 12, .08);
  --tabbar-bg: rgba(255, 255, 255, .92);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-glow), var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 .75rem; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.strong { font-weight: 600; }
.hint { font-size: .85rem; color: var(--text-muted); background: var(--surface-2); padding: .6rem .8rem; border-radius: var(--radius-sm); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
[hidden] { display: none !important; }

/* ---------- Yerleşim ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.app-main {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 16px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom));
}

.page-head { margin: 8px 0 16px; }
.page-head p { color: var(--text-muted); margin: 0; }

.app-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top));
  background: var(--tabbar-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.app-header-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; background: var(--grad);
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(14, 124, 123, .35);
}
.logo-mark svg { width: 20px; height: 20px; }

/* ---------- Alt sekme menüsü ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--tabbar-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar ul {
  list-style: none; margin: 0 auto; padding: 0 8px; max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--tabbar-h); color: var(--text-muted); font-size: .72rem; font-weight: 500;
  border-radius: 14px; position: relative;
}
.tabbar a:hover { text-decoration: none; color: var(--text); }
.tabbar svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--orange); }
.tabbar a[aria-current="page"]::before {
  content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad);
}
.tabbar .tab-create .tab-plus {
  width: 44px; height: 44px; border-radius: 15px; background: var(--grad); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(14, 124, 123, .4); margin-top: -4px;
}
.tabbar .tab-create .tab-plus svg { width: 22px; height: 22px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(14, 124, 123, .35); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(14, 124, 123, .5); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .88rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn.is-loading { position: relative; }
.btn.is-loading::after {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}

.icon-btn {
  width: var(--tap); height: var(--tap); border-radius: 50%;
  display: inline-grid; place-items: center; flex: none;
  background: transparent; border: 0; color: var(--text); cursor: pointer; font-size: 1.3rem;
}
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; }

.link-btn {
  background: none; border: 0; padding: 8px 4px; min-height: 36px;
  font: inherit; font-size: .82rem; color: var(--text-muted); cursor: pointer;
}
.link-btn:hover { color: var(--text); text-decoration: underline; }

/* ---------- Formlar ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }

.field { display: grid; gap: 6px; position: relative; }
.field > span, .field-label { font-size: .88rem; font-weight: 500; color: var(--text-muted); }
.field .opt { font-weight: 400; opacity: .75; }

.input {
  width: 100%; min-height: var(--tap);
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--input-bg); color: var(--text);
  border: 1.5px solid var(--border);
  font: inherit; font-size: 16px; /* iOS yakınlaştırmayı engeller */
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--text-muted); opacity: .7; }
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(14, 124, 123, .18); }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.5; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
input[type="date"].input, input[type="time"].input { min-width: 0; }

.counter { justify-self: end; font-size: .78rem; color: var(--text-muted); }
.counter.warn { color: var(--orange); }

.check {
  display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; cursor: pointer;
  padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2);
}
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--pink); }

.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

/* ---------- Kartlar ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 14px; }
.card h2 { font-size: 1.05rem; }
.stack { display: grid; gap: 14px; }

.auth-card { margin: 24px auto; max-width: 440px; padding: 26px 22px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--text-muted); font-size: .92rem; }

/* ---------- Rozetler, çipler ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 600;
}
.badge:hover { text-decoration: none; }
.badge-premium { background: var(--grad); color: #fff; }
.badge-free { background: var(--grad-soft); color: var(--orange); border: 1px solid rgba(14, 124, 123, .35); }
.badge-free-static { background: var(--surface-2); color: var(--text-muted); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); color: var(--text);
}
.chip-city { background: var(--grad-soft); color: var(--orange); }
.chip-muted { color: var(--text-muted); }
.chip-success { background: rgba(61, 220, 151, .15); color: var(--success); }
.chip-new { background: var(--pink); color: #fff; }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-removable { padding-right: 4px; }
.chip-removable button {
  width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface-3); color: var(--text); font-size: 1rem; line-height: 1;
}

/* Durak tabelası tarzı hat rozeti */
.line-badge {
  flex: none; display: inline-flex; flex-direction: column; align-items: stretch;
  min-width: 64px; border-radius: 10px; overflow: hidden;
  background: #fff; color: var(--navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25), inset 0 0 0 2px #fff;
  border: 2px solid var(--navy);
  text-align: center;
}
.line-badge-top {
  background: var(--orange); color: #fff;
  font-size: .6rem; font-weight: 700; letter-spacing: .2em; padding: 2px 6px 1px;
}
.line-badge-num {
  font-size: 1.25rem; font-weight: 800; padding: 4px 8px 5px; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.line-badge-sm { min-width: 48px; border-radius: 8px; }
.line-badge-sm .line-badge-top { font-size: .5rem; }
.line-badge-sm .line-badge-num { font-size: .95rem; padding: 2px 6px 3px; }
.line-badge { border-color: var(--text); }

/* ---------- An kartı: otobüs bileti ---------- */
.ticket-list { display: grid; gap: 18px; }

.ticket {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: visible;
  animation: rise .35s ease both;
}
.ticket::before { /* bilet üst şeridi */
  content: ''; position: absolute; inset: 0 0 auto; height: 5px;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--grad);
}

.ticket-top { display: flex; align-items: center; gap: 14px; padding: 20px 18px 14px; }
.ticket-route { flex: 1; min-width: 0; }
.route { font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.route-arrow { color: var(--orange); font-weight: 700; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--text-muted); font-size: .82rem; margin-top: 2px; }
.ticket-top .chip-city { align-self: flex-start; }

/* Delikli yırtma çizgisi + yan çentikler */
.ticket-perf { position: relative; height: 1px; margin: 0 18px; border-top: 2px dashed var(--border); }
.ticket-perf::before, .ticket-perf::after {
  content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border);
}
.ticket-perf::before { left: -30px; clip-path: inset(0 0 0 50%); }
.ticket-perf::after { right: -30px; clip-path: inset(0 50% 0 0); }

.ticket-body { padding: 14px 18px 4px; }
.ticket-desc { font-size: .98rem; white-space: pre-line; overflow-wrap: anywhere; }
.ticket-self {
  font-size: .86rem; color: var(--text-muted); background: var(--surface-2);
  padding: 8px 12px; border-radius: var(--radius-sm); white-space: pre-line; overflow-wrap: anywhere;
}
.ticket-self strong { color: var(--text); font-weight: 600; }

.ticket-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px 6px;
}
.ticket-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.author-name { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-safety {
  display: flex; justify-content: flex-end; gap: 6px; padding: 0 14px 8px;
  border-top: 1px solid transparent;
}

/* ---------- Avatar ---------- */
.avatar {
  flex: none; position: relative; overflow: hidden; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 40px; height: 40px; font-size: .95rem; }
.avatar-md { width: 52px; height: 52px; font-size: 1.15rem; }
.avatar-xl { width: 116px; height: 116px; font-size: 2.4rem; box-shadow: var(--shadow); }
/* Eşleşmeye kadar fotoğraf bulanık */
.avatar.blurred img { filter: blur(9px) saturate(1.1); transform: scale(1.25); }
.avatar.blurred::after {
  content: '🔒'; position: absolute; right: 2px; bottom: 0; font-size: .6rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6));
}
.avatar-xl.blurred::after { font-size: 1rem; }

/* ---------- Listeler ---------- */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; min-height: 72px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); box-shadow: var(--shadow-sm);
}
a.list-item:hover { text-decoration: none; background: var(--surface-2); }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-sub { color: var(--text-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-time { color: var(--text-muted); font-size: .75rem; flex: none; align-self: flex-start; margin-top: 4px; }

.claim-card { display: grid; gap: 12px; padding: 16px 16px 6px; }
.claim-head { display: flex; align-items: center; gap: 12px; }
.claim-message {
  margin: 0; padding: 10px 14px; border-left: 3px solid var(--pink);
  background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  white-space: pre-line; overflow-wrap: anywhere; font-size: .95rem;
}
.moment-summary { display: flex; align-items: center; gap: 10px; }
.card-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.card-actions .btn { flex: 1 1 140px; }

/* ---------- Segment sekmeler ---------- */
.segments {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 4px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
}
.segments button {
  min-height: 44px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text-muted);
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.segments button[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(14, 124, 123, .3); }
.count-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--pink); color: #fff; font-size: .7rem; display: inline-grid; place-items: center;
}
.segments button[aria-selected="true"] .count-badge { background: #fff; color: var(--pink); }

/* ---------- Filtre çubuğu ---------- */
.filters {
  display: grid; gap: 10px; grid-template-columns: 1fr 1fr;
  padding: 14px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.filters .field-city { grid-column: 1 / -1; }
.filters .filter-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.filters .filter-actions .btn { flex: 1; }
@media (min-width: 560px) {
  .filters { grid-template-columns: 1.3fr 1fr 1fr; }
  .filters .field-city { grid-column: auto; }
}

/* ---------- Banner'lar ---------- */
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius-sm);
  background: var(--grad-soft); border: 1px solid rgba(14, 124, 123, .3); font-size: .9rem;
}
.banner .link-btn { color: var(--orange); font-weight: 600; }
.promo {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; margin-bottom: 18px; border-radius: var(--radius);
  background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(14, 124, 123, .3);
}
.promo p { margin: 0; font-size: .9rem; opacity: .95; }
.promo strong { display: block; font-size: 1rem; }
.promo .btn { background: #fff; color: var(--pink); flex: none; box-shadow: none; }
.promo-text { flex: 1; }

.locked {
  display: flex; gap: 14px; align-items: center; padding: 16px; margin-bottom: 18px;
  border-radius: var(--radius); background: var(--surface); border: 1.5px dashed rgba(14, 124, 123, .5);
}
.locked-icon { font-size: 1.6rem; }
.locked p { margin: 0; font-size: .9rem; }

/* ---------- Boş durum ---------- */
.empty-state {
  text-align: center; padding: 40px 20px;
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty-icon { font-size: 2.4rem; margin-bottom: 8px; }
.empty-state .btn { margin-top: 8px; }

/* ---------- İskelet ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-ticket { animation: none; }
.sk-badge { width: 64px; height: 54px; border-radius: 10px; flex: none; }
.sk-avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.sk-lines { flex: 1; display: grid; gap: 8px; }
.sk-line { height: 12px; width: 100%; }
.ticket-body .sk-line + .sk-line { margin-top: 8px; }
.skeleton-ticket .ticket-body { padding-bottom: 20px; }
.w-40 { width: 40%; } .w-60 { width: 60%; } .w-70 { width: 70%; } .w-90 { width: 90%; }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 100;
  top: calc(12px + env(safe-area-inset-top));
  width: min(92vw, 440px); display: grid; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--surface-3); color: var(--text); box-shadow: var(--shadow);
  border: 1px solid var(--border); font-size: .92rem; font-weight: 500;
  opacity: 0; transform: translateY(-12px); transition: opacity .25s, transform .25s;
  pointer-events: auto;
}
.toast.show { opacity: 1; transform: none; }
.toast-icon {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff;
}
.toast-error .toast-icon { background: var(--danger); }
.toast-success .toast-icon { background: var(--success); }
.toast-info .toast-icon { background: var(--orange); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(5, 8, 28, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s;
}
.modal-backdrop.show { opacity: 1; }
.modal {
  position: relative; width: 100%; max-width: 480px; max-height: 90dvh; overflow-y: auto;
  background: var(--surface); color: var(--text);
  border-radius: 26px 26px 0 0; padding: 26px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .35);
  transform: translateY(24px); transition: transform .25s ease;
}
.modal-backdrop.show .modal { transform: none; }
.modal-title { padding-right: 40px; }
.modal-body { display: grid; gap: 12px; margin: 8px 0 18px; }
.modal-body p { margin: 0; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--surface-2); color: var(--text); font-size: 1.4rem; cursor: pointer;
}
@media (min-width: 600px) {
  .modal-backdrop { align-items: center; }
  .modal { border-radius: 26px; }
}

.modal-premium { text-align: center; }
.modal-premium .modal-title { padding: 0 20px; }
.premium-hero {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; background: var(--grad);
  color: #fff; font-size: 1.8rem; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(14, 124, 123, .45);
}
.perk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; text-align: left; }
.perk-list li {
  display: flex; gap: 10px; align-items: center; padding: 10px 14px;
  background: var(--surface-2); border-radius: var(--radius-sm); font-size: .92rem;
}
.perk-list li::before {
  content: '✓'; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}
.perk-list li.off { color: var(--text-muted); }
.perk-list li.off::before { content: '–'; background: var(--surface-3); color: var(--text-muted); }
.price-line { font-size: 1.1rem; }
.price-line strong { font-size: 1.6rem; }

/* ---------- Sohbet ---------- */
.chat-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.chat-header { position: static; }
.chat-peer { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-tools { display: flex; gap: 2px; }
.chat-tools .link-btn { font-size: .8rem; padding: 8px; }
.chat-moment {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.chat-moment-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.messages-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.messages {
  list-style: none; margin: 0 auto; padding: 16px; max-width: var(--maxw);
  display: flex; flex-direction: column; gap: 6px;
}
.msg {
  max-width: 80%; padding: 9px 14px 6px; border-radius: 20px;
  animation: rise .2s ease both; box-shadow: var(--shadow-sm);
}
.msg-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-time { display: block; text-align: right; font-size: .68rem; opacity: .7; margin-top: 2px; }
.msg-me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.msg-them { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msg.pending { opacity: .65; }
.day-sep { align-self: center; margin: 10px 0 4px; font-size: .74rem; color: var(--text-muted); }
.day-sep span { background: var(--surface); padding: 4px 12px; border-radius: var(--radius-pill); }
.chat-intro {
  align-self: center; text-align: center; max-width: 340px; margin: 24px auto;
  padding: 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
}
.chat-intro-icon { font-size: 2rem; }
.chat-intro p { margin: 6px 0 0; }

.composer {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--tabbar-bg); border-top: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.composer-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea {
  flex: 1; min-height: var(--tap); max-height: 140px; resize: none;
  border-radius: 24px; padding: 12px 16px; line-height: 1.4;
}
.send-btn {
  width: var(--tap); height: var(--tap); flex: none; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(14, 124, 123, .4);
}
.send-btn svg { width: 22px; height: 22px; }
.chat-blocked { text-align: center; padding: 16px; color: var(--text-muted); border-top: 1px solid var(--border); }

/* ---------- Profil ---------- */
.profile-photo { display: grid; justify-items: center; gap: 10px; text-align: center; }
.profile-photo .avatar-wrap { position: relative; }
#avatar-preview.is-uploading { opacity: .5; animation: pulse 1s ease-in-out infinite alternate; }
.photo-edit {
  position: absolute; right: -2px; bottom: -2px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer;
  border: 3px solid var(--surface); box-shadow: var(--shadow-sm);
}
.photo-edit svg { width: 18px; height: 18px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; }
.kv + .kv { border-top: 1px solid var(--border); }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.button-row .btn { flex: 1 1 160px; }

/* ---------- Üyelik ---------- */
.plans { display: grid; gap: 14px; }
@media (min-width: 600px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; display: grid; gap: 12px; align-content: start; }
.plan.is-current { outline: 2px solid var(--orange); }
.plan.is-current::after {
  content: 'Mevcut planın'; position: absolute; top: -11px; right: 16px;
  background: var(--orange); color: #fff; font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: var(--radius-pill);
}
.plan-premium { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.plan-price { font-size: 2rem; font-weight: 800; line-height: 1; }
.plan-price small { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.demo-note {
  font-size: .8rem; color: var(--text-muted); text-align: center;
  padding: 10px; border-radius: var(--radius-sm); background: var(--surface-2);
}

/* ---------- Tanıtım sayfası ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--tabbar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; max-width: 1080px; }
.site-header nav { display: flex; gap: 8px; }
.landing .container { max-width: 1080px; }

.hero { padding-block: 48px 32px; display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; padding-block: 80px 56px; } }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.hero-lead { font-size: 1.08rem; color: var(--text-muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-cta .btn { flex: 1 1 180px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange); background: var(--grad-soft); padding: 6px 12px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.hero-art { position: relative; }
.hero-art .ticket { transform: rotate(-2.5deg); }
.hero-art .ticket + .ticket { transform: rotate(2deg) translate(18px, -6px); margin-top: -8px; opacity: .92; }
.hero-art .ticket-safety { display: none; }

.section { padding-block: 44px; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 28px; }
.section-head p { color: var(--text-muted); }
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: step; }
.step::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 13px; margin-bottom: 12px;
  background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.step p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.features { display: grid; gap: 14px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--grad-soft);
  display: grid; place-items: center; font-size: 1.3rem;
}
.feature p { color: var(--text-muted); margin: 0; font-size: .92rem; }
.site-footer {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .85rem; text-align: center;
}
.age-pill {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--pink); color: var(--pink); font-weight: 800; font-size: .8rem; margin-bottom: 8px;
}

/* ---------- Animasyonlar ---------- */
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { to { opacity: .8; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

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

/* Masaüstünde biraz daha ferah */
@media (min-width: 760px) {
  .app-main { padding-top: 28px; }
  .ticket-top { padding: 22px 22px 16px; }
  .ticket-body, .ticket-footer { padding-left: 22px; padding-right: 22px; }
  .ticket-perf { margin: 0 22px; }
  .ticket-perf::before { left: -34px; }
  .ticket-perf::after { right: -34px; }
}

/* ---------- Yönetim paneli ---------- */
.admin-main { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .admin-main { max-width: 860px; } }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats .card + .card { margin-top: 0; }
.stat { display: grid; gap: 2px; padding: 14px 16px; }
.stat-num { font-size: 1.7rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .8rem; color: var(--text-muted); }
.stat-alert .stat-num { color: var(--pink); }
.admin-filter { margin-bottom: 14px; max-width: 320px; }
.admin-card { display: grid; gap: 12px; }
.admin-card + .admin-card { margin-top: 0; }
.admin-card.is-resolved { opacity: .7; }
.admin-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-user-line { display: flex; align-items: center; gap: 10px; }
.admin-user-line .list-title { display: flex; align-items: center; gap: 8px; }
.admin-target { display: grid; gap: 10px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.admin-moment { display: grid; gap: 8px; }
.admin-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.admin-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-actions { justify-content: flex-start; }
.admin-actions .btn { flex: 0 1 auto; }
.admin-chat summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--orange); min-height: 36px; display: flex; align-items: center; }
.admin-messages { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; max-height: 360px; overflow-y: auto; }
.admin-messages li { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface); font-size: .9rem; }
.admin-messages li.is-reported { border-left: 3px solid var(--pink); }
.chip-danger { background: rgba(255, 90, 110, .16); color: var(--danger); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; overflow-wrap: anywhere; }
.push-end { margin-left: auto; }

/* =========================================================
   Mobil: daha küçük ve sade tipografi (≤ 600px)
   Form alanları 16px kalır (iOS odaklanınca yakınlaştırmasın)
   ========================================================= */
@media (max-width: 600px) {
  :root { --radius: 16px; }

  body { font-size: 14.5px; line-height: 1.5; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.08rem; }
  h3 { font-size: .95rem; }
  .small { font-size: .78rem; }
  .hint { font-size: .78rem; }

  .app-header { padding: 8px 14px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .logo { font-size: 1.02rem; font-weight: 700; gap: 7px; }
  .logo-mark { width: 28px; height: 28px; border-radius: 9px; box-shadow: none; }
  .logo-mark svg { width: 16px; height: 16px; }
  .badge { padding: 4px 10px; font-size: .7rem; }

  .app-main { padding: 12px 14px calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
  .page-head { margin: 4px 0 12px; }
  .page-head p { font-size: .82rem; }

  .btn { min-height: 44px; padding: 0 18px; font-size: .86rem; font-weight: 500; }
  .btn-lg { min-height: 48px; font-size: .92rem; }
  .btn-sm { min-height: 38px; padding: 0 14px; font-size: .8rem; }
  .btn-primary { box-shadow: 0 4px 12px rgba(14, 124, 123, .25); }

  .form { gap: 12px; }
  .field > span, .field-label { font-size: .78rem; }
  .input { min-height: 44px; padding: 10px 12px; }
  textarea.input { min-height: 90px; }
  .check { font-size: .8rem; padding: 8px 10px; }
  .counter { font-size: .7rem; }

  .card { padding: 14px; box-shadow: none; }
  .auth-card { margin: 12px auto; padding: 20px 16px; }
  .filters { padding: 10px; gap: 8px; margin-bottom: 14px; }
  .chip { padding: 3px 9px; font-size: .7rem; font-weight: 500; }

  /* Bilet kartı */
  .ticket-list { gap: 14px; }
  .ticket { box-shadow: 0 4px 14px rgba(3, 6, 25, .25); }
  .ticket::before { height: 3px; }
  .ticket-top { gap: 10px; padding: 14px 14px 10px; }
  .line-badge { min-width: 50px; border-radius: 8px; }
  .line-badge-top { font-size: .5rem; padding: 1px 4px; }
  .line-badge-num { font-size: 1rem; padding: 2px 6px 3px; }
  .route { font-size: .88rem; }
  .ticket-meta { font-size: .72rem; }
  .ticket-perf { margin: 0 14px; }
  .ticket-perf::before { left: -25px; }
  .ticket-perf::after { right: -25px; }
  .ticket-perf::before, .ticket-perf::after { width: 18px; height: 18px; top: -10px; }
  .ticket-body { padding: 10px 14px 2px; }
  .ticket-desc { font-size: .88rem; }
  .ticket-self { font-size: .76rem; padding: 6px 10px; }
  .ticket-footer { padding: 8px 14px 4px; }
  .author-name { font-size: .82rem; }
  .ticket-safety { padding: 0 10px 6px; }
  .link-btn { font-size: .74rem; }

  .avatar-sm { width: 34px; height: 34px; font-size: .82rem; }
  .avatar-md { width: 44px; height: 44px; font-size: 1rem; }
  .avatar-xl { width: 96px; height: 96px; font-size: 2rem; }

  /* Listeler */
  .list-item { min-height: 62px; padding: 10px 12px; gap: 10px; box-shadow: none; }
  .list-title { font-size: .88rem; }
  .list-sub { font-size: .76rem; }
  .claim-card { gap: 10px; padding: 12px 12px 4px; }
  .claim-message { font-size: .84rem; padding: 8px 12px; }
  .segments button { min-height: 38px; font-size: .78rem; }

  /* Alt menü */
  .tabbar a { font-size: .64rem; gap: 1px; }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar .tab-create .tab-plus { width: 38px; height: 38px; border-radius: 12px; box-shadow: none; }
  .tabbar .tab-create .tab-plus svg { width: 18px; height: 18px; }

  /* Banner, modal, toast */
  .banner, .promo, .locked { font-size: .8rem; padding: 10px 12px; }
  .promo strong { font-size: .88rem; }
  .promo p, .locked p { font-size: .78rem; }
  .modal { padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); }
  .modal-title { font-size: 1.08rem; }
  .toast { font-size: .82rem; padding: 10px 12px; }
  .perk-list li { font-size: .82rem; padding: 8px 12px; }
  .plan-price { font-size: 1.5rem; }

  /* Sohbet */
  .msg { padding: 7px 12px 5px; font-size: .88rem; }
  .composer textarea { min-height: 42px; padding: 10px 14px; }
  .send-btn { width: 44px; height: 44px; }

  /* Tanıtım sayfası */
  .hero { padding-block: 28px 20px; gap: 24px; }
  .hero h1 { font-size: 2rem; font-weight: 700; }
  .hero-lead { font-size: .92rem; }
  .eyebrow { font-size: .66rem; padding: 5px 10px; margin-bottom: 12px; }
  .section { padding-block: 28px; }
  .section-head { margin-bottom: 18px; }
  .section-head p, .step p, .feature p { font-size: .84rem; }
  .step::before { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 8px; font-size: .85rem; }
  .feature-icon { width: 38px; height: 38px; font-size: 1.1rem; }
  .site-header .container { min-height: 54px; }

  /* Yönetim */
  .stat { padding: 10px 12px; }
  .stat-num { font-size: 1.3rem; }
}
.segments-4 { grid-template-columns: repeat(4, 1fr); }
.admin-toolbar { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 640px) { .admin-toolbar { grid-template-columns: 1.4fr 1fr; } }
.admin-email { overflow-wrap: anywhere; }

/* ---------- Hesap silme ---------- */
.danger-zone { border-color: rgba(255, 90, 110, .35); }
.danger-zone h2 { color: var(--danger); }
.btn-danger-outline { background: transparent; color: var(--danger); border-color: rgba(255, 90, 110, .5); }
.btn-danger-outline:hover { background: rgba(255, 90, 110, .1); }
.delete-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: .88rem; color: var(--text-muted); }

/* ---------- Ödeme (Shopier) ---------- */
.pay-card { margin-top: 18px; display: grid; gap: 14px; }
.pay-steps { margin: 0; padding-left: 20px; display: grid; gap: 14px; font-size: .92rem; }
.pay-steps p { margin: 4px 0 0; }
.pay-code-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.pay-code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.25rem; font-weight: 700;
  letter-spacing: .08em; padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--grad-soft); color: var(--orange); border: 1px dashed rgba(14, 124, 123, .5);
}
.pay-footnote { margin: 0; }
.pay-waiting { margin: 0; justify-content: flex-start; }
.spinner {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid var(--orange); border-right-color: transparent; animation: spin .8s linear infinite;
}
@media (max-width: 600px) {
  .pay-steps { font-size: .84rem; gap: 12px; }
  .pay-code { font-size: 1.05rem; padding: 6px 10px; }
}
.segments-scroll { display: flex; overflow-x: auto; scrollbar-width: none; border-radius: var(--radius-pill); }
.segments-scroll::-webkit-scrollbar { display: none; }
.segments-scroll button { flex: 1 0 auto; padding: 0 14px; white-space: nowrap; }
.assign-row { flex: 1 1 100%; }

/* ---------- Ulaşım türü renkleri (rozet üst şeridi) ---------- */
.line-badge.mode-bus .line-badge-top { background: #ff8a3d; }
.line-badge.mode-metro .line-badge-top { background: #e2231a; }
.line-badge.mode-izban .line-badge-top { background: #1d5fae; }
.line-badge.mode-tram .line-badge-top { background: #0f9d58; }
.line-badge.mode-ferry .line-badge-top { background: #0094c6; }
.line-badge.mode-dolmus .line-badge-top { background: #e0a100; color: #0b0b0c; }
.line-badge.mode-place .line-badge-top { background: #8e44ad; }
.line-badge.mode-place .line-badge-num { font-size: 1.35em; }

/* ---------- Hızlı filtreler (çipler) ---------- */
.quick-filters { display: grid; gap: 8px; margin-bottom: 12px; }
.chip-row {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px; padding: 2px 16px; -webkit-overflow-scrolling: touch;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-row-inline { margin: 0; padding: 0; overflow: visible; }
.chip-row-wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.filter-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  font: inherit; font-size: .84rem; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.filter-chip:hover { border-color: rgba(14, 124, 123, .5); }
.filter-chip[aria-checked="true"], .filter-chip[aria-pressed="true"] {
  background: var(--grad); color: #fff; border-color: transparent;
}
.chip-row-wrap .filter-chip { min-height: 44px; }

.more-filters { margin-bottom: 16px; }
.more-filters summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  min-height: 40px; font-size: .86rem; font-weight: 600; color: var(--text-muted);
}
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary::before { content: '▸'; transition: transform .15s; }
.more-filters[open] summary::before { transform: rotate(90deg); }
.more-filters .filters { margin: 8px 0 0; }

/* ---------- Akış ---------- */
.feed-group {
  margin: 8px 0 -4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
}
.ticket-linename { font-size: .78rem; color: var(--text-muted); margin-top: 1px; overflow-wrap: anywhere; }
.ticket-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.share-btn { width: 40px; height: 40px; font-size: 1.1rem; color: var(--text-muted); }
.share-btn:hover { color: var(--orange); }
.field-hint { font-size: .76rem; color: var(--text-muted); }

@media (max-width: 600px) {
  .filter-chip { min-height: 34px; padding: 0 12px; font-size: .78rem; }
  .chip-row { margin: 0 -14px; padding: 2px 14px; }
  .chip-row-inline, .chip-row-wrap { margin: 0; padding: 0; }
  .ticket-linename { font-size: .72rem; }
  .share-btn { width: 36px; height: 36px; }
}

/* ---------- Herkese açık an sayfası ---------- */
.public-moment { max-width: 560px; padding-top: 24px; padding-bottom: 48px; }
.public-cta { margin-top: 18px; display: grid; gap: 12px; text-align: center; }
.public-cta:empty { display: none; }
.public-cta .button-row { justify-content: center; }
.public-note { text-align: center; margin-top: 18px; }

/* ---------- Tanıtım: İzmir ulaşım ağı ---------- */
.transit-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .transit-grid { grid-template-columns: repeat(3, 1fr); } }
.transit-grid .card + .card { margin-top: 0; }
.transit-card { display: grid; gap: 2px; align-content: start; }
.transit-card strong { font-size: 1.15rem; }
.transit-card span:last-child { font-size: .82rem; color: var(--text-muted); }
.transit-icon { font-size: 1.5rem; margin-bottom: 4px; }

/* ---------- Hat sayfaları ---------- */
.line-page { padding-top: 20px; padding-bottom: 40px; max-width: 760px; }
.breadcrumb { color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-muted); }
.line-hero { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.line-hero .line-badge { min-width: 74px; }
.line-hero .line-badge-num { font-size: 1.5rem; }
.line-hero .eyebrow { margin-bottom: 8px; }
.line-hero h1 { font-size: clamp(1.4rem, 5vw, 2rem); }
.line-hero-name { display: block; font-size: .6em; font-weight: 600; color: var(--text-muted); margin-top: 4px; }
.line-cta { margin-bottom: 22px; }
.line-section { margin-bottom: 24px; }
.line-section h2 { font-size: 1.05rem; margin-bottom: 12px; }
.stops summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.stop-list { margin: 8px 0; padding-left: 22px; columns: 2; column-gap: 24px; font-size: .88rem; }
.stop-list li { break-inside: avoid; padding: 2px 0; }
.stop-list-plain { list-style: disc; }
.line-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(14, 124, 123, .5); text-underline-offset: 2px; }
.line-search { margin-bottom: 18px; }
.line-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.line-index a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 56px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: .86rem;
}
.line-index a:hover { text-decoration: none; border-color: rgba(14, 124, 123, .5); }
.line-index .line-badge { flex: none; }
@media (max-width: 600px) {
  .stop-list { columns: 1; font-size: .82rem; }
  .line-hero .line-badge { min-width: 60px; }
  .line-hero .line-badge-num { font-size: 1.2rem; }
  .line-index { grid-template-columns: 1fr; }
}

/* =========================================================
   Sosyal katman: nabız, canlı akış, trend hatlar, beğeni, yorum
   ========================================================= */
.greeting { margin: 0 0 2px; font-size: .9rem; font-weight: 600; color: var(--orange) !important; }

/* Nabız: istatistik kutuları */
.pulse { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.pulse-tile {
  display: grid; gap: 2px; padding: 12px 12px 10px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  animation: rise .35s ease both;
}
.pulse-tile strong {
  font-size: 1.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pulse-tile span { font-size: .74rem; color: var(--text-muted); line-height: 1.25; }
.pulse-tile:nth-child(2) { animation-delay: .06s; }
.pulse-tile:nth-child(3) { animation-delay: .12s; }

/* Canlı akış şeridi */
.ticker {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 12px; margin-bottom: 16px;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); overflow: hidden;
}
.live-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: live 1.8s ease-out infinite;
}
.ticker-label { flex: none; font-size: .64rem; font-weight: 800; letter-spacing: .14em; color: var(--success); }
.ticker-track { flex: 1; min-width: 0; }
.ticker-item {
  width: 100%; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px;
  background: none; border: 0; color: var(--text); font: inherit; font-size: .84rem; text-align: left; cursor: pointer;
  border-radius: var(--radius-pill); animation: tick-in .45s cubic-bezier(.2, .8, .2, 1) both;
}
.ticker-item:hover { background: var(--surface-2); }
.ticker-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-time { flex: none; font-size: .72rem; color: var(--text-muted); }

/* Trend hatlar */
.section-title { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.trending { margin-bottom: 16px; }
.trend-row { gap: 10px; padding-bottom: 4px; }
.trend-card {
  position: relative; flex: none; display: grid; justify-items: center; gap: 6px;
  padding: 12px 12px 8px; min-width: 78px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font: inherit; cursor: pointer; transition: transform .15s, border-color .15s;
}
.trend-card:hover { transform: translateY(-2px); border-color: rgba(14, 124, 123, .5); }
.trend-card[aria-pressed="true"] { border-color: transparent; background: var(--grad-soft); box-shadow: inset 0 0 0 2px var(--pink); }
.trend-rank {
  position: absolute; top: -7px; right: -5px; padding: 1px 6px; border-radius: var(--radius-pill);
  background: var(--grad); color: #fff; font-size: .62rem; font-weight: 800;
}
.trend-count { font-size: .72rem; font-weight: 600; color: var(--text-muted); }

/* Akış sekmeleri */
.feed-tabs { margin-bottom: 12px; }

/* Yeni an bildirimi */
.new-pill {
  position: sticky; top: calc(70px + env(safe-area-inset-top)); z-index: 15; display: flex; margin: 0 auto 12px;
  padding: 10px 18px; border: 0; border-radius: var(--radius-pill); background: var(--grad); color: #fff;
  font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px rgba(14, 124, 123, .4);
  animation: rise .35s ease both;
}

/* Eşleşmiş an ve vurgulama */
.ticket.is-matched::before { background: linear-gradient(135deg, #3ddc97, #1fb6ff); }
.ticket.flash { animation: flash 1.4s ease; }
.matched-banner { margin: 0; }

/* Beğeni + yorum çubuğu */
.social { padding: 0 12px 8px; }
.social-bar { display: flex; gap: 6px; border-top: 1px solid var(--border); padding-top: 6px; }
.social-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px;
  padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted);
  font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s;
}
.social-btn:hover { background: var(--surface-2); color: var(--text); }
.social-btn[aria-pressed="true"] { color: var(--pink); }
.social-btn[aria-expanded="true"] { color: var(--orange); background: var(--surface-2); }
.social-icon { font-size: 1.05rem; filter: grayscale(.9); opacity: .8; transition: filter .15s, transform .2s; }
.social-btn[aria-pressed="true"] .social-icon, .social-btn[aria-expanded="true"] .social-icon, .social-btn:hover .social-icon { filter: none; opacity: 1; }
.social-num { font-variant-numeric: tabular-nums; }
.like-btn.pop .social-icon { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.social-counts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 8px; }

.avatar-xs { width: 30px; height: 30px; font-size: .75rem; }
.avatar-xs.blurred::after { font-size: .45rem; }

@keyframes live { to { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } }
@keyframes tick-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-10deg); } 100% { transform: scale(1); } }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 3px var(--pink), var(--shadow); } }

@media (prefers-reduced-motion: reduce) {
  .live-dot, .ticker-item, .like-btn.pop .social-icon, .ticket.flash, .pulse-tile { animation: none; }
}

@media (max-width: 600px) {
  .pulse { gap: 8px; }
  .pulse-tile { padding: 10px 10px 8px; }
  .pulse-tile strong { font-size: 1.25rem; }
  .pulse-tile span { font-size: .66rem; }
  .ticker-item { font-size: .78rem; }
  .ticker-label { display: none; }
  .trend-card { min-width: 68px; padding: 10px 10px 6px; }
  .social { padding: 0 8px 6px; }
  .social-btn { font-size: .78rem; min-height: 36px; }
}

/* =========================================================
   v3: Duvar, bildirimler, profil, "şu an yolda", hikâyeler, sohbet
   ========================================================= */

/* Başlık: zil + üyelik rozeti */
.header-actions { display: flex; align-items: center; gap: 6px; }
.bell { position: relative; color: var(--text); }
.bell-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--pink); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}

/* Hazır avatarlar */
.avatar-preset span { font-size: 1.25em; line-height: 1; }
.avatar-preset.avatar-xl span { font-size: 3.2rem; }
.avatar-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin: 10px 0 14px; }
.avatar-choice {
  padding: 3px; border-radius: 50%; border: 2px solid transparent; background: none; cursor: pointer;
  display: grid; place-items: center; transition: transform .15s, border-color .15s;
}
.avatar-choice:hover { transform: scale(1.08); }
.avatar-choice[aria-checked="true"] { border-color: var(--pink); }
.profile-photo { text-align: center; }
.profile-link { color: inherit; }
.profile-link:hover { text-decoration: none; }
.author-name .profile-link:hover { text-decoration: underline; }

/* Uyarı şeritleri */
.trial-banner.trial-urgent { border-color: rgba(255, 90, 110, .5); background: rgba(255, 90, 110, .12); }
.follow-banner, .follow-line { margin-bottom: 12px; }
.follow-line { margin-top: -4px; }
.wall-note { text-align: center; margin: 2px 0 0; }

/* Şu an yolda */
.presence {
  margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.presence-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.presence-head .section-title { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--text); }
.presence-empty { margin: 2px 0 0; }
.presence-streak { margin: 2px 0 0; color: var(--gold); font-weight: 600; }
.presence-row { margin-top: 10px; gap: 8px; }
.presence-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font: inherit; cursor: pointer;
}
.presence-chip:hover { border-color: rgba(61, 220, 151, .6); }
.presence-count { font-weight: 800; font-size: .9rem; color: var(--success); font-variant-numeric: tabular-nums; }
.presence-count::before { content: "\25CF"; font-size: .6rem; margin-right: 4px; vertical-align: 2px; }

/* Akış sekmeleri (4 sekme) */
.feed-tabs { grid-template-columns: repeat(4, 1fr); }
.feed-tabs button { font-size: .8rem; padding: 0 4px; }
.segments-2 { grid-template-columns: repeat(2, 1fr); }
.count-muted { background: var(--surface-3); color: var(--text-muted); }
.count-muted:empty { display: none; }

/* Sosyal çubuk (yalnızca beğeni) */
.social-bar { align-items: center; justify-content: space-between; }
.social-bar .like-btn { flex: none; }
.social-note { padding-right: 6px; text-align: right; }

/* Haftanın anları */
.weekly { padding: 14px; }
.weekly-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.weekly-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.weekly-item:hover { background: var(--surface-2); }
.weekly-medal { font-size: 1.3rem; }
.weekly-text { flex: 1; min-width: 0; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weekly-likes { flex: none; font-size: .8rem; font-weight: 700; color: var(--pink); }

/* Duvar */
.post-list { display: grid; gap: 12px; }
.post {
  padding: 14px 16px 8px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); animation: rise .3s ease both;
}
.post-head { display: flex; align-items: center; gap: 10px; }
.post-who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.post-who strong { font-size: .92rem; }
.post-text { margin: 10px 0 6px; font-size: .96rem; white-space: pre-line; overflow-wrap: anywhere; }
.post-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 4px; }
.post-tools .link-btn { font-size: .74rem; }
.post-foot .like-btn { flex: none; }
.post-composer { display: grid; gap: 10px; padding: 14px; }
.post-composer-top { display: flex; gap: 10px; align-items: flex-start; }
.post-composer .composer-input { flex: 1; min-height: 64px; resize: vertical; }
.post-composer-bar { display: flex; align-items: center; gap: 10px; }
.post-composer-bar .input-sm { flex: 1; min-height: 40px; padding-top: 6px; padding-bottom: 6px; font-size: .84rem; }
.post-composer-bar .counter { flex: none; }

/* Kavuşma hikâyeleri */
.story { padding: 14px 16px; border-left: 4px solid var(--success); }
.story-head { display: flex; align-items: center; gap: 10px; }
.story-avatars { display: flex; }
.story-avatars .avatar + .avatar { margin-left: -12px; box-shadow: 0 0 0 2px var(--surface); }
.story-who { flex: 1; display: grid; line-height: 1.25; }
.story-text { margin: 10px 0 0; font-style: italic; white-space: pre-line; overflow-wrap: anywhere; }
.story-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 8px 16px; font-size: .82rem; background: var(--grad-soft); border-bottom: 1px solid var(--border);
}
.story-bar .link-btn { color: var(--orange); font-weight: 600; }

/* Profil sayfası */
.user-head { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 24px 18px; margin-bottom: 14px; }
.user-head h1 { margin: 8px 0 0; font-size: 1.5rem; }
.user-head p { margin: 0; }
.user-bio { max-width: 420px; white-space: pre-line; overflow-wrap: anywhere; }
.user-stats { display: flex; gap: 22px; margin: 8px 0; }
.user-stat { display: grid; }
.user-stat strong { font-size: 1.2rem; font-weight: 800; }
.user-stat span { font-size: .74rem; color: var(--text-muted); }
.user-lines { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.user-actions { justify-content: center; }
.badge-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
#my-badges .badge-list { justify-content: flex-start; }
.user-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: .76rem; font-weight: 600; background: var(--grad-soft); border: 1px solid rgba(14, 124, 123, .25);
}

/* Bildirimler */
.notif-text { font-size: .9rem; white-space: normal; }
.list-item.is-unread { border-color: rgba(14, 124, 123, .45); background: linear-gradient(90deg, rgba(14, 124, 123, .08), var(--surface) 60%); }
.list-item.is-unread .list-title { font-weight: 800; }
.unread-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.line-news { margin-bottom: 14px; }
.line-news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.line-news-item { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--radius-sm); color: var(--text); }
.line-news-item:hover { background: var(--surface-2); text-decoration: none; }
.line-news-text { flex: 1; min-width: 0; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sohbet: yazıyor, görüldü, tepkiler, buz kırıcılar */
.chat-status.is-typing { color: var(--success); font-weight: 600; }
.msg { position: relative; }
.msg-seen { font-weight: 700; }
.msg-reactions {
  position: absolute; bottom: -12px; display: flex; gap: 1px; padding: 1px 5px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: .78rem; line-height: 1.4;
}
.msg-me .msg-reactions { right: 8px; }
.msg-them .msg-reactions { left: 8px; }
.msg:has(.msg-reactions) { margin-bottom: 14px; }
.reaction-picker {
  position: absolute; z-index: 5; bottom: calc(100% + 4px); display: flex; gap: 2px; padding: 4px;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: rise .15s ease both;
}
.msg-me .reaction-picker { right: 0; }
.msg-them .reaction-picker { left: 0; }
.reaction-picker button {
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 1.15rem; cursor: pointer;
}
.reaction-picker button:hover, .reaction-picker button.on { background: var(--surface-3); }
.icebreakers { padding: 8px 16px 0; margin: 0; }
.icebreakers .filter-chip { font-size: .78rem; }

/* Tanıtım */
.modal-onb .modal-body { text-align: center; }
.onb { display: grid; gap: 10px; }
.onb h2 { margin: 0; }
.onb-hero { font-size: 3rem; }
.onb-gift { display: grid; gap: 4px; padding: 12px; border-radius: var(--radius-sm); background: var(--grad-soft); border: 1px solid rgba(14, 124, 123, .35); }
.onb-lines { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.onb .avatar-grid { grid-template-columns: repeat(4, 1fr); justify-items: center; }
.onb .perk-list { text-align: left; }
.onb-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; }
.onb-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); }
.onb-dots span.on { width: 22px; border-radius: 4px; background: var(--grad); }

@media (max-width: 600px) {
  .feed-tabs button { font-size: .72rem; min-height: 40px; }
  .avatar-grid { grid-template-columns: repeat(6, 1fr); }
  .social-note { font-size: .68rem; }
  .post { padding: 12px 12px 6px; }
  .post-text { font-size: .88rem; }
  .presence { padding: 10px 12px; }
  .presence-head .btn-sm { min-height: 34px; padding: 0 12px; font-size: .76rem; }
  .user-stats { gap: 16px; }
}

/* =========================================================
   v4: arama, anket, kaydet, görsel paylaşım
   ========================================================= */
.search-box { display: block; margin-bottom: 10px; }
.search-box .input { min-height: 44px; border-radius: var(--radius-pill); padding-left: 18px; }

/* Anket */
.poll { display: grid; gap: 8px; margin: 4px 0 10px; }
.poll-option {
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm); border: 1.5px solid rgba(14, 124, 123, .5);
  background: transparent; color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer;
  transition: background .15s;
}
.poll-option:hover { background: var(--grad-soft); }
.poll-option:disabled { opacity: .6; cursor: default; }
.poll-result {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--surface-2);
}
.poll-fill { position: absolute; inset: 0 auto 0 0; background: var(--grad-soft); transition: width .5s ease; }
.poll-result.is-mine .poll-fill { background: linear-gradient(135deg, rgba(14, 124, 123, .35), rgba(14, 124, 123, .35)); }
.poll-label, .poll-pct { position: relative; font-weight: 600; }
.poll-result.is-mine .poll-label { color: var(--pink); }
.poll-pct { font-variant-numeric: tabular-nums; }
.poll-total { margin-top: -2px; }
.poll-editor { display: grid; gap: 8px; padding-left: 50px; }
.poll-editor .input-sm { min-height: 40px; font-size: .88rem; }
.poll-editor .link-btn { justify-self: start; color: var(--orange); font-weight: 600; }
.post-composer-bar .btn-ghost[aria-pressed="true"] { background: var(--grad-soft); border-color: rgba(14, 124, 123, .5); }

/* Kaydet */
.save-btn { width: 40px; height: 40px; font-size: 1.05rem; filter: grayscale(1); opacity: .55; }
.save-btn[aria-pressed="true"] { filter: none; opacity: 1; }
.saved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.saved-list li { display: flex; align-items: center; gap: 4px; }
.saved-list .line-news-item { flex: 1; min-width: 0; }

/* Görsel paylaşım */
.share-preview { display: grid; place-items: center; margin-bottom: 8px; }
.share-preview img { width: min(240px, 60vw); aspect-ratio: 9 / 16; border-radius: 16px; box-shadow: var(--shadow); }
.share-skeleton { width: min(240px, 60vw); aspect-ratio: 9 / 16; border-radius: 16px; }
.modal-share .modal-body { text-align: center; }
.story-foot { display: flex; justify-content: flex-end; margin-top: 6px; }
.story-foot .link-btn { color: var(--orange); font-weight: 600; }

@media (max-width: 600px) {
  .poll-editor { padding-left: 0; }
  .save-btn { width: 36px; height: 36px; }
  .post-composer-bar { flex-wrap: wrap; }
  .post-composer-bar .input-sm { flex-basis: 100%; }
}

/* =========================================================
   v5: sayfalama, "Bu bendim" sayacı, An Oluştur önizlemesi
   ========================================================= */
.load-more { margin-top: 4px; }
.claim-count { color: var(--pink); font-weight: 600; padding-right: 6px; text-align: right; }
.create-preview { display: grid; gap: 10px; padding-top: 6px; border-top: 1px dashed var(--border); }
.create-preview .section-title { margin: 0; }
.create-preview .ticket { animation: none; }
.preview-empty { text-align: center; padding: 18px 0; }

/* ---------- Yol arkadaşları (bakis.html) ---------- */
.glance-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.glance-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.glance-root { max-width: 520px; margin: 0 auto; }
.glance-loading { text-align: center; padding: 48px 0; }
.glance-card { display: grid; gap: 12px; border-radius: 24px; }
.glance-photo { display: flex; justify-content: center; padding-top: 4px; }
.glance-name { display: flex; align-items: center; gap: 8px; font-size: 1.4rem; margin: 0; }
.glance-common { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--grad-soft); color: var(--orange); font-weight: 600; font-size: .9rem; }
.glance-prompt { padding: 14px; border-radius: 14px; background: var(--surface-2); display: grid; gap: 4px; }
.glance-actions { display: flex; justify-content: space-evenly; align-items: center; padding: 16px 0 8px; }
.glance-action-wrap { display: grid; justify-items: center; gap: 4px; }
.glance-action { width: 60px; height: 60px; border-radius: 50%; border: 0; font-size: 1.5rem; cursor: pointer; color: #fff; background: var(--surface-3); box-shadow: var(--shadow); transition: transform .12s; }
.glance-action:hover:not(:disabled) { transform: scale(1.06); }
.glance-action:disabled { opacity: .5; cursor: default; }
.glance-action.is-pass { color: var(--text); }
.glance-action.is-super { width: 52px; height: 52px; font-size: 1.25rem; background: #1d9bf0; }
.glance-action.is-glance { width: 72px; height: 72px; font-size: 1.8rem; background: var(--pink); }
.glance-setup { background: var(--grad); color: #fff; border-radius: 24px; padding: 24px; display: grid; gap: 10px; }
.glance-setup h2, .glance-setup p { margin: 0; color: #fff; }
.glance-setup .btn { justify-self: start; background: transparent; color: #fff; border: 1px solid #fff; }
.glance-match { display: flex; justify-content: center; margin-bottom: 12px; }
.glance-match .avatar + .avatar { margin-left: -16px; }
.glance-age { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; cursor: pointer; }
.check-row input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--orange); }
.danger-link { color: var(--danger); margin-top: 12px; }
.chat-earlier { display: block; margin: 8px auto; }
.chat-earlier[hidden] { display: none; }

/* =========================================================
   Sol menü (gizlenebilir), tema seçimi ve yeni sayfalar:
   İzmir, Öneriler, Nereye gitsem, Kitap & Film, Yardım
   ========================================================= */

/* Alt sekme menüsü kaldırıldı: tüm bölümler sol menüde (js/shell.js) */
.tabbar { display: none; }
.app-main { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }

.nav-toggle {
  flex: none; width: 42px; height: 42px; margin-right: 4px; border: 0; border-radius: 12px;
  background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; position: relative;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .nav-dot {
  position: absolute; top: 7px; right: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--bg);
}
.app-header-inner > .logo { margin-right: auto; }

.side-nav {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(var(--nav-w), 86vw);
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(10px + env(safe-area-inset-top)) 10px calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-102%); visibility: hidden;
  transition: transform .22s ease, visibility .22s;
}
body.nav-open .side-nav { transform: none; visibility: visible; }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

.nav-me { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; color: var(--text); border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.nav-me:hover { text-decoration: none; }
.nav-me-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-me-sub { font-size: .8rem; color: var(--text-muted); }
.nav-me-sub.is-premium { color: var(--gold); font-weight: 600; }

.nav-link {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 46px; padding: 0 14px;
  border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text);
  font: inherit; font-size: .93rem; font-weight: 500; text-align: left; cursor: pointer;
}
.nav-link:hover { text-decoration: none; background: var(--surface-2); }
.nav-link svg { flex: none; width: 22px; height: 22px; color: var(--text-muted); }
.nav-link[aria-current="page"] { background: var(--grad-soft); font-weight: 700; }
.nav-link[aria-current="page"] svg { color: var(--orange); }
.nav-link .nav-label { flex: 1; }
.nav-link .nav-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold); color: #0b0b0c;
  font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.nav-link .nav-caret { transition: transform .2s ease; }
.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-link.is-danger, .nav-link.is-danger svg { color: var(--danger); }
.nav-sub { display: grid; padding: 2px 0 6px; }
.nav-sub a { padding: 8px 14px 8px 50px; color: var(--text); font-size: .88rem; border-radius: var(--radius-pill); }
.nav-sub a:hover { text-decoration: none; background: var(--surface-2); }
.nav-sub a.is-all { color: var(--orange); font-weight: 600; }
.nav-sep { height: 1px; background: var(--border); margin: 8px 4px; }
.nav-theme { padding: 4px 10px 0; }
.nav-theme-title { font-size: .75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.nav-theme .segments { margin: 0; }
.nav-theme .segments button[aria-pressed="true"] { background: var(--grad); color: #fff; }

/* Geniş ekranda menü içeriğin yanında durur; ☰ ile gizlenir */
@media (min-width: 1100px) {
  .nav-backdrop { display: none; }
  body.nav-open .app-header, body.nav-open .app-main { margin-left: var(--nav-w); }
  body.nav-open .app-main { max-width: none; }
  body.nav-open .app-main > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
  .app-header, .app-main { transition: margin-left .22s ease; }
}

/* Akış sekmeleri üstte: başlığın hemen altına yapışır */
.feed-tabs { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 15; box-shadow: var(--shadow-sm); }

/* ---------- İzmir / Öneriler / Nereye gitsem ---------- */
.group-title { font-size: .95rem; font-weight: 700; margin: 18px 0 8px; }
.district-row { align-items: center; }
.district-mark {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.district-meta { color: var(--gold); font-size: .76rem; font-weight: 600; }
.spot { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.spot-icon { font-size: 1.4rem; flex: none; }
.spot-name { font-weight: 600; }
.spot-note { color: var(--text-muted); font-size: .84rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-between p { margin: 0; }

.place-card, .quote-card { display: grid; gap: 10px; }
.place-head, .quote-head { display: flex; align-items: center; gap: 10px; }
.place-head .list-main { min-width: 0; }
.card-menu { margin-left: auto; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: .78rem; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.card-menu:hover { background: var(--surface-2); color: var(--text); }
.star-btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
  border: 0; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: .84rem; cursor: pointer;
}
.star-btn .star { color: var(--gold); font-size: 1rem; }
.star-btn .star::before { content: '☆'; }
.star-btn[aria-pressed="true"] { background: rgba(245, 197, 24, .16); font-weight: 600; }
.star-btn[aria-pressed="true"] .star::before { content: '★'; }
.star-btn .num { font-weight: 700; color: var(--text-muted); }

.pick-card { display: grid; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--grad); color: #fff; margin-top: 14px; }
.pick-card .pick-icon { font-size: 2.4rem; line-height: 1; }
.pick-card h2 { margin: 0; color: #fff; }
.pick-card p { margin: 0; }
.pick-card .pick-meta { opacity: .85; font-size: .9rem; }
.pick-card .pick-member { color: #f5c518; font-weight: 600; font-size: .84rem; }

/* ---------- Kitap & Film ---------- */
.quote-text { margin: 0; padding-left: 12px; border-left: 3px solid var(--gold); font-style: italic; font-size: 1.02rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.quote-photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; }
.quote-work {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 12px;
  background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.quote-work:hover { background: var(--surface-3); }
.quote-work-icon { font-size: 1.3rem; }
.quote-work-title { font-weight: 600; font-size: .9rem; }
.quote-work-creator { color: var(--text-muted); font-size: .78rem; }
.photo-preview { position: relative; }
.photo-preview img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 14px; }
.photo-preview button { position: absolute; top: 8px; right: 8px; }
.form-stack { display: grid; gap: 14px; }

/* ---------- Yardım ---------- */
.faq { border-radius: 14px; background: var(--surface-2); padding: 0 14px; }
.faq + .faq { margin-top: 8px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { color: var(--text-muted); font-size: .9rem; padding-bottom: 14px; margin: 0; }

/* ---------- An Oluştur: "Neredeydin?" (toplu taşıma / mekan) ---------- */
.kind-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2, var(--surface));
  color: inherit; font: inherit; cursor: pointer; min-height: 44px;
}
.kind-btn[aria-checked="true"] { border: 2px solid #0e7c7b; background: rgba(14, 124, 123, .14); padding: 13px; }
.kind-btn .kind-icon { font-size: 1.6rem; line-height: 1.2; }
#place-fields, #transit-fields { display: contents; }
#place-fields[hidden], #transit-fields[hidden] { display: none; }

/* "O da seni arıyor olabilir" */
.echo-slot:empty { display: none; }
.echo-slot { display: grid; gap: 8px; margin-bottom: 12px; }
.echo-item {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px;
  background: var(--surface-2, var(--surface)); color: inherit; text-decoration: none;
}
.echo-text { flex: 1; min-width: 0; font-size: .85rem; }
.echo-go { font-weight: 700; font-size: .85rem; white-space: nowrap; }

/* ---------- Tanıtım sayfası: canlı an önizlemesi ---------- */
.live-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.preview-ticket { display: block; color: inherit; text-decoration: none; }
.preview-ticket .ticket-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.live-cta { text-align: center; margin-top: 18px; }

/* ---------- Akış: sıcak noktalar ve karışık akış ---------- */
.hotspot-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 96px; }
.hotspot-invite {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px;
  background: var(--surface-2); color: inherit; text-decoration: none; font-size: .9rem;
}
.feed-extra { margin: 4px 0; }

/* "Ben de oradaydım": beğeniyle yan yana; dar ekranda alt satıra geçer */
.social-bar { flex-wrap: wrap; justify-content: flex-start; }
.social-bar .witness-btn { flex: none; }
.social > .social-note { display: block; padding-top: 4px; }

/* ---------- İlçe sayfaları ---------- */
.spot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.district-links { line-height: 2; }

/* ---------- Günün sorusu ---------- */
.daily { display: grid; gap: 6px; margin-bottom: 12px; }
.daily-label { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .05em; color: #0e7c7b; }
.daily-q { margin: 0; font-weight: 600; font-size: 1.05rem; }
.daily-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- Buluşma noktaları ---------- */
.plan-invite { margin-bottom: 12px; }
#plan-form { margin-top: 12px; }
#plan-filter { margin: 14px 0 10px; }
#plan-incoming { margin-top: 14px; display: grid; gap: 12px; }
.plan-join { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
