:root {
  --ink: #362636;
  --muted: #8d7d83;
  --plum: #713b68;
  --plum-dark: #55294f;
  --rose: #f1d7d4;
  --cream: #faf5ec;
  --paper: #fffdf9;
  --line: #e9ded8;
  --danger: #a53f50;
  --ok: #4d8068;
  --shadow: 0 24px 70px rgba(82, 43, 71, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 26px 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 900; letter-spacing: .16em; }
.brand-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--plum); color: white; font-family: Georgia, serif; font-size: 19px; box-shadow: 0 8px 20px rgba(113,59,104,.2); }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .12em; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.language-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.65); }
.language-toggle button { padding: 6px 11px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; }
.language-toggle button.active { background: var(--ink); color: white; }
.header-link { color: var(--muted); font-size: 12px; font-weight: 700; }
.header-link:hover { color: var(--plum); }

.account-main { max-width: 1240px; min-height: calc(100vh - 94px); margin: 0 auto; padding: 28px 32px 80px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr); align-items: center; gap: 80px; min-height: 620px; }
.auth-intro-panel { position: relative; padding: 36px; }
.auth-intro-panel::after { content: ""; position: absolute; z-index: -1; top: 30px; right: 20px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(241,215,212,.9), rgba(241,215,212,0) 70%); }
.eyebrow, .card-kicker { margin: 0 0 12px; color: var(--plum); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.auth-intro-panel h1, .dashboard-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 62px); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; }
.auth-intro-panel > p:not(.eyebrow) { max-width: 500px; margin: 24px 0 0; color: var(--muted); font-size: 16px; }
.auth-benefits { display: grid; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; color: #695760; font-size: 13px; }
.auth-benefits li::before { content: "✓"; display: inline-grid; width: 22px; height: 22px; margin-right: 10px; place-items: center; border-radius: 50%; background: #e7eee6; color: var(--ok); font-weight: 900; }
.auth-card { padding: 40px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }

.stack-form { display: grid; gap: 12px; }
.stack-form h2 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.stack-form label { color: #6e5c66; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.stack-form input { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: #fffdfb; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.stack-form input:focus { border-color: #bc91af; box-shadow: 0 0 0 4px rgba(113,59,104,.08); }
.form-help, .panel-copy { margin: 0; color: var(--muted); font-size: 12px; }
.form-error { min-height: 18px; margin: 0; color: var(--danger); font-size: 12px; }
.primary-button, .secondary-button, .danger-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 12px 18px; border: 1px solid transparent; border-radius: 12px; font-size: 11px; font-weight: 850; letter-spacing: .04em; transition: transform .2s, background .2s; }
.primary-button { color: white; background: var(--plum); }
.primary-button:hover { background: var(--plum-dark); transform: translateY(-1px); }
.secondary-button { border-color: var(--line); color: var(--plum); background: transparent; }
.secondary-button:hover { background: #f8f0eb; }
.danger-button { border-color: #e8c5cb; color: var(--danger); background: #fff3f3; }
.danger-button:hover { background: #fbe7e9; }
.link-button { width: fit-content; padding: 4px 0; border: 0; color: var(--plum); background: transparent; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.dashboard-heading h1 { font-size: 48px; }
.dashboard-heading p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 10px 30px rgba(82,43,71,.04); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.panel h2 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.status-pill { padding: 5px 10px; border-radius: 999px; color: var(--muted); background: #f4eee9; font-size: 10px; font-weight: 800; }
.status-pill.verified { color: var(--ok); background: #eaf3eb; }
.status-pill.unverified { color: #9b6b34; background: #fbf0dc; }
.plan-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.plan-summary strong { color: var(--plum); font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.plan-summary span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.plan-panel .panel-copy { margin-bottom: 24px; }
.plan-panel .primary-button, .plan-panel .secondary-button { width: 100%; margin-top: 10px; }
.session-list { display: grid; gap: 10px; }
.session-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.session-meta strong { display: block; font-size: 12px; }
.session-meta span { color: var(--muted); font-size: 11px; }
.session-revoke { flex: 0 0 auto; border: 0; color: var(--danger); background: transparent; font-size: 11px; font-weight: 750; }
.data-panel .secondary-button { margin-top: 22px; }
.danger-panel { border-color: #ecd9d9; }
.danger-panel .panel-copy { margin-bottom: 20px; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 28px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: 12px; transform: translateX(-50%); }

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; gap: 24px; padding: 12px 0 40px; }
  .auth-intro-panel { padding: 12px; }
  .auth-intro-panel h1 { font-size: 44px; }
  .auth-card { max-width: 520px; width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header { padding: 20px; flex-wrap: wrap; gap: 14px; }
  .header-actions { width: 100%; flex-wrap: wrap; gap: 10px; }
  .language-toggle { width: 100%; }
  .language-toggle button { flex: 1; min-width: 0; }
  .header-link { display: none; }
  .account-main { padding: 18px 20px 60px; }
  .auth-intro-panel { padding: 4px 0 18px; }
  .auth-intro-panel h1 { font-size: 38px; }
  .auth-card, .panel { padding: 24px; border-radius: 20px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-heading h1 { font-size: 38px; }
  .panel-head { flex-wrap: wrap; }
  .session-item { align-items: flex-start; }
}
