/* Account and legal pages. Loaded after styles.css. */
:root { --acc: var(--cy); --acc-ink: #04121a; --sheet: rgba(10, 12, 22, 0.5); --field: rgba(0, 0, 0, 0.28); --field-line: rgba(255, 255, 255, 0.1); --soft: rgba(255, 255, 255, 0.06);
  --ok: var(--li); --warn: #ffc56b; --bad: #ff8a8a; --head-font: var(--display); --head-weight: 700; }
body.sub { display: flex; flex-direction: column; }
body.sub #mainNav .nav-right { gap: 4px; }
body.sub #mainNav button.nav-text { background: none; border: 0; cursor: pointer; font-family: inherit; }
.sub main { flex: 1; width: min(820px, 100% - 32px); margin: 0 auto; padding: 128px 0 80px; }
.mini-foot { text-align: center; padding: 0 20px 40px; font-size: 13px; color: var(--mute); }
.mini-foot a { margin: 0 10px; color: var(--ink2); line-height: 2.2; }
.mini-foot a:hover { color: var(--acc); }

/* ── Legal ── */
.doc { padding: clamp(28px, 6vw, 64px); border-radius: 36px; }
.doc-header { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.doc-badge { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; color: var(--acc); background: var(--soft); margin-bottom: 18px; }
.doc h1 { font-size: clamp(36px, 6vw, 60px); margin: 0 0 14px; max-width: none; letter-spacing: -0.02em; line-height: 1.02; text-align: left; }
.doc-meta { font-size: 13px; color: var(--mute); }
.doc h2 { font-size: 26px; margin: 40px 0 14px; max-width: none; line-height: 1.15; }
.doc p, .doc li { font-size: 15px; color: var(--ink2); }
.doc p { margin-bottom: 16px; }
.doc ul { list-style: none; margin-bottom: 16px; }
.doc ul li { padding: 6px 0 6px 22px; position: relative; }
.doc ul li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.highlight, .warning { padding: 20px 24px; border-radius: 20px; margin-bottom: 22px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--field-line); }
.warning { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent); }
.highlight p, .warning p { margin: 0; }
.warning p { color: var(--warn); }

/* ── Account ── */
#auth-section { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 62vh; }
.auth-card { width: 100%; max-width: 430px; padding: 44px 36px; border-radius: 36px; display: flex; flex-direction: column; gap: 22px; text-align: center; }
.auth-card .mark { width: 68px; height: 68px; padding: 10px; margin: 0 auto 16px; border-radius: 22px; background: #0d1422; box-shadow: 0 18px 34px -14px rgba(13, 20, 34, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2); animation: bobm 6s ease-in-out infinite; }
@keyframes bobm { 50% { transform: translateY(-8px); } }
.auth-card h2 { font-size: 40px; max-width: none; line-height: 1.05; }
.auth-card p { font-size: 14.5px; color: var(--ink2); }
.auth-card .perk { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 15px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 700; color: #1f1f1f; background: #fff; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.08); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.btn-google:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.error-msg { color: var(--bad); font-size: 13px; display: none; }
.error-msg.show { display: block; }
#account-section { display: none; flex-direction: column; gap: 34px; }
.account-user { display: flex; align-items: center; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: var(--acc-ink); background: var(--acc); box-shadow: 0 0 0 3px var(--soft); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-user-info h3 { font-size: 30px; line-height: 1.1; }
.account-user-info p { font-size: 14px; color: var(--ink2); }
.section-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.status-card { display: flex; align-items: center; gap: 20px; padding: 26px; border-radius: 28px; }
.status-icon { width: 54px; height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; background: var(--soft); }
.status-info h4 { font-family: var(--body); font-size: 17px; font-weight: 700; letter-spacing: 0; line-height: 1.3; margin-bottom: 4px; }
.status-info p { font-size: 14px; color: var(--ink2); }
.status-badge { margin-left: auto; padding: 6px 13px; border-radius: 999px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.status-badge:empty { display: none; }
.badge-green { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.badge-blue { color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); }
.badge-red { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.plans-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.plan-card { position: relative; padding: 24px; border-radius: 26px; display: flex; flex-direction: column; gap: 6px; background: var(--sheet); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px var(--field-line), 0 20px 40px -26px rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); transition: transform 0.5s var(--ease); }
.plan-card:hover { transform: translateY(-4px); }
.plan-name { font-family: var(--head-font); font-weight: var(--head-weight); font-size: 26px; line-height: 1.1; color: var(--ink); }
.plan-desc { font-size: 13px; color: var(--ink2); }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 8px 0 14px; }
.plan-price .amount { font-family: var(--head-font); font-weight: var(--head-weight); font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.plan-price .period { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.btn-plan { margin-top: auto; width: 100%; padding: 13px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--field-line); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.btn-plan:hover { background: var(--acc); color: var(--acc-ink); transform: translateY(-1px); }
.btn-plan:disabled { opacity: 0.6; cursor: wait; }
.acct-note { font-size: 13px; color: var(--mute); text-align: center; }
.acct-note a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .sub main { padding-top: 108px; }
  .plans-grid { grid-template-columns: 1fr; }
  .status-card { flex-wrap: wrap; }
  .status-badge { margin-left: 0; }
  .auth-card { padding: 34px 24px; }
}
