:root {
  --purple: var(--color-purple);
  --deep: var(--color-ink);
  --yellow: var(--color-yellow);
  --cream: var(--color-surface);
  --muted: var(--color-muted);
  --line: var(--color-border);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--deep);
  font-family: "DM Sans", sans-serif;
}
.flow-header {
  height: 88px;
  padding: 14px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.flow-header img {
  width: 112px;
  max-height: 58px;
  object-fit: contain;
}
.flow-header > a:last-child {
  color: var(--deep);
  font-weight: 700;
  text-decoration: none;
}
.flow-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 80px;
}
.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #918897;
  font-size: 13px;
  font-weight: 700;
}
.steps b,
.steps > span {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.steps b {
  color: var(--purple);
}
.steps b span,
.steps em {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eee8ff;
  color: var(--purple);
  font-style: normal;
}
.steps b span {
  background: var(--purple);
  color: #fff;
}
.steps i {
  width: 70px;
  height: 1px;
  background: #d8cfdd;
}
.page-heading {
  text-align: center;
  margin: 42px auto 38px;
}
.page-heading p,
.order-summary > p,
.checkout-form > p {
  margin: 0 0 8px;
  color: var(--purple);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.page-heading h1 {
  font: 700 clamp(42px, 6vw, 70px)/0.95 "Space Grotesk";
  letter-spacing: -0.055em;
  margin: 0 0 14px;
}
.page-heading > span {
  color: var(--muted);
  font-size: 17px;
}
.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}
.cart-list {
  display: grid;
  gap: 14px;
}
.page-cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.page-cart-item img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 15px;
}
.item-info {
  display: grid;
  gap: 6px;
}
.item-info > a {
  font: 700 20px "Space Grotesk";
  color: inherit;
  text-decoration: none;
}
.item-info span {
  color: var(--muted);
}
.item-info strong {
  color: var(--purple);
  font-size: 18px;
}
.item-actions {
  display: grid;
  justify-items: end;
  gap: 18px;
}
.remove-item {
  border: 0;
  background: none;
  color: #9a3e4b;
  text-decoration: underline;
  cursor: pointer;
}
.order-summary,
.checkout-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 55px #2a193b0c;
}
.order-summary {
  position: sticky;
  top: 24px;
}
.order-summary h2,
.checkout-form h2 {
  font: 700 27px "Space Grotesk";
  margin: 0 0 24px;
}
.order-summary > div:not(.checkout-items) {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  color: var(--muted);
}
.order-summary > div b {
  color: var(--deep);
  text-align: right;
}
.order-summary .summary-total {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding: 20px 0;
  align-items: end;
  color: var(--deep);
}
.summary-total strong {
  font: 700 29px "Space Grotesk";
  color: var(--purple);
}
.flow-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  padding: 17px 18px;
  font: 800 14px "DM Sans";
  text-decoration: none;
  cursor: pointer;
}
.flow-primary:hover {
  background: #5830ca;
}
.flow-secondary {
  display: block;
  text-align: center;
  margin: 15px 0;
  color: var(--deep);
  font-weight: 700;
  text-decoration: none;
}
.order-summary > small {
  display: block;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
}
.empty-page-cart {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 70px 20px;
}
.empty-page-cart span {
  font-size: 44px;
}
.empty-page-cart h2 {
  font: 700 31px "Space Grotesk";
  margin: 14px 0 7px;
}
.empty-page-cart p {
  color: var(--muted);
}
.empty-page-cart a {
  max-width: 290px;
  margin: 24px auto 0;
}
.checkout-layout {
  grid-template-columns: minmax(0, 1fr) 410px;
}
.checkout-form label:not(.terms-check) {
  display: grid;
  gap: 8px;
  font-weight: 700;
}
.checkout-form input[type="email"] {
  height: 56px;
  padding: 0 15px;
  border: 1px solid #cfc4d5;
  border-radius: 13px;
  font: inherit;
}
.checkout-form label small {
  color: var(--muted);
  font-weight: 400;
}
.digital-notice {
  display: grid;
  gap: 5px;
  margin: 23px 0;
  padding: 17px;
  background: #fff5c8;
  border-radius: 14px;
}
.digital-notice span {
  color: #62572c;
  line-height: 1.5;
}
.terms-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  line-height: 1.5;
  margin: 22px 0;
}
.terms-check input {
  margin-top: 4px;
}
.terms-check a {
  color: var(--purple);
}
.checkout-status {
  min-height: 23px;
  color: #b42318;
  font-weight: 700;
}
.checkout-items {
  display: grid;
  gap: 14px;
  padding: 0 0 15px;
}
.checkout-line {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 11px;
  align-items: center;
  padding: 0;
  color: var(--deep);
}
.checkout-line img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}
.checkout-line div {
  display: grid;
  gap: 2px;
  padding: 0;
}
.checkout-line b {
  font-size: 14px;
  text-align: left;
}
.checkout-line span {
  font-size: 13px;
  color: var(--muted);
}
.edit-cart {
  display: block;
  text-align: center;
  margin: 4px 0 17px;
  color: var(--purple);
  font-weight: 700;
}
.cart-button {
  text-decoration: none;
}
.flow-primary[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
}
@media (max-width: 900px) {
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .order-summary {
    position: static;
  }
  .steps i {
    width: 25px;
  }
}
@media (max-width: 600px) {
  .flow-header {
    height: 74px;
    padding: 10px 18px;
  }
  .flow-header img {
    width: 90px;
  }
  .flow-header > a:last-child {
    font-size: 13px;
  }
  .flow-page {
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }
  .steps {
    gap: 5px;
    font-size: 11px;
  }
  .steps i {
    width: 12px;
  }
  .steps b span,
  .steps em {
    width: 23px;
    height: 23px;
  }
  .page-heading {
    margin: 31px auto 27px;
  }
  .page-cart-item {
    grid-template-columns: 82px 1fr;
    padding: 11px;
    gap: 12px;
  }
  .page-cart-item img {
    width: 82px;
    height: 82px;
  }
  .item-info > a {
    font-size: 16px;
  }
  .item-actions {
    grid-column: 1/-1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .order-summary,
  .checkout-form {
    padding: 21px;
  }
  .checkout-layout {
    display: flex;
    flex-direction: column;
  }
  .checkout-form,
  .checkout-summary {
    width: 100%;
  }
  .checkout-form {
    order: 2;
  }
  .checkout-summary {
    order: 1;
  }
}
.google-gate {
  width: min(560px, 100%);
  margin: 0 auto 70px;
  padding: 42px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 20px 60px #2a193b12;
}
.google-gate[hidden],
.checkout-layout[hidden],
#accountContent[hidden] {
  display: none;
}
.google-mark {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  margin: 0 auto 17px;
  border: 1px solid #ddd;
  border-radius: 50%;
  font: 700 27px Arial;
  color: #4285f4;
}
.google-gate h2 {
  font: 700 31px "Space Grotesk";
  margin: 0 0 9px;
}
.google-gate p {
  color: var(--muted);
  line-height: 1.55;
}
.google-login {
  display: block;
  margin: 25px auto 10px;
  padding: 16px 20px;
  border: 1px solid #bbb;
  border-radius: 13px;
  background: #fff;
  color: #222;
  font-weight: 800;
  text-decoration: none;
}
.google-login:hover {
  background: #f6f3f8;
}
.google-gate small {
  display: block;
  color: #b42318;
}
.signed-user,
.account-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding: 13px;
  background: #f7f3fb;
  border-radius: 15px;
}
.signed-user img,
.account-user img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}
.signed-user div,
.account-user div {
  display: grid;
  gap: 2px;
  flex: 1;
}
.signed-user span,
.account-user span {
  color: var(--muted);
  font-size: 13px;
}
.signed-user a,
.account-user a {
  color: var(--purple);
  font-weight: 700;
  font-size: 13px;
}
.checkout-form input[readonly] {
  background: #f6f3f8;
  color: #555;
}
.flow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 35px clamp(20px, 5vw, 72px);
  background: var(--deep);
}
.flow-footer img {
  width: 145px;
  height: 58px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.flow-footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}
.flow-footer a {
  color: #e8e1ec;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.flow-footer a:hover {
  color: var(--yellow);
}
.account-page {
  max-width: 1040px;
}
.account-user {
  max-width: 650px;
  margin: 0 auto 25px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
}
.account-orders {
  display: grid;
  gap: 18px;
}
.account-order {
  padding: 27px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.order-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.order-heading small {
  color: var(--muted);
}
.order-heading h2 {
  font: 700 26px "Space Grotesk";
  margin: 5px 0;
}
.order-heading > strong {
  font: 700 24px "Space Grotesk";
  color: var(--purple);
}
.account-order > p {
  color: var(--muted);
}
.expiry {
  padding: 12px 14px;
  border-radius: 12px;
  background: #e9f8ee;
  color: #237642;
  font-weight: 700;
}
.expiry.expired {
  background: #f8e9eb;
  color: #9b3442;
}
.account-download {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  padding: 17px;
  border-radius: 14px;
  background: #eee7ff;
  color: var(--deep);
  text-decoration: none;
}
.account-download span {
  color: var(--purple);
  font-weight: 800;
}
@media (max-width: 600px) {
  .google-gate {
    padding: 28px 20px;
  }
  .flow-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .flow-footer div {
    justify-content: flex-start;
  }
  .order-heading {
    display: grid;
  }
  .account-download {
    display: grid;
    gap: 5px;
  }
}
.flow-header a:focus-visible,
.flow-primary:focus-visible,
.flow-secondary:focus-visible,
.remove-item:focus-visible,
.checkout-form input:focus-visible,
.terms-check a:focus-visible,
.google-login:focus-visible,
.flow-footer a:focus-visible,
.account-download:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}


/* ===== CENTRAL DA CONTA ===== */
.account-tabs{position:sticky;top:12px;z-index:20;display:flex;gap:8px;overflow-x:auto;margin:0 auto 35px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 30px #2a193b0d;scrollbar-width:none}.account-tabs::-webkit-scrollbar{display:none}.account-tabs a{flex:0 0 auto;padding:10px 13px;border-radius:10px;color:var(--deep);font-size:13px;font-weight:800;text-decoration:none}.account-tabs a:hover{background:#eee7ff;color:var(--purple)}
.account-section{scroll-margin-top:90px;margin:0 0 70px}.account-section-head{margin-bottom:18px}.account-section-head>p{margin:0;color:var(--purple);font-size:11px;font-weight:900;letter-spacing:.14em}.account-section-head h2{margin:5px 0;font:700 32px 'Space Grotesk'}.account-section-head span{color:var(--muted)}
.download-item-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:25px;background:#fff;border:1px solid var(--line);border-radius:22px}.download-item-card small,.download-item-card span{color:var(--muted)}.download-item-card h3{margin:6px 0;font:700 22px 'Space Grotesk'}.download-item-card p{margin:12px 0 0}.download-now{flex:0 0 auto;padding:15px 18px;border-radius:999px;background:var(--purple);color:#fff;text-decoration:none;font-size:13px;font-weight:900}
.account-art-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.account-art-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:18px;color:var(--deep);text-decoration:none}.account-art-card img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.account-art-card div{display:grid;gap:6px;padding:13px}.account-art-card span{color:var(--purple);font-weight:800}.empty-account{grid-column:1/-1;padding:28px;background:#fff;border:1px dashed #cfc5d5;border-radius:18px}.empty-account h3{margin:0 0 6px;font:700 21px 'Space Grotesk'}.empty-account p{color:var(--muted)}.empty-account a{color:var(--purple);font-weight:800}.account-info-card{padding:26px;background:#fff;border:1px solid var(--line);border-radius:22px}.inline-action{display:inline-flex;width:auto;margin-top:10px;text-decoration:none}.account-profile-detail{display:flex;gap:18px;align-items:flex-start}.account-profile-detail img{width:72px;height:72px;border-radius:50%;object-fit:cover}.account-profile-detail div{display:grid;gap:4px}.account-profile-detail small{margin-top:6px;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.12em}.account-profile-detail p{color:var(--muted)}.account-signout{display:inline-block;margin-top:20px;color:#8b1e2d;font-weight:800}.account-support{display:flex;gap:12px;flex-wrap:wrap}.account-support a{padding:15px 18px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--deep);font-weight:800;text-decoration:none}
@media(max-width:800px){.account-art-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.download-item-card{align-items:flex-start;flex-direction:column}.download-now{width:100%;text-align:center}.account-tabs{top:6px}}
