.account-page,
.account-page *,
.account-page *::before,
.account-page *::after { box-sizing: border-box; }

.account-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.account-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(17,20,23,.94);
  backdrop-filter: blur(14px);
}

.account-nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.account-nav .brand { min-width: 0; }
.account-nav .brand span { min-width: 0; }
.account-nav .brand strong,
.account-nav .brand small { white-space: nowrap; }

.compact-button {
  width: auto;
  min-height: 38px;
  padding-inline: 15px;
  font-size: 11px;
}

.account-main {
  position: relative;
  flex: 1;
  display: grid;
  align-items: center;
  padding: 46px 0 58px;
  overflow-x: clip;
}

.account-glow {
  position: absolute;
  inset: 8% auto auto 24%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(72,215,242,.065);
  filter: blur(125px);
  pointer-events: none;
}

.account-shell {
  position: relative;
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: minmax(0,.78fr) minmax(410px,.88fr);
  gap: clamp(34px,5vw,68px);
  align-items: center;
}

.account-intro { min-width: 0; }

.account-intro h1 {
  margin: 8px 0 18px;
  max-width: 660px;
  font-size: clamp(2.8rem,5vw,4.6rem);
  line-height: 1;
  letter-spacing: -.052em;
}

.account-intro h1 em {
  color: var(--cyan);
  font-style: normal;
}

.account-intro > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.account-security {
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 21px;
  color: #c8d1d7;
  font-size: 12px;
  line-height: 1.45;
}

.account-security span {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(105,216,168,.1);
  color: var(--green);
  font-weight: 900;
}

.account-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(25,29,33,.97);
  box-shadow: var(--shadow);
}

.account-card h2 {
  margin: 5px 0;
  font-size: 24px;
}

.card-kicker {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .14em;
}

.muted-copy {
  min-width: 0;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.account-card label {
  display: block;
  margin: 13px 0 6px;
  color: #b8c1c7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .075em;
}

.account-card input {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.account-card input:focus {
  border-color: #3c91a5;
  box-shadow: 0 0 0 3px rgba(72,215,242,.08);
}

.full-button {
  width: 100%;
  margin-top: 15px;
}

.account-help,
.account-fineprint {
  margin: 16px 0 0;
  color: #7f8a92;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.account-help a,
.account-fineprint a { color: var(--cyan); }

.account-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #386879;
  border-radius: 9px;
  background: #122b33;
  color: #c9f4fb;
  font-size: 12px;
  line-height: 1.45;
}

.account-message.error {
  border-color: #75404b;
  background: #321b21;
  color: #ffd8df;
}

.forgot-password-link {
  display: block;
  margin: 13px auto 0;
  padding: 3px 5px;
  border: 0;
  background: none;
  color: #aab6bd;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .055em;
  cursor: pointer;
}

.forgot-password-link:hover,
.forgot-password-link:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Painel autenticado */
.account-page.is-authenticated .account-main {
  align-items: start;
  padding: 28px 0 48px;
}

.account-page.is-authenticated .account-shell {
  max-width: 1180px;
  display: block;
}

.account-page.is-authenticated .account-intro,
.account-page.is-authenticated #login-panel { display: none !important; }

.dashboard-card {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background:
    linear-gradient(110deg,rgba(72,215,242,.065),transparent 38%),
    rgba(25,29,33,.96);
  box-shadow: 0 14px 42px rgba(0,0,0,.18);
}

.dashboard-user {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.dashboard-user > div { min-width: 0; }

.account-avatar {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(72,215,242,.36);
  border-radius: 14px;
  background: linear-gradient(145deg,#35cce8,#168aa4);
  color: #071216;
  font-size: 20px;
  font-weight: 950;
  box-shadow: 0 8px 25px rgba(35,190,222,.13);
}

.dashboard-user h2 {
  margin: 2px 0 1px;
  font-size: 20px;
}

.dashboard-user .muted-copy {
  max-width: 430px;
  margin: 0;
  font-size: 12px;
}

.dashboard-head-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.plan-summary {
  display: grid;
  grid-template-columns: repeat(2,minmax(92px,1fr));
  gap: 7px;
  margin: 0;
}

.plan-summary > div {
  min-width: 92px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(12,17,20,.62);
}

.plan-summary span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .09em;
}

.plan-summary strong {
  display: block;
  margin-top: 2px;
  color: var(--cyan);
  font-size: 14px;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font: inherit;
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
}

.logout-button {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #aab5bc;
  white-space: nowrap;
}

.logout-button:hover {
  border-color: #47616b;
  color: #eef6f9;
}

.account-workspace {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.account-workspace:has(.referral-box[hidden]) {
  grid-template-columns: minmax(0,1fr);
}

.subscription-panel,
.referral-box {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(25,29,33,.96);
  box-shadow: 0 14px 42px rgba(0,0,0,.16);
}

.section-heading,
.referral-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.section-heading h3,
.referral-head h3 {
  margin: 3px 0 0;
  font-size: 17px;
}

.refresh-button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #31525d;
  border-radius: 8px;
  background: rgba(72,215,242,.05);
}

.refresh-button:hover { background: rgba(72,215,242,.1); }

.billing-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  align-items: start;
  gap: 10px;
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid #2e515d;
  border-radius: 10px;
  background: #15242a;
}

.billing-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(72,215,242,.12);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
}

.billing-summary p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #dde5e9;
  font-size: 12px;
  line-height: 1.4;
}

.billing-summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.checkout-config {
  min-width: 0;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(10,14,17,.55);
}

.checkout-config[hidden] { display: none; }
.checkout-config label { margin: 0 0 6px; }
.checkout-config label:not(:first-child) { margin-top: 12px; }
.checkout-config label + select,
.checkout-config label + input { margin-bottom: 9px; }

.checkout-config label span {
  color: #d3b75e;
  font-size: 8px;
  letter-spacing: 0;
}

.checkout-config select {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.checkout-config select:focus {
  border-color: #3c91a5;
  box-shadow: 0 0 0 3px rgba(72,215,242,.08);
}

.checkout-config .payer-email-help {
  display: block;
  margin: -3px 0 9px;
  color: var(--muted);
  font-size: 9px;
}

.checkout-config #payer-email-group[hidden] { display: none; }

.payment-methods {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}

.payment-method {
  position: relative;
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) 15px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.payment-method:hover { border-color: #3a6572; }

.payment-method.active {
  border-color: var(--cyan);
  background: rgba(72,215,242,.075);
  box-shadow: inset 0 0 0 1px rgba(72,215,242,.12);
}

.payment-method:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.payment-method-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #132b33;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 950;
}

.payment-method b,
.payment-method small { display: block; }

.payment-method b {
  overflow-wrap: anywhere;
  font-size: 9px;
  letter-spacing: .035em;
}

.payment-method small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
}

.payment-method i {
  visibility: hidden;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: #081215;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
}

.payment-method.active i { visibility: visible; }

.coupon-entry {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
}

.coupon-entry input {
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.coupon-entry input.invalid {
  border-color: #a54b5e;
  box-shadow: 0 0 0 3px rgba(255,100,124,.08);
}

.coupon-entry span {
  min-width: 82px;
  padding: 9px 10px;
  border: 1px solid #4a5157;
  border-radius: 8px;
  background: #1e2428;
  color: #aeb8be;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.coupon-entry span.applied {
  border-color: #577231;
  background: rgba(140,183,64,.11);
  color: #d9f49d;
}

.coupon-entry span.invalid {
  border-color: #75404b;
  background: #321b21;
  color: #ffd8df;
}

.checkout-config > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.dashboard-actions {
  min-width: 0;
  display: grid;
}

.dashboard-actions .button {
  min-height: 44px;
  font-size: 11px;
}

.danger-button {
  color: #ff91a4;
  border-color: #70404a;
}

.referral-box {
  margin: 0;
}

.referral-rate {
  flex: 0 0 auto;
  min-width: 51px;
  padding: 7px 9px;
  border: 1px solid #356b59;
  border-radius: 999px;
  background: rgba(105,216,168,.08);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.referral-explanation {
  margin: 10px 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.referral-link-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 7px;
}

.referral-link-row .button {
  min-height: 42px;
  padding-inline: 12px;
  font-size: 10px;
}

.referral-code-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: #7f8b93;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

.referral-code-line strong {
  color: var(--cyan);
  letter-spacing: .1em;
}

.referral-code-line span {
  margin-left: auto;
  color: var(--green);
}

.referral-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 16px;
  color: #cbd4d9;
  font-size: 11px;
}

.referral-progress-copy b { color: var(--cyan); }

.referral-progress {
  height: 7px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #101518;
}

.referral-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#28bcd9,var(--cyan-bright));
  transition: width .3s ease;
}

.referral-values {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
  margin-top: 13px;
}

.referral-values > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}

.referral-values span {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .055em;
}

.referral-values strong {
  display: block;
  margin-top: 3px;
  color: #e8f0f3;
  font-size: 13px;
}

.referral-withdrawal-status {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #65532b;
  border-radius: 9px;
  background: #2c2618;
  color: #ffe4a0;
  font-size: 11px;
}

.referral-withdrawal-form {
  margin-top: 13px;
  padding: 12px;
  border: 1px solid #2e6651;
  border-radius: 10px;
  background: rgba(105,216,168,.055);
}

.referral-form-copy { display: grid; }
.referral-form-copy small { color: var(--muted); }

.referral-form-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 130px minmax(0,1fr);
  gap: 7px;
  margin-top: 9px;
}

.referral-form-grid select {
  width: 100%;
  min-height: 44px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
}

.referral-withdrawal-form .full-button {
  min-height: 42px;
  margin-top: 8px;
}

.referral-footnote {
  margin: 12px 0 0;
  color: #737f87;
  font-size: 9px;
  line-height: 1.5;
}

.account-footer {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #78848c;
  font-size: 11px;
  text-align: center;
}

/* Recuperação de senha */
.reset-modal {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.reset-modal[hidden] { display: none; }

.reset-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,8,.82);
  backdrop-filter: blur(8px);
}

.reset-dialog {
  position: relative;
  width: min(470px,100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
  border: 1px solid #31515b;
  border-radius: 17px;
  background:
    linear-gradient(145deg,rgba(72,215,242,.045),transparent 38%),
    #171d21;
  box-shadow: 0 30px 90px #000d;
}

.reset-dialog h2 {
  margin: 5px 42px 5px 0;
  color: var(--text);
  font-size: 24px;
}

.reset-subtitle {
  margin: 0 34px 18px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.reset-subtitle strong {
  color: #dbe7eb;
  overflow-wrap: anywhere;
}

.reset-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.reset-close:hover { border-color: #4b6c77; }
.reset-message { margin: 0 0 13px; }

.reset-dialog label {
  display: block;
  margin: 13px 0 6px;
  color: #b8c1c7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .075em;
}

.reset-dialog input {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.reset-dialog input:focus {
  border-color: #3c91a5;
  box-shadow: 0 0 0 3px rgba(72,215,242,.08);
}

.reset-code-input {
  text-align: center;
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: .34em;
}

.reset-help {
  margin: 13px 0 0;
  color: #76838a;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.reset-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
}

.reset-secondary-actions .text-button {
  padding: 5px 0;
  color: #9aa7ae;
}

.reset-secondary-actions .text-button:hover { color: var(--cyan); }

.reset-success {
  padding: 20px 0 4px;
  text-align: center;
}

.reset-success .reset-subtitle { margin-right: 0; }

.reset-success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border: 1px solid #39735e;
  border-radius: 18px;
  background: rgba(105,216,168,.1);
  color: var(--green);
  font-size: 27px;
  font-weight: 950;
}

.reset-success h2 { margin-right: 0; }

/* PIX */
.pix-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pix-modal[hidden] { display: none; }

.pix-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,8,.8);
  backdrop-filter: blur(7px);
}

.pix-dialog {
  position: relative;
  width: min(700px,100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 25px;
  border: 1px solid #31515b;
  border-radius: 17px;
  background: #171d21;
  box-shadow: 0 30px 90px #000c;
}

.pix-dialog h2 {
  margin: 5px 0;
  font-size: 25px;
}

.pix-subtitle {
  margin: 0 42px 18px 0;
  color: var(--muted);
}

.pix-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.pix-content {
  min-width: 0;
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 18px;
  align-items: center;
}

.pix-qr-wrap {
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 15px;
  background: #fff;
}

.pix-qr-wrap img {
  display: block;
  width: 234px;
  height: 234px;
  max-width: 100%;
  object-fit: contain;
}

.pix-details { min-width: 0; }

.pix-details label {
  display: block;
  margin: 13px 0 6px;
  color: #b8c1c7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
}

.pix-price {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.pix-price span,
.pix-price strong,
.pix-price small { display: block; }

.pix-price span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.pix-price strong {
  margin-top: 2px;
  color: var(--cyan);
  font-size: 23px;
}

.pix-price small { color: #b8c1c7; }

#pix-br-code {
  width: 100%;
  max-width: 100%;
  min-height: 70px;
  resize: none;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0f1417;
  color: #bec9cf;
  font: 10px/1.35 Consolas,monospace;
  word-break: break-all;
}

.pix-copy,
.pix-open-bank {
  min-height: 41px;
  margin-top: 8px;
  font-size: 10px;
}

.pix-status {
  min-width: 0;
  display: grid;
  grid-template-columns: 14px auto minmax(0,1fr);
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid #5f522d;
  border-radius: 10px;
  background: #292417;
  color: #f4daa0;
}

.pix-status b {
  font-size: 9px;
  letter-spacing: .05em;
}

.pix-status small {
  color: #b9a97f;
  text-align: right;
}

.pix-status.confirmed {
  border-color: #306b55;
  background: #172b23;
  color: #9bf1c9;
}

.pix-status.expired {
  border-color: #70404a;
  background: #321b21;
  color: #ffd8df;
}

.pix-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4ca67;
  box-shadow: 0 0 0 0 rgba(244,202,103,.45);
  animation: pix-pulse 1.5s infinite;
}

.pix-status.confirmed .pix-pulse {
  background: var(--green);
  animation: none;
}

.pix-status.expired .pix-pulse {
  background: #ff7189;
  animation: none;
}

.pix-check {
  display: block;
  margin: 14px auto 0;
}

@keyframes pix-pulse {
  70% { box-shadow: 0 0 0 8px rgba(244,202,103,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,202,103,0); }
}

/* Páginas legais */
.legal-main {
  flex: 1;
  padding: 70px 0;
}

.legal-card {
  width: min(820px,100%);
  margin-inline: auto;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.legal-card h1 {
  margin: 4px 0 8px;
  font-size: clamp(2rem,5vw,3.4rem);
}

.legal-card h2 {
  margin: 30px 0 8px;
  font-size: 18px;
}

.legal-card p,
.legal-card li { color: var(--muted); }
.legal-card a { color: var(--cyan); }

@media (max-width: 1040px) {
  .account-shell {
    max-width: 760px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .account-intro {
    max-width: 650px;
    text-align: center;
    margin-inline: auto;
  }

  .account-intro > p,
  .account-security {
    margin-inline: auto;
    justify-content: center;
  }

  .account-card {
    width: min(500px,100%);
    margin-inline: auto;
  }

  .account-page.is-authenticated .account-shell { max-width: 860px; }
  .account-page.is-authenticated .dashboard-card { width: 100%; }
  .account-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .account-page.is-authenticated .account-main { padding-top: 18px; }

  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .dashboard-head-side {
    width: 100%;
    justify-content: space-between;
  }

  .plan-summary {
    flex: 1;
    width: 100%;
  }

  .logout-button { flex: 0 0 auto; }
}

@media (max-width: 560px) {
  .account-nav { min-height: 62px; }
  .account-nav .brand img { width: 34px; height: 34px; }
  .account-nav .brand strong { font-size: 13px; }
  .account-nav .brand small { font-size: 8px; }
  .compact-button { min-height: 35px; padding-inline: 11px; font-size: 9px; }
  .account-main { padding: 34px 0 42px; }
  .account-intro h1 { font-size: 2.75rem; }
  .account-intro > p { font-size: 14px; }
  .account-card,
  .legal-card { padding: 21px; }

  .dashboard-head,
  .subscription-panel,
  .referral-box {
    padding: 15px;
    border-radius: 12px;
  }

  .dashboard-user { align-items: flex-start; }
  .account-avatar { width: 43px; height: 43px; border-radius: 12px; font-size: 17px; }
  .dashboard-user h2 { font-size: 18px; }

  .dashboard-head-side {
    align-items: stretch;
    flex-direction: column;
  }

  .logout-button { width: 100%; }

  .plan-summary {
    grid-template-columns: 1fr 1fr;
  }

  .plan-summary > div { min-width: 0; }
  .section-heading { align-items: flex-start; }
  .section-heading h3 { font-size: 16px; }
  .checkout-config { padding: 12px; }
  .payment-methods,
  .coupon-entry,
  .referral-link-row,
  .referral-form-grid { grid-template-columns: 1fr; }

  .coupon-entry span { text-align: left; }
  .referral-values { grid-template-columns: 1fr; }
  .reset-modal { padding: 12px; }
  .reset-dialog { max-height: calc(100vh - 24px); padding: 21px; }
  .reset-dialog h2 { font-size: 21px; }
  .reset-subtitle { margin-right: 25px; }
  .reset-secondary-actions { align-items: stretch; flex-direction: column; gap: 3px; }
  .pix-modal { padding: 12px; }
  .pix-dialog { max-height: calc(100vh - 24px); padding: 20px; }
  .pix-content { grid-template-columns: 1fr; }
  .pix-qr-wrap { width: min(250px,100%); margin-inline: auto; }
  .pix-status { grid-template-columns: 14px minmax(0,1fr); }
  .pix-status small { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 380px) {
  .account-nav .brand small { display: none; }
  .account-nav .brand img { display: none; }
  .account-nav .brand strong { white-space: normal; }
  .dashboard-user .muted-copy { font-size: 10px; }
}
