:root {
  scrollbar-gutter: stable;
  --blue: #00aaff;
  --ink: #171923;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f4f7;
  --card: #ffffff;
  --gold: #ffda7a;
  --border: #e5e7eb;
  --feed-thumbnail-size: 160px;
  --community-layout-width: min(1150px, calc(100% - 32px));
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.no-scroll { overflow: hidden !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell, .content-panel, .side-panel, .post-card, .community-card { min-width: 0; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  padding-inline: calc((100% - var(--community-layout-width)) / 2);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-search {
  position: relative;
  display: flex;
  flex: 0 1 420px;
  min-width: 0;
}
.header-search input { min-width: 0; opacity: 1; }
.header-search input::placeholder { color: var(--muted); }
.search-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.search-heading h1 { margin: 0; font-size: 22px; }
.search-results { display: grid; gap: 12px; }
.search-results .post-excerpt { display: block; overflow-wrap: anywhere; }
.search-result-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.search-result-link:hover { text-decoration: underline; }
.search-results mark { background: #ffebaa; color: inherit; }
.search-matched-comments { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.search-matched-comment { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.search-matched-comment > .avatar { flex: 0 0 32px; width: 32px; height: 32px; }
.search-comment-bubble { flex: 1; min-width: 0; padding: 10px 12px; border: 0; background: var(--bg); border-radius: 12px; color: inherit; text-align: left; overflow-wrap: anywhere; }
.search-comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.search-comment-bubble:hover .search-comment-snippet { text-decoration: underline; }
.search-comment-snippet { display: block; margin-top: 4px; line-height: 1.45; }
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  user-select: none;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.brand-logo__revista {
  color: #000;
  font-family: "League Gothic", Impact, sans-serif;
  font-size: 2.05rem;
  text-transform: uppercase;
  font-weight: 400;
}
.brand-logo__dj {
  margin-left: 5px;
  color: var(--blue);
  font-family: "Gabarito", Inter, sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: #4b5563;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tabs, .session, .filter-row, .leaderboard-tabs { display: flex; align-items: center; gap: 8px; }
.tab, .chip, .icon-text {
  border: 1px solid var(--line);
  background: #fff;
  color: #4b5563;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 13px;
}
.tab.is-active, .chip.is-active { background: #4b5563; border-color: #4b5563; color: #fff; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  letter-spacing: .04em;
  box-shadow: 0 10px 24px rgba(0, 170, 255, .22);
  cursor: pointer;
}
.primary.small { padding: 9px 12px; font-size: 13px; }
.primary.wide { width: 100%; }
.primary:disabled { opacity: .55; cursor: not-allowed; }
.nav-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.header-notifications { position: relative; }
.notif-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.notif-button:hover,
.header-notifications.is-open .notif-button {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}
.notif-button__icon,
.notif-button__icon svg {
  width: 20px;
  height: 20px;
}
.notif-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  border: 2px solid #fff;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(239, 68, 68, .22);
}
.notif-badge[hidden] {
  display: none !important;
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(500px, calc(100vw - 40px));
  z-index: 160;
}
.notif-dropdown__panel {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .16);
}
.notif-dropdown__head,
.notif-dropdown__foot {
  padding: 16px 20px;
}
.notif-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #f3f4f6;
}
.notif-dropdown__head h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.notif-mark-all {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.notif-dropdown__list {
  min-height: 100px;
  max-height: 520px;
  overflow-y: auto;
}
.notif-dropdown__foot {
  border-top: 1px solid #f3f4f6;
  background: rgba(249, 250, 251, .8);
  color: #9ca3af;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}
.notif-item {
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 15px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  transition: background .18s ease;
}
.notif-item + .notif-item {
  border-top: 1px solid #f9fafb;
}
.notif-item:hover {
  background: #f9fafb;
}
.notif-item__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
  opacity: 0;
}
.notif-item.is-unread .notif-item__accent {
  opacity: 1;
}
.notif-item__tile,
.notif-empty__tile,
.notification-detail-tile {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid #f3f4f6;
  background: #f9fafb;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}
.notif-item__body {
  min-width: 0;
  flex: 1;
}
.notif-item__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 3px;
}
.notif-item__row strong {
  flex: 1;
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
}
.notif-item__row span {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.notif-item__message {
  color: #6b7280;
  display: -webkit-box;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.notif-item__dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-top: 14px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 8px 16px rgba(239, 68, 68, .2);
}
.notif-empty,
.notif-loading {
  padding: 42px 28px;
  text-align: center;
}
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.notif-empty strong {
  color: #9ca3af;
  font-size: 15px;
  font-weight: 900;
}
.notif-empty p,
.notif-loading {
  color: #c2c7d0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}
.avatar-button { border: 0; background: transparent; padding: 0; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.avatar-button img, .avatar-button span { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; background: #e5e7eb; font-weight: 900; }
.main-grid {
  width: var(--community-layout-width);
  margin: 32px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
}
.main-grid.is-fullwidth {
  grid-template-columns: 1fr;
  max-width: 1040px;
}
.main-grid.is-fullwidth .side-panel {
  display: none;
}
.content-panel { min-width: 0; }
.view.is-hidden { display: none; }
.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
h1 { margin: 0; font-size: 28px; letter-spacing: 0; line-height: 1.1; }
h2, h3 { margin: 0; letter-spacing: 0; }
p { line-height: 1.55; }
.feed-head p { color: var(--muted); margin: 6px 0 0; font-weight: 600; }

select, input, textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  width: 100%;
}
textarea { resize: vertical; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.post-card, .rank-row, .profile-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.post-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; transition: all 0.2s; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); overflow: visible; }
.post-card.is-pinned { border-color: var(--blue); box-shadow: 0 0 15px rgba(0,170,255,0.2); }
.post-card.is-hidden-post {
  background: rgba(255,255,255,0.30);
  border-color: rgba(229,231,235,0.30);
  box-shadow: none;
}
.post-card.is-hidden-post .post-header > .author-mini,
.post-card.is-hidden-post .post-body-row,
.post-card.is-hidden-post .post-actions { opacity: 0.30; }
.post-card:has(.entity-menu.is-open),
.comment-thread:has(.entity-menu.is-open) { z-index: 320; }
.post-card:hover { border-color: #ddd; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.post-input-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.2s; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.post-input-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.post-input-card .avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.post-input-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-input-card .fake-input,
.header-search input {
  flex: 1;
  background: #F3F4F7;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.header-search input { padding-inline-start: 42px; color: var(--ink); }
.header-search-icon {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.avatar-placeholder { width: 100%; height: 100%; background: #e5e7eb; border-radius: 50%; display: grid; place-items: center; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.chip { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #4B5563; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.chip:hover { background: #F9FAFB; }
.chip.is-active { background: #6B7280; color: #fff; border-color: #6B7280; }

.sort-container { position: relative; margin-left: auto; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }
.feed-notification-banner {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 0 10px;
  cursor: pointer;
  transition: transform .18s ease;
}
.feed-notification-banner:hover {
  transform: scale(1.01);
}
.feed-notification-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.feed-notification-banner__inner strong {
  color: #1f2937;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}
.feed-notification-banner__emoji {
  font-size: 22px;
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, .08));
}
.sort-trigger { background: #fff; border: 1px solid var(--border); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: #4B5563; cursor: pointer; transition: all 0.2s; }
.sort-trigger:hover { background: #F9FAFB; border-color: #999; }
.sort-menu { position: absolute; top: 100%; right: 0; margin-top: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); width: 160px; z-index: 100; overflow: hidden; }
.sort-menu button { width: 100%; text-align: left; padding: 12px 16px; font-size: 14px; font-weight: 700; color: #111827; background: none; border: none; cursor: pointer; }
.sort-menu button:hover { background: #F3F4F6; }
.sort-menu button.is-active { background: var(--blue); color: #fff; }

.post-title { font-size: 17px; font-weight: 900; margin: 0; line-height: 1.3; color: #111827; }
.post-excerpt {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.post-detail-content { font-size: 14px; color: #4B5563; line-height: 1.5; margin-bottom: 24px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
h1 { font-size: 24px; font-weight: 900; color: #111827; }
h2 { font-size: 20px; font-weight: 900; color: #111827; }
.post-header { display: flex; justify-content: space-between; align-items: flex-start; }
.post-header-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.entity-menu { position: relative; flex: 0 0 auto; }
.post-header-tools .entity-menu,
.detail-author-row > .entity-menu,
.comment-content-head .entity-menu { opacity: 0; pointer-events: none; transition: opacity .15s; }
.post-card:hover .post-header-tools .entity-menu,
.post-header-tools .entity-menu.is-open,
.detail-author-row:hover > .entity-menu,
.detail-author-row > .entity-menu.is-open,
.comment-thread:hover .comment-content-head .entity-menu,
.comment-content-head .entity-menu.is-open { opacity: 1; pointer-events: auto; }
.menu-trigger {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  display: grid;
  place-items: center;
  padding: 0;
}
.menu-trigger:hover,
.menu-trigger:focus-visible { background: #f3f4f6; border-color: transparent; outline: 0; box-shadow: none; }
.menu-trigger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.action-menu {
  position: fixed;
  z-index: 260;
  width: max-content;
  min-width: 180px;
  max-width: 280px;
  padding: 8px 0;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.action-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
}
.action-menu button:hover { background: #f3f4f6; }
.action-menu button.is-critical { color: #ef4444; }
.action-menu button.is-critical:hover { background: #fef2f2; }
.back-btn { display: none; }
.post-body-row { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; }
.post-content-main { flex: 1; min-width: 0; overflow: hidden; }

.post-thumbnail { flex-shrink: 0; width: var(--feed-thumbnail-size); height: var(--feed-thumbnail-size); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); position: relative; align-self: center; padding: 0; background: #eef0f3; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.post-thumbnail .video-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.1); }

.post-media-scroll { position: relative; margin-bottom: 24px; }
.post-media-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 0;
  scrollbar-width: none;
}
.post-media-scroll-container::-webkit-scrollbar { display: none; }
.post-media-scroll-item { flex: 0 0 auto; width: min(180px, calc(100vw - 140px)); height: 180px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; transition: transform 0.2s; padding: 0; background: #eef0f3; scroll-snap-align: start; }
.post-media-scroll-item:hover { transform: scale(1.01); }
.post-media-scroll-item img { width: 100%; height: 100%; object-fit: cover; }
.post-media-scroll.is-scrollable::before,
.post-media-scroll.is-scrollable::after {
  content: '';
  position: absolute;
  top: 0;
  width: 56px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
.post-media-scroll.is-scrollable.has-left-fade::before {
  left: 0;
  background: linear-gradient(90deg, #fff 18%, rgba(255,255,255,0));
  opacity: 1;
}
.post-media-scroll.is-scrollable.has-right-fade::after {
  right: 0;
  background: linear-gradient(270deg, #fff 18%, rgba(255,255,255,0));
  opacity: 1;
}
.post-media-scroll-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #6b7280;
  box-shadow: 0 10px 24px rgba(15,23,42,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.post-media-scroll-control:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15,23,42,.22);
}
.post-media-scroll-control[hidden] { display: none; }
.post-media-scroll-control svg {
  width: 18px;
  height: 18px;
}
.post-media-scroll-control.is-left { left: 12px; }
.post-media-scroll-control.is-right { right: 12px; }
@media (max-width: 640px) {
  .post-media-scroll-control { width: 40px; height: 40px; margin-top: -20px; }
  .post-media-scroll-control.is-left { left: 8px; }
  .post-media-scroll-control.is-right { right: 8px; }
}

.lazy-video { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; margin-bottom: 24px; cursor: pointer; border: 1px solid var(--border); }
.lazy-video img { width: 100%; height: 100%; object-fit: cover; }
.lazy-video .play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }

.yt-play-svg { width: 68px; height: 48px; opacity: 0.8; transition: all 0.2s; }
.yt-play-feed { width: 22px; height: 16px; opacity: 0.9; }
.lazy-video:hover .yt-play-svg { opacity: 1; transform: scale(1.1); }
.yt-play-bg { fill: #212121; transition: fill 0.2s; }
.lazy-video:hover .yt-play-bg { fill: #ff0000; }

.author-line, .post-actions, .rank-row, .comment-line { display: flex; align-items: center; gap: 12px; }
.author-line { justify-content: space-between; margin-bottom: 12px; }
.author-mini { display: flex; align-items: center; min-width: 0; gap: 10px; }
.author-mini > div { min-width: 0; overflow: hidden; }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #eef0f3; flex: 0 0 auto; }
.author-name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; color: var(--ink); text-decoration: none; }
.meta { color: var(--muted); font-weight: 700; font-size: 13px; overflow-wrap: anywhere; word-break: break-word; }
.post-title { font-size: 17px; font-weight: 900; margin: 0 0 6px; overflow-wrap: anywhere; word-break: break-word; }
.post-media { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.media-count-1 { grid-template-columns: 1fr; }
.media-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: #eef0f3;
}
.media-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.media-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
}
.media-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media-link { color: var(--blue); font-weight: 900; text-decoration: none; }
.post-actions { margin-top: 14px; color: var(--muted); font-weight: 900; flex-wrap: wrap; }
.action-btn, .action-count { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 900; padding: 4px 8px 4px 0; }
.action-btn.is-liked { color: var(--blue); }
.post-recent-comments { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.post-recent-avatars { display: inline-flex; align-items: center; }
.post-recent-avatars img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  background: #eef0f3;
  margin-left: -8px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}
.post-recent-avatars img:first-child { margin-left: 0; }
.post-recent-text {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inline-icon { width: 19px; height: 19px; display: inline-grid; place-items: center; color: currentColor; }
.inline-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.action-btn.is-liked .inline-icon svg { fill: var(--blue); }
.badge { display: inline-flex; align-items: center; border-radius: 6px; padding: 2px 6px; font-size: 10px; text-transform: uppercase; font-weight: 900; background: var(--blue); color: #fff; }
.side-panel { display: flex; flex-direction: column; gap: 18px; }
.community-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 0 20px 22px;
}
.community-card.compact { padding: 18px; text-align: left; }
.cover { height: 82px; background: var(--blue); margin: 0 -20px; }
.community-logo {
  width: fit-content;
  min-width: 68px;
  min-height: 68px;
  margin: -34px auto 14px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 16px;
  background: #fff;
  padding: 10px 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.community-wordmark .brand-logo__revista { font-size: 1.85rem; }
.community-wordmark .brand-logo__dj { font-size: 1.95rem; }
.community-card h2 { font-size: 14px; font-weight: 950; overflow-wrap: anywhere; word-break: break-word; }
.community-card p { color: var(--muted); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.rank-row { justify-content: space-between; }
.rank-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rank-left strong { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #eef0f3; font-weight: 900; color: #4b5563; }
.rank-points { color: var(--blue); font-weight: 900; flex: 0 0 auto; }

/* Sidebar Leaderboard & Progress Ring */
.user-progress-section { display: flex; flex-direction: column; align-items: center; padding: 10px 0; }
.progress-ring { position: relative; width: 160px; height: 160px; margin-bottom: 12px; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring circle { transition: stroke-dashoffset 1s ease-out; }
.progress-ring .avatar-container { position: absolute; inset: 12px; display: flex; align-items: center; justify-content: center; }
.progress-ring .avatar-container .avatar { width: 100%; height: 100%; border-radius: 50%; border: 0; box-shadow: inset 0 2px 4px rgba(0,0,0,.05); }
.progress-ring .level-badge {
  position: absolute; bottom: 8px; right: 8px; width: 36px; height: 36px; background: #1877f2;
  color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; border: 4px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.user-level-info { text-align: center; }
.level-label { color: #1877f2; font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.points-label { color: #6b7280; font-size: 13px; font-weight: 600; }
.points-label strong { color: #111827; }
.sidebar-divider { height: 1px; background: #f1f5f9; margin: 16px 0; }
.sidebar-ranking-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sidebar-small-title { font-size: 14px; font-weight: 950; color: #111827; margin: 0 0 16px 0; }
.last-update { font-size: 11px; color: #9ca3af; font-weight: 600; }

.sidebar-rank { font-size: 14px; padding: 6px 0; border: 0 !important; box-shadow: none !important; }
.sidebar-rank .avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.rank-badge {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #fff; flex-shrink: 0; position: relative;
}
.rank-badge::after {
  content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent; display: none;
}
.rank-badge.rank-1 { background: #eab308; }
.rank-badge.rank-2 { background: #94a3b8; }
.rank-badge.rank-3 { background: #b45309; }
.rank-badge.rank-1::after, .rank-badge.rank-2::after, .rank-badge.rank-3::after { display: block; }
.rank-badge.rank-1::after { border-top: 6px solid #eab308; }
.rank-badge.rank-2::after { border-top: 6px solid #94a3b8; }
.rank-badge.rank-3::after { border-top: 6px solid #b45309; }
.rank-badge:not(.rank-1):not(.rank-2):not(.rank-3) { background: transparent; color: #9ca3af; font-size: 15px; }

.rank-name { font-weight: 600; color: #111827; }
.sidebar-rank .rank-points { color: #3b82f6; font-weight: 800; }

.sidebar-leaderboard-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f5f9; text-align: center; }
.text-link { background: none; border: 0; color: #3b82f6; font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px; letter-spacing: 0.5px; }
.text-link:hover { text-decoration: underline; }

/* Leaderboard Page */
.leaderboard-page-container { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.user-summary-card {
  background: #fff; border-radius: 20px; border: 1px solid #eef0f3; padding: 32px;
  display: flex; flex-direction: row; align-items: center; gap: 48px;
  box-shadow: 0 4px 12px rgba(0,0,0,.03);
}
.user-summary-left { display: flex; flex-direction: column; align-items: center; text-align: center; }
.progress-ring.large { width: 190px; height: 190px; }
.progress-ring.large .avatar-container { inset: 13px; }
.progress-ring.large .level-badge {
  bottom: 8px; right: 8px; width: 40px; height: 40px; font-size: 20px; border-width: 4px;
}
.user-summary-name { font-size: 22px; font-weight: 950; margin: 18px 0 4px; color: #111827; }
.user-summary-level { font-size: 14px; font-weight: 700; color: #1877f2; margin-bottom: 4px; }
.user-summary-next { font-size: 13px; font-weight: 700; color: #6b7280; }
.blue-text { color: #1877f2; }

.levels-grid { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.level-status-item { display: flex; align-items: center; gap: 12px; opacity: 0.5; }
.level-status-item.is-reached { opacity: 1; }
.level-status-icon {
  width: 40px; height: 40px; border-radius: 50%; background: #f3f4f6; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #9ca3af; border: 1px solid #eef0f3;
}
.level-status-item.is-reached .level-status-icon {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.is-reached .level-status-icon .svg-lock { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #9ca3af; }
.level-status-name { font-size: 14px; font-weight: 700; color: #111827; }
.level-status-points { font-size: 12px; color: #9ca3af; font-weight: 600; }

.last-update-text { font-size: 12px; color: #9ca3af; font-weight: 600; font-style: italic; margin-top: -8px; }

.leaderboard-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.leaderboard-col { background: #fff; border-radius: 16px; border: 1px solid #eef0f3; overflow: hidden; display: flex; flex-direction: column; }
.col-head { padding: 16px 20px; border-bottom: 1px solid #f9fafb; }
.col-head h2 { font-size: 17px; font-weight: 800; margin: 0; }
.col-list { display: flex; flex-direction: column; }
.rank-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #f9fafb; transition: background .2s; }
.rank-item:hover { background: #fcfdfe; }
.rank-item:last-child { border-bottom: 0; }
.rank-item-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rank-num-box { width: 32px; display: flex; justify-content: center; }
.rank-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.rank-icon-1 { background: #fef3c7; color: #d97706; border: 1px solid #fcd34d; }
.rank-icon-2 { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.rank-avatar-link { text-decoration: none; display: flex; flex-shrink: 0; }
.rank-avatar-link:hover { opacity: 0.8; }
.rank-username { font-size: 14px; font-weight: 700; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; flex: 1; }
.rank-username:hover { text-decoration: underline; color: #1877f2; }
.sidebar-rank .rank-name { font-weight: 600; color: #111827; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.sidebar-rank .rank-name:hover { text-decoration: underline; color: #1877f2; }
.rank-val { font-size: 13px; font-weight: 800; color: #1877f2; flex-shrink: 0; }

@media (max-width: 1024px) {
  .leaderboard-columns { grid-template-columns: 1fr; }
  .user-summary-card { flex-direction: column; gap: 24px; padding: 24px; }
  .levels-grid { grid-template-columns: 1fr; width: 100%; }
}

.modal {
  border: 0;
  background: transparent;
  padding: 16px;
  max-width: min(94vw, 620px);
  width: 100%;
  overflow: visible;
}
.modal::backdrop { background: rgba(17, 24, 39, .58); backdrop-filter: blur(2px); }
.modal-card {
  background: #fff;
  border-radius: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-modal__card {
  max-width: 392px;
  overflow: hidden;
  padding: 0 28px 30px;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
  text-align: center;
  gap: 16px;
}

.login-modal__cover {
  height: 104px;
  background: var(--blue);
  margin: 0 -28px;
}

.login-modal__logo {
  width: fit-content;
  min-width: 82px;
  min-height: 82px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 4px solid #fff;
  display: grid;
  place-items: center;
  background: #fff;
  margin: -41px auto 14px;
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
  position: relative;
  z-index: 1;
}

.login-modal__logo .brand-logo__revista { font-size: 2rem; }
.login-modal__logo .brand-logo__dj { font-size: 2.1rem; }

.login-modal__card h2 {
  margin: 0;
  text-align: center;
  font-size: 28px;
}

.login-modal__card label {
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}
.detail-modal { max-width: min(94vw, 760px); }
.detail-card {
  max-height: calc(100vh - 64px);
  min-height: 400px;
  overflow: hidden;
  padding: 0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
}
.notification-modal {
  max-width: min(94vw, 540px);
}
.notification-detail-card {
  border-radius: 32px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15, 23, 42, .24);
}
#notificationDetailMount {
  padding: 32px;
}
.notification-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid #f3f4f6;
}
.notification-detail-copy {
  min-width: 0;
  padding-right: 36px;
}
.notification-detail-copy h2 {
  color: #111827;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.3;
}
.notification-detail-copy p {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.notification-detail-body {
  padding: 26px 0 0;
  color: #4b5563;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}
.notification-detail-actions {
  padding-top: 28px;
  display: flex;
  justify-content: flex-end;
}
.notification-detail-actions .primary {
  min-width: 160px;
}
#postDetailMount { min-height: 0; display: flex; flex-direction: column; flex: 1; }
.detail-scroll { flex: 1; overflow-y: auto; padding: 24px 32px 0; transition: opacity 0.2s; scrollbar-gutter: stable; }
.detail-scroll.no-scroll { overflow: hidden !important; }
.detail-scroll.is-hidden-post .detail-author-row > div:first-child,
.detail-scroll.is-hidden-post .detail-title,
.detail-scroll.is-hidden-post .post-detail-content,
.detail-scroll.is-hidden-post .detail-media,
.detail-scroll.is-hidden-post .detail-comments { opacity: 0.30; }
.detail-author-row { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.detail-author .avatar { width: 42px; height: 42px; border: 1px solid #f3f4f6; }
.detail-author strong { display: block; font-size: 16px; font-weight: 900; color: #111827; line-height: 1; margin-bottom: 7px; }
.detail-author strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-title { font-size: 17px; font-weight: 900; color: #111827; line-height: 1.3; margin: 0 0 12px; overflow-wrap: anywhere; word-break: break-word; }
.detail-actions { padding: 16px 0; border-bottom: 1px solid #f3f4f6; gap: 16px; color: #9ca3af; }
.detail-comments { display: flex; flex-direction: column; gap: 18px; padding: 24px 0; }
.comment-thread { display: flex; flex-direction: column; gap: 4px; min-width: 0; position: relative; }
.comment-thread.is-hidden-comment > .comment-line > a,
.comment-thread.is-hidden-comment > .comment-line > .comment-content > :not(.comment-content-head),
.comment-thread.is-hidden-comment > .comment-line > .comment-content > .comment-content-head > div:first-child,
.comment-thread.is-hidden-comment > .comment-actions { opacity: 0.30; }
.comment-thread-highlight { animation: comment-thread-highlight 1.8s ease; border-radius: 16px; }
.comment-thread.is-reply { margin-left: 48px; }
.comment-thread.is-reply > .comment-line > .avatar { width: 32px; height: 32px; }
@keyframes comment-thread-highlight {
  0% {
    background: rgba(90, 168, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(90, 168, 255, 0.22);
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}
.detail-comments .comment-line { border: 0; padding: 0; gap: 12px; }
.detail-comments .comment-line > div:last-child {
  flex: 1;
  min-width: 0;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.detail-comments .comment-line > .comment-content { overflow: visible; }
.detail-comments .comment-line strong { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-content-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.comment-content-head > div:first-child { min-width: 0; }
.comment-content-head .menu-trigger { width: 28px; height: 28px; opacity: .55; }
.comment-content:hover .comment-content-head .menu-trigger,
.comment-content-head .menu-trigger:focus-visible { opacity: 1; }
.comment-content-head .menu-trigger svg { width: 18px; height: 18px; }
.comment-content-head .action-menu { min-width: 150px; border-radius: 10px; }
.comment-content-head .action-menu button { font-size: 13px; padding: 9px 14px; }
.comment-media-scroll {
  position: relative;
  max-width: 100%;
  padding: 12px 0 8px;
}
.comment-media-scroll-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.comment-media-scroll-container::-webkit-scrollbar { display: none; }
.comment-media-item {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #eef0f3;
  cursor: pointer;
  scroll-snap-align: start;
}
.comment-media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comment-media-scroll.is-scrollable::before,
.comment-media-scroll.is-scrollable::after {
  content: '';
  position: absolute;
  top: 12px;
  width: 36px;
  height: calc(100% - 20px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
.comment-media-scroll.is-scrollable.has-left-fade::before {
  left: 0;
  background: linear-gradient(90deg, #fff 24%, rgba(255,255,255,0));
  opacity: 1;
}
.comment-media-scroll.is-scrollable.has-right-fade::after {
  right: 0;
  background: linear-gradient(270deg, #fff 24%, rgba(255,255,255,0));
  opacity: 1;
}
.comment-media-scroll-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #6b7280;
  box-shadow: 0 8px 20px rgba(15,23,42,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.comment-media-scroll-control:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15,23,42,.2);
}
.comment-media-scroll-control[hidden] { display: none; }
.comment-media-scroll-control svg { width: 16px; height: 16px; }
.comment-media-scroll-control.is-left { left: 6px; }
.comment-media-scroll-control.is-right { right: 6px; }
.comment-video {
  margin: 14px 0 0;
  max-width: 420px;
  border-radius: 12px;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(4px);
}
.lightbox-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.lightbox-controls { display: flex; align-items: center; gap: 20px; }
.lightbox-controls button,
.lightbox-nav {
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.lightbox-controls button { width: 42px; height: 42px; font-size: 30px; line-height: 1; }
.lightbox-controls button:hover,
.lightbox-nav:hover { background: rgba(255,255,255,.1); }
.lightbox-controls svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 210;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}
.lightbox-nav.left { left: 24px; }
.lightbox-nav.right { right: 24px; }
.lightbox-nav svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-stage {
  width: 100%;
  height: 100%;
  padding: 80px 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lightbox-stage img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 0 100px rgba(0,0,0,.9);
  pointer-events: auto;
}
.lightbox-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 210;
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.05);
}
.lightbox-dots button {
  border: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  padding: 0;
}
.lightbox-dots button.is-active { width: 24px; background: #fff; }
.comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 54px;
  color: #6B7280;
  font-size: 13px;
  font-weight: 900;
}
.comment-thread.is-reply .comment-actions { margin-left: 42px; }
.comment-action {
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 4px 8px;
  margin-left: -8px;
  font-weight: 900;
}
.comment-action:hover { background: #e5e7eb; }
.comment-action.is-liked { color: var(--blue); background: rgba(0,170,255,.08); }
.comment-action .inline-icon { width: 14px; height: 14px; }
.comment-action.is-liked .inline-icon svg { fill: var(--blue); }
.inline-reply-form {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 0 54px;
}
.comment-thread.is-reply .inline-reply-form { margin-left: 42px; }
.inline-reply-form .avatar { width: 32px; height: 32px; }
.inline-reply-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.detail-empty { text-align: center; padding: 40px 0; margin: 0; color: #9ca3af; font-weight: 700; }
.comments-closed { padding: 16px 24px 24px; border-top: 1px solid #f3f4f6; color: #9ca3af; font-weight: 800; text-align: center; background: #fff; }
.detail-comment-form {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px solid #f3f4f6;
  background: #fff;
  box-shadow: 0 -4px 10px rgba(0,0,0,.02);
}
.detail-comment-form .avatar { width: 40px; height: 40px; }
.comment-compose-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.comment-compose-box {
  position: relative;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.comment-compose-box:hover { box-shadow: 0 4px 10px rgba(15,23,42,.08); }
.comment-compose:not(.is-collapsed) .comment-compose-box { border-color: rgba(0,170,255,.35); box-shadow: 0 0 0 3px rgba(0,170,255,.06); }
.comment-compose-input { min-height: 44px; padding: 8px; }
.comment-compose-input textarea {
  width: 100%;
  border: 0;
  outline: 0;
  resize: none;
  min-height: 40px;
  max-height: 300px;
  padding: 4px;
  color: #111827;
  background: transparent;
}
.comment-compose-input textarea::placeholder { color: #6B7280; }
.comment-compose-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #f3f4f6;
  padding: 8px 10px;
  color: #aaa;
}
.comment-compose.is-collapsed .comment-compose-toolbar,
.comment-compose.is-collapsed .comment-compose-actions,
.comment-compose.is-collapsed .comment-image-previews,
.comment-compose.is-collapsed .comment-video-preview { display: none; }
.comment-compose-tools { display: flex; align-items: center; gap: 12px; }
.tool-btn.compact { width: 28px; height: 28px; }
.tool-btn.compact svg { width: 18px; height: 18px; }
.comment-emoji-row { display: flex; flex-wrap: wrap; gap: 4px; }
.comment-emoji-row > button {
  border: 0;
  background: transparent;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 18px;
}
.comment-emoji-row > button:hover { background: #f3f4f6; }
.comment-image-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.comment-preview {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.comment-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comment-video-preview { max-width: 100%; }
.comment-compose-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}
.comment-input-wrap {
  flex: 1;
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 8px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.comment-input-wrap textarea {
  border: 0;
  outline: 0;
  resize: none;
  min-height: 40px;
  padding: 9px 4px;
}
.close { position: absolute; right: 12px; top: 10px; border: 0; background: transparent; font-size: 28px; color: #6b7280; }
.composer-modal { max-width: min(94vw, 700px); }
.composer-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  position: relative;
  padding: 20px;
  overflow: visible;
}
.composer-card > .close:not(.composer-close),
.composer-card > h2,
.composer-card > label,
.composer-card > .primary.wide { display: none; }
.composer-author { display: flex; align-items: center; gap: 10px; }
.composer-author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}
.composer-author .avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.composer-author strong { font-size: 15px; color: #333; }
.composer-body { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.composer-title {
  border: 0;
  padding: 0;
  font-size: 24px;
  font-weight: 900;
  color: #111827;
  outline: 0;
}
.composer-title::placeholder, .composer-content::placeholder { color: #c7cbd1; }
.composer-content {
  border: 0;
  padding: 0;
  min-height: 130px;
  resize: none;
  overflow: hidden;
  outline: 0;
  color: #111827;
}
.composer-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.composer-preview {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #eef0f3;
}
.composer-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  border: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  background: rgba(17,24,39,.72);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}
.composer-video-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 48px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fafb;
}
.composer-video-preview[hidden] { display: none; }
.composer-video-preview .video-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0,170,255,.1);
  color: var(--blue);
  flex: 0 0 auto;
}
.composer-video-preview div:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.composer-video-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; font-weight: 700; }
.composer-video-preview .preview-remove {
  top: 8px;
  right: 8px;
}
.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.composer-tools, .composer-actions { display: flex; align-items: center; gap: 12px; }
.tool-btn {
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #9ca3af;
}
.tool-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-btn--gif {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  outline: none;
}
.tool-btn:hover { color: #4b5563; }
.category-picker { position: relative; }
.category-trigger {
  border: 1px solid var(--line);
  background: #fff;
  color: #6b7280;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
}
.category-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 300px;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
  padding: 8px;
  z-index: 70;
}
.category-option {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  text-align: left;
}
.category-option:hover { background: #f3f4f6; }
.ghost-btn {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.composer-submit { padding: 10px 18px; box-shadow: none; }
.ghost-btn, .composer-submit { font-size: 13px; line-height: 1; }
.emoji-menu, .gif-menu, .video-popover {
  position: absolute;
  left: 20px;
  bottom: 72px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(0,0,0,.16);
  z-index: 80;
}
.emoji-menu {
  width: min(340px, calc(100% - 40px));
  height: min(340px, 60dvh);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}
.gif-menu {
  width: min(410px, calc(100% - 40px));
  height: 450px;
  display: grid;
  grid-template-rows: auto 320px auto;
  gap: 10px;
  padding: 10px;
  min-height: 0;
  overflow: hidden;
}
.emoji-menu[hidden], .gif-menu[hidden], .video-popover[hidden] { display: none; }
.comment-emoji-menu {
  bottom: 100%;
  left: 0;
  margin-bottom: 12px;
  width: min(340px, 100%);
}
.comment-gif-menu {
  bottom: 100%;
  left: 0;
  margin-bottom: 12px;
  width: min(380px, calc(100vw - 40px));
}
.emoji-search {
  width: 100%;
  border-radius: 10px;
  background: #f3f4f6;
  border-color: #edf0f3;
  padding: 10px 12px;
  font-weight: 700;
}
.emoji-tabs {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 6px;
}
.emoji-menu .emoji-tabs button {
  border: 0;
  background: transparent;
  width: 100%;
  height: 28px;
  border-radius: 6px;
  font-size: 16px;
  padding: 0;
}
.emoji-tabs button.is-active { background: #eef0f3; }
.gif-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 8px;
  row-gap: 8px;
  padding-right: 2px;
}
.gif-grid-wrap {
  display: block;
  min-height: 0;
  height: 320px;
  overflow-y: scroll;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 2px;
}
.gif-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}
.gif-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.gif-card:hover {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.12);
}
.gif-picker-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 16px;
}
.gif-picker-foot {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: right;
  text-transform: uppercase;
}
.gif-picker-foot a {
  color: inherit;
  text-decoration: none;
}
.gif-picker-foot a:hover {
  color: var(--blue);
}
.gif-picker-more {
  display: grid;
  place-items: center;
  padding: 14px 0 4px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

/* Profile Page Layout */
.profile-layout {
  display: flex;
  gap: 32px;
  width: 100%;
  align-items: start;
}
.profile-main {
  flex: 1;
  max-width: 800px;
  min-width: 0;
}
.profile-sidebar {
  width: 320px;
  flex-shrink: 0;
}
.profile-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
}
.activity-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.activity-placeholder {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: 2px dashed #e5e7eb;
  border-radius: 10px;
}

.profile-posts-header {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin: 32px 0 16px;
}
.profile-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Profile Sidebar Card */
.profile-sidebar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  position: sticky;
  top: 100px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.profile-progress-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
}
.profile-progress-ring svg { transform: rotate(-90deg); }
.profile-progress-ring .avatar-container {
  position: absolute;
  inset: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-progress-ring .avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.profile-progress-ring .level-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  background: #1877f2;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  border: 4px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}

.profile-info-center { text-align: center; }
.profile-level-label { color: #1877f2; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.profile-points-next { font-size: 13px; color: #6b7280; margin-bottom: 18px; }
.profile-username-title { font-size: 22px; font-weight: 800; color: #111827; margin: 0 0 12px; }
.profile-bio { font-size: 14px; color: #4b5563; line-height: 1.6; margin-bottom: 24px; }

.profile-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}
.profile-edit-link {
  display: block;
  width: 100%;
  margin-top: 18px;
  border-radius: 999px;
  border: 1px solid #dbe5f0;
  background: #f8fbff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 16px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.profile-edit-link:hover {
  background: #eef7ff;
  border-color: #00aaff;
  transform: translateY(-1px);
}
.meta-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #111827; font-weight: 600; }
.meta-item .icon { font-size: 16px; width: 20px; text-align: center; }

.user-dropdown { position: relative; }
.user-panel {
  min-width: min(240px, calc(100vw - 20px));
  max-width: min(280px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
}
.user-panel .menu-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}
.user-panel .menu-header .name { font-weight: 800; color: #111827; font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-panel .menu-header .email { font-size: 12px; color: #6b7280; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-panel .divider { height: 1px; background: #f1f5f9; margin: 4px 0; }
.user-panel button {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  border-radius: 0;
  background: none;
  border: none;
}
.user-panel button:hover { background: #f9fafb; }
.user-panel button.is-critical { color: #ef4444; }
.user-panel button.is-critical:hover { background: #fef2f2; }

/* Settings Page Layout */
.settings-layout {
  display: flex;
  gap: 32px;
  width: 100%;
  align-items: start;
}
.settings-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-tab {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.settings-tab:hover { background: #f3f4f6; color: #111827; }
.settings-tab.is-active { background: #00aaff; color: #fff; }

.settings-content {
  flex: 1;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  min-height: 600px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.settings-title { font-size: 24px; font-weight: 900; color: #111827; margin-bottom: 32px; }

.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}
.avatar-preview-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  cursor: pointer;
}
.avatar-preview-wrapper .avatar-preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-preview-wrapper .avatar-preview .avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-preview-wrapper .avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.avatar-preview-wrapper:hover .avatar-overlay { opacity: 1; }
.avatar-preview-wrapper .icon { display: flex; align-items: center; justify-content: center; color: #fff; }
.avatar-preview-wrapper .icon svg { width: 24px; height: 24px; }
.avatar-delete-btn {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 8px 16px rgba(0,0,0,.22);
}
.avatar-delete-btn:hover { background: #b91c1c; }
.avatar-delete-btn svg { width: 16px; height: 16px; }

.photo-actions .link-btn {
  color: #00aaff;
  font-weight: 800;
  font-size: 15px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.photo-actions .link-btn:hover { text-decoration: underline; }
.photo-actions .meta { font-size: 13px; color: #9ca3af; margin-top: 4px; }

.settings-form { display: flex; flex-direction: column; gap: 24px; }
.settings-form.compact { gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-grid.narrow { grid-template-columns: minmax(0, 260px); }
.settings-divider {
  height: 1px;
  background: #eef2f7;
  margin: 44px 0 18px;
}
.settings-divider.compact {
  margin: 4px 0 2px;
}
.settings-subsection {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.subscription-divider {
  margin-top: 28px;
}
.settings-subsection-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #111827;
}
.settings-subsection-header p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #6b7280;
}
.settings-subsection-header + .settings-card,
.settings-subsection-header + .subscription-section {
  margin-top: 6px;
}
.settings-plain-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.settings-inline-meta {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
}
.settings-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  background: #fafcff;
}
.settings-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.settings-card-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}
.settings-card-meta {
  margin: 6px 0 0;
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
}
.form-footer.align-left { justify-content: flex-start; }
.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field-group label {
  font-size: 11px;
  font-weight: 800;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: -4px;
  padding-left: 4px;
}
.field-group input, .field-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  transition: border-color 0.2s;
}
.field-group input:focus, .field-group textarea:focus {
  border-color: #00aaff;
  outline: none;
}

.outline-btn {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s;
}
.outline-btn:hover { border-color: #00aaff; color: #00aaff; }

.platform-content { max-width: none; }
.platform-page { max-width: 1040px; }
.platform-subtitle {
  margin: -18px 0 28px;
  color: #6b7280;
  font-size: 15px;
  font-weight: 600;
}
.platform-stack { display: flex; flex-direction: column; gap: 18px; }
.platform-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.platform-input-card,
.platform-search-card,
.platform-textarea-card,
.platform-note-card,
.platform-compose-card,
.platform-banner-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}
.platform-input-card,
.platform-search-card,
.platform-textarea-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
}
.platform-input-card span,
.platform-search-card span,
.platform-textarea-card span,
.platform-emoji-picker span {
  font-size: 11px;
  font-weight: 800;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.platform-input-card input,
.platform-search-card input,
.platform-textarea-card textarea,
.platform-emoji-picker input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  outline: 0;
  padding: 0;
}
.platform-select-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.platform-select-card span {
  font-size: 11px;
  font-weight: 800;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.platform-select {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  outline: 0;
  padding: 14px 44px 14px 16px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.platform-select:focus {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 4px rgba(0, 170, 255, 0.12);
}
.platform-select option {
  color: #111827;
  background: #fff;
}
.platform-textarea-card textarea { resize: vertical; min-height: 120px; }
.platform-note-card,
.platform-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
}
.platform-note-card h3,
.platform-target-block h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}
.platform-note-card p,
.platform-banner-card p,
.platform-banner-card strong,
.platform-target-note {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}
.platform-banner-card p { color: #00aaff; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; }
.platform-banner-card strong { display: block; color: #111827; font-size: 16px; font-weight: 900; }
.platform-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}
.platform-toggle input { width: 18px; height: 18px; accent-color: #00aaff; }
.platform-actions-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.platform-results-list { display: flex; flex-direction: column; gap: 12px; }
.platform-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
}
.platform-user-main,
.platform-selected-user,
.platform-dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.platform-user-avatar { width: 44px; height: 44px; flex: 0 0 auto; }
.platform-user-avatar .avatar { width: 44px; height: 44px; }
.platform-user-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.platform-user-link { color: inherit; text-decoration: none; }
.platform-user-link:hover { text-decoration: underline; }
.platform-user-main > .platform-user-link:hover { text-decoration: none; }
.platform-user-copy strong {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.platform-user-copy span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.platform-user-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.platform-status-tag,
.platform-role-lock,
.platform-vip-btn,
.platform-clear-btn,
.platform-icon-btn,
.platform-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border: 1px solid transparent;
}
.platform-vip-btn,
.platform-clear-btn,
.platform-icon-btn,
.platform-chip,
.platform-dropdown-item {
  cursor: pointer;
}
.platform-status-tag.is-vip { background: #f3e8ff; color: #7c3aed; }
.platform-status-tag.is-member { background: #dcfce7; color: #15803d; }
.platform-status-tag.is-pending { background: #f3f4f6; color: #6b7280; }
.platform-role-lock { background: #eef6ff; color: #2563eb; }
.platform-vip-btn { background: #f3e8ff; color: #7c3aed; }
.platform-vip-btn.is-danger,
.platform-clear-btn.is-danger,
.platform-icon-btn.is-danger { background: #fef2f2; color: #dc2626; }
.platform-icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  background: #f3f4f6;
  color: #6b7280;
}
.platform-icon-btn .inline-icon { width: 16px; height: 16px; }
.platform-clear-btn {
  background: #f3f4f6;
  color: #374151;
}
.platform-channel-row { display: flex; gap: 10px; flex-wrap: wrap; }
.platform-chip {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}
.platform-chip.is-active {
  background: #00aaff;
  color: #fff;
  border-color: #00aaff;
}
.platform-compose-card { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.platform-emoji-picker {
  width: 72px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.platform-emoji-picker input {
  font-size: 28px;
  text-align: center;
}
.platform-target-block {
  border-top: 1px solid #eef2f7;
  padding-top: 20px;
}
.platform-target-note {
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 700;
}
.platform-dropdown-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.platform-dropdown-item {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 0;
  background: #fff;
}
.platform-dropdown-item + .platform-dropdown-item { border-top: 1px solid #f3f4f6; }
.platform-selected-user {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
}
.platform-empty {
  padding: 36px 24px;
  border: 1px dashed #dbe3ee;
  border-radius: 18px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
  font-weight: 700;
}
.platform-empty.compact { padding: 18px 16px; }
.platform-user-open,
.platform-user-name-button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.platform-user-open { display: flex; }
.platform-user-name-button:hover { text-decoration: underline; }
.platform-member-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.platform-back-btn { align-self: flex-start; }
.platform-detail-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
}
.platform-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.platform-detail-hero .platform-user-avatar,
.platform-detail-hero .platform-user-avatar .avatar {
  width: 64px;
  height: 64px;
}
.platform-detail-identity h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}
.platform-detail-identity h2 > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.platform-member-vip-star {
  flex: 0 0 auto;
  line-height: 1;
}
.platform-detail-identity p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}
.platform-detail-stats,
.platform-detail-grid {
  display: grid;
  gap: 12px;
}
.platform-detail-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.platform-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.platform-detail-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.platform-detail-stats div,
.platform-readonly-field,
.platform-field {
  min-width: 0;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px 14px;
}
.platform-detail-stats span,
.platform-readonly-field span,
.platform-field span {
  display: block;
  margin-bottom: 6px;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.platform-detail-stats strong,
.platform-readonly-field strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.platform-detail-stats div {
  background: #0f172a;
  border-color: #0f172a;
}
.platform-detail-stats span { color: rgba(255,255,255,0.62); }
.platform-detail-stats strong {
  color: #fff;
  font-size: 22px;
}
.platform-field input,
.platform-field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  outline: 0;
  padding: 0;
}
.platform-field .platform-select {
  border: 0;
  padding: 0 28px 0 0;
  box-shadow: none;
  background-color: transparent;
}
.platform-section-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.platform-section-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}
.platform-section-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}
.platform-detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.platform-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.platform-compact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.platform-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.platform-card-topline strong {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}
.platform-card-topline small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}
.platform-compact-card p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}
.platform-compact-card a {
  overflow-wrap: anywhere;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}
.platform-actions-row--between {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.platform-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.platform-stat-card,
.platform-chart-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
}
.platform-stat-card {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 138px;
}
.platform-stat-card span,
.platform-chart-head p,
.platform-mini-stat span,
.platform-funnel-top span,
.platform-chart-label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}
.platform-stat-card span {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.platform-stat-card strong {
  color: #111827;
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
}
.platform-stat-card small {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
}
.platform-stat-card--primary {
  background: linear-gradient(135deg, #0f172a 0%, #111827 52%, #00aaff 140%);
  border-color: transparent;
}
.platform-stat-card--primary span,
.platform-stat-card--primary small {
  color: rgba(255,255,255,.72);
}
.platform-stat-card--primary strong {
  color: #fff;
}
.platform-grid-two--charts {
  align-items: stretch;
}
.platform-chart-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.platform-chart-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.platform-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.platform-chart-head h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
}
.platform-chart-head p {
  margin: 0;
  line-height: 1.6;
}
.platform-chart-canvas-wrap {
  width: 100%;
  height: 280px;
}
.platform-funnel-list,
.platform-mini-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.platform-funnel-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.platform-funnel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.platform-funnel-top strong,
.platform-mini-stat strong {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}
.platform-funnel-bar {
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.platform-funnel-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00aaff 0%, #2563eb 100%);
}
.platform-mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.empty-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 32px;
  border: 2px dashed #f1f5f9;
  border-radius: 24px;
}
.empty-placeholder .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.2; }
.empty-placeholder h3 { font-size: 18px; font-weight: 800; color: #111827; margin-bottom: 8px; }
.empty-placeholder p { font-size: 14px; color: #6b7280; max-width: 300px; }

.subscription-card {
  background: #111827;
  border-radius: 32px;
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  margin-bottom: 32px;
}
.subscription-card .card-content { position: relative; z-index: 10; }
.subscription-card .card-label { color: #00aaff; font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 16px; }
.subscription-card .card-header-row { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 32px; }
.subscription-card .plan-name { color: #f9fafb; font-size: 42px; font-weight: 900; line-height: 1; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.subscription-card .status-badge {
  background: rgba(0,170,255,0.1);
  color: #00aaff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  border: 1px solid rgba(0,170,255,0.2);
  margin-bottom: 4px;
}
.subscription-card .status-badge.is-inactive { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }
.subscription-card .card-footer { display: flex; flex-direction: column; gap: 24px; }
.subscription-card .description { color: #9ca3af; font-size: 15px; max-width: 400px; margin: 0; }
.subscription-card .card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 256px;
  height: 256px;
  background: #00aaff;
  filter: blur(120px);
  opacity: 0.2;
  transform: translate(50%, -50%);
}

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card { padding: 24px; background: #f9fafb; border-radius: 24px; border: 1px solid #f1f5f9; }
.info-card h4 { font-weight: 800; color: #111827; margin-bottom: 4px; margin-top: 0; }
.info-card p { font-size: 13px; color: #6b7280; line-height: 1.5; margin: 0; }

@media (max-width: 768px) {
  .subscription-card { padding: 24px; border-radius: 24px; }
  .subscription-card .plan-name { font-size: 32px; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .settings-layout { flex-direction: column; }
  .settings-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; }
  .settings-tab { white-space: nowrap; width: auto; }
  .platform-grid-two,
  .platform-stats-grid,
  .platform-detail-hero,
  .platform-detail-stats,
  .platform-detail-grid { grid-template-columns: 1fr; }
  .platform-note-card,
  .platform-banner-card,
  .platform-user-card { flex-direction: column; align-items: flex-start; }
  .platform-user-actions { width: 100%; justify-content: flex-start; }
  .platform-chart-card { padding: 20px; }
  .platform-chart-canvas-wrap { height: 240px; }
}

@media (max-width: 1024px) {
  .profile-layout { flex-direction: column; }
  .profile-main { order: 2; }
  .profile-sidebar { width: 100%; order: 1; }
  .profile-sidebar-card { position: static; }
  .mod-page-intro {
    padding: 18px;
    border-radius: 16px;
  }
  .mod-page-title {
    font-size: 23px;
  }
}

.mod-page-intro {
  margin-bottom: 28px;
  padding: 22px 24px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.mod-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mod-header-copy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.mod-header-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 170, 255, .14), rgba(0, 170, 255, .08));
  color: #00aaff;
  box-shadow: inset 0 0 0 1px rgba(0, 170, 255, .08);
}

.mod-header-text {
  min-width: 0;
}

.mod-page-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 950;
  color: #111827;
}

.mod-page-subtitle {
  margin: 7px 0 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.55;
  color: #6b7280;
  font-weight: 600;
}

.mod-tabs-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.mod-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .01em;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.mod-tab:hover {
  color: #111827;
  border-color: #d1d5db;
  background: #f9fafb;
}

.mod-tab.is-active {
  color: #111827;
  border-color: rgba(0, 170, 255, .22);
  background: linear-gradient(180deg, rgba(0, 170, 255, .12), rgba(0, 170, 255, .06));
  box-shadow: inset 0 0 0 1px rgba(0, 170, 255, .08);
}

.mod-tab.is-active .icon {
  color: #00aaff;
}

.mod-tab .icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9ca3af;
}

.mod-tab .icon svg, .mod-header svg, .mod-header-icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.mod-list-area {
  width: 100%;
  min-width: 0;
}

.mod-report-row {
  cursor: pointer;
  transition: background-color .18s ease;
}

.mod-report-row:hover {
  background: #f9fafb !important;
}

.mod-report-row.is-selected {
  background: #eff6ff !important;
}

.mod-detail-link {
  color: #00aaff;
  font-size: 13px;
  font-weight: 900;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 2px 0;
}

.mod-detail-link:hover {
  text-decoration: underline;
}

.mod-inline-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mod-inline-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mod-detail-modal {
  align-items: flex-start;
  overflow-y: auto;
  padding: 72px 18px 32px;
  z-index: 1100;
}

.mod-detail-dialog {
  width: min(100%, 560px);
}

.mod-detail-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  overflow: hidden;
  max-height: calc(100vh - 104px);
  display: flex;
  flex-direction: column;
}

.mod-detail-head {
  padding: 16px 24px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(249, 250, 251, .72);
}

.mod-detail-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mod-icon-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9ca3af;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mod-icon-button:hover {
  background: #e5e7eb;
  color: #374151;
}

.mod-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mod-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mod-stat-box {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.mod-stat-box strong {
  display: block;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  color: #111827;
}

.mod-stat-box span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 900;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mod-stat-box.is-danger {
  background: #fef2f2;
  border-color: #fee2e2;
}

.mod-stat-box.is-danger strong,
.mod-stat-box.is-danger span {
  color: #b91c1c;
}

.mod-detail-section-title {
  font-size: 12px;
  font-weight: 900;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mod-context-row {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  width: 100%;
}

.mod-context-row > div {
  min-width: 160px;
  flex: 2 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mod-context-row > div:last-child {
  flex: 1 1 0;
  text-align: right;
  align-items: flex-end;
}

.mod-context-row span {
  font-size: 10px;
  font-weight: 900;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.mod-context-row strong {
  font-size: 13px;
  color: #1f2937;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mod-context-row small {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  margin-left: 6px;
}

.mod-revoke-btn {
  color: #00aaff;
  background: #eff6ff;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.mod-revoke-btn:hover {
  background: #dbeafe;
}

.mod-action-panel {
  display: block;
}

.mod-action-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 900;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mod-action-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mod-action-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
  color: #374151;
}

.mod-action-select,
.mod-action-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
  background: #fff;
}

.mod-action-input.is-muted {
  background: #f9fafb;
}

.mod-action-select:focus,
.mod-action-input:focus {
  outline: 0;
  border-color: #00aaff;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, .14);
}

.mod-action-field {
  margin-bottom: 12px;
}

.mod-danger-action,
.mod-secondary-action {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  border: 0;
  font-size: 14px;
  font-weight: 900;
  transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}

.mod-danger-action {
  background: #dc2626;
  color: #fff;
}

.mod-danger-action:hover {
  background: #b91c1c;
}

.mod-secondary-action {
  background: #f3f4f6;
  color: #374151;
}

.mod-secondary-action:hover {
  background: #e5e7eb;
}

.mod-danger-action:disabled,
.mod-secondary-action:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.mod-ignore-wrap {
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}

.custom-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s;
}
.custom-checkbox-row:hover {
  border-color: #ef4444;
  background: #fff;
}
.custom-checkbox-row input {
  width: 20px;
  height: 20px;
  accent-color: #ef4444;
  cursor: pointer;
}
.custom-checkbox-row .check-label {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

/* Modals */
.ui-overlay-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.ui-overlay-modal[hidden] { display: none; }
.ui-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.ui-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
}
.ui-modal-close:hover { color: #111827; }
.ui-modal-title { font-size: 20px; font-weight: 800; color: #111827; margin-bottom: 8px; margin-top: 0; }
.ui-modal-desc { font-size: 14px; color: #6b7280; margin-bottom: 24px; margin-top: 0; }

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(27px, 1fr));
  grid-auto-rows: 28px;
  gap: 2px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}
.emoji-menu button { border: 0; background: transparent; width: 100%; height: 28px; padding: 0; font-size: 19px; border-radius: 6px; }
.emoji-menu button:hover { background: #f3f4f6; }
.video-popover {
  width: min(420px, calc(100% - 40px));
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.video-url-modal {
  position: static;
  left: auto;
  bottom: auto;
  z-index: auto;
}
.video-popover-head, .video-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.video-popover .form-error { min-height: 0; }
.video-actions { padding-top: 2px; }
.mini-close { border: 0; background: transparent; font-size: 20px; color: #6b7280; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; color: #374151; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { min-height: 20px; margin: 0; color: #dc2626; font-weight: 700; }
.comment-box { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.comment-line { align-items: flex-start; padding: 12px 0; border-top: 1px solid #f0f1f3; min-width: 0; }
.comment-line > div { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.comment-line strong { overflow-wrap: anywhere; word-break: break-word; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111827; color: #fff; padding: 12px 16px; border-radius: 8px; font-weight: 800; z-index: 10000; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 28px; text-align: center; color: var(--muted); font-weight: 700; }

.signup-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0,170,255,.08), rgba(244,244,247,0) 34%),
    var(--bg);
}

.signup-topbar {
  position: static;
}

.signup-shell {
  width: min(100% - 32px, 560px);
  margin: 34px auto 56px;
}

.signup-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.signup-cover {
  height: 104px;
  background: var(--blue);
}

.signup-logo {
  width: fit-content;
  min-width: 82px;
  min-height: 82px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 4px solid #fff;
  display: grid;
  place-items: center;
  background: #fff;
  margin: -41px auto 14px;
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
}
.signup-logo .brand-logo__revista { font-size: 2rem; }
.signup-logo .brand-logo__dj { font-size: 2.1rem; }

.signup-heading {
  text-align: center;
  padding: 0 28px 24px;
}

.signup-heading p {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.signup-heading h1 {
  font-size: 28px;
}

.signup-alert {
  margin: 0 28px 20px;
  padding: 13px 14px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
  font-weight: 800;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 28px 30px;
}

.signup-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.signup-plan-card,
.signup-plan-option {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 18px;
  text-align: left;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.signup-plan-card {
  font: inherit;
}

.signup-plan-card:hover,
.signup-plan-option:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 170, 255, .12);
}

.signup-plan-card.is-featured,
.signup-plan-option.is-featured {
  border-color: var(--blue);
  background: linear-gradient(180deg, #f2f9ff, #fff);
}

.signup-plan-card span,
.signup-plan-option span,
.signup-selected-plan span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.signup-plan-card strong,
.signup-plan-option strong {
  font-size: 24px;
  line-height: 1;
}

.signup-plan-card small,
.signup-plan-option small {
  color: var(--muted);
  font-weight: 800;
}

.signup-selected-plan {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
}

.signup-selected-plan strong {
  font-size: 15px;
}

.signup-selected-plan a {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.signup-plan-modal__card {
  max-width: 620px;
  overflow: hidden;
  padding-top: 0;
  position: relative;
}

.signup-plan-modal__cover {
  height: 104px;
  background: var(--blue);
  margin: -24px -24px 0;
}

.signup-plan-modal__logo {
  width: fit-content;
  min-width: 82px;
  min-height: 82px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 4px solid #fff;
  display: grid;
  place-items: center;
  background: #fff;
  margin: -41px auto 14px;
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
  position: relative;
  z-index: 1;
}

.signup-plan-modal__logo .brand-logo__revista { font-size: 2rem; }
.signup-plan-modal__logo .brand-logo__dj { font-size: 2.1rem; }

.signup-plan-modal__heading {
  text-align: center;
  position: relative;
  z-index: 1;
}

.signup-plan-modal__heading p {
  margin: 8px 0 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.signup-plan-modal__heading h2 {
  margin: 0;
  font-size: 28px;
}

.signup-plan-modal__options {
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

.signup-plan-modal__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.signup-plan-option {
  position: relative;
}

.signup-plan-option__tag {
  position: absolute;
  top: 10px;
  right: 10px;
  width: auto;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
  padding: 5px 8px;
  font-size: 10px !important;
  letter-spacing: .06em !important;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 170, 255, .24);
}

.signup-plan-option {
  padding-top: 34px;
}

@media (max-width: 560px) {
  .signup-plan-modal__options {
    grid-template-columns: 1fr;
  }
}

.signup-form label,
.signup-genres > span {
  font-size: 13px;
  font-weight: 900;
}

.signup-help {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.signup-code {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .18em;
}

.signup-genres {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup-genre-picker {
  position: relative;
}

.signup-required-proxy {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  inset: 0;
}

.signup-dropdown-menu[hidden] {
  display: none !important;
}

.signup-dropdown-trigger {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signup-dropdown-trigger.is-open {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 170, 255, .12);
}

.signup-dropdown-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signup-dropdown-label.is-placeholder {
  color: #9ca3af;
}

.signup-dropdown-caret {
  flex: 0 0 auto;
  font-size: 14px;
  color: #374151;
  transition: transform .18s ease;
}

.signup-dropdown-trigger.is-open .signup-dropdown-caret {
  transform: rotate(180deg);
}

.signup-dropdown-menu {
  position: absolute;
  z-index: 1200;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .14);
  padding: 8px;
}

.signup-dropdown-option {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.signup-dropdown-option:hover {
  background: #f3f8ff;
  color: #111827;
}

.signup-dropdown-option.is-selected {
  background: #e8f4ff;
  color: #0f172a;
}

.signup-dropdown-check {
  opacity: 0;
  color: var(--blue);
  font-weight: 900;
}

.signup-dropdown-option.is-selected .signup-dropdown-check {
  opacity: 1;
}

.ui-overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.6);
}
.community-welcome-overlay {
  z-index: 1200;
  background: rgba(9, 14, 24, 0.72);
  backdrop-filter: blur(6px);
}
.community-welcome-card {
  width: min(100%, 520px);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.3);
  padding: 34px 32px;
  text-align: center;
  border: 1px solid rgba(219, 234, 254, 0.9);
}
.community-welcome-kicker {
  color: #00aaff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.community-welcome-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.02;
}
.community-welcome-card p {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}
.community-welcome-card .primary {
  min-width: 180px;
}

.comment-typing-toast {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: min(calc(100% - 36px), 460px);
  padding: 14px 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  pointer-events: none;
}
.comment-typing-toast[hidden] {
  display: none;
}
.comment-typing-toast__dots {
  color: #4b5563;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.18em;
}
.comment-typing-toast__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comment-typing-toast__arrow {
  color: #111827;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.ui-overlay-modal.mod-detail-modal {
  align-items: flex-start;
  overflow-y: auto;
  padding: 72px 18px 32px;
  z-index: 1100;
}
.confirm-modal,
.category-modal,
.report-modal,
.comment-edit-modal,
.platform-vip-modal {
  width: min(100%, 480px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  padding: 28px;
}
.confirm-modal { text-align: center; }
.danger-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #fef2f2;
  color: #ef4444;
  font-size: 34px;
  font-weight: 950;
}
.confirm-modal h2,
.category-modal h2,
.report-modal h2,
.comment-edit-modal h2,
.platform-vip-modal h2 { margin: 0 0 16px; font-size: 22px; font-weight: 950; color: #111827; }
.confirm-modal p,
.report-modal p,
.platform-vip-modal p { color: #6b7280; font-weight: 700; margin: 0 0 22px; }
.confirm-actions,
.modal-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.modal-actions { flex-direction: row; justify-content: flex-end; align-items: center; }
.danger-btn,
.quiet-btn {
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.danger-btn { background: #ef4444; color: #fff; box-shadow: 0 10px 22px rgba(239,68,68,.22); }
.quiet-btn { background: #f9fafb; color: #6b7280; }
.category-modal select,
.report-modal textarea,
.comment-edit-modal textarea,
.comment-edit-modal input,
.platform-vip-date-card input { margin-top: 6px; }
.platform-vip-date-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #111827;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.platform-vip-date-card input {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 14px;
}
.platform-vip-modal .form-error {
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
  margin: 12px 0 0;
}
.comment-edit-panel {
  width: min(100%, 720px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  padding: 22px;
}
.comment-edit-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.comment-edit-panel__head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
  color: #111827;
}
.comment-edit-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.comment-edit-form .comment-compose-box {
  box-shadow: 0 4px 18px rgba(15,23,42,.06);
}
.report-modal label {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-weight: 700;
}
.report-modal input[type="radio"] { width: auto; }

.is-hidden { display: none !important; }
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
  .side-panel { display: none; }
  .topbar { flex-wrap: wrap; height: auto; padding-block: 14px; }
  .header-search { order: 3; flex-basis: 100%; }
  .filter-row select { margin-left: 0; width: 100%; }
  .notif-dropdown { right: 0; width: min(500px, calc(100vw - 32px)); }
  .back-btn { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; padding: 0; color: #6b7280; margin-right: 12px; cursor: pointer; flex-shrink: 0; }
}

@media (max-width: 560px) {
  .topbar { padding-inline: 14px; }
  .notif-dropdown {
    position: fixed;
    top: 84px;
    left: 10px;
    right: 10px;
    width: auto;
    transform: none;
  }
  .notif-dropdown__head,
  .notif-dropdown__foot,
  .notif-item,
  #notificationDetailMount { padding-left: 16px; padding-right: 16px; }
  .notif-item__row { flex-direction: column; gap: 4px; }
  .notification-detail-head { gap: 12px; }
  .notification-detail-copy { padding-right: 24px; }
  .notification-detail-actions .primary { width: 100%; }
  .mod-header {
    margin-bottom: 16px;
  }
  .mod-header-copy {
    align-items: center;
  }
  .mod-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .mod-page-title {
    font-size: 21px;
  }
  .mod-page-subtitle {
    font-size: 13px;
    margin-top: 5px;
  }
  .mod-tabs-container {
    gap: 8px;
  }
  .mod-tab {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }
  .main-grid { width: 100% !important; margin: 18px 0 0 0; }
  .post-input-card, .filter-row { margin-left: 10px; margin-right: 10px; }
  .post-card { border-radius: 0; border-left: 0; border-right: 0; }
  .post-body-row { flex-direction: row; align-items: flex-start; gap: 12px; }
  .post-thumbnail { width: 80px; height: 80px; flex-shrink: 0; border-radius: 8px; }
  .post-recent-avatars { display: none; }
  .detail-modal { max-width: 100% !important; width: 100% !important; height: 100% !important; max-height: 100% !important; margin: 0; padding: 0; border: 0; }
  .detail-card { height: 100% !important; max-height: 100% !important; border-radius: 0; border: 0; box-shadow: none; }
  .detail-card { height: 100% !important; max-height: 100% !important; border-radius: 0; border: 0; box-shadow: none; }
  .detail-scroll { padding: 22px 20px 0; }
  .detail-comment-form { padding: 14px 16px 18px; }
  .comment-input-wrap { flex-direction: column; align-items: stretch; }
  .comment-thread.is-reply { margin-left: 24px; }
  .comment-actions, .comment-thread.is-reply .comment-actions, .inline-reply-form, .comment-thread.is-reply .inline-reply-form { margin-left: 0; }
  .inline-reply-actions { width: 100%; justify-content: flex-end; }
  .lightbox-stage { padding: 72px 16px; }
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-nav.left { left: 10px; }
  .lightbox-nav.right { right: 10px; }
  .lightbox-top { padding: 14px; }
  .two-cols { grid-template-columns: 1fr; }
  .composer-card { padding: 16px; }
  .composer-title { font-size: 22px; }
  .composer-footer, .composer-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .composer-tools { width: 100%; }
  .category-picker, .category-trigger, .composer-submit, .ghost-btn { width: 100%; }
  .category-menu { left: 0; right: auto; width: 100%; }
  h1 { font-size: 24px; }
}

/* /platform → Bots */
.bots-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.platform-input-card select { width: 100%; border: 0; background: transparent; color: #111827; font-size: 15px; font-weight: 700; outline: 0; padding: 0; }
.platform-textarea-card textarea { white-space: pre-wrap; resize: vertical; font-family: inherit; }
.bots-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.bots-check { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 700; color: #374151; cursor: pointer; }
.bots-check input { width: 16px; height: 16px; accent-color: #00aaff; margin: 0; }
.bots-check:has(input:checked) { border-color: #00aaff; background: #eef8ff; }
.bots-grid-gap { margin-top: 14px; }
.bots-activity-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bots-table-wrap { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 18px; background: #fff; }
.bots-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bots-table th { text-align: left; font-size: 11px; font-weight: 800; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 14px; border-bottom: 1px solid #e5e7eb; }
.bots-table td { padding: 12px 14px; border-bottom: 1px solid #f3f4f6; vertical-align: top; color: #111827; font-weight: 600; }
.bots-table tr:last-child td { border-bottom: 0; }
.bots-table td small { display: block; color: #6b7280; font-weight: 500; margin-top: 2px; }
.bots-table a { color: #0284c7; }

/* Owner switched to another account (index.php) */
.impersonation-bar { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: #fef3c7; border-bottom: 1px solid #f59e0b; color: #78350f; font-size: 14px; font-weight: 600; text-align: center; }
.impersonation-bar button { border: 0; border-radius: 10px; padding: 8px 14px; background: #78350f; color: #fff; font-weight: 800; font-size: 13px; cursor: pointer; }
.impersonation-bar button:disabled { opacity: .6; cursor: default; }
.platform-detail-hero .platform-switch-user-btn { margin-left: auto; }

/* Avatar without a picture: first letter of the name (utils.js avatar()), like the header button. */
.avatar--letter { display: grid; place-items: center; background: #e5e7eb; color: #374151; font-weight: 900; overflow: hidden; container-type: size; user-select: none; }
.avatar--letter span { font-size: 16px; font-size: 46cqmin; line-height: 1; }
.post-recent-avatars .recent-letter {
  width: 28px; height: 28px; border-radius: 999px; border: 2px solid #fff; background: #e5e7eb; color: #374151;
  display: inline-grid; place-items: center; font-size: 12px; font-weight: 900; line-height: 1;
  margin-left: -8px; box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08); box-sizing: border-box; flex: 0 0 auto;
}
.post-recent-avatars .recent-letter:first-child { margin-left: 0; }
.avatar-placeholder { color: #374151; font-weight: 900; font-size: 16px; line-height: 1; user-select: none; }

/* Profile photo cropper (avatar-cropper.js) */
.avatar-cropper-overlay { z-index: 400; }
.avatar-cropper { width: min(100%, 420px); border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.25); padding: 24px; text-align: center; }
.avatar-cropper h2 { margin: 0 0 8px; font-size: 22px; font-weight: 950; color: #111827; }
.avatar-cropper p { margin: 0 0 18px; color: #6b7280; font-weight: 700; font-size: 14px; }
.avatar-cropper-stage { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #111827; cursor: grab; touch-action: none; user-select: none; outline: none; }
.avatar-cropper-stage:active { cursor: grabbing; }
.avatar-cropper-stage:focus-visible { box-shadow: 0 0 0 3px #00aaff; }
.avatar-cropper-stage canvas { display: block; width: 100%; height: 100%; }
/* Darkens everything outside the round area that becomes the profile picture. */
.avatar-cropper-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(17, 24, 39, .55); border: 2px solid rgba(255,255,255,.9); pointer-events: none; }
.avatar-cropper-zoom { display: flex; align-items: center; gap: 12px; width: min(100%, 320px); margin: 18px auto 0; }
.avatar-cropper-zoom input[type=range] { flex: 1; accent-color: #00aaff; }
.avatar-cropper-zoom button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f3f4f6; color: #374151; font-size: 20px; font-weight: 900; line-height: 1; cursor: pointer; }
.avatar-cropper .confirm-actions .primary { width: 100%; }
/* The letter avatar sits inside profile links: never underline it. inline-grid also stops the link's underline reaching the letter. */
.avatar--letter { display: inline-grid; vertical-align: middle; text-decoration: none; }
a:has(> .avatar--letter) { text-decoration: none; }

/* /platform → Bots → DeepSeek cost */
.bots-cost-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bots-cost-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; }
.bots-cost-card span { font-size: 11px; font-weight: 800; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; }
.bots-cost-card strong { font-size: 26px; font-weight: 950; color: #111827; }
.bots-cost-card small { color: #6b7280; font-weight: 600; font-size: 12px; }
.bots-prices { margin-top: 14px; }
.bots-prices summary { cursor: pointer; font-weight: 800; color: #374151; font-size: 14px; }
.bots-prices-note { color: #6b7280; font-size: 13px; font-weight: 600; margin: 10px 0; }
.bots-prices-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .bots-cost-grid, .bots-prices-grid { grid-template-columns: 1fr; } }

/* /platform → Bots → Manuals (owners) */
.bots-manual { display: flex; flex-direction: column; gap: 10px; }
.bots-manual-edit { padding: 14px 18px; border: 1px dashed #e5e7eb; border-radius: 14px; background: #fff; }
.bots-manual-sections { margin: 0; padding: 14px 18px 14px 36px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; max-height: 320px; overflow: auto; font-size: 13px; }
.bots-manual-sections li { margin-bottom: 10px; }
.bots-manual-sections strong { display: block; color: #111827; font-weight: 800; }
.bots-manual-sections span { color: #6b7280; font-weight: 500; white-space: pre-line; }
.bots-manual-upload { margin-top: 18px; padding: 18px 20px; border: 1px solid #e5e7eb; border-radius: 18px; background: #fafafa; }
.bots-manual-upload h3 { margin: 0 0 12px; font-size: 16px; font-weight: 900; color: #111827; }
.bots-manual-upload input[type=file] { font-size: 13px; font-weight: 600; white-space: normal; }
