:root {
  --white: #ffffff;
  --bg: #f8f5fc;
  --ink: #1a1a1a;
  --muted: #5c5668;
  --line: #ebe4f5;
  --purple: #752fee;
  --purple-2: #996bf1;
  --purple-3: #ce8ff2;
  --purple-soft: #f0e8ff;
  --pink: #ff4fa3;
  --pink-2: #f9a8d4;
  --pink-3: #f472b6;
  --shadow: 0 8px 28px rgba(117, 47, 238, 0.08);
  --shadow-soft: 0 4px 18px rgba(26, 26, 26, 0.06);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 72px;
  --announce-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: #e8e0f2;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.app {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
}

.phone {
  width: min(390px, 100%);
  height: min(844px, calc(100vh - 32px));
  background: var(--bg);
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(64, 20, 120, 0.25);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 8px solid #1a1a1a;
}

.status-bar {
  height: 44px;
  padding: 10px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.status-island {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #111;
  border-radius: 20px;
}

.status-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.announcement-bar {
  flex-shrink: 0;
  z-index: 6;
  background: linear-gradient(90deg, #752fee 0%, #996bf1 48%, #ff4fa3 120%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.announcement-bar[hidden] {
  display: none !important;
}

.announcement-bar-inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px 9px;
  min-height: 36px;
}

.announcement-bar-ico {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.35;
}

.announcement-bar-text {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.announcement-bar-close {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.announcement-bar-close:active {
  background: rgba(255, 255, 255, 0.32);
}

.screen-root {
  flex: 1;
  overflow: auto;
  padding-bottom: calc(var(--tab-h) + 8px);
  scroll-behavior: smooth;
}

.screen-root.no-tab {
  padding-bottom: 0;
}

.screen {
  min-height: 100%;
  animation: fadeIn 0.28s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 12px;
  gap: 8px;
  flex-wrap: nowrap;
}

.topbar > div:not(.chat-tools) {
  min-width: 0;
}

.topbar .name-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: var(--purple);
  position: relative;
}

.icon-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* Stories */
.stories {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 18px 14px;
  scrollbar-width: none;
}

.stories::-webkit-scrollbar {
  display: none;
}

.story {
  flex: 0 0 auto;
  width: 64px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.story-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
  margin: 0 auto 6px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.story-ring.mine {
  background: transparent;
  border: 2px dashed var(--purple-2);
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--purple);
  position: relative;
}

.story-ring.mine.has-story {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none;
  padding: 2px;
}

.story-ring.mine.has-story::after {
  content: none;
}

.story-ring.mine.has-story .story-avatar {
  background: var(--bg);
}

.story-ring img,
.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  background: var(--purple-soft);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--purple);
  font-size: 18px;
}

.story-ring.mine .story-avatar {
  border: 0;
  width: 100%;
  height: 100%;
}

/* Cards / posts */
.feed {
  padding: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-user-feed {
  padding-top: 8px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--purple-soft);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--purple);
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  font-size: 14px;
}

img.avatar {
  display: block;
  padding: 0;
  border: 0;
  color: transparent;
  font-size: 0;
}

.avatar.sm {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.avatar.lg {
  width: 92px;
  height: 92px;
  font-size: 32px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.post-meta {
  flex: 1;
  min-width: 0;
}

.post-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.post-meta span {
  font-size: 12px;
  color: var(--muted);
}

.btn-follow {
  color: var(--pink);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
}

.btn-follow.is-following {
  color: var(--muted);
}

.post-text {
  padding: 0 14px 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.post-media {
  aspect-ratio: 4 / 3;
  background: #ddd6ea;
  overflow: hidden;
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 14px 14px;
  color: var(--purple);
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
}

.action.liked {
  color: var(--pink);
}

.action.liked svg path {
  fill: var(--pink);
  stroke: var(--pink);
}

/* Search / chips */
.search-wrap {
  padding: 0 16px 12px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  box-shadow: var(--shadow-soft);
  color: var(--purple);
}

.search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font-size: 14px;
}

.search input::placeholder {
  color: #9a93a8;
}

.chips,
.filters,
.tags-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0 16px 14px;
}

.chips::-webkit-scrollbar,
.filters::-webkit-scrollbar,
.tags-scroll::-webkit-scrollbar {
  display: none;
}

.chip,
.filters .chip,
.tags-scroll .tag {
  flex: 0 0 auto;
  white-space: nowrap;
}

.chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.chip.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.section {
  padding: 0 16px 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head h3 {
  font-size: 16px;
  font-weight: 800;
}

.link {
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
}

.feature {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 140px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  box-shadow: var(--shadow);
}

.feature-copy {
  background: linear-gradient(160deg, var(--purple), #5a18d4);
  color: #fff;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.feature-copy small {
  opacity: 0.85;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 10px;
}

.feature-copy strong {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.feature-copy .btn-lite {
  margin-top: 8px;
  align-self: flex-start;
  background: #fff;
  color: var(--purple);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
}

.feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-mods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.explore-mod {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-align: left;
  min-height: 88px;
}

.explore-mod.fal {
  background: linear-gradient(160deg, #fff 0%, #f8f0ff 100%);
}

.explore-mod.med {
  background: linear-gradient(160deg, #fff 0%, #fff0f7 100%);
}

.explore-mod-ico {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 4px;
}

.explore-mod strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.explore-mod span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.fal-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
}

.fal-slot {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  border: 1.5px dashed #ce8ff2;
  background: linear-gradient(160deg, #fff 0%, #f8f5fc 100%);
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
}

.fal-slot.has-photo {
  border-style: solid;
  border-color: var(--purple);
}

.fal-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fal-slot-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--purple);
}

.fal-slot-ph svg {
  width: 22px;
  height: 22px;
}

.fal-slot-ph small {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.fal-slot-rm {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
}

.fal-slot-rm svg {
  width: 12px;
  height: 12px;
}

.fal-slot-hint {
  margin: 8px 16px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.fal-text {
  white-space: normal;
  text-align: left !important;
}

.mod-result {
  margin: 0 16px;
  padding: 20px 16px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.mod-result-ico {
  font-size: 36px;
  margin-bottom: 8px;
}

.mod-result strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.mod-result p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.med-presets {
  display: grid;
  gap: 8px;
  padding: 0 16px;
}

.med-preset {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: left;
}

.med-preset strong {
  font-size: 15px;
}

.med-preset span {
  font-size: 12px;
  color: var(--muted);
}

.med-ring {
  --pct: 0;
  width: 140px;
  height: 140px;
  margin: 8px auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(var(--purple) calc(var(--pct) * 1%), #ebe4f5 0);
}

.med-time {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.med-breath {
  font-size: 13px !important;
  font-weight: 600;
  color: var(--purple) !important;
}

.med-track-now {
  margin: 6px 0 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}

.med-track-list {
  display: grid;
  gap: 8px;
  padding: 0 16px 8px;
}

.med-track-row {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: left;
}

.med-track-row.active {
  border-color: var(--purple);
  background: #f8f5fc;
}

.med-track-emoji {
  font-size: 20px;
  text-align: center;
}

.med-track-row strong {
  display: block;
  font-size: 14px;
}

.med-track-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.med-track-check {
  color: var(--purple);
  display: grid;
  place-items: center;
}

.med-track-check svg {
  width: 16px;
  height: 16px;
}

.med-track-mini {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.med-track-chip {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
}

.med-track-chip.active {
  border-color: var(--purple);
  background: #f8f5fc;
  box-shadow: 0 0 0 2px rgba(117, 47, 238, 0.18);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-scroll {
  flex-wrap: nowrap;
  padding-left: 0;
  padding-right: 0;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 4px;
}

.tag {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid #d9c9f5;
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  white-space: nowrap;
  flex: 0 0 auto;
}

.community {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 10px;
}

.community-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.community-body {
  flex: 1;
  min-width: 0;
}

.community-body strong {
  display: block;
  font-size: 14px;
}

.community-body span {
  font-size: 12px;
  color: var(--muted);
}

.btn-join {
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

.btn-join.joined {
  background: var(--purple-soft);
  color: var(--purple);
}

/* Feed tabs / audio */
.seg {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
}

.seg button {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
}

.seg button.active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.audio-card {
  padding: 14px;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--purple-soft), #ffe8f4);
  border-radius: 16px;
  padding: 12px;
}

.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wave {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.wave i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--purple);
  opacity: 0.75;
}

.wave-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  min-width: 36px;
}

/* Notifications */
.filters {
  padding-bottom: 12px;
}

.notif {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.notif-cat {
  display: inline-block;
  margin-bottom: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #752fee;
  background: rgba(117, 47, 238, 0.12);
}

.notif.is-unread {
  background: rgba(117, 47, 238, 0.06);
}

.notif.is-unread .notif-body strong::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--pink);
  vertical-align: middle;
}

.notif.is-read {
  opacity: 0.78;
}

.notif-body {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
}

.notif-body strong {
  font-weight: 700;
}

.notif-body .time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.notif-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--purple-soft);
}

.heart-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffe4f1;
  color: var(--pink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 6px;
}

/* Messages */
.online-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 16px 6px;
  gap: 8px;
}

.online-strip-head strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.online-strip-head span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.active-users {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 16px 14px;
  scrollbar-width: none;
  align-items: flex-start;
}

.active-users::-webkit-scrollbar {
  display: none;
}

.active-user {
  width: 58px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  flex-shrink: 0;
}

.active-user-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-user .avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 6px;
  position: relative;
}

.online-empty {
  flex: 1;
  min-width: 120px;
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 4px;
}

.online {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2px solid var(--bg);
  border-radius: 50%;
}

.chat-row .avatar.clickable {
  position: relative;
}

.online-label {
  font-size: 10px;
  font-weight: 700;
  color: #16a34a;
  text-transform: lowercase;
}

.chat-row.is-online .chat-meta p {
  color: var(--muted);
}

.chat-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 8px 6px 12px;
  width: 100%;
  text-align: left;
}

.chat-row:active {
  background: rgba(117, 47, 238, 0.04);
}

.chat-meta {
  flex: 1;
  min-width: 0;
}

.chat-meta .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.chat-meta strong {
  font-size: 14px;
}

.chat-meta .time {
  font-size: 11px;
  color: var(--muted);
}

.chat-meta p {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e11d48;
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.2);
  flex-shrink: 0;
}

.chat-row.has-unread .chat-meta strong {
  color: var(--ink);
}

.chat-row.has-unread .chat-meta p {
  color: var(--ink);
  font-weight: 600;
}

/* Profile */
.profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 20px 16px;
  gap: 8px;
}

.profile-head h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.handle {
  color: var(--muted);
  font-size: 13px;
  margin-top: -4px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffe8f4;
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.stat strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.stat span {
  font-size: 12px;
  color: var(--muted);
}

.bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 280px;
}

.bio .loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--purple);
  font-weight: 600;
}

.profile-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.btn-primary {
  flex: 1;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(117, 47, 238, 0.28);
}

.btn-outline {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--purple);
  display: grid;
  place-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 3px 16px;
}

.grid-3 img,
.grid-cell img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  height: 100%;
  background: #ddd6ea;
  display: block;
}

.grid-cell {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

/* Live */
.live-now {
  margin: 0 16px 16px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow);
  background: #222;
}

.live-now img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.live-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.live-meta strong {
  display: block;
  font-size: 15px;
}

.live-meta span {
  font-size: 12px;
  opacity: 0.9;
}

.upcoming {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--white);
  margin: 0 16px 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.upcoming.live-room-row {
  width: calc(100% - 32px);
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.live-invite-empty {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  padding: 4px 0;
}

.upcoming-body {
  flex: 1;
  min-width: 0;
}

.upcoming-body strong {
  display: block;
  font-size: 14px;
}

.upcoming-body span {
  font-size: 12px;
  color: var(--muted);
}

.btn-remind {
  border: 1.5px solid var(--purple);
  color: var(--purple);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
}

.btn-remind.on {
  background: var(--purple);
  color: #fff;
}

/* Login */
.login {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px 40px;
  background:
    radial-gradient(circle at 20% 15%, rgba(206, 143, 242, 0.35), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 79, 163, 0.18), transparent 35%),
    var(--bg);
}

.login-brand {
  text-align: center;
  margin-bottom: 36px;
}

.login-brand .brand-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
}

.login-brand h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.login-brand p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 260px;
  margin-inline: auto;
}

.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.auth-btn.primary {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 10px 24px rgba(117, 47, 238, 0.3);
}

.login-foot {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

.login-foot button {
  color: var(--purple);
  font-weight: 800;
}

.demo-link {
  margin-top: 18px;
  text-align: center;
}

.demo-link button {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-btn:disabled {
  opacity: 0.65;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--ink);
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.auth-form input {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.auth-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 4px;
}

.auth-back svg {
  transform: rotate(180deg);
  width: 16px;
  height: 16px;
}

.auth-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 79, 163, 0.12);
  color: #b0105a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.auth-link {
  align-self: flex-end;
  background: none;
  border: 0;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  padding: 0;
}

.auth-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
}

/* Tab bar */
.tabbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(10px + var(--safe-b));
  height: var(--tab-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(64, 20, 120, 0.14);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 6px;
  z-index: 20;
}

.tabbar[hidden] {
  display: none !important;
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #9a93a8;
  padding: 8px 0;
}

.tab.active {
  color: var(--purple);
}

.tab-label {
  font-size: 10px;
  font-weight: 700;
}

.tab-create {
  transform: none;
  padding: 0;
  gap: 0;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.create-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--purple-2), var(--purple));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(117, 47, 238, 0.35);
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.create-btn::before {
  content: "+";
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  /* Plus Jakarta “+” glifi biraz yukarı oturur — optik ortalama */
  transform: translateY(-1px);
}

.badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
  color: #fff;
}

.badge-pink {
  background: var(--pink);
}

.tab .badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
}

/* Sheet / toast — phone içinde absolute (dışarı taşmaz) */
.sheet {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
}

.sheet[hidden],
.toast[hidden] {
  display: none !important;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.35);
  z-index: 1;
}

.sheet-panel {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  background: var(--white);
  border-radius: 28px 28px 0 0;
  padding: 12px 20px 28px;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(40%);
  }
  to {
    transform: none;
  }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: #ddd;
  margin: 0 auto 14px;
}

.sheet-panel h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  text-align: center;
}

.create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.create-grid button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.create-grid button {
  background: var(--bg);
  border-radius: 16px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--purple);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  z-index: 60;
  box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subnav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 0 12px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-center {
  justify-content: center;
}

.subnav::-webkit-scrollbar {
  display: none;
}

.subnav button {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 11px;
  white-space: nowrap;
  line-height: 1.2;
}

.subnav button.active {
  background: var(--purple-soft);
  color: var(--purple);
  border-color: transparent;
}

/* Günün Akışı — mini */
.daily-mini {
  margin: 0 16px 14px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f3ecff 55%, #ffe8f4 100%);
  border: 1px solid rgba(117, 47, 238, 0.12);
  box-shadow: var(--shadow-soft);
}

.daily-mini-head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.daily-mini-brand {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.daily-mini-ico {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.daily-mini-brand strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.daily-mini-brand span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-mini-mood {
  font-size: 10px;
  font-weight: 800;
  color: var(--pink);
  background: rgba(255, 79, 163, 0.12);
  padding: 5px 9px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.daily-mini-body {
  text-align: center;
  padding: 2px 4px 6px;
}

.daily-mini-quote {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.daily-mini-intent {
  margin-top: 4px;
  font-size: 11px;
  color: var(--purple);
  font-weight: 600;
}

.daily-mini-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.daily-mini-nav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.daily-mini-dots {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.daily-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(117, 47, 238, 0.22);
  padding: 0;
  flex-shrink: 0;
}

.daily-dot.active {
  width: 14px;
  border-radius: 999px;
  background: var(--purple);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
  font-size: 14px;
}

/* Settings / lists */
.settings-block {
  margin: 0 16px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.settings-label {
  padding: 14px 16px 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row .ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.settings-row .body {
  flex: 1;
  min-width: 0;
}

.settings-row .body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.settings-row .body span {
  font-size: 12px;
  color: var(--muted);
}

.settings-row .chev {
  color: #b0a8bd;
}

.settings-row.danger {
  color: var(--pink);
}

.settings-row.danger .ico {
  background: #ffe8f4;
  color: var(--pink);
}

.toggle {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #d9d2e6;
  position: relative;
  flex-shrink: 0;
  transition: 0.2s;
}

.toggle.on {
  background: var(--purple);
}

.toggle i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: 0.2s;
}

.toggle.on i {
  left: 21px;
}

/* Forms */
.form {
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--purple-2);
  box-shadow: 0 0 0 3px rgba(117, 47, 238, 0.12);
}

.field textarea {
  min-height: 96px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.btn-ghost {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--muted);
}

.btn-save {
  flex: 1.4;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 20px rgba(117, 47, 238, 0.28);
}

.edit-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0 4px;
}

.edit-avatar button {
  color: var(--purple);
  font-weight: 700;
  font-size: 13px;
}

.group-chat-header {
  flex-shrink: 0;
}

.group-banner {
  margin: 0 16px 8px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f0e8ff, #fce7f3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.group-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.group-banner-empty {
  color: var(--purple-2);
  opacity: 0.55;
  display: grid;
  place-items: center;
}

.group-banner-empty svg {
  width: 22px;
  height: 22px;
}

.group-banner-edit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.group-banner-edit svg {
  width: 14px;
  height: 14px;
  color: var(--purple);
}

.group-banner-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}

.group-banner.is-admin:not(.has-photo) .group-banner-hint {
  display: none;
}

/* Group detail */
.group-cover {
  margin: 0 16px 12px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: var(--purple-soft);
  position: relative;
}

.group-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-info {
  padding: 0 16px 16px;
}

.group-info.compact {
  padding: 0 16px 10px;
}

.group-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.group-info-row > div {
  flex: 1;
  min-width: 0;
}

.group-info h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.group-info .meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 4px;
}

.group-info p {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.group-info.compact p {
  margin-bottom: 0;
}

.member-row {
  display: flex;
  gap: -4px;
  margin-bottom: 14px;
}

.member-row .avatar {
  margin-left: -6px;
  border: 2px solid var(--bg);
}

.member-row .avatar:first-child {
  margin-left: 0;
}

.btn-primary.sm {
  padding: 8px 12px;
  font-size: 12px;
  flex-shrink: 0;
}

.screen.group-chat-screen {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: none;
}

.group-chat-header {
  flex-shrink: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.group-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px 8px;
}

.group-msg-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--purple);
  margin: 0 0 2px 4px;
}

.group-voice-inline {
  margin: 0 12px 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.group-voice-inline.is-live {
  display: block;
  background: linear-gradient(145deg, #ffffff 0%, #f3ecff 55%, #ffe8f4 100%);
  border-color: rgba(117, 47, 238, 0.18);
}

.group-voice-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.group-voice-copy strong svg {
  width: 16px;
  height: 16px;
  color: var(--purple);
}

.group-voice-copy p {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.btn-voice-join {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.btn-voice-join svg {
  width: 16px;
  height: 16px;
}

.group-voice-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.group-voice-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  flex-shrink: 0;
}

.btn-voice-mic,
.btn-voice-leave {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-voice-mic {
  background: var(--purple);
  color: #fff;
}

.btn-voice-mic.is-off {
  background: var(--purple-soft);
  color: var(--purple);
}

.btn-voice-leave {
  background: rgba(255, 79, 163, 0.12);
  color: var(--pink);
}

.btn-voice-mic svg,
.btn-voice-leave svg {
  width: 14px;
  height: 14px;
}

.group-voice-peers {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.group-voice-peers::-webkit-scrollbar {
  display: none;
}

.group-voice-peer {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.group-voice-peer-av .avatar,
.group-voice-peer-av.avatar {
  width: 40px;
  height: 40px;
  border: 2px solid transparent;
}

.group-voice-peer.is-speaking .avatar,
.group-voice-peer.is-speaking .group-voice-peer-av .avatar {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 79, 163, 0.2);
}

.group-voice-peer.is-mic-on .avatar,
.group-voice-peer.is-mic-on .group-voice-peer-av .avatar {
  border-color: var(--purple);
}

.group-voice-peer-mic {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  color: var(--purple);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}

.group-voice-peer-mic svg {
  width: 11px;
  height: 11px;
}

.group-voice-peer.is-mic-off .group-voice-peer-mic {
  color: var(--muted);
}

.group-chat-screen .composer {
  flex-shrink: 0;
  margin: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  padding-bottom: calc(10px + var(--safe-b));
}

.screen-root.chat-mode {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.screen.chat-screen {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: none;
  position: relative;
}

.chat-header {
  flex-shrink: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.chat-topbar {
  padding: 6px 10px 10px;
  gap: 8px;
}

.chat-title {
  flex: 1;
  min-width: 0;
}

.chat-title .name-link {
  font-size: 15px;
  font-weight: 800;
}

.chat-status {
  font-size: 11px;
  color: var(--muted);
}

/* Chat thread */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 16px 90px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bubble {
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.bubble.them {
  align-self: flex-start;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border-bottom-left-radius: 6px;
}

.bubble.me {
  align-self: flex-end;
  background: var(--purple);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bubble .t {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.7;
}

.bubble .t .read-tick {
  display: inline-flex;
  vertical-align: -2px;
  margin-left: 2px;
  color: var(--purple-2);
  opacity: 1;
}

.bubble .t .read-tick svg {
  width: 12px;
  height: 12px;
}

.composer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 14px;
  box-shadow: var(--shadow);
  z-index: 15;
}

.composer.has-reply {
  flex-direction: column;
  align-items: stretch;
  border-radius: 18px;
  padding: 8px 10px 8px 12px;
  gap: 0;
}

.composer-main {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.reply-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  padding: 0 4px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--purple);
  font-weight: 600;
}

.reply-inline b {
  font-weight: 800;
}

.reply-inline button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}

.composer input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.composer .send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
}

/* Comments */
.comment-list {
  padding: 0 16px 120px;
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.comment-item .body strong {
  font-size: 13px;
}

.comment-item .body p {
  font-size: 13px;
  margin-top: 2px;
  line-height: 1.4;
}

.comment-item .body .time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Story viewer */
.story-view {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  z-index: 25;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
}

.story-progress {
  display: flex;
  gap: 4px;
  padding: 12px 14px 8px;
  position: relative;
  z-index: 5;
}

.story-progress span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.story-progress span.done {
  background: #fff;
}

.story-progress span.active i {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  transform-origin: left;
  animation: storyFill 5s linear forwards;
}

.story-view.is-paused .story-progress span.active i {
  animation-play-state: paused;
}

@keyframes storyFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.story-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  position: relative;
  z-index: 5;
}

.story-top-meta {
  min-width: 0;
  flex: 1;
}

.story-top-meta strong {
  display: block;
  font-size: 14px;
}

.story-top-meta small {
  font-size: 11px;
  opacity: 0.75;
}

.story-icon-btn,
.story-view .close-story {
  color: #fff;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.story-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}

.story-nav.prev {
  left: 10px;
}

.story-nav.next {
  right: 10px;
}

.story-nav.next svg {
  transform: none;
}

.story-tap {
  position: absolute;
  top: 70px;
  bottom: 120px;
  width: 30%;
  z-index: 4;
  background: transparent;
}

.story-tap.left {
  left: 0;
}

.story-tap.right {
  right: 0;
}

.story-body {
  flex: 1;
  position: relative;
  display: grid;
  place-items: center;
  margin: 8px 16px 8px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #752fee, #ff4fa3 120%);
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 0;
}

.story-body.has-media {
  background: #111;
}

.story-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 18px 22px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 26, 0.72) 70%);
}

.story-body:not(.has-media) .story-caption {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 55%);
}

.story-actions {
  display: flex;
  gap: 4px;
  padding: 8px 10px 14px;
  position: relative;
  z-index: 5;
  justify-content: space-around;
}

.story-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 52px;
  padding: 6px 4px;
  border-radius: 12px;
}

.story-act.danger {
  color: #ff8fb8;
}

.story-act svg {
  width: 20px;
  height: 20px;
}

.story-react-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
  font-size: 12px;
  font-weight: 700;
}

.story-react-bar .mine {
  color: #f9a8d4;
}

.story-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  max-height: 48%;
  background: rgba(26, 26, 26, 0.96);
  border-radius: 20px 20px 0 0;
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(12px);
}

.story-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-react-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.story-react-btn {
  font-size: 26px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.story-react-btn.active {
  background: rgba(117, 47, 238, 0.45);
  box-shadow: 0 0 0 2px #ce8ff2;
}

.story-viewer-list,
.story-comment-list {
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-bottom: 4px;
}

.story-viewer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.story-comment {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.story-comment strong {
  font-size: 13px;
}

.story-comment span {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 500;
}

.story-comment small {
  font-size: 10px;
  opacity: 0.55;
}

.story-comment-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.story-comment-form input {
  flex: 1;
  min-height: 42px;
  border-radius: 999px;
  border: 0;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.story-comment-form button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
}

/* Compose */
.compose-hint {
  margin: 0 16px 12px;
  padding: 12px 14px;
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}

.pick-people {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pick-people button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  text-align: left;
  width: 100%;
}

.pick-people button strong {
  display: block;
  font-size: 14px;
}

.pick-people button span {
  font-size: 12px;
  color: var(--muted);
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 4px 4px;
}

.share-actions button {
  background: var(--bg);
  border-radius: 14px;
  padding: 16px 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.share-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.share-preview {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 4px 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.share-preview img,
.share-preview-fallback {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--purple-soft);
}

.share-preview-fallback {
  display: grid;
  place-items: center;
  color: var(--purple);
}

.share-preview strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.share-preview p {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.compose-live-preview {
  padding: 0 16px 12px;
}

.compose-live-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}

.compose-preview-card {
  pointer-events: none;
  box-shadow: var(--shadow-soft);
}

.compose-preview-card .post-text.is-placeholder,
.compose-preview-card .post-text:empty {
  color: var(--muted);
  font-weight: 500;
}

.compose-privacy-hint {
  margin: 10px 0 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.live-preview-pill {
  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.screen.relative {
  position: relative;
  min-height: 100%;
}

/* Save / bookmark */
.action.saved {
  color: var(--pink);
}

.post-actions {
  justify-content: flex-start;
}

.post-actions .action-spacer {
  flex: 1;
}

/* Call UI */
.call-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: linear-gradient(165deg, #2a1258 0%, #752fee 45%, #ff4fa3 120%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 48px 24px 40px;
  text-align: center;
}

.call-screen.is-incoming {
  background: linear-gradient(165deg, #1a1a1a 0%, #752fee 55%, #ff4fa3 130%);
}

.call-incoming-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f9a8d4;
  margin-bottom: 4px;
}

.call-controls.is-incoming {
  gap: 40px;
  padding-bottom: 12px;
}

.call-controls.is-incoming .call-btn.end,
.call-controls.is-incoming .call-btn.accept {
  width: 72px;
  height: 72px;
}

.call-screen.video-mode {
  background: #111;
}

.call-peer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.call-peer .avatar {
  width: 110px;
  height: 110px;
  font-size: 40px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.call-peer h2 {
  font-size: 26px;
  font-weight: 800;
}

.call-peer .status {
  opacity: 0.85;
  font-size: 14px;
}

.call-video-stage {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(117, 47, 238, 0.45), transparent 50%),
    linear-gradient(160deg, #1a1a1a, #3a1d6e);
  overflow: hidden;
}

.call-video-peer,
#dm-call-video-peer {
  position: absolute;
  inset: 0;
}

.call-video-peer video,
#dm-call-video-peer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.call-video-self,
#dm-call-video-self {
  position: absolute;
  right: 16px;
  top: 56px;
  width: 96px;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.45);
  z-index: 3;
  background: #222;
}

.call-video-self video,
#dm-call-video-self video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-video-self video.is-mirror,
#dm-call-video-self video.is-mirror {
  transform: scaleX(-1);
}

#dm-call-remote-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.call-self-cam {
  position: absolute;
  right: 16px;
  top: 56px;
  width: 96px;
  height: 128px;
  border-radius: 16px;
  background: linear-gradient(145deg, #996bf1, #752fee);
  border: 2px solid rgba(255, 255, 255, 0.35);
  z-index: 2;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 28px;
}

.call-overlay-info {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: 24px;
}

.call-controls {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.call-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}

.call-btn.off {
  background: rgba(255, 255, 255, 0.35);
  color: #1a1a1a;
}

.call-btn.end {
  width: 68px;
  height: 68px;
  background: #ff3b6b;
  box-shadow: 0 10px 28px rgba(255, 59, 107, 0.45);
}

.call-btn.accept {
  background: #22c55e;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.4);
}

/* Live studio */
.live-studio {
  padding: 0 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.live-studio.is-active {
  padding: 0 8px 12px;
}

.screen-live-go.is-on-air {
  padding-bottom: 0;
}

.screen-live-go.is-on-air .topbar {
  padding-bottom: 6px;
}

.live-preview {
  aspect-ratio: 9 / 12;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.live-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.live-preview .live-hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background: linear-gradient(rgba(0, 0, 0, 0.35), transparent 30%, transparent 60%, rgba(0, 0, 0, 0.55));
  color: #fff;
}

.live-preview .viewers {
  align-self: flex-end;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.live-chat-sim {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 80%;
}

.live-chat-sim span {
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  width: fit-content;
}

.live-on-air .live-badge {
  position: static;
}

/* Message menu / pinned */
.chat-tools {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex: 0 0 auto;
}

.chat-tools .icon-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.chat-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 10px;
}

.chat-row-main {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 10px 6px;
  background: transparent;
  box-shadow: none;
}

.chat-row-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding-right: 4px;
}

.chat-row-actions .icon-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.msg-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 78%;
  min-width: 0;
}

.msg-wrap.me {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-wrap.them {
  align-self: flex-start;
  align-items: flex-start;
}

.msg-wrap.pinned .bubble {
  outline: 2px solid rgba(255, 79, 163, 0.45);
}

.pin-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bubble {
  cursor: pointer;
  user-select: none;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.bubble.media-bubble {
  padding: 4px;
  background: transparent !important;
  box-shadow: none !important;
}

.bubble.media-bubble .t {
  padding: 0 6px 2px;
  color: var(--muted);
}

.bubble.selected {
  box-shadow: 0 0 0 2px var(--purple-2);
}

.chat-row.pinned-chat {
  background: rgba(117, 47, 238, 0.05);
}

.chat-row .pin-ico {
  color: var(--pink);
  flex-shrink: 0;
}

.action-menu {
  display: grid;
  gap: 4px;
}

.action-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  width: 100%;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  color: var(--ink);
}

.action-menu button:active {
  background: var(--bg);
}

.action-menu button.danger {
  color: var(--pink);
}

.action-menu .ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
  display: grid;
  place-items: center;
}

.action-menu button.danger .ico {
  background: #ffe8f4;
  color: var(--pink);
}

.action-menu.compact button {
  padding: 10px 8px;
  font-size: 13px;
  gap: 10px;
  border-radius: 10px;
}

.action-menu.compact .ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.sheet.mini {
  place-items: start end;
  padding: 56px 10px 0 0;
  align-content: start;
}

.sheet.mini .sheet-backdrop {
  background: rgba(26, 26, 26, 0.18);
}

.sheet-panel.mini {
  width: min(200px, calc(100% - 20px));
  max-width: 200px;
  border-radius: 14px;
  padding: 6px;
  margin: 0 4px 0 0;
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.16);
  animation: popMini 0.16s ease;
}

.sheet-panel.mini h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  margin: 4px 8px 2px;
}

.sheet-panel.mini .action-menu.compact button {
  padding: 8px 8px;
  font-size: 12px;
  gap: 8px;
}

.sheet-panel.mini .action-menu.compact .ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

@keyframes popMini {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.saved-card {
  display: flex;
  gap: 12px;
  background: var(--white);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
  margin: 0 16px 10px;
  text-align: left;
  width: calc(100% - 32px);
}

.saved-card img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--purple-soft);
  flex-shrink: 0;
}

.saved-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.saved-card p {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge[hidden],
.badge.is-zero {
  display: none !important;
}

/* Comment replies */
.comment-item.reply {
  margin-left: 36px;
  border-bottom: 0;
  padding-top: 8px;
}

.reply-btn {
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

/* Media attach */
.composer.with-plus {
  padding-left: 6px;
}

.composer .plus-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.media-preview {
  margin: 0 16px 10px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #111;
}

.media-preview img,
.media-preview video,
.media-frame-inner img,
.media-frame-inner video {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.media-preview .rm {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: #111;
}

.media-frame-inner {
  transform-origin: center center;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.post-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
}

.post-media .media-frame-inner img,
.post-media .media-frame-inner video {
  max-height: 360px;
}

.media-sticker {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 28px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  z-index: 2;
}

.media-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 2;
}

.media-frame.is-fx-sparkle::after,
.media-frame.is-fx-hearts::after,
.media-frame.is-fx-grain::before,
.media-frame.is-fx-vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.media-frame.is-fx-sparkle::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 25%, rgba(255, 79, 163, 0.85) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 70%, rgba(206, 143, 242, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 60%, rgba(255, 255, 255, 0.75) 0 1.5px, transparent 3px);
  animation: media-twinkle 2.4s ease-in-out infinite;
}

.media-frame.is-fx-hearts::after {
  background:
    radial-gradient(circle at 18% 22%, #ff4fa3 0 5px, transparent 6px),
    radial-gradient(circle at 78% 30%, #f472b6 0 4px, transparent 5px),
    radial-gradient(circle at 55% 75%, #ce8ff2 0 5px, transparent 6px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.media-frame.is-fx-grain::before {
  background-image: repeating-radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 3px);
  opacity: 0.35;
  mix-blend-mode: overlay;
}

.media-frame.is-fx-vignette::after {
  box-shadow: inset 0 0 80px 24px rgba(0, 0, 0, 0.55);
}

@keyframes media-twinkle {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.media-edit-panel {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.edit-accord {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbf9fe;
  margin-bottom: 8px;
  overflow: hidden;
}

.edit-accord:last-child {
  margin-bottom: 0;
}

.edit-accord.is-open {
  background: #fff;
  border-color: color-mix(in srgb, var(--purple) 35%, var(--line));
}

.edit-accord-head {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

.edit-accord-label {
  font-weight: 800;
}

.edit-accord-sum {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-accord-chev {
  color: var(--purple);
  font-size: 12px;
  width: 14px;
  text-align: center;
}

.edit-accord-body {
  padding: 0 12px 12px;
  border-top: 1px solid transparent;
}

.edit-accord.is-open .edit-accord-body {
  border-top-color: var(--line);
  padding-top: 10px;
}

.edit-accord-body[hidden] {
  display: none !important;
}

.edit-accord-body .media-edit-row,
.edit-accord-body .live-title-chips,
.edit-accord-body .live-mode-row {
  margin-top: 2px;
}

.edit-accord-body input[type="text"],
.edit-accord-body input[type="password"],
.edit-accord-body input:not([type]) {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8f5fc;
  font: inherit;
  font-size: 13px;
}

.media-edit-row,
.live-title-chips,
.live-mode-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding-bottom: 6px;
  scrollbar-width: none;
  cursor: grab;
}

.media-edit-row:active,
.live-title-chips:active,
.live-mode-row:active {
  cursor: grabbing;
}

.media-edit-row::-webkit-scrollbar,
.live-title-chips::-webkit-scrollbar,
.live-mode-row::-webkit-scrollbar {
  display: none;
}

.media-edit-chip,
.live-title-chip,
.live-mode-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

.media-edit-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: #f8f5fc;
  border: 1px solid var(--line);
}

.media-edit-chip.sticker {
  min-width: 44px;
  font-size: 18px;
}

.media-edit-chip.active {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
}

.media-edit-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f9a8d4, #752fee 55%, #1a1a1a);
}

.media-edit-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}

.media-edit-sliders {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.media-edit-sliders label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.media-edit-sliders input[type="range"] {
  width: 100%;
  accent-color: var(--purple);
}

.view-once-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, #752fee, #ff4fa3);
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  text-align: left;
}

.view-once-card .vo-ico {
  display: inline-flex;
  margin-bottom: 2px;
  opacity: 0.95;
}

.view-once-card.opened {
  background: #3a3a3a;
  opacity: 0.85;
}

.view-once-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.view-once-card span {
  font-size: 11px;
  opacity: 0.9;
  line-height: 1.3;
}

.secure-media {
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}

.secure-media.guarded::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

body.ss-blur .phone {
  filter: blur(18px);
}

body.ss-guard {
  -webkit-user-select: none;
  user-select: none;
}

body.ss-guard #secure-viewer {
  -webkit-touch-callout: none;
}

.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-soft);
  color: var(--purple);
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}

/* Live real */
.live-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 10px;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 640px);
  background: #111;
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.18);
}

.live-studio.is-active .live-stage {
  max-width: min(100%, 480px);
  max-height: min(74vh, 680px);
  border-radius: 18px;
}

.live-stage video,
.live-stage .live-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-stage video.is-mirrored {
  transform: scaleX(-1);
}

.live-stage.blur-bg video {
  filter: blur(0);
}

.live-stage .bg-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(16px);
  background: rgba(26, 26, 26, 0.25);
  pointer-events: none;
  display: none;
}

.live-stage.blur-bg .bg-blur {
  display: block;
}

.live-hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.55), transparent);
}

.live-hud-top .live-badge,
.live-hud-top .live-preview-pill {
  flex-shrink: 0;
}

.live-hud-top .live-meta-pill {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.92;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 10px;
  border-radius: 999px;
}

.live-hud-top .viewers {
  flex-shrink: 0;
  margin-left: auto;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.live-side-rail {
  position: absolute;
  top: 52px;
  left: 8px;
  bottom: 148px;
  z-index: 6;
  width: 72px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
}

.live-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 4px 2px;
  color: #fff;
}

.live-side-head strong {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.live-side-invite-all {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(117, 47, 238, 0.92);
  color: #fff;
  padding: 0;
  box-shadow: 0 4px 12px rgba(117, 47, 238, 0.45);
}

.live-side-invite-all svg {
  width: 14px;
  height: 14px;
}

.live-side-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.live-side-list::-webkit-scrollbar {
  display: none;
}

.live-side-user {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: center;
}

.live-side-user .avatar {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.live-side-user.is-in .avatar {
  border-color: #ff4fa3;
}

.live-side-user.is-invited .avatar {
  border-color: #996bf1;
  box-shadow: 0 0 0 2px rgba(153, 107, 241, 0.45);
}

.live-side-name {
  max-width: 64px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-side-user .chip-kick {
  position: absolute;
  top: -2px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ff3b6b;
  color: #fff;
  padding: 0;
  border: 2px solid rgba(0, 0, 0, 0.35);
}

.live-side-user .chip-kick svg {
  width: 10px;
  height: 10px;
}

.live-hud-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
  padding-left: 88px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72) 35%);
  pointer-events: none;
}

.live-hud-bottom .live-title-overlay,
.live-hud-bottom .live-chat-box,
.live-hud-bottom .live-input-row {
  pointer-events: auto;
}

.live-title-overlay {
  margin: 0;
}

.live-title-overlay strong {
  display: inline-block;
  max-width: 100%;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat-box {
  max-height: 96px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scrollbar-width: thin;
}

.live-chat-box .row {
  background: rgba(0, 0, 0, 0.42);
  padding: 5px 9px;
  border-radius: 12px;
  font-size: 12px;
  width: fit-content;
  max-width: 100%;
  line-height: 1.3;
}

.live-chat-box .row b {
  margin-right: 4px;
}

.live-invite-row {
  display: none;
}

.live-invite-empty {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  padding: 4px 2px;
}

.live-viewer-chip {
  flex: 0 0 auto;
  width: 72px;
  text-align: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  position: relative;
}

.live-viewer-chip .avatar {
  margin: 0 auto 4px;
  border: 2px solid var(--pink);
}

.live-viewer-chip .chip-kick {
  position: absolute;
  top: -2px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ff3b6b;
  color: #fff;
  padding: 0;
  border: 2px solid rgba(0, 0, 0, 0.35);
}

.live-viewer-chip .chip-kick svg {
  width: 11px;
  height: 11px;
}

.live-chat-box .row.is-system {
  opacity: 0.9;
  font-style: italic;
  background: rgba(255, 79, 163, 0.25);
}

.live-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.live-input-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
}

.live-input-row button {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #752fee;
  color: #fff;
}

.live-kick-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
}

.live-kick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
}

.live-kick-row span {
  flex: 1;
  min-width: 0;
}

.live-kick-row strong {
  display: block;
  font-size: 13px;
}

.live-kick-row small {
  color: var(--muted);
  font-size: 11px;
}

.btn-kick {
  flex-shrink: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 79, 163, 0.14);
  color: var(--pink);
  font-size: 11px;
  font-weight: 800;
}

.btn-kick.undo {
  background: var(--purple-soft);
  color: var(--purple);
}

.muted-list {
  opacity: 0.85;
}

.live-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding-bottom: 4px;
}

.live-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 11px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.live-toolbar button span {
  display: inline-flex;
  color: var(--purple);
}

.live-toolbar button.danger {
  grid-column: 1 / -1;
  background: #ff3b6b;
  color: #fff;
  border-color: transparent;
}

.live-toolbar button.danger span {
  color: #fff;
}

@media (max-width: 380px) {
  .live-side-rail {
    width: 64px;
    bottom: 132px;
  }
  .live-hud-bottom {
    padding-left: 76px;
  }
  .live-side-user .avatar {
    width: 40px;
    height: 40px;
  }
}

.live-edit-panel {
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.live-edit-panel.is-live {
  max-height: 42vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.live-edit-panel .field,
.media-edit-panel .field,
.form > * {
  min-width: 0;
  max-width: 100%;
}

.live-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.live-edit-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}

.live-edit-head strong svg {
  color: var(--purple);
}

.live-title-chips,
.live-mode-row {
  margin-bottom: 4px;
  padding-bottom: 8px;
}

.live-title-chip,
.live-mode-chip {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: #f8f5fc;
  border: 1px solid var(--line);
}

.live-title-chip.active,
.live-mode-chip.active {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
}

.live-edit-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.live-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #f8f5fc;
  border: 1px solid var(--line);
  text-align: left;
}

.live-toggle svg {
  flex: 0 0 auto;
  color: var(--muted);
}

.live-toggle.on {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--purple) 45%, var(--line));
  background: color-mix(in srgb, var(--purple) 10%, #fff);
}

.live-toggle.on svg {
  color: var(--purple);
}

.live-meta-pill {
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.live-title-overlay {
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  font-size: 15px;
}

#live-video.is-mirrored {
  transform: scaleX(-1);
}

#live-video.is-beauty {
  filter: brightness(1.06) contrast(0.96) saturate(1.08);
}

#live-video.is-mirrored.is-beauty {
  transform: scaleX(-1);
  filter: brightness(1.06) contrast(0.96) saturate(1.08);
}

.live-input-row {
  display: flex;
  gap: 8px;
}

.live-input-row input {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
}

.live-input-row button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
}

.avatar.clickable {
  cursor: pointer;
}

.name-link {
  background: none;
  border: 0;
  font: inherit;
  font-weight: 800;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.api-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
}

.api-pill.live {
  background: #ffe8f4;
  color: var(--pink);
}

button.post-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.post-text[data-open-post] {
  cursor: pointer;
}

.loc-chip.live {
  background: linear-gradient(135deg, #ede4ff, #ffe8f4);
  color: var(--ink);
  border: 1px solid rgba(117, 47, 238, 0.25);
}

.loc-edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.loc-edit-row input {
  flex: 1;
}

.btn-loc-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(117, 47, 238, 0.25);
  background: #fff;
  color: var(--purple);
  font-weight: 700;
  font-size: 12px;
}

.active-user.see-all .see-all-avatar {
  background: linear-gradient(145deg, #ede4ff, #ffe8f4);
  color: var(--purple);
  display: grid;
  place-items: center;
}

.discover-filters {
  padding: 0 16px 12px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.online-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.discover-list {
  padding: 4px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discover-card {
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(40, 20, 70, 0.06);
}

.discover-main {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.discover-main span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.discover-main strong {
  font-size: 15px;
}

.discover-main span span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.discover-main .tags {
  color: var(--purple) !important;
  font-weight: 600 !important;
}

.discover-acts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-outline.sm,
.btn-primary.sm {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 999px;
}

.dot-on {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  margin-left: 4px;
}

.comment-list.compact {
  padding-top: 0;
}

.file-chip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  background: var(--purple-soft);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
}

.file-chip .fico {
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 2px;
}

.file-chip strong {
  display: block;
  font-size: 13px;
}

.file-chip span {
  font-size: 11px;
  color: var(--muted);
}

.file-chip.audio {
  flex-direction: row;
}

.search-hits {
  padding: 4px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-hit {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: var(--white);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.search-hit .hit-type {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-soft);
  border-radius: 999px;
  padding: 6px 8px;
  flex-shrink: 0;
}

.search-hit .hit-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-hit .hit-body strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-hit .hit-body span {
  font-size: 11px;
  color: var(--muted);
}

.linkish {
  border: 0;
  background: transparent;
  color: var(--purple);
  font-weight: 700;
  font-size: 13px;
}

/* Full bleed: telefon / APK / PWA — çerçeve yok */
@media (max-width: 520px), (hover: none) and (pointer: coarse), (display-mode: standalone), (display-mode: fullscreen) {
  html,
  body {
    background: var(--bg);
  }

  .app {
    padding: 0;
    background: var(--bg);
    place-items: stretch;
  }

  .phone {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .status-bar {
    display: none;
  }
}

/* Masaüstü önizleme dışında da sunucu mobil genişlikte çerçevesiz */
@media (max-width: 430px) {
  .app {
    padding: 0;
    background: var(--bg);
  }

  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .status-bar {
    display: none;
  }
}
/* ——— Admin paneli ——— */
.admin-entry .body strong { color: var(--purple); }
.admin-tabs { display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-tab { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 700; color: var(--muted); }
.admin-tab.active { background: var(--purple); border-color: var(--purple); color: #fff; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px 12px; }
.admin-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; text-align: center; }
.admin-stat strong { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.admin-stat span { font-size: 10px; font-weight: 600; color: var(--muted); }
.admin-meta { padding: 0 16px 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.admin-list, .admin-audit, .admin-daily, .admin-form { padding: 0 16px 20px; display: grid; gap: 10px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 8px; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-card-row { grid-template-columns: 1fr auto; align-items: center; }
.admin-field, .admin-form label, .admin-daily label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.admin-field textarea, .admin-form input, .admin-form textarea, .admin-daily input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; }
.admin-row-2 { display: grid; grid-template-columns: 80px 1fr; gap: 8px; }
.admin-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 13px !important; color: var(--ink) !important; }
.admin-audit-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.admin-audit-row strong { font-size: 12px; }
.admin-audit-row span { font-size: 12px; color: var(--muted); }
.admin-audit-row small { font-size: 10px; color: var(--muted); }
.admin-user-id { display: flex; gap: 10px; align-items: flex-start; }
.admin-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.admin-av-fallback { width: 40px; height: 40px; border-radius: 50%; background: #f0e8ff; color: var(--purple); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.admin-group-media-row { display: flex; align-items: center; gap: 12px; }
.admin-group-cover { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #f0e8ff; }
.admin-group-cover-empty { width: 64px; height: 48px; border-radius: 10px; background: #f8f5fc; display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.admin-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 16px 20px; }
.admin-media-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: grid; gap: 6px; }
.admin-media-item img,
.admin-media-item video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f0e8ff; }
.admin-media-item .btn-ghost.sm { padding: 6px 10px; font-size: 0.8rem; }
.admin-user-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-user-actions .btn-ghost, .admin-user-actions .btn-save { padding: 8px 10px; font-size: 12px; min-height: 0; }
