/* Rovantra account page: signs in with an emailed code and reads the account from the licence server (assets/js/account.js). */

.acct-hero { padding: 48px 0 24px; }
.acct-hero .lead { max-width: 640px; }
.preview-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; max-width: 720px;
  font-size: 14px; color: #FFD08A; background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.25);
  padding: 12px 14px; border-radius: 12px;
}

/* Step tabs */
.acct-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 28px 0 24px; scrollbar-width: none; }
.acct-tabs button {
  flex: none; font: 600 14px/1 var(--font-body); color: var(--muted); cursor: pointer;
  padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
}
.acct-tabs button[aria-selected="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.acct-tabs b { opacity: .7; margin-right: 6px; }

/* Sign in */
.signin { max-width: 440px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 28px; display: grid; gap: 16px; }
.signin img.mark { width: 44px; height: 44px; }
.signin h2 { font-size: 26px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { font: 500 16px/1 var(--font-body); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px; width: 100%; }
.signin .btn { justify-content: center; }
.signin small { color: var(--faint); font-size: 13px; }
.signin .sent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #BFF0D3; background: rgba(52,210,123,.08); border: 1px solid rgba(52,210,123,.25); padding: 12px 14px; border-radius: 12px; }

/* Dashboard */
.acct { display: grid; gap: 16px; }
@media (min-width: 1000px) { .acct { grid-template-columns: 7fr 5fr; gap: 20px; align-items: start; } }
.acct-col { display: grid; gap: 16px; }
.acct-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.acct-card > h2 { font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.acct-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.acct-top h2 { font-size: 26px; }
.acct-top p { color: var(--muted); font-size: 15px; }
.acct .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

.prod { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.prod:first-of-type { border-top: 0; padding-top: 0; }
.prod img { width: 44px; height: 44px; border-radius: 11px; }
.prod h3 { font-size: 18px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.prod p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.prod .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge { font: 600 11px/1 var(--font-body); letter-spacing: .04em; padding: 6px 9px; border-radius: 999px; }
.badge.ok { background: rgba(52,210,123,.14); color: #7FE0A6; }
.badge.muted { background: rgba(255,255,255,.06); color: var(--muted); }
.badge.warn { background: rgba(255,181,71,.12); color: #FFD08A; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.pc { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.pc svg { width: 36px; height: 36px; flex: none; color: var(--purple-hi); }
.pc div { flex: 1; min-width: 0; }
.pc b { display: block; }
.pc span { color: var(--muted); font-size: 13px; }
.pc.free { border-style: dashed; }
.pc.free svg { color: var(--faint); }
.meter-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter-line i { display: block; height: 100%; background: var(--purple); border-radius: 3px; }

.list { display: grid; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.list li:first-child { border-top: 0; }
.list span { color: var(--muted); }
.list b { font-variant-numeric: tabular-nums; }
.acct-card .note { color: var(--faint); font-size: 13px; }

/* Move to a new PC */
.move { display: grid; gap: 16px; }
@media (min-width: 900px) { .move { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.move .acct-card h3 { font-size: 18px; }
.move .acct-card p { color: var(--muted); font-size: 14px; }
.move .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: #fff; font: 700 15px/1 var(--font-head); }
.confirm { background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; display: grid; gap: 10px; }
.confirm p { color: var(--text) !important; }
.confirm .btn-row .btn { flex: 0 0 auto; }

/* Live account page */
.acct-body { padding: 8px 0 72px; }
.acct-loading { color: var(--muted); }
.signin-step { display: grid; gap: 16px; }
.field input::placeholder { color: var(--faint); opacity: 1; }
.field input:focus { outline: 2px solid var(--purple-hi); outline-offset: 1px; border-color: transparent; }
#code { letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.linkish { background: none; border: 0; padding: 0; color: var(--purple-hi); font: 600 14px/1.4 var(--font-body); cursor: pointer; justify-self: start; }
.linkish:hover { text-decoration: underline; }
#dash .acct-top { margin-bottom: 4px; }
#dash .acct-top .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
#dash .form-msg { margin-bottom: 16px; }
#dash .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.devices { display: grid; gap: 10px; }
.pc .btn { flex: none; }
.empty { color: var(--muted); font-size: 14px; }
.inv { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv th { text-align: left; font-weight: 600; color: var(--faint); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 0 8px 8px 0; }
.inv td { padding: 10px 8px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.inv td.amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.inv th.amt { text-align: right; }
.inv a { color: var(--purple-hi); font-weight: 600; white-space: nowrap; }
.inv .desc { color: var(--muted); display: block; font-size: 13px; }
@media (max-width: 560px) { .inv .hide-sm { display: none; } }
.dl { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: center; }
.dl:first-of-type { border-top: 0; padding-top: 0; }
.dl img { width: 44px; height: 44px; border-radius: 11px; }
.dl h3 { font-size: 18px; font-weight: 600; }
.dl p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.dl .acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
#account [hidden] { display: none !important; }
#code:placeholder-shown { letter-spacing: normal; }
@media (max-width: 560px) { .pc { flex-wrap: wrap; } .pc .btn { margin-left: 50px; } }
/* Billing tab: Invoices and Billing cards share one height; space above Manage billing */
@media (min-width: 1000px) { #p-billing .acct { align-items: stretch; } }
#p-billing .acct-card { align-content: start; }
#billing { display: grid; gap: 20px; justify-items: start; }
#billing .empty { margin: 0; }
