body.account-page {
  color: #e8eef6;
  background: #0b0e13;
}
body.account-page .noise { display: none; }

body.account-page header {
  border-bottom-color: rgba(196, 165, 116, 0.16);
  background: rgba(11, 14, 19, 0.9);
}
body.account-page .brand {
  gap: 10px;
}
body.account-page .brand img {
  width: 22px;
  height: 22px;
  margin-right: 0;
}
body.account-page .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
body.account-page .brand-text b {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
body.account-page .brand-text span {
  color: #c4a574;
  font-size: 14px;
  font-weight: 500;
}
body.account-page nav a { color: #8b97a8; }
body.account-page nav a:hover { color: #e8eef6; }
body.account-page .status { color: #8b97a8; }
body.account-page .status i { background: #c4a574; }
body.account-page .status.ready i { background: #5db89a; box-shadow: none; }

.account-shell { min-height: calc(100vh - 72px); padding: 70px 24px 100px; }

.auth-panel {
  width: min(480px, 100%);
  margin: 35px auto;
  padding: 40px 36px;
  border: 1px solid rgba(196, 165, 116, 0.18);
  border-radius: 12px;
  background: #12171f;
}
.auth-panel .eyebrow,
.dashboard .eyebrow {
  color: #6b8fa8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.auth-panel h1, .dashboard h1 {
  margin: 12px 0 10px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.auth-panel > p { color: #8b97a8; font-size: 13px; line-height: 1.6; }

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 28px;
  border: 1px solid #6b8fa8;
  border-radius: 8px;
  color: #e8eef6;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.google-button:hover { border-color: #c4a574; color: #fff; }
.google-button.disabled { opacity: 0.45; pointer-events: none; }

.guest-checkout {
  display: grid;
  gap: 6px;
  margin: 20px 0 0;
  padding: 16px;
  border: 1px solid rgba(196, 165, 116, 0.16);
  border-radius: 8px;
  background: rgba(196, 165, 116, 0.05);
}
.guest-checkout strong { font-size: 12px; }
.guest-checkout span { color: #8b97a8; font-size: 11px; line-height: 1.5; }

.or { display: flex; align-items: center; margin: 22px 0; color: #5c6778; font-size: 11px; }
.or::before, .or::after { content: ""; height: 1px; flex: 1; background: rgba(196, 165, 116, 0.16); }
.or span { padding: 0 13px; }

.auth-panel label { display: block; margin-bottom: 8px; color: #8b97a8; font-size: 11px; }
.auth-panel form > div { display: flex; gap: 8px; }
.auth-panel input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(232, 238, 246, 0.12);
  border-radius: 8px;
  color: #e8eef6;
  background: #0b0e13;
  outline: none;
}
.auth-panel input:focus { border-color: #c4a574; }

.auth-panel button,
.dashboard button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #c4a574;
  border-radius: 8px;
  color: #0b0e13;
  background: #c4a574;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.auth-panel button:hover,
.dashboard button:hover { filter: brightness(1.05); }
.auth-panel button:disabled,
.dashboard button:disabled { opacity: 0.5; cursor: wait; }

.auth-panel > small { display: block; margin-top: 24px; color: #5c6778; font-size: 11px; line-height: 1.6; }
.auth-panel > small a { color: #6b8fa8; }

.form-message, .dashboard-message { min-height: 20px; color: #5db89a !important; }
.form-message.error, .dashboard-message.error { color: #d97a84 !important; }

.dashboard { max-width: 1050px; margin: auto; }

.device-activation[hidden],
.device-code[hidden],
.device-code-entry[hidden] { display: none !important; }
.device-activation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(196, 165, 116, 0.28);
  border-radius: 12px;
  background: #12171f;
}
.device-activation span {
  color: #6b8fa8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.device-activation h2 { margin: 6px 0 8px; font-size: 18px; font-weight: 600; }
.device-activation p { margin: 0 0 12px; color: #8b97a8; font-size: 12px; }
.device-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #e8eef6;
}
.device-code-entry { display: grid; gap: 6px; }
.device-code-entry span { color: #8b97a8; font-size: 11px; }
.device-code-entry input {
  width: min(240px, 100%);
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(196, 165, 116, 0.28);
  border-radius: 8px;
  color: #e8eef6;
  background: #0b0e13;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 16px;
  letter-spacing: 0.08em;
  outline: none;
}
.device-code-entry input:focus { border-color: #c4a574; }

.dashboard-head { display: flex; align-items: start; justify-content: space-between; gap: 25px; margin-bottom: 38px; }
.dashboard-head p { color: #8b97a8; font-size: 13px; }
.dashboard .quiet {
  border-color: rgba(232, 238, 246, 0.12);
  color: #8b97a8;
  background: transparent;
}

.entitlement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.entitlement-grid article,
.account-actions article,
.upgrade {
  border: 1px solid rgba(196, 165, 116, 0.16);
  border-radius: 12px;
  background: #12171f;
}
.entitlement-grid article { display: grid; gap: 8px; min-height: 135px; padding: 24px; }
.entitlement-grid span { color: #8b97a8; font-size: 11px; }
.entitlement-grid b { font-size: 22px; font-weight: 600; }
.entitlement-grid small { color: #5c6778; font-size: 11px; }

.account-actions { display: grid; gap: 13px; margin-top: 13px; }
.account-actions article { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px; }
.account-actions h2, .upgrade h2 { margin: 0 0 6px; font-size: 15px; }
.account-actions p, .upgrade p { margin: 0; color: #8b97a8; font-size: 12px; line-height: 1.5; }

.upgrade { position: relative; margin-top: 13px; padding: 28px; }
.billing-period {
  position: absolute;
  right: 28px;
  top: 24px;
  display: flex;
  padding: 3px;
  border: 1px solid rgba(196, 165, 116, 0.16);
  border-radius: 8px;
}
.billing-period button { min-height: 30px; border: 0; color: #8b97a8; background: transparent; }
.billing-period button.selected { color: #0b0e13; background: #c4a574; }

.upgrade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 25px; }
.upgrade-grid article {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(196, 165, 116, 0.16);
  border-radius: 12px;
  background: #0b0e13;
}
.upgrade-grid article > span { font-size: 13px; font-weight: 700; }
.upgrade-grid article > b { font-size: 13px; text-align: right; }
.upgrade-grid article > small { color: #8b97a8; font-size: 11px; }
.upgrade-grid article > button { grid-column: 2; grid-row: 2; }

body.account-page .legal a { color: #6b8fa8; }
body.account-page .legal .eyebrow { color: #6b8fa8; }

@media (max-width: 760px) {
  .account-shell { padding: 35px 15px 70px; }
  .auth-panel { padding: 28px 22px; }
  .auth-panel form > div { flex-direction: column; }
  .entitlement-grid { grid-template-columns: 1fr; }
  .account-actions article { align-items: stretch; flex-direction: column; }
  .billing-period { position: static; width: fit-content; margin-top: 20px; }
  .upgrade-grid { grid-template-columns: 1fr; }
  .upgrade-grid article { grid-template-columns: 1fr; }
  .upgrade-grid article > button { grid-column: 1; grid-row: auto; }
  .dashboard-head { flex-direction: column; }
  .device-activation { flex-direction: column; align-items: stretch; }
}
