/* ============================================================
   BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #04060f;
  --bg-soft: #080c18;
  --ink: #e9eef7;
  --ink-mid: rgba(233, 238, 247, 0.62);
  --ink-low: rgba(233, 238, 247, 0.34);
  --line: rgba(233, 238, 247, 0.1);

  --gold: #e8c88a;
  --gold-soft: #f4dfb3;
  --ice: #9db9d8;
  --ice-soft: #c6d7ea;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------  LOGIN ---------- */
.login {
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 70px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 44px 48px;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(232, 200, 138, 0.7);
  flex-shrink: 0;
}

/* card */
.card {
  padding: 38px 34px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 12px;
}
.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-mid);
  cursor: pointer;
  font-size: 12px;
}
.remember input {
  accent-color: var(--gold);
  cursor: pointer;
}
.forgot {
  color: var(--ice);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.forgot:hover {
  color: var(--ice-soft);
  text-decoration: underline;
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--ink-low);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.back {
  position: absolute;
  top: 28px;
  left: 34px;
  z-index: 6;
  padding: 6px 4px;
  background: none;
  border: none;
  color: var(--ink-low);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.back:hover {
  color: var(--gold-soft);
}

/* ============================================================
  CADASTRO
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 15, 0.85);
  backdrop-filter: blur(8px);
}

/* ===
   RESPONSIVO
   ===*/
@media (max-width: 900px) {
  body {
    overflow: auto;
  }
  .login {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 560px;
    padding: 90px 22px 40px;
  }
  .card {
    padding: 30px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
/* ============================================================
   BASE + TEMA (Luminova — Fraunces + Inter, dourado/gelo)
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500&family=Inter:wght@300;400;500;600&display=swap");

:root {
  --bg: #04060f;
  --bg-soft: #080c18;
  --panel: #0b1020;
  --panel-2: #0f1428;
  --ink: #e9eef7;
  --muted: rgba(233, 238, 247, 0.62);
  --muted-2: rgba(233, 238, 247, 0.34);
  --line: rgba(233, 238, 247, 0.1);

  --gold: #e8c88a;
  --gold-soft: #f4dfb3;
  --ice: #9db9d8;
  --ice-soft: #c6d7ea;

  --accent: var(--gold);
  --highlight: var(--ice);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --radius: 2px; /* bordas retas (não curvadas) */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   PROFILE HERO
   ============================================================ */
.profile-hero {
  border: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.6);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
}

.cover {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    110deg,
    #0a0718 0%,
    #241540 44%,
    #4d2f63 76%,
    #131830 100%
  );
}
.cover::before,
.cover::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cover::before {
  width: 420px;
  height: 420px;
  right: 10%;
  top: -290px;
  border: 1px solid rgba(232, 200, 138, 0.22);
  box-shadow:
    0 0 0 26px rgba(232, 200, 138, 0.03),
    0 0 0 58px rgba(232, 200, 138, 0.04),
    0 0 0 100px rgba(232, 200, 138, 0.03);
}
.cover::after {
  width: 240px;
  height: 240px;
  right: 18%;
  bottom: -210px;
  background: rgba(157, 185, 216, 0.22);
  box-shadow: 0 0 90px rgba(157, 185, 216, 0.5);
}

.cover[data-style="ocean"] {
  background: linear-gradient(
    110deg,
    #061229,
    #123a63 50%,
    #4a78a8 76%,
    #101838
  );
}
.cover[data-style="sunset"] {
  background: linear-gradient(
    110deg,
    #2a1030,
    #6c2752 53%,
    #b8607a 80%,
    #2c2352
  );
}
.cover[data-style="forest"] {
  background: linear-gradient(
    110deg,
    #0a1f21,
    #104a48 48%,
    #4a8a76 77%,
    #1e2450
  );
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.avatar-edit {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(232, 200, 138, 0.4);
  background: var(--bg);
  color: var(--gold-soft);
  font-size: 12px;
  border-radius: var(--radius);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.avatar-edit:hover {
  background: rgba(232, 200, 138, 0.15);
  color: #fff;
}
.status-dot {
  position: absolute;
  right: 6px;
  top: 6px;
  border: 2px solid var(--bg);
  width: 11px;
  height: 11px;
}
.level {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  background: rgba(232, 200, 138, 0.08);
  border: 1px solid rgba(232, 200, 138, 0.28);
  border-radius: var(--radius);
  padding: 4px 7px;
}
.handle {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.bio {
  font-size: 13px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.7;
  max-width: 620px;
}

.button-primary,
.button-secondary {
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.button-primary {
  background: linear-gradient(
    135deg,
    var(--gold-soft),
    var(--gold) 60%,
    var(--ice)
  );
  border: 0;
  color: #04060f;
  box-shadow: 0 8px 22px rgba(232, 200, 138, 0.18);
}
.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(232, 200, 138, 0.3);
}
.button-secondary {
  background: transparent;
  border: 1px solid rgba(157, 185, 216, 0.3);
  color: var(--ink);
}
.button-secondary:hover {
  border-color: rgba(232, 200, 138, 0.55);
  color: var(--gold-soft);
}
.tab {
  height: 50px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 2px;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.tab span {
  font-size: 9px;
  background: rgba(232, 200, 138, 0.1);
  border-radius: var(--radius);
  padding: 3px 5px;
  margin-left: 6px;
}
.tab.active {
  color: var(--gold-soft);
  border-color: var(--gold);
}
.tab:hover {
  color: #fff;
}
.text-button {
  color: var(--gold-soft);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.text-button:hover {
  color: #fff;
}
.tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  background: rgba(232, 200, 138, 0.08);
  border: 1px solid rgba(232, 200, 138, 0.2);
  border-radius: var(--radius);
  padding: 4px 6px;
}
.joined {
  font-size: 10px;
  color: #7ddcae;
  white-space: nowrap;
}
.blue {
  background: linear-gradient(
    145deg,
    rgba(120, 160, 220, 0.22),
    rgba(120, 160, 220, 0.05)
  );
  color: #a8c6ea;
}

.hidden {
  display: none !important;
}
.composer-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(232, 200, 138, 0.4);
  border-radius: var(--radius);
}

.posts-list {
  display: grid;
  gap: 10px;
}
.post-card {
  display: block;
  padding: 16px;
  background: rgba(11, 16, 32, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  transition: border-color 0.2s var(--ease);
  backdrop-filter: blur(10px);
}
.post-card:hover {
  border-color: rgba(232, 200, 138, 0.35);
}
.post-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  color: #04060f;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
}
.post-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.3vw, 26px);
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
@keyframes post-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   MODAIS
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 6, 15, 0.82);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop.open {
  display: flex;
}

.modal {
  position: relative;
  width: min(100%, 480px);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid rgba(232, 200, 138, 0.28);
  border-radius: var(--radius);
  padding: 26px;
  background: #080c18;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  color: var(--muted);
  font-size: 24px;
  transition: color 0.2s var(--ease);
}
.modal-close:hover {
  color: var(--gold-soft);
}
.modal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  margin: 8px 0;
}
.modal-intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 20px;
}
.modal form {
  display: grid;
  gap: 14px;
}
.modal label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal input:not([type="color"]),
.modal textarea,
.modal select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  border-color: rgba(232, 200, 138, 0.55);
  background: rgba(232, 200, 138, 0.04);
}
.modal textarea {
  resize: vertical;
}
.field-hint {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.55;
  margin-top: 2px;
  text-transform: none;
  letter-spacing: normal;
}
#pageBgInput {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  padding: 4px;
  cursor: pointer;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

/* ============================================================
   MODAL CONSTRUÇÃO
   ============================================================ */
.construction-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 15, 0.85);
  backdrop-filter: blur(12px);
}
.construction-backdrop.open {
  display: flex;
  animation: fade-in 0.2s ease-out;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.construction-card {
  position: relative;
  width: min(100%, 440px);
  padding: 28px 28px 26px;
  border: 1px solid rgba(232, 200, 138, 0.3);
  border-radius: var(--radius);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(232, 200, 138, 0.1),
      transparent 55%
    ),
    #080c18;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.7);
}
.construction-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 20px;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.construction-close:hover {
  border-color: rgba(232, 200, 138, 0.5);
  color: var(--gold-soft);
}

.construction-art {
  position: relative;
  width: 110px;
  height: 100px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}
.construction-orbit {
  position: absolute;
  border: 1px solid rgba(232, 200, 138, 0.5);
  border-radius: 50%;
  transform: rotate(-25deg);
}
.orbit-one {
  width: 100px;
  height: 46px;
}
.orbit-two {
  width: 72px;
  height: 86px;
  transform: rotate(42deg);
  border-color: rgba(157, 185, 216, 0.5);
}
.construction-star {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    var(--gold-soft),
    var(--gold) 60%,
    var(--ice)
  );
  color: #04060f;
  font-size: 26px;
  box-shadow: 0 0 30px rgba(232, 200, 138, 0.4);
  animation: construction-float 3s ease-in-out infinite;
}
.construction-spark {
  position: absolute;
  color: var(--gold-soft);
  font-size: 16px;
}
.spark-one {
  left: 4px;
  top: 20px;
}
.spark-two {
  right: 4px;
  bottom: 14px;
  color: var(--ice-soft);
}

.construction-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  margin: 10px 0;
}
.construction-card p {
  max-width: 340px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.construction-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 22px 0 10px;
}
.construction-progress span {
  display: block;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--ice));
  animation: construction-progress 2.8s ease-in-out infinite alternate;
}
.construction-caption {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--muted-2);
}
.construction-caption span {
  padding: 0 5px;
  color: var(--gold-soft);
}
.construction-ok {
  display: block;
  margin: 20px auto 0;
  min-width: 140px;
}

@keyframes construction-float {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}
@keyframes construction-progress {
  from {
    width: 22%;
  }
  to {
    width: 68%;
  }
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  z-index: 90;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #f2eaff;
  color: #04060f;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (min-width: 1500px) {
  .cover {
    height: 220px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 68px;
    padding: 22px 8px;
  }
  .cover {
    height: 175px;
  }
}
@media (max-width: 600px) {
  .sidebar {
    display: none;
  }
  .cover {
    height: 155px;
  }
  .bio {
    font-size: 11.5px;
  }
  .tab {
    white-space: nowrap;
    font-size: 10px;
  }
  .modal {
    padding: 22px 18px;
  }
  .composer-avatar {
    width: 32px;
    height: 32px;
  }
  .post-card {
    padding: 12px;
    gap: 9px;
  }
  .post-avatar {
    width: 32px;
    height: 32px;
  }
  .post-actions {
    gap: 12px;
  }
  .construction-card {
    padding: 24px 20px 22px;
  }
  .construction-card h2 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Correção: modal de cadastro visível quando aberto pelo JavaScript */
.modal.open {
  display: flex;
}

/* CORREÇÕES: rolagem do perfil e modal de edição */
body:has(.app-shell) {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
#settingsModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px;
}
#settingsModal.open {
  display: flex !important;
}
#settingsModal .modal {
  display: block;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  width: min(100%, 520px);
}
.post-card {
  border-radius: 16px;
  padding: 19px;
  background: rgba(15, 19, 35, 0.74);
  border-color: rgba(174, 151, 255, 0.13);
}
.post-card:hover {
  border-color: rgba(174, 151, 255, 0.34);
}
.post-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  padding-top: 11px;
  margin-top: 14px;
}
@media (max-width: 540px) {
  .composer-avatar {
    width: 34px;
    height: 34px;
  }
  .post-card {
    padding: 14px;
    gap: 9px;
  }
  .post-avatar {
    width: 34px;
    height: 34px;
  }
}

/* LumiNova social + community pages */
.ln-page {
  --ln-bg: #080b16;
  --ln-panel: rgba(19, 24, 43, 0.88);
  --ln-line: rgba(180, 190, 230, 0.13);
  --ln-text: #f3f4ff;
  --ln-muted: #9da6c2;
  --ln-accent: #b7a2ff;
  color: var(--ln-text);
  min-height: 100vh;
  background:
    radial-gradient(
      ellipse at 70% -10%,
      rgba(108, 82, 201, 0.2),
      transparent 40%
    ),
    #080b16;
  font-family: Inter, system-ui, sans-serif;
}
.ln-page * {
  box-sizing: border-box;
}
.ln-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  max-width: 1500px;
  margin: auto;
  min-height: 100vh;
}
.ln-content {
  padding: 30px clamp(18px, 4vw, 54px) 70px;
  min-width: 0;
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
}
.ln-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}
.ln-crumb {
  color: #9da6c2;
  font-size: 13px;
}
.ln-search {
  max-width: 330px;
  width: 100%;
  display: flex;
  gap: 9px;
  align-items: center;
  background: #12172a;
  border: 1px solid var(--ln-line);
  border-radius: 12px;
  padding: 10px 13px;
  color: #929cba;
}
.ln-search input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  width: 100%;
  font: inherit;
  font-size: 13px;
}
.ln-kicker {
  font-size: 10px;
  letter-spacing: 2.3px;
  color: #bba9ff;
  font-weight: 700;
}
.ln-title {
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  margin: 9px 0 12px;
  font-weight: 650;
}
.ln-subtitle {
  color: var(--ln-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 650px;
  font-size: 14px;
}
.ln-hero {
  padding: 30px;
  border: 1px solid var(--ln-line);
  border-radius: 23px;
  background:
    radial-gradient(
      ellipse at 95% 0%,
      rgba(142, 110, 255, 0.19),
      transparent 45%
    ),
    linear-gradient(135deg, #141a30, #0e1221);
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}
.ln-hero:after {
  content: "✦";
  position: absolute;
  right: 34px;
  top: 23px;
  color: #c4b5ff;
  opacity: 0.35;
  font-size: 65px;
}
.ln-hero > * {
  position: relative;
  z-index: 1;
}
.ln-panel {
  border: 1px solid var(--ln-line);
  background: var(--ln-panel);
  border-radius: 18px;
  overflow: hidden;
}
.ln-panel-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--ln-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ln-panel-head h2,
.ln-panel-head h3 {
  margin: 0;
  font-size: 15px;
}
.ln-muted {
  color: var(--ln-muted);
  font-size: 12px;
}
.ln-btn {
  border: 1px solid rgba(187, 168, 255, 0.35);
  border-radius: 11px;
  background: #b9a6ff;
  color: #151126;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}
.ln-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.ln-btn.ghost {
  background: transparent;
  color: #d9d1ff;
  border-color: var(--ln-line);
}
.ln-input:focus {
  border-color: #8d79e8;
}
.ln-post {
  padding: 19px 20px;
  border-bottom: 1px solid var(--ln-line);
}
.ln-post:last-child {
  border-bottom: 0;
}
.ln-post-head {
  display: flex;
  gap: 11px;
  align-items: center;
}
.ln-author {
  font-size: 13px;
  font-weight: 700;
}
.ln-handle {
  color: #8e98b7;
  font-size: 11px;
  margin-top: 3px;
}
.ln-post p {
  font-size: 13px;
  line-height: 1.75;
  color: #dce0f4;
  margin: 14px 0;
}
.ln-hashtag {
  color: #bcaaff;
  cursor: pointer;
}
.ln-post-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.ln-action {
  background: none;
  border: 0;
  color: #8f99b7;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}
.ln-action:hover,
.ln-action.liked {
  color: #c4aaff;
}
.ln-trend-list {
  padding: 5px 17px 15px;
}
.ln-mini-cta {
  margin: 0 16px 17px;
  padding: 15px;
  border-radius: 13px;
  background: rgba(158, 132, 255, 0.09);
  font-size: 12px;
  color: #c5c9e1;
  line-height: 1.6;
}
.ln-chip {
  border: 1px solid var(--ln-line);
  background: #11162a;
  color: #aeb6d0;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}
.ln-chip.active {
  background: #b7a2ff;
  color: #181329;
  border-color: #b7a2ff;
  font-weight: 700;
}
.ln-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ln-community-card {
  border: 1px solid var(--ln-line);
  border-radius: 18px;
  background: linear-gradient(
    150deg,
    rgba(26, 32, 57, 0.95),
    rgba(14, 18, 33, 0.95)
  );
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s;
  cursor: pointer;
}
.ln-community-card:hover {
  transform: translateY(-3px);
  border-color: rgba(188, 169, 255, 0.5);
}
.ln-card-art {
  height: 125px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(196, 176, 255, 0.3),
      transparent 32%
    ),
    linear-gradient(120deg, #30245c, #151a37);
}
.ln-card-art.blue {
  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(120, 184, 255, 0.3),
      transparent 32%
    ),
    linear-gradient(120deg, #183a5e, #151a37);
}
.ln-card-art.rose {
  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(255, 150, 201, 0.3),
      transparent 32%
    ),
    linear-gradient(120deg, #562849, #151a37);
}
.ln-card-art.green {
  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(110, 240, 199, 0.25),
      transparent 32%
    ),
    linear-gradient(120deg, #174a49, #151a37);
}
.ln-card-symbol {
  font-size: 32px;
  color: #e1d9ff;
}
.ln-card-tag {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #d0c5ff;
}
.ln-card-body {
  padding: 18px;
}
.ln-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ln-card-title h3 {
  margin: 0;
  font-size: 16px;
}
.ln-card-body p {
  color: var(--ln-muted);
  font-size: 12px;
  line-height: 1.65;
  min-height: 40px;
}
.ln-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #8d98b6;
  font-size: 11px;
}
.ln-card-foot strong {
  color: #c8baff;
  font-size: 11px;
}
.ln-empty {
  padding: 30px;
  text-align: center;
  color: var(--ln-muted);
  font-size: 13px;
}
.ln-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 13, 0.76);
  backdrop-filter: blur(9px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 99999;
}
.ln-modal-backdrop.open {
  display: flex;
}
.ln-modal {
  width: min(100%, 520px);
  max-height: 90vh;
  overflow: auto;
  background: #11172b;
  border: 1px solid rgba(187, 168, 255, 0.25);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 30px 100px #0008;
}
.ln-modal h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.ln-modal p {
  color: var(--ln-muted);
  font-size: 13px;
  line-height: 1.65;
}
.ln-field {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}
.ln-field label {
  font-size: 11px;
  color: #aeb7d2;
}
.ln-input,
.ln-field textarea,
.ln-field select {
  width: 100%;
  background: #090e1d;
  border: 1px solid var(--ln-line);
  border-radius: 10px;
  padding: 12px;
  color: #f5f2ff;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.ln-field textarea {
  min-height: 90px;
  resize: vertical;
}
.ln-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}
.ln-notice {
  font-size: 11px;
  color: #8e99b7;
  line-height: 1.6;
  margin-top: 12px;
}
@media (max-width: 900px) {
  .ln-layout {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .ln-mini-cta {
    margin: 0;
    padding: 14px;
  }
}
@media (max-width: 600px) {
  .ln-layout {
    display: block;
  }
  .ln-content {
    padding: 20px 14px 50px;
  }
  .ln-top {
    margin-bottom: 22px;
  }
  .ln-search {
    max-width: 190px;
  }
  .ln-hero {
    padding: 23px;
  }
  .ln-community-grid {
    grid-template-columns: 1fr;
  }
  .ln-title {
    letter-spacing: -1px;
  }
}

/* Harmonização das páginas Geral/Comunidades com o login e o perfil originais.
   Escopo limitado às páginas ln-page; perfil.html não é redesenhado. */
.ln-page {
  --ln-bg: #04060f;
  --ln-panel: rgba(8, 12, 24, 0.92);
  --ln-line: rgba(233, 238, 247, 0.12);
  --ln-text: #e9eef7;
  --ln-muted: rgba(233, 238, 247, 0.62);
  --ln-accent: #e8c88a;
  position: relative;
  isolation: isolate;
  background: transparent;
  color: var(--ink, #e9eef7);
  font-family: var(--sans, Inter, system-ui, sans-serif);
}
.ln-page .ln-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  max-width: 1500px;
  margin: 0 auto;
  min-height: 100vh;
}
.ln-page .ln-profile-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(233, 238, 247, 0.1);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: rgba(4, 6, 15, 0.78);
  backdrop-filter: blur(18px);
}
.ln-page .ln-profile-sidebar .online-dot {
  width: 6px;
  height: 6px;
  background: #9db9d8;
  margin-left: auto;
}
.ln-page .ln-content {
  max-width: 1150px;
  padding: 30px clamp(18px, 4vw, 54px) 70px;
}
.ln-page .ln-top {
  margin-bottom: 34px;
}
.ln-page .ln-kicker {
  color: var(--gold);
  letter-spacing: 2px;
}
.ln-page .ln-hero {
  border-radius: 0;
  border-color: var(--ln-line);
  background:
    radial-gradient(
      ellipse at 95% 0%,
      rgba(232, 200, 138, 0.1),
      transparent 45%
    ),
    linear-gradient(135deg, #0b1020, #080c18);
}
.ln-page .ln-hero:after {
  color: var(--gold);
  opacity: 0.25;
}
.ln-page .ln-panel,
.ln-page .ln-community-card,
.ln-page .ln-modal,
.ln-page .ln-search,
.ln-page .ln-input,
.ln-page .ln-field textarea,
.ln-page .ln-field select,
.ln-page .ln-btn,
.ln-page .ln-chip,
.ln-page .ln-mini-cta {
  border-radius: var(--a-r-md, 16px);
}
.ln-page .ln-panel {
  border-color: var(--ln-line);
  background: rgba(8, 12, 24, 0.91);
}
.ln-page .ln-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: #14120d;
}
.ln-page .ln-btn.ghost {
  background: transparent;
  border-color: rgba(232, 200, 138, 0.35);
  color: var(--gold-soft);
}
.ln-page .ln-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.ln-page .ln-chip {
  background: #0b1020;
  color: var(--ln-muted);
}
.ln-page .ln-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #14120d;
}
.ln-page .ln-hashtag,
.ln-page .ln-card-foot strong,
.ln-page .ln-card-tag {
  color: var(--gold-soft);
}
.ln-page .ln-card-art {
  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(232, 200, 138, 0.2),
      transparent 32%
    ),
    linear-gradient(120deg, #28251f, #0b1020);
}
.ln-page .ln-card-art.blue {
  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(157, 185, 216, 0.24),
      transparent 32%
    ),
    linear-gradient(120deg, #172b40, #0b1020);
}
.ln-page .ln-card-art.rose {
  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(232, 200, 138, 0.18),
      transparent 32%
    ),
    linear-gradient(120deg, #3c2a31, #0b1020);
}
.ln-page .ln-card-art.green {
  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(157, 185, 216, 0.2),
      transparent 32%
    ),
    linear-gradient(120deg, #1b3436, #0b1020);
}
.ln-page .ln-modal {
  background: #080c18;
  border-color: rgba(232, 200, 138, 0.24);
}
.ln-page .ln-input,
.ln-page .ln-field textarea,
.ln-page .ln-field select {
  background: #04060f;
  border-color: var(--ln-line);
  color: #e9eef7;
}
@media (max-width: 900px) {
  .ln-page .ln-layout {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .ln-page .ln-profile-sidebar {
    align-items: center;
    padding: 25px 10px;
  }
}
@media (max-width: 600px) {
  .ln-page .ln-layout {
    display: block;
  }
  .ln-page .ln-profile-sidebar {
    position: sticky;
    z-index: 100;
    top: 0;
    height: auto;
    padding: 8px 10px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--ln-line);
  }
  .ln-page .ln-content {
    padding: 20px 14px 50px;
  }
  .ln-page .ln-top {
    margin-bottom: 22px;
  }
  .ln-page .ln-search {
    max-width: 190px;
  }
  .ln-page .ln-community-grid {
    grid-template-columns: 1fr;
  }
}

/* LumiNova — comunidade funcional, layout com rolagem e cantos retos */
.ln-page,
.ln-page body {
  min-height: 100%;
  height: auto;
}
.ln-page .ln-layout {
  min-height: 100vh;
  height: auto;
  align-items: stretch;
  overflow: visible;
}
.ln-page .ln-content {
  min-height: 100vh;
  height: auto;
  overflow: visible;
  min-width: 0;
  padding-bottom: 72px;
}
.ln-page .ln-profile-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
}
.ln-page .ln-community-card,
.ln-page .ln-btn,
.ln-page .ln-chip,
.ln-page .ln-panel,
.ln-page .ln-modal,
.ln-page .ln-input,
.ln-page input,
.ln-page textarea,
.ln-page select,
.ln-page .ln-post {
  border-radius: var(--a-r-md, 16px);
}
.ln-page .ln-community-grid {
  align-items: stretch;
  padding-bottom: 40px;
}
.ln-page .ln-community-card {
  cursor: pointer;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.ln-page .ln-community-card:hover {
  transform: translateY(-3px);
}
.ln-page .ln-btn:not(.ghost) {
  background: var(--community-accent, #8b5cf6);
  border-color: var(--community-accent, #8b5cf6);
}
.ln-page .ln-empty {
  padding: 28px;
}
@media (max-width: 760px) {
  .ln-page .ln-profile-sidebar {
    position: relative;
    height: auto;
  }
}

/* Correções de rolagem e personalização por comunidade */
html,
body.ln-page {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
body.ln-page {
  position: relative;
}
.ln-page .ln-layout,
.ln-page .ln-content {
  height: auto !important;
  min-height: 0;
  max-height: none !important;
  overflow: visible !important;
}
.ln-page .ln-layout {
  align-items: start !important;
}
.ln-page .ln-profile-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
}
@media (max-width: 760px) {
  .ln-page .ln-profile-sidebar {
    position: relative;
    max-height: none;
    overflow: visible;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   CORREÇÕES (sem alterar o layout existente)
   ============================================================ */

/* Cadastro abre como sobreposição fixa sobre a tela.
   A regra genérica .modal (position: relative) estava sobrescrevendo o overlay. */
#signup.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: auto;
  max-width: none;
  max-height: none;
  overflow-y: auto;
  padding: 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: rgba(4, 6, 15, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
#signup.modal.open {
  display: flex;
}
.widget-options {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 12px 0;
}
.widget-options legend {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  padding: 0 6px;
}
.widget-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 13px;
}
.widget-options input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  accent-color: var(--gold);
}

#accentInput {
  width: 100%;
  height: 40px;
  padding: 4px;
}
.sidebar {
  height: 100vh;
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .sidebar {
    height: auto;
    min-height: 0;
    position: relative;
    top: auto;
  }
}

/* LUMINOVA — sidebar unificada: todas as páginas seguem o menu do perfil */
.ln-page .ln-layout { grid-template-columns: 260px minmax(0, 1fr); }
.ln-page .ln-profile-sidebar,
.pp-layout > .ln-profile-sidebar {
  width: 260px; box-sizing: border-box; position: sticky; top: 0; height: 100vh;
  align-self: start; display: flex; flex-direction: column; gap: 0;
  padding: 24px 14px 18px; overflow-y: auto; overflow-x: hidden;
  color: #f5f6fa; background: rgba(7,11,24,.96);
  border-right: 1px solid rgba(232,200,138,.12); border-bottom: 0;
  backdrop-filter: blur(18px); z-index: 40;
}
.ln-page .ln-profile-sidebar .online-dot,
.pp-layout > .ln-profile-sidebar .online-dot { width:7px; height:7px; flex:0 0 7px; border-radius:50%; background:#4ade80; margin-left:auto; }
@media (max-width:900px) {
  .ln-page .ln-layout { grid-template-columns:minmax(0,1fr); }
  .ln-page .ln-profile-sidebar,
  .pp-layout > .ln-profile-sidebar { position:relative; top:auto; width:100%; height:auto; max-height:none; padding:14px 16px; }
  .ln-page .ln-content { max-width:none; }
}

/* LUMINOVA — sidebar padronizada com o visual da página de perfil */
.ln-page .ln-layout { grid-template-columns: 260px minmax(0, 1fr); }
.ln-page .ln-profile-sidebar {
  width:260px; box-sizing:border-box; padding:24px 18px; gap:0;
  background:rgba(7,11,24,.96); border-right:1px solid rgba(232,200,138,.13);
  box-shadow:inset -1px 0 rgba(255,255,255,.015);
}
@media (max-width:900px) {
  .ln-page .ln-layout { display:block; }
  .ln-page .ln-profile-sidebar { position:relative; width:100%; height:auto; padding:14px 16px 10px; gap:10px; border-right:0; border-bottom:1px solid rgba(232,200,138,.13); }
}

/* ============================================================
   LUMINOVA — sidebar compartilhada (todas as páginas antigas)
   Mantém a navegação funcional, mas aproxima o visual do perfil.
   ============================================================ */
.sidebar,
.ln-profile-sidebar {
  background: rgba(7, 11, 24, .96) !important;
  border-right: 1px solid rgba(232, 200, 138, .14) !important;
  backdrop-filter: blur(18px);
}

/* LUMINOVA — camada comum de acessibilidade e responsividade */
:root { color-scheme: dark; }
html { min-width: 320px; scroll-behavior: smooth; }
body { overflow-x: clip; }
img, video, canvas, svg { max-width: 100%; }
input, textarea, select, button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #22c3f5 !important; outline-offset: 3px; }
.lumi-mobile-menu-toggle { display:none; }
.lumi-chat-mobile-nav { display:none; }
@media (max-width: 760px) {
  .ln-layout { display:block !important; width:100%; min-width:0; }
  .ln-profile-sidebar, .sidebar.ln-profile-sidebar {
    position:relative !important; inset:auto !important; z-index:1000 !important;
    width:100% !important; height:auto !important; min-height:0 !important;
    padding:10px 14px !important; border-right:0 !important; border-bottom:1px solid rgba(232,200,138,.22) !important;
    display:flex !important; flex-direction:column !important; gap:8px !important;
    background:rgba(5,7,19,.97) !important; backdrop-filter:blur(18px);
  }
  .lumi-mobile-menu-toggle { display:inline-flex; align-items:center; justify-content:center; align-self:flex-start; min-height:42px; padding:8px 13px; border:1px solid rgba(232,200,138,.35); color:#f3dcae; background:#111327; cursor:pointer; }
  .ln-content, .chat-page, .public-profile-wrap, main { min-width:0; max-width:100%; }
  .ln-content { padding:16px !important; }
  .ln-top { flex-wrap:wrap; gap:10px; }
  .ln-search { min-width:0; width:100%; }
  .ln-search input { min-width:0; width:100%; }
  .ln-community-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)) !important; }
  .chat-shell { grid-template-columns:minmax(0,1fr) !important; min-height:0 !important; }
  .chat-list { border-right:0 !important; border-bottom:1px solid #272b3c; }
  .chat-main { min-height:48vh; padding:12px !important; }
  .chat-page { padding:12px !important; }
  .lumi-chat-mobile-nav { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 14px; }
  .lumi-chat-mobile-nav a { display:inline-flex; align-items:center; min-height:42px; padding:8px 11px; border:1px solid #34334b; color:#e9e6f6; text-decoration:none; background:#0c1024; }
  .public-profile-wrap { padding:14px 12px 40px !important; }
  .pp-profile-row { flex-wrap:wrap; padding:0 16px 18px !important; gap:12px !important; }
  .pp-bio { padding:0 16px 18px !important; }
  .pp-stats { flex-wrap:wrap; }
  .ln-modal, [role="dialog"] { max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* LUMINOVA — sidebar compartilhada: mesma linguagem visual do perfil */
:root {
  --lumi-sidebar-bg: #080c18;
  --lumi-sidebar-panel: #111622;
  --lumi-sidebar-border: rgba(226, 197, 139, .18);
  --lumi-sidebar-text: #9bb5d1;
  --lumi-sidebar-gold: #e7c783;
}
.ln-profile-sidebar, .sidebar, [data-testid="app-sidebar"] {
  background: var(--lumi-sidebar-bg) !important;
  color: var(--lumi-sidebar-text);
  border-right: 1px solid rgba(155,181,209,.12) !important;
}
.lumi-mobile-menu-toggle { display:none; }
@media (max-width: 760px) {
  .lumi-mobile-menu-toggle { display:block; width:100%; min-height:44px; margin-bottom:12px; }
}
