/* ── Block Page ─────────────────────────────── */

/* Prevent mobile zoom on button focus */
button {
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.block-page {
  display: none;
}

.polls-page {
  display: none;
}

.updates-page {
  display: none;
}

.block-wrapper {
  display: flex;
  flex-direction: column;
  background: var(--gradient-bg-global);
  min-height: 100%;
}

/* Sticky header + tabs container */
.block-header-area {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 39, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(107, 158, 255, 0.12);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.block-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.block-logo-wrap {
  position: relative;
  overflow: hidden;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  flex-shrink: 0;
}

.block-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 48%,
    rgba(255, 255, 255, 0.32) 52%,
    transparent 68%
  );
  transform: translateX(-120%) skewX(-20deg);
  animation: glass-shine 3.6s ease-in-out 2.4s infinite;
  pointer-events: none;
  z-index: 2;
}

.block-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.block-title-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 5px;
}

.block-name-sub {
  font-size: 7px;
  font-weight: var(--font-weight-regular);
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 0.75;
}

.block-name {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.75px;
  line-height: 0.95;
  background: var(--gradient-primary-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.block-tagline {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  letter-spacing: -0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.block-header-right {
  display: flex;
  align-items: center;
}

.block-header-icon {
  width: 18px;
  height: 18px;
  opacity: 0.5;
  /* transform: translateY(8px); */
}

/* ── Tabs ── */
.block-tabs {
  display: flex;
  justify-content: space-between;
}

.block-tab {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: #aaa;
  font-weight: 400;
  letter-spacing: -0.3px;
  padding: 10px 0px;
  cursor: pointer;
  border-bottom: 0.5px solid rgba(107, 158, 255, 0.08);
  transition:
    color 0.15s,
    border-color 0.15s;
}

.block-tab.active {
  color: #fff;
  border-bottom: 2px solid rgba(107, 158, 255, 0.08);
}

/* ── List container ── */
.block-lists {
  display: flex;
  flex-direction: column;
}

.block-sub-main {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

/* ── Full view ── */
.block-full-view {
  display: none;
}

#block-full-content {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

/* ── Empty state ── */
.block-empty {
  padding: 48px 0;
  text-align: center;
  color: #444;
  font-size: 13px;
}

/* ════════════════════════════════════════════
   STORIES
════════════════════════════════════════════ */

.block-story-card {
  padding: 22px 0;
  border-bottom: 0.5px solid rgba(107, 158, 255, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.block-story-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 8px;
  padding: 4px 0 0;
}

.block-story-label {
  font-size: 9px;
  font-weight: 700;
  color: #4caf7d;
  letter-spacing: -0.25px;
  text-transform: capitalize;
  line-height: 1.1;
  margin-bottom: 1px;
}

/* ─ 2. img heart replaces span heart ─ */
.block-story-heart-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  cursor: pointer;
  opacity: 0.25;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.block-story-heart-img.liked {
  opacity: 1;
}

.block-story-profile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.block-story-avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.block-story-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.block-story-subject {
  color: #ddd;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.25px;
  opacity: 0.9;
  text-transform: capitalize;
}

.block-story-author {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.block-story-preview {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.block-story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.block-story-readmore {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

.block-story-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.block-story-rating-val {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

.block-story-star-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  opacity: 0.5;
}

/* ─ 3. Story expanded: card header persisted inside full view ─ */
.block-story-full-card-header {
  padding: 18px 0 14px;
  border-bottom: 0.5px solid rgba(107, 158, 255, 0.08);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

/* ── Story full view ── */
.block-story-body {
  padding: 20px 0 10px;
  display: flex;
  flex-direction: column;
}

.block-story-full-para {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.block-story-takeaways-label {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 10px 0 10px;
}

.block-story-takeaway-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 4px;
  padding: 13px 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 8px;
  background: transparent;
}

.block-story-end {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 600;
  margin: 20px 0 24px;
}

.block-story-rate-section {
  border-top: 0.5px solid rgba(107, 158, 255, 0.08);
  padding-top: 18px;
  padding-bottom: 24px;
}

.block-story-rate-title {
  color: rgba(255, 255, 255, 0.22);
  font-size: 18px;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.block-story-rate-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
}

.block-story-stars {
  display: flex;
  gap: 10px;
}

.block-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.block-star-btn img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  opacity: 0.22;
  transition: opacity 0.15s;
}

.block-star-btn.active img {
  opacity: 1;
}

/* ════════════════════════════════════════════
   RECOMMENDS (Updates)
════════════════════════════════════════════ */

.block-recommend-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  border-bottom: 0.5px solid rgba(107, 158, 255, 0.08);
}

.block-recommend-header-label {
  font-weight: 700;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.block-recommend-header-count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.block-recommend-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-recommend-filter-icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  cursor: pointer;
  display: block;
}

.block-recommend-card {
  padding: 24px 0 12px;
  border-bottom: 0.5px solid rgba(107, 158, 255, 0.08);
  cursor: pointer;
}

.block-recommend-card-inner {
  position: relative;
  padding-bottom: 12px;
  /* border-bottom: 1px solid #1e1e1e; */
  margin-bottom: 10px;
}

.block-recommend-icon {
  position: absolute;
  top: 2px;
  right: 0;
  width: 10px;
  height: 10px;
  object-fit: contain;
  opacity: 0.4;
}

.block-recommend-subject {
  color: #ddd;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.25px;
  opacity: 0.9;
  text-transform: capitalize;
}

.block-recommend-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.block-recommend-readmore {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

.block-recommend-date {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

.block-recommend-cat-label {
  font-size: 10px;
  font-weight: 700;
  color: #4caf7d;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
  text-transform: capitalize;
}

/* ─ 5. Collapsed card: CTA (now clickable anchor) ─ */
.block-recommend-cta-faded {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 5, 22, 0.7) !important;
  color: #ddd;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Gellix", sans-serif;
  text-decoration: none;
  letter-spacing: -0.25px;
}

.block-recommend-cta-faded:active {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* ─ 3. Recommend expanded: card header persisted inside full view ─ */
.block-recommend-full-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0px;
  border-bottom: 0.5px solid rgba(107, 158, 255, 0.08);
}

.block-recommend-full-header-icon {
  width: 10px;
  height: 10px;
  object-fit: contain;
  opacity: 0.5;
  flex-shrink: 0;
}

.block-recommend-full-header-subject {
  color: #ddd;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.75px;
  opacity: 0.9;
  text-transform: capitalize;
}

/* ── Recommend full view ── */
.block-recommend-full-body {
  display: flex;
  flex-direction: column;
  padding: 10px 0px;
}

.block-recommend-item {
  padding: 16px 0;
  border-bottom: 0.5px solid rgba(107, 158, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  line-height: 1.65;
}

.block-recommend-full-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
}

.block-recommend-full-author {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
}

.block-recommend-full-date {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
}

/* ─ 5. Expanded CTA: robust modern button (not full-width) ─ */
.block-recommend-full-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 0px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 5, 22, 0.7) !important;
  color: #ddd;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Gellix", sans-serif;
  text-decoration: none;
  letter-spacing: -0.25px;
  margin-bottom: 10px;
}

.block-recommend-full-cta:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ════════════════════════════════════════════
   POLLS
════════════════════════════════════════════ */

.block-poll-card {
  padding: 20px 30px;
  border-bottom: 0.5px solid rgba(107, 158, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.block-poll-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.block-poll-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
}

.block-poll-icon {
  width: 10px;
  height: 10px;
  object-fit: contain;
  opacity: 0.5;
}

.block-poll-subject {
  color: #ddd;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.25px;
  opacity: 0.9;
  margin-bottom: 14px;
  text-transform: capitalize;
}

.block-poll-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.block-poll-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 42px;
  column-gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(107, 158, 255, 0.08);
  border-radius: 4px;
  padding: 14px 14px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

/* No answer state — collapse the middle marker column */
.block-poll-card:not(.has-answer) .block-poll-option {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.block-poll-option:active {
  background: rgba(255, 255, 255, 0.07);
}

.block-poll-option.voted {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(124, 168, 255, 0.06);
}

.block-poll-option.no-vote {
  cursor: default;
}

.block-poll-option-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  min-width: 0;
  line-height: 1.35;
}

.block-poll-option.voted .block-poll-option-text {
  color: #ccc;
  font-weight: 400;
}

.block-poll-option-pct {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 0;
  min-width: 42px;
  text-align: right;
}

.block-poll-option.voted .block-poll-option-pct {
  color: #ccc;
  font-weight: 400;
}

/* ── Poll card footer row (status left, hint right) ─── */
.block-poll-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.block-poll-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Poll correct / wrong answer states ── */
.block-poll-option.correct {
  border-color: rgba(80, 200, 120, 0.45);
  background: rgba(80, 200, 120, 0.07);
}

.block-poll-option.correct .block-poll-option-text {
  color: rgba(140, 230, 160, 0.9);
}

.block-poll-option.wrong {
  border-color: rgba(220, 80, 80, 0.3);
  background: rgba(220, 80, 80, 0.05);
}

.block-poll-option.wrong .block-poll-option-text {
  color: rgba(255, 255, 255, 0.35);
}

.block-poll-answer-marker {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  margin: 0;
  min-width: 76px;
  text-align: right;
  white-space: nowrap;
}

.block-poll-answer-marker.empty-marker {
  visibility: hidden;
  font-weight: 700;
}

.correct-marker {
  color: rgba(100, 220, 130, 0.9);
}

.wrong-marker {
  color: rgba(220, 90, 90, 0.8);
}

/* ── Poll Why Hint ───────────────────────────────────── */
.poll-why-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

.poll-why-hint.has-why {
  /* color: rgba(107, 158, 255, 0.65); */
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

/* ── Poll Why isolated full page ─────────────────────── */
.polls-why-detail {
  flex: 1;
  flex-direction: column;
  padding: 0 20px;
  padding-bottom: 40px;
}

.poll-why-full {
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
}

.poll-why-full-subject {
  color: #ddd;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.25px;
  opacity: 0.9;
  text-transform: capitalize;
}

.poll-why-full-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 18px;
}

.poll-why-full-icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Why page options list ── */
.poll-why-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid rgba(107, 158, 255, 0.15);
}

.poll-why-opt {
  display: flex;
  align-items: center;
  /* gap: 5px; */
  padding: 9px 12px;
  border-radius: 2px;
  /* border: 0.5px solid rgba(107, 158, 255, 0.1); */
  /* background: rgba(107, 158, 255, 0.04); */
}

.poll-why-opt.poll-why-opt-correct {
  border-color: rgba(80, 200, 120, 0.45);
  /* background: rgba(80, 200, 120, 0.07); */
}

.poll-why-opt-marker {
  font-size: 11px;
  font-weight: 700;
  color: rgba(100, 220, 130, 0.9);
  width: 14px;
  flex-shrink: 0;
}

.poll-why-opt-marker-empty {
  display: block;
}

.poll-why-opt-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.poll-why-opt.poll-why-opt-correct .poll-why-opt-text {
  color: rgba(140, 230, 160, 0.9);
}

.poll-why-correct-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(100, 220, 130, 0.8);
}

.poll-why-correct-label span {
  font-weight: 700;
}

/* ── Poll Why Post (shared elements) ─────────────────── */
.poll-why-post {
  flex-direction: column;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0.5px solid rgba(107, 158, 255, 0.15);
}
.poll-why-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
  border: 0.5px solid rgba(107, 158, 255, 0.12);
  display: block;
  margin-bottom: 20px;
}

.poll-why-title-row {
  padding-bottom: 14px;
  border-bottom: 0.5px solid rgba(107, 158, 255, 0.12);
  margin-bottom: 14px;
}

.poll-why-title {
  font-size: 13px;
  font-weight: 700;
  /* color: rgba(248, 246, 255, 0.85); */
  color: #ccc;
  letter-spacing: -0.3px;
}

.poll-why-body {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  white-space: pre-line;
  margin-bottom: 16px;
}

.poll-why-thread {
  margin-bottom: 14px;
  padding-top: 12px;
}

.poll-why-thread-title {
  font-size: 13px;
  font-weight: 700;
  /* color: rgba(248, 246, 255, 0.85); */
  color: #ccc;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 0.5px solid rgba(107, 158, 255, 0.12);
  letter-spacing: -0.3px;
}

.poll-why-thread-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  white-space: pre-line;
}

.poll-why-thumbs {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 0.5px solid rgba(107, 158, 255, 0.1);
}

.poll-why-thumb {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.poll-why-thumb.voted {
  opacity: 1;
}

.poll-why-thumb:active {
  opacity: 0.8;
}

/* ── Responsive — Tablet (768px+) ── */
@media (min-width: 768px) {
  .block-wrapper {
    max-width: 900px;
    margin: 0 auto;
  }

  .block-header {
    max-width: 900px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
  }

  .block-sub-main,
  #block-full-content {
    padding: 0 32px;
  }
}

/* ── Responsive — Desktop (1024px+) ── */
@media (min-width: 1024px) {
  .block-wrapper {
    max-width: 860px;
  }

  .block-header {
    max-width: 860px;
    left: auto;
    transform: none;
  }

  .block-sub-main,
  #block-full-content {
    padding: 0 48px;
  }
}

/* ════════════════════════════════════════════
   UPDATES FILTER PAGE
════════════════════════════════════════════ */

/* Filter icon wrapper + red dot badge */
.updates-filter-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.updates-filter-active-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4545;
  pointer-events: none;
  box-shadow: 0 0 0 1.5px #080c24;
}

/* Full-screen overlay — scoped to .main (position:relative flex-item) */
.updates-filter-page {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 11;
  display: flex;
  flex-direction: column;
  background: #080c24;
  overflow: hidden;
}

/* ── Filter header (sticky) ── */
.updates-filter-header {
  flex-shrink: 0;
  padding: 20px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 24px;
}

.updates-filter-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.updates-filter-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.updates-filter-header-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  opacity: 0.7;
  flex-shrink: 0;
}

.updates-filter-title-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.updates-filter-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.9px;
  color: rgba(248, 246, 255, 0.92);
  line-height: 1;
}

.updates-filter-subtitle {
  font-size: 10px;
  color: rgba(248, 246, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0.1px;
}

.updates-filter-back {
  width: 15px;
  height: 15px;
  object-fit: contain;
  opacity: 0.65;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.updates-filter-back:active {
  opacity: 1;
}

/* Search bar */
.updates-filter-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 7px;
  padding: 24px 16px;
  margin-bottom: 15px;
}

.updates-filter-search-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  opacity: 0.35;
  flex-shrink: 0;
}

.updates-filter-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: rgba(248, 246, 255, 0.85);
  font-family: "Gellix", sans-serif;
  font-size: 14px;
}

.updates-filter-search-input::placeholder {
  color: rgba(248, 246, 255, 0.25);
}

/* ── Scrollable categories area ── */
.updates-filter-main {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 24px 12px;
}

.updates-filter-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.updates-filter-cat-card {
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-radius: 10px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  min-height: 76px;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.updates-filter-cat-card.selected {
  background: rgba(107, 158, 255, 0.09);
  border-color: rgba(107, 158, 255, 0.32);
}

.updates-filter-cat-card:active {
  background: rgba(107, 158, 255, 0.06);
}

.updates-filter-cat-count {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.8px;
  color: rgba(248, 246, 255, 0.88);
  line-height: 1;
}

.updates-filter-cat-name {
  font-size: 10px;
  font-weight: 400;
  color: rgba(248, 246, 255, 0.48);
  text-align: center;
  letter-spacing: 0.05px;
  line-height: 1.2;
}

.updates-filter-empty {
  text-align: center;
  padding: 48px 0;
  color: rgba(248, 246, 255, 0.28);
  font-size: 13px;
}

/* ── Sticky footer ── */
.updates-filter-footer {
  flex-shrink: 0;
  padding: 12px 24px 36px;
}

.updates-filter-apply {
  width: 100%;
  background: rgba(10, 16, 45, 0.95);
  border: none;
  border-radius: 16px;
  padding: 20px;
  color: rgba(248, 246, 255, 0.78);
  font-family: "Gellix", sans-serif;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  letter-spacing: -0.3px;
  transition:
    background 0.15s,
    color 0.15s;
}

.updates-filter-apply:active {
  background: rgba(107, 158, 255, 0.12);
  color: rgba(248, 246, 255, 0.95);
}

.updates-filter-apply:disabled {
  opacity: 0.7;
  cursor: default;
}
