/* ============================================================================
   components/community/community.css — UNIO Community Experience
   Beyaz baskın yüzey, mor vurgu, ferah boşluk. Tokenlar style.css'ten gelir.
   Ölçüler tek yerde tanımlı; her ekran aynı ritmi paylaşıyor.
   ============================================================================ */

.c-screen { padding: 0 0 110px; background: var(--white); min-height: 100%; }

/* ------------------------------------------------------------- alt başlık */
.c-subhead {
  position: sticky; top: 0; z-index: 14;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.c-subhead-t { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.c-subhead h2 { font-size: 18px; font-weight: 800; color: var(--ink); }
.c-subhead-t span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- başlık */
.c-head { position: relative; }
.c-cover { position: relative; height: 168px; overflow: hidden; }
.c-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-cover.g1 { background: linear-gradient(135deg, #7C4DFF, #5B2BEA); }
.c-cover.g2 { background: linear-gradient(135deg, #FF7A59, #FF4D8D); }
.c-cover.g3 { background: linear-gradient(135deg, #22C1C3, #1A8FE3); }
.c-cover.g4 { background: linear-gradient(135deg, #F7971E, #FFD200); }
.c-cover.g5 { background: linear-gradient(135deg, #34D399, #059669); }

.c-back, .c-cover-tools { position: absolute; top: 14px; }
.c-back { left: 14px; }
.c-cover-tools { right: 14px; display: flex; gap: 8px; }
.c-back, .c-cover .c-ic {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(17, 24, 39, .45); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .16s ease, transform .16s ease;
}
.c-back:hover, .c-cover .c-ic:hover { background: rgba(17, 24, 39, .62); }
.c-back:active, .c-cover .c-ic:active { transform: scale(.92); }
.c-back svg, .c-cover .c-ic svg { width: 20px; height: 20px; }

.c-head-body { padding: 0 18px 18px; }
.c-av {
  /* .c-cover position:relative olduğu için kendi yığın bağlamını kuruyor ve
     statik konumlu avatarın üstüne boyanıyordu -> avatarın üst yarısı kırpık
     görünüyordu. Avatarı da yığına alıp öne çıkarıyoruz. */
  position: relative; z-index: 1;
  width: 84px; height: 84px; margin: -42px 0 12px;
  border-radius: 26px; border: 4px solid var(--white);
  display: grid; place-items: center; overflow: hidden;
  color: #fff; font-weight: 800; font-size: 26px;
  box-shadow: var(--shadow-sm);
}
.c-av.g1 { background: linear-gradient(135deg, #7C4DFF, #5B2BEA); }
.c-av.g2 { background: linear-gradient(135deg, #FF7A59, #FF4D8D); }
.c-av.g3 { background: linear-gradient(135deg, #22C1C3, #1A8FE3); }
.c-av.g4 { background: linear-gradient(135deg, #F7971E, #FFD200); }
.c-av.g5 { background: linear-gradient(135deg, #34D399, #059669); }
.c-av img { width: 100%; height: 100%; object-fit: cover; }

.c-name {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.2;
}
.c-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.c-chip {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--purple-soft); color: var(--purple-deep);
}
.c-chip.soft { background: var(--bg); color: var(--muted); }
.c-meta-i { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 600; }
.c-meta-i svg { width: 15px; height: 15px; }

.c-desc { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }

.c-stats { display: flex; gap: 24px; margin-top: 16px; }
.c-stat { display: flex; flex-direction: column; }
.c-stat b { font-size: 19px; font-weight: 800; color: var(--ink); }
.c-stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.c-stat.online b { color: #16A34A; }

.c-founded { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.c-founder {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.c-founder img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

.c-rules-peek {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg);
  font: inherit; font-size: 13.5px; color: var(--ink-2); text-align: left; cursor: pointer;
}
.c-rules-peek span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-rules-peek svg { width: 17px; height: 17px; color: var(--purple); flex: 0 0 auto; }

.c-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* --------------------------------------------------------------- butonlar */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 20px; border: 0; border-radius: 14px;
  font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: transform .16s ease, opacity .16s ease, background .16s ease;
}
.c-btn svg { width: 17px; height: 17px; }
.c-btn.primary { background: var(--grad); color: #fff; flex: 1 1 auto; }
.c-btn.ghost { background: var(--purple-softer); color: var(--purple-deep); }
.c-btn.danger { background: #FEF2F2; color: #DC2626; }
.c-btn.wide { width: 100%; }
.c-btn.sm { padding: 9px 15px; font-size: 13px; }
.c-btn:active { transform: scale(.97); }
.c-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.c-btn.is-busy { position: relative; color: transparent; pointer-events: none; }
.c-btn.is-busy::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: feed-spin .7s linear infinite;
}
.c-btn.ghost.is-busy::after, .c-btn.danger.is-busy::after {
  border-color: rgba(124, 77, 255, .35); border-top-color: var(--purple);
}
.c-pill {
  margin-left: 6px; min-width: 19px; height: 19px; padding: 0 5px;
  display: inline-grid; place-items: center; border-radius: 10px;
  background: var(--purple); color: #fff; font-size: 11px; font-weight: 800;
}

.c-ic {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer;
  transition: background .16s ease;
}
.c-ic:hover { background: var(--purple-softer); }
.c-ic svg { width: 20px; height: 20px; }
.c-ic.sm { width: 32px; height: 32px; }

/* ----------------------------------------------------------------- tablar */
.c-tabs {
  position: sticky; top: 0; z-index: 12;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 6px 12px; background: var(--white); border-bottom: 1px solid var(--line);
}
.c-tabs::-webkit-scrollbar { display: none; }
.c-tab {
  position: relative; flex: 0 0 auto;
  padding: 11px 14px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--muted);
  border-radius: 12px; transition: color .16s ease, background .16s ease;
}
.c-tab:hover { background: var(--purple-softer); }
.c-tab.active { color: var(--purple-deep); }
.c-tab.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 3px; border-radius: 3px; background: var(--grad);
}
.c-panel { padding: 4px 0 0; min-height: 240px; }

/* ---------------------------------------------------------------- filtre */
.c-filters { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 10px; }
.c-filters.sticky { position: sticky; top: 56px; z-index: 11; background: var(--white); }
.c-search {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px; border-radius: 14px; background: var(--bg);
  border: 1px solid transparent; transition: border-color .16s ease;
}
.c-search:focus-within { border-color: var(--purple); background: var(--white); }
.c-search svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.c-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--ink); outline: none; }
.c-chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.c-chips::-webkit-scrollbar { display: none; }
.c-chip-btn {
  flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); font: inherit; font-size: 13px; font-weight: 700;
  color: var(--muted); cursor: pointer; transition: all .16s ease;
}
.c-chip-btn:hover { border-color: var(--purple); color: var(--purple); }
.c-chip-btn.on { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ------------------------------------------------------------ liste/satır */
.c-list { display: flex; flex-direction: column; }
.c-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.c-row:last-child { border-bottom: 0; }
.c-row-avwrap { position: relative; flex: 0 0 auto; }
.c-row-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; cursor: pointer; background: var(--purple-softer); }
.c-online {
  position: absolute; right: 0; bottom: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: #22C55E; border: 2.5px solid var(--white);
}
.c-row-body { flex: 1; min-width: 0; }
.c-row-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; font-weight: 700; color: var(--ink); }
.c-row-name button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.c-row-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.c-row-msg { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.c-row-acts { display: flex; gap: 7px; flex: 0 0 auto; }

.c-badge {
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .02em; text-transform: uppercase;
}
.c-badge.owner { background: var(--purple); color: #fff; }
.c-badge.mod { background: var(--purple-soft); color: var(--purple-deep); }
.c-badge.danger { background: #FEE2E2; color: #B91C1C; }
.c-badge.warn { background: #FEF3C7; color: #B45309; }

/* ------------------------------------------------------------- composer */
.c-composer {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 32px);
  margin: 14px 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--white);
  font: inherit; font-size: 14.5px; color: var(--muted); text-align: left; cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.c-composer:hover { border-color: var(--purple); box-shadow: var(--shadow-sm); }
.c-composer span { flex: 1; }
.c-composer svg { width: 20px; height: 20px; color: var(--purple); }
.c-composer-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.c-notice {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 16px; padding: 13px 15px; border-radius: 16px;
  background: var(--purple-softer); color: var(--ink-2); font-size: 13.5px; font-weight: 600;
}
.c-notice svg { width: 18px; height: 18px; color: var(--purple); flex: 0 0 auto; }

.c-feed .fcard { border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- about */
.c-about { padding: 6px 0 20px; }
.c-block { padding: 18px 16px; border-bottom: 1px solid var(--line); }
.c-block:last-child { border-bottom: 0; }
.c-block h3 { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.c-block p { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.c-muted { color: var(--muted); font-size: 14px; }
.c-rules { padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.c-rules li { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.c-info { display: flex; flex-direction: column; gap: 14px; }
.c-info-row { display: flex; align-items: center; gap: 12px; }
.c-info-ic { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 13px; background: var(--purple-softer); color: var(--purple); }
.c-info-ic svg { width: 18px; height: 18px; }
.c-info-row > div { display: flex; flex-direction: column; }
.c-info-l { font-size: 12px; color: var(--muted); font-weight: 600; }
.c-info-v { font-size: 14.5px; color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------------- medya */
.c-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; }
.c-media-cell { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: var(--bg); cursor: pointer; overflow: hidden; }
.c-media-cell img, .c-media-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-media-badge { position: absolute; right: 7px; top: 7px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.c-media-badge svg { width: 17px; height: 17px; }

/* ----------------------------------------------------------- kart / keşif */
.c-cards { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 14px 16px; }
.c-card {
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--white); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.c-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.c-card:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.c-card-cover { position: relative; height: 116px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 24px; }
.c-card-cover.g1 { background: linear-gradient(135deg, #7C4DFF, #5B2BEA); }
.c-card-cover.g2 { background: linear-gradient(135deg, #FF7A59, #FF4D8D); }
.c-card-cover.g3 { background: linear-gradient(135deg, #22C1C3, #1A8FE3); }
.c-card-cover.g4 { background: linear-gradient(135deg, #F7971E, #FFD200); }
.c-card-cover.g5 { background: linear-gradient(135deg, #34D399, #059669); }
.c-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.c-card-tag {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.c-card-tag svg { width: 13px; height: 13px; }
.c-card-tag.joined { color: #15803D; }
.c-card-body { padding: 14px 16px 16px; }
.c-card-body h3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 17px; font-weight: 800; color: var(--ink); }
.c-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.c-card-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.c-card-meta svg { width: 14px; height: 14px; }
.c-card-cat { color: var(--purple) !important; }
.c-card-body p {
  margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --------------------------------------------------------------- ayarlar */
.c-settings .field { margin-bottom: 16px; }
.c-settings label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.c-settings input[type=text], .c-settings textarea, .c-settings select, .c-input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  font: inherit; font-size: 14.5px; color: var(--ink); background: var(--white); outline: none;
  transition: border-color .16s ease;
}
.c-settings input:focus, .c-settings textarea:focus, .c-settings select:focus, .c-input:focus { border-color: var(--purple); }
.c-settings textarea { resize: vertical; line-height: 1.55; }
.c-hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.opt { color: var(--muted); font-weight: 500; }
.c-cover-edit {
  position: relative; height: 130px; border-radius: 18px; cursor: pointer;
  background-size: cover; background-position: center; display: grid; place-items: center;
}
.c-cover-edit:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.c-cover-hint {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; background: rgba(17, 24, 39, .5); color: #fff;
  font-size: 13px; font-weight: 700; backdrop-filter: blur(6px);
}
.c-cover-hint svg { width: 16px; height: 16px; }
.c-av-edit {
  position: relative; z-index: 1;
  width: 76px; height: 76px; margin: -30px 0 0 6px;
  border: 4px solid var(--white); border-radius: 24px; cursor: pointer; overflow: hidden;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px; padding: 0;
}
.c-av-edit img { width: 100%; height: 100%; object-fit: cover; }
.c-av-edit.g1 { background: linear-gradient(135deg, #7C4DFF, #5B2BEA); }
.c-av-edit.g2 { background: linear-gradient(135deg, #FF7A59, #FF4D8D); }
.c-av-edit.g3 { background: linear-gradient(135deg, #22C1C3, #1A8FE3); }
.c-av-edit.g4 { background: linear-gradient(135deg, #F7971E, #FFD200); }
.c-av-edit.g5 { background: linear-gradient(135deg, #34D399, #059669); }
.c-av-cam { position: absolute; right: 2px; bottom: 2px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--purple); color: #fff; }
.c-av-cam svg { width: 13px; height: 13px; }
.danger-block h3 { color: #DC2626; }

.c-savebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translateY(110%); transition: transform .22s cubic-bezier(.22, 1, .36, 1);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.c-savebar.show { transform: none; }
.c-savebar > div { display: flex; gap: 8px; flex: 0 0 auto; }

/* --------------------------------------------------------- boş / iskelet */
.c-empty { padding: 56px 32px; text-align: center; }
.c-empty-ic {
  width: 66px; height: 66px; margin: 0 auto 16px; display: grid; place-items: center;
  border-radius: 22px; background: var(--purple-softer); color: var(--purple);
}
.c-empty-ic.warn { background: #FEF2F2; color: #DC2626; }
.c-empty-ic svg { width: 29px; height: 29px; }
.c-empty h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 7px; }
.c-empty p { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 320px; margin: 0 auto 18px; }

.csk {
  display: block; border-radius: 8px; margin-bottom: 9px;
  background: linear-gradient(90deg, #F1F1F6 25%, #E7E7EF 37%, #F1F1F6 63%);
  background-size: 400% 100%; animation: exp-shimmer 1.4s ease-in-out infinite;
}
.c-cover-sk { height: 168px; border-radius: 0; margin: 0; }
.csk-head .c-head-body { padding: 0 18px; }
.c-av-sk { width: 84px; height: 84px; border-radius: 26px; margin: -42px 0 12px; }
.csk-row { border-bottom: 1px solid var(--line); }
.c-row-av.csk, .csk.c-row-av { width: 46px; height: 46px; border-radius: 50%; margin: 0; }
.csk-card { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.c-card-cover.csk { height: 116px; border-radius: 0; margin: 0; }
.csk-card .c-card-body { padding: 14px 16px; }
.c-form-sk { padding: 18px 16px; }
.c-more { display: grid; place-items: center; padding: 18px 0; }
.c-end { text-align: center; padding: 20px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.c-sentinel { height: 1px; }

/* --------------------------------------------------------- onay penceresi */
.c-modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 22px;
  background: rgba(17, 24, 39, .48);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: c-fade .18s ease both;
}
@keyframes c-fade { from { opacity: 0; } to { opacity: 1; } }
.c-modal-box {
  width: 100%; max-width: 380px; padding: 24px;
  border-radius: 24px; background: var(--white); box-shadow: var(--shadow);
  animation: c-pop .22s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes c-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.c-modal-box h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.c-modal-box p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.c-modal-box .c-input { margin-top: 14px; }
.c-modal-acts { display: flex; gap: 10px; margin-top: 20px; }
.c-modal-acts .c-btn { flex: 1; }

.create-row.danger .create-ic, .create-ic.danger { background: #FEF2F2; color: #DC2626; }
.dp-scope {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px;
  padding: 6px 12px; border-radius: 999px; background: var(--purple-softer);
  color: var(--purple-deep); font-size: 13px; font-weight: 700;
}
.dp-scope svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------- responsive */
@media (min-width: 700px) {
  .c-screen { background: var(--bg); }
  .c-head, .c-tabs, .c-panel, .c-filters { max-width: 720px; margin-left: auto; margin-right: auto; }
  .c-head { background: var(--white); border-radius: 0 0 26px 26px; overflow: hidden; box-shadow: var(--shadow-sm); }
  .c-cover { height: 210px; }
  .c-panel { background: var(--white); border-radius: 24px; margin-top: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
  .c-cards { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }
  .c-media-grid { gap: 5px; padding: 5px; }
}
@media (min-width: 1080px) {
  .c-head, .c-tabs, .c-panel, .c-filters { max-width: 860px; }
  .c-cards { grid-template-columns: repeat(3, 1fr); max-width: 860px; }
  .c-cover { height: 240px; }
}

/* -------------------------------------------------------------- a11y */
.c-tab:focus-visible, .c-chip-btn:focus-visible, .c-btn:focus-visible,
.c-ic:focus-visible, .c-back:focus-visible, .c-row-name button:focus-visible,
.c-media-cell:focus-visible, .c-composer:focus-visible {
  outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .csk { animation: none; }
  .c-modal, .c-modal-box { animation: none; }
  .c-card, .c-btn, .c-savebar { transition: none; }
}

/* ============================================================================
   Sprint 4 — gerçek zamanlı durum göstergeleri
   ============================================================================ */
.rt-banner {
  position: fixed; left: 50%; top: 0; z-index: 200;
  transform: translate(-50%, -100%);
  padding: 9px 18px; border-radius: 0 0 14px 14px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1);
  max-width: 92vw; text-align: center;
}
.rt-banner.show { transform: translate(-50%, 0); }

/* .rt-pill kaldırıldı: "N yeni gönderi" hapı artık gösterilmiyor. */

/* Presence noktası — avatarın üstünde, canlı güncellenir. */
[data-presence] { position: relative; }
[data-presence]::after {
  content: ''; position: absolute; right: 0; bottom: 0;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2.5px solid var(--white); background: var(--muted-2);
  transition: background .2s ease;
}
[data-presence].is-online::after { background: #22C55E; }

@media (prefers-reduced-motion: reduce) {
  .rt-banner { transition: none; }
}

/* ============================================================================
   Bildirimler — liste ve ayarlar
   ============================================================================ */
.nt-list { display: flex; flex-direction: column; }
.nt-row {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .16s ease;
}
.nt-row:last-child { border-bottom: 0; }
.nt-row:hover { background: var(--purple-softer); }
.nt-row.unread { background: var(--purple-softer); }
.nt-row.unread::before {
  content: ''; position: absolute; left: 5px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--purple);
}
.nt-ic {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center; border-radius: 13px;
  background: var(--purple-soft); color: var(--purple-deep);
}
.nt-ic.sm { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; }
.nt-ic svg { width: 19px; height: 19px; }
.nt-body { flex: 1; min-width: 0; }
.nt-title { font-size: 14.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.nt-title b { font-weight: 800; }
.nt-time { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.nt-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.nt-x {
  width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: transparent; color: var(--muted-2); cursor: pointer;
  opacity: 0; transition: opacity .16s ease, background .16s ease;
}
.nt-row:hover .nt-x, .nt-x:focus-visible { opacity: 1; }
.nt-x:hover { background: #FEE2E2; color: #DC2626; }
.nt-x svg { width: 15px; height: 15px; }

.nt-pref { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.nt-switch {
  position: relative; width: 46px; height: 27px; flex: 0 0 auto;
  border: 0; border-radius: 999px; background: var(--line); cursor: pointer;
  transition: background .2s ease;
}
.nt-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s cubic-bezier(.22,1,.36,1);
}
.nt-switch.on { background: var(--purple); }
.nt-switch.on::after { transform: translateX(19px); }
.nt-switch.is-busy { opacity: .6; pointer-events: none; }
.nt-switch:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .nt-switch, .nt-switch::after, .nt-row, .nt-x { transition: none; }
}

/* Sprint 6 — yan yana iki alan (enlem/boylam). Dar ekranda alt alta iner. */
.c-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .c-row2 { grid-template-columns: 1fr; } }
