/* Account hub — matches the current mahalopower.com look. Rebrand = edit this file (colors in :root). */
:root {
    --bg: #0f1117; --panel: #1a1d27; --border: #2a2d3a; --border-2: #3a3d4a;
    --text: #e8e8e8; --muted: #9a9aa6; --faint: #666;
    --accent: #7c9fff; --accent-ink: #0f1117;
    --ok: #4ade80; --warn: #fbbf24; --err: #f87171;
    --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text);
       min-height: 100vh; display: flex; flex-direction: column; line-height: 1.5; }
a { color: var(--accent); }

header.site { background: var(--panel); border-bottom: 1px solid var(--border); padding: 1rem 2rem;
              display: flex; justify-content: space-between; align-items: center; }
header.site .logo { font-size: 1.4rem; font-weight: 700; color: var(--accent); text-decoration: none; }
header.site nav a { color: #aaa; text-decoration: none; margin-left: 1.5rem; font-size: 0.9rem; }
header.site nav a:hover { color: var(--text); }

main.hub { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 3rem 1rem; }
.card { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.card h1 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.card .lead { color: var(--muted); margin-bottom: 1.5rem; }

label.field { display: block; margin-bottom: 1rem; font-size: 0.9rem; color: var(--muted); }
label.field input { display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.8rem; font-size: 1rem;
                    background: var(--bg); color: var(--text); border: 1px solid var(--border-2); border-radius: 8px; }
label.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.hint { font-size: 0.8rem; color: var(--faint); margin-top: 0.25rem; }

.choice { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem; border: 1px solid var(--border);
          border-radius: 8px; margin-bottom: 0.75rem; cursor: pointer; }
.choice input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex: none; }
.choice strong { display: block; }
.choice span { font-size: 0.85rem; color: var(--muted); }
.choice.locked { opacity: 0.85; cursor: default; }
.choice.small { border: none; padding: 0.25rem 0; }
.invite { margin: -0.25rem 0 0.75rem 2.3rem; }
.invite[hidden] { display: none; }

.btn { display: inline-block; width: 100%; padding: 0.85rem 1.2rem; border-radius: 8px; font-size: 1rem; font-weight: 600;
       text-align: center; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: #2a2d3a; color: var(--text); border: 1px solid var(--border-2); }
.btn:hover { opacity: 0.88; }
.legal { font-size: 0.8rem; color: var(--faint); margin: 0.5rem 0 1.2rem; }
.below { text-align: center; margin-top: 1.2rem; font-size: 0.9rem; color: var(--muted); }

.alert { border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 1.2rem; font-size: 0.92rem; }
.alert-error { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.4); color: #fecaca; }
.alert-ok    { background: rgba(74,222,128,0.1);  border: 1px solid rgba(74,222,128,0.4);  color: #bbf7d0; }
.alert-warn  { background: rgba(251,191,36,0.1);  border: 1px solid rgba(251,191,36,0.4);  color: #fde68a; }
.alert ul { margin-left: 1.1rem; }

/* code screen */
.steps { color: var(--muted); margin-bottom: 1rem; }
.steps b { color: var(--text); }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; background: var(--bg);
            border: 1px dashed var(--accent); border-radius: 8px; padding: 0.9rem 1rem; margin: 0.5rem 0 1rem; }
.code-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.45rem; letter-spacing: 0.08em; color: var(--text); }
.copy-btn { background: transparent; color: var(--accent); border: 1px solid var(--border-2); border-radius: 6px;
            padding: 0.35rem 0.7rem; cursor: pointer; font-size: 0.85rem; }
.status { display: flex; gap: 0.6rem; align-items: center; margin-top: 1.2rem; padding: 0.8rem 1rem; border-radius: 8px;
          background: var(--bg); border: 1px solid var(--border); font-size: 0.95rem; }
.status .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--warn); flex: none; animation: pulse 1.6s infinite; }
.status.ok .dot { background: var(--ok); animation: none; }
.status.bad .dot { background: var(--err); animation: none; }
@keyframes pulse { 50% { opacity: 0.3; } }
.small-note { font-size: 0.8rem; color: var(--faint); margin-top: 0.8rem; }

footer.site { border-top: 1px solid var(--border); padding: 2rem; text-align: center; color: #555; font-size: 0.85rem; }
footer.site a { color: var(--accent); text-decoration: none; margin: 0 0.75rem; }
footer.site .copy { margin-top: 0.5rem; }

@media (max-width: 520px) {
    header.site { padding: 1rem; }
    .card { padding: 1.4rem; border-radius: 10px; }
    .code-box code { font-size: 1.2rem; }
}
