/* ==========================================================================
   ACCOUNTS + PRO — the account chip in the top bars, PRO tags and locked beat
   tiles, the sign-up / log-in sheet, the Pro sheet, and account.html.
   Loaded after style.css (and home.css / setup.css on the Game page).
   Lime marks Pro; orange stays the one action color.
   ========================================================================== */

.top-r { display: inline-flex; align-items: center; gap: 8px; }
.acct { height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 12px; max-width: 180px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: 13.5px;
  box-shadow: var(--shadow); transition: border-color .15s, transform .15s var(--ease); }
.acct span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.acct.pro { border-color: rgba(176, 234, 66, .55); }
.acct[hidden] { display: none; }
@media (hover: hover) { .acct:hover { border-color: var(--line2); transform: translateY(-1px); } }
.acct:active { transform: scale(.98); }

.pro-tag, .acct b { display: inline-block; vertical-align: middle; padding: 2px 6px; border-radius: 6px; background: var(--lime); color: var(--ink);
  font-family: var(--display); font-weight: 400; font-size: 10px; letter-spacing: .6px; line-height: 1.3; }
.pro-tag[hidden] { display: none; }
.pro-tag.big { font-size: 13px; padding: 4px 10px; border-radius: 8px; margin-bottom: 10px; }

/* Pro beats on the Free plan: still tappable to preview, visibly locked. */
.beat.locked .cover { filter: saturate(.35) brightness(.8); }
.beat.locked .meta b { color: var(--muted); }

/* ---------- sign up / log in ---------- */
.auth-dlg .auth-tabs { margin-bottom: 12px; }
.auth-dlg .auth-tabs[hidden] { display: none; }
.auth-dlg [data-pane][hidden] { display: none; }
.auth-dlg .auth-forgot { display: inline-block; margin-top: 12px; font-size: 13px; }
.auth-dlg #authWhy { margin: 0 0 4px; }

/* ---------- the Pro sheet ---------- */
.pro-dlg h3 { font-size: 22px; }
.pro-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.pro-list li { position: relative; padding: 10px 12px 10px 38px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line);
  font-size: 14px; line-height: 1.4; color: var(--muted); }
.pro-list li b { color: var(--text); }
.pro-list li::before { content: "✓"; position: absolute; left: 12px; top: 9px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 900; }
.pro-price { margin: 14px 0 0; font-size: 15px !important; color: var(--muted); }
.pro-price b { font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--text); }
.pro-fine { font-size: 12px !important; }
.sd-plan { padding: 10px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }

/* ---------- account.html ---------- */
.acct-page { max-width: 520px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 48px; }
.acct-page .topbar { margin-bottom: 18px; }
.acct-page .topbar img { height: 40px; width: auto; display: block; }
.acct-page h1 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 6px 0 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 12px 0; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 6px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.card p { margin: 6px 0; font-size: 14px; line-height: 1.5; }
.plan-line { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 24px; margin: 4px 0 8px; }
.plan-line .free { font-family: var(--ui); font-weight: 800; font-size: 11px; letter-spacing: .6px; padding: 3px 8px; border-radius: 6px; background: var(--panel2);
  border: 1px solid var(--line2); color: var(--muted); }
.who b { font-size: 18px; }
.btn { display: block; width: 100%; margin-top: 10px; padding: 14px; border-radius: 14px; text-align: center; text-decoration: none; font-weight: 800; font-size: 15px;
  background: var(--panel2); border: 1px solid var(--line); color: var(--text); transition: transform .15s var(--ease), border-color .15s; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.quiet { background: none; border-color: transparent; color: var(--muted); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.btn:disabled { opacity: .6; }
.btn:active { transform: scale(.98); }
@media (hover: hover) { .btn:not(.quiet):hover { border-color: var(--line2); transform: translateY(-1px); } .btn.primary:hover { border-color: var(--orange); background: #ff7f1a; } }
.acct-page .legal-links { margin-top: 28px; text-align: center; font-size: 12.5px; color: var(--muted); line-height: 2; }
.acct-page .legal-links a { color: var(--muted); }
.danger-zone { border-color: rgba(253, 111, 101, .35); }
.danger-zone .btn { border-color: rgba(253, 111, 101, .5); color: var(--coral); }
.acct-play { display: inline-flex; align-items: center; text-decoration: none; }
