﻿@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700&family=Inter:wght@400;500;600;700;800&family=Newsreader:opsz,wght@6..72,500;6..72,650;6..72,750&display=swap");

:root {
  --bg: #101014;
  --paper: #f3efe6;
  --paper-soft: #ded7c8;
  --ink: #f7f2e8;
  --text: #eee8dc;
  --muted: #b8ae9d;
  --faint: #7b7165;
  --card: #18171d;
  --card2: #20202a;
  --border: #39333f;
  --border-hover: #6f6477;
  --rafael: #7c3aed;
  --rafael-light: #b69cff;
  --fernando: #ec4899;
  --fernando-light: #ff9dcc;
  --dudu: #eab308;
  --dudu-light: #fde68a;
  --hacksuya: #06b6d4;
  --hacksuya-light: #67e8f9;
  --zana: #f97316;
  --zana-light: #fdba74;
  --accent: #8b5cf6;
  --danger: #fb7185;
  --warning: #fbbf24;
  --success: #4ade80;
  --aniliber-purple: #a855ff;
  --aniliber-magenta: #ff4fd8;
  --aniliber-pink: #ff79e3;
  --aniliber-gradient: linear-gradient(
    90deg,
    #4ade80 0%,
    #22d3ee 100%
  );
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, rgba(243, 239, 230, 0.04), transparent 340px),
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.15), transparent 340px),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.1), transparent 300px), var(--bg);
  color: var(--text);
  font-family: "Baloo 2", "Inter", sans-serif;
  font-size: 14px;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(16, 16, 20, 0.84);
  border-bottom: 1px solid rgba(243, 239, 230, 0.12);
  display: flex;
  gap: 6px;
  height: 64px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-person-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.user-auth-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn-action {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav-btn-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.nav-btn-action.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.nav-btn-action.btn-primary:hover {
  filter: brightness(1.1);
}

.nav-btn-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-btn-link:hover {
  color: var(--paper);
}

.nav-btn-action.btn-logout {
  color: var(--danger);
  border-color: rgba(251, 113, 133, 0.2);
  background: rgba(251, 113, 133, 0.05);
}
.nav-btn-action.btn-logout:hover {
  background: rgba(251, 113, 133, 0.1);
  border-color: var(--danger);
}

.nav-badge {
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(251, 113, 133, 0.4);
}

.mobile-drawer-link .nav-badge {
  margin-left: auto;
}

/* Oculta itens que exigem um grupo selecionado */
.group-only {
  display: none !important;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 12px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(243, 239, 230, 0.06);
  color: var(--paper);
}

.nav a.active {
  background: var(--paper);
  border-color: var(--paper);
  color: #151318;
}

.nav-person {
  display: flex;
  gap: 4px;
  margin-left: 0;
}

.nav-person a {
  align-items: center;
  display: flex;
  gap: 6px;
}

.nav-avatar {
  align-items: center;
  border-radius: 50%;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.nav-hamburger {
  display: none;
}

.mobile-drawer {
  display: none;
}

.page {
  margin: 0 auto;
  max-width: 1240px;
  padding: 38px 24px 64px;
}

.page-header {
  border-bottom: 1px solid rgba(243, 239, 230, 0.12);
  margin-bottom: 28px;
  padding-bottom: 22px;
}

.page-header h1 {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.page-header p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 10px;
}

.home-page {
  padding-top: 28px;
}

.home-hero {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  margin-bottom: 16px;
}

.hero-copy,
.hero-panel {
  border: 1px solid rgba(243, 239, 230, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 390px;
}

.hero-copy {
  background:
    linear-gradient(rgba(16, 16, 20, 0.26), rgba(16, 16, 20, 0.58)),
    url("https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
}

.eyebrow {
  color: var(--hacksuya-light);
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-copy h1 {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: clamp(54px, 11vw, 112px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.86;
  margin-bottom: 22px;
  max-width: 700px;
}

.hero-copy p {
  color: var(--ink);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.75;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  align-items: center;
  background: rgba(243, 239, 230, 0.08);
  border: 1px solid rgba(243, 239, 230, 0.16);
  border-radius: 999px;
  color: var(--paper);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 16px;
  transition: all 0.18s ease;
}

.btn:hover {
  background: rgba(243, 239, 230, 0.14);
  border-color: rgba(243, 239, 230, 0.34);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--paper);
  border-color: var(--paper);
  color: #151318;
}

.btn-primary:hover {
  background: var(--hacksuya-light);
  border-color: var(--hacksuya-light);
  color: #061014;
}

.hero-panel {
  background:
    linear-gradient(180deg, rgba(243, 239, 230, 0.08), rgba(243, 239, 230, 0.025)), var(--card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.hero-panel::before {
  color: rgba(243, 239, 230, 0.18);
  content: "FEATURE";
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-panel h2 {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: auto 0 12px;
}

.hero-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.mini-metrics {
  border-top: 1px solid rgba(243, 239, 230, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
}

.mini-metrics span,
.quick-links a span,
.member-card footer span {
  border: 1px solid rgba(243, 239, 230, 0.12);
  border-radius: 999px;
  color: var(--muted);
  display: inline-block;
  font-size: 11px;
  padding: 5px 9px;
}

.quick-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 54px;
}

.quick-links a {
  background: rgba(243, 239, 230, 0.04);
  border: 1px solid rgba(243, 239, 230, 0.13);
  border-radius: 8px;
  min-height: 122px;
  padding: 18px;
  transition: all 0.18s ease;
}

.quick-links a:hover {
  background: rgba(243, 239, 230, 0.07);
  border-color: rgba(243, 239, 230, 0.28);
  transform: translateY(-2px);
}

.quick-links strong {
  color: var(--paper);
  display: block;
  font-family: "Newsreader", serif;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-head {
  align-items: end;
  border-top: 1px solid rgba(243, 239, 230, 0.12);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 0 18px;
  padding-top: 28px;
}

.section-head h2 {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.section-head p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 420px;
}

.member-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 36px;
}

.member-card {
  border-top: 4px solid var(--member-color);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 520px;
}

.member-card header {
  align-items: center;
  display: flex;
  gap: 12px;
}

.member-mark {
  align-items: center;
  background: color-mix(in srgb, var(--member-color) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--member-color) 54%, transparent);
  border-radius: 50%;
  color: var(--member-color);
  display: flex;
  flex: 0 0 42px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.member-card h3 {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.member-card header p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.rank-block h4 {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.rank-block ol {
  counter-reset: item;
  display: grid;
  gap: 8px;
  list-style: none;
}

.rank-block li {
  align-items: center;
  border-bottom: 1px solid rgba(243, 239, 230, 0.1);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 0;
}

.rank-block li::before {
  color: var(--member-color);
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  font-size: 11px;
  font-weight: 900;
}

.rank-block li span {
  flex: 1;
  line-height: 1.4;
}
.rank-block li strong {
  color: var(--success);
  font-size: 13px;
}
.rank-block.compact li {
  align-items: flex-start;
  font-size: 12px;
}

.member-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.feature-row {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  margin-bottom: 54px;
}

.feature-main h2,
.pulse-card h2 {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 20px;
}

.spotlight-list,
.hot-list {
  display: grid;
  gap: 0;
}

.spotlight-list div,
.hot-list a {
  align-items: center;
  border-top: 1px solid rgba(243, 239, 230, 0.1);
  display: grid;
  gap: 14px;
  grid-template-columns: 42px 1fr auto;
  padding: 14px 0;
}

.spotlight-list strong {
  color: var(--rafael-light);
  font-size: 13px;
  font-weight: 900;
}

.spotlight-list em,
.hot-list strong {
  color: var(--warning);
  font-style: normal;
  font-weight: 900;
}

.hot-list a {
  grid-template-columns: 1fr auto;
}

.hot-list a:hover span {
  color: var(--paper);
}

.news-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.news-card {
  background: rgba(243, 239, 230, 0.04);
  border: 1px solid rgba(243, 239, 230, 0.13);
  border-radius: 8px;
  min-height: 230px;
  padding: 22px;
}

.news-date {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  margin-top: 2px;
}

.news-source {
  color: var(--dudu-light);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.news-card h3 {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.news-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.news-card a {
  color: var(--rafael-light);
  font-size: 13px;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 28px;
}

.stat-card,
.card {
  background: rgba(243, 239, 230, 0.045);
  border: 1px solid rgba(243, 239, 230, 0.13);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.18s ease;
}

.stat-card:hover,
.card:hover {
  background: rgba(243, 239, 230, 0.065);
  border-color: rgba(243, 239, 230, 0.26);
}

body.suggest-page,
body.suggest-page.dark-theme {
  --suggest-mint: #8fd9ad;
  --suggest-sky: #86c7dc;
  --suggest-pink: #d9a6bf;
  --suggest-lilac: #b9a7df;
  background:
    radial-gradient(circle at 18% 16%, rgba(185, 167, 223, 0.15), transparent 330px),
    radial-gradient(circle at 78% 8%, rgba(134, 199, 220, 0.12), transparent 360px),
    radial-gradient(circle at 50% 72%, rgba(217, 166, 191, 0.07), transparent 400px),
    linear-gradient(
      135deg,
      rgba(143, 217, 173, 0.035),
      rgba(139, 92, 246, 0.03) 45%,
      rgba(6, 182, 212, 0.035)
    ),
    var(--bg);
}

body.suggest-page::before {
  opacity: 0.075;
  background-image:
    linear-gradient(rgba(143, 217, 173, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 199, 220, 0.08) 1px, transparent 1px);
}

body.suggest-page .page {
  max-width: 1250px;
}

body.suggest-page .page-header,
body.suggest-page.dark-theme .page-header {
  border-bottom-color: rgba(186, 230, 253, 0.22);
  margin-bottom: 30px;
  padding-top: 10px;
}

body.suggest-page .page-header h1,
body.suggest-page.dark-theme .page-header h1 {
  background: linear-gradient(
    90deg,
    #f6eadb 0%,
    var(--suggest-pink) 32%,
    var(--suggest-mint) 68%,
    var(--suggest-sky) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.12;
  padding-top: 8px;
  -webkit-text-fill-color: transparent;
}

body.suggest-page .card.suggest-form-card {
  background:
    linear-gradient(
      145deg,
      rgba(217, 166, 191, 0.09),
      rgba(143, 217, 173, 0.055) 44%,
      rgba(134, 199, 220, 0.085)
    ),
    rgba(24, 23, 29, 0.92);
  border: 1px solid rgba(185, 167, 223, 0.24);
  border-radius: 28px;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  margin: 0 auto;
}

body.suggest-page .suggest-form-card .form-group {
  margin-bottom: 24px;
}

body.suggest-page .suggest-form-card .form-group label {
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.01em;
  margin-bottom: 9px;
}

body.suggest-page .suggest-form-card .form-group input[type="text"] {
  background: rgba(12, 12, 16, 0.58);
  border: 1px solid rgba(221, 214, 254, 0.28);
  border-radius: 16px;
  color: var(--paper);
  min-height: 56px;
  padding: 15px 16px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

body.suggest-page .suggest-form-card .form-group input[type="text"]:focus {
  background: rgba(12, 12, 16, 0.72);
  border-color: rgba(187, 247, 208, 0.75);
  box-shadow: 0 0 0 4px rgba(187, 247, 208, 0.12);
  outline: none;
}

body.suggest-page .suggest-form-card .form-group input[disabled] {
  background: rgba(255, 255, 255, 0.055) !important;
  color: var(--muted) !important;
}

.suggest-submit {
  background: linear-gradient(100deg, #c4b5fd 0%, #f9a8d4 42%, #a7f3d0 100%);
  border: 0;
  border-radius: 18px;
  color: #17131d;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  min-height: 58px;
  padding: 15px 18px;
  width: 100%;
  box-shadow: 0 16px 34px rgba(167, 139, 250, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.suggest-submit:hover {
  filter: brightness(1.04);
  box-shadow: 0 20px 42px rgba(167, 139, 250, 0.28);
  transform: translateY(-1px);
}

.suggest-submit:disabled {
  cursor: wait;
  filter: grayscale(0.35) brightness(0.75);
  transform: none;
}

.stat-label,
.card-title {
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.stat-value {
  font-family: "Newsreader", serif;
  font-size: 38px;
  font-weight: 750;
  line-height: 0.95;
}

.stat-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#person-stats .stat-card {
  --stat-color: var(--paper);
  --stat-label-color: var(--stat-color);
  align-items: center;
  display: grid;
  grid-template-rows: 18px 34px 14px;
  height: 112px;
  justify-items: center;
  min-height: 0;
  overflow: hidden;
  padding: 20px 22px 16px;
  text-align: center;
}

#person-stats .stat-card:nth-child(1) {
  --stat-color: #a78bfa;
  --stat-label-color: #8b5cf6;
}
#person-stats .stat-card:nth-child(2) {
  --stat-color: #ff9dcc;
  --stat-label-color: #ec4899;
}
#person-stats .stat-card:nth-child(3) {
  --stat-color: #34d399;
  --stat-label-color: #10b981;
}
#person-stats .stat-card:nth-child(4) {
  --stat-color: #67e8f9;
  --stat-label-color: #06b6d4;
}
#person-stats .stat-card:nth-child(5) {
  --stat-color: #fb7185;
  --stat-label-color: #ef4444;
}

#person-stats .stat-label {
  align-self: start;
  color: var(--stat-label-color);
  grid-row: 1;
  line-height: 1;
  margin-bottom: 0;
}

#person-stats .stat-value {
  align-self: center;
  color: var(--stat-color);
  font-family: inherit;
  grid-row: 2;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

#person-stats .stat-value-number {
  font-family: "Newsreader", serif;
  font-size: clamp(24px, 1.7vw, 29px);
  line-height: 0.95;
  transform: translateY(3px);
}

#person-stats .stat-value-text {
  display: flex;
  font-size: clamp(17px, 1.25vw, 20px);
  justify-content: center;
  line-height: 1.16;
  overflow: hidden;
  text-wrap: balance;
}

#person-stats .stat-sub {
  align-self: end;
  color: color-mix(in srgb, var(--stat-color) 72%, var(--muted));
  grid-row: 3;
  font-weight: 800;
  line-height: 1;
  margin-top: 0;
  min-height: 12px;
}

.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
}
.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 28px;
}

.filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filters input,
.filters select,
.compare-selectors select {
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(rgba(16, 16, 22, 0.9), rgba(16, 16, 22, 0.9)) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.7), rgba(6, 182, 212, 0.55)) border-box;
  border: 1.5px solid transparent;
  border-radius: 999px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.25),
    0 0 0 0 rgba(124, 58, 237, 0);
  color: #e0daf5;
  color-scheme: dark;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  outline: none;
  padding: 9px 18px;
  transition:
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.filters input:hover,
.filters select:hover,
.compare-selectors select:hover {
  background:
    linear-gradient(rgba(22, 18, 32, 0.92), rgba(22, 18, 32, 0.92)) padding-box,
    linear-gradient(135deg, rgba(167, 139, 250, 0.9), rgba(34, 211, 238, 0.75)) border-box;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(124, 58, 237, 0.18);
}

.filters input:focus,
.filters select:focus,
.compare-selectors select:focus {
  background:
    linear-gradient(rgba(20, 16, 30, 0.95), rgba(20, 16, 30, 0.95)) padding-box,
    linear-gradient(135deg, #a78bfa, #22d3ee) border-box;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(124, 58, 237, 0.18),
    0 0 20px rgba(34, 211, 238, 0.12);
  color: #f0ecff;
}

.filters select,
.compare-selectors select {
  background-image:
    linear-gradient(rgba(16, 16, 22, 0.9), rgba(16, 16, 22, 0.9)),
    linear-gradient(135deg, rgba(124, 58, 237, 0.7), rgba(6, 182, 212, 0.55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2322d3ee' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-origin: padding-box, border-box, padding-box;
  background-clip: padding-box, border-box, padding-box;
  background-position:
    0 0,
    0 0,
    right 14px center;
  background-repeat: no-repeat;
  background-size:
    auto,
    auto,
    10px 6px;
  padding-right: 38px;
}

.filters select option,
.compare-selectors select option {
  background: #13111e;
  color: #e0daf5;
  font-weight: 600;
}

.filters input {
  flex: 1;
  min-width: 220px;
}
.filters select {
  min-width: 148px;
}
.filters input:focus,
.filters select:focus,
.compare-selectors select:focus {
  border-color: var(--accent);
}

.table-wrap {
  border: 1px solid rgba(243, 239, 230, 0.1);
  border-radius: 8px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
}

thead th {
  background: rgba(243, 239, 230, 0.055);
  border-bottom: 1px solid rgba(243, 239, 230, 0.13);
  color: var(--faint);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 14px;
  text-align: left;
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
}

thead th:hover,
thead th.sorted {
  color: var(--paper);
}

tbody tr {
  border-bottom: 1px solid rgba(243, 239, 230, 0.1);
  cursor: pointer;
  transition: background 0.15s ease;
}

tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: rgba(243, 239, 230, 0.055);
}
tbody td {
  padding: 12px 14px;
  vertical-align: middle;
}

.anime-identity {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 220px;
}

.anime-name {
  color: var(--paper);
  font-weight: 700;
}

.dub-badge {
  background: rgba(0, 156, 59, 0.15);
  border: 1px solid rgba(0, 156, 59, 0.4);
  border-radius: 999px;
  color: #4ade80;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  white-space: nowrap;
}

.anime-dub-toggle {
  margin-top: 10px;
}

.dub-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  transition: all 0.15s ease;
}

.dub-toggle-btn:hover {
  border-color: rgba(74, 222, 128, 0.4);
  color: #86efac;
}

.dub-toggle-btn.dub-on {
  background: rgba(0, 156, 59, 0.12);
  border-color: rgba(74, 222, 128, 0.45);
  color: #4ade80;
}

.anime-img {
  background: rgba(243, 239, 230, 0.07);
  border: 1px solid rgba(243, 239, 230, 0.12);
  border-radius: 6px;
  flex: 0 0 42px;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.anime-img.loaded {
  background: transparent;
}

.badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  margin: 1px 2px;
  padding: 3px 8px;
  white-space: nowrap;
}

.badge-rafael {
  background: rgba(124, 58, 237, 0.22);
  color: var(--rafael-light);
}
.badge-fernando {
  background: rgba(236, 72, 153, 0.22);
  color: var(--fernando-light);
}
.badge-dudu {
  background: rgba(234, 179, 8, 0.18);
  color: var(--dudu-light);
}
.badge-hacksuya {
  background: rgba(6, 182, 212, 0.2);
  color: var(--hacksuya-light);
}
.badge-zana {
  background: rgba(249, 115, 22, 0.2);
  color: var(--zana-light);
}
.badge-genre {
  background: rgba(243, 239, 230, 0.07);
  color: var(--muted);
}

.nota {
  font-weight: 900;
}
.nota-high {
  color: var(--success);
}
.nota-mid {
  color: var(--warning);
}
.nota-low {
  color: var(--danger);
}

.controversia {
  font-size: 12px;
}
.controversia-hot {
  color: var(--danger);
  font-weight: 900;
}

.modal-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 16px;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.2s ease;
  z-index: 200;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #17161d;
  border: 1px solid rgba(243, 239, 230, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: 85vh;
  max-width: 680px;
  overflow-y: auto;
  padding: 30px;
  transform: translateY(12px);
  transition: transform 0.16s ease;
  width: 100%;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-overlay.open .modal {
  transition: none;
}

.modal-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}

.modal-close {
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  font-size: 24px;
  padding: 0 4px;
  transition: color 0.18s ease;
}

.modal-close:hover {
  color: var(--paper);
}

.modal-genres {
  margin-bottom: 18px;
}

.notes-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}

.note-box {
  background: rgba(16, 16, 20, 0.72);
  border: 1px solid rgba(243, 239, 230, 0.12);
  border-radius: 8px;
  padding: 13px;
  text-align: center;
}

.note-box .person {
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 6px;
}
.note-box .score {
  font-family: "Newsreader", serif;
  font-size: 30px;
  font-weight: 750;
  line-height: 1;
}
.note-box .score.empty {
  color: var(--faint);
  font-size: 18px;
}

.modal-comment {
  background: rgba(16, 16, 20, 0.72);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
}

.comment-pill {
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 999px;
  color: var(--rafael-light);
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  white-space: nowrap;
}

.comment-empty {
  color: var(--faint);
  font-size: 12px;
}
.modal-comments {
  margin-top: 18px;
}

.modal-links {
  background:
    linear-gradient(
      135deg,
      rgba(216, 180, 254, 0.12),
      rgba(187, 247, 208, 0.07),
      rgba(186, 230, 253, 0.08)
    ),
    rgba(12, 12, 17, 0.58);
  border: 1px solid rgba(221, 214, 254, 0.18);
  border-radius: 18px;
  margin-top: 18px;
  padding: 14px;
}

.modal-links h3 {
  color: #f5d0fe;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.modal-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.modal-link-chip {
  background:
    linear-gradient(135deg, rgba(216, 180, 254, 0.18), rgba(186, 230, 253, 0.1)),
    rgba(16, 16, 20, 0.7);
  border: 1px solid rgba(216, 180, 254, 0.28);
  border-radius: 999px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 11px;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.modal-link-chip:hover {
  border-color: rgba(187, 247, 208, 0.55);
  transform: translateY(-1px);
}

.modal-link-opening {
  border-color: rgba(187, 247, 208, 0.28);
}

.modal-link-mal {
  border-color: rgba(186, 230, 253, 0.34);
}

.modal-link-custom {
  border-color: rgba(249, 168, 212, 0.34);
}

.modal-link-chip-wrap {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.modal-link-chip-actions {
  align-items: center;
  display: none;
  gap: 2px;
}

.modal-link-chip-wrap:hover .modal-link-chip-actions {
  display: inline-flex;
}

.modal-link-chip-action-btn {
  align-items: center;
  background: rgba(16, 16, 20, 0.9);
  border: 1px solid rgba(216, 180, 254, 0.3);
  border-radius: 999px;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  height: 20px;
  justify-content: center;
  padding: 0;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
  width: 20px;
}

.modal-link-chip-action-btn:hover {
  border-color: rgba(216, 180, 254, 0.7);
}

.modal-link-delete-btn:hover {
  border-color: rgba(252, 165, 165, 0.7);
  color: #fca5a5;
}

.modal-link-add-btn {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(216, 180, 254, 0.18), rgba(186, 230, 253, 0.1)),
    rgba(16, 16, 20, 0.7);
  border: 1px solid rgba(216, 180, 254, 0.28);
  border-radius: 999px;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 300;
  height: 32px;
  justify-content: center;
  line-height: 1;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
  width: 32px;
}

.modal-link-add-btn:hover {
  border-color: rgba(187, 247, 208, 0.55);
  transform: translateY(-1px);
}

.add-link-form {
  border-top: 1px solid rgba(221, 214, 254, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.add-link-form[hidden] {
  display: none;
}

.add-link-input {
  background: rgba(16, 16, 20, 0.7);
  border: 1px solid rgba(216, 180, 254, 0.28);
  border-radius: 10px;
  box-sizing: border-box;
  color: var(--paper);
  font-size: 13px;
  padding: 8px 12px;
  width: 100%;
}

.add-link-input:focus {
  border-color: rgba(216, 180, 254, 0.6);
  outline: none;
}

.add-link-input::placeholder {
  color: var(--muted);
}

.add-link-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.modal-comments h3 {
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-item {
  background: rgba(16, 16, 20, 0.72);
  border: 1px solid rgba(243, 239, 230, 0.12);
  border-radius: 8px;
  padding: 14px;
}

.comment-item strong {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}

.comment-item p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}

.anime-edit-panel {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
}

.anime-edit-panel h3 {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

.anime-edit-collapsible {
  display: block;
}

.anime-edit-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
}

.anime-edit-summary::-webkit-details-marker {
  display: none;
}

.anime-edit-body {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.edit-expand-button {
  background: linear-gradient(90deg, #c4b5fd, #bae6fd);
  border-radius: 999px;
  color: #14101a;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 9px 13px;
}

.anime-edit-collapsible[open] .edit-expand-button {
  background: rgba(243, 239, 230, 0.08);
  border: 1px solid rgba(243, 239, 230, 0.18);
  color: var(--paper);
}

.anime-edit-collapsible[open] .edit-expand-button::before {
  content: "Fechar ";
}

.anime-edit-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 6px 0 0;
}

.anime-edit-head,
.anime-edit-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.edit-field {
  display: grid;
  gap: 7px;
}

.edit-field span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edit-field input,
.edit-field textarea {
  background: rgba(16, 16, 20, 0.72);
  border: 1px solid rgba(243, 239, 230, 0.14);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  padding: 10px 12px;
  transition: border-color 0.18s ease;
  width: 100%;
}

.edit-field input {
  max-width: 120px;
}

.edit-field textarea {
  min-height: 86px;
  resize: vertical;
}

.edit-field input:focus,
.edit-field textarea:focus {
  border-color: var(--accent);
}

.edit-button {
  background: var(--accent);
  border: none;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 15px;
}

.edit-button:disabled {
  cursor: progress;
  opacity: 0.55;
}

.edit-link-button {
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.edit-status {
  color: var(--faint);
  font-size: 12px;
}

.user-selection-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 300;
}

.user-selection-modal {
  background: var(--card);
  border: 1px solid rgba(243, 239, 230, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 420px;
  padding: 26px;
  width: 100%;
}

.user-selection-modal h3 {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: 30px;
  font-weight: 650;
  line-height: 1;
  margin-bottom: 8px;
}

.user-selection-modal p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.person-select-list {
  display: grid;
  gap: 10px;
}

.person-select-list button {
  align-items: center;
  background: rgba(243, 239, 230, 0.06);
  border: 1px solid rgba(243, 239, 230, 0.14);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 10px;
  padding: 12px;
  text-align: left;
}

.person-select-list button:hover {
  border-color: var(--accent);
}

.person-select-list span {
  border-radius: 50%;
  height: 12px;
  width: 12px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.meta-item {
  color: var(--faint);
  font-size: 12px;
}
.meta-item span {
  color: var(--muted);
}

.chart-container {
  position: relative;
}

.person-hero {
  align-items: center;
  border-bottom: 1px solid rgba(243, 239, 230, 0.12);
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 24px;
}

.person-avatar-big {
  align-items: center;
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  font-size: 26px;
  font-weight: 900;
  height: 68px;
  justify-content: center;
  width: 68px;
}

.person-hero h1 {
  font-family: "Newsreader", serif;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.person-hero p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

body.rafael-page .person-hero {
  justify-content: space-between;
}

.rafael-hero-mascot {
  align-self: center;
  display: block;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 18px rgba(253, 230, 138, 0.2));
  height: clamp(82px, 8vw, 122px);
  object-fit: contain;
  pointer-events: none;
  width: auto;
}

.anime-list {
  list-style: none;
}

.anime-list li {
  align-items: center;
  border-bottom: 1px solid rgba(243, 239, 230, 0.1);
  display: flex;
  font-size: 13px;
  gap: 8px;
  justify-content: space-between;
  padding: 10px 0;
}

.anime-list li:last-child {
  border-bottom: none;
}
.anime-list .name {
  flex: 1;
}
.anime-list .score {
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
}
.anime-list .empty-score {
  color: var(--faint);
  font-size: 12px;
}

/* ── New Profile Styles ── */
.profile-header-new {
  margin-bottom: 30px;
  text-align: center;
  padding: 40px 20px;
}

.stats-grid-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.highlight-card {
  text-align: center;
  padding: 20px !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

.highlight-card .stat-sub {
  font-size: 24px;
  font-weight: 800;
  margin-top: 5px;
}

.profile-ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: transform 0.2s;
}

.rank-number {
  font-family: "Newsreader", serif;
  font-size: 20px;
  font-weight: 800;
  min-width: 35px;
}

.rank-info {
  flex: 1;
}

.rank-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--paper);
}

.rank-genres {
  font-size: 11px;
  color: var(--faint);
  margin-top: 2px;
}

.rank-score {
  font-family: "Newsreader", serif;
  font-weight: 800;
  font-size: 16px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
}

.genre-bar-row {
  margin-bottom: 12px;
}

.genre-bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
}

.genre-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.genre-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.profile-exclusives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.exclusive-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.exclusive-mini-card img {
  width: 40px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
}

.exclusive-info {
  flex: 1;
  overflow: hidden;
}

.exclusive-info strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--paper);
}

.exclusive-info span {
  font-size: 10px;
  color: var(--faint);
}

@media (max-width: 768px) {
  .stats-grid-highlights {
    grid-template-columns: 1fr;
  }
}

/* Profile page refresh */
body.profile-page {
  --profile-accent: #8b5cf6;
  --profile-accent-soft: rgba(139, 92, 246, 0.38);
  --profile-border: rgba(125, 102, 226, 0.18);
  background:
    radial-gradient(circle at top left, rgba(116, 67, 219, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(42, 191, 164, 0.1), transparent 30%),
    linear-gradient(135deg, #090813 0%, #0b0f1e 42%, #07171a 100%);
}

body.profile-page .page.profile-dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1240px;
  padding: 30px 24px 72px;
}

.profile-hero-card,
.profile-surface-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--profile-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 13, 26, 0.97), rgba(8, 13, 24, 0.95));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-hero-card::before,
.profile-surface-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at left top, rgba(140, 92, 246, 0.08), transparent 34%),
    radial-gradient(circle at right center, rgba(22, 212, 184, 0.08), transparent 32%);
  pointer-events: none;
}

.profile-hero-shell,
.profile-main-grid,
.profile-highlight-grid,
.profile-summary-grid,
.profile-side-column,
.profile-exclusives-grid,
.profile-activity-list {
  position: relative;
  z-index: 1;
}

.profile-hero-card {
  padding: 0;
}

.profile-hero-shell {
  display: block;
  min-height: 0;
}

.profile-hero-copy {
  display: block;
  padding: 22px 24px;
}

.profile-hero-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  align-items: center;
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.profile-name-row h1 {
  margin: 0;
  color: var(--profile-accent);
  font-size: clamp(34px, 4.3vw, 46px);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.profile-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(9, 29, 23, 0.64);
  border: 1px solid rgba(103, 241, 198, 0.18);
  color: #6ff3c3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.profile-role-kicker,
.profile-card-title,
.profile-highlight-label,
.profile-summary-label,
.profile-visual-kicker {
  color: rgba(194, 201, 230, 0.74);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.profile-role-kicker {
  margin: 4px 0 0;
}

.profile-tagline {
  margin: 0;
  color: rgba(230, 236, 252, 0.9);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.profile-meta-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  margin-top: 10px;
  align-items: center;
}

.profile-meta-chip {
  --meta-accent: rgba(139, 92, 246, 0.26);
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 10px 22px 10px 0;
  position: relative;
  white-space: nowrap;
}

.profile-meta-chip + .profile-meta-chip {
  padding-left: 22px;
}

.profile-meta-chip + .profile-meta-chip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(163, 173, 210, 0.14);
}

.profile-meta-chip.is-level {
  --meta-accent: rgba(139, 92, 246, 0.28);
}

.profile-meta-chip.is-watched {
  --meta-accent: rgba(114, 102, 255, 0.24);
}

.profile-meta-chip.is-average {
  --meta-accent: rgba(107, 92, 246, 0.26);
}

.profile-meta-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(22, 28, 44, 0.92), rgba(11, 16, 29, 0.88)) padding-box,
    linear-gradient(145deg, var(--meta-accent), rgba(255, 255, 255, 0.04)) border-box;
  color: color-mix(in srgb, var(--meta-accent) 82%, #ffffff 18%);
  font-size: 18px;
  line-height: 1;
}

.profile-meta-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-meta-label {
  color: rgba(194, 201, 230, 0.64);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-meta-chip strong {
  color: #f8f9ff;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

.profile-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-highlight-card {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--highlight-accent) 46%, rgba(255, 255, 255, 0.08));
  background:
    linear-gradient(135deg, rgba(8, 14, 25, 0.88), rgba(9, 11, 20, 0.82)),
    var(--highlight-image, none) center / cover no-repeat;
}

.profile-highlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(8, 12, 22, 0.76), rgba(8, 12, 22, 0.52)),
    radial-gradient(
      circle at right bottom,
      color-mix(in srgb, var(--highlight-accent) 14%, transparent),
      transparent 30%
    );
  pointer-events: none;
}

.profile-highlight-card > * {
  position: relative;
  z-index: 1;
}

.profile-highlight-title {
  display: block;
  max-width: 14ch;
  margin-top: 10px;
  color: #f8f9ff;
  font-family: "Newsreader", serif;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1;
}

.profile-highlight-subtitle {
  display: block;
  margin-top: 10px;
  color: rgba(188, 197, 226, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-highlight-value {
  display: inline-flex;
  margin-top: 6px;
  color: var(--highlight-accent);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.profile-highlight-orb {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--highlight-accent) 18%, rgba(255, 255, 255, 0.02));
  border: 1px solid color-mix(in srgb, var(--highlight-accent) 26%, rgba(255, 255, 255, 0.06));
  color: var(--highlight-accent);
  font-size: 20px;
}

.profile-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.82fr);
  gap: 14px;
  align-items: start;
}

.profile-side-column {
  display: grid;
  gap: 14px;
}

.profile-genre-side-card {
  min-height: 248px;
}

.profile-surface-card {
  padding: 14px 16px 16px;
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-card-title {
  margin-bottom: 14px;
}

.profile-ghost-button {
  border: 1px solid rgba(139, 92, 246, 0.18);
  background: rgba(84, 58, 180, 0.16);
  color: #b99eff;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.profile-ranking-list {
  display: grid;
  gap: 0;
}

.ranking-item {
  display: grid;
  grid-template-columns: 42px 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(149, 160, 202, 0.1);
}

.ranking-item:last-child {
  border-bottom: 0;
}

.rank-thumb {
  width: 38px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-number {
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rank-name {
  color: #f7f8ff;
  font-size: 15px;
  font-weight: 700;
}

.rank-genres {
  margin-top: 5px;
  color: rgba(188, 197, 226, 0.68);
  font-size: 12px;
  line-height: 1.35;
}

.rank-score {
  min-width: 78px;
  text-align: right;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

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

.profile-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 102px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(136, 108, 243, 0.12);
  background: rgba(10, 13, 27, 0.4);
}

.profile-summary-card.is-accent {
  border-color: rgba(255, 102, 151, 0.18);
}

.profile-summary-value {
  display: block;
  margin-top: 8px;
  color: #fbfbfe;
  font-family: "Newsreader", serif;
  font-size: 24px;
  line-height: 1;
}

.profile-summary-caption {
  display: inline-block;
  margin-top: 6px;
  color: rgba(194, 201, 226, 0.7);
  font-size: 12px;
}

.profile-sparkline {
  position: absolute;
  right: 10px;
  bottom: 6px;
  width: 44%;
  height: 54px;
  opacity: 0.92;
}

.profile-sparkline-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-sparkline-area {
  opacity: 0.16;
}

.profile-sparkline-purple .profile-sparkline-line {
  stroke: #8d5eff;
}

.profile-sparkline-purple .profile-sparkline-area {
  fill: #8d5eff;
}

.profile-sparkline-pink .profile-sparkline-line {
  stroke: #ff5f98;
}

.profile-sparkline-pink .profile-sparkline-area {
  fill: #ff5f98;
}

.profile-activity-list {
  display: grid;
  gap: 10px;
}

.profile-activity-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: rgba(228, 233, 248, 0.86);
  font-size: 14px;
}

.profile-activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4de698;
  box-shadow: 0 0 10px rgba(77, 230, 152, 0.28);
}

.profile-activity-text {
  min-width: 0;
}

.profile-activity-time {
  color: rgba(177, 186, 214, 0.68);
  font-size: 13px;
}

.profile-genre-chart {
  display: grid;
  gap: 14px;
  height: 100%;
  align-content: start;
}

.genre-bar-info {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  color: #edf0fd;
  font-size: 14px;
}

.genre-bar-info small {
  color: rgba(193, 201, 228, 0.76);
  font-size: 13px;
}

.genre-bar-bg {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.genre-bar-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.86), rgba(34, 211, 238, 0.8));
  box-shadow: 0 0 14px rgba(117, 84, 251, 0.18);
}

.profile-exclusives-section {
  margin-top: 2px;
}

.profile-section-caption {
  margin: -4px 0 14px;
  color: rgba(193, 201, 228, 0.7);
  font-size: 14px;
}

.profile-exclusives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.exclusive-mini-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(120, 106, 202, 0.12);
  background: rgba(8, 13, 22, 0.58);
}

.exclusive-mini-card img {
  width: 56px;
  height: 78px;
  border-radius: 10px;
}

.exclusive-info strong {
  font-size: 14px;
  color: #f4f7ff;
}

.exclusive-info span {
  margin-top: 6px;
  display: block;
  color: rgba(193, 201, 228, 0.72);
  font-size: 12px;
}

.profile-empty-state {
  margin: 0;
  padding: 12px 0;
  color: rgba(193, 201, 228, 0.76);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .profile-main-grid,
  .profile-highlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .profile-hero-card,
  .profile-surface-card,
  .profile-highlight-card,
  .profile-summary-card {
    border-radius: 16px;
  }

  .profile-hero-copy {
    padding: 18px;
  }

  .profile-hero-shell {
    min-height: auto;
  }

  .profile-name-row h1 {
    font-size: 34px;
  }

  .profile-meta-grid,
  .profile-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-meta-chip {
    padding: 0;
  }

  .profile-meta-chip + .profile-meta-chip {
    padding-left: 0;
  }

  .profile-meta-chip + .profile-meta-chip::before {
    display: none;
  }

  .ranking-item {
    grid-template-columns: 38px 42px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 2 / span 2;
    text-align: left;
    padding-left: 52px;
    margin-top: 6px;
  }

  .profile-activity-item {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .profile-activity-time {
    grid-column: 2;
  }
}

.compare-selectors {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

body.compare-page {
  background:
    radial-gradient(circle at top left, rgba(128, 79, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 26%),
    linear-gradient(135deg, #090813 0%, #0a1223 42%, #081619 100%);
}

body.compare-page .page.compare-dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1240px;
  padding: 34px 24px 72px;
}

.compare-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.compare-hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 62px);
  line-height: 0.92;
  background: linear-gradient(90deg, #ffd6e8 0%, #d8b4fe 40%, #93c5fd 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.compare-hero-copy p {
  margin: 12px 0 0;
  color: rgba(235, 239, 255, 0.92);
  font-size: 16px;
}

.compare-tip-card,
.compare-surface-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(162, 137, 255, 0.28);
  background: linear-gradient(145deg, rgba(11, 16, 31, 0.94), rgba(9, 13, 24, 0.9));
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(80, 180, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.compare-surface-card::before,
.compare-tip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(155, 92, 255, 0.12), transparent 36%),
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.1), transparent 32%);
  pointer-events: none;
}

.compare-tip-card {
  min-width: 340px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-tip-card strong {
  color: #f5f7ff;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compare-tip-card span {
  color: rgba(199, 207, 231, 0.86);
  font-size: 14px;
  line-height: 1.5;
}

.compare-selector-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.compare-inline-label {
  color: rgba(216, 222, 244, 0.86);
  font-size: 14px;
  font-weight: 600;
}

body.compare-page .compare-selector-bar select {
  min-width: 150px;
  height: 40px;
  padding: 0 40px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(138, 123, 224, 0.28);
  background: linear-gradient(145deg, rgba(11, 15, 28, 0.94), rgba(8, 12, 23, 0.9));
  color: #f4f7ff;
  font-size: 14px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(0, 0, 0, 0.16);
}

body.compare-page .compare-selector-bar select:focus {
  border-color: rgba(167, 139, 250, 0.44);
  box-shadow:
    0 0 0 4px rgba(124, 58, 237, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.compare-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.62fr);
  gap: 18px;
  align-items: stretch;
}

.compare-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compare-surface-card {
  padding: 18px;
}

.compare-venn4-card,
.compare-summary-shell {
  height: 100%;
}

.compare-venn4-card {
  display: flex;
  flex-direction: column;
}

.compare-venn4-card #venn4-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.compare-affinity-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.compare-affinity-shell::before {
  content: "";
  position: absolute;
  inset: -8px;
  background:
    radial-gradient(circle at 12% 18%, rgba(217, 70, 239, 0.12), transparent 24%),
    radial-gradient(circle at 85% 24%, rgba(96, 165, 250, 0.1), transparent 22%),
    radial-gradient(circle at 48% 90%, rgba(52, 211, 153, 0.08), transparent 22%);
  pointer-events: none;
  filter: blur(10px);
  z-index: 0;
}

.compare-affinity-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(96, 165, 250, 0.05), transparent 18%);
  pointer-events: none;
  z-index: 0;
}

.compare-card-title {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  color: rgba(229, 234, 249, 0.95);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.compare-venn4-card .compare-card-title::before {
  content: "◌";
  display: inline-block;
  margin-right: 10px;
  color: #d8b4fe;
  font-size: 12px;
}

.compare-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.compare-summary-card {
  --summary-accent: #8b5cf6;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--summary-accent) 38%, rgba(255, 255, 255, 0.1));
  background: linear-gradient(145deg, rgba(18, 20, 38, 0.84), rgba(10, 13, 23, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px color-mix(in srgb, var(--summary-accent) 12%, transparent);
}

.compare-summary-card-inner {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.compare-summary-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--summary-accent) 16%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--summary-accent) 28%, rgba(255, 255, 255, 0.08));
  color: color-mix(in srgb, var(--summary-accent) 88%, #ffffff);
  font-size: 22px;
  line-height: 1;
}

.compare-summary-copy {
  min-width: 0;
}

.compare-summary-card.is-shared {
  --summary-accent: #a78bfa;
}

.compare-summary-card.is-total {
  --summary-accent: #34d399;
}

.compare-summary-label {
  display: block;
  color: color-mix(in srgb, var(--summary-accent) 78%, #f5f7ff);
  font-size: 13px;
  font-weight: 700;
}

.compare-summary-value {
  display: block;
  margin-top: 8px;
  color: #f8faff;
  font-size: 36px;
  line-height: 1;
  font-family: "Newsreader", serif;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.compare-summary-note {
  display: inline-block;
  margin-top: 6px;
  color: rgba(191, 198, 223, 0.72);
  font-size: 13px;
}

.compare-side-kpi-label,
.compare-side-block-title {
  display: block;
  color: rgba(197, 205, 228, 0.76);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.compare-side-kpi-value {
  display: block;
  margin-top: 10px;
  color: #f8faff;
  font-size: 42px;
  line-height: 1;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.compare-side-kpi-note {
  display: block;
  margin-top: 8px;
  color: rgba(221, 227, 246, 0.86);
  font-size: 14px;
  line-height: 1.45;
}

.compare-affinity-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(122px, 0.82fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.compare-affinity-score,
.compare-affinity-mini-card,
.compare-affinity-panel {
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(168, 143, 255, 0.26);
  background:
    linear-gradient(155deg, rgba(17, 20, 36, 0.9), rgba(10, 13, 25, 0.84)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 40%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(82, 183, 255, 0.04);
}

.compare-affinity-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  overflow: hidden;
  position: relative;
}

.compare-affinity-score::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 14px;
  width: 140px;
  height: 88px;
  opacity: 0.32;
  background: repeating-radial-gradient(
    circle at 0 50%,
    transparent 0 10px,
    rgba(255, 255, 255, 0.08) 10px 11px,
    transparent 11px 18px
  );
  transform: rotate(-8deg);
  pointer-events: none;
}

.compare-affinity-score-value {
  display: block;
  margin-top: 10px;
  color: #f8faff;
  font-size: 48px;
  line-height: 0.9;
  font-family: "Newsreader", serif;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.compare-affinity-score-value small {
  font-size: 26px;
  margin-left: 6px;
}

.compare-affinity-meter {
  position: relative;
  width: 100%;
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.compare-affinity-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d946ef 0%, #8b5cf6 45%, #22d3ee 100%);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.28);
}

.compare-affinity-strip {
  display: contents;
}

.compare-affinity-mini-card {
  --mini-accent: #8b5cf6;
  border-color: color-mix(in srgb, var(--mini-accent) 34%, rgba(255, 255, 255, 0.1));
  min-height: 150px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compare-affinity-mini-card strong {
  display: block;
  margin-top: 10px;
  color: color-mix(in srgb, var(--mini-accent) 80%, #ffffff);
  font-size: 28px;
  line-height: 1;
  font-family: "Newsreader", serif;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.compare-affinity-mini-card.is-neutral strong {
  color: #f8faff;
}

.compare-affinity-bands {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.compare-affinity-band {
  padding: 12px 14px;
  border-radius: 22px;
  border: 1px solid rgba(160, 141, 240, 0.24);
  background: linear-gradient(145deg, rgba(17, 20, 36, 0.84), rgba(11, 15, 28, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-height: 82px;
}

.compare-affinity-band strong {
  display: block;
  color: #f8faff;
  font-size: 24px;
  line-height: 1;
  font-family: "Newsreader", serif;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.compare-affinity-band-label {
  display: block;
  color: rgba(215, 222, 242, 0.76);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare-affinity-band-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.compare-affinity-band-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 18px;
  line-height: 1;
}

.compare-affinity-band.is-match {
  border-color: rgba(52, 211, 153, 0.34);
  background: linear-gradient(145deg, rgba(10, 28, 28, 0.86), rgba(11, 17, 24, 0.84));
}

.compare-affinity-band.is-match strong {
  color: #6ee7b7;
}

.compare-affinity-band.is-close {
  border-color: rgba(96, 165, 250, 0.34);
  background: linear-gradient(145deg, rgba(12, 21, 34, 0.86), rgba(11, 15, 24, 0.84));
}

.compare-affinity-band.is-close strong {
  color: #7dd3fc;
}

.compare-affinity-band.is-mid {
  border-color: rgba(167, 139, 250, 0.34);
}

.compare-affinity-band.is-mid strong {
  color: #c4b5fd;
}

.compare-affinity-band.is-hot {
  border-color: rgba(251, 113, 133, 0.34);
  background: linear-gradient(145deg, rgba(34, 15, 27, 0.86), rgba(16, 13, 24, 0.84));
}

.compare-affinity-band.is-hot strong {
  color: #fb7185;
}

.compare-affinity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.compare-affinity-title {
  display: block;
  margin-top: 8px;
  color: #f7f9ff;
  font-size: 21px;
  line-height: 1.08;
  font-family: "Newsreader", serif;
  font-weight: 700;
}

.compare-affinity-panel p {
  margin: 8px 0 0;
  color: rgba(220, 226, 246, 0.88);
  font-size: 13px;
  line-height: 1.55;
}

.compare-affinity-panel {
  min-height: 110px;
}

.compare-affinity-panel.is-hot {
  border-color: rgba(255, 102, 151, 0.34);
}

.compare-affinity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.compare-affinity-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top left, rgba(217, 70, 239, 0.08), transparent 35%);
  color: #eef2ff;
  font-size: 12px;
  font-weight: 600;
}

.compare-affinity-tag small {
  color: rgba(195, 203, 228, 0.74);
  font-size: 12px;
}

.compare-affinity-reading {
  font-size: 15px;
}

body.compare-page {
  background:
    radial-gradient(circle at 9% 12%, rgba(111, 79, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 28%, rgba(47, 135, 255, 0.12), transparent 32%),
    radial-gradient(circle at 56% 88%, rgba(93, 61, 208, 0.08), transparent 30%),
    linear-gradient(135deg, #060818 0%, #080d20 50%, #061018 100%);
}

body.compare-page .page.compare-dashboard-page {
  max-width: 1240px;
  padding: 34px 24px 72px;
}

.compare-hero-copy h1 {
  font-size: clamp(48px, 4.6vw, 66px);
  background: linear-gradient(90deg, #ffd3ed 0%, #ceb9ff 48%, #9cd7ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.compare-hero-copy p {
  color: rgba(224, 230, 248, 0.88);
  font-size: 17px;
}

.compare-selector-bar {
  margin-top: 2px;
  margin-bottom: 8px;
}

body.compare-page .compare-selector-bar select {
  min-width: 178px;
  height: 42px;
  padding-left: 22px;
  border-color: rgba(111, 126, 190, 0.38);
  background:
    linear-gradient(145deg, rgba(8, 13, 27, 0.95), rgba(6, 10, 22, 0.9)) padding-box,
    linear-gradient(135deg, rgba(122, 116, 255, 0.45), rgba(57, 212, 237, 0.16)) border-box;
  border: 1px solid transparent;
}

.compare-top-grid {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
}

.compare-surface-card {
  border-radius: 22px;
  border-color: rgba(104, 118, 180, 0.26);
  background:
    linear-gradient(145deg, rgba(13, 17, 32, 0.84), rgba(5, 11, 23, 0.86)),
    radial-gradient(circle at top left, rgba(155, 92, 255, 0.1), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 22px 58px rgba(0, 0, 0, 0.25);
}

.compare-venn4-card {
  padding: 24px 16px 16px;
}

.compare-summary-shell {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.compare-summary-shell #compare-summary {
  flex: 1;
  display: flex;
  min-height: 0;
}

.compare-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #f4f7ff;
  font-size: 14px;
  letter-spacing: 0.17em;
}

.compare-card-title::before {
  content: "▥";
  color: #b46cff;
  font-size: 17px;
  letter-spacing: 0;
}

.compare-venn4-card .compare-card-title::before {
  content: "⌁";
  margin-right: 0;
  color: #b46cff;
  font-size: 18px;
}

.compare-summary-grid {
  flex: 1;
  width: 100%;
  min-height: 0;
  height: auto;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-content: stretch;
  margin-top: 18px;
}

.compare-summary-card {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.compare-summary-card + .compare-summary-card {
  border-top: 1px solid rgba(148, 163, 216, 0.12);
}

.compare-summary-card-inner {
  height: 100%;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}

.compare-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at 35% 28%,
      color-mix(in srgb, var(--summary-accent) 38%, transparent),
      transparent 56%
    ),
    color-mix(in srgb, var(--summary-accent) 12%, rgba(255, 255, 255, 0.03));
  border-color: color-mix(in srgb, var(--summary-accent) 18%, rgba(255, 255, 255, 0.08));
  font-size: 20px;
}

.compare-summary-label {
  justify-self: end;
  color: color-mix(in srgb, var(--summary-accent) 84%, #ffffff);
  font-size: 12px;
  white-space: nowrap;
}

.compare-summary-value {
  margin: 0;
  font-size: 32px;
  font-family: "Newsreader", serif;
  font-weight: 780;
}

.compare-summary-note {
  margin-top: 6px;
  color: rgba(216, 224, 246, 0.82);
  font-size: 12px;
}

.compare-affinity-shell {
  gap: 16px;
}

.compare-affinity-shell::before,
.compare-affinity-shell::after {
  display: none;
}

.compare-affinity-hero {
  min-height: 196px;
  grid-template-columns: minmax(250px, 1.45fr) repeat(3, minmax(118px, 0.78fr));
  gap: 12px;
  align-items: stretch;
  padding: 0 0 18px;
}

.compare-affinity-score,
.compare-affinity-mini-card,
.compare-affinity-panel {
  border-radius: 22px;
  border: 1px solid transparent;
  background:
    linear-gradient(145deg, rgba(9, 15, 32, 0.82), rgba(6, 11, 24, 0.82)) padding-box,
    linear-gradient(
        135deg,
        rgba(178, 111, 255, 0.38),
        rgba(66, 211, 238, 0.32),
        rgba(52, 211, 153, 0.2)
      )
      border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 14px 32px rgba(0, 0, 0, 0.14);
}

.compare-affinity-score {
  min-height: 0;
  padding: 0;
}

.compare-affinity-score::after {
  display: none;
}

.compare-affinity-match-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px 20px;
}

.compare-affinity-match-card::before {
  display: none;
}

.compare-affinity-match-card > * {
  position: relative;
  z-index: 1;
}

.compare-affinity-score-value {
  margin: 6px 0 0;
  font-size: 42px;
  letter-spacing: 0;
}

.compare-affinity-score-value small {
  font-size: 20px;
  margin-left: 4px;
}

.compare-affinity-match-card .compare-side-kpi-label {
  color: rgba(204, 185, 255, 0.92);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.compare-affinity-match-card .compare-side-kpi-note {
  width: fit-content;
  margin-top: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.32), rgba(99, 102, 241, 0.22));
  border: 1px solid rgba(168, 85, 247, 0.24);
  color: rgba(244, 241, 255, 0.92);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.compare-affinity-match-card .compare-side-kpi-note i {
  margin-right: 8px;
  color: #d8b4fe;
  font-style: normal;
}

.compare-affinity-match-card p {
  max-width: 430px;
  margin: 14px 0 0;
  color: rgba(218, 226, 246, 0.82);
  font-size: 11px;
  line-height: 1.55;
}

.compare-affinity-meter {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 8px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.compare-affinity-mini-card {
  min-height: 168px;
  padding: 20px 14px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.compare-affinity-mini-card strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  height: auto;
  margin: 16px 0 12px;
  color: color-mix(in srgb, var(--mini-accent) 86%, #ffffff);
  font-size: 28px;
  line-height: 1;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
}

.compare-affinity-mini-card.is-neutral strong {
  color: #f7f9ff;
}

.compare-affinity-mini-card .compare-side-kpi-note {
  max-width: 112px;
  min-height: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 216, 0.14);
  color: rgba(230, 235, 250, 0.82);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.compare-affinity-mini-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--mini-accent) 24%, rgba(255, 255, 255, 0.08));
  background: linear-gradient(145deg, rgba(12, 19, 39, 0.9), rgba(7, 13, 27, 0.86));
  color: color-mix(in srgb, var(--mini-accent) 90%, #ffffff);
  font-size: 20px;
  line-height: 1;
}

.compare-affinity-bands {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(131, 147, 205, 0.13);
  background:
    radial-gradient(circle at 18% 30%, rgba(74, 144, 255, 0.07), transparent 34%),
    rgba(8, 14, 29, 0.62);
}

.compare-affinity-band {
  min-height: 50px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.compare-affinity-band + .compare-affinity-band {
  border-left: 1px solid rgba(148, 163, 216, 0.1);
}

.compare-affinity-band-icon {
  grid-row: 1;
  width: 38px;
  height: 38px;
  background: color-mix(in srgb, currentColor 14%, rgba(255, 255, 255, 0.04));
}

.compare-affinity-band-row {
  margin: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.compare-affinity-band strong {
  min-width: 34px;
  text-align: right;
  font-size: 22px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
}

.compare-affinity-band-label {
  margin-top: 0;
  color: rgba(246, 248, 255, 0.92);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.compare-affinity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compare-affinity-panel {
  min-height: 104px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background:
    linear-gradient(145deg, rgba(9, 15, 32, 0.82), rgba(6, 11, 24, 0.82)) padding-box,
    linear-gradient(
        135deg,
        rgba(178, 111, 255, 0.42),
        rgba(66, 211, 238, 0.32),
        rgba(52, 211, 153, 0.22)
      )
      border-box,
    radial-gradient(circle at 92% 28%, rgba(72, 207, 255, 0.06), transparent 28%),
    linear-gradient(145deg, rgba(9, 15, 32, 0.72), rgba(6, 11, 24, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.compare-affinity-panel.is-hot {
  background:
    linear-gradient(145deg, rgba(9, 15, 32, 0.82), rgba(6, 11, 24, 0.82)) padding-box,
    linear-gradient(
        135deg,
        rgba(96, 165, 250, 0.34),
        rgba(66, 211, 238, 0.34),
        rgba(52, 211, 153, 0.22)
      )
      border-box,
    radial-gradient(circle at 92% 28%, rgba(72, 207, 255, 0.06), transparent 28%),
    linear-gradient(145deg, rgba(9, 15, 32, 0.72), rgba(6, 11, 24, 0.72));
}

.compare-side-block-title {
  color: rgba(222, 228, 248, 0.86);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.compare-affinity-title {
  margin-top: 8px;
  font-size: 22px;
}

.compare-affinity-panel p {
  color: rgba(218, 226, 246, 0.88);
  font-size: 12px;
}

.compare-affinity-tags {
  margin-top: 14px;
  gap: 9px;
}

.compare-affinity-tag {
  padding: 8px 12px;
  border-color: rgba(157, 139, 255, 0.22);
  background: rgba(19, 23, 42, 0.72);
  font-size: 12px;
}

.compare-gap-panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: end;
}

.compare-gap-mini-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.compare-gap-mini-chart path {
  fill: none;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--gap-a) 35%, transparent));
}

.compare-gap-mini-chart .is-first {
  stroke: var(--gap-a);
}

.compare-gap-mini-chart .is-second {
  stroke: var(--gap-b);
}

.compare-gap-legend {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: rgba(221, 227, 246, 0.82);
  font-size: 12px;
}

.compare-gap-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.compare-gap-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gap-a);
}

.compare-gap-legend span + span i {
  background: var(--gap-b);
}

.compare-member-totals {
  display: grid;
  gap: 12px;
}

.compare-dual-venn {
  position: relative;
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-venn-circle {
  --venn-accent: #8b5cf6;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--venn-accent) 10%, rgba(7, 12, 24, 0.92));
  border: 2px solid color-mix(in srgb, var(--venn-accent) 88%, rgba(255, 255, 255, 0.1));
  box-shadow: 0 0 28px color-mix(in srgb, var(--venn-accent) 14%, transparent);
}

.compare-venn-circle.is-left {
  margin-right: -72px;
}

.compare-venn-circle.is-right {
  margin-left: -72px;
}

.compare-venn-circle strong,
.compare-venn-overlap strong {
  font-size: 44px;
  line-height: 1;
  font-family: "Newsreader", serif;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.compare-venn-circle strong {
  color: color-mix(in srgb, var(--venn-accent) 90%, #ffffff);
}

.compare-venn-circle span,
.compare-venn-overlap span {
  margin-top: 10px;
  font-size: 15px;
  color: rgba(225, 231, 248, 0.88);
}

.compare-venn-overlap {
  position: relative;
  z-index: 2;
  width: 156px;
  height: 156px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(114, 76, 179, 0.34);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(234, 238, 255, 0.16);
}

.compare-venn-overlap strong {
  color: #fafbff;
}

.compare-radar-wrap {
  position: relative;
  z-index: 1;
  height: 290px;
}

.compare-table-card {
  margin-top: 2px;
}

.compare-table-caption {
  position: relative;
  z-index: 1;
  margin: -4px 0 14px;
  color: rgba(191, 198, 223, 0.72);
  font-size: 13px;
}

.compare-table-wrap {
  position: relative;
  z-index: 1;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare-col-anime {
  width: auto;
}

.compare-col-score {
  width: 160px;
}

.compare-col-diff {
  width: 120px;
}

.compare-table thead tr {
  border-bottom: 1px solid rgba(167, 139, 250, 0.22);
}

.compare-table th,
.compare-table td {
  padding: 14px 12px;
}

.compare-table th {
  color: rgba(229, 234, 249, 0.9);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.compare-table th:nth-child(n + 2) {
  text-align: center;
}

.compare-table td {
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.compare-anime-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compare-anime-cell img {
  width: 46px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-anime-cell strong {
  display: block;
  color: #f5f7ff;
  font-size: 15px;
}

.compare-anime-cell span {
  display: block;
  margin-top: 4px;
  color: rgba(191, 198, 223, 0.72);
  font-size: 12px;
}

.compare-score-cell,
.compare-diff-cell {
  text-align: center;
  font-size: 17px;
  font-family: "Newsreader", serif;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.compare-diff-cell {
  color: rgba(239, 243, 255, 0.84);
}

.diff-highlight td {
  background: rgba(255, 102, 151, 0.08);
}

@media (max-width: 1180px) {
  .compare-top-grid,
  .compare-bottom-grid,
  .compare-hero {
    grid-template-columns: 1fr;
  }

  .compare-venn4-body {
    grid-template-columns: 1fr;
  }

  .compare-tip-card {
    min-width: 0;
  }

  .compare-affinity-hero,
  .compare-affinity-grid {
    grid-template-columns: 1fr;
  }

  .compare-affinity-bands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .compare-selector-bar {
    flex-direction: column;
    align-items: stretch;
  }

  body.compare-page .compare-selector-bar select {
    width: 100%;
  }

  .compare-dual-venn {
    min-height: 0;
    flex-direction: column;
    gap: 14px;
  }

  .compare-venn-circle,
  .compare-venn-overlap {
    margin: 0;
    width: min(100%, 250px);
    height: 220px;
  }

  .compare-affinity-strip {
    grid-template-columns: 1fr;
  }

  .compare-affinity-bands {
    grid-template-columns: 1fr;
  }
}

.venn-container {
  align-items: center;
  display: flex;
  gap: 0;
  justify-content: center;
  padding: 16px 0;
}

.venn-circle {
  align-items: center;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  height: 120px;
  justify-content: center;
  width: 120px;
}

.venn-count {
  font-family: "Newsreader", serif;
  font-size: 34px;
  font-weight: 750;
  line-height: 1;
}

.venn-label {
  font-size: 11px;
  margin-top: 3px;
}
.diff-highlight {
  background: rgba(251, 113, 133, 0.12);
}

.empty-state {
  color: var(--faint);
  padding: 48px 24px;
  text-align: center;
}

.empty-state p {
  font-size: 13px;
  margin-top: 8px;
}

.skeleton {
  animation: shimmer 1.5s infinite;
  background: linear-gradient(
    90deg,
    rgba(243, 239, 230, 0.05) 25%,
    rgba(243, 239, 230, 0.11) 50%,
    rgba(243, 239, 230, 0.05) 75%
  );
  background-size: 200% 100%;
  border-radius: 8px;
  height: 20px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 980px) {
  .home-hero,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .quick-links,
  .member-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page {
    padding: 24px 16px 48px;
  }

  /* ---- Nav: hamburger mode ---- */
  .nav {
    gap: 8px;
    overflow: visible;
    padding: 0 16px;
  }

  .nav-logo {
    flex: 1;
  }

  .nav > .nav-link,
  .nav > .nav-person {
    display: none;
  }

  .nav > .theme-toggle {
    align-items: center;
    background: rgba(243, 239, 230, 0.06);
    border: 1px solid rgba(243, 239, 230, 0.12);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    height: 36px;
    justify-content: center;
    padding: 0;
    width: 36px;
  }

  .nav-hamburger {
    align-items: center;
    background: rgba(243, 239, 230, 0.06);
    border: 1px solid rgba(243, 239, 230, 0.12);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 36px;
    justify-content: center;
    padding: 0 9px;
    transition:
      background 0.18s ease,
      border-color 0.18s ease;
    width: 40px;
  }

  .nav-hamburger:hover {
    background: rgba(243, 239, 230, 0.1);
    border-color: rgba(243, 239, 230, 0.22);
  }

  .nav-hamburger span {
    background: var(--text);
    border-radius: 2px;
    display: block;
    height: 2px;
    transition:
      transform 0.22s ease,
      opacity 0.18s ease;
    width: 18px;
  }

  .nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ---- Mobile drawer ---- */
  .mobile-drawer {
    display: block;
  }

  .mobile-drawer-backdrop {
    backdrop-filter: blur(6px);
    background: rgba(10, 10, 14, 0.72);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.25s ease;
    z-index: 200;
  }

  .mobile-drawer.is-open .mobile-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer-panel {
    background: var(--card);
    border-left: 1px solid var(--border);
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 22px 20px 32px;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(105%);
    transition:
      transform 0.3s cubic-bezier(0.32, 0, 0.2, 1),
      box-shadow 0.3s ease;
    width: min(320px, 88vw);
    z-index: 201;
  }

  .mobile-drawer.is-open .mobile-drawer-panel {
    box-shadow: -24px 0 64px rgba(0, 0, 0, 0.55);
    transform: translateX(0);
  }

  .mobile-drawer-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
  }

  .mobile-drawer-logo {
    background: var(--aniliber-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-family: "Newsreader", serif;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: 0.01em;
    -webkit-text-fill-color: transparent;
  }

  .mobile-drawer-close {
    align-items: center;
    background: rgba(243, 239, 230, 0.06);
    border: 1px solid rgba(243, 239, 230, 0.1);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    font-size: 14px;
    height: 34px;
    justify-content: center;
    transition:
      background 0.15s ease,
      color 0.15s ease;
    width: 34px;
  }

  .mobile-drawer-close:hover {
    background: rgba(243, 239, 230, 0.1);
    color: var(--paper);
  }

  .mobile-drawer-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .mobile-drawer-label {
    color: var(--faint);
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
    text-transform: uppercase;
  }

  .mobile-drawer-link {
    align-items: center;
    border-bottom: 1px solid rgba(243, 239, 230, 0.07);
    color: var(--muted);
    display: flex;
    font-size: 15px;
    font-weight: 600;
    gap: 0;
    letter-spacing: 0.01em;
    min-height: 50px;
    padding: 12px 6px;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .mobile-drawer-link:hover {
    color: var(--paper);
  }

  .mobile-drawer-link.active {
    color: var(--paper);
  }

  .mobile-drawer-link.active::before {
    background: var(--accent);
    border-radius: 2px;
    content: "";
    display: inline-block;
    flex-shrink: 0;
    height: 16px;
    margin-right: 12px;
    width: 3px;
  }

  .mobile-drawer-members {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
  }

  .mobile-drawer-members a {
    align-items: center;
    background: rgba(243, 239, 230, 0.04);
    border: 1px solid rgba(243, 239, 230, 0.1);
    border-radius: 10px;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    min-height: 46px;
    padding: 10px 12px;
    text-decoration: none;
    transition:
      background 0.15s ease,
      border-color 0.15s ease,
      color 0.15s ease;
  }

  .mobile-drawer-members a:hover,
  .mobile-drawer-members a.active {
    background: rgba(243, 239, 230, 0.08);
    border-color: rgba(243, 239, 230, 0.22);
    color: var(--paper);
  }

  .mobile-drawer-members .nav-avatar {
    flex-shrink: 0;
    font-size: 11px;
    height: 26px;
    width: 26px;
  }

  .mobile-drawer-footer {
    border-top: 1px solid rgba(243, 239, 230, 0.08);
    margin-top: auto;
    padding-top: 20px;
  }

  .mobile-theme-btn {
    align-items: center;
    background: rgba(243, 239, 230, 0.06);
    border: 1px solid rgba(243, 239, 230, 0.12);
    border-radius: 10px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    gap: 10px;
    min-height: 44px;
    padding: 10px 16px;
    transition:
      background 0.15s ease,
      color 0.15s ease;
    width: 100%;
  }

  .mobile-theme-btn:hover {
    background: rgba(243, 239, 230, 0.1);
    color: var(--paper);
  }

  .mobile-theme-icon {
    font-size: 16px;
  }

  /* ---- General layout ---- */
  .hero-copy,
  .hero-panel {
    min-height: 320px;
    padding: 24px;
  }

  .grid-2,
  .grid-3,
  .news-grid,
  .member-grid,
  .quick-links {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .filters input {
    min-width: 100%;
  }
  .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .notes-grid {
    grid-template-columns: 1fr;
  }
}

/* Abraço-inspired bright blog theme */
:root {
  --bg: #f7f0de;
  --paper: #fff8e7;
  --paper-soft: #f0dfbf;
  --ink: #1f2933;
  --text: #1f2933;
  --muted: #6d6255;
  --faint: #9a8873;
  --card: #fffaf0;
  --card2: #fff2d7;
  --border: #ead7b5;
  --border-hover: #1f2933;
  --accent: #f28c28;
  --danger: #e84a5f;
  --warning: #f0a500;
  --success: #179b73;
  --rafael-light: #6f45d8;
  --fernando-light: #d83182;
  --dudu-light: #b7791f;
  --hacksuya-light: #0588a6;
  --shadow: 0 18px 45px rgba(88, 60, 18, 0.12);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(242, 140, 40, 0.24), transparent 280px),
    radial-gradient(circle at 92% 10%, rgba(20, 160, 130, 0.18), transparent 280px),
    linear-gradient(180deg, #fff8e7 0, #f7f0de 420px, #f4ead4 100%);
  color: var(--text);
}

body::before {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(31, 41, 51, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 51, 0.05) 1px, transparent 1px);
}

.nav {
  background: rgba(255, 248, 231, 0.92);
  border-bottom: 2px solid #1f2933;
  box-shadow: 0 10px 30px rgba(88, 60, 18, 0.08);
}

.nav-logo {
  color: #1f2933;
}

.nav a {
  color: #574a3e;
}

.nav a:hover {
  background: #ffe2a8;
  color: #1f2933;
}

.nav a.active {
  background: #1f2933;
  border-color: #1f2933;
  color: #fff8e7;
}

.page-header,
.section-head,
.person-hero {
  border-color: #1f2933;
}

.page-header h1,
.section-head h2,
.quick-links strong,
.member-card h3,
.feature-main h2,
.pulse-card h2,
.news-card h3,
.modal-title,
.person-hero h1,
.anime-name {
  color: #1f2933;
}

.home-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.hero-copy {
  background:
    linear-gradient(90deg, rgba(255, 248, 231, 0.94), rgba(255, 248, 231, 0.72)),
    url("https://images.unsplash.com/photo-1618331833071-ce81bd50d300?auto=format&fit=crop&w=1600&q=80");
  border: 2px solid #1f2933;
  color: #1f2933;
  min-height: 430px;
}

.hero-copy h1 {
  color: #1f2933;
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: -0.045em;
  max-width: 780px;
}

.hero-copy p {
  color: #332a22;
  font-weight: 600;
  max-width: 760px;
}

.eyebrow {
  color: #e84a5f;
}

.hero-panel,
.quick-links a,
.news-card,
.stat-card,
.card,
.modal {
  background: var(--card);
  border: 2px solid #1f2933;
  box-shadow: 8px 8px 0 rgba(31, 41, 51, 0.12);
}

.hero-panel {
  background: #ffc857;
  color: #1f2933;
}

.hero-panel::before {
  color: rgba(31, 41, 51, 0.42);
}

.hero-panel h2,
.hero-panel p,
.mini-metrics span,
.member-card footer span {
  color: #1f2933;
}

.mini-metrics {
  border-color: rgba(31, 41, 51, 0.22);
}

.mini-metrics span,
.quick-links a span,
.member-card footer span {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(31, 41, 51, 0.18);
}

.quick-links a {
  min-height: 150px;
}

.quick-links a:nth-child(1) {
  background: #ffcf56;
}
.quick-links a:nth-child(2) {
  background: #f68f45;
}
.quick-links a:nth-child(3) {
  background: #7bd6c5;
}
.quick-links a:nth-child(4) {
  background: #f8a6c8;
}

.quick-links a:hover,
.news-card:hover,
.stat-card:hover,
.card:hover {
  border-color: #1f2933;
  box-shadow: 12px 12px 0 rgba(31, 41, 51, 0.16);
  transform: translate(-2px, -2px);
}

.btn {
  background: #fff8e7;
  border: 2px solid #1f2933;
  color: #1f2933;
  box-shadow: 4px 4px 0 rgba(31, 41, 51, 0.16);
}

.btn-primary,
.btn:hover {
  background: #1f2933;
  border-color: #1f2933;
  color: #fff8e7;
}

.btn-primary:hover {
  background: #e84a5f;
  border-color: #1f2933;
  color: #fff8e7;
}

.member-card:nth-child(1) {
  background: #fff5ca;
}
.member-card:nth-child(2) {
  background: #ffe0ef;
}
.member-card:nth-child(3) {
  background: #fff3bd;
}
.member-card:nth-child(4) {
  background: #dff5ff;
}

.rank-block li,
.spotlight-list div,
.hot-list a,
.anime-list li {
  border-color: rgba(31, 41, 51, 0.16);
}

.filters input,
.filters select,
.compare-selectors select {
  background: #fffaf0;
  border: 2px solid #1f2933;
  color: #1f2933;
}

.table-wrap,
thead th,
tbody tr,
.note-box,
.comment-item,
.modal-comment {
  border-color: rgba(31, 41, 51, 0.2);
}

thead th {
  background: #1f2933;
  color: #fff8e7;
}

thead th:hover,
thead th.sorted {
  color: #ffc857;
}

tbody tr:hover {
  background: rgba(255, 200, 87, 0.22);
}

.badge-genre {
  background: #ffefc6;
  color: #1f2933;
}

.modal-overlay {
  background: rgba(31, 41, 51, 0.62);
}

.note-box,
.comment-item,
.modal-comment {
  background: #fff8e7;
}

.modal-close {
  color: #1f2933;
}

/* Refined editorial palette */
:root {
  /* Paleta baseada em artsluminare.com — tom papel quente */
  --bg: #ede4d6;
  --paper: #f5ede0;
  --paper-soft: #e8ddd0;
  --ink: #2c2420;
  --text: #2c2420;
  --muted: #7a6f66;
  --faint: #a8998e;
  --card: #f9f3ec;
  --card-bg: var(--card);
  --card2: #f0e8de;
  --border: rgba(60, 40, 20, 0.14);
  --border-hover: rgba(60, 40, 20, 0.3);
  --accent: #ff6a4a;
  --danger: #ff6a4a;
  --warning: #f7b900;
  --success: #57cdae;
  --rafael-light: #5d8bff;
  --fernando-light: #ff9fc7;
  --dudu-light: #f7b900;
  --hacksuya-light: #57cdae;
  --zana-light: #ff6a4a;
  --shadow: 0 16px 40px rgba(60, 40, 20, 0.1);
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 211, 54, 0.07), transparent 400px),
    radial-gradient(circle at 92% 10%, rgba(87, 205, 174, 0.07), transparent 380px), var(--bg);
  color: var(--text);
}

body::before {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px);
}

.nav {
  background: rgba(255, 253, 247, 0.94);
  border-bottom: 1px solid #d8ccba;
  box-shadow: 0 12px 30px rgba(39, 31, 22, 0.05);
}

.nav-logo,
.page-header h1,
.section-head h2,
.quick-links strong,
.member-card h3,
.feature-main h2,
.pulse-card h2,
.news-card h3,
.modal-title,
.person-hero h1,
.anime-name,
.blog-hero-copy h1,
.blog-hero-card h2,
.post-featured h2,
.sidebar-box h2,
.blog-section-head h2,
.post-card h3 {
  color: #171717;
}

.nav a {
  color: #5f594f;
}

.nav a:hover {
  background: #f2eadb;
  color: #171717;
}

.nav a.active,
.btn-primary,
.btn:hover {
  background: #171717;
  border-color: #171717;
  color: #fffdf7;
}

.eyebrow,
.post-kicker,
.news-source {
  color: #8ee6b4;
}

.hero-copy,
.blog-hero-copy {
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.97), rgba(255, 253, 247, 0.82)),
    url("https://images.unsplash.com/photo-1618331833071-ce81bd50d300?auto=format&fit=crop&w=1600&q=80");
}

.hero-copy,
.hero-panel,
.quick-links a,
.news-card,
.stat-card,
.card,
.modal,
.blog-hero-copy,
.blog-hero-card,
.post-featured,
.sidebar-box,
.post-card,
.blog-categories a {
  background: #fffdf7;
  border-color: #171717;
  box-shadow: 7px 7px 0 rgba(23, 23, 23, 0.08);
}

.hero-panel,
.blog-hero-card,
.quick-links a:nth-child(1),
.quick-links a:nth-child(2),
.quick-links a:nth-child(3),
.quick-links a:nth-child(4),
.blog-categories a:nth-child(1),
.blog-categories a:nth-child(2),
.blog-categories a:nth-child(3),
.member-card:nth-child(1),
.member-card:nth-child(2),
.member-card:nth-child(3),
.member-card:nth-child(4),
.news-card:nth-child(1),
.news-card:nth-child(2),
.news-card:nth-child(3),
.post-featured,
.sidebar-box:nth-child(1),
.sidebar-box:nth-child(2),
.post-card:nth-child(1),
.post-card:nth-child(2),
.post-card:nth-child(3),
.post-card:nth-child(4),
.post-card:nth-child(5) {
  background: #fffdf7;
}

.blog-hero-card,
.post-featured {
  background: #f2eadb;
}

.sidebar-box:nth-child(1),
.post-card:nth-child(3) {
  background: #fff7d6;
}

.sidebar-box:nth-child(2),
.post-card:nth-child(2) {
  background: #f5ecef;
}

.post-card:nth-child(4) {
  background: #edf3f5;
}

.hero-copy p,
.blog-hero-copy p,
.blog-hero-card p,
.post-featured p,
.post-card p {
  color: #39342d;
}

.btn {
  background: #fffdf7;
  border-color: #171717;
  color: #171717;
  box-shadow: 4px 4px 0 rgba(23, 23, 23, 0.08);
}

.btn-primary:hover {
  background: #b33a2f;
  border-color: #171717;
  color: #fffdf7;
}

.quick-links a:hover,
.news-card:hover,
.stat-card:hover,
.card:hover {
  box-shadow: 9px 9px 0 rgba(23, 23, 23, 0.1);
}

.mini-metrics span,
.quick-links a span,
.member-card footer span,
.post-meta span,
.post-tags span {
  background: rgba(23, 23, 23, 0.04);
  border-color: rgba(23, 23, 23, 0.12);
  color: #5f594f;
}

thead th {
  background: #171717;
  color: #fffdf7;
}

thead th:hover,
thead th.sorted {
  color: #d9cdbc;
}

tbody tr:hover {
  background: rgba(179, 58, 47, 0.07);
}

.badge-genre {
  background: #f2eadb;
  color: #39342d;
}

.note-box,
.comment-item,
.modal-comment {
  background: #fffdf7;
}

.blog-categories a {
  color: #171717;
}

.blog-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding: 34px 24px 72px;
}

body.blog-page {
  background:
    radial-gradient(ellipse at 12% 28%, rgba(124, 58, 237, 0.11), transparent 58%),
    radial-gradient(ellipse at 88% 34%, rgba(6, 182, 212, 0.09), transparent 60%),
    radial-gradient(ellipse at 50% 92%, rgba(234, 179, 8, 0.045), transparent 62%),
    linear-gradient(155deg, #07080c 0%, #0c0d13 42%, #061214 100%);
  background-attachment: fixed;
  background-size: 100% 100%;
}

body.blog-page::before {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(187, 247, 208, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 230, 253, 0.045) 1px, transparent 1px);
}

.blog-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  margin-bottom: 22px;
}

.blog-hero-copy {
  background:
    linear-gradient(90deg, rgba(255, 248, 231, 0.96), rgba(255, 248, 231, 0.72)),
    url("https://images.unsplash.com/photo-1618331833071-ce81bd50d300?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  border: 2px solid #1f2933;
  border-radius: 18px;
  box-shadow: 10px 10px 0 rgba(31, 41, 51, 0.12);
  height: 470px;
  padding: 34px clamp(58px, 6vw, 78px) 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition:
    background 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.blog-hero-copy[data-hero-tone="blog"] {
  background:
    linear-gradient(135deg, rgba(11, 18, 23, 0.9), rgba(20, 17, 29, 0.84)),
    radial-gradient(circle at 16% 16%, rgba(187, 247, 208, 0.18), transparent 34%),
    radial-gradient(circle at 88% 70%, rgba(186, 230, 253, 0.12), transparent 36%);
  border-color: rgba(187, 247, 208, 0.28);
}

.blog-hero-copy[data-hero-tone="playlists"] {
  background:
    linear-gradient(135deg, rgba(19, 12, 31, 0.92), rgba(11, 28, 31, 0.84)),
    radial-gradient(circle at 20% 18%, rgba(216, 180, 254, 0.24), transparent 36%),
    radial-gradient(circle at 86% 78%, rgba(187, 247, 208, 0.14), transparent 38%);
  border-color: rgba(216, 180, 254, 0.3);
}

.blog-hero-copy[data-hero-tone="news"] {
  background:
    linear-gradient(135deg, rgba(8, 23, 30, 0.92), rgba(19, 20, 31, 0.84)),
    radial-gradient(circle at 22% 18%, rgba(186, 230, 253, 0.2), transparent 36%),
    radial-gradient(circle at 86% 76%, rgba(244, 194, 194, 0.12), transparent 38%);
  border-color: rgba(186, 230, 253, 0.28);
}

.blog-hero-copy[data-hero-tone="featured"] {
  background:
    linear-gradient(135deg, rgba(22, 17, 10, 0.9), rgba(10, 29, 25, 0.84)),
    radial-gradient(circle at 20% 18%, rgba(253, 230, 138, 0.18), transparent 36%),
    radial-gradient(circle at 86% 78%, rgba(187, 247, 208, 0.14), transparent 38%);
  border-color: rgba(253, 230, 138, 0.24);
}

.blog-hero-copy h1 {
  color: #1f2933;
  font-family: "Baloo 2", "Inter", sans-serif;
  font-size: clamp(30px, 4.35vw, 52px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
  max-width: 680px;
}

.blog-hero-copy p {
  color: #332a22;
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 650;
  line-height: 1.48;
  margin: 0;
  max-width: 620px;
}

.blog-hero-rotator {
  display: grid;
  height: 100%;
  min-height: 100%;
  position: relative;
}

.blog-hero-slide {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-area: 1 / 1;
  justify-items: center;
  max-width: 720px;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  padding: 8px 46px 42px;
  transform: translateY(10px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  height: 100%;
  width: 100%;
}

.blog-hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.blog-hero-slide-copy {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 680px;
}

.blog-hero-slide-copy .eyebrow {
  margin-bottom: 2px;
}

.blog-hero-slide-footer {
  align-self: end;
  display: grid;
  gap: 10px;
  justify-items: center;
  width: 100%;
}

.blog-hero-visual {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 48px;
}

.blog-hero-visual a {
  border-radius: 22px;
  display: inline-flex;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.blog-hero-visual a:hover {
  filter: brightness(1.12);
  transform: translateY(-2px) scale(1.03);
}

.blog-hero-visual img {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(8, 12, 18, 0.38);
  border: 1px solid rgba(243, 239, 230, 0.18);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  height: 50px;
  object-fit: cover;
  padding: 10px;
  width: 50px;
}

.blog-hero-dots {
  align-self: end;
  display: flex;
  gap: 7px;
  grid-area: 1 / 1;
  justify-self: center;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.blog-hero-dots button {
  background: rgba(243, 239, 230, 0.24);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 7px;
  padding: 0;
  transition:
    background 0.3s ease,
    width 0.3s ease;
  width: 18px;
}

.blog-hero-dots button.active {
  background: linear-gradient(90deg, #bbf7d0, #bae6fd);
  width: 36px;
}

.blog-hero-card,
.post-featured,
.sidebar-box,
.post-card {
  background: #fffaf0;
  border: 2px solid #1f2933;
  border-radius: 18px;
  box-shadow: 10px 10px 0 rgba(31, 41, 51, 0.12);
}

.post-featured {
  overflow: hidden;
  position: relative;
}

.blog-hero-card {
  background: #ffc857;
  background-clip: padding-box;
  min-height: 470px;
  overflow: hidden;
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blog-hero-card.has-bg {
  background: rgba(16, 16, 20, 0.9);
  border-color: transparent;
}

.blog-hero-card.has-bg::before {
  background:
    linear-gradient(180deg, rgba(16, 16, 20, 0.4), rgba(16, 16, 20, 0.7)),
    linear-gradient(90deg, rgba(16, 16, 20, 0.62), rgba(16, 16, 20, 0.22)), var(--hero-anime-bg);
  background-position: center;
  background-size: cover;
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.blog-hero-card.has-bg::after,
.post-featured::after {
  background: linear-gradient(
    135deg,
    rgba(187, 247, 208, 0.9) 0%,
    rgba(187, 247, 208, 0.86) 48%,
    rgba(186, 230, 253, 0.86) 52%,
    rgba(186, 230, 253, 0.9) 100%
  );
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
  padding: 2px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.blog-hero-card.has-bg h2,
.blog-hero-card.has-bg p,
.blog-hero-card.has-bg a {
  color: #fff8e7;
}

.blog-hero-card > * {
  position: relative;
  z-index: 1;
}

.blog-hero-card h2 {
  color: #1f2933;
  font-family: "Newsreader", serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.94;
  margin: 10px 0 14px;
}

.blog-hero-card p {
  color: #332a22;
  font-weight: 650;
  line-height: 1.65;
}

.blog-hero-card a,
.post-link,
.post-card a,
.sidebar-actions a {
  color: #1f2933;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-kicker {
  color: #8ee6b4;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 34px;
}

.blog-categories a {
  background: #fffaf0;
  border: 2px solid #1f2933;
  border-radius: 999px;
  color: #1f2933;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 15px;
  box-shadow: 4px 4px 0 rgba(31, 41, 51, 0.12);
}

.blog-categories a:nth-child(1) {
  background: #fffaf0;
}
.blog-categories a:nth-child(2) {
  background: #f8a6c8;
}
.blog-categories a:nth-child(3) {
  background: #7bd6c5;
}

.blog-categories a:nth-child(1) {
  border-color: #f97316;
}
.blog-categories a:nth-child(2) {
  border-color: #ef4444;
}
.blog-categories a:nth-child(3) {
  border-color: #38bdf8;
}

.blog-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  margin-bottom: 54px;
}

.blog-layout,
.blog-section,
.nyx-panel {
  content-visibility: auto;
  contain-intrinsic-size: 620px;
}

.post-featured {
  background: #fff5ca;
  min-height: 460px;
  padding: clamp(28px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.featured-comment-title {
  color: #ffeaf4;
  font-family: "Baloo 2", "Inter", sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 18px -6px;
  position: relative;
  text-shadow: 0 10px 28px rgba(255, 234, 244, 0.16);
  z-index: 1;
}

.featured-comment-wall {
  display: grid;
  flex: 1 1 auto;
  gap: clamp(12px, 2vw, 18px) clamp(16px, 3vw, 26px);
  grid-auto-flow: row;
  grid-auto-rows: minmax(92px, 1fr);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
  max-width: 760px;
  min-height: clamp(430px, 62vw, 620px);
  position: relative;
  width: 100%;
  z-index: 1;
}

.comment-balloon {
  --balloon-drift: 8px;
  --balloon-tilt: -1.5deg;
  animation: balloonFloat 24s ease-in-out infinite;
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.96), rgba(187, 247, 208, 0.76));
  border: 1.5px solid var(--balloon-color);
  border-radius: 20px 20px 20px 6px;
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.1);
  justify-self: start;
  max-width: 100%;
  min-width: 190px;
  padding: 12px 15px;
  transform: translateY(0) rotate(var(--balloon-tilt));
  text-decoration: none;
  width: min(100%, 295px);
}

.comment-balloon-1 {
  align-self: start;
  justify-self: start;
}

.comment-balloon-2 {
  --balloon-drift: -7px;
  --balloon-tilt: 1.5deg;
  border-radius: 20px 20px 6px 20px;
  align-self: start;
  justify-self: end;
}

.comment-balloon-3 {
  --balloon-drift: 6px;
  --balloon-tilt: -0.5deg;
  align-self: center;
  justify-self: end;
  width: min(100%, 305px);
}

.comment-balloon-4 {
  --balloon-drift: -6px;
  --balloon-tilt: 1deg;
  align-self: center;
  justify-self: start;
}

.comment-balloon-5 {
  --balloon-drift: 7px;
  --balloon-tilt: -1deg;
  border-radius: 20px 20px 6px 20px;
  align-self: end;
  justify-self: start;
}

.comment-balloon-6 {
  --balloon-drift: -5px;
  --balloon-tilt: 0.6deg;
  align-self: end;
  justify-self: end;
  width: min(100%, 300px);
}

.comment-balloon-7 {
  --balloon-drift: 5px;
  --balloon-tilt: -0.8deg;
  align-self: end;
  justify-self: start;
  width: min(100%, 285px);
}

.comment-balloon-8 {
  --balloon-drift: -4px;
  --balloon-tilt: 0.9deg;
  border-radius: 20px 20px 6px 20px;
  align-self: end;
  justify-self: end;
  width: min(100%, 292px);
}

.comment-balloon strong {
  color: var(--balloon-color);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.comment-balloon p {
  color: #20372c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.38;
  margin: 0;
  max-width: none;
}

@keyframes balloonFloat {
  0%,
  100% {
    transform: translateY(0) rotate(var(--balloon-tilt));
  }
  50% {
    transform: translateY(var(--balloon-drift)) rotate(var(--balloon-tilt));
  }
}

.post-featured h2 {
  color: #1f2933;
  font-family: "Newsreader", serif;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.9;
  max-width: 820px;
  margin-bottom: 18px;
}

.post-featured .featured-comment-title {
  color: #fff1f8;
  font-family: "Baloo 2", "Inter", sans-serif;
  font-size: clamp(25px, 2.8vw, 38px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 18px -6px;
  text-shadow: 0 10px 28px rgba(255, 241, 248, 0.16);
}

.post-featured p {
  color: #3e342b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  max-width: 760px;
}

.post-meta,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.post-openings strong {
  color: var(--member-color);
  flex: 0 0 100%;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.opening-list {
  display: grid;
  gap: 7px;
  width: 100%;
}

.opening-chip-wrap {
  align-items: center;
  display: flex;
  gap: 4px;
}

.opening-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--paper);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  flex: 1;
  gap: 0;
  padding: 5px 10px;
  text-decoration: none;
  transition: border-color 0.15s ease;
  width: auto;
}

a.opening-chip,
a.opening-chip:hover {
  text-decoration: none !important;
}

a.opening-chip:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.opening-chip b {
  color: var(--member-color);
  margin-right: 5px;
}

/* Neutraliza herança de .post-tags span */
.post-tags .opening-chip,
.post-openings .opening-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
  color: var(--paper) !important;
  padding: 5px 10px !important;
}

.opening-edit-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 12px;
  height: 22px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  width: 22px;
}

.opening-chip-wrap:hover .opening-edit-btn {
  opacity: 1;
  pointer-events: auto;
}

.opening-edit-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--paper);
}

.opening-edit-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--paper);
}

.opening-inline-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(0, 0, 0, 0.14);
}

.opening-form-input {
  background: rgba(6, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--paper);
  font-size: 12px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.opening-form-input::placeholder {
  color: rgba(205, 210, 228, 0.38);
}

.opening-form-input:focus {
  border-color: color-mix(
    in srgb,
    var(--member-color, var(--accent)) 40%,
    rgba(255, 255, 255, 0.18)
  );
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--member-color, var(--accent)) 12%, transparent);
  background: rgba(8, 12, 22, 0.84);
}

.opening-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.opening-save-btn {
  background: linear-gradient(
    135deg,
    var(--member-color, var(--accent)),
    color-mix(in srgb, var(--member-color, var(--accent)) 60%, #ffffff 40%)
  );
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 14px;
  opacity: 0.96;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--member-color, var(--accent)) 28%, transparent);
}

.opening-save-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.opening-cancel-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(227, 232, 248, 0.84);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 13px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.opening-cancel-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.opening-form-status {
  color: var(--muted);
  font-size: 11px;
}

.opening-list span {
  align-items: center;
  display: flex;
  gap: 8px;
  width: fit-content;
}

.opening-list b {
  color: var(--member-color);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.post-meta span,
.post-tags span {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(31, 41, 51, 0.18);
  border-radius: 999px;
  color: #1f2933;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
}

.blog-sidebar {
  display: grid;
  gap: 18px;
}

.sidebar-box {
  padding: 26px;
}

.sidebar-box:nth-child(1) {
  background: #daf5eb;
}
.sidebar-box:nth-child(2) {
  background:
    linear-gradient(#ffe0ef, #ffe0ef) padding-box,
    linear-gradient(
        135deg,
        rgba(187, 247, 208, 0.8),
        rgba(186, 230, 253, 0.82),
        rgba(249, 168, 212, 0.78)
      )
      border-box;
  border: 2px solid transparent;
}

.sidebar-box h2 {
  color: #1f2933;
  font-family: "Newsreader", serif;
  font-size: 38px;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 18px;
}

.sidebar-actions {
  display: grid;
  gap: 12px;
}

.calendar-day {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
  margin-top: -6px;
}

.calendar-list {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.calendar-item {
  align-items: center;
  border-bottom: 1px solid rgba(243, 239, 230, 0.08);
  color: var(--paper);
  display: flex;
  font-size: 12px;
  gap: 8px;
  padding: 7px 0;
  transition: color 0.15s ease;
}

.calendar-item:hover {
  color: var(--hacksuya-light);
}

.calendar-dot {
  background: var(--hacksuya-light);
  border-radius: 50%;
  flex-shrink: 0;
  height: 5px;
  width: 5px;
}

.calendar-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-time {
  color: var(--muted);
  flex-shrink: 0;
  font-size: 10px;
}

.calendar-mal-link {
  align-items: center;
  background:
    linear-gradient(#ffe0ef, #ffe0ef) padding-box,
    linear-gradient(
        135deg,
        rgba(187, 247, 208, 0.82),
        rgba(186, 230, 253, 0.84),
        rgba(249, 168, 212, 0.8)
      )
      border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #27342f;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  margin-top: 14px;
  padding: 8px 12px;
  text-decoration: none;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease;
}

.calendar-mal-link:hover {
  box-shadow: 0 10px 24px rgba(186, 230, 253, 0.16);
  color: #10211d;
  transform: translateY(-1px);
}

.calendar-empty {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.blog-section {
  border-top: 2px solid #1f2933;
  margin-top: 42px;
  padding-top: 30px;
}

.blog-section-head {
  margin-bottom: 20px;
}

.blog-section-head h2 {
  color: #1f2933;
  font-family: "Baloo 2", "Inter", sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
  max-width: 760px;
}

.post-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

/* Member cards scroll */
#member-grid.post-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

#member-grid.post-grid::-webkit-scrollbar {
  display: none;
}

#member-grid.post-grid .post-card {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 220px;
}

.member-section-head {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
}

.member-scroll-arrows {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  padding-bottom: 4px;
}

.member-scroll-btn {
  align-items: center;
  background:
    linear-gradient(#101014, #101014) padding-box,
    linear-gradient(135deg, #86efac, #60a5fa, #f9a8d4) border-box;
  border: 2px solid transparent;
  border-radius: 50%;
  color: #f3efe6;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  transition: opacity 0.18s ease;
  width: 38px;
}

.member-scroll-btn:hover {
  opacity: 0.8;
}

.post-card {
  min-height: 420px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    135deg,
    rgba(var(--member-color-rgb), 0.18) 0%,
    rgba(var(--member-color-rgb), 0.05) 100%
  );
  border: 1px solid rgba(var(--member-color-rgb), 0.25);
  border-radius: 20px;
}

.post-card h3 {
  color: var(--member-color);
  font-family: "Baloo 2", "Inter", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 12px;
}

.post-card h3 span {
  color: var(--member-color);
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.post-card p {
  color: #3e342b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 18px;
}

.post-card ol {
  counter-reset: postrank;
  display: grid;
  gap: 0;
  list-style: none;
  margin-bottom: 18px;
}

.post-card li {
  align-items: center;
  border-top: 1px solid rgba(31, 41, 51, 0.18);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 0;
}

.post-card li::before {
  color: var(--member-color);
  content: counter(postrank, decimal-leading-zero);
  counter-increment: postrank;
  font-size: 11px;
  font-weight: 900;
}

.post-card li span {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}

.post-card li strong {
  color: color-mix(in srgb, var(--member-color) 82%, #ffffff);
  font-weight: 900;
  text-shadow: 0 0 10px color-mix(in srgb, var(--member-color) 24%, transparent);
}

.post-card a {
  margin-top: auto;
}

@media (max-width: 980px) {
  .blog-hero,
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-shell {
    padding: 24px 16px 56px;
  }
  .blog-hero-copy,
  .blog-hero-card,
  .post-featured {
    min-height: 340px;
  }
  .featured-comment-wall {
    gap: 12px;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .comment-balloon {
    margin-top: 0;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
}

.theme-toggle {
  align-items: center;
  background: #fffdf7;
  border: 1px solid #d8ccba;
  border-radius: 999px;
  color: #171717;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  margin-left: auto;
  margin-right: 8px;
  transition: all 0.18s ease;
  width: 36px;
}

.theme-toggle:hover {
  background: #171717;
  border-color: #171717;
  color: #fffdf7;
}

body.dark-theme {
  --bg: #101014;
  --paper: #f3efe6;
  --paper-soft: #ded7c8;
  --ink: #f7f2e8;
  --text: #eee8dc;
  --muted: #b8ae9d;
  --faint: #7b7165;
  --card: #18171d;
  --card-bg: var(--card);
  --card2: #20202a;
  --border: #39333f;
  --border-hover: #6f6477;
  --accent: #8b5cf6;
  --danger: #fb7185;
  --warning: #fbbf24;
  --success: #4ade80;
  --rafael-light: #b69cff;
  --fernando-light: #ff9dcc;
  --dudu-light: #fde68a;
  --hacksuya-light: #67e8f9;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  background:
    linear-gradient(180deg, rgba(243, 239, 230, 0.04), transparent 340px),
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.15), transparent 340px),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.1), transparent 300px), var(--bg);
  color: var(--text);
}

body.dark-theme::before {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

body.dark-theme .nav {
  background: rgba(16, 16, 20, 0.88);
  border-bottom-color: rgba(243, 239, 230, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

body.dark-theme .nav-logo,
body.dark-theme .page-header h1,
body.dark-theme .section-head h2,
body.dark-theme .quick-links strong,
body.dark-theme .member-card h3,
body.dark-theme .feature-main h2,
body.dark-theme .pulse-card h2,
body.dark-theme .news-card h3,
body.dark-theme .modal-title,
body.dark-theme .person-hero h1,
body.dark-theme .anime-name,
body.dark-theme .blog-hero-copy h1,
body.dark-theme .blog-hero-card h2,
body.dark-theme .post-featured h2,
body.dark-theme .sidebar-box h2,
body.dark-theme .blog-section-head h2,
body.dark-theme .post-card h3 {
  color: var(--paper);
}

body.dark-theme .post-featured .featured-comment-title {
  color: #fff1f8;
}

.nav-logo,
.brand-gradient,
body.dark-theme .nav-logo,
body.dark-theme .brand-gradient {
  background: var(--aniliber-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

body.dark-theme .nav a {
  color: var(--muted);
}

body.dark-theme .nav a:hover {
  background: rgba(243, 239, 230, 0.08);
  color: var(--paper);
}

.nav a.nav-logo,
body.dark-theme .nav a.nav-logo {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: transparent;
  font-family: "Newsreader", serif;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0.01em;
  margin-right: 18px;
  padding: 0;
  -webkit-text-fill-color: transparent;
}

.nav a.nav-logo:hover,
body.dark-theme .nav a.nav-logo:hover {
  background: var(--aniliber-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  box-shadow: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

body.dark-theme .nav a.active,
body.dark-theme .btn-primary,
body.dark-theme .btn:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: #151318;
}

body.dark-theme .theme-toggle {
  background: rgba(243, 239, 230, 0.08);
  border-color: rgba(243, 239, 230, 0.18);
  color: var(--paper);
}

body.dark-theme .theme-toggle:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: #151318;
}

.nav a {
  border-color: rgba(187, 247, 208, 0.16);
}

.nav a:hover {
  background: rgba(187, 247, 208, 0.08);
  border-color: rgba(186, 230, 253, 0.3);
  color: var(--paper);
}

.nav a.active,
body.dark-theme .nav a.active {
  background: linear-gradient(135deg, rgba(187, 247, 208, 0.94), rgba(186, 230, 253, 0.9));
  border: 2px solid rgba(220, 252, 231, 1);
  color: #10211d;
  box-shadow: 0 8px 24px rgba(186, 230, 253, 0.12);
}

body:not(.dark-theme) .nav a {
  border-color: rgba(61, 113, 133, 0.14);
  color: #5f594f;
}

body:not(.dark-theme) .nav a:hover {
  background: rgba(187, 247, 208, 0.3);
  border-color: rgba(61, 113, 133, 0.22);
  color: #171717;
}

body:not(.dark-theme) .nav a.active {
  background: linear-gradient(135deg, #dcfce7, #dff6ff);
  border-color: rgba(61, 113, 133, 0.18);
  color: #10211d;
}

body.dark-theme .nav a {
  border-color: rgba(187, 247, 208, 0.14);
}

body.dark-theme .nav a:hover {
  background: rgba(187, 247, 208, 0.09);
  border-color: rgba(186, 230, 253, 0.3);
}

.nav > a {
  --nav-pill: rgba(187, 247, 208, 0.3);
  --nav-pill-bg: rgba(187, 247, 208, 0.07);
  --nav-pill-fill: linear-gradient(135deg, rgba(220, 252, 231, 0.96), rgba(186, 230, 253, 0.92));
  background: var(--nav-pill-bg);
  border-color: var(--nav-pill);
}

.nav > a:nth-of-type(1) {
  --nav-pill: rgba(186, 230, 253, 0.48);
  --nav-pill-bg: rgba(186, 230, 253, 0.08);
  --nav-pill-fill: linear-gradient(135deg, #dcfce7, #bfecf6);
}

.nav > a:nth-of-type(2) {
  --nav-pill: rgba(216, 204, 186, 0.36);
  --nav-pill-bg: rgba(243, 239, 230, 0.05);
  --nav-pill-fill: linear-gradient(135deg, #fff7d6, #dcfce7);
}

.nav > a:nth-of-type(3) {
  --nav-pill: rgba(182, 156, 255, 0.42);
  --nav-pill-bg: rgba(182, 156, 255, 0.08);
  --nav-pill-fill: linear-gradient(135deg, #e8ddff, #dff6ff);
}

.nav > a:nth-of-type(4) {
  --nav-pill: rgba(255, 157, 204, 0.38);
  --nav-pill-bg: rgba(255, 157, 204, 0.07);
  --nav-pill-fill: linear-gradient(135deg, #ffe0ef, #e8ddff);
}

.nav > a:nth-of-type(5) {
  --nav-pill: rgba(134, 239, 172, 0.4);
  --nav-pill-bg: rgba(134, 239, 172, 0.07);
  --nav-pill-fill: linear-gradient(135deg, #dcfce7, #d7fff3);
}

.nav > a:nth-of-type(6) {
  --nav-pill: rgba(186, 230, 253, 0.38);
  --nav-pill-bg: rgba(186, 230, 253, 0.07);
  --nav-pill-fill: linear-gradient(135deg, #e0f2fe, #dcfce7);
}

.nav > a:hover,
body.dark-theme .nav > a:hover {
  background: color-mix(in srgb, var(--nav-pill) 24%, transparent);
  border-color: color-mix(in srgb, var(--nav-pill) 76%, transparent);
}

.nav > a.active,
body.dark-theme .nav > a.active,
body:not(.dark-theme) .nav > a.active {
  background: var(--nav-pill-fill);
  border-color: color-mix(in srgb, var(--nav-pill) 82%, transparent);
  color: #10211d;
}

.nav > a.nav-logo,
.nav > a.nav-logo.active,
body.dark-theme .nav > a.nav-logo,
body.dark-theme .nav > a.nav-logo.active,
body:not(.dark-theme) .nav > a.nav-logo,
body:not(.dark-theme) .nav > a.nav-logo.active {
  background: var(--aniliber-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  border-color: transparent;
  box-shadow: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

body.dark-theme .page-header,
body.dark-theme .section-head,
body.dark-theme .person-hero,
body.dark-theme .blog-section {
  border-color: rgba(243, 239, 230, 0.13);
}

body.dark-theme .hero-copy,
body.dark-theme .blog-hero-copy {
  background:
    linear-gradient(90deg, rgba(16, 16, 20, 0.88), rgba(16, 16, 20, 0.68)),
    url("https://images.unsplash.com/photo-1618331833071-ce81bd50d300?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
}

body.dark-theme .blog-hero-copy[data-hero-tone="blog"] {
  background:
    linear-gradient(135deg, rgba(11, 18, 23, 0.9), rgba(20, 17, 29, 0.84)),
    radial-gradient(circle at 16% 16%, rgba(187, 247, 208, 0.18), transparent 34%),
    radial-gradient(circle at 88% 70%, rgba(186, 230, 253, 0.12), transparent 36%);
}

body.dark-theme .blog-hero-copy[data-hero-tone="playlists"] {
  background:
    linear-gradient(135deg, rgba(19, 12, 31, 0.92), rgba(11, 28, 31, 0.84)),
    radial-gradient(circle at 20% 18%, rgba(216, 180, 254, 0.24), transparent 36%),
    radial-gradient(circle at 86% 78%, rgba(187, 247, 208, 0.14), transparent 38%);
}

body.dark-theme .blog-hero-copy[data-hero-tone="news"] {
  background:
    linear-gradient(135deg, rgba(8, 23, 30, 0.92), rgba(19, 20, 31, 0.84)),
    radial-gradient(circle at 22% 18%, rgba(186, 230, 253, 0.2), transparent 36%),
    radial-gradient(circle at 86% 76%, rgba(244, 194, 194, 0.12), transparent 38%);
}

body.dark-theme .blog-hero-copy[data-hero-tone="featured"] {
  background:
    linear-gradient(135deg, rgba(22, 17, 10, 0.9), rgba(10, 29, 25, 0.84)),
    radial-gradient(circle at 20% 18%, rgba(253, 230, 138, 0.18), transparent 36%),
    radial-gradient(circle at 86% 78%, rgba(187, 247, 208, 0.14), transparent 38%);
}

body.dark-theme .hero-copy,
body.dark-theme .hero-panel,
body.dark-theme .quick-links a,
body.dark-theme .news-card,
body.dark-theme .stat-card,
body.dark-theme .card,
body.dark-theme .modal,
body.dark-theme .blog-hero-copy,
body.dark-theme .blog-hero-card,
body.dark-theme .post-featured,
body.dark-theme .sidebar-box,
body.dark-theme .post-card,
body.dark-theme .blog-categories a {
  background: var(--card);
  border-color: rgba(243, 239, 230, 0.16);
  box-shadow: var(--shadow);
}

body.dark-theme .blog-hero-copy[data-hero-tone="blog"] {
  background:
    linear-gradient(135deg, rgba(11, 18, 23, 0.9), rgba(20, 17, 29, 0.84)),
    radial-gradient(circle at 16% 16%, rgba(187, 247, 208, 0.18), transparent 34%),
    radial-gradient(circle at 88% 70%, rgba(186, 230, 253, 0.12), transparent 36%);
}

body.dark-theme .blog-hero-copy[data-hero-tone="playlists"] {
  background:
    linear-gradient(135deg, rgba(19, 12, 31, 0.92), rgba(11, 28, 31, 0.84)),
    radial-gradient(circle at 20% 18%, rgba(216, 180, 254, 0.24), transparent 36%),
    radial-gradient(circle at 86% 78%, rgba(187, 247, 208, 0.14), transparent 38%);
}

body.dark-theme .blog-hero-copy[data-hero-tone="news"] {
  background:
    linear-gradient(135deg, rgba(8, 23, 30, 0.92), rgba(19, 20, 31, 0.84)),
    radial-gradient(circle at 22% 18%, rgba(186, 230, 253, 0.2), transparent 36%),
    radial-gradient(circle at 86% 76%, rgba(244, 194, 194, 0.12), transparent 38%);
}

body.dark-theme .blog-hero-copy[data-hero-tone="featured"] {
  background:
    linear-gradient(135deg, rgba(22, 17, 10, 0.9), rgba(10, 29, 25, 0.84)),
    radial-gradient(circle at 20% 18%, rgba(253, 230, 138, 0.18), transparent 36%),
    radial-gradient(circle at 86% 78%, rgba(187, 247, 208, 0.14), transparent 38%);
}

body.dark-theme .blog-hero-card,
body.dark-theme .hero-panel,
body.dark-theme .post-featured,
body.dark-theme .sidebar-box:nth-child(1),
body.dark-theme .sidebar-box:nth-child(2),
body.dark-theme .post-card:nth-child(1),
body.dark-theme .post-card:nth-child(2),
body.dark-theme .post-card:nth-child(3),
body.dark-theme .post-card:nth-child(4),
body.dark-theme .post-card:nth-child(5),
body.dark-theme .member-card:nth-child(1),
body.dark-theme .member-card:nth-child(2),
body.dark-theme .member-card:nth-child(3),
body.dark-theme .member-card:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(243, 239, 230, 0.08), rgba(243, 239, 230, 0.025)), var(--card);
}

body.dark-theme .sidebar-box:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(24, 23, 29, 0.96), rgba(24, 23, 29, 0.9)) padding-box,
    linear-gradient(
        135deg,
        rgba(187, 247, 208, 0.84),
        rgba(186, 230, 253, 0.84),
        rgba(249, 168, 212, 0.78)
      )
      border-box;
  border-color: transparent;
}

body.dark-theme .calendar-mal-link {
  background:
    linear-gradient(145deg, rgba(24, 23, 29, 0.96), rgba(24, 23, 29, 0.9)) padding-box,
    linear-gradient(
        135deg,
        rgba(187, 247, 208, 0.82),
        rgba(186, 230, 253, 0.84),
        rgba(249, 168, 212, 0.8)
      )
      border-box;
  color: var(--paper);
}

body.dark-theme .calendar-mal-link:hover {
  color: #ecfeff;
}

body.dark-theme .hero-copy p,
body.dark-theme .blog-hero-copy p,
body.dark-theme .blog-hero-card p,
body.dark-theme .post-featured p,
body.dark-theme .post-card p {
  color: var(--ink);
}

body.dark-theme .blog-categories a,
body.dark-theme .blog-hero-card a,
body.dark-theme .post-link,
body.dark-theme .post-card a,
body.dark-theme .sidebar-actions a {
  color: var(--paper);
}

body.dark-theme .btn {
  background: rgba(243, 239, 230, 0.08);
  border-color: rgba(243, 239, 230, 0.16);
  color: var(--paper);
  box-shadow: none;
}

body.dark-theme .btn-primary:hover {
  background: var(--hacksuya-light);
  border-color: var(--hacksuya-light);
  color: #061014;
}

body.dark-theme .quick-links a:hover,
body.dark-theme .news-card:hover,
body.dark-theme .stat-card:hover,
body.dark-theme .card:hover {
  background: rgba(243, 239, 230, 0.065);
  border-color: rgba(243, 239, 230, 0.28);
  box-shadow: var(--shadow);
}

body.dark-theme .mini-metrics span,
body.dark-theme .quick-links a span,
body.dark-theme .member-card footer span,
body.dark-theme .post-meta span,
body.dark-theme .post-tags span {
  background: rgba(243, 239, 230, 0.06);
  border-color: rgba(243, 239, 230, 0.14);
  color: var(--muted);
}

body.dark-theme .filters input,
body.dark-theme .filters select,
body.dark-theme .compare-selectors select {
  background: rgba(16, 16, 20, 0.72);
  border-color: rgba(243, 239, 230, 0.14);
  color: var(--text);
}

body.dark-theme thead th {
  background: rgba(243, 239, 230, 0.055);
  color: var(--faint);
}

body.dark-theme thead th:hover,
body.dark-theme thead th.sorted {
  color: var(--paper);
}

body.dark-theme tbody tr:hover {
  background: rgba(243, 239, 230, 0.055);
}

body.dark-theme .table-wrap,
body.dark-theme thead th,
body.dark-theme tbody tr,
body.dark-theme .rank-block li,
body.dark-theme .spotlight-list div,
body.dark-theme .hot-list a,
body.dark-theme .anime-list li,
body.dark-theme .note-box,
body.dark-theme .comment-item,
body.dark-theme .modal-comment {
  border-color: rgba(243, 239, 230, 0.12);
}

body.dark-theme .badge-genre,
body.dark-theme .note-box,
body.dark-theme .comment-item,
body.dark-theme .modal-comment {
  background: rgba(16, 16, 20, 0.72);
  color: var(--muted);
}

body.dark-theme .modal-overlay {
  background: rgba(0, 0, 0, 0.78);
}

body.dark-theme .stat-card:nth-child(1),
body.dark-theme #person-stats .stat-card:nth-child(1) {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(24, 23, 29, 0.96) 68%), var(--card);
  border-color: rgba(182, 156, 255, 0.48);
}

body.dark-theme .stat-card:nth-child(2),
body.dark-theme #person-stats .stat-card:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.28), rgba(24, 23, 29, 0.96) 68%), var(--card);
  border-color: rgba(255, 157, 204, 0.44);
}

body.dark-theme .stat-card:nth-child(3),
body.dark-theme #person-stats .stat-card:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.24), rgba(24, 23, 29, 0.96) 68%), var(--card);
  border-color: rgba(134, 239, 172, 0.42);
}

body.dark-theme .stat-card:nth-child(4),
body.dark-theme #person-stats .stat-card:nth-child(4) {
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.26), rgba(24, 23, 29, 0.96) 68%), var(--card);
  border-color: rgba(103, 232, 249, 0.42);
}

body.dark-theme #person-stats .stat-card:nth-child(5) {
  background:
    linear-gradient(135deg, rgba(251, 113, 133, 0.24), rgba(24, 23, 29, 0.96) 68%), var(--card);
  border-color: rgba(251, 113, 133, 0.38);
}

body.dark-theme .member-card,
body.dark-theme .post-card {
  --member-color: rgba(var(--member-color-rgb), 1);
  background:
    linear-gradient(160deg, rgba(var(--member-color-rgb), 0.28) 0%, rgba(24, 23, 29, 0.96) 58%),
    var(--card);
  border-color: rgba(var(--member-color-rgb), 0.35);
}

body.dark-theme .grid-2 > .card:nth-child(1),
body.dark-theme .grid-3 > .card:nth-child(1),
body.dark-theme .blog-categories a:nth-child(1) {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.22), rgba(24, 23, 29, 0.96) 64%), var(--card);
  border-color: rgba(182, 156, 255, 0.38);
}

body.dark-theme .grid-2 > .card:nth-child(2),
body.dark-theme .grid-3 > .card:nth-child(2),
body.dark-theme .blog-categories a:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(236, 72, 153, 0.2), rgba(24, 23, 29, 0.96) 64%), var(--card);
  border-color: rgba(255, 157, 204, 0.34);
}

body.dark-theme .grid-3 > .card:nth-child(3),
body.dark-theme .blog-categories a:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(52, 211, 153, 0.18), rgba(24, 23, 29, 0.96) 64%), var(--card);
  border-color: rgba(134, 239, 172, 0.32);
}

body.dark-theme .news-card {
  background: var(--card);
  border-color: rgba(243, 239, 230, 0.16);
}

body.dark-theme .post-featured,
body.dark-theme .blog-hero-card:not(.has-bg) {
  background:
    linear-gradient(145deg, rgba(187, 247, 208, 0.16), rgba(24, 23, 29, 0.96) 66%), var(--card);
  border-color: rgba(187, 247, 208, 0.34);
}

body.dark-theme .blog-hero-card.has-bg {
  background: rgba(16, 16, 20, 0.9);
  border-color: transparent;
}

body.dark-theme .blog-hero-card.has-bg h2,
body.dark-theme .blog-hero-card.has-bg p,
body.dark-theme .blog-hero-card.has-bg a {
  color: #fff8e7;
}

body.dark-theme .comment-balloon {
  background: linear-gradient(145deg, rgba(187, 247, 208, 0.2), rgba(24, 23, 29, 0.86));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

body.dark-theme .comment-balloon p {
  color: var(--paper);
}

body.dark-theme table {
  background: rgba(24, 23, 29, 0.7);
}

body.dark-theme .table-wrap {
  background: rgba(24, 23, 29, 0.7);
  border-color: rgba(243, 239, 230, 0.1);
}

body.dark-theme .acervo-main-card {
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(
        135deg,
        rgba(167, 139, 250, 0.5),
        rgba(134, 239, 172, 0.45),
        rgba(249, 168, 212, 0.45)
      )
      border-box;
  border: 1.5px solid transparent;
}

body.dark-theme thead {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.22), rgba(6, 182, 212, 0.16));
}

body.dark-theme thead th {
  background: transparent;
}

body.dark-theme .compare-selectors select,
body.dark-theme .filters input,
body.dark-theme .filters select {
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.18);
}

body.dark-theme .venn-circle:nth-child(1) {
  background: rgba(124, 58, 237, 0.24);
  border: 2px solid var(--rafael-light);
}

body.dark-theme .venn-circle:nth-child(2) {
  background: rgba(236, 72, 153, 0.22);
  border: 2px solid var(--fernando-light);
}

body.dark-theme .diff-highlight {
  background: rgba(251, 113, 133, 0.18);
}

body:not(.dark-theme) .anime-edit-panel,
body:not(.dark-theme) .user-selection-modal {
  background: #fffdf7;
  border: 2px solid #171717;
  box-shadow: 7px 7px 0 rgba(23, 23, 23, 0.08);
}

body:not(.dark-theme) .anime-edit-panel h3,
body:not(.dark-theme) .user-selection-modal h3 {
  color: #171717;
}

body:not(.dark-theme) .edit-field input,
body:not(.dark-theme) .edit-field textarea {
  background: #fffaf0;
  border: 2px solid #171717;
  color: #171717;
}

body:not(.dark-theme) .person-select-list button {
  background: #fffaf0;
  border: 2px solid #171717;
  color: #171717;
}

body.blog-page.dark-theme {
  background:
    radial-gradient(ellipse at 12% 28%, rgba(124, 58, 237, 0.11), transparent 58%),
    radial-gradient(ellipse at 88% 34%, rgba(6, 182, 212, 0.09), transparent 60%),
    radial-gradient(ellipse at 50% 92%, rgba(234, 179, 8, 0.045), transparent 62%),
    linear-gradient(155deg, #07080c 0%, #0c0d13 42%, #061214 100%);
  background-attachment: fixed;
  background-size: 100% 100%;
}

body.blog-page.dark-theme::before {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(187, 247, 208, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 230, 253, 0.045) 1px, transparent 1px);
}

body,
body.dark-theme,
body.blog-page,
body.blog-page.dark-theme,
body.suggest-page,
body.suggest-page.dark-theme {
  background:
    radial-gradient(ellipse at 12% 28%, rgba(124, 58, 237, 0.11), transparent 58%),
    radial-gradient(ellipse at 88% 34%, rgba(6, 182, 212, 0.09), transparent 60%),
    radial-gradient(ellipse at 50% 92%, rgba(234, 179, 8, 0.045), transparent 62%),
    linear-gradient(155deg, #07080c 0%, #0c0d13 42%, #061214 100%);
  background-attachment: fixed;
  background-size: 100% 100%;
}

body::before,
body.dark-theme::before,
body.blog-page::before,
body.blog-page.dark-theme::before,
body.suggest-page::before,
body.suggest-page.dark-theme::before {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(187, 247, 208, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 230, 253, 0.045) 1px, transparent 1px);
}

.nyx-floating-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  bottom: 22px;
  box-shadow: none;
  display: flex;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 22px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  z-index: 80;
}

.nyx-floating-link img {
  aspect-ratio: 1;
  background: #0d0902;
  border: 2px solid rgba(251, 191, 36, 0.75);
  border-radius: 999px;
  box-shadow:
    0 0 16px rgba(251, 191, 36, 0.35),
    0 16px 42px rgba(120, 53, 15, 0.45),
    0 0 20px rgba(216, 180, 254, 0.22);
  display: block;
  height: 70px;
  object-fit: cover;
  width: 70px;
}

.nyx-floating-link:hover {
  transform: translateY(-3px) scale(1.02);
}

.nyx-floating-link:hover img {
  box-shadow:
    0 0 28px rgba(251, 191, 36, 0.55),
    0 20px 52px rgba(120, 53, 15, 0.55);
}

/* ── Ciel page ─────────────────────────────────────────────────────────────── */

body.ciel-page {
  background:
    radial-gradient(ellipse 55% 45% at 5% 8%, rgba(253, 230, 138, 0.16), transparent),
    radial-gradient(ellipse 45% 55% at 92% 92%, rgba(180, 83, 9, 0.1), transparent), #050300;
}

.ciel-shell {
  display: grid;
  gap: 24px;
  grid-template-columns: 290px 1fr;
  margin: 0 auto;
  max-width: 1220px;
  min-height: calc(100vh - 130px);
  padding: 36px 22px 80px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.ciel-sidebar {
  align-self: stretch;
  background: #1a1408;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.06) inset,
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(251, 191, 36, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - 156px);
  overflow: hidden;
  position: sticky;
  top: 96px;
}

/* Avatar section — warm dark */
.ciel-avatar-wrap {
  align-items: center;
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.22), rgba(10, 7, 2, 0) 80%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  padding: 32px 24px 24px;
  position: relative;
}

.ciel-avatar-ring {
  align-items: center;
  background: #0d0902;
  border: 2.5px solid #b45309;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(251, 191, 36, 0.07),
    0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  height: 108px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 108px;
  will-change: filter;
  animation: cielPulse 4s ease-in-out infinite;
  z-index: 1;
}

/* inner clip for image */
.ciel-avatar-ring::before {
  border-radius: 50%;
  content: "";
  inset: 2px;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.ciel-avatar-img {
  border-radius: 50%;
  height: calc(100% - 4px);
  margin: 2px;
  object-fit: cover;
  width: calc(100% - 4px);
}

.ciel-avatar-glyph {
  background: linear-gradient(135deg, #fef08a, #f59e0b);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 36px;
  -webkit-text-fill-color: transparent;
}

@keyframes cielPulse {
  0%,
  100% {
    filter: brightness(1) drop-shadow(0 0 12px rgba(251, 191, 36, 0.3));
  }
  50% {
    filter: brightness(1.06) drop-shadow(0 0 22px rgba(251, 191, 36, 0.55));
  }
}

/* ID block inside avatar section */
.ciel-id-block {
  text-align: center;
  position: relative;
  z-index: 1;
}

.ciel-id-block h2 {
  background: linear-gradient(160deg, #fefce8, #fde68a 40%, #f59e0b);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: "Newsreader", serif;
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
  -webkit-text-fill-color: transparent;
}

.ciel-id-block p {
  color: rgba(251, 191, 36, 0.45);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ciel-online-badge {
  align-items: center;
  color: rgba(253, 230, 138, 0.7);
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  gap: 5px;
  letter-spacing: 0.12em;
  margin-top: 6px;
  text-transform: uppercase;
}

.ciel-dot {
  animation: cielDotBlink 2.4s ease-in-out infinite;
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.7);
  display: inline-block;
  height: 6px;
  width: 6px;
}

@keyframes cielDotBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* Info list */
.ciel-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.ciel-info-item {
  border-bottom: 1px solid rgba(251, 191, 36, 0.08);
  display: flex;
  flex-direction: row;
  gap: 0;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 22px;
}

.ciel-info-item:last-child {
  border-bottom: none;
}

.ciel-info-item small {
  color: rgba(251, 191, 36, 0.4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ciel-info-item span {
  color: rgba(253, 230, 138, 0.9);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

/* Profile section */
.ciel-profile-section {
  border-top: 1px solid rgba(251, 191, 36, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 28px;
}

.ciel-profile-label {
  color: rgba(251, 191, 36, 0.4);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ciel-people {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ciel-people button {
  background: transparent;
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 12px;
  color: rgba(251, 191, 36, 0.5);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  text-align: center;
  transition: all 0.16s ease;
}

.ciel-people button:hover {
  background: rgba(251, 191, 36, 0.07);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

.ciel-people button.active {
  background: rgba(251, 191, 36, 0.14);
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
  color: #fef9c3;
}

/* ── Chat area ───────────────────────────────────────────────────────────── */
.ciel-chat-wrap {
  background: #0a0700;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.05) inset,
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(251, 191, 36, 0.04);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 156px);
  max-height: 840px;
  min-height: 520px;
  overflow: hidden;
}

.ciel-chat-topbar {
  align-items: center;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.18), rgba(10, 7, 2, 0));
  border-bottom: 1px solid rgba(251, 191, 36, 0.1);
  color: #fde68a;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  letter-spacing: 0.06em;
  padding: 16px 24px;
}

.ciel-chat-topbar::before {
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
  content: "";
  display: inline-block;
  flex-shrink: 0;
  height: 8px;
  width: 8px;
}

.ciel-topbar-status {
  align-items: center;
  color: rgba(251, 191, 36, 0.5);
  display: flex;
  font-size: 10px;
  font-weight: 800;
  gap: 5px;
  letter-spacing: 0.12em;
  margin-left: auto;
  text-transform: uppercase;
}

/* Messages */
.ciel-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 22px 20px;
  scrollbar-color: rgba(251, 191, 36, 0.2) transparent;
  scrollbar-width: thin;
}

.ciel-messages::-webkit-scrollbar {
  width: 4px;
}
.ciel-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.45), rgba(180, 83, 9, 0.3));
  border-radius: 999px;
}

.ciel-msg {
  align-items: flex-start;
  animation: cielMsgIn 0.2s ease-out;
  display: flex;
  gap: 10px;
  max-width: 88%;
  will-change: transform, opacity;
}

@keyframes cielMsgIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ciel-msg-ciel {
  align-self: flex-start;
}
.ciel-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ciel-msg-avatar {
  align-items: center;
  background: #120c02;
  border: 1.5px solid rgba(251, 191, 36, 0.5);
  border-radius: 50%;
  box-shadow:
    0 0 12px rgba(251, 191, 36, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-shrink: 0;
  height: 36px;
  justify-content: center;
  overflow: hidden;
  width: 36px;
}

.ciel-msg-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Ciel bubble — deep black + gold left stripe */
.ciel-msg-bubble {
  background: #0f0b03;
  border: 1px solid rgba(251, 191, 36, 0.12);
  border-left: 3px solid #fbbf24;
  border-radius: 2px 20px 20px 20px;
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(251, 191, 36, 0.04) inset;
  color: #fef9ec;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  padding: 12px 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* User bubble — warm dark amber */
.ciel-msg-user .ciel-msg-bubble {
  background: rgba(120, 53, 15, 0.2);
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-left: none;
  border-right: 3px solid rgba(251, 191, 36, 0.55);
  border-radius: 20px 2px 20px 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  color: #fef3c7;
}

/* Typing */
.ciel-typing {
  align-items: flex-end;
  display: flex;
  gap: 4px;
  height: 20px;
  padding: 0 4px 2px;
}

.ciel-typing span {
  animation: cielTypeDot 1.2s ease-in-out infinite;
  border-radius: 50%;
  display: block;
}

.ciel-typing span:nth-child(1) {
  background: #fef08a;
  height: 6px;
  width: 6px;
}
.ciel-typing span:nth-child(2) {
  animation-delay: 0.18s;
  background: #fbbf24;
  height: 8px;
  width: 8px;
}
.ciel-typing span:nth-child(3) {
  animation-delay: 0.36s;
  background: #d97706;
  height: 6px;
  width: 6px;
}

@keyframes cielTypeDot {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-6px);
  }
}

/* Rec cards */
.ciel-msg-cards {
  max-width: 100%;
}

.ciel-rec-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ciel-rec-card {
  align-items: flex-start;
  background: #100d04;
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-top: 2px solid rgba(251, 191, 36, 0.35);
  border-radius: 16px;
  color: var(--paper);
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  padding: 13px 14px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.ciel-rec-card:hover {
  background: #181005;
  border-color: rgba(251, 191, 36, 0.45);
  border-top-color: #fbbf24;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(251, 191, 36, 0.1);
  transform: translateY(-3px);
}

.ciel-rec-rank {
  align-items: center;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  color: #fbbf24;
  display: inline-flex;
  font-family: "Newsreader", serif;
  font-size: 13px;
  font-weight: 750;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.ciel-rec-body strong {
  color: #fef9ec;
  display: block;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.ciel-rec-body p {
  color: rgba(253, 230, 138, 0.45);
  font-size: 11px;
  line-height: 1.4;
  margin: 0 0 4px;
}

.ciel-rec-body small {
  color: rgba(251, 191, 36, 0.65);
  font-size: 11px;
  font-weight: 700;
}

/* Quick actions */
.ciel-quick-actions {
  background: rgba(251, 191, 36, 0.03);
  border-top: 1px solid rgba(251, 191, 36, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 18px;
}

.ciel-quick-btn {
  background: transparent;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 999px;
  color: rgba(253, 230, 138, 0.65);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  transition: all 0.16s ease;
}

.ciel-quick-btn:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.15);
  color: #fef08a;
}

/* Input bar */
.ciel-input-bar {
  border-top: 1px solid rgba(251, 191, 36, 0.1);
  display: flex;
  gap: 10px;
  padding: 12px 18px 16px;
}

#ciel-input {
  background: #08060100;
  border: none;
  border-bottom: 2px solid rgba(251, 191, 36, 0.2);
  border-radius: 0;
  color: #fef9ec;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  padding: 10px 4px;
  transition: border-color 0.16s ease;
}

#ciel-input:focus {
  border-bottom-color: #fbbf24;
}
#ciel-input::placeholder {
  color: rgba(251, 191, 36, 0.25);
}

#ciel-send {
  align-items: center;
  background: #fbbf24;
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3);
  color: #0d0902;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  letter-spacing: 0.04em;
  padding: 0 20px;
  transition: all 0.16s ease;
  white-space: nowrap;
}

#ciel-send:hover {
  background: #fde68a;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.45);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .ciel-shell {
    grid-template-columns: 1fr;
  }
  .ciel-sidebar {
    position: static;
  }
  .ciel-rec-list {
    grid-template-columns: 1fr;
  }
  .ciel-chat-wrap {
    height: 72vh;
  }
  .ciel-info-item {
    flex-direction: column;
    gap: 2px;
  }
  .ciel-people {
    flex-direction: column;
  }
}

/* ── Nyx shell (legacy kept for backward compat) ───────────────────────────── */
.nyx-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 56px 22px 90px;
  position: relative;
}

.nyx-left-art {
  height: min(72vh, 700px);
  left: calc((100vw - 1180px) / 4 - clamp(130px, 9.5vw, 180px) + 28px);
  max-height: 700px;
  min-height: 540px;
  pointer-events: none;
  position: fixed;
  top: 172px;
  width: clamp(285px, 20.5vw, 390px);
  z-index: 1;
}

.nyx-left-art img {
  display: block;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 24px rgba(168, 85, 247, 0.2));
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  width: 100%;
}

.nyx-chat-panel {
  background:
    linear-gradient(145deg, rgba(22, 20, 31, 0.88), rgba(9, 21, 30, 0.88)) padding-box,
    linear-gradient(135deg, rgba(216, 180, 254, 0.38), rgba(186, 230, 253, 0.26)) border-box;
  border: 1px solid transparent;
  border-radius: 28px;
  box-shadow: 0 20px 62px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 14px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(540px, calc(100vh - 190px));
  left: calc(50% + 620px);
  max-height: none;
  min-height: 0;
  padding: 18px;
  position: fixed;
  top: 150px;
  width: min(330px, calc(100vw - 32px));
  z-index: 2;
}

.nyx-chat-panel h3 {
  color: #f5d0fe;
  font-family: "Nunito", "Inter", sans-serif;
  font-size: 22px;
  letter-spacing: 0;
  margin: 0;
}

.nyx-chat-log {
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 180, 254, 0.12), transparent 34%),
    rgba(8, 12, 18, 0.34);
  border: 1px solid rgba(186, 230, 253, 0.16);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  scrollbar-color: rgba(216, 180, 254, 0.46) rgba(8, 12, 18, 0.42);
  scrollbar-width: thin;
}

.nyx-chat-log::-webkit-scrollbar {
  width: 8px;
}

.nyx-chat-log::-webkit-scrollbar-track {
  background: rgba(8, 12, 18, 0.56);
  border-radius: 999px;
}

.nyx-chat-log::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(216, 180, 254, 0.6), rgba(186, 230, 253, 0.46));
  border: 2px solid rgba(8, 12, 18, 0.6);
  border-radius: 999px;
}

.nyx-chat-row {
  align-items: flex-end;
  display: grid;
  gap: 9px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.nyx-chat-avatar {
  aspect-ratio: 1;
  border: 1px solid rgba(216, 180, 254, 0.54);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(88, 28, 135, 0.28);
  object-fit: cover;
  width: 34px;
}

.nyx-chat-bubble {
  background:
    linear-gradient(135deg, rgba(216, 180, 254, 0.24), rgba(186, 230, 253, 0.12)),
    rgba(18, 17, 26, 0.86);
  border: 1px solid rgba(216, 180, 254, 0.32);
  border-radius: 18px 18px 18px 6px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.38;
  max-width: 100%;
  padding: 11px 13px;
  word-break: break-word;
}

.nyx-chat-btn {
  background: linear-gradient(90deg, #f0abfc, #c4b5fd 48%, #bae6fd);
  border: 0;
  border-radius: 999px;
  color: #130f1c;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 12px 16px;
}

.nyx-hero {
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 180, 254, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(32, 18, 54, 0.74), rgba(10, 24, 31, 0.74));
  border: 1px solid rgba(216, 180, 254, 0.32);
  border-radius: 34px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 34px;
  grid-template-columns: 190px 1fr;
  margin-bottom: 30px;
  padding: 32px;
}

.nyx-hero img {
  aspect-ratio: 1;
  border: 2px solid rgba(216, 180, 254, 0.74);
  border-radius: 999px;
  box-shadow: 0 16px 44px rgba(88, 28, 135, 0.36);
  object-fit: cover;
  width: 190px;
}

.nyx-hero img.nyx-hero-image {
  border-radius: 24px;
  object-position: center;
}

.nyx-hero h1,
.nyx-panel h2 {
  background: linear-gradient(90deg, #f5d0fe, #c4b5fd 48%, #bae6fd);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: "Nunito", "Inter", sans-serif;
  -webkit-text-fill-color: transparent;
}

.nyx-hero h1 {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  margin: 10px 0 16px;
}

.nyx-hero p,
.nyx-rec-card p,
.nyx-rec-card small {
  color: var(--muted);
}

.nyx-panel {
  background:
    linear-gradient(145deg, rgba(24, 23, 32, 0.88), rgba(11, 28, 31, 0.78)) padding-box,
    linear-gradient(
        135deg,
        rgba(216, 180, 254, 0.48),
        rgba(187, 247, 208, 0.32),
        rgba(186, 230, 253, 0.42)
      )
      border-box;
  border: 1px solid transparent;
  border-radius: 30px;
  padding: 30px;
}

.nyx-panel-head {
  margin-bottom: 20px;
}

.nyx-panel h2 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
  margin-top: 8px;
}

.nyx-person-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.nyx-person-tabs button {
  background:
    linear-gradient(145deg, rgba(18, 18, 24, 0.9), rgba(24, 23, 32, 0.8)) padding-box,
    linear-gradient(135deg, rgba(216, 180, 254, 0.5), rgba(186, 230, 253, 0.34)) border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--paper);
  cursor: pointer;
  font-weight: 900;
  padding: 12px 18px;
}

.nyx-person-tabs button.active {
  background: linear-gradient(90deg, #f0abfc, #c4b5fd 48%, #bae6fd);
  color: #18111f;
}

.nyx-results {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nyx-rec-card {
  align-items: flex-start;
  background: linear-gradient(145deg, rgba(16, 15, 22, 0.9), rgba(18, 32, 35, 0.72));
  border: 1px solid rgba(216, 180, 254, 0.24);
  border-radius: 22px;
  color: var(--paper);
  display: grid;
  gap: 16px;
  grid-template-columns: auto 1fr;
  padding: 18px;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.nyx-rec-card:hover {
  border-color: rgba(216, 180, 254, 0.64);
  transform: translateY(-2px);
}

.nyx-rank {
  align-items: center;
  background: rgba(216, 180, 254, 0.12);
  border: 1px solid rgba(216, 180, 254, 0.32);
  border-radius: 999px;
  color: #f5d0fe;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nyx-rec-card h3 {
  font-family: "Nunito", "Inter", sans-serif;
  font-size: 21px;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.nyx-rec-card p {
  margin: 0 0 10px;
}

.nyx-empty {
  color: var(--muted);
}

@media (max-width: 760px) {
  .nyx-floating-link {
    bottom: 16px;
    right: 16px;
  }

  .nyx-floating-link img {
    height: 62px;
    width: 62px;
  }

  .nyx-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .nyx-left-art {
    display: none;
  }

  .nyx-chat-panel {
    height: min(460px, calc(100vh - 130px));
    left: 16px;
    max-height: none;
    position: relative;
    top: auto;
    width: auto;
  }

  .nyx-hero img {
    width: 132px;
  }

  .nyx-results {
    grid-template-columns: 1fr;
  }
}

/* ── Desafios page ───────────────────────────────────────────────────────── */

body.desafios-page {
  background:
    radial-gradient(circle at 16% 12%, rgba(221, 214, 254, 0.13), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(186, 230, 253, 0.11), transparent 34%),
    radial-gradient(circle at 50% 92%, rgba(187, 247, 208, 0.09), transparent 38%), var(--bg);
}

body.desafios-page .page {
  max-width: 1160px;
}

.community-shell {
  padding-top: 32px;
}

.community-hero {
  align-items: stretch;
  background:
    radial-gradient(circle at 18% 16%, rgba(244, 114, 182, 0.16), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(103, 232, 249, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(20, 20, 31, 0.92), rgba(8, 17, 24, 0.88));
  border: 1px solid rgba(221, 214, 254, 0.18);
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  margin-bottom: 18px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
}

.community-hero-copy {
  align-self: center;
}

.community-hero h1 {
  background: linear-gradient(120deg, #fff7ed 0%, #f5d0fe 34%, #bae6fd 70%, #bbf7d0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 10px 0 16px;
  max-width: 820px;
  -webkit-text-fill-color: transparent;
}

.community-hero p {
  color: rgba(243, 239, 230, 0.78);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.65;
  margin: 0;
  max-width: 680px;
}

.community-metrics {
  display: grid;
  gap: 12px;
}

.community-metric {
  background:
    linear-gradient(135deg, rgba(221, 214, 254, 0.11), rgba(186, 230, 253, 0.06)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(221, 214, 254, 0.16);
  border-radius: 22px;
  padding: 18px 20px;
}

.community-metric span,
.community-strip span,
.panel-kicker {
  color: rgba(199, 210, 254, 0.68);
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.community-metric strong {
  color: var(--paper);
  display: block;
  font-family: "Newsreader", serif;
  font-size: 38px;
  font-weight: 750;
  line-height: 1;
  margin-top: 6px;
}

.community-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
}

.community-strip article {
  background: rgba(10, 11, 18, 0.55);
  border: 1px solid rgba(221, 214, 254, 0.12);
  border-radius: 20px;
  padding: 16px 18px;
}

.community-strip strong {
  color: var(--paper);
  display: block;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
  margin-top: 6px;
}

.community-page .desafios-tabs {
  margin-bottom: 24px;
}

.panel-kicker {
  margin-bottom: 8px;
}

.community-page .desafio-hero-icon {
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .community-hero {
    grid-template-columns: 1fr;
  }

  .community-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.desafios-page .page-header {
  background:
    linear-gradient(
      145deg,
      rgba(221, 214, 254, 0.13),
      rgba(186, 230, 253, 0.09) 52%,
      rgba(187, 247, 208, 0.08)
    ),
    rgba(13, 14, 22, 0.7);
  border: 1px solid rgba(221, 214, 254, 0.18);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  margin-bottom: 22px;
  padding: clamp(28px, 5vw, 46px);
}

body.desafios-page .page-header h1 {
  background: linear-gradient(120deg, #f0abfc 0%, #c4b5fd 34%, #bae6fd 68%, #bbf7d0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: clamp(42px, 8vw, 84px);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 12px;
  -webkit-text-fill-color: transparent;
}

body.desafios-page .page-header p {
  color: rgba(243, 239, 230, 0.78);
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.desafios-tabs {
  align-items: center;
  background: rgba(10, 11, 18, 0.5);
  border: 1px solid rgba(221, 214, 254, 0.12);
  border-radius: 999px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 24px;
  padding: 8px;
  width: fit-content;
}

.desafio-tab {
  background:
    linear-gradient(rgba(18, 18, 28, 0.9), rgba(18, 18, 28, 0.9)) padding-box,
    linear-gradient(
        135deg,
        rgba(244, 114, 182, 0.28),
        rgba(129, 140, 248, 0.32),
        rgba(103, 232, 249, 0.24)
      )
      border-box;
  border: 1.5px solid transparent;
  border-radius: 999px;
  color: rgba(243, 239, 230, 0.72);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 20px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.desafio-tab:hover {
  color: #fff7ed;
  transform: translateY(-1px);
}
.desafio-tab.active {
  background: linear-gradient(135deg, #f5d0fe, #c4b5fd 44%, #bae6fd);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(196, 181, 253, 0.2);
  color: #17131f;
}

.desafio-panel {
  display: none;
}
.desafio-panel.active {
  display: block;
}

.desafio-hero {
  align-items: center;
  background:
    radial-gradient(ellipse 70% 90% at 0% 35%, var(--glow), transparent 68%),
    linear-gradient(145deg, rgba(26, 24, 38, 0.92), rgba(9, 27, 31, 0.86)) padding-box,
    linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent) 72%, #ffffff),
        rgba(186, 230, 253, 0.34)
      )
      border-box;
  border: 1.5px solid transparent;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.17);
  display: flex;
  gap: 22px;
  padding: clamp(24px, 4vw, 36px);
}
.desafio-hero-icon {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 24px;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 18%, transparent);
  display: flex;
  flex-shrink: 0;
  font-size: 38px;
  height: 76px;
  justify-content: center;
  width: 76px;
}
.desafio-hero-text h2 {
  background: linear-gradient(135deg, #fffdf7, #f5d0fe 48%, #bae6fd);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 1000;
  letter-spacing: 0;
  margin-bottom: 6px;
  -webkit-text-fill-color: transparent;
}
.desafio-hero-text p {
  color: rgba(243, 239, 230, 0.76);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.65;
  margin: 0;
}

.desafio-body {
  background:
    linear-gradient(
      145deg,
      rgba(221, 214, 254, 0.055),
      rgba(186, 230, 253, 0.04) 58%,
      rgba(187, 247, 208, 0.035)
    ),
    rgba(10, 11, 18, 0.78);
  border: 1.5px solid rgba(221, 214, 254, 0.15);
  border-top: none;
  border-radius: 0 0 30px 30px;
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 34px);
}

.desafio-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.desafio-field label {
  color: rgba(199, 210, 254, 0.6);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.desafio-field select,
.desafio-input {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(8, 9, 16, 0.9);
  border: 1.5px solid rgba(221, 214, 254, 0.22);
  border-radius: 18px;
  color: var(--paper);
  color-scheme: dark;
  font-size: 13px;
  outline: none;
  padding: 13px 16px;
  transition: border-color 0.18s ease;
}
.desafio-field select:focus,
.desafio-input:focus {
  border-color: rgba(186, 230, 253, 0.58);
  box-shadow: 0 0 0 4px rgba(186, 230, 253, 0.08);
}

.desafio-field-group {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.desafio-field-group .desafio-field {
  flex: 1;
  min-width: 180px;
}

.desafio-btn {
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 11px 24px;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.desafio-btn.primary {
  background: linear-gradient(135deg, #f5d0fe, #c4b5fd 45%, #bae6fd);
  border: none;
  box-shadow: 0 12px 28px rgba(196, 181, 253, 0.18);
  color: #17131f;
}
.desafio-btn.primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.desafio-btn.secondary {
  background: rgba(255, 255, 255, 0.045);
  border: 1.5px solid rgba(221, 214, 254, 0.22);
  color: rgba(243, 239, 230, 0.75);
}
.desafio-btn.secondary:hover {
  background: rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.55);
  color: #c7d2fe;
}

/* Previsao */
.previsao-form {
  margin-bottom: 24px;
}
.previsao-result.hidden {
  display: none;
}
.previsao-output {
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 208, 254, 0.16), transparent 44%),
    linear-gradient(145deg, rgba(196, 181, 253, 0.1), rgba(186, 230, 253, 0.06));
  border: 1.5px solid rgba(196, 181, 253, 0.28);
  border-radius: 26px;
  padding: 32px;
  text-align: center;
}
.previsao-score-wrap {
  align-items: flex-end;
  display: inline-flex;
  gap: 6px;
  margin-bottom: 10px;
}
.previsao-score {
  font-family: "Newsreader", serif;
  font-size: 96px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
}
.previsao-score-label {
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
  padding-bottom: 14px;
}
.previsao-anime-name {
  color: var(--paper);
  font-size: 20px;
  font-weight: 750;
  margin-bottom: 4px;
}
.previsao-person-label {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.previsao-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}
.ptag {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 999px;
  color: rgba(199, 210, 254, 0.8);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
}
.ptag.green {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
  color: #86efac;
}
.previsao-note {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.prev-slider-wrap {
  background:
    linear-gradient(135deg, rgba(245, 208, 254, 0.08), rgba(186, 230, 253, 0.05)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(221, 214, 254, 0.18);
  border-radius: 22px;
  margin: 18px 0;
  padding: 18px 20px;
}
.prev-slider-label {
  color: rgba(199, 210, 254, 0.7);
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.prev-slider-number {
  color: #a78bfa;
  font-size: 22px;
  font-weight: 900;
  margin-left: 4px;
}
.prev-slider {
  accent-color: #c4b5fd;
  cursor: pointer;
  height: 6px;
  width: 100%;
}
.prev-slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.prev-slider-marks span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.prev-history-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 28px 0 14px;
}
.prev-history-header h3 {
  color: var(--paper);
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}
.prev-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prev-row {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(221, 214, 254, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(221, 214, 254, 0.13);
  border-radius: 18px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 18px;
}
.prev-row-info {
  flex: 1;
  min-width: 0;
}
.prev-row-name {
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prev-row-person {
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}
.prev-row-scores {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}
.prev-score-block {
  text-align: center;
}
.prev-score-block small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.prev-score-block strong {
  color: var(--paper);
  display: block;
  font-size: 18px;
  font-weight: 750;
}
.prev-score-block strong.pending {
  color: var(--muted);
  font-size: 16px;
}
.prev-arrow {
  color: var(--muted);
  font-size: 16px;
}
.pdiff {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 10px;
}
.pdiff.pos {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #86efac;
}
.pdiff.neg {
  background: rgba(252, 165, 165, 0.1);
  border: 1px solid rgba(252, 165, 165, 0.25);
  color: #fca5a5;
}
.pdiff.zero {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

/* Misterioso */
.mystery-board {
  background:
    radial-gradient(circle at 85% 14%, rgba(244, 114, 182, 0.13), transparent 38%),
    linear-gradient(145deg, rgba(244, 114, 182, 0.07), rgba(186, 230, 253, 0.045));
  border: 1.5px solid rgba(244, 114, 182, 0.18);
  border-radius: 26px;
  margin-bottom: 22px;
  padding: 24px;
}
.mystery-stat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
}
.mstat {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 20px;
  padding: 16px 12px;
  text-align: center;
}
.mstat-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.mstat-value {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: 32px;
  font-weight: 750;
}
.nota-glow {
  color: #fde68a;
  text-shadow: 0 0 20px rgba(253, 230, 138, 0.4);
}
.mstat-full {
  margin-top: 14px;
}
.mstat-full .mstat-label {
  margin-bottom: 10px;
}
.mystery-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.mchip {
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 999px;
  color: #fbcfe8;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
}
.mystery-persons {
  display: flex;
  gap: 8px;
}
.mperson {
  align-items: center;
  border-radius: 50%;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}
.misterio-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.misterio-input-row .desafio-input {
  flex: 1;
}
.misterio-feedback.hidden {
  display: none;
}
.misterio-feedback {
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 0;
}
.fb-win {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 14px;
  color: #86efac;
  padding: 14px 18px;
}
.fb-miss {
  background: rgba(252, 165, 165, 0.08);
  border: 1px solid rgba(252, 165, 165, 0.22);
  border-radius: 14px;
  color: #fca5a5;
  padding: 14px 18px;
}
.fb-reveal {
  background: rgba(253, 230, 138, 0.08);
  border: 1px solid rgba(253, 230, 138, 0.22);
  border-radius: 14px;
  color: #fde68a;
  padding: 14px 18px;
}
.misterio-footer {
  display: flex;
  gap: 10px;
}

/* Timeline */
.tl-section {
  margin-bottom: 36px;
}
.tl-title {
  color: var(--paper);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 18px;
}
.tl-records {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.tl-record {
  align-items: flex-start;
  background:
    linear-gradient(145deg, rgba(187, 247, 208, 0.08), rgba(186, 230, 253, 0.04)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(187, 247, 208, 0.16);
  border-radius: 22px;
  display: flex;
  gap: 14px;
  padding: 18px;
}
.tlr-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.tl-record small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.tl-record strong {
  color: var(--paper);
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.tl-record span {
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
}
.tmembers-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.tmember {
  background:
    radial-gradient(
      circle at 18% 10%,
      color-mix(in srgb, var(--cl) 16%, transparent),
      transparent 48%
    ),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--c) 10%, transparent),
      rgba(255, 255, 255, 0.025)
    );
  border: 1.5px solid color-mix(in srgb, var(--cl) 24%, rgba(255, 255, 255, 0.08));
  border-radius: 24px;
  padding: 20px;
}
.tmember-name {
  color: var(--cl);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}
.tmember-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
}
.ts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ts strong {
  color: var(--paper);
  font-size: 16px;
  font-weight: 750;
}
.tmember-top {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
}
.tmember-top span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.tmember-top strong {
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}
.tmember-top em {
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

/* ── Batalha v3 ── */
.bt-loading {
  color: var(--muted);
  font-size: 14px;
  padding: 40px;
  text-align: center;
}
.bt-error {
  background: rgba(252, 165, 165, 0.1);
  border: 1px solid rgba(252, 165, 165, 0.3);
  border-radius: 12px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
}
.bt-error.hidden {
  display: none;
}
.bt-loading-msg {
  color: var(--muted);
  font-size: 13px;
}
.bt-loading-msg.hidden {
  display: none;
}
.bt-label {
  color: rgba(199, 210, 254, 0.55);
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Lobby */
.bt-auth-gate {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px 20px;
  text-align: center;
}
.bt-auth-icon {
  font-size: 48px;
}
.bt-auth-gate h3 {
  color: var(--paper);
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}
.bt-auth-gate p {
  color: var(--muted);
  font-size: 14px;
  max-width: 400px;
}

.bt-lobby {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.bt-identity {
}
.bt-person-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bt-person-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  padding: 9px 18px;
  transition: all 0.18s ease;
}
.bt-person-btn:hover {
  border-color: var(--pl);
  color: var(--pl);
}
.bt-person-btn.active {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--pl);
  box-shadow: 0 0 12px color-mix(in srgb, var(--pc) 30%, transparent);
  color: var(--pl);
}
.bt-person-dot {
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}
.bt-create {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(129, 140, 248, 0.18);
  border-radius: 20px;
  padding: 20px;
}
.bt-create-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.bt-open-sessions {
}
.bt-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bt-session-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 16px;
}
.bt-session-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.bt-session-item em {
  color: rgba(253, 230, 138, 0.6);
  font-style: normal;
}

/* Waiting */
.bt-waiting {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 20px;
  text-align: center;
}
.bt-waiting-header {
  align-items: center;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.bt-player-badge {
  border: 1.5px solid;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 18px;
}
.bt-player-badge.pending {
  opacity: 0.5;
}
.bt-vs-tag {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}
.bt-waiting-msg {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 400px;
}
.bt-waiting-info {
  color: rgba(199, 210, 254, 0.4);
  font-size: 12px;
  font-weight: 700;
}

/* Active */
.bt-active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bt-active-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bt-scoreboard {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.bt-scorer {
  align-items: center;
  display: flex;
  gap: 10px;
}
.bt-scorer-name {
  font-size: 15px;
  font-weight: 800;
}
.bt-scorer-pts {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  font-family: "Newsreader", serif;
  font-size: 28px;
  font-weight: 750;
  padding: 4px 14px;
}
.bt-round-indicator {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.bt-round-indicator strong {
  color: var(--paper);
  display: block;
  font-size: 20px;
  letter-spacing: 0;
}
.bt-pips {
  display: flex;
  gap: 8px;
}

.bt-arena {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
}
.bt-vs-center {
  align-items: center;
  color: rgba(251, 146, 60, 0.45);
  display: flex;
  font-size: 18px;
  font-weight: 900;
  justify-content: center;
  padding: 0 6px;
}
.bcard2 {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(251, 146, 60, 0.18);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  transition: all 0.18s ease;
}
.bcard2:hover {
  background: rgba(251, 146, 60, 0.06);
  border-color: rgba(251, 146, 60, 0.4);
}
.bcard2-chosen {
  background: rgba(74, 222, 128, 0.07);
  border-color: rgba(74, 222, 128, 0.45);
}
.bcard2-nota {
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: 999px;
  color: #fdba74;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 10px;
  width: fit-content;
}
.bcard2-name {
  color: var(--paper);
  flex: 1;
  font-family: "Newsreader", serif;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 750;
  line-height: 1.3;
}
.bvote2 {
  background: rgba(251, 146, 60, 0.14);
  border: 1.5px solid rgba(251, 146, 60, 0.35);
  border-radius: 999px;
  color: #fdba74;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  margin-top: auto;
  padding: 9px 16px;
  transition: all 0.15s ease;
}
.bvote2:hover:not([disabled]) {
  background: rgba(251, 146, 60, 0.28);
  border-color: #fb923c;
  color: #fff;
}
.bvote2.bvote2-done,
.bvote2[disabled] {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
  cursor: default;
}

.bt-vote-status {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}
.bt-voted-msg {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.bt-your-turn {
  font-size: 14px;
  font-weight: 800;
}
.bt-voter-badges {
  display: flex;
  gap: 8px;
}
.bt-voter-badge {
  border: 1.5px solid;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  transition: all 0.2s ease;
}
.bt-voter-badge.voted {
  background: rgba(74, 222, 128, 0.06);
}

.bt-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bt-hist-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 14px;
}
.bt-hist-num {
  background: rgba(251, 146, 60, 0.1);
  border-radius: 999px;
  color: #fdba74;
  font-size: 10px;
  padding: 2px 8px;
}
.bt-hist-anime {
  color: var(--paper);
  flex: 1;
}
.bt-hist-winner {
  font-size: 11px;
  white-space: nowrap;
}

/* Finished */
.bt-finished {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bt-fin-banner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  text-align: center;
}
.bt-fin-icon {
  font-size: 56px;
}
.bt-fin-title {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 750;
  margin: 0;
}
.bt-fin-scores {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.bt-fin-player {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  padding: 20px 28px;
  text-align: center;
}
.bt-fin-player.champion {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.12);
}
.bt-fin-name {
  font-size: 16px;
  font-weight: 800;
}
.bt-fin-pts {
  font-family: "Newsreader", serif;
  font-size: 52px;
  font-weight: 750;
}
.bt-fin-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bt-fin-vs {
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}
/* Reveal screen */
.bt-reveal {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bt-reveal-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(79, 70, 229, 0.06));
  border: 1.5px solid rgba(129, 140, 248, 0.2);
  border-radius: 24px;
  padding: 24px;
}

.bt-reveal-players {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto 1fr;
}

.bt-reveal-player {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bt-reveal-player:last-child {
  align-items: flex-end;
}
.bt-reveal-avatar {
  align-items: center;
  background: color-mix(in srgb, var(--pc) 20%, transparent);
  border: 2px solid color-mix(in srgb, var(--pc) 55%, transparent);
  border-radius: 50%;
  color: var(--pl);
  display: flex;
  font-size: 18px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}
.bt-reveal-player span {
  color: var(--pl);
  font-size: 14px;
  font-weight: 800;
}

.bt-reveal-title-block {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.bt-reveal-emoji {
  font-size: 36px;
}
.bt-reveal-title-block h2 {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: 28px;
  font-weight: 750;
  margin: 0;
}
.bt-reveal-agree-badge {
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 999px;
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
}

.bt-reveal-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bt-reveal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s;
}
.bt-reveal-card-same {
  border-color: rgba(129, 140, 248, 0.35);
}

.bt-reveal-card-num {
  background: rgba(251, 146, 60, 0.1);
  border-bottom: 1px solid rgba(251, 146, 60, 0.15);
  color: #fdba74;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 8px 18px;
  text-transform: uppercase;
}

.bt-reveal-card-options {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 0 18px;
}
.bt-opt-picked {
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}
.bt-opt-skipped {
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 600;
  text-decoration: line-through;
}
.bt-opt-vs {
  color: var(--muted);
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
}

.bt-reveal-card-votes {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
  padding: 4px 18px 18px;
}

.bt-rvc {
  align-items: center;
  display: flex;
  gap: 10px;
}
.bt-rvc:last-child {
  flex-direction: row-reverse;
}
.bt-rvc-dot {
  background: var(--pl);
  border-radius: 50%;
  box-shadow: 0 0 8px color-mix(in srgb, var(--pc) 60%, transparent);
  flex-shrink: 0;
  height: 10px;
  width: 10px;
}
.bt-rvc-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bt-rvc-name {
  color: var(--pl);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bt-rvc-choice {
  color: var(--paper);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}
.bt-rvc:last-child .bt-rvc-info {
  text-align: right;
}

.bt-rvc-same,
.bt-rvc-diff {
  font-size: 22px;
  text-align: center;
}
.bt-rvc-same-label {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(79, 70, 229, 0.08));
  border-top: 1px solid rgba(129, 140, 248, 0.2);
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  text-align: center;
}

.bt-fin-rounds h4 {
  color: var(--paper);
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
}
.bt-fin-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  gap: 10px;
  padding: 10px 14px;
}
.bt-fin-rnum {
  background: rgba(251, 146, 60, 0.12);
  border-radius: 999px;
  color: #fdba74;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  white-space: nowrap;
}
.bt-fin-votes {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  gap: 8px;
}
.bt-fin-result {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .community-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .community-metrics,
  .community-strip {
    grid-template-columns: 1fr;
  }
  .bt-arena {
    grid-template-columns: 1fr;
  }
  .bt-vs-center {
    padding: 4px 0;
    text-align: center;
  }
  .desafio-hero {
    flex-direction: column;
    gap: 12px;
  }
  .desafio-hero-icon {
    font-size: 36px;
  }
}

/* ── Batalha v2 ── */
.batalha-lobby {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.batalha-lobby-title {
  align-items: flex-start;
  display: flex;
  gap: 16px;
}
.batalha-lobby-icon {
  font-size: 40px;
  flex-shrink: 0;
}
.batalha-lobby-title h3 {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: 24px;
  font-weight: 750;
  margin: 0 0 6px;
}
.batalha-lobby-title p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.batalha-create-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.batalha-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(8, 9, 16, 0.88);
  border: 1.5px solid rgba(251, 191, 36, 0.24);
  border-radius: 18px;
  color: var(--paper);
  color-scheme: dark;
  flex: 1;
  font-size: 13px;
  min-width: 180px;
  outline: none;
  padding: 11px 14px;
}
.batalha-action-btn {
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
  border: none;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.15);
  color: #27150b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 11px 24px;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.batalha-action-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.batalha-error {
  background: rgba(252, 165, 165, 0.1);
  border: 1px solid rgba(252, 165, 165, 0.3);
  border-radius: 12px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
}
.batalha-error.hidden {
  display: none;
}
.batalha-lobby-info {
  color: var(--muted);
  font-size: 13px;
}
.batalha-cancel-btn {
  background: transparent;
  border: 1px solid rgba(252, 165, 165, 0.25);
  border-radius: 999px;
  color: rgba(252, 165, 165, 0.6);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  transition: all 0.15s ease;
}
.batalha-cancel-btn:hover {
  border-color: #fca5a5;
  color: #fca5a5;
}

.batalha-waiting {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 48px 20px;
  text-align: center;
}
.batalha-waiting-icon {
  font-size: 48px;
}
.batalha-waiting h3 {
  color: var(--paper);
  font-size: 20px;
  font-weight: 750;
  margin: 0;
}
.batalha-waiting p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.batalha-session-id {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 12px;
}

/* Active battle */
.batalha-active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.batalha-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.batalha-players {
  align-items: center;
  display: flex;
  gap: 10px;
}
.bplayer {
  font-size: 16px;
  font-weight: 800;
}
.bscore {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-family: "Newsreader", serif;
  font-size: 28px;
  font-weight: 750;
  padding: 4px 12px;
}
.bvs {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}
.batalha-round-badge {
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: 999px;
  color: #fdba74;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 16px;
}

.batalha-round-progress {
  display: flex;
  gap: 8px;
}
.bpip {
  align-items: center;
  border-radius: 50%;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
  transition: all 0.2s ease;
}
.bpip-done {
  background: rgba(74, 222, 128, 0.15);
  border: 2px solid rgba(74, 222, 128, 0.5);
  color: #86efac;
}
.bpip-active {
  background: rgba(251, 146, 60, 0.2);
  border: 2px solid #fb923c;
  color: #fdba74;
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.3);
}
.bpip-pending {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.batalha-arena-v2 {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}
.bvs-divider {
  align-items: center;
  color: rgba(251, 146, 60, 0.5);
  display: flex;
  font-size: 18px;
  font-weight: 900;
  justify-content: center;
  padding: 0 4px;
}
.bcard {
  background:
    linear-gradient(145deg, rgba(251, 191, 36, 0.075), rgba(244, 114, 182, 0.035)),
    rgba(255, 255, 255, 0.025);
  border: 1.5px solid rgba(251, 191, 36, 0.16);
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  transition: all 0.18s ease;
}
.bcard:hover {
  background:
    linear-gradient(145deg, rgba(251, 191, 36, 0.11), rgba(244, 114, 182, 0.045)),
    rgba(255, 255, 255, 0.035);
  border-color: rgba(251, 191, 36, 0.34);
}
.bcard-chosen {
  background: rgba(74, 222, 128, 0.07);
  border-color: rgba(74, 222, 128, 0.45);
}
.bcard-nota {
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: 999px;
  color: #fdba74;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 10px;
  width: fit-content;
}
.bcard-name {
  color: var(--paper);
  flex: 1;
  font-family: "Newsreader", serif;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 750;
  line-height: 1.3;
}
.bvote-btn {
  background: linear-gradient(135deg, rgba(254, 215, 170, 0.16), rgba(254, 243, 199, 0.09));
  border: 1.5px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  color: #fde68a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  margin-top: auto;
  padding: 9px 16px;
  transition: all 0.15s ease;
}
.bvote-btn:hover:not([disabled]) {
  background: rgba(251, 146, 60, 0.28);
  border-color: #fb923c;
  color: #fff;
}
.bvote-btn.disabled,
.bvote-btn[disabled] {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
  cursor: default;
}

.batalha-status {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}
.bstatus-waiting {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.bstatus-act {
  font-size: 14px;
  font-weight: 800;
}
.bvoters {
  display: flex;
  gap: 8px;
}
.bvoter {
  align-items: center;
  border: 1.5px solid;
  border-radius: 999px;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
  padding: 4px 12px;
  transition: all 0.2s ease;
}
.bvoter.voted {
  background: rgba(74, 222, 128, 0.08);
}

.batalha-last-rounds {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.blast-round {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 14px;
}
.blast-round span:nth-child(2) {
  color: var(--paper);
  flex: 1;
}

/* Finished */
.batalha-finished {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.batalha-finished-banner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  text-align: center;
}
.bfin-icon {
  font-size: 56px;
}
.bfin-title {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 750;
  margin: 0;
}
.batalha-final-scores {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: center;
}
.bfin-player {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 28px;
  text-align: center;
  transition: all 0.2s ease;
}
.bfin-winner {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.15);
}
.bfin-name {
  font-size: 16px;
  font-weight: 800;
}
.bfin-score {
  font-family: "Newsreader", serif;
  font-size: 52px;
  font-weight: 750;
}
.bfin-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bfin-vs {
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}
.bfin-rounds h4 {
  color: var(--paper);
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
}
.bfin-round-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  gap: 12px;
  padding: 10px 16px;
}
.bfin-round-num {
  background: rgba(251, 146, 60, 0.12);
  border-radius: 999px;
  color: #fdba74;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  white-space: nowrap;
}
.bfin-round-anime {
  color: var(--paper);
  flex: 1;
}
.bfin-round-votes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bfin-round-winner {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .batalha-arena-v2 {
    grid-template-columns: 1fr;
  }
  .bvs-divider {
    padding: 4px 0;
    text-align: center;
  }
  .desafio-hero {
    flex-direction: column;
    gap: 12px;
  }
  .desafio-hero-icon {
    font-size: 36px;
  }
}
.pending-header {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pending-history-btn {
  background:
    linear-gradient(rgba(10, 16, 12, 0.9), rgba(10, 16, 12, 0.9)) padding-box,
    linear-gradient(135deg, rgba(134, 239, 172, 0.55), rgba(253, 230, 138, 0.38)) border-box;
  border: 1.5px solid transparent;
  border-radius: 999px;
  color: #86efac;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 20px;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.pending-history-btn:hover {
  box-shadow: 0 4px 16px rgba(134, 239, 172, 0.2);
  color: #f0fdf4;
}

body.pending-page:not(.dark-theme) .pending-all-voted-title {
  color: #2a8a73 !important;
}
body.pending-page:not(.dark-theme) .pending-all-voted-sub {
  color: #57cdae !important;
}

body.pending-page:not(.dark-theme) .pending-history-btn {
  background:
    linear-gradient(135deg, #f0fdf9 0%, #e0faf2 100%) padding-box,
    linear-gradient(135deg, #57cdae, #5d8bff) border-box;
  border: 1.5px solid transparent;
  color: #2a8a73;
}

body.pending-page:not(.dark-theme) .pending-history-btn:hover {
  background:
    linear-gradient(135deg, #e0faf2 0%, #d0f5ea 100%) padding-box,
    linear-gradient(135deg, #57cdae, #5d8bff) border-box;
  box-shadow: 0 4px 16px rgba(87, 205, 174, 0.25);
  color: #1a6b58;
}

/* ── Pending page ─────────────────────────────────────────────────────────── */
body.pending-page {
  background:
    radial-gradient(ellipse 55% 40% at 8% 10%, rgba(26, 107, 120, 0.15), transparent),
    radial-gradient(ellipse 45% 50% at 92% 88%, rgba(90, 26, 66, 0.12), transparent),
    radial-gradient(ellipse 35% 35% at 50% 50%, rgba(26, 74, 50, 0.08), transparent), var(--bg);
}

body.pending-page .page-header {
  border-bottom-color: rgba(26, 107, 120, 0.3);
}

body.pending-page .page-header h1 {
  background: linear-gradient(120deg, #7dd3de 0%, #86efac 60%, #fde68a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

#pending-animes-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

body.pending-page .vote-card {
  background:
    linear-gradient(145deg, rgba(5, 30, 20, 0.98), rgba(3, 14, 10, 1) 55%, rgba(8, 35, 22, 0.99))
      padding-box,
    linear-gradient(135deg, #2a9db4, #2a7a52) border-box !important;
  border: 2.5px solid transparent !important;
  border-radius: 28px !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(26, 107, 120, 0.08) inset;
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 0 !important;
  padding: 24px !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

body.pending-page .vote-card > div:last-child {
  margin-top: auto !important;
}

body.pending-page .vote-card:hover {
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(26, 107, 120, 0.12);
  transform: translateY(-2px);
}

body.pending-page .vote-card h3 {
  color: #e0f7fa !important;
  font-family: "Newsreader", serif;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px !important;
}

body.pending-page .vote-card p {
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 8px !important;
  opacity: 0.9;
}

body.pending-page .vote-card > div:first-child {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 4px;
}

body.pending-page .vote-card > div:last-child,
body.pending-page .vote-card .vote-controls {
  background: rgba(26, 107, 120, 0.06) !important;
  border: 1px solid rgba(26, 107, 120, 0.18) !important;
  border-radius: 20px !important;
  padding: 16px !important;
}

body.pending-page .vote-controls button {
  background: linear-gradient(135deg, #1a6b78, #1a4a32 50%, #5a1a42) !important;
  border: 1px solid rgba(125, 211, 222, 0.25) !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 18px rgba(26, 107, 120, 0.3) !important;
  color: #e0f7fa !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  margin-top: 12px !important;
  min-height: 44px;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease !important;
  width: 100% !important;
}

body.pending-page .vote-controls button:hover {
  opacity: 0.88 !important;
  transform: translateY(-1px) !important;
}

body.pending-page .vote-controls input[type="range"] {
  accent-color: #7dd3de;
}

body.pending-page .vote-controls textarea {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(26, 107, 120, 0.3) !important;
  border-radius: 14px !important;
  color: #e0f7fa !important;
  font-size: 13px;
  min-height: 72px;
  padding: 10px 14px !important;
  resize: vertical;
  width: 100% !important;
}

body.pending-page .vote-controls textarea::placeholder {
  color: rgba(125, 211, 222, 0.3);
}

.pending-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pending-genre-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
}

body.pending-page .vote-controls label {
  color: rgba(224, 247, 250, 0.8);
  font-size: 13px;
  font-weight: 700;
}

body.pending-page .vote-card button[style*="text-decoration:underline"],
body.pending-page .vote-card button[style*="text-decoration: underline"] {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  padding: 4px 12px !important;
  text-decoration: none !important;
  margin-top: 8px !important;
  display: inline-block !important;
  cursor: pointer !important;
  transition:
    background 0.15s ease,
    border-color 0.15s ease !important;
}

body.pending-page .vote-card button[style*="text-decoration:underline"]:hover,
body.pending-page .vote-card button[style*="text-decoration: underline"]:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

body.pending-page .nav-person span[title] {
  box-shadow: 0 0 0 3px rgba(26, 107, 120, 0.08);
}

/* ── Link chips (fila de aprovação + histórico) ── */
.pending-link-chip-wrap {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  margin-bottom: 5px;
}

.pending-link-chip {
  background: rgba(42, 157, 180, 0.1);
  border: 1px solid rgba(42, 157, 180, 0.3);
  border-radius: 999px;
  color: #67e8f9;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  max-width: 220px;
  overflow: hidden;
  padding: 5px 13px;
  text-decoration: none;
  text-overflow: ellipsis;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}

.pending-link-chip:hover {
  background: rgba(42, 157, 180, 0.2);
  border-color: rgba(42, 157, 180, 0.55);
  color: #a5f3fc;
}

.pending-link-edit,
.pending-link-delete {
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  opacity: 0;
  transition:
    opacity 0.15s ease,
    background 0.15s ease;
  width: 20px;
}

.pending-link-edit {
  background: rgba(42, 157, 180, 0.08);
  border: 1px solid rgba(42, 157, 180, 0.2);
  color: #67e8f9;
}

.pending-link-delete {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.pending-link-chip-wrap:hover .pending-link-edit,
.pending-link-chip-wrap:hover .pending-link-delete {
  opacity: 1;
}

.pending-link-edit:hover {
  background: rgba(42, 157, 180, 0.2);
}

.pending-link-delete:hover {
  background: rgba(239, 68, 68, 0.2);
}

.pending-link-add-btn {
  background: rgba(42, 157, 180, 0.06);
  border: 1px dashed rgba(42, 157, 180, 0.28);
  border-radius: 999px;
  color: rgba(103, 232, 249, 0.55);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  padding: 4px 13px;
  transition: all 0.15s ease;
}

.pending-link-add-btn:hover {
  background: rgba(42, 157, 180, 0.14);
  border-color: rgba(42, 157, 180, 0.5);
  border-style: solid;
  color: #67e8f9;
}

body.dark-theme .modal-overlay,
.modal-overlay {
  background:
    radial-gradient(circle at 50% 20%, rgba(124, 58, 237, 0.12), transparent 360px),
    rgba(0, 0, 0, 0.82);
}

body.dark-theme .modal,
.modal {
  background:
    linear-gradient(
      145deg,
      rgba(185, 167, 223, 0.12),
      rgba(24, 23, 29, 0.94) 42%,
      rgba(6, 182, 212, 0.08)
    ),
    rgba(14, 14, 19, 0.96);
  border: 1px solid rgba(221, 214, 254, 0.28);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
  contain: layout paint style;
  overscroll-behavior: contain;
  padding: 32px;
  scrollbar-color: rgba(187, 247, 208, 0.48) rgba(10, 10, 14, 0.48);
  scrollbar-width: thin;
  transform: translate3d(0, 0, 0);
}

.modal::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 12px;
}

.modal::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.14), rgba(6, 182, 212, 0.1)), rgba(8, 8, 12, 0.82);
  border-radius: 999px;
}

.modal::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(187, 247, 208, 0.82), rgba(186, 230, 253, 0.68));
  border: 3px solid rgba(8, 8, 12, 0.82);
  border-radius: 999px;
}

.modal::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.92), rgba(186, 230, 253, 0.82));
}

body.dark-theme .note-box,
.note-box {
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--note-color, #ddd6fe) 20%, transparent),
      rgba(255, 255, 255, 0.012)
    ),
    rgba(12, 12, 17, 0.72);
  border: 1px solid color-mix(in srgb, var(--note-color, #ddd6fe) 42%, rgba(221, 214, 254, 0.16));
  border-radius: 16px;
  min-width: 0;
  padding: 14px 10px;
}

body.dark-theme .comment-item,
.comment-item {
  background:
    linear-gradient(135deg, rgba(187, 247, 208, 0.055), rgba(24, 23, 29, 0.78)),
    rgba(12, 12, 17, 0.78);
  border: 1px solid rgba(221, 214, 254, 0.16);
  border-radius: 18px;
  padding: 16px;
}

body.dark-theme .anime-edit-panel,
.anime-edit-panel {
  background:
    linear-gradient(
      145deg,
      rgba(124, 58, 237, 0.2),
      rgba(24, 23, 29, 0.88) 52%,
      rgba(6, 182, 212, 0.08)
    ),
    rgba(17, 16, 24, 0.92);
  border: 1px solid rgba(182, 156, 255, 0.34);
  border-radius: 20px;
  padding: 18px;
}

.modal-links,
.modal-comments,
.anime-edit-panel {
  content-visibility: auto;
  contain-intrinsic-size: 180px;
}

body.dark-theme .edit-field input,
body.dark-theme .edit-field textarea,
.edit-field input,
.edit-field textarea {
  background: rgba(9, 9, 13, 0.72);
  border: 1px solid rgba(221, 214, 254, 0.2);
  border-radius: 14px;
}

body.dark-theme .edit-field input:focus,
body.dark-theme .edit-field textarea:focus,
.edit-field input:focus,
.edit-field textarea:focus {
  border-color: rgba(187, 247, 208, 0.7);
  box-shadow: 0 0 0 4px rgba(187, 247, 208, 0.1);
}

.compare-combo-list {
  scrollbar-color: rgba(186, 230, 253, 0.42) rgba(7, 18, 20, 0.5);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.compare-combo-list::-webkit-scrollbar {
  width: 10px;
}

.compare-combo-list::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.12)),
    rgba(7, 18, 20, 0.75);
  border-radius: 999px;
}

.compare-combo-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.34), rgba(6, 182, 212, 0.34));
  border: 2px solid rgba(7, 18, 20, 0.78);
  border-radius: 999px;
}

body:has(#venn4-container) .page-header h1 {
  background: linear-gradient(90deg, #ffd6e8 0%, #e9d5ff 45%, #bae6fd 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

#stats-grid .stat-card:nth-child(1) .stat-label {
  color: #b69cff;
}
#stats-grid .stat-card:nth-child(2) .stat-label {
  color: #ff9dcc;
}
#stats-grid .stat-card:nth-child(3) .stat-label {
  color: #86efac;
}
#stats-grid .stat-card:nth-child(4) .stat-label {
  color: #67e8f9;
}

.blog-categories a:nth-child(1),
body.dark-theme .blog-categories a:nth-child(1) {
  border-color: rgba(249, 115, 22, 0.46);
}

.blog-categories a:nth-child(2),
body.dark-theme .blog-categories a:nth-child(2) {
  border-color: rgba(239, 68, 68, 0.46);
}

.blog-categories a:nth-child(3),
body.dark-theme .blog-categories a:nth-child(3) {
  border-color: rgba(56, 189, 248, 0.46);
}

.archive-title-gradient {
  background: linear-gradient(90deg, #b69cff 0%, #a7f3d0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ================================================================
   LIGHT THEME  ·  body:not(.dark-theme)
   Sobrescreve cores hardcoded feitas para o modo escuro.
   Paleta artsluminare: fundo #fffaf1, cards #ffffff, texto #1b1718
   ================================================================ */

/* 1 · Fundo da página */
body:not(.dark-theme) {
  background:
    radial-gradient(ellipse at 10% 10%, rgba(255, 185, 0, 0.1), transparent 420px),
    radial-gradient(ellipse at 90% 85%, rgba(180, 83, 9, 0.07), transparent 400px), var(--bg);
  background-attachment: fixed;
  color: var(--text);
}

body:not(.dark-theme)::before {
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(16, 16, 16, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 16, 0.06) 1px, transparent 1px);
}

/* 2 · Nav */
body:not(.dark-theme) .nav {
  background: rgba(237, 228, 214, 0.96);
  border-bottom-color: rgba(60, 40, 20, 0.12);
  box-shadow: 0 2px 16px rgba(60, 40, 20, 0.07);
}

/* Logo: gradiente roxo, magenta e branco da marca AniLiber */
body:not(.dark-theme) .nav-logo,
body:not(.dark-theme) .brand-gradient,
body:not(.dark-theme) .nav > a.nav-logo,
body:not(.dark-theme) .nav > a.nav-logo.active {
  background: var(--aniliber-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 3 · Headings que usam color:var(--paper) na base (branco → invisível no claro) */
body:not(.dark-theme) .page-header h1,
body:not(.dark-theme) .section-head h2,
body:not(.dark-theme) .quick-links strong,
body:not(.dark-theme) .member-card h3,
body:not(.dark-theme) .feature-main h2,
body:not(.dark-theme) .news-card h3,
body:not(.dark-theme) .modal-title,
body:not(.dark-theme) .person-hero h1,
body:not(.dark-theme) .anime-name,
body:not(.dark-theme) .stat-value {
  color: var(--text);
}

/* 4 · Divisores de seção */
body:not(.dark-theme) .page-header,
body:not(.dark-theme) .section-head,
body:not(.dark-theme) .person-hero,
body:not(.dark-theme) .blog-section {
  border-color: var(--border);
}

/* 5 · Cards genéricos */
body:not(.dark-theme) .card,
body:not(.dark-theme) .stat-card,
body:not(.dark-theme) .news-card,
body:not(.dark-theme) .modal,
body:not(.dark-theme) .hero-panel,
body:not(.dark-theme) .quick-links a {
  background: var(--card);
  border-color: var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
}

body:not(.dark-theme) .card:hover,
body:not(.dark-theme) .stat-card:hover,
body:not(.dark-theme) .news-card:hover,
body:not(.dark-theme) .quick-links a:hover {
  background: var(--card2);
  border-color: var(--border-hover);
}

/* 6 · Stat cards coloridos */
body:not(.dark-theme) .stat-card:nth-child(1),
body:not(.dark-theme) #person-stats .stat-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), var(--card) 68%);
  border-color: rgba(124, 58, 237, 0.25);
}
body:not(.dark-theme) .stat-card:nth-child(2),
body:not(.dark-theme) #person-stats .stat-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), var(--card) 68%);
  border-color: rgba(236, 72, 153, 0.25);
}
body:not(.dark-theme) .stat-card:nth-child(3),
body:not(.dark-theme) #person-stats .stat-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), var(--card) 68%);
  border-color: rgba(16, 185, 129, 0.22);
}
body:not(.dark-theme) .stat-card:nth-child(4),
body:not(.dark-theme) #person-stats .stat-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), var(--card) 68%);
  border-color: rgba(6, 182, 212, 0.22);
}
body:not(.dark-theme) #person-stats .stat-card:nth-child(5) {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), var(--card) 68%);
  border-color: rgba(239, 68, 68, 0.2);
}

/* 7 · Grid cards com acento por posição */
body:not(.dark-theme) .grid-2 > .card:nth-child(1),
body:not(.dark-theme) .grid-3 > .card:nth-child(1) {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.06), var(--card) 64%);
  border-color: rgba(124, 58, 237, 0.18);
}
body:not(.dark-theme) .grid-2 > .card:nth-child(2),
body:not(.dark-theme) .grid-3 > .card:nth-child(2) {
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.06), var(--card) 64%);
  border-color: rgba(236, 72, 153, 0.18);
}
body:not(.dark-theme) .grid-3 > .card:nth-child(3) {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.06), var(--card) 64%);
  border-color: rgba(16, 185, 129, 0.16);
}

/* 8 · Member / post cards */
body:not(.dark-theme) .member-card:nth-child(1),
body:not(.dark-theme) .post-card:nth-child(1) {
  --member-color: var(--rafael-light);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.09), var(--card) 60%);
  border-color: rgba(124, 58, 237, 0.2);
}
body:not(.dark-theme) .member-card:nth-child(2),
body:not(.dark-theme) .post-card:nth-child(2) {
  --member-color: var(--fernando-light);
  background: linear-gradient(160deg, rgba(236, 72, 153, 0.09), var(--card) 60%);
  border-color: rgba(236, 72, 153, 0.2);
}
body:not(.dark-theme) .member-card:nth-child(3),
body:not(.dark-theme) .post-card:nth-child(3) {
  --member-color: var(--dudu-light);
  background: linear-gradient(160deg, rgba(234, 179, 8, 0.09), var(--card) 60%);
  border-color: rgba(234, 179, 8, 0.2);
}
body:not(.dark-theme) .member-card:nth-child(4),
body:not(.dark-theme) .post-card:nth-child(4) {
  --member-color: var(--hacksuya-light);
  background: linear-gradient(160deg, rgba(6, 182, 212, 0.09), var(--card) 60%);
  border-color: rgba(6, 182, 212, 0.2);
}
body:not(.dark-theme) .post-card:nth-child(5) {
  --member-color: var(--zana-light);
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.09), var(--card) 60%);
  border-color: rgba(249, 115, 22, 0.2);
}

/* 9 · Tabela do acervo */
body:not(.dark-theme) .table-wrap {
  background: var(--card);
  border: 1.5px solid rgba(16, 16, 16, 0.18);
  border-radius: 10px;
}
body:not(.dark-theme) .acervo-main-card {
  background: var(--card) !important;
  border: 2.5px solid #5d8bff !important;
  box-shadow: 0 4px 24px rgba(93, 139, 255, 0.14);
}
body:not(.dark-theme) table {
  background: transparent;
}
body:not(.dark-theme) thead {
  background: rgba(16, 16, 16, 0.04);
}
body:not(.dark-theme) thead th {
  background: transparent;
  border-bottom: 1.5px solid rgba(16, 16, 16, 0.16);
  color: var(--faint);
}
body:not(.dark-theme) thead th:hover,
body:not(.dark-theme) thead th.sorted {
  color: var(--text);
}
body:not(.dark-theme) tbody tr {
  border-bottom: 1px solid rgba(16, 16, 16, 0.09);
}
body:not(.dark-theme) tbody tr:hover {
  background: rgba(16, 16, 16, 0.03);
}
body:not(.dark-theme) tbody td {
  color: var(--text);
}

/* 10 · Filtros e selects */
body:not(.dark-theme) .filters input,
body:not(.dark-theme) .filters select,
body:not(.dark-theme) .compare-selectors select {
  background:
    var(--card) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.28)) border-box;
  border: 1.5px solid transparent;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(31, 29, 26, 0.06);
}

/* 11 · Badges de gênero */
body:not(.dark-theme) .badge-genre {
  background: var(--card2);
  border-color: var(--border);
  color: var(--muted);
}

/* 12 · Note-box, comment-item */
body:not(.dark-theme) .note-box,
body:not(.dark-theme) .comment-item,
body:not(.dark-theme) .modal-comment {
  background: var(--card2);
  border-color: var(--border);
  color: var(--text);
}

/* 13 · Modal */
body:not(.dark-theme) .modal-overlay {
  background: rgba(16, 16, 16, 0.45);
  backdrop-filter: blur(4px);
}
body:not(.dark-theme) .modal {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* 14 · Botões */
body:not(.dark-theme) .btn {
  background: var(--card2);
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}
body:not(.dark-theme) .btn:hover {
  background: var(--card);
  border-color: var(--border-hover);
}
body:not(.dark-theme) .btn-primary {
  background: #ff6a4a;
  border-color: #ff6a4a;
  color: #ffffff;
}
body:not(.dark-theme) .btn-primary:hover {
  background: #e05030;
  border-color: #e05030;
}

/* 15 · Tags e pill metrics */
body:not(.dark-theme) .mini-metrics span,
body:not(.dark-theme) .quick-links a span,
body:not(.dark-theme) .post-meta span,
body:not(.dark-theme) .post-tags span,
body:not(.dark-theme) .member-card footer span {
  background: var(--card2);
  border-color: var(--border);
  color: var(--muted);
}

/* 16 · Listas com bordas */
body:not(.dark-theme) .hot-list a,
body:not(.dark-theme) .anime-list li,
body:not(.dark-theme) .spotlight-list div,
body:not(.dark-theme) .rank-block li {
  border-color: var(--border);
}

/* 17 · Card title e rótulos */
body:not(.dark-theme) .card-title,
body:not(.dark-theme) .stat-label {
  color: var(--faint);
}

/* 18 · Hamburger e drawer mobile */
body:not(.dark-theme) .nav-hamburger {
  background: rgba(16, 16, 16, 0.05);
  border-color: rgba(16, 16, 16, 0.12);
}
body:not(.dark-theme) .nav-hamburger span {
  background: var(--text);
}
body:not(.dark-theme) .nav > .theme-toggle {
  background: rgba(16, 16, 16, 0.05);
  border-color: rgba(16, 16, 16, 0.12);
  color: var(--text);
}
body:not(.dark-theme) .mobile-drawer-panel {
  background: var(--card);
  border-left-color: var(--border);
}
body:not(.dark-theme) .mobile-drawer-backdrop {
  background: rgba(16, 16, 16, 0.45);
}
body:not(.dark-theme) .mobile-drawer-logo {
  background: var(--aniliber-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body:not(.dark-theme) .mobile-drawer-link {
  border-bottom-color: var(--border);
  color: var(--muted);
}
body:not(.dark-theme) .mobile-drawer-link:hover,
body:not(.dark-theme) .mobile-drawer-link.active {
  color: var(--text);
}
body:not(.dark-theme) .mobile-drawer-members a {
  background: var(--card2);
  border-color: var(--border);
  color: var(--muted);
}
body:not(.dark-theme) .mobile-drawer-members a:hover,
body:not(.dark-theme) .mobile-drawer-members a.active {
  background: var(--card);
  border-color: var(--border-hover);
  color: var(--text);
}
body:not(.dark-theme) .mobile-drawer-close,
body:not(.dark-theme) .mobile-theme-btn {
  background: var(--card2);
  border-color: var(--border);
  color: var(--muted);
}
body:not(.dark-theme) .mobile-drawer-close:hover,
body:not(.dark-theme) .mobile-theme-btn:hover {
  background: var(--card);
  color: var(--text);
}

/* 19 · Charts page: gradiente do título e pills em tons escuros */
body:not(.dark-theme) .charts-page .page-header h1 {
  background: linear-gradient(90deg, #5d8bff 0%, #ff6a4a 55%, #f7b900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body:not(.dark-theme) .charts-stat-pill {
  background: rgba(255, 106, 74, 0.07);
  border-color: rgba(255, 106, 74, 0.25);
  color: #e05030;
}
body:not(.dark-theme) .charts-stat-pill span {
  color: var(--muted);
}
body:not(.dark-theme) .charts-eyebrow {
  color: #e05030;
}
body:not(.dark-theme) .charts-section-divider {
  color: var(--faint);
}
body:not(.dark-theme) .charts-section-divider::before,
body:not(.dark-theme) .charts-section-divider::after {
  background: var(--border);
}
body:not(.dark-theme) .card-desc {
  color: var(--muted);
}
body:not(.dark-theme) .card-badge {
  background: var(--card2);
  border-color: var(--border);
  color: var(--faint);
}

/* 20 · Acervo: gradiente do título */
body:not(.dark-theme) .archive-title-gradient {
  background: linear-gradient(90deg, #5d8bff 0%, #57cdae 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 21 · Venn / compare */
body:not(.dark-theme) .venn-circle:nth-child(1) {
  background: rgba(124, 58, 237, 0.12);
  border: 2px solid rgba(124, 58, 237, 0.4);
}
body:not(.dark-theme) .venn-circle:nth-child(2) {
  background: rgba(236, 72, 153, 0.12);
  border: 2px solid rgba(236, 72, 153, 0.4);
}
body:not(.dark-theme) .diff-highlight {
  background: rgba(239, 68, 68, 0.1);
}

/* 22 · Calendar (sidebar) */
body:not(.dark-theme) .calendar-item {
  border-color: var(--border);
  color: var(--text);
}
body:not(.dark-theme) .calendar-mal-link {
  background:
    var(--card2) padding-box,
    linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(6, 182, 212, 0.5)) border-box;
  border: 1px solid transparent;
  color: var(--text);
}

/* 23 · Opening chips (member cards) */
body:not(.dark-theme) .opening-chip {
  background: var(--card2);
  border-color: var(--border);
  color: var(--muted);
}
body:not(.dark-theme) .opening-chip b {
  color: var(--faint);
}

/* 24 · Blog hero copy — backgrounds de tom escuro sem escopo (bug principal) */
body:not(.dark-theme) .blog-hero-copy {
  background:
    linear-gradient(135deg, rgba(245, 241, 232, 0.95), rgba(235, 228, 212, 0.88)),
    url("https://images.unsplash.com/photo-1618331833071-ce81bd50d300?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  border-color: rgba(31, 29, 26, 0.14);
}

body:not(.dark-theme) .blog-hero-copy[data-hero-tone="blog"] {
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.55), rgba(242, 234, 219, 0.88));
  border-color: rgba(16, 185, 129, 0.25);
}

body:not(.dark-theme) .blog-hero-copy[data-hero-tone="playlists"] {
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.55), rgba(242, 234, 219, 0.88));
  border-color: rgba(124, 58, 237, 0.22);
}

body:not(.dark-theme) .blog-hero-copy[data-hero-tone="news"] {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.55), rgba(242, 234, 219, 0.88));
  border-color: rgba(59, 130, 246, 0.22);
}

body:not(.dark-theme) .blog-hero-copy[data-hero-tone="featured"] {
  background: linear-gradient(135deg, rgba(254, 249, 195, 0.65), rgba(242, 234, 219, 0.88));
  border-color: rgba(234, 179, 8, 0.28);
}

/* Eyebrow dentro do hero */
body:not(.dark-theme) .blog-hero-copy .eyebrow {
  color: #e05030;
}

/* Dots do rotator */
body:not(.dark-theme) .blog-hero-dots button {
  background: rgba(16, 16, 16, 0.15);
  border-color: rgba(16, 16, 16, 0.2);
}
body:not(.dark-theme) .blog-hero-dots button.active {
  background: #ff6a4a;
  border-color: #ff6a4a;
}

/* Visuals do slide */
body:not(.dark-theme) .blog-hero-slide-footer {
  border-top-color: rgba(16, 16, 16, 0.1);
}

/* 25 · Blog hero card */
body:not(.dark-theme) .blog-hero-card:not(.has-bg) h2,
body:not(.dark-theme) .blog-hero-card:not(.has-bg) p,
body:not(.dark-theme) .blog-hero-card:not(.has-bg) a {
  color: #1b1718;
}

/* has-bg: overlay mais claro + texto branco */
body:not(.dark-theme) .blog-hero-card.has-bg::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.04)), var(--hero-anime-bg);
  background-position: center;
  background-size: cover;
}

body:not(.dark-theme) .blog-hero-card.has-bg h2,
body:not(.dark-theme) .blog-hero-card.has-bg p,
body:not(.dark-theme) .blog-hero-card.has-bg a,
body:not(.dark-theme) .blog-hero-card.has-bg .post-kicker {
  color: #ffffff;
}

/* 26 · Sidebar boxes (Mais Controversos + Calendário) */
body:not(.dark-theme) .sidebar-box h2 {
  color: #1f2933;
}
body:not(.dark-theme) .sidebar-box .eyebrow {
  color: #065f46;
}
body:not(.dark-theme) .hot-list a strong {
  color: #b45309;
}

/* 27 · Texto secundário geral que pode estar usando var branco */
body:not(.dark-theme) .muted,
body:not(.dark-theme) [class*="muted"] {
  color: var(--muted);
}
body:not(.dark-theme) .stat-sub {
  color: var(--muted);
}

/* 28 · Blog cards — TUDO em texto preto (cards já têm fundo claro/pastel) */

/* post-featured: amarelo pastel sólido igual ao ciclo dos outros cards */
body:not(.dark-theme) .post-featured {
  background:
    linear-gradient(145deg, #fff1cc 0%, #ffffff 70%) padding-box,
    linear-gradient(135deg, #ffd336 0%, #ff6a4a 100%) border-box;
  border: 2px solid transparent;
}

body:not(.dark-theme) .post-featured::after {
  display: none;
}

body:not(.dark-theme) .featured-comment-title {
  color: #1b1718;
  text-shadow: none;
}

body:not(.dark-theme) .comment-balloon strong {
  color: #1b1718;
}

body:not(.dark-theme) .comment-balloon p {
  color: #1b1718;
}

body:not(.dark-theme) .post-featured h2,
body:not(.dark-theme) .blog-section-head h2,
body:not(.dark-theme) .member-section-head h2 {
  color: #1b1718;
}

body:not(.dark-theme) .post-card h3,
body:not(.dark-theme) .post-card p,
body:not(.dark-theme) .post-card ol li span,
body:not(.dark-theme) .post-card ol li strong {
  color: #1b1718;
}

body:not(.dark-theme) .post-card a {
  color: #1b1718;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body:not(.dark-theme) .sidebar-box h2,
body:not(.dark-theme) .sidebar-box p,
body:not(.dark-theme) .sidebar-box .eyebrow {
  color: #1b1718;
}

body:not(.dark-theme) .hot-list a span {
  color: #1b1718;
}

body:not(.dark-theme) .calendar-item {
  color: #1b1718;
}

body:not(.dark-theme) .calendar-day {
  color: var(--muted);
}

body:not(.dark-theme) .blog-hero-card h2,
body:not(.dark-theme) .blog-hero-card p {
  color: #1b1718;
}

/* Opening chips no blog — !important para vencer a regra base */
body:not(.dark-theme) .post-tags .opening-chip,
body:not(.dark-theme) .post-openings .opening-chip,
body:not(.dark-theme) .opening-list .opening-chip {
  color: var(--text) !important;
  background: rgba(16, 16, 16, 0.05) !important;
  border-color: rgba(16, 16, 16, 0.12) !important;
}

body:not(.dark-theme) .opening-chip b {
  color: var(--muted) !important;
}

/* ================================================================
   PENDING PAGE  ·  mobile responsive
   ================================================================ */

@media (max-width: 768px) {
  body.pending-page .page {
    padding: 20px 12px 48px;
  }

  /* Header: botão empilha abaixo do título */
  body.pending-page .pending-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  /* Grid de cards: 1 coluna com gap menor */
  #pending-animes-container {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  /* Card menor */
  body.pending-page .vote-card {
    border-radius: 18px !important;
    padding: 14px !important;
  }

  /* Título menor */
  body.pending-page .vote-card h3 {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  /* Seção de voto/controles: padding menor */
  body.pending-page .vote-card > div:last-child,
  body.pending-page .vote-card .vote-controls {
    border-radius: 12px !important;
    padding: 10px !important;
  }

  /* Chips de gênero menores */
  .pending-genre-chip {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* Dots de votação: ligeiramente menores */
  body.pending-page .vote-card > div:first-child span[title] {
    height: 20px !important;
    width: 20px !important;
    font-size: 10px !important;
  }

  /* Botão de confirmar voto mais compacto */
  body.pending-page .vote-controls button {
    font-size: 12px !important;
    margin-top: 8px !important;
    min-height: 40px;
  }

  /* Range do score: fonte menor */
  body.pending-page .vote-controls label {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  body.pending-page .page {
    padding: 16px 10px 40px;
  }

  #pending-animes-container {
    gap: 10px;
  }

  body.pending-page .vote-card {
    border-radius: 14px !important;
    padding: 12px !important;
  }

  body.pending-page .vote-card h3 {
    font-size: 15px !important;
  }
}

/* ================================================================
   MOBILE MELHORIAS GLOBAIS — todas as páginas
   ================================================================ */

@media (max-width: 768px) {
  /* ── Person pages: h1 e mascote menores ── */
  .person-hero h1 {
    font-size: clamp(28px, 7.5vw, 42px);
  }

  .rafael-hero-mascot {
    height: clamp(68px, 16vw, 90px);
  }

  /* ── Blog: member cards mostram ~1.3 por vez (carousel sensato) ── */
  #member-grid.post-grid .post-card {
    flex: 0 0 min(280px, 76vw);
  }

  /* Setas desnecessárias em touch */
  .member-scroll-arrows {
    display: none;
  }

  /* Cards do blog: título menor */
  .post-card h3 {
    font-size: 18px !important;
  }

  /* Section head do blog: empilha */
  .blog-section-head,
  .member-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  /* Blog hero card: h2 menor */
  .blog-hero-card h2 {
    font-size: clamp(20px, 5.5vw, 32px);
  }

  /* ── Suggest: padding menor ── */
  body.suggest-page .card.suggest-form-card {
    padding: 16px;
  }

  body.suggest-page .page-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  /* ── Compare: selectors empilham ── */
  .compare-selectors {
    flex-direction: column;
  }

  .compare-selectors select {
    min-width: 0;
    width: 100%;
  }

  /* ── Person profile: charts menores ── */
  body.person-profile-page .chart-container {
    height: 200px !important;
  }

  body.person-profile-page .grid-2 {
    gap: 12px;
  }

  /* ── Desafios: tabs mais compactas ── */
  .desafio-tab {
    font-size: 11px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  /* ── Person: ainda menor ── */
  .person-hero h1 {
    font-size: clamp(24px, 8.5vw, 32px);
  }

  .rafael-hero-mascot {
    height: clamp(56px, 14vw, 70px);
  }

  /* ── Blog member cards: um pouco mais largo ── */
  #member-grid.post-grid .post-card {
    flex: 0 0 min(250px, 82vw);
  }

  /* ── Suggest: form bem compacto ── */
  body.suggest-page .card.suggest-form-card {
    padding: 12px;
  }
}

/* ================================================================
   LIGHT THEME · Gradientes pastéis em todos os cards
   Ciclo de 4 cores artsluminare: roxo, rosa, amarelo, mint
   ================================================================ */

/* Base de cada cor */
:root {
  --pastel-purple: rgba(93, 139, 255, 0.09);
  --pastel-pink: rgba(255, 105, 180, 0.09);
  --pastel-yellow: rgba(255, 185, 0, 0.2);
  --pastel-mint: rgba(87, 205, 174, 0.08);
}

/* Ciclo: .card, .stat-card, .news-card, .sidebar-box, .quick-links a */
body:not(.dark-theme) .card:not(.modal):not(.acervo-main-card):nth-child(4n + 1),
body:not(.dark-theme) .stat-card:nth-child(4n + 1),
body:not(.dark-theme) .news-card:nth-child(4n + 1) {
  background: linear-gradient(145deg, var(--pastel-purple) 0%, #ffffff 68%);
  border-color: rgba(93, 139, 255, 0.4);
}

body:not(.dark-theme) .card:not(.modal):not(.acervo-main-card):nth-child(4n + 2),
body:not(.dark-theme) .stat-card:nth-child(4n + 2),
body:not(.dark-theme) .news-card:nth-child(4n + 2) {
  background: linear-gradient(145deg, var(--pastel-pink) 0%, #ffffff 68%);
  border-color: rgba(255, 105, 180, 0.4);
}

body:not(.dark-theme) .card:not(.modal):not(.acervo-main-card):nth-child(4n + 3),
body:not(.dark-theme) .stat-card:nth-child(4n + 3),
body:not(.dark-theme) .news-card:nth-child(4n + 3) {
  background: linear-gradient(145deg, var(--pastel-yellow) 0%, #ffffff 68%);
  border-color: rgba(255, 185, 0, 0.45);
}

body:not(.dark-theme) .card:not(.modal):not(.acervo-main-card):nth-child(4n),
body:not(.dark-theme) .stat-card:nth-child(4n),
body:not(.dark-theme) .news-card:nth-child(4n) {
  background: linear-gradient(145deg, var(--pastel-mint) 0%, #ffffff 68%);
  border-color: rgba(87, 205, 174, 0.4);
}

/* Sidebar boxes: 1º roxo, 2º rosa */
body:not(.dark-theme) .sidebar-box:nth-child(odd) {
  background: linear-gradient(145deg, var(--pastel-purple) 0%, #ffffff 68%);
  border-color: rgba(93, 139, 255, 0.4);
}
body:not(.dark-theme) .sidebar-box:nth-child(even) {
  background: linear-gradient(145deg, var(--pastel-pink) 0%, #ffffff 68%);
  border-color: rgba(255, 105, 180, 0.4);
}

/* Quick-links ciclados */
body:not(.dark-theme) .quick-links a:nth-child(4n + 1) {
  background: linear-gradient(145deg, var(--pastel-purple) 0%, #ffffff 68%);
  border-color: rgba(93, 139, 255, 0.4);
}
body:not(.dark-theme) .quick-links a:nth-child(4n + 2) {
  background: linear-gradient(145deg, var(--pastel-pink) 0%, #ffffff 68%);
  border-color: rgba(255, 105, 180, 0.4);
}
body:not(.dark-theme) .quick-links a:nth-child(4n + 3) {
  background: linear-gradient(145deg, var(--pastel-yellow) 0%, #ffffff 68%);
  border-color: rgba(255, 185, 0, 0.45);
}
body:not(.dark-theme) .quick-links a:nth-child(4n) {
  background: linear-gradient(145deg, var(--pastel-mint) 0%, #ffffff 68%);
  border-color: rgba(87, 205, 174, 0.4);
}

/* Hover: intensifica ligeiramente */
body:not(.dark-theme) .card:not(.modal):not(.acervo-main-card):hover,
body:not(.dark-theme) .stat-card:hover,
body:not(.dark-theme) .news-card:hover,
body:not(.dark-theme) .sidebar-box:hover,
body:not(.dark-theme) .quick-links a:hover {
  filter: saturate(1.15) brightness(0.98);
  box-shadow: var(--shadow);
}

/* ── Balões de comentário: ciclo de 4 pastéis ── */
body:not(.dark-theme) .comment-balloon-1,
body:not(.dark-theme) .comment-balloon-5 {
  background: linear-gradient(145deg, rgba(93, 139, 255, 0.16) 0%, rgba(93, 139, 255, 0.04) 100%);
  box-shadow: 0 8px 22px rgba(93, 139, 255, 0.12);
}

body:not(.dark-theme) .comment-balloon-2,
body:not(.dark-theme) .comment-balloon-6 {
  background: linear-gradient(145deg, rgba(255, 105, 180, 0.16) 0%, rgba(255, 105, 180, 0.04) 100%);
  box-shadow: 0 8px 22px rgba(255, 105, 180, 0.12);
}

body:not(.dark-theme) .comment-balloon-3,
body:not(.dark-theme) .comment-balloon-7 {
  background: linear-gradient(145deg, rgba(255, 211, 54, 0.18) 0%, rgba(255, 211, 54, 0.05) 100%);
  box-shadow: 0 8px 22px rgba(255, 211, 54, 0.14);
}

body:not(.dark-theme) .comment-balloon-4,
body:not(.dark-theme) .comment-balloon-8 {
  background: linear-gradient(145deg, rgba(87, 205, 174, 0.16) 0%, rgba(87, 205, 174, 0.04) 100%);
  box-shadow: 0 8px 22px rgba(87, 205, 174, 0.12);
}

/* ================================================================
   PENDING PAGE  ·  light mode — estilo igual aos cards do Top 3
   ================================================================ */

/* Ciclo de pastéis nos vote-cards */
body.pending-page:not(.dark-theme) .vote-card:nth-child(4n + 1) {
  background: linear-gradient(160deg, rgba(93, 139, 255, 0.12) 0%, #ffffff 62%) !important;
  border: 2px solid rgba(93, 139, 255, 0.35) !important;
  box-shadow: 0 4px 20px rgba(93, 139, 255, 0.08) !important;
}
body.pending-page:not(.dark-theme) .vote-card:nth-child(4n + 2) {
  background: linear-gradient(160deg, rgba(255, 105, 180, 0.12) 0%, #ffffff 62%) !important;
  border: 2px solid rgba(255, 105, 180, 0.35) !important;
  box-shadow: 0 4px 20px rgba(255, 105, 180, 0.08) !important;
}
body.pending-page:not(.dark-theme) .vote-card:nth-child(4n + 3) {
  background: linear-gradient(160deg, rgba(255, 185, 0, 0.12) 0%, #ffffff 62%) !important;
  border: 2px solid rgba(255, 185, 0, 0.38) !important;
  box-shadow: 0 4px 20px rgba(255, 185, 0, 0.08) !important;
}
body.pending-page:not(.dark-theme) .vote-card:nth-child(4n) {
  background: linear-gradient(160deg, rgba(87, 205, 174, 0.12) 0%, #ffffff 62%) !important;
  border: 2px solid rgba(87, 205, 174, 0.35) !important;
  box-shadow: 0 4px 20px rgba(87, 205, 174, 0.08) !important;
}

/* Texto dos cards em preto */
body.pending-page:not(.dark-theme) .vote-card h3,
body.pending-page:not(.dark-theme) .vote-card p,
body.pending-page:not(.dark-theme) .vote-card div,
body.pending-page:not(.dark-theme) .vote-card span,
body.pending-page:not(.dark-theme) .vote-card label {
  color: #1b1718 !important;
}

body.pending-page:not(.dark-theme) .vote-card h3 {
  font-size: 18px !important;
}

/* Seção de voto (fundo interno) */
body.pending-page:not(.dark-theme) .vote-card > div:last-child,
body.pending-page:not(.dark-theme) .vote-card .vote-controls {
  background: rgba(16, 16, 16, 0.04) !important;
  border: 1px solid rgba(16, 16, 16, 0.1) !important;
}

/* Chips de gênero */
body.pending-page:not(.dark-theme) .pending-genre-chip {
  background: rgba(16, 16, 16, 0.06);
  border: 1px solid rgba(16, 16, 16, 0.14);
  color: #1b1718;
}

/* Botão confirmar voto */
body.pending-page:not(.dark-theme) .vote-controls button[onclick*="handleCastVote"] {
  background: linear-gradient(135deg, #5d8bff, #57cdae) !important;
  border: none !important;
  color: #ffffff !important;
}

/* Dots de votação */
body.pending-page:not(.dark-theme) .vote-card span[title] {
  opacity: 1 !important;
}

/* Seção de voto exibição (meu voto) */
body.pending-page:not(.dark-theme) #pending-animes-container [id^="vote-display-"] {
  background: rgba(16, 16, 16, 0.04) !important;
  border: 1px solid rgba(16, 16, 16, 0.12) !important;
}

/* Link chips e botões de link */
body.pending-page:not(.dark-theme) .pending-link-add-btn {
  border-color: rgba(87, 205, 174, 0.5);
  color: #2a9d8f;
}

/* ================================================================
   CIEL PAGE  ·  light mode
   Tema âmbar/dourado sobre fundos claros
   ================================================================ */

body.ciel-page:not(.dark-theme) {
  background:
    radial-gradient(ellipse 55% 45% at 5% 8%, rgba(251, 191, 36, 0.1), transparent),
    radial-gradient(ellipse 45% 55% at 92% 92%, rgba(180, 83, 9, 0.07), transparent), var(--bg);
}

/* Sidebar */
body.ciel-page:not(.dark-theme) .ciel-sidebar {
  background: #fffdf3;
  border-color: rgba(180, 83, 9, 0.25);
  box-shadow: 0 4px 24px rgba(180, 83, 9, 0.08);
}

body.ciel-page:not(.dark-theme) .ciel-avatar-wrap {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), transparent 80%);
}

body.ciel-page:not(.dark-theme) .ciel-avatar-ring {
  background: #fffdf3;
  box-shadow:
    0 0 0 4px rgba(251, 191, 36, 0.12),
    0 8px 24px rgba(180, 83, 9, 0.12);
}

body.ciel-page:not(.dark-theme) .ciel-id-block p,
body.ciel-page:not(.dark-theme) .ciel-online-badge,
body.ciel-page:not(.dark-theme) .ciel-profile-label {
  color: rgba(180, 83, 9, 0.6);
}

body.ciel-page:not(.dark-theme) .ciel-info-item {
  border-bottom-color: rgba(180, 83, 9, 0.1);
}

body.ciel-page:not(.dark-theme) .ciel-info-item small {
  color: rgba(180, 83, 9, 0.5);
}

body.ciel-page:not(.dark-theme) .ciel-info-item span {
  color: #92400e;
}

body.ciel-page:not(.dark-theme) .ciel-profile-section {
  border-top-color: rgba(180, 83, 9, 0.12);
}

body.ciel-page:not(.dark-theme) .ciel-people button {
  border-color: rgba(180, 83, 9, 0.2);
  color: rgba(180, 83, 9, 0.55);
}

body.ciel-page:not(.dark-theme) .ciel-people button:hover {
  background: rgba(251, 191, 36, 0.08);
  border-color: #d97706;
  color: #92400e;
}

body.ciel-page:not(.dark-theme) .ciel-people button.active {
  background: rgba(251, 191, 36, 0.12);
  border-color: #d97706;
  color: #78350f;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.15);
}

/* Chat wrap */
body.ciel-page:not(.dark-theme) .ciel-chat-wrap {
  background: #ffffff;
  border-color: rgba(180, 83, 9, 0.22);
  box-shadow: 0 4px 32px rgba(180, 83, 9, 0.08);
}

body.ciel-page:not(.dark-theme) .ciel-chat-topbar {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), transparent);
  border-bottom-color: rgba(180, 83, 9, 0.12);
  color: #92400e;
}

body.ciel-page:not(.dark-theme) .ciel-topbar-status {
  color: rgba(180, 83, 9, 0.5);
}

/* Bolhas de mensagem */
body.ciel-page:not(.dark-theme) .ciel-msg-bubble {
  background: #fffef7;
  border-color: rgba(251, 191, 36, 0.18);
  border-left-color: #d97706;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.06);
  color: #1b1718;
}

body.ciel-page:not(.dark-theme) .ciel-msg-user .ciel-msg-bubble {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(180, 83, 9, 0.2);
  border-right-color: #d97706;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.06);
  color: #1b1718;
}

body.ciel-page:not(.dark-theme) .ciel-msg-avatar {
  background: #fffdf3;
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.15);
}

/* Rec cards */
body.ciel-page:not(.dark-theme) .ciel-rec-card {
  background: #fffef7;
  border-color: rgba(251, 191, 36, 0.22);
  border-top-color: #d97706;
  color: #1b1718;
}

body.ciel-page:not(.dark-theme) .ciel-rec-card:hover {
  background: #fffcee;
  border-color: rgba(251, 191, 36, 0.45);
  border-top-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.1);
}

body.ciel-page:not(.dark-theme) .ciel-rec-body strong {
  color: #1b1718;
}

body.ciel-page:not(.dark-theme) .ciel-rec-body p {
  color: rgba(120, 53, 15, 0.6);
}

body.ciel-page:not(.dark-theme) .ciel-rec-body small {
  color: #b45309;
}

/* Quick actions */
body.ciel-page:not(.dark-theme) .ciel-quick-actions {
  background: rgba(251, 191, 36, 0.04);
  border-top-color: rgba(180, 83, 9, 0.1);
}

body.ciel-page:not(.dark-theme) .ciel-quick-btn {
  border-color: rgba(180, 83, 9, 0.22);
  color: rgba(120, 53, 15, 0.7);
}

body.ciel-page:not(.dark-theme) .ciel-quick-btn:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: #d97706;
  color: #78350f;
  box-shadow: none;
}

/* Input */
body.ciel-page:not(.dark-theme) .ciel-input-bar {
  border-top-color: rgba(180, 83, 9, 0.12);
}

body.ciel-page:not(.dark-theme) #ciel-input {
  background: transparent;
  border-bottom-color: rgba(180, 83, 9, 0.25);
  color: #1b1718;
}

body.ciel-page:not(.dark-theme) #ciel-input:focus {
  border-bottom-color: #d97706;
}

body.ciel-page:not(.dark-theme) #ciel-input::placeholder {
  color: rgba(180, 83, 9, 0.3);
}

/* Acervo anime details modal */
body.acervo-page .modal-overlay {
  background: rgba(5, 7, 12, 0.88); /* Cor sólida escura para máxima performance */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.acervo-page .modal {
  border: 1px solid rgba(209, 218, 235, 0.15);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); /* Sombra mais simples */
  max-width: 650px;
  padding: 28px;
  scrollbar-color: rgba(167, 205, 211, 0.65) rgba(255, 255, 255, 0.04);
  /* Performance optimizations */
  transform: translateZ(0);
  position: relative;
  overflow-y: auto;
  background: #12151d;
  contain: content; /* Isola o conteúdo para o navegador otimizar o render */
}

body.acervo-page .modal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.85) 0%, rgba(6, 8, 12, 0.98) 100%),
    var(--modal-anime-bg, none);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  border-radius: inherit;
  background-attachment: scroll; /* Fundo estático enquanto o conteúdo rola */
  opacity: 0.6; /* Deixa o fundo mais sutil e rápido de renderizar */
}

body.acervo-page .modal-header {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

body.acervo-page .modal-title {
  color: #fff7ef;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: 620px;
  text-wrap: balance;
}

body.acervo-page .modal-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(209, 218, 235, 0.13);
  border-radius: 999px;
  color: rgba(232, 238, 248, 0.58);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 20px;
  height: 38px;
  justify-content: center;
  margin-top: 2px;
  padding: 0;
  width: 38px;
}

body.acervo-page .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 159, 199, 0.36);
  color: #fff7ef;
  transform: translateY(-1px);
}

body.acervo-page .modal-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

body.acervo-page .modal-genres .badge-genre {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 999px;
  color: rgba(247, 246, 239, 0.84);
  font-size: 11px;
  padding: 7px 12px;
}

body.acervo-page .notes-grid {
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  margin-bottom: 14px;
}

body.acervo-page .note-box {
  background:
    linear-gradient(
      150deg,
      color-mix(in srgb, var(--note-color, #b7c9ff) 20%, transparent),
      transparent 62%
    ),
    rgba(255, 255, 255, 0.055);
  border: 1px solid color-mix(in srgb, var(--note-color, #b7c9ff) 48%, rgba(255, 255, 255, 0.14));
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  min-height: 76px;
  padding: 14px 12px;
}

body.acervo-page .note-box .person {
  letter-spacing: 0;
  margin-bottom: 8px;
}

body.acervo-page .note-box .score {
  font-size: 32px;
}

body.acervo-page .modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

body.acervo-page .modal-meta .meta-item {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 999px;
  color: rgba(232, 238, 248, 0.62);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

body.acervo-page .modal-meta .meta-item span {
  color: #f5ede0;
}

body.acervo-page .modal-links,
body.acervo-page .modal-comments,
body.acervo-page .anime-edit-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(13, 17, 25, 0.64);
  border: 1px solid rgba(209, 218, 235, 0.16);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-top: 18px;
  padding: 18px;
}

body.acervo-page .modal-links h3,
body.acervo-page .modal-comments h3 {
  color: rgba(255, 247, 239, 0.64);
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}

body.acervo-page .modal-link-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.acervo-page .modal-link-chip,
body.acervo-page .modal-link-add-btn {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(162, 204, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #fff7ef;
}

body.acervo-page .modal-link-chip {
  align-items: center;
  display: inline-flex;
  min-height: 38px;
  padding: 9px 13px;
}

body.acervo-page .modal-link-add-btn {
  height: 38px;
  line-height: 38px;
  width: 38px;
}

body.acervo-page .modal-link-chip:hover,
body.acervo-page .modal-link-add-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(180, 216, 255, 0.42);
}

body.acervo-page .comment-list {
  gap: 10px;
}

body.acervo-page .comment-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid
    color-mix(
      in srgb,
      var(--comment-accent, rgba(209, 218, 235, 0.22)) 22%,
      rgba(209, 218, 235, 0.08)
    );
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  padding: 16px;
}

body.acervo-page .comment-item strong {
  margin-bottom: 8px;
}

body.acervo-page .comment-item p {
  color: rgba(255, 247, 239, 0.88);
}

body.acervo-page .anime-edit-panel h3 {
  color: #fff7ef;
  font-size: 26px;
}

body.acervo-page .anime-edit-panel p {
  color: rgba(232, 238, 248, 0.64);
}

body.acervo-page .edit-expand-button,
body.acervo-page .edit-button {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(162, 204, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #fff7ef;
}

body.acervo-page .edit-expand-button:hover,
body.acervo-page .edit-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(180, 216, 255, 0.42);
  transform: translateY(-1px);
}

body.acervo-page .add-link-input,
body.acervo-page .edit-field input,
body.acervo-page .edit-field textarea {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(209, 218, 235, 0.18);
  color: #fff7ef;
}

body.acervo-page .add-link-input:focus,
body.acervo-page .edit-field input:focus,
body.acervo-page .edit-field textarea:focus {
  border-color: rgba(191, 234, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(191, 234, 255, 0.1);
}

body.acervo-page:not(.dark-theme) .modal-overlay {
  background: rgba(16, 16, 16, 0.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.acervo-page:not(.dark-theme) .modal {
  border-color: rgba(60, 40, 20, 0.13);
  color: #2c2420;
  /* Performance optimizations */
  transform: translateZ(0);
  position: relative;
  overflow-y: auto;
  background: #fffaf4;
  contain: content;
}

body.acervo-page:not(.dark-theme) .modal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.75) 0%, rgba(255, 250, 244, 0.98) 100%),
    var(--modal-anime-bg, none);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  border-radius: inherit;
  background-attachment: scroll;
  opacity: 0.5;
}

body.acervo-page:not(.dark-theme) .modal-title,
body.acervo-page:not(.dark-theme) .anime-edit-panel h3 {
  color: #2c2420;
}

body.acervo-page:not(.dark-theme) .modal-close {
  background: rgba(44, 36, 32, 0.055);
  border-color: rgba(44, 36, 32, 0.11);
  color: rgba(44, 36, 32, 0.54);
}

body.acervo-page:not(.dark-theme) .modal-genres .badge-genre,
body.acervo-page:not(.dark-theme) .modal-meta .meta-item,
body.acervo-page:not(.dark-theme) .modal-links,
body.acervo-page:not(.dark-theme) .modal-comments,
body.acervo-page:not(.dark-theme) .anime-edit-panel,
body.acervo-page:not(.dark-theme) .comment-item {
  background: rgba(255, 255, 255, 0.58);
  color: #2c2420;
}

body.acervo-page:not(.dark-theme) .comment-item {
  border-color: color-mix(
    in srgb,
    var(--comment-accent, rgba(60, 40, 20, 0.18)) 18%,
    rgba(60, 40, 20, 0.1)
  );
}

body.acervo-page:not(.dark-theme) .modal-meta .meta-item,
body.acervo-page:not(.dark-theme) .modal-links h3,
body.acervo-page:not(.dark-theme) .modal-comments h3,
body.acervo-page:not(.dark-theme) .anime-edit-panel p {
  color: rgba(44, 36, 32, 0.58);
}

body.acervo-page:not(.dark-theme) .modal-meta .meta-item span,
body.acervo-page:not(.dark-theme) .comment-item p {
  color: #2c2420;
}

body.acervo-page:not(.dark-theme) .modal-link-chip,
body.acervo-page:not(.dark-theme) .modal-link-add-btn,
body.acervo-page:not(.dark-theme) .edit-expand-button,
body.acervo-page:not(.dark-theme) .edit-button,
body.acervo-page:not(.dark-theme) .add-link-input,
body.acervo-page:not(.dark-theme) .edit-field input,
body.acervo-page:not(.dark-theme) .edit-field textarea {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(133, 182, 240, 0.32);
  color: #2c2420;
}

@media (max-width: 720px) {
  body.acervo-page .modal-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  body.acervo-page .modal {
    border-radius: 24px 24px 18px 18px;
    max-height: 92vh;
    padding: 22px;
  }

  body.acervo-page .modal-title {
    font-size: clamp(26px, 8vw, 34px);
  }

  body.acervo-page .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Community v2 */
body.community-v2-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(244, 114, 182, 0.11), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(103, 232, 249, 0.1), transparent 32%),
    radial-gradient(circle at 56% 92%, rgba(52, 211, 153, 0.08), transparent 38%), var(--bg);
}

.community-v2-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding: 32px 22px 72px;
}

.community-v2-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  margin-bottom: 16px;
}

.community-v2-hero-copy,
.community-v2-spotlight,
.community-panel,
.community-v2-stats article {
  background:
    linear-gradient(145deg, rgba(17, 19, 30, 0.9), rgba(9, 18, 24, 0.86)) padding-box,
    linear-gradient(
        135deg,
        rgba(245, 208, 254, 0.2),
        rgba(186, 230, 253, 0.16),
        rgba(187, 247, 208, 0.12)
      )
      border-box;
  border: 1px solid transparent;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
}

.community-v2-hero-copy {
  border-radius: 30px;
  min-height: 360px;
  padding: clamp(28px, 5vw, 52px);
}

.community-v2-hero-copy h1 {
  background: linear-gradient(120deg, #fff7ed 0%, #f5d0fe 35%, #bae6fd 72%, #bbf7d0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 12px 0 16px;
  max-width: 760px;
  -webkit-text-fill-color: transparent;
}

.community-v2-hero-copy p {
  color: rgba(243, 239, 230, 0.78);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.65;
  max-width: 660px;
}

.community-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.community-v2-actions button,
.community-icon-btn,
.community-secondary-btn,
.community-primary-btn,
.community-event-card button,
.community-vibe-buttons button {
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  min-height: 40px;
  padding: 0 16px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.community-v2-actions button,
.community-secondary-btn,
.community-event-card button,
.community-vibe-buttons button {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(221, 214, 254, 0.18);
  color: rgba(243, 239, 230, 0.78);
}

.community-v2-actions button:hover,
.community-secondary-btn:hover,
.community-event-card button:hover,
.community-vibe-buttons button:hover,
.community-vibe-buttons button.active {
  background: rgba(196, 181, 253, 0.14);
  border-color: rgba(196, 181, 253, 0.42);
  color: #fff7ed;
  transform: translateY(-1px);
}

.community-primary-btn,
.community-icon-btn {
  background: linear-gradient(135deg, #f5d0fe, #c4b5fd 45%, #bae6fd);
  border: 0;
  color: #17131f;
}

.community-v2-spotlight {
  background-image:
    linear-gradient(180deg, rgba(5, 7, 13, 0.1), rgba(5, 7, 13, 0.82)), var(--spotlight-image);
  background-position: center;
  background-size: cover;
  border-radius: 30px;
  display: flex;
  min-height: 360px;
  overflow: hidden;
  padding: 18px;
}

.community-spotlight-glass {
  align-self: flex-end;
  background: rgba(8, 10, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  padding: 20px;
  width: 100%;
}

.community-spotlight-glass span,
.community-panel .eyebrow,
.community-v2-stats span {
  color: rgba(199, 210, 254, 0.68);
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.community-spotlight-glass h2,
.community-panel h2 {
  color: var(--paper);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 1000;
  letter-spacing: 0;
}

.community-spotlight-glass h2 {
  font-size: 30px;
  line-height: 1.04;
  margin: 8px 0;
}

.community-spotlight-glass p {
  color: rgba(243, 239, 230, 0.72);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.community-spotlight-glass a,
.community-radar-card a,
.community-event-card a {
  color: #bae6fd;
  font-size: 12px;
  font-weight: 900;
}

.community-v2-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.community-v2-stats article {
  border-radius: 22px;
  padding: 18px 20px;
}

.community-v2-stats strong {
  color: var(--paper);
  display: block;
  font-family: "Newsreader", serif;
  font-size: 38px;
  line-height: 1;
  margin-top: 6px;
}

.community-v2-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}

.community-panel {
  border-radius: 24px;
  grid-column: span 4;
  min-width: 0;
  padding: 20px;
}

.community-panel-wide {
  grid-column: span 8;
}

.community-panel-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.community-panel h2 {
  font-size: 24px;
  line-height: 1.05;
  margin: 5px 0 0;
}

.community-feed,
.community-leaderboard,
.community-missions-list,
.community-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.community-feed-item,
.community-leader-row,
.community-event-card,
.community-mission,
.community-affinity-card,
.community-radar-card,
.community-radar-lists section,
.community-debate-card,
.community-vibe-result,
.community-soft-empty {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(221, 214, 254, 0.12);
  border-radius: 18px;
}

.community-feed-item {
  border-left: 3px solid var(--item-color);
  padding: 14px 16px;
}

.community-feed-item span,
.community-feed-item small,
.community-leader-row small,
.community-event-card small,
.community-mission small,
.community-affinity-card small,
.community-radar-card p,
.community-radar-lists small,
.community-debate-card span,
.community-vibe-result span {
  color: rgba(243, 239, 230, 0.62);
  font-size: 12px;
  font-weight: 750;
}

.community-feed-item strong {
  color: var(--paper);
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin: 4px 0;
}

.community-poll-voter,
.community-event-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.community-poll-voter label {
  color: rgba(199, 210, 254, 0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.community-poll-voter select,
.community-event-form select,
.community-event-form input,
#community-member-select {
  background: rgba(8, 9, 16, 0.9);
  border: 1px solid rgba(221, 214, 254, 0.2);
  border-radius: 14px;
  color: var(--paper);
  color-scheme: dark;
  min-height: 42px;
  outline: none;
  padding: 0 13px;
}

.community-poll-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.community-poll-option {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(221, 214, 254, 0.12);
  border-radius: 18px;
  color: var(--paper);
  cursor: pointer;
  overflow: hidden;
  padding: 14px;
  position: relative;
  text-align: left;
}

.community-poll-option i {
  background: linear-gradient(90deg, rgba(196, 181, 253, 0.24), rgba(103, 232, 249, 0.18));
  inset: 0 auto 0 0;
  position: absolute;
  z-index: 0;
}

.community-poll-option span,
.community-poll-option strong,
.community-poll-option small {
  display: block;
  position: relative;
  z-index: 1;
}

.community-poll-option strong {
  font-size: 12px;
  margin: 5px 0;
}

.community-event-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.community-event-card {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px;
}

.community-event-card span,
.community-event-card strong,
.community-event-card small {
  display: block;
}

.community-event-card strong {
  color: var(--paper);
  font-size: 14px;
  margin: 4px 0;
}

.community-leader-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px 1fr auto;
  padding: 12px;
}

.community-leader-row > span {
  align-items: center;
  background: color-mix(in srgb, var(--member-color) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--member-color) 38%, transparent);
  border-radius: 999px;
  color: var(--member-color);
  display: flex;
  font-weight: 1000;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.community-leader-row strong,
.community-radar-card h3,
.community-radar-lists strong,
.community-vibe-result strong {
  color: var(--paper);
}

.community-leader-row em {
  color: #fde68a;
  font-style: normal;
  font-weight: 1000;
}

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

.community-affinity-card {
  padding: 14px;
}

.community-affinity-card div {
  align-items: center;
  color: rgba(243, 239, 230, 0.82);
  display: flex;
  font-size: 13px;
  font-weight: 850;
  gap: 8px;
}

.community-affinity-card div + div {
  margin-top: 6px;
}

.community-affinity-card div span {
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.community-affinity-card strong {
  color: #bbf7d0;
  display: block;
  font-family: "Newsreader", serif;
  font-size: 34px;
  margin-top: 12px;
}

.community-mission {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.community-mission input {
  accent-color: #c4b5fd;
  margin-top: 3px;
}

.community-mission strong,
.community-mission small {
  display: block;
}

.community-mission.done {
  opacity: 0.58;
}

.community-mission.done strong {
  text-decoration: line-through;
}

.community-debate-card,
.community-vibe-result,
.community-soft-empty {
  padding: 16px;
}

.community-debate-card p {
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: 25px;
  font-weight: 750;
  line-height: 1.18;
  margin: 0 0 12px;
}

.community-member-radar {
  display: grid;
  gap: 12px;
  grid-template-columns: 0.9fr 1.1fr;
}

.community-radar-card {
  border-color: color-mix(in srgb, var(--member-color) 30%, rgba(255, 255, 255, 0.08));
  padding: 18px;
}

.community-radar-card span {
  color: var(--member-color);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.community-radar-card h3 {
  font-size: 30px;
  margin: 4px 0 8px;
}

.community-radar-lists {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.community-radar-lists section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.community-radar-lists span {
  align-items: center;
  color: rgba(243, 239, 230, 0.82);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: space-between;
}

.community-radar-lists em {
  color: #fde68a;
  font-style: normal;
}

.community-vibe-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.community-vibe-result strong,
.community-vibe-result span {
  display: block;
}

.community-vibe-result strong {
  font-size: 18px;
  margin-bottom: 6px;
}

.community-empty {
  background: rgba(10, 11, 18, 0.78);
  border: 1px solid rgba(221, 214, 254, 0.18);
  border-radius: 30px;
  margin: 40px auto;
  max-width: 720px;
  padding: clamp(28px, 5vw, 52px);
}

.community-empty h1 {
  color: var(--paper);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 1000;
  line-height: 0.98;
}

.community-empty p {
  color: rgba(243, 239, 230, 0.72);
  font-weight: 750;
}

.community-empty a {
  color: #bae6fd;
  font-weight: 900;
}

@media (max-width: 980px) {
  .community-v2-hero,
  .community-member-radar {
    grid-template-columns: 1fr;
  }

  .community-v2-stats,
  .community-affinity-grid,
  .community-radar-lists {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-panel,
  .community-panel-wide {
    grid-column: span 12;
  }
}

@media (max-width: 620px) {
  .community-v2-shell {
    padding: 22px 16px 64px;
  }

  .community-v2-hero-copy {
    min-height: auto;
  }

  .community-v2-stats,
  .community-affinity-grid,
  .community-radar-lists,
  .community-event-row {
    grid-template-columns: 1fr;
  }

  .community-panel-head,
  .community-event-card {
    align-items: stretch;
    flex-direction: column;
  }
}
