/* Harmonix · contas e comunidade. Usa as cores do tema definidas no index.html (--accent, --hover, --bg, --card, --line, --muted). */
.hx-i { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.hx-lock { overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- botões e campos ---------- */
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem .95rem; border-radius: .8rem; font-family: inherit; font-weight: 600; font-size: .85rem; line-height: 1.1; color: #e6eaf5;
  background: transparent; border: 1px solid var(--line, #232b45); cursor: pointer; transition: border-color .15s, background .15s, color .15s; text-decoration: none; }
.hx-btn:hover { border-color: var(--hover, #a78bfa); background: rgba(167,139,250,.1); }
.hx-btn:focus-visible, .hx-in:focus-visible, .hx-link:focus-visible, .hx-tab:focus-visible, .hx-star:focus-visible { outline: 2px solid var(--accent, #22d3ee); outline-offset: 2px; }
.hx-btn.pri { background: var(--accent, #22d3ee); border-color: var(--accent, #22d3ee); color: #0b1020; }
.hx-btn.pri:hover { background: var(--hover, #a78bfa); border-color: var(--hover, #a78bfa); }
.hx-btn.on { border-color: var(--accent, #22d3ee); background: rgba(34,211,238,.12); color: var(--accent, #22d3ee); }
.hx-btn.danger:hover { border-color: #fb7185; background: rgba(251,113,133,.1); color: #fb7185; }
.hx-btn.sm { padding: .35rem .65rem; font-size: .75rem; border-radius: .6rem; }
.hx-btn[disabled] { opacity: .55; cursor: wait; }
.hx-link { background: none; border: 0; padding: 0; color: var(--muted, #9aa4bf); font: inherit; font-size: .75rem; text-decoration: underline; cursor: pointer; }
.hx-link:hover { color: #e6eaf5; }
.hx-in { width: 100%; background: var(--bg, #0b1020); border: 1px solid var(--line, #232b45); color: #e6eaf5; border-radius: .7rem; padding: .6rem .8rem; font: inherit; font-size: .9rem; }
.hx-in:focus { border-color: var(--accent, #22d3ee); }
textarea.hx-in { min-height: 5rem; resize: vertical; }
.hx-lab { display: block; font: 600 .72rem/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; color: var(--muted, #9aa4bf); margin: 0 0 .35rem; text-transform: uppercase; }
.hx-field { margin-bottom: .9rem; }
.hx-grid2 { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hx-grid2 { grid-template-columns: 1fr 1fr; } }
.hx-err { color: #fb7185; font-size: .8rem; min-height: 1.1rem; margin: .2rem 0 .6rem; }
.hx-note { color: var(--muted, #9aa4bf); font-size: .75rem; line-height: 1.4; }
.hx-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font: 600 .68rem/1.3 'JetBrains Mono', ui-monospace, monospace; border: 1px solid var(--line, #232b45); color: var(--muted, #9aa4bf); }
.hx-badge.acc { color: var(--accent, #22d3ee); border-color: rgba(34,211,238,.45); }
.hx-badge.warm { color: #f59e0b; border-color: rgba(245,158,11,.45); }

/* ---------- cabeçalho ---------- */
#hx-acct { display: flex; align-items: center; gap: .5rem; position: relative; }
.hx-av { width: 2.4rem; height: 2.4rem; border-radius: 999px; display: grid; place-items: center; font-weight: 700; color: #0b1020; background: var(--accent, #22d3ee); border: 0; cursor: pointer; }
.hx-av.big { width: 4rem; height: 4rem; font-size: 1.6rem; cursor: default; }
.hx-menu { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 14rem; z-index: 70; background: var(--card, #131a2e); border: 1px solid var(--line, #232b45); border-radius: .9rem; padding: .4rem; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.hx-menu .who { padding: .5rem .7rem .6rem; border-bottom: 1px solid var(--line, #232b45); margin-bottom: .3rem; }
.hx-menu .who b { display: block; color: #fff; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; border: 0; background: transparent; color: #e6eaf5; border-radius: .6rem; font: inherit; font-size: .85rem; cursor: pointer; text-align: left; }
.hx-menu button:hover { background: rgba(167,139,250,.12); }
@media (max-width: 639px) { #hx-acct .hx-lbl { display: none; } }

/* ---------- janelas (login, denúncia) ---------- */
.hx-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; background: rgba(5,8,18,.82); backdrop-filter: blur(4px); overflow-y: auto; }
.hx-dialog { position: relative; width: 100%; max-width: 26rem; background: var(--card, #131a2e); border: 1px solid var(--line, #232b45); border-radius: 1.1rem; padding: 1.4rem; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.hx-dialog h2 { font-size: 1.35rem; font-weight: 700; color: #fff; margin: 0 2rem .9rem 0; }
.hx-x { position: absolute; right: .8rem; top: .8rem; width: 2rem; height: 2rem; border-radius: .6rem; border: 0; background: transparent; color: var(--muted, #9aa4bf); cursor: pointer; display: grid; place-items: center; }
.hx-x:hover { background: rgba(255,255,255,.08); color: #fff; }
.hx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .25rem; border: 1px solid var(--line, #232b45); border-radius: .85rem; margin-bottom: 1rem; }
.hx-seg button { padding: .5rem; border: 0; border-radius: .6rem; background: transparent; color: var(--muted, #9aa4bf); font-family: inherit; font-weight: 600; font-size: .85rem; line-height: 1; cursor: pointer; }
.hx-seg button[aria-selected="true"] { background: var(--accent, #22d3ee); color: #0b1020; }
.hx-roles { display: grid; gap: .5rem; margin-bottom: .9rem; }
.hx-role { display: block; border: 1px solid var(--line, #232b45); border-radius: .8rem; padding: .65rem .8rem; cursor: pointer; }
.hx-role input { position: absolute; opacity: 0; pointer-events: none; }
.hx-role b { display: block; color: #fff; font-size: .88rem; }
.hx-role span { color: var(--muted, #9aa4bf); font-size: .75rem; }
.hx-role:has(input:checked) { border-color: var(--accent, #22d3ee); background: rgba(34,211,238,.08); }
.hx-role:has(input:focus-visible) { outline: 2px solid var(--accent, #22d3ee); outline-offset: 2px; }
.hx-sep { display: flex; align-items: center; gap: .6rem; color: var(--muted, #9aa4bf); font-size: .72rem; margin: .9rem 0; }
.hx-sep::before, .hx-sep::after { content: ''; flex: 1; height: 1px; background: var(--line, #232b45); }

/* ---------- páginas (comunidade, perfil, casa, painel) ---------- */
.hx-sheet { position: fixed; inset: 0; z-index: 60; background: var(--bg, #0b1020); overflow-y: auto; overscroll-behavior: contain; }
.hx-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; background: rgba(11,16,32,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line, #232b45); }
.hx-bar .t { font: 600 .75rem/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; color: var(--muted, #9aa4bf); text-transform: uppercase; }
.hx-bnav { margin-left: auto; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
@media (max-width: 639px) { .hx-bar .t { display: none; } .hx-bar { flex-wrap: wrap; } }
.hx-wrap { max-width: 56rem; margin: 0 auto; padding: 1.2rem 1rem 6rem; }
.hx-h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.1; font-weight: 700; color: #fff; margin: 0 0 .4rem; letter-spacing: -.01em; }
.hx-h2 { font: 600 .75rem/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; color: var(--muted, #9aa4bf); text-transform: uppercase; margin: 1.8rem 0 .8rem; }
.hx-sub { color: var(--muted, #9aa4bf); font-size: .9rem; line-height: 1.5; margin: 0 0 1rem; }
.hx-card { background: var(--card, #131a2e); border: 1px solid var(--line, #232b45); border-radius: 1rem; padding: 1rem; margin-bottom: .8rem; }
.hx-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.hx-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .4rem; }
.hx-head a, .hx-card a.nm { color: #fff; font-weight: 600; text-decoration: none; }
.hx-head a:hover, .hx-card a.nm:hover { color: var(--accent, #22d3ee); }
.hx-when { color: var(--muted, #9aa4bf); font: 400 .72rem/1 'JetBrains Mono', ui-monospace, monospace; white-space: nowrap; }
.hx-txt { color: #e6eaf5; font-size: .92rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin: .3rem 0; }
.hx-pic { display: block; max-width: 100%; max-height: 22rem; border-radius: .8rem; margin-top: .5rem; border: 1px solid var(--line, #232b45); }
.hx-reply { margin: .6rem 0 0 .6rem; padding: .6rem .8rem; border-left: 2px solid var(--accent, #22d3ee); background: rgba(34,211,238,.06); border-radius: 0 .7rem .7rem 0; }
.hx-reply b { font-size: .75rem; color: var(--accent, #22d3ee); }
.hx-reply .hx-txt { margin: .2rem 0 0; font-size: .86rem; }
details.hx-rp summary { cursor: pointer; color: var(--muted, #9aa4bf); font-size: .78rem; margin-top: .5rem; }
details.hx-rp[open] summary { color: #e6eaf5; }
.hx-tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid var(--line, #232b45); margin: 1rem 0; scrollbar-width: none; }
.hx-tab { flex: none; padding: .65rem .9rem; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted, #9aa4bf); font-family: inherit; font-weight: 600; font-size: .85rem; line-height: 1; cursor: pointer; }
.hx-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--accent, #22d3ee); }
.hx-empty { text-align: center; padding: 2rem 1rem; color: var(--muted, #9aa4bf); border: 1px dashed var(--line, #232b45); border-radius: 1rem; font-size: .9rem; }
.hx-empty .hx-btn { margin-top: .8rem; }
.hx-stars { display: inline-flex; gap: .1rem; color: #f59e0b; }
.hx-stars .off { color: #3a4468; }
.hx-star { background: none; border: 0; padding: .1rem; color: #3a4468; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.hx-star.on { color: #f59e0b; }
.hx-bar2 { height: .55rem; border-radius: 999px; background: var(--line, #232b45); overflow: hidden; }
.hx-bar2 > i { display: block; height: 100%; background: var(--accent, #22d3ee); border-radius: 999px; }
.hx-bars { display: grid; grid-template-columns: 8rem 1fr 2.5rem; align-items: center; gap: .6rem; font-size: .85rem; margin-bottom: .5rem; }
.hx-bars .n { color: var(--muted, #9aa4bf); text-align: right; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .75rem; }
.hx-tiles { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .hx-tiles { grid-template-columns: repeat(3, 1fr); } }
.hx-tile { background: var(--card, #131a2e); border: 1px solid var(--line, #232b45); border-radius: 1rem; padding: .9rem 1rem; }
.hx-tile b { display: block; font-size: 1.8rem; color: #fff; line-height: 1.1; }
.hx-tile span { color: var(--muted, #9aa4bf); font-size: .78rem; }
.hx-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.hx-chip { padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line, #232b45); color: #e6eaf5; font-size: .78rem; font-weight: 600; background: transparent; }
.hx-chk { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line, #232b45); font-size: .78rem; cursor: pointer; color: #e6eaf5; }
.hx-chk:has(input:checked) { border-color: var(--accent, #22d3ee); background: rgba(34,211,238,.12); color: var(--accent, #22d3ee); }
.hx-chk input { position: absolute; opacity: 0; pointer-events: none; }
.hx-chk:has(input:focus-visible) { outline: 2px solid var(--accent, #22d3ee); outline-offset: 2px; }
.hx-week { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hx-week { grid-template-columns: 1fr 1fr; } }
.hx-prof { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
@media (prefers-reduced-motion: reduce) { .hx-btn, .hx-menu button { transition: none; } }
