/* AUREA Works — account UI (sign-in modal, register CTAs).
   Loaded after styles.css + dashboard.css on pages that wire accounts.
   The account itself is the shared AUREA account (same Supabase project
   as AUREA Market) — see works-auth.js. */

#reg-btn{white-space:nowrap}
#auth-btn .auth-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--pos);margin-right:7px;vertical-align:2px}
.sb-link.sb-reg-link{color:var(--gold);font-weight:800}
.sb-link.sb-reg-link:hover{background:var(--gold-soft);color:var(--gold-light)}

.auth-modal{position:fixed;inset:0;z-index:120}
.auth-modal[hidden]{display:none}
.auth-scrim{position:absolute;inset:0;background:rgba(2,6,22,.72);backdrop-filter:blur(3px)}
.auth-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(420px,calc(100vw - 32px));background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:22px;box-shadow:0 24px 60px rgba(0,0,0,.5)}
.auth-x{position:absolute;top:8px;right:12px;background:none;border:0;color:var(--muted);font-size:24px;cursor:pointer;line-height:1}
.auth-form{display:grid;gap:12px}
.auth-label{display:grid;gap:6px;font-size:13px;font-weight:700;color:var(--muted)}
.auth-label input{background:var(--input);border:1px solid var(--border);border-radius:10px;color:var(--text);padding:10px 12px;font:inherit}
.auth-msg{margin:12px 0 0;font-size:13px;color:var(--gold-light);min-height:1em}
.auth-alt{display:grid;gap:10px;margin-bottom:14px}
.auth-alt-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:11px 14px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.auth-alt-btn:hover{border-color:var(--gold)}
.auth-alt-btn:disabled{opacity:.55;cursor:default}
.auth-alt-btn svg{flex:none}
.wallet-hint{margin:0 0 12px;font-size:12.5px;color:var(--muted);line-height:1.5}
.wallet-guide{margin:0 0 14px;padding:13px;border-radius:12px;border:1px solid transparent;background:linear-gradient(var(--surface,#121626),var(--surface,#121626)) padding-box,linear-gradient(135deg,rgba(255,215,0,.55),rgba(138,43,226,.55) 52%,rgba(255,215,0,.30)) border-box;box-shadow:0 0 16px rgba(138,43,226,.16),0 0 8px rgba(255,215,0,.08),inset 0 0 24px rgba(138,43,226,.05)}
.wallet-guide-text{margin:0 0 11px;font-size:13px;line-height:1.55;color:var(--text)}
.wallet-guide-btns{display:flex;flex-wrap:wrap;gap:8px}
.wallet-guide-btns .btn{flex:1 1 auto;text-align:center;white-space:nowrap}
.wallet-guide-btns .mm-logo{width:22px;height:22px;flex:0 0 auto}
@media (max-width:560px){.wallet-guide-btns .btn{flex:1 1 100%}}
.auth-divider{display:flex;align-items:center;gap:12px;color:var(--faint);font-size:12px;font-weight:700;margin:0 0 14px}
.auth-divider::before,.auth-divider::after{content:'';flex:1;border-top:1px solid var(--border)}
.auth-foot{margin:14px 0 0;font-size:13.5px;color:var(--muted)}
.auth-note{margin:10px 0 0;font-size:12.5px;color:var(--faint);line-height:1.55}

/* ---------- /register page ---------- */
.reg-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
@media (max-width:820px){.reg-grid{grid-template-columns:1fr}}
.reg-panel h2{margin-bottom:6px}
.reg-panel .panel-sub{margin-bottom:14px}
.reg-form{display:grid;gap:12px}
.reg-form .hint{color:var(--faint);font-size:12px;line-height:1.5;font-weight:600;margin:0}
.reg-msg{margin:12px 0 0;font-size:13.5px;color:var(--gold-light);min-height:1em}
.reg-foot{margin-top:18px;font-size:14px;color:var(--muted)}
.reg-foot .text-btn{margin-left:8px}
.text-btn{background:none;border:0;color:var(--gold-light);font:inherit;font-weight:700;cursor:pointer;padding:0}
.panel-title{font-size:16px;font-weight:800;margin:0}
.panel-sub{color:var(--muted);font-size:13.5px;line-height:1.55;margin:6px 0 0}

/* ---------- NEON FRAME STANDARD v1 (2026-11-29): gradient gold->purple frame + outer glow ----------
   Appended last; wins over the readability pass. Fill = the site's own card
   colour, so surfaces never change — only the frame goes neon. See
   ~/workspace/aurea-design/shell-spec.md section 10. */
.auth-card, .reg-panel {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface, #121626), var(--surface, #121626)) padding-box,
    linear-gradient(135deg, rgba(255,215,0,.55), rgba(138,43,226,.55) 52%, rgba(255,215,0,.30)) border-box;
  box-shadow: 0 0 16px rgba(138,43,226,.16), 0 0 8px rgba(255,215,0,.08), 0 10px 28px rgba(0,0,0,.36), inset 0 0 24px rgba(138,43,226,.05);
}
@media (hover: hover) {
  .auth-card, .reg-panel:hover {
    background:
      linear-gradient(var(--surface, #121626), var(--surface, #121626)) padding-box,
      linear-gradient(135deg, rgba(255,215,0,.9), rgba(138,43,226,.85) 52%, rgba(255,215,0,.55)) border-box;
    box-shadow: 0 0 22px rgba(255,215,0,.22), 0 0 34px rgba(138,43,226,.28), 0 14px 34px rgba(0,0,0,.44), inset 0 0 24px rgba(138,43,226,.07);
  }
}

/* --- unified notifications bell (works-auth.js) --- */
.ntf-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;border:1px solid #39415F;background:rgba(20,26,48,.7);color:#E8B33D;cursor:pointer;margin-right:8px}
.ntf-bell:hover{border-color:#E8B33D;box-shadow:0 0 12px rgba(232,179,61,.35)}
.ntf-badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#e5484d;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}
.ntf-panel{position:fixed;top:64px;right:16px;width:min(360px,92vw);max-height:70vh;overflow:auto;z-index:1200;background:#0d1330;border:1px solid rgba(232,179,61,.55);border-radius:14px;box-shadow:0 0 24px rgba(160,90,255,.35),0 18px 40px rgba(0,0,0,.5);padding:10px}
.ntf-head{display:flex;justify-content:space-between;align-items:center;padding:4px 6px 10px;color:#F2D98C}
.ntf-markall{background:none;border:none;color:#A7ACC2;cursor:pointer;font-size:12px}
.ntf-markall:hover{color:#E8B33D}
.ntf-item{display:flex;gap:10px;width:100%;text-align:left;background:rgba(255,255,255,.03);border:1px solid #39415F;border-radius:10px;padding:9px 10px;margin-bottom:8px;cursor:pointer;color:#EDEEF5}
.ntf-item.unread{border-color:rgba(232,179,61,.7);background:rgba(232,179,61,.06)}
.ntf-kind{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#B18CFF;border:1px solid rgba(160,90,255,.5);border-radius:6px;padding:2px 5px;height:fit-content;white-space:nowrap}
.ntf-main{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.ntf-title{font-weight:600;font-size:13px}
.ntf-body{font-size:12px;color:#A7ACC2;overflow:hidden;text-overflow:ellipsis}
.ntf-time{font-size:11px;color:#8B90A5}
.ntf-empty{color:#A7ACC2;font-size:13px;padding:8px 6px}
