/* Hushblock account page */
.acc-main { padding: 40px 0 88px; min-height: calc(100vh - 150px); }
#view { display: flex; flex-direction: column; gap: 18px; align-items: center; width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ---------- auth (signed out) ---------- */
.auth { width: min(980px, 100%); display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-side { position: relative; padding: 44px 40px; color: #eafffb; background: radial-gradient(600px 380px at 0% 0%, rgba(45,212,191,.35), transparent 60%), linear-gradient(150deg, #0f766e 0%, #0a3d39 70%, #082b28 100%); display: flex; flex-direction: column; gap: 22px; }
.auth-side .mark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; }
.auth-side .mark img { width: 34px; height: 34px; }
.auth-side h2 { font-size: 30px; font-weight: 820; letter-spacing: -0.025em; color: #fff; line-height: 1.15; }
.auth-side p { color: rgba(234,255,251,.8); font-size: 15.5px; }
.perks { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 14px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.92); }
.perks .pi { flex: none; width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.perks .pi svg { width: 17px; height: 17px; }
.perks b { display: block; color: #fff; font-weight: 700; }
.auth-side .fine { margin-top: auto; font-size: 13px; color: rgba(234,255,251,.65); }

.auth-form { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.auth-form h1 { font-size: 26px; font-weight: 820; letter-spacing: -0.02em; }
.auth-form .sub { color: var(--muted); font-size: 15px; margin-top: -8px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 13px; padding: 4px; }
.tabs button { border: 0; background: transparent; height: 38px; border-radius: 10px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 650; font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.field label .linkbtn { font-size: 13.5px; }
.input-wrap { position: relative; }
.input { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 14px; font: inherit; font-size: 15.5px; outline: none; width: 100%; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.input-wrap .input { padding-right: 64px; }
.peek { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.peek:hover { color: var(--ink); background: var(--surface-2); }
.hint { font-size: 12.5px; color: var(--muted); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn.google { background: var(--surface); border-color: var(--line); color: var(--ink); font-weight: 650; }
.btn.google:hover { background: var(--surface-2); }
.btn.google svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand-text); font: inherit; font-weight: 650; cursor: pointer; text-align: left; }
.linkbtn:hover { text-decoration: underline; }
.err { color: #c62828; font-size: 14px; min-height: 0; }
.err:empty { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #f87171; } }
.legal { font-size: 12.5px; color: var(--muted); text-align: center; }
.legal a { color: var(--muted); }

/* single-column panels (check email, reset, loading) */
.panel { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.panel.center { align-items: center; text-align: center; }
.panel.loading { min-height: 180px; justify-content: center; }
.panel h1 { font-size: 24px; font-weight: 820; letter-spacing: -0.02em; }
.big-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.big-ic svg { width: 30px; height: 30px; }

/* ---------- dashboard (signed in) ---------- */
.dash { width: min(880px, 100%); display: flex; flex-direction: column; gap: 18px; }
.dash-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #2dd4bf, #0f766e); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 21px; flex: none; }
.dash-head h1 { font-size: 26px; font-weight: 820; letter-spacing: -0.02em; }
.dash-head .em { color: var(--muted); font-size: 15px; }
.dash-head .grow { flex: 1; min-width: 200px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; box-shadow: 0 1px 2px rgba(16,24,22,.04); }
.card h2 { font-size: 19px; font-weight: 780; letter-spacing: -0.01em; }
.card .sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.plan { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.plan .pic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.plan.pro .pic { background: var(--pro-grad); color: #3b2300; }
.plan.free .pic { background: var(--surface-2); color: var(--muted); }
.plan .pic svg { width: 26px; height: 26px; }
.plan .grow { flex: 1; min-width: 220px; }
.plan h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-weight: 800; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.pill.pro { background: var(--pro-grad); color: #3b2300; }
.pill.free { background: var(--surface-2); color: var(--muted); }
.pill.ok { background: var(--brand-soft); color: var(--brand-text); }
.pill.soon { background: var(--surface-2); color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upgrade { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.up { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .05s; }
.up:hover { border-color: var(--brand); }
.up.best { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 50%, transparent); }
.up .amt { font-size: 24px; font-weight: 820; letter-spacing: -0.02em; }
.up .amt small { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.up .lbl { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; }
.up .note { font-size: 13px; color: var(--muted); }

.devices { margin-top: 18px; display: flex; flex-direction: column; }
.device { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.device:first-child { border-top: 0; padding-top: 4px; }
.device .dic { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; }
.device .dic svg { width: 22px; height: 22px; }
.device.soon .dic { background: var(--surface-2); color: var(--muted); }
.device b { font-size: 16px; }
.device .how { color: var(--muted); font-size: 14px; margin-top: 3px; }
.device .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.device.hl { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); margin: 0 -14px; padding-left: 14px; padding-right: 14px; border-radius: 14px; border-top-color: transparent; }

.keybox { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed color-mix(in srgb, var(--brand) 55%, var(--line)); border-radius: 14px; background: var(--bg); margin-top: 14px; }
.keybox code { flex: 1; font-size: 14.5px; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
details.more { margin-top: 14px; }
details.more summary { cursor: pointer; font-weight: 650; color: var(--brand-text); font-size: 14.5px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: '+ '; }
details.more[open] summary::before { content: '– '; }
details.more .inner { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.keyline { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.keyline code { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }

.notice { width: min(880px, 100%); margin: 0 auto 18px; border-radius: 16px; padding: 14px 18px; font-size: 15px; background: var(--brand-soft); color: var(--ink); display: flex; gap: 10px; align-items: center; }
.notice.warn { background: #fff4dc; color: #3b2300; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice.warn { background: #33260b; color: #fde68a; } }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.nav .links + .who { margin-left: 22px; }
.who .avatar { width: 30px; height: 30px; font-size: 13px; }

.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--brand); border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
.btn .spin { width: 16px; height: 16px; border-width: 2px; border-color: currentColor; border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 650; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 24px; gap: 14px; }
  .auth-side h2 { font-size: 24px; }
  .auth-side .perks, .auth-side .fine { display: none; }
  .auth-form { padding: 26px 22px; }
  .upgrade { grid-template-columns: 1fr; }
  .device { grid-template-columns: 46px minmax(0, 1fr); }
  .device .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .card { padding: 22px; }
  .who span { display: none; }
}
@media (max-width: 860px) { .nav .links + .who, .who { margin-left: auto; } }
