
/* ---------- tokens de gel e cromo ---------- */
html[data-theme] {
  --gel-blue: linear-gradient(180deg, #c3f1ff 0%, #5ccaff 18%, #1ea2ec 48%, #0577cf 52%, #1a9ae8 80%, #5fd3ff 100%);
  --gel-green: linear-gradient(180deg, #e7ffb8 0%, #9be34c 18%, #4fbf1f 48%, #2a9a0e 52%, #45b41d 80%, #9be84a 100%);
  --gel-pink: linear-gradient(180deg, #ffd8ec 0%, #ff8fc8 22%, #ec4f9d 50%, #cc2d80 52%, #ff79bd 100%);
  --chrome: linear-gradient(180deg, #ffffff 0%, #dbe7f2 22%, #a9bdd2 48%, #8ea6bf 52%, #d7e5f2 82%, #ffffff 100%);
  --chrome-dark: linear-gradient(180deg, #4a7ab8 0%, #24508c 48%, #163e72 52%, #2d63a2 100%);
  --chrome-edge: #6f8eb0;
}

/* ---------- janelas: vidro + moldura dupla + barra de título em gel ---------- */
html[data-theme] .l3-win {
  border: 1px solid #fff; border-radius: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(236,248,255,.78) 45%, rgba(214,240,255,.72) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: 0 0 0 1px rgba(18,95,180,.55), 0 0 0 4px rgba(255,255,255,.55), 0 0 0 5px rgba(18,95,180,.35),
              inset 0 1px 0 #fff, inset 0 0 22px rgba(120,210,255,.25), 0 16px 36px -14px rgba(0,50,120,.6), 0 0 34px -10px rgba(40,220,255,.55);
}
html[data-theme] .l3-win::before {
  opacity: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.7) 0, rgba(255,255,255,.15) 34px, transparent 35px),
              linear-gradient(115deg, rgba(255,255,255,.32) 0 16%, transparent 16.2% 100%);
}
html[data-theme] .l3-win-h {
  min-height: 34px; color: #fff; border-bottom: 1px solid #0b5fae; letter-spacing: .14em; font-size: 12px;
  background: var(--gel-blue); text-shadow: 0 1px 1px rgba(0,40,100,.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(255,255,255,.35);
}
html[data-theme] .l3-win-h::before {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #7dffb0 40%, #1fb24a 75%); box-shadow: 0 0 8px #7dffb0, 0 0 0 1px rgba(0,60,20,.5);
}
html[data-theme="dark"] .l3-win {
  border-color: rgba(140,230,255,.7);
  background: linear-gradient(180deg, rgba(20,60,120,.84) 0%, rgba(8,32,72,.82) 60%, rgba(6,24,56,.86) 100%);
  box-shadow: 0 0 0 1px rgba(60,240,255,.55), 0 0 0 4px rgba(10,40,90,.6), 0 0 0 5px rgba(60,240,255,.3),
              inset 0 1px 0 rgba(170,240,255,.45), 0 18px 40px -14px rgba(0,0,0,.85), 0 0 36px -8px rgba(60,240,255,.5);
}
html[data-theme="dark"] .l3-win::before {
  background: linear-gradient(180deg, rgba(160,235,255,.22) 0, rgba(160,235,255,.05) 34px, transparent 35px),
              linear-gradient(115deg, rgba(160,235,255,.08) 0 16%, transparent 16.2%);
}
/* moldura cromada (player dos anos 2000) para o painel de destaque */
.l3-chrome { padding: 7px; background: var(--chrome); border: 1px solid var(--chrome-edge); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255,255,255,.7), 0 14px 32px -14px rgba(0,40,100,.6), 0 0 30px -8px rgba(40,220,255,.6); }
html[data-theme="dark"] .l3-chrome { background: var(--chrome-dark); border-color: #6fd0ff; }
.l3-chrome > .l3-win { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(18,95,180,.6); }

/* ---------- botões em gel ---------- */
html[data-theme] .l3-btn, html[data-theme] .ln-btn {
  border-radius: 2px; border: 1px solid #0a5aa8; background: var(--gel-blue); color: #fff; font-weight: 800;
  text-shadow: 0 1px 1px rgba(0,40,100,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.25), inset 0 -8px 12px -6px rgba(0,60,140,.45),
              0 3px 8px -3px rgba(0,50,120,.7), 0 0 14px -4px rgba(40,200,255,.7);
}
html[data-theme] .l3-btn:hover, html[data-theme] .ln-btn:hover {
  filter: brightness(1.08) saturate(1.1);
  box-shadow: inset 0 1px 0 #fff, inset 0 -8px 12px -6px rgba(0,60,140,.45), 0 4px 10px -3px rgba(0,50,120,.7), 0 0 22px -2px rgba(40,220,255,.9);
}
html[data-theme] .l3-btn.go { background: var(--gel-green); border-color: #226b0c; text-shadow: 0 1px 1px rgba(10,60,0,.7); box-shadow: inset 0 1px 0 #fff, inset 0 -8px 12px -6px rgba(20,90,0,.45), 0 3px 8px -3px rgba(20,80,0,.6), 0 0 16px -4px rgba(120,255,80,.8); }
html[data-theme] .l3-btn.danger { background: var(--gel-pink); border-color: #8c1650; text-shadow: 0 1px 1px rgba(90,0,40,.7); }
html[data-theme] .l3-btn.ghost, html[data-theme] .ln-btn.ghost { background: var(--chrome); color: #0c3a6a; border-color: var(--chrome-edge); text-shadow: 0 1px 0 #fff; box-shadow: inset 0 1px 0 #fff, 0 2px 6px -3px rgba(0,40,100,.6); }
html[data-theme="dark"] .l3-btn.ghost, html[data-theme="dark"] .ln-btn.ghost { background: var(--chrome-dark); color: #e8f7ff; text-shadow: 0 1px 1px #000; border-color: #6fd0ff; }

/* ---------- chips de vidro ---------- */
html[data-theme] .l3-chip, html[data-theme] .ln-chip {
  border-radius: 2px; border: 1px solid rgba(18,95,180,.45); color: #0c3a6a;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(220,242,255,.85) 50%, rgba(196,232,255,.9) 52%, rgba(235,248,255,.95));
  box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(0,50,120,.2);
}
html[data-theme] .l3-chip[aria-pressed="true"], html[data-theme] .l3-chip.on, html[data-theme] .ln-chip.active {
  background: var(--gel-blue); color: #fff; border-color: #0a5aa8; text-shadow: 0 1px 1px rgba(0,40,100,.6);
}
html[data-theme] .l3-chip[aria-pressed="true"]::before { color: #fff; }
html[data-theme="dark"] .l3-chip, html[data-theme="dark"] .ln-chip {
  color: #e3f4ff; border-color: rgba(110,220,255,.45);
  background: linear-gradient(180deg, rgba(60,110,180,.7), rgba(20,50,100,.75) 50%, rgba(12,38,80,.8) 52%, rgba(30,70,130,.75));
  box-shadow: inset 0 1px 0 rgba(170,240,255,.35);
}

/* ---------- títulos com brilho ---------- */
html[data-theme="light"] .l3-head h1, html[data-theme="light"] .lp-title {
  color: #0a4fa6; text-shadow: 0 1px 0 #fff, 0 2px 0 rgba(255,255,255,.6), 0 0 22px rgba(255,255,255,.95), 0 6px 18px rgba(0,60,140,.25);
}
html[data-theme="dark"] .l3-head h1, html[data-theme="dark"] .lp-title { color: #eafaff; text-shadow: 0 0 18px rgba(60,240,255,.7), 0 2px 0 rgba(0,0,0,.4); }
html[data-theme="light"] .l3-head p, html[data-theme="light"] .lp-lead { color: #0c3a6a; text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 0 12px rgba(255,255,255,.9); font-weight: 600; }
html[data-theme] .l3-head { position: relative; padding: 18px 22px; background: linear-gradient(90deg, rgba(255,255,255,.62), rgba(255,255,255,.15) 70%, transparent); border-left: 4px solid #1ea2ec; }
html[data-theme="dark"] .l3-head { background: linear-gradient(90deg, rgba(10,40,90,.72), rgba(10,40,90,.2) 70%, transparent); border-left-color: #3ff3ff; }
html[data-theme="light"] .lp-hero-copy { padding: 22px 24px; background: linear-gradient(100deg, rgba(255,255,255,.86), rgba(240,250,255,.74)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid #fff; border-left: 4px solid #1ea2ec; box-shadow: 0 0 0 1px rgba(18,95,180,.35); }
html[data-theme="dark"] .lp-hero-copy { padding: 22px 24px; background: linear-gradient(100deg, rgba(6,24,56,.86), rgba(6,24,56,.72)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-left: 4px solid #3ff3ff; }

/* ---------- cards ---------- */
html[data-theme] .l3-card { border: 1px solid #fff; border-radius: 2px; background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(225,244,255,.86)); box-shadow: 0 0 0 1px rgba(18,95,180,.45), 0 10px 22px -12px rgba(0,50,120,.6); }
html[data-theme] .l3-card:hover { box-shadow: 0 0 0 1px #1ea2ec, 0 0 22px -4px rgba(40,220,255,.85), 0 14px 26px -12px rgba(0,50,120,.6); }
html[data-theme] .l3-card-cover { position: relative; height: 92px; }
html[data-theme] .l3-card-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.55), transparent 50%); }
html[data-theme="dark"] .l3-card { border-color: rgba(140,230,255,.6); background: linear-gradient(180deg, rgba(20,60,120,.92), rgba(8,30,70,.92)); }

/* ---------- campos ---------- */
html[data-theme] .l3-field input, html[data-theme] .l3-field select, html[data-theme] .l3-field textarea, html[data-theme] .l3-input {
  border-radius: 2px; border: 1px solid #7fa6cc; background: linear-gradient(180deg, #eef7ff, #fff 40%); box-shadow: inset 0 2px 3px rgba(0,40,100,.18);
}
html[data-theme="dark"] .l3-field input, html[data-theme="dark"] .l3-field select, html[data-theme="dark"] .l3-field textarea, html[data-theme="dark"] .l3-input {
  background: linear-gradient(180deg, #06183a, #0b2550 40%); border-color: #3c7cc0; color: #e3f1ff;
}

/* ---------- abas de entrar/criar conta ---------- */
html[data-theme] .lp-switch { border: 1px solid var(--chrome-edge); background: var(--chrome); padding: 3px; gap: 3px; }
html[data-theme] .lp-switch button { border-radius: 2px; color: #0c3a6a; text-shadow: 0 1px 0 #fff; }
html[data-theme] .lp-switch button[aria-selected="true"] { background: var(--gel-blue); color: #fff; text-shadow: 0 1px 1px rgba(0,40,100,.7); box-shadow: inset 0 1px 0 #fff; }
html[data-theme="dark"] .lp-switch { background: var(--chrome-dark); border-color: #6fd0ff; }
html[data-theme="dark"] .lp-switch button { color: #e3f4ff; text-shadow: none; }

/* ---------- landing: orbes de vidro e etiquetas ---------- */
html[data-theme] .lp-ico {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); color: #fff; font-size: 22px; text-shadow: 0 1px 2px rgba(0,40,100,.8);
  background: radial-gradient(circle at 34% 28%, #fff 0 8%, #8fe3ff 22%, #1ea2ec 60%, #0b5fae 100%);
  box-shadow: inset 0 -6px 12px rgba(0,40,120,.45), 0 6px 14px -6px rgba(0,60,140,.7), 0 0 18px -4px rgba(60,220,255,.8);
}
html[data-theme] .lp-feat:nth-child(2) .lp-ico { background: radial-gradient(circle at 34% 28%, #fff 0 8%, #ffd0ea 22%, #ec4f9d 60%, #9c1d5f 100%); }
html[data-theme] .lp-feat:nth-child(3) .lp-ico { background: radial-gradient(circle at 34% 28%, #fff 0 8%, #d9ffb0 22%, #4fbf1f 60%, #1f6d0b 100%); }
html[data-theme] .lp-feat:nth-child(4) .lp-ico { background: radial-gradient(circle at 34% 28%, #fff 0 8%, #fff2b0 22%, #f5a300 60%, #9a5a00 100%); }
html[data-theme] .lp-orbit li { border-radius: 2px; color: #0c3a6a; font-weight: 700; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(210,240,255,.85)); border: 1px solid rgba(18,95,180,.4); box-shadow: inset 0 1px 0 #fff; }
html[data-theme="dark"] .lp-orbit li { color: #e3f4ff; background: rgba(10,40,90,.75); border-color: rgba(110,220,255,.45); }
html[data-theme] .lp-brand { color: #fff; text-shadow: 0 1px 2px rgba(0,40,100,.8), 0 0 14px rgba(60,220,255,.8); }
html[data-theme] .lp-nav a { color: #fff; text-shadow: 0 1px 2px rgba(0,40,100,.8); }
html[data-theme] .lp-nav a:hover { background: var(--gel-blue); border-color: #0a5aa8; color: #fff; }
html[data-theme] .l3-foot { color: #fff; text-shadow: 0 1px 2px rgba(0,30,80,.9); font-weight: 700; }

/* ---------- navegação lateral ---------- */
html[data-theme] .lsb {
  border-radius: 2px; border: 1px solid #fff;
  box-shadow: 0 0 0 1px rgba(18,95,180,.6), 0 0 0 4px rgba(255,255,255,.5), 0 0 0 5px rgba(18,95,180,.35), 0 16px 36px -14px rgba(0,50,120,.7), 0 0 30px -10px rgba(40,220,255,.6);
}
html[data-theme] .lsb-brand, html[data-theme] .lsb-topbar { background: var(--gel-blue); }
html[data-theme] .lsb-link[aria-current="page"] { background: var(--gel-blue); border-color: #0a5aa8; color: #fff; text-shadow: 0 1px 1px rgba(0,40,100,.7); }
html[data-theme] .lsb-btn, html[data-theme] .lsb-theme { background: var(--chrome); color: #0c3a6a; border-color: var(--chrome-edge); }
html[data-theme="dark"] .lsb-btn, html[data-theme="dark"] .lsb-theme { background: var(--chrome-dark); color: #e8f7ff; border-color: #6fd0ff; }

/* ---------- posts do feed como pequenas janelas ---------- */
html[data-theme] .ln-post { border-radius: 2px; border: 1px solid #fff; background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(232,247,255,.85)); box-shadow: 0 0 0 1px rgba(18,95,180,.35), 0 8px 18px -12px rgba(0,50,120,.6); }
html[data-theme="dark"] .ln-post { border-color: rgba(140,230,255,.45); background: linear-gradient(180deg, rgba(18,52,108,.9), rgba(8,30,70,.9)); }

/* ---------- painéis das páginas antigas com o mesmo vidro das janelas ---------- */
html[data-theme] .ln-page .ln-panel,
html[data-theme] .ln-page .ln-community-card,
html[data-theme] .ln-page .ln-real-card,
html[data-theme] .ln-page .ln-hero,
html[data-theme] .chat-list,
html[data-theme] .chat-main,
html[data-theme] .x-card,
html[data-theme] .x-post,
html[data-theme] .pp-card,
html[data-theme] .pp-person,
html[data-theme] .tw-feed,
html[data-theme] .chat-shell {
  border: 1px solid #fff; border-radius: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(236,248,255,.76) 45%, rgba(214,240,255,.7) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: 0 0 0 1px rgba(18,95,180,.55), 0 0 0 4px rgba(255,255,255,.5), 0 0 0 5px rgba(18,95,180,.32),
              inset 0 1px 0 #fff, 0 16px 34px -14px rgba(0,50,120,.6), 0 0 30px -10px rgba(40,220,255,.5);
}
html[data-theme="dark"] .ln-page .ln-panel,
html[data-theme="dark"] .ln-page .ln-community-card,
html[data-theme="dark"] .ln-page .ln-real-card,
html[data-theme="dark"] .ln-page .ln-hero,
html[data-theme="dark"] .chat-list,
html[data-theme="dark"] .chat-main,
html[data-theme="dark"] .x-card,
html[data-theme="dark"] .x-post,
html[data-theme="dark"] .pp-card,
html[data-theme="dark"] .pp-person,
html[data-theme="dark"] .tw-feed,
html[data-theme="dark"] .chat-shell {
  border-color: rgba(140,230,255,.7);
  background: linear-gradient(180deg, rgba(20,60,120,.84) 0%, rgba(8,32,72,.82) 60%, rgba(6,24,56,.86) 100%);
  box-shadow: 0 0 0 1px rgba(60,240,255,.55), 0 0 0 4px rgba(10,40,90,.6), 0 0 0 5px rgba(60,240,255,.3), 0 18px 40px -14px rgba(0,0,0,.85), 0 0 36px -8px rgba(60,240,255,.45);
}
html[data-theme] .ln-page .ln-panel-head, html[data-theme] .tw-head {
  background: var(--gel-blue); color: #fff; border-bottom: 1px solid #0b5fae; text-shadow: 0 1px 1px rgba(0,40,100,.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(255,255,255,.35);
}
html[data-theme] .ln-page .ln-panel-head h2, html[data-theme] .ln-page .ln-panel-head h3, html[data-theme] .tw-head h1 { color: #fff; text-shadow: 0 1px 1px rgba(0,40,100,.75); }

/* feed: cada publicação é uma janelinha de vidro separada */
html[data-theme] .tw-feed { background: transparent; box-shadow: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme] .tw-feed > .tw-head, html[data-theme] .tw-feed > .tw-compose, html[data-theme] .tw-feed > .tw-guest {
  border: 1px solid #fff; background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(225,244,255,.8)); box-shadow: 0 0 0 1px rgba(18,95,180,.45); margin-bottom: 12px;
}
html[data-theme] .tw-feed > .tw-head { background: var(--gel-blue); margin-bottom: 0; }
html[data-theme="dark"] .tw-feed > .tw-compose, html[data-theme="dark"] .tw-feed > .tw-guest { border-color: rgba(140,230,255,.6); background: linear-gradient(180deg, rgba(20,60,120,.88), rgba(8,30,70,.88)); }
html[data-theme] #generalFeed { display: grid; gap: 14px; padding: 4px 6px 6px; }
html[data-theme] #generalFeed .ln-post {
  position: relative; padding: 14px 16px 6px; border: 1px solid #fff; border-radius: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(232,247,255,.88));
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 0 0 1px rgba(18,95,180,.45), 0 0 0 3px rgba(255,255,255,.45), 0 10px 22px -12px rgba(0,50,120,.65);
  transition: box-shadow .15s, transform .15s;
}
html[data-theme] #generalFeed .ln-post::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 26px; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.75), transparent); }
html[data-theme] #generalFeed .ln-post:last-child { border-bottom: 1px solid #fff; }
html[data-theme] #generalFeed .ln-post:hover { transform: translateY(-1px); background: linear-gradient(180deg, #fff, rgba(232,247,255,.92)); box-shadow: 0 0 0 1px #1ea2ec, 0 0 0 3px rgba(255,255,255,.6), 0 0 24px -4px rgba(40,220,255,.85), 0 12px 24px -12px rgba(0,50,120,.65); }
html[data-theme="dark"] #generalFeed .ln-post { border-color: rgba(140,230,255,.5); background: linear-gradient(180deg, rgba(20,58,118,.92), rgba(8,30,70,.92)); box-shadow: 0 0 0 1px rgba(60,240,255,.4), 0 12px 26px -12px rgba(0,0,0,.85); }
html[data-theme="dark"] #generalFeed .ln-post::before { background: linear-gradient(180deg, rgba(160,235,255,.14), transparent); }
html[data-theme] #generalFeed .ln-post .ln-avatar-img, html[data-theme] .tw-av > span { box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(18,95,180,.5); }
html[data-theme] #generalFeed .ln-action { border-radius: 2px; }
html[data-theme] #generalFeed .g-like.is-on { color: #e2336f; }
html[data-theme] .ln-hashtag { color: #0a6fd0; font-weight: 800; }
html[data-theme="dark"] .ln-hashtag { color: #6fe6ff; }
html[data-theme] .ln-panel-head + * , html[data-theme] .g-pad { position: relative; }

html[data-theme] #generalFeed .ln-post > a.tw-av { grid-column: 1; grid-row: 1 / span 4; }

/* ---------- CANTOS RETOS EM TUDO ---------- */
html[data-theme] *, html[data-theme] *::before, html[data-theme] *::after { border-radius: 0 !important; }
/* ícones da landing: quadrados de vidro em vez de orbes */
html[data-theme] .lp-ico { border-radius: 0 !important; }
html[data-theme] .l3-win-h::before { border-radius: 0 !important; width: 8px; height: 8px; }

/* ---------- SEM ANIMAÇÕES DECORATIVAS ---------- */
html[data-theme] .l3-rise,
html[data-theme] .l3-modal.open { animation: none !important; }
html[data-theme] .l3-btn::after, html[data-theme] .ln-btn::after { display: none !important; }
html[data-theme] .l3-card:hover, html[data-theme] #generalFeed .ln-post:hover, html[data-theme] .lp-feat { transform: none !important; }
html[data-theme] .l3-btn:active, html[data-theme] .ln-btn:active { transform: none; filter: brightness(.95); }

/* nenhuma animação em loop ou de entrada em nenhuma página (pedido de design) */
html[data-theme] *, html[data-theme] *::before, html[data-theme] *::after { animation: none !important; }

/* ==========================================================================
   PERFIL no padrão Aero: posts, cartões, Skill Tree e XP
   ========================================================================== */
/* posts do perfil = janelinhas de vidro (igual ao feed) */
html[data-theme] #feed-list { display: grid; gap: 12px; }
html[data-theme] .lt-post {
  position: relative; padding: 14px 16px; border: 1px solid #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(232,247,255,.88)); color: #0c2a45;
  box-shadow: 0 0 0 1px rgba(18,95,180,.45), 0 0 0 3px rgba(255,255,255,.45), 0 10px 22px -12px rgba(0,50,120,.6);
}
html[data-theme] .lt-post::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 22px; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.8), transparent); }
.lt-post-h { position: relative; display: flex; align-items: center; gap: 10px; }
.lt-post-h strong { font-weight: 800; }
.lt-post-h time { margin-left: auto; font-size: 12px; color: #5d7b98; }
.lt-post-t { position: relative; margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: 15px; }
html[data-theme="dark"] .lt-post { border-color: rgba(140,230,255,.5); color: #e3f1ff; background: linear-gradient(180deg, rgba(20,58,118,.94), rgba(8,30,70,.94)); box-shadow: 0 0 0 1px rgba(60,240,255,.4), 0 12px 26px -12px rgba(0,0,0,.85); }
html[data-theme="dark"] .lt-post::before { background: linear-gradient(180deg, rgba(160,235,255,.14), transparent); }
html[data-theme="dark"] .lt-post-h time { color: #9fbbd8; }

/* cartões de conquistas, mural, atividade e comunidades */
html[data-theme] .lt-card {
  display: block; padding: 12px 14px; border: 1px solid #fff; color: #0c2a45; text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(225,244,255,.86)); box-shadow: 0 0 0 1px rgba(18,95,180,.35);
}
html[data-theme] .lt-card.on { box-shadow: 0 0 0 1px #1ea2ec, 0 0 16px -6px rgba(40,220,255,.9); }
html[data-theme] a.lt-card:hover { box-shadow: 0 0 0 1px #1ea2ec, 0 0 18px -4px rgba(40,220,255,.85); }
html[data-theme="dark"] .lt-card { color: #e3f1ff; border-color: rgba(140,230,255,.45); background: linear-gradient(180deg, rgba(20,58,118,.9), rgba(8,30,70,.9)); }
.lt-accent { color: #0a6fd0; }
html[data-theme="dark"] .lt-accent { color: #6fe6ff; }
.lt-comm { padding: 0; overflow: hidden; }
.lt-comm > .p-4 { padding: 12px 14px; }
.lt-comm-cover { height: 90px; border-bottom: 1px solid rgba(18,95,180,.3); background: radial-gradient(ellipse at 50% 0%, rgba(127,230,255,.55), rgba(127,230,255,0) 70%), linear-gradient(180deg, #1f86dc, #0b4a96); background-size: cover; background-position: center; }
.lt-bar { height: 8px; margin-top: 8px; border: 1px solid rgba(18,95,180,.45); background: linear-gradient(180deg, #dceefb, #fff); box-shadow: inset 0 1px 2px rgba(0,40,100,.2); }
.lt-bar i { display: block; height: 100%; background: var(--gel-green); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
html[data-theme="dark"] .lt-bar { background: #06183a; border-color: #3c7cc0; }

/* barra de XP ("Minha jornada") e etiquetas de nível */
html[data-theme] [data-testid="journey-xp-bar"] { height: 12px !important; border: 1px solid rgba(18,95,180,.5); background: linear-gradient(180deg, #dceefb, #fff) !important; box-shadow: inset 0 1px 3px rgba(0,40,100,.25); }
html[data-theme] #journey-xp-bar-fill { height: 100% !important; background: var(--gel-blue) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 10px rgba(40,200,255,.6); }
html[data-theme="dark"] [data-testid="journey-xp-bar"] { background: #06183a !important; border-color: #3c7cc0; }
html[data-theme] [data-testid="topbar-xp-chip"], html[data-theme] #badge-level {
  border: 1px solid #0a5aa8 !important; background: var(--gel-blue) !important; color: #fff !important;
  text-shadow: 0 1px 1px rgba(0,40,100,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

/* Skill Tree: mapa como janela de céu, nós quadrados de gel */
html[data-theme] .lt-tree {
  border: 1px solid #fff; background: linear-gradient(180deg, #d9f1ff 0%, #f4fbff 55%, #e2f6d8 100%);
  box-shadow: 0 0 0 1px rgba(18,95,180,.45), inset 0 1px 0 #fff;
}
html[data-theme="dark"] .lt-tree { border-color: rgba(140,230,255,.5); background: linear-gradient(180deg, #071a3d, #0a2550 60%, #0b2d3e); box-shadow: 0 0 0 1px rgba(60,240,255,.4); }
.lt-tree svg { display: block; }
.lt-branch { font: 400 11px "Share Tech Mono", monospace; letter-spacing: 3px; fill: #36587a; }
html[data-theme="dark"] .lt-branch { fill: #8fb3d6; }
.lt-edge { stroke: #8fb0cf; stroke-width: 2; stroke-dasharray: 5 6; }
.lt-edge.on { stroke: #2f9a12; stroke-dasharray: none; stroke-width: 3; }
html[data-theme="dark"] .lt-edge { stroke: #3c6a9a; }
html[data-theme="dark"] .lt-edge.on { stroke: #7ede5e; }
.lt-node { cursor: pointer; outline: none; }
.lt-box { stroke: #fff; stroke-width: 2; }
.lt-gloss { fill: #fff; opacity: .45; pointer-events: none; }
.lt-ico { font: 700 18px "Nunito Sans", sans-serif; fill: #fff; pointer-events: none; paint-order: stroke; stroke: rgba(0,40,100,.45); stroke-width: 2px; }
.lt-label { font: 800 12px "Nunito Sans", sans-serif; fill: #0c2a45; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
html[data-theme="dark"] .lt-label { fill: #eaf7ff; stroke: #04142e; }
.lt-done .lt-box { fill: #3fae1c; }
.lt-available .lt-box { fill: #f2a100; }
.lt-progress .lt-box { fill: #1a8fe0; }
.lt-locked .lt-box { fill: #c9d8e6; stroke-dasharray: 5 4; stroke: #7f97b0; }
.lt-locked .lt-ico { fill: #6f8aa4; stroke: none; }
.lt-locked .lt-label { fill: #5d7b98; }
html[data-theme="dark"] .lt-locked .lt-box { fill: #1a3557; stroke: #5a83ad; }
html[data-theme="dark"] .lt-locked .lt-label { fill: #9fbbd8; }
.lt-node.sel .lt-box { stroke: #13c8ff; stroke-width: 4; filter: drop-shadow(0 0 6px rgba(40,200,255,.9)); }
.lt-node:hover .lt-box, .lt-node:focus-visible .lt-box { stroke: #13c8ff; stroke-width: 3; }
html[data-theme] .lt-detail {
  border: 1px solid #fff; color: #0c2a45; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(225,244,255,.9));
  box-shadow: 0 0 0 1px rgba(18,95,180,.45);
}
html[data-theme="dark"] .lt-detail { color: #e3f1ff; border-color: rgba(140,230,255,.5); background: linear-gradient(180deg, rgba(20,58,118,.94), rgba(8,30,70,.94)); }

/* ==========================================================================
   COMUNIDADE + PERFIL: mesmo azul de vidro do feed (posts, comentários, textos fixos antigos)
   ========================================================================== */
/* textos claros fixos do tema cósmico antigo → tinta do tema (no escuro continuam claros) */
html[data-theme="light"] .text-\[\#f5f6fa\], html[data-theme="light"] .text-\[\#e9ecf9\],
html[data-theme="light"] .text-\[\#dfe3f3\], html[data-theme="light"] .text-\[\#c6cbe4\] { color: #0c2a45 !important; }
html[data-theme="light"] .text-\[\#8f96b3\] { color: #5d7b98 !important; }
html[data-theme="light"] .text-muted-foreground { color: #3f5e7c !important; }
/* fundos quase pretos fixos → vidro */
html[data-theme] .bg-\[\#0c1024\], html[data-theme] .bg-\[\#060914\], html[data-theme] .bg-\[\#090d1f\] {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(225,244,255,.82)) !important; border-color: rgba(18,95,180,.35) !important;
}
html[data-theme="dark"] .bg-\[\#0c1024\], html[data-theme="dark"] .bg-\[\#060914\], html[data-theme="dark"] .bg-\[\#090d1f\] {
  background: linear-gradient(180deg, rgba(20,58,118,.92), rgba(8,30,70,.92)) !important; border-color: rgba(140,230,255,.4) !important;
}
/* botões dourados antigos → gel azul */
html[data-theme] .bg-\[var\(--lumi-accent\)\], html[data-theme] .hover\:bg-\[\#d9b878\]:hover {
  background: var(--gel-blue) !important; color: #fff !important; border: 1px solid #0a5aa8; text-shadow: 0 1px 1px rgba(0,40,100,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 3px 8px -3px rgba(0,50,120,.7);
}
html[data-theme] .text-\[\#141005\] { color: #fff !important; }

/* posts da comunidade = janelas de vidro */
html[data-theme] .post-card {
  position: relative; padding: 14px 16px; border: 1px solid #fff; color: #0c2a45;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(232,247,255,.88));
  box-shadow: 0 0 0 1px rgba(18,95,180,.45), 0 0 0 3px rgba(255,255,255,.45), 0 10px 22px -12px rgba(0,50,120,.6);
}
html[data-theme] .post-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 24px; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.8), transparent); }
html[data-theme] .post-card:hover { border-color: #fff; box-shadow: 0 0 0 1px #1ea2ec, 0 0 0 3px rgba(255,255,255,.6), 0 0 22px -4px rgba(40,220,255,.8); }
html[data-theme] .post-card p { color: inherit !important; font-size: 15px; overflow-wrap: anywhere; }
html[data-theme="dark"] .post-card { color: #e3f1ff; border-color: rgba(140,230,255,.5); background: linear-gradient(180deg, rgba(20,58,118,.94), rgba(8,30,70,.94)); box-shadow: 0 0 0 1px rgba(60,240,255,.4), 0 12px 26px -12px rgba(0,0,0,.85); }
html[data-theme="dark"] .post-card::before { background: linear-gradient(180deg, rgba(160,235,255,.14), transparent); }
html[data-theme] #feed-list { display: grid; gap: 12px; }

/* avatares: dourado antigo → gel azul */
html[data-theme] .post-avatar, html[data-theme] .comment-avatar {
  color: #fff; background: var(--gel-blue); border: 1px solid #0a5aa8; text-shadow: 0 1px 1px rgba(0,40,100,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

/* ações (votar, comentar) como botões de vidro */
html[data-theme] .post-action-btn { color: #0c3a6a; background: var(--chrome); border: 1px solid var(--chrome-edge); text-shadow: 0 1px 0 #fff; min-height: 34px; }
html[data-theme] .post-action-btn:hover, html[data-theme] .post-action-btn.active { color: #fff; background: var(--gel-blue); border-color: #0a5aa8; text-shadow: 0 1px 1px rgba(0,40,100,.7); }
html[data-theme] .post-action-btn.upvoted { color: #fff; background: var(--gel-green); border-color: #226b0c; text-shadow: 0 1px 1px rgba(10,60,0,.7); }
html[data-theme="dark"] .post-action-btn { color: #e8f7ff; background: var(--chrome-dark); border-color: #6fd0ff; text-shadow: none; }

/* comentários */
html[data-theme] .comments-thread { border-left: 3px solid #1ea2ec; padding-left: 12px; }
html[data-theme] .comment { margin: 8px 0; padding: 10px 12px; border: 1px solid rgba(18,95,180,.25); border-bottom: 1px solid rgba(18,95,180,.25) !important; background: rgba(255,255,255,.75); color: #0c2a45; }
html[data-theme="dark"] .comment { background: rgba(10,40,90,.6); color: #e3f1ff; border-color: rgba(110,220,255,.3); }
html[data-theme] .comment-form input, html[data-theme] .comment-form textarea {
  border: 1px solid #7fa6cc; background: linear-gradient(180deg, #eef7ff, #fff 40%); color: #0c2a45; padding: 8px 10px; box-shadow: inset 0 2px 3px rgba(0,40,100,.18);
}
html[data-theme="dark"] .comment-form input, html[data-theme="dark"] .comment-form textarea { background: #0b2550; border-color: #3c7cc0; color: #e3f1ff; }

/* ==========================================================================
   CELULAR: comunidade e perfil
   ========================================================================== */
@media (max-width: 760px) {
  html[data-theme] .post-card, html[data-theme] .lt-post { padding: 12px; }
  html[data-theme] .post-card .flex.gap-3 { gap: 10px; }
  html[data-theme] .post-avatar { width: 2.1rem; height: 2.1rem; }
  html[data-theme] .comments-thread { padding-left: 8px; }
  .post-actions { gap: 6px; }
  .lt-tree svg { min-width: 0 !important; }
  .lt-label { font-size: 14px; }
  [data-testid="profile-hero"] h1 { font-size: 1.6rem !important; }
  main [class*="max-w-[1280px]"] { padding-left: 10px !important; padding-right: 10px !important; }
  img, video, iframe { max-width: 100%; height: auto; }
  main { overflow-x: clip; }
}
