/* =========================================================
   AUTH / CUENTA - INFINITUM 3D
========================================================= */

/* BOTÓN DE CUENTA DEL HEADER */

.account-button {
  height: 44px;
  min-width: 86px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #dfe4ee;
  border-radius: 13px;
  background: #ffffff;
  color: var(--dark);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(30, 50, 100, 0.06);
  transition: 0.25s ease;
  white-space: nowrap;
}

.account-button:hover {
  border-color: #c7d3e8;
  color: var(--blue);
  box-shadow: 0 10px 25px rgba(30, 50, 100, 0.1);
  transform: translateY(-1px);
}

/* Icono de usuario dibujado con CSS para mantener el mismo estilo visual */
.account-button-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
}

.account-button-icon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.account-button-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 13px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  transform: translateX(-50%);
}

.auth-main {
  min-height: calc(100vh - 82px);
  padding: 70px 0 90px;
  background:
    radial-gradient(circle at 12% 18%, rgba(22,119,255,.11), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(33,212,231,.12), transparent 28%),
    radial-gradient(circle at 70% 85%, rgba(130,87,230,.10), transparent 30%),
    var(--background);
}

.auth-shell {
  width: min(1080px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #e8ecf5;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-visual {
  position: relative;
  min-height: 620px;
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(19, 57, 145, 0.82) 0%,
      rgba(32, 79, 190, 0.58) 34%,
      rgba(62, 96, 210, 0.24) 58%,
      rgba(99, 95, 218, 0.10) 100%
    ),
    url("images/auth-banner-gato-impressora-3d.png")
      68% center / cover no-repeat;

  background-color: #3b74e8;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.00) 30%
    ),
    radial-gradient(
      circle at 16% 18%,
      rgba(255,255,255,0.18),
      transparent 22%
    ),
    radial-gradient(
      circle at 20% 76%,
      rgba(65, 205, 255, 0.12),
      transparent 24%
    );
  pointer-events: none;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(20, 42, 122, 0.30) 0%,
      rgba(20, 42, 122, 0.12) 34%,
      rgba(20, 42, 122, 0.00) 62%
    );
  pointer-events: none;
}

.auth-visual > * {
  position: relative;
  z-index: 1;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.auth-brand .logo-icon {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
}

.auth-brand-copy strong {
  display: block;
  font-size: 23px;
  font-weight: 900;
}

.auth-brand-copy small {
  font-size: 9px;
  letter-spacing: 2px;
  opacity: .85;
}

.auth-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 440px;
  transform: translateY(-28px);
}

.auth-visual-copy .eyebrow {
  color: rgba(255,255,255,.82);
}

.auth-visual-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -1.7px;
}

.auth-visual-copy p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
}

.auth-panel {
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-panel-header {
  margin-bottom: 30px;
}

.auth-panel-header .section-tag {
  display: inline-block;
  margin-bottom: 10px;
}

.auth-panel-header h2 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.1;
}

.auth-panel-header p {
  color: var(--text);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 900;
  color: var(--dark);
}

.auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  background: #fff;
  color: var(--dark);
  outline: none;
  transition: .2s ease;
}

.auth-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(22,119,255,.09);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 52px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6c7693;
  cursor: pointer;
  transform: translateY(-50%);
  transition: .2s ease;
}

.auth-password-toggle:hover {
  background: #f2f6ff;
  color: var(--blue);
}

.auth-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.auth-check input {
  accent-color: var(--blue);
}

.auth-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(22,119,255,.22);
  transition: .25s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
}

.auth-alt {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #edf0f5;
  color: var(--text);
  text-align: center;
  font-size: 14px;
}

.auth-alt a {
  display: inline-block;
  margin-left: 3px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 900;
  transition: .2s ease;
}

.auth-alt a:hover {
  background: #e2eeff;
  transform: translateY(-1px);
}

.auth-message {
  display: none;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-message.show { display: block; }
.auth-message.error { background: #fff0ef; color: #b13a31; }
.auth-message.success { background: #ecfff7; color: #157a53; }

.auth-demo-note {
  max-width: 390px;
  margin: 14px auto 0;
  color: #9aa3b7;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
  opacity: .82;
}

.account-main {
  min-height: calc(100vh - 82px);
  padding: 54px 0 90px;
}

.account-grid {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
}

.account-sidebar,
.account-content {
  border: 1px solid #e6eaf3;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 15px 45px rgba(50,67,120,.08);
}

.account-sidebar { padding: 26px; }

.account-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eaf4ff, #f1eaff);
  font-size: 30px;
}

.account-name {
  font-size: 22px;
  font-weight: 900;
}

.account-email {
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  word-break: break-word;
}

.account-nav {
  margin-top: 26px;
  display: grid;
  gap: 8px;
}

.account-nav a,
.account-nav button {
  width: 100%;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--dark);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.account-nav a:hover,
.account-nav button:hover,
.account-nav .active {
  background: #f2f6ff;
  color: var(--blue);
}

.account-content { padding: 32px; }

.account-content h1 {
  margin-bottom: 8px;
  font-size: 34px;
}

.account-subtitle {
  color: var(--text);
  line-height: 1.6;
}

.account-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.account-card {
  padding: 22px;
  border: 1px solid #e8ecf4;
  border-radius: 20px;
  background: #fbfcff;
}

.account-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.account-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.account-card p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.account-empty {
  margin-top: 28px;
  padding: 34px;
  border: 1px dashed #d8dfec;
  border-radius: 22px;
  text-align: center;
  background: #fbfcff;
}

.account-empty span {
  font-size: 38px;
}

.account-empty h3 {
  margin: 12px 0 7px;
}

.account-empty p {
  color: var(--text);
}

@media (max-width: 900px) {
  .account-button-text { display: none; }
  .account-button {
    width: 44px;
    min-width: 44px;
    padding: 0;
    gap: 0;
    border-radius: 13px;
  }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 300px; padding: 34px; }
  .auth-visual-copy { transform: translateY(-10px); }
  .auth-panel { padding: 38px 30px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .auth-main { padding: 30px 0 55px; }
  .auth-shell { width: 94%; border-radius: 24px; }
  .auth-visual { min-height: 260px; padding: 28px 24px; }
  .auth-visual-copy { transform: none; }
  .auth-visual-copy h1 { font-size: 36px; }
  .auth-panel { padding: 30px 22px; }
  .auth-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .account-content { padding: 24px 20px; }
}


/* =========================
   REGISTRO - AJUSTES VISUALES
========================= */

.auth-page[data-auth-page="register"] .auth-visual-copy {
  transform: translateY(-18px);
}

.auth-page[data-auth-page="register"] .auth-panel {
  padding-top: 34px;
  padding-bottom: 34px;
}

.auth-page[data-auth-page="register"] .auth-panel h1 {
  margin-bottom: 8px;
}

.auth-page[data-auth-page="register"] .auth-panel > p {
  margin-bottom: 22px;
}

.auth-page[data-auth-page="register"] .auth-form {
  gap: 16px;
}

.auth-page[data-auth-page="register"] .auth-submit {
  margin-top: 4px;
}

.auth-page[data-auth-page="register"] .auth-alt {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .auth-page[data-auth-page="register"] .auth-visual-copy {
    transform: translateY(-8px);
  }
}

@media (max-width: 640px) {
  .auth-page[data-auth-page="register"] .auth-visual-copy {
    transform: none;
  }
}


/* =========================================================
   MINHA CONTA - POLIMENTO VISUAL
========================================================= */

.account-main {
  min-height: calc(100vh - 82px);
  padding: 54px 0 72px;
  background:
    radial-gradient(circle at 9% 12%, rgba(22,119,255,.10), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(33,212,231,.11), transparent 31%),
    #f8faff;
}

.account-grid {
  width: min(1180px, 90%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  align-items: start;
}

.account-sidebar,
.account-content {
  border: 1px solid #edf1f7;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(35,52,100,.09);
}

.account-sidebar {
  position: sticky;
  top: 106px;
  padding: 24px;
  border-radius: 28px;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 4px 4px 22px;
  border-bottom: 1px solid #edf0f6;
}

.account-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8f3ff, #eee9ff);
}

.account-avatar-head {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #243251;
  border-radius: 50%;
  transform: translateX(-50%);
}

.account-avatar-body {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 25px;
  height: 14px;
  border: 2px solid #243251;
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  transform: translateX(-50%);
}

.account-name {
  color: var(--dark);
  font-size: 15px;
  font-weight: 900;
}

.account-email {
  max-width: 160px;
  margin-top: 3px;
  overflow: hidden;
  color: #7c86a1;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-nav {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.account-nav a,
.account-nav button {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #56617d;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
}

.account-nav-icon {
  width: 24px;
  display: inline-grid;
  place-items: center;
  color: #53617e;
  font-size: 18px;
}

.account-nav a:hover,
.account-nav button:hover,
.account-nav .active {
  background: #eef5ff;
  color: var(--blue);
}

.account-nav .active .account-nav-icon {
  color: var(--blue);
}

.account-nav button {
  margin-top: 8px;
  border-top: 1px solid transparent;
  color: #df5a60;
}

.account-nav button:hover {
  background: #fff1f2;
  color: #d9474f;
}

.account-content {
  padding: 38px;
  border-radius: 32px;
}

.account-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eef1f6;
}

.account-content h1 {
  margin-top: 10px;
  color: var(--dark);
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -1.3px;
}

.account-subtitle {
  max-width: 650px;
  margin-top: 10px;
  color: var(--text);
  line-height: 1.65;
}

.account-shop-button {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(81,91,226,.18);
}

.account-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.account-card {
  position: relative;
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #e8edf5;
  border-radius: 22px;
  background: #fff;
  transition: .22s ease;
}

.account-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(50,67,120,.10);
}

.account-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 21px;
  font-weight: 900;
}

.account-card strong {
  color: var(--dark);
  font-size: 16px;
  font-weight: 900;
}

.account-card p {
  margin-top: -7px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
}

.account-card-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #9aa4bb;
  font-size: 18px;
}

.account-card-favorites .account-card-icon {
  background: #fff0f6;
  color: #e65a98;
}

.account-card-addresses .account-card-icon {
  background: #edfbf7;
  color: #30aa89;
}

.account-empty {
  margin-top: 24px;
  padding: 42px 24px;
  border: 1px dashed #dbe3f0;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(22,119,255,.035), rgba(130,87,230,.035));
  text-align: center;
}

.account-empty-visual {
  position: relative;
  width: 72px;
  height: 62px;
  margin: 0 auto 12px;
}

.account-empty-box {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #eaf4ff, #f0eaff);
  color: var(--purple);
  font-size: 32px;
}

.account-empty-spark {
  position: absolute;
  top: -6px;
  right: 2px;
  color: var(--cyan);
  font-size: 20px;
}

.account-empty h3 {
  color: var(--dark);
  font-size: 20px;
}

.account-empty p {
  max-width: 480px;
  margin: 8px auto 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.account-security {
  margin-top: 24px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #e8edf5;
  border-radius: 22px;
  background: #fff;
}

.account-security h2 {
  margin-top: 8px;
  font-size: 21px;
}

.account-security p {
  max-width: 620px;
  margin-top: 7px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.account-secondary-button {
  min-width: 110px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #dde4f0;
  border-radius: 999px;
  background: #f6f8fc;
  color: #929cb3;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 930px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .account-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .account-nav a,
  .account-nav button {
    justify-content: center;
  }

  .account-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .account-main {
    padding: 28px 0 50px;
  }

  .account-content {
    padding: 24px 20px;
  }

  .account-hero,
  .account-security {
    flex-direction: column;
  }

  .account-shop-button {
    width: 100%;
    justify-content: center;
  }

  .account-nav {
    grid-template-columns: 1fr 1fr;
  }

  .account-nav a,
  .account-nav button {
    justify-content: flex-start;
  }
}


/* =========================================================
   MINHA CONTA - CORREÇÕES FINAIS V2
========================================================= */

.account-wave {
  display: inline-block;
  margin-left: 8px;
  font-size: .82em;
  transform: translateY(-2px);
}

.account-security {
  scroll-margin-top: 120px;
  margin-top: 28px;
  margin-bottom: 2px;
}

.account-security .section-tag {
  display: inline-block;
  margin-bottom: 2px;
}

.account-security h2 {
  margin-top: 7px;
}

.account-security p {
  margin-top: 8px;
}

@media (max-width: 700px) {
  .account-security {
    padding: 22px;
  }
}


/* =========================================================
   MI CUENTA - IDENTIDAD 3D AZUL
   Fondo decorativo: cabezal + gatito + formas 3D
========================================================= */

.account-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: calc(100vh - 82px);

  padding:
    54px 0 72px;

  background:
    linear-gradient(
      90deg,
      rgba(239, 247, 255, 0.88),
      rgba(247, 249, 255, 0.84),
      rgba(236, 248, 255, 0.88)
    ),
    url("images/fondo-mi-cuenta-3d.png");

  background-size:
    cover;

  background-position:
    center top;

  background-repeat:
    no-repeat;

  background-attachment:
    fixed;
}

/* Velo suave para que el contenido siga siendo protagonista */

.account-main::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: -1;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(255, 255, 255, 0.24),
      rgba(255, 255, 255, 0.62) 52%,
      rgba(255, 255, 255, 0.34) 100%
    );
}

/* Tarjetas ligeramente translúcidas para integrar el fondo */

.account-sidebar,
.account-content {
  position: relative;

  background:
    rgba(255, 255, 255, 0.94);

  backdrop-filter:
    blur(12px);

  -webkit-backdrop-filter:
    blur(12px);

  border:
    1px solid
    rgba(255, 255, 255, 0.76);

  box-shadow:
    0 24px 70px
    rgba(35, 52, 100, 0.12);
}

/* Un pequeño halo azul detrás del panel principal */

.account-content::before {
  content: "";

  position: absolute;

  width: 240px;
  height: 240px;

  right: -70px;
  top: -70px;

  border-radius:
    50%;

  z-index: -1;

  background:
    radial-gradient(
      circle,
      rgba(65, 155, 255, 0.16),
      rgba(65, 155, 255, 0)
      68%
    );
}

@media (max-width: 930px) {

  .account-main {
    background-position:
      center top;

    background-attachment:
      scroll;
  }

}

@media (max-width: 700px) {

  .account-main {
    background:
      linear-gradient(
        rgba(244, 249, 255, 0.90),
        rgba(244, 249, 255, 0.94)
      ),
      url("images/fondo-mi-cuenta-3d.png");

    background-size:
      auto 100%;

    background-position:
      center top;
  }

  .account-sidebar,
  .account-content {
    background:
      rgba(255, 255, 255, 0.96);
  }

}


/* =========================================================
   MI CUENTA - VERSÃO VISUAL FINAL
   Referência aprovada: fundo 3D azul + infinito + barco
   + cabeçal de impressão + gatinho
========================================================= */

.account-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: calc(100vh - 82px);

  padding:
    54px 0 78px;

  /* Mantemos a imagem bastante visível.
     O centro continua claro porque a própria imagem já foi
     criada com espaço negativo para o painel da conta. */
  background:
    linear-gradient(
      90deg,
      rgba(238, 247, 255, 0.20) 0%,
      rgba(255, 255, 255, 0.10) 28%,
      rgba(255, 255, 255, 0.10) 72%,
      rgba(238, 247, 255, 0.20) 100%
    ),
    url("images/fondo-mi-cuenta-3d.png");

  background-size:
    cover;

  background-position:
    center top;

  background-repeat:
    no-repeat;

  background-attachment:
    fixed;
}

/* Velo central muito suave: protege apenas a leitura,
   sem apagar os objetos 3D das laterais. */

.account-main::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: -1;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 50% 42%,
      rgba(255, 255, 255, 0.32) 0%,
      rgba(255, 255, 255, 0.22) 34%,
      rgba(255, 255, 255, 0.05) 63%,
      rgba(255, 255, 255, 0) 82%
    );
}

/* Eliminamos cualquier velo extra previo que pudiera
   blanquear demasiado el cabezal o el gatito. */

.account-main::after {
  content: none;
}

/* Painéis brancos como na referência aprovada. */

.account-sidebar,
.account-content {
  position: relative;

  background:
    rgba(255, 255, 255, 0.965);

  backdrop-filter:
    blur(7px);

  -webkit-backdrop-filter:
    blur(7px);

  border:
    1px solid
    rgba(230, 238, 248, 0.92);

  box-shadow:
    0 24px 64px
    rgba(45, 71, 125, 0.13);
}

/* Um pouco mais de espaço lateral entre o menu e o painel,
   aproximando a composição do mockup escolhido. */

.account-grid {
  width:
    min(1120px, 88%);

  gap:
    28px;
}

/* Mantém o conteúdo principal um pouco mais destacado. */

.account-content {
  border-radius:
    30px;
}

.account-sidebar {
  border-radius:
    26px;
}

/* Cartões mais brancos e limpos. */

.account-card,
.account-empty,
.account-security {
  background:
    rgba(255, 255, 255, 0.92);
}

/* Não deixamos o halo interno esconder o cabeçal/gatinho. */

.account-content::before {
  opacity:
    0.45;
}

/* TABLET */

@media (max-width: 930px) {

  .account-main {
    background-attachment:
      scroll;

    background-position:
      center top;
  }

  .account-grid {
    width:
      min(760px, 92%);

    gap:
      20px;
  }

}

/* MOBILE */

@media (max-width: 700px) {

  .account-main {
    padding:
      28px 0 54px;

    background:
      linear-gradient(
        rgba(245, 250, 255, 0.56),
        rgba(245, 250, 255, 0.62)
      ),
      url("images/fondo-mi-cuenta-3d.png");

    background-size:
      auto 100%;

    background-position:
      center top;

    background-repeat:
      no-repeat;
  }

  .account-main::before {
    background:
      rgba(255, 255, 255, 0.08);
  }

  .account-sidebar,
  .account-content {
    background:
      rgba(255, 255, 255, 0.97);
  }

}


/* =========================================================
   FAVORITOS - INFINITUM 3D
========================================================= */

.featured-product-visual {
  position: relative;
}

.favorite-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #6f7897;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(33,50,100,.12);
  transition: .22s ease;
}

.favorite-button:hover {
  transform: translateY(-2px) scale(1.04);
  color: #ff5f91;
}

.favorite-button.active {
  color: #ff4f87;
  background: #fff;
}

.favorite-button:disabled,
.account-favorite-remove:disabled {
  opacity: .55;
  cursor: wait;
}

.account-favorites-section {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #e8edf5;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
}

.account-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.account-section-heading h2 {
  margin: 8px 0 6px;
  color: var(--dark);
  font-size: 27px;
}

.account-section-heading p {
  max-width: 650px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

.account-favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-favorite-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #e7ebf4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30,50,100,.06);
}

.account-favorite-image {
  position: relative;
  height: 190px;
  padding: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #eef6ff,
      #f6efff
    );
}


.account-favorite-image img {
  position: static !important;

  width: auto !important;
  height: auto !important;

  max-width: 88% !important;
  max-height: 160px !important;

  object-fit: contain !important;

  transform: none !important;
}

.account-favorite-content {
  position: relative;
  z-index: 2;

  padding: 17px;

  background: transparent;
}

.account-favorite-heart {
  z-index: 3;
  padding: 0;
  border: 0;
  cursor: pointer;
  position: absolute;
  top: 13px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #ff4f87;
  font-size: 19px;
  box-shadow: 0 8px 20px rgba(30,50,100,.1);
}

.account-favorite-content {
  padding: 17px;
}

.account-favorite-content > div {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.account-favorite-content h3 {
  color: var(--dark);
  font-size: 17px;
}

.account-favorite-content strong {
  color: var(--blue);
  white-space: nowrap;
}

.account-favorite-remove {
  margin-top: 14px;
  padding: 8px 12px;
  border: 0;
  border-radius: 11px;
  background: #fff0f4;
  color: #d94170;
  font-weight: 800;
  cursor: pointer;
}

.account-favorites-empty {
  padding: 32px 20px 12px;
  text-align: center;
}

.account-favorites-empty h3 {
  margin: 10px 0 7px;
  color: var(--dark);
}

.account-favorites-empty p {
  max-width: 500px;
  margin: 0 auto 18px;
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .account-favorites-section {
    padding: 20px;
  }

  .account-favorites-grid {
    grid-template-columns: 1fr;
  }

  .account-favorite-image {
    height: 165px;
  }
}


/* =========================================================
   MORADAS / DIREÇÕES - INFINITUM 3D
========================================================= */

.account-addresses-section {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #e8edf5;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
}

.account-addresses-heading {
  align-items: center;
}

.account-address-add {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(81,91,226,.16);
  transition: .2s ease;
}

.account-address-add:hover {
  transform: translateY(-2px);
}

.account-address-form-wrap {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid #dfe7f3;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff, #fbf9ff);
}

.account-address-form-wrap[hidden] {
  display: none;
}

.account-address-form-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.account-address-form-title h3 {
  margin-top: 6px;
  color: var(--dark);
  font-size: 22px;
}

.account-address-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef3fb;
  color: #63708e;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.account-address-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-address-field {
  display: grid;
  gap: 7px;
}

.account-address-field-wide {
  grid-column: 1 / -1;
}

.account-address-field span {
  color: var(--dark);
  font-size: 12px;
  font-weight: 900;
}

.account-address-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dce4ef;
  border-radius: 13px;
  background: #fff;
  color: var(--dark);
  font: inherit;
  outline: none;
  transition: .2s ease;
}

.account-address-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(22,119,255,.08);
}

.account-address-form-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.account-address-cancel,
.account-address-save {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.account-address-cancel {
  border: 1px solid #dce3ef;
  background: #fff;
  color: #65708d;
}

.account-address-save {
  border: 0;
  background: var(--blue);
  color: #fff;
}

.account-address-save:disabled {
  opacity: .55;
  cursor: wait;
}

.account-addresses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-address-card {
  padding: 20px;
  border: 1px solid #e5ebf4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30,50,100,.055);
}

.account-address-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-address-pin {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #edfbf7;
  color: #30aa89;
  font-size: 21px;
  font-weight: 900;
}

.account-address-name-wrap {
  min-width: 0;
}

.account-address-name-wrap strong {
  display: block;
  overflow: hidden;
  color: var(--dark);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-address-name-wrap span {
  display: block;
  margin-top: 3px;
  color: #7c86a1;
  font-size: 11px;
}

.account-address-lines {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf1f6;
}

.account-address-lines p {
  margin: 3px 0;
  color: #5f6984;
  font-size: 12px;
  line-height: 1.55;
}

.account-address-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.account-address-edit,
.account-address-delete {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.account-address-edit {
  background: #eef5ff;
  color: var(--blue);
}

.account-address-delete {
  background: #fff0f4;
  color: #d94170;
}

.account-address-delete:disabled {
  opacity: .55;
  cursor: wait;
}

.account-addresses-empty {
  padding: 34px 20px 10px;
  text-align: center;
}

.account-addresses-empty h3 {
  margin: 10px 0 7px;
  color: var(--dark);
}

.account-addresses-empty p {
  max-width: 520px;
  margin: 0 auto 18px;
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .account-addresses-section {
    padding: 20px;
  }

  .account-addresses-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-address-fields,
  .account-addresses-grid {
    grid-template-columns: 1fr;
  }

  .account-address-field-wide {
    grid-column: auto;
  }

  .account-address-add {
    width: 100%;
  }
}


/* =========================================================
   PEDIDOS - INFINITUM 3D
========================================================= */

.account-orders-section {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #e8edf5;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
}

.account-orders-list {
  display: grid;
  gap: 16px;
}

.account-orders-empty {
  padding: 34px 20px 10px;
  text-align: center;
}

.account-orders-empty h3 {
  margin: 10px 0 7px;
  color: var(--dark);
}

.account-orders-empty p {
  max-width: 520px;
  margin: 0 auto 18px;
  color: var(--text);
  line-height: 1.6;
}

.account-order-card {
  overflow: hidden;
  border: 1px solid #e4eaf4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30,50,100,.055);
}

.account-order-head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #f5f9ff, #fbf8ff);
  border-bottom: 1px solid #e8edf5;
}

.account-order-number {
  display: block;
  color: var(--dark);
  font-size: 14px;
  font-weight: 900;
}

.account-order-date {
  display: block;
  margin-top: 4px;
  color: #7d87a0;
  font-size: 11px;
}

.account-order-status {
  padding: 7px 11px;
  border-radius: 999px;
  background: #eafaf5;
  color: #219778;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.account-order-products {
  padding: 18px 20px;
}

.account-order-label {
  display: block;
  margin-bottom: 10px;
  color: #73809c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.account-order-product {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf1f6;
}

.account-order-product:first-of-type {
  border-top: 0;
}

.account-order-product-image {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f2f6ff;
}

.account-order-product-image img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

.account-order-product-info {
  min-width: 0;
}

.account-order-product-info strong {
  display: block;
  overflow: hidden;
  color: var(--dark);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-order-product-info span {
  display: block;
  margin-top: 4px;
  color: #7d87a0;
  font-size: 11px;
}

.account-order-product-subtotal {
  color: var(--blue);
  font-size: 12px;
  white-space: nowrap;
}

.account-order-footer {
  padding: 18px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #e8edf5;
  background: #fbfcff;
}

.account-order-delivery strong {
  display: block;
  margin-bottom: 5px;
  color: var(--dark);
  font-size: 12px;
}

.account-order-delivery p {
  margin: 2px 0;
  color: #68738e;
  font-size: 11px;
}

.account-order-total {
  min-width: 120px;
  text-align: right;
}

.account-order-total span {
  display: block;
  margin-bottom: 4px;
  color: #7d87a0;
  font-size: 11px;
}

.account-order-total strong {
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

@media (max-width: 650px) {
  .account-orders-section {
    padding: 20px;
  }

  .account-order-head,
  .account-order-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-order-total {
    width: 100%;
    text-align: left;
  }

  .account-order-product {
    grid-template-columns: 48px 1fr;
  }

  .account-order-product-subtotal {
    grid-column: 2;
  }
}


/* =========================================================
   PROGRESO DE PEDIDOS
========================================================= */

.account-order-progress {
  position: relative;
  padding: 18px 20px 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid #e8edf5;
  background: #fff;
}

.account-order-progress::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 9%;
  right: 9%;
  height: 3px;
  border-radius: 999px;
  background: #e5eaf3;
}

.account-order-progress-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.account-order-progress-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #e5eaf3;
  color: #7e88a2;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 0 1px #dfe5ef;
}

.account-order-progress-step.active .account-order-progress-dot {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(22,119,255,.15);
}

.account-order-progress-step.current .account-order-progress-dot {
  transform: scale(1.08);
  box-shadow:
    0 0 0 1px rgba(22,119,255,.15),
    0 7px 18px rgba(22,119,255,.2);
}

.account-order-progress-label {
  max-width: 110px;
  color: #8a93a8;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.account-order-progress-step.active .account-order-progress-label {
  color: #52607e;
}

.account-order-progress-step.current .account-order-progress-label {
  color: var(--blue);
  font-weight: 900;
}

.account-order-status.status-preparing {
  background: #fff8e6;
  color: #b57a00;
}

.account-order-status.status-production {
  background: #f2edff;
  color: #7854ca;
}

.account-order-status.status-shipped {
  background: #edf5ff;
  color: #2674d9;
}

.account-order-status.status-delivered {
  background: #eafaf5;
  color: #219778;
}

@media (max-width: 700px) {
  .account-order-progress {
    overflow-x: auto;
    grid-template-columns: repeat(5, 110px);
    justify-content: start;
    padding-bottom: 20px;
  }

  .account-order-progress::before {
    left: 55px;
    right: auto;
    width: 440px;
  }
}



/* =========================================================
   BANNER AUTH 3D GLOBAL
   Gato da sorte + cabeçal de impressora 3D
========================================================= */

.auth-visual-copy {
  max-width: 430px;
  padding: 24px 26px 24px 0;
  text-shadow: 0 2px 14px rgba(16, 35, 92, 0.24);
}

.auth-visual-copy::before {
  content: "";
  position: absolute;
  inset: -18px -12px -18px -18px;
  z-index: -1;
  border-radius: 28px;
  background:
    linear-gradient(
      135deg,
      rgba(24, 62, 158, 0.24),
      rgba(65, 93, 198, 0.08)
    );
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.auth-brand {
  text-shadow: 0 2px 12px rgba(17, 40, 105, 0.24);
}

@media (max-width: 900px) {
  .auth-visual {
    background-position: 64% 44%;
  }
}

@media (max-width: 600px) {
  .auth-visual {
    background-position: 66% 42%;
  }

  .auth-visual-copy {
    padding-right: 0;
  }
}


/* =========================================================
   A MINHA CONTA — OPÇÃO 2
   Lista compacta + painel lateral de detalhes
========================================================= */

.account-dashboard-main {
  padding-top: 34px;
  padding-bottom: 54px;
}

.account-dashboard-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.account-dashboard-header,
.account-dashboard-tabs,
.account-dashboard-stats,
.account-tab-panel {
  position: relative;
  z-index: 2;
}

.account-dashboard-header {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #e5eaf3;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 38px rgba(34, 54, 101, .08);
  backdrop-filter: blur(14px);
}

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

.account-dashboard-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #1677ff, #7157ed);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(61, 92, 230, .18);
}

.account-dashboard-user h1 {
  margin: 3px 0 2px;
  color: var(--dark);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.account-dashboard-user p {
  color: #65718c;
  font-size: 13px;
}

.account-dashboard-email {
  display: block;
  margin-top: 4px;
  color: #8a94a9;
  font-size: 11px;
}

.account-dashboard-hidden-name {
  display: none;
}

.account-dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-dashboard-logout {
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffd6dc;
  border-radius: 13px;
  background: #fff8f9;
  color: #e04a5d;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.account-dashboard-tabs {
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  border: 1px solid #e4e9f2;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px rgba(34,54,101,.06);
}

.account-tab-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #53607c;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s ease;
}

.account-tab-button:hover {
  background: #f5f8ff;
  color: #1473ff;
}

.account-tab-button.active {
  background: linear-gradient(135deg, #eef5ff, #f5f1ff);
  color: #1473ff;
  box-shadow: inset 0 0 0 1px #dbe6fb;
}

.account-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.account-dashboard-stat {
  min-width: 0;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  border: 1px solid #e4e9f2;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px rgba(34,54,101,.05);
  cursor: pointer;
  transition: .2s ease;
}

.account-dashboard-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(34,54,101,.09);
}

.account-dashboard-stat-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 18px;
  font-weight: 900;
}

.account-dashboard-stat-icon.stat-blue {
  color: #1473ff;
  background: #eaf3ff;
}

.account-dashboard-stat-icon.stat-green {
  color: #18855d;
  background: #eafaf3;
}

.account-dashboard-stat-icon.stat-gold {
  color: #a37500;
  background: #fff7df;
}

.account-dashboard-stat-icon.stat-pink {
  color: #e24f7b;
  background: #fff0f5;
}

.account-dashboard-stat > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-dashboard-stat strong {
  color: var(--dark);
  font-size: 22px;
  line-height: 1;
}

.account-dashboard-stat span span {
  color: #7c879f;
  font-size: 11px;
  font-weight: 800;
}

.account-tab-panel {
  scroll-margin-top: 100px;
}

.account-tab-panel[hidden] {
  display: none !important;
}

.account-orders-section,
.account-favorites-section,
.account-addresses-section,
.account-security {
  margin-top: 0 !important;
  padding: 22px !important;
  border: 1px solid #e4e9f2 !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 14px 38px rgba(34,54,101,.07) !important;
}

.account-dashboard-section-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.account-order-search-wrap {
  width: min(300px, 100%);
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce3ef;
  border-radius: 13px;
  background: #fff;
  color: #8792a8;
}

.account-order-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--dark);
  font: inherit;
  font-size: 12px;
}

.account-orders-workspace {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr);
  gap: 14px;
  align-items: start;
}

.account-orders-compact-list-wrap {
  min-width: 0;
}

.account-orders-compact-list {
  max-height: 560px;
  display: grid !important;
  gap: 8px;
  overflow-y: auto;
  padding-right: 3px;
}

.account-orders-compact-list::-webkit-scrollbar {
  width: 6px;
}

.account-orders-compact-list::-webkit-scrollbar-thumb {
  background: #d9e2f2;
  border-radius: 999px;
}

.account-order-row {
  width: 100%;
  min-height: 76px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(190px, .9fr)
    90px
    20px;
  align-items: center;
  gap: 10px;
  border: 1px solid #e3e8f1;
  border-radius: 15px;
  background: #fff;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: .2s ease;
}

.account-order-row:hover {
  border-color: #bed0f3;
  background: #fbfdff;
  transform: translateY(-1px);
}

.account-order-row.active {
  border-color: #9dbcf8;
  background: linear-gradient(135deg, #f4f8ff, #fbf9ff);
  box-shadow: 0 8px 22px rgba(34,87,215,.08);
}

.account-order-row-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-order-row-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  background: #f5f7fb;
}

.account-order-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-order-row-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef4ff, #f5f0ff);
  color: #6c65e8;
  font-weight: 900;
}

.account-order-row-title {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-order-row-title strong {
  overflow: hidden;
  color: var(--dark);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-order-row-title small,
.account-order-row-total small {
  color: #8a95aa;
  font-size: 10px;
}

.account-order-row-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.account-order-row .account-order-status,
.account-order-row .account-payment-status {
  min-height: 24px;
  padding: 5px 9px;
  font-size: 10px;
}

.account-order-row-total {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.account-order-row-total strong {
  color: #1473ff;
  font-size: 14px;
}

.account-order-row-arrow {
  color: #4e7de4;
  font-size: 24px;
  line-height: 1;
}

.account-order-no-results {
  padding: 36px 20px;
  text-align: center;
  border: 1px dashed #dbe3ef;
  border-radius: 16px;
  color: #7c879d;
}

.account-order-no-results strong {
  color: var(--dark);
}

.account-order-detail-panel {
  position: sticky;
  top: 96px;
  min-height: 470px;
  padding: 18px;
  border: 1px solid #e3e8f1;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcff, #ffffff);
}

.account-order-detail-placeholder {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
  color: #8994aa;
}

.account-order-detail-placeholder > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #edf4ff;
  color: #1473ff;
  font-size: 20px;
}

.account-order-detail-placeholder strong {
  color: var(--dark);
}

.account-order-detail-placeholder p {
  max-width: 240px;
  font-size: 12px;
  line-height: 1.55;
}

.account-order-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9edf4;
}

.account-order-detail-head h3 {
  margin: 4px 0 2px;
  color: var(--dark);
  font-size: 17px;
}

.account-order-detail-head p {
  color: #8a94a8;
  font-size: 10px;
}

.account-order-detail-head-total {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.account-order-detail-head-total > strong {
  color: #1473ff;
  font-size: 18px;
}

.account-order-detail-progress {
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.account-order-detail-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.account-order-detail-step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e2e8f2;
  z-index: 0;
}

.account-order-detail-step:first-child::before {
  display: none;
}

.account-order-detail-step > span {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #e0e6ef;
  border-radius: 50%;
  background: #f5f7fa;
  color: #8792a6;
  font-size: 10px;
  font-weight: 900;
}

.account-order-detail-step.active > span {
  border-color: #3d78ff;
  background: #3d78ff;
  color: #fff;
  box-shadow: 0 5px 14px rgba(61,120,255,.18);
}

.account-order-detail-step.active::before {
  background: #91b4ff;
}

.account-order-detail-step small {
  max-width: 64px;
  color: #8792a6;
  font-size: 8px;
  text-align: center;
  line-height: 1.15;
}

.account-order-detail-step.active small {
  color: #356ce3;
  font-weight: 900;
}

.account-order-detail-block {
  padding: 14px 0;
  border-top: 1px solid #edf0f5;
}

.account-order-detail-label {
  display: block;
  margin-bottom: 9px;
  color: #7b87a0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.account-order-detail-products .account-order-product {
  padding: 8px 0;
}

.account-order-detail-products .account-order-product-image {
  width: 46px;
  height: 46px;
}

.account-order-detail-address {
  display: grid;
  gap: 2px;
  color: #69758e;
  font-size: 11px;
  line-height: 1.45;
}

.account-order-detail-address strong {
  color: var(--dark);
}

.account-order-detail-summary {
  margin-top: 6px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px;
  background: #f4f8ff;
}

.account-order-detail-summary span {
  color: #6f7b94;
  font-size: 11px;
  font-weight: 800;
}

.account-order-detail-summary strong {
  color: #1473ff;
  font-size: 20px;
}

.account-favorites-section,
.account-addresses-section,
.account-security {
  min-height: 360px;
}

.account-favorites-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.account-security {
  align-items: center;
}

.account-order-row.payment-return-target {
  animation: paymentReturnHighlight 2.8s ease;
}

@media (max-width: 980px) {
  .account-dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .account-orders-workspace {
    grid-template-columns: 1fr;
  }

  .account-order-detail-panel {
    position: static;
    min-height: auto;
  }

  .account-order-detail-placeholder {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .account-dashboard-shell {
    width: min(100% - 24px, 1180px);
  }

  .account-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-dashboard-header-actions {
    width: 100%;
  }

  .account-dashboard-header-actions > * {
    flex: 1;
    justify-content: center;
  }

  .account-dashboard-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .account-dashboard-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .account-order-search-wrap {
    width: 100%;
  }

  .account-order-row {
    grid-template-columns: 1fr auto;
  }

  .account-order-row-badges {
    grid-column: 1 / -1;
  }

  .account-order-row-total {
    grid-column: 2;
    grid-row: 1;
  }

  .account-order-row-arrow {
    display: none;
  }

  .account-favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .account-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .account-dashboard-header-actions {
    flex-direction: column;
  }

  .account-dashboard-header-actions > * {
    width: 100%;
  }

  .account-order-detail-progress {
    gap: 2px;
  }

  .account-order-detail-step small {
    font-size: 7px;
  }

  .account-favorites-grid {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   A MINHA CONTA — AJUSTES FINAIS
   10 pedidos por página + painel de detalhe mais largo
========================================================= */

.account-dashboard-shell {
  width: min(1240px, calc(100% - 40px));
}

.account-orders-workspace {
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(390px, 1fr);
  gap: 16px;
}

/* Dez linhas por página: sem scroll interno obrigatório. */
.account-orders-compact-list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.account-order-detail-panel {
  min-width: 0;
  padding: 20px;
}

.account-order-detail-products
  .account-order-product-info {
  min-width: 0;
}

.account-order-detail-address {
  font-size: 12px;
  line-height: 1.55;
}

.account-order-pagination {
  margin-top: 14px;
  padding: 10px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-order-pagination[hidden] {
  display: none !important;
}

.account-order-page-button {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  background: #ffffff;
  color: #1473ff;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s ease;
}

.account-order-page-button:hover:not(:disabled) {
  border-color: #a8c2f5;
  background: #f5f9ff;
  transform: translateY(-1px);
}

.account-order-page-button:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
}

.account-order-page-info {
  color: #7c879e;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .account-orders-workspace {
    grid-template-columns:
      minmax(0, 1.1fr)
      minmax(350px, .9fr);
  }
}

@media (max-width: 980px) {
  .account-orders-workspace {
    grid-template-columns: 1fr;
  }

  .account-order-detail-panel {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .account-order-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .account-order-page-button {
    width: 100%;
  }

  .account-order-page-info {
    text-align: center;
  }
}


/* =========================================================
   MORADAS · PAÍS, CIDADE E CÓDIGO POSTAL
========================================================= */
.account-address-field select{
  width:100%;
  min-height:48px;
  padding:0 42px 0 14px;
  border:1px solid #dce2ef;
  border-radius:13px;
  background:#fff;
  color:#273454;
  font:700 12px Nunito,sans-serif;
  outline:none;
}

.account-address-field select:focus{
  border-color:#7aa0ff;
  box-shadow:0 0 0 3px rgba(53,111,255,.08);
}

.account-address-field select:disabled{
  background:#f7f8fb;
  color:#98a0b2;
}

#addressCityManual{
  margin-top:8px;
}

.account-address-postal-helper{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:12px 14px;
  border:1px solid #e0e6f1;
  border-radius:13px;
  background:#f8faff;
}

.account-address-find-postal{
  min-height:38px;
  padding:0 13px;
  border:0;
  border-radius:10px;
  background:linear-gradient(135deg,#3176ff,#6f4fff);
  color:#fff;
  font:900 10px Nunito,sans-serif;
  cursor:pointer;
}

.account-address-find-postal:disabled{
  opacity:.55;
  cursor:wait;
}

.account-address-postal-helper small{
  flex:1;
  min-width:220px;
  color:#72809a;
  font-size:10px;
  line-height:1.45;
}


/* =========================================================
   SEGURANÇA · MINHA CONTA
========================================================= */
.account-security-card{
  padding:22px;
  border-radius:24px;
  background:#fff;
  border:1px solid rgba(72,88,150,.10);
  box-shadow:0 18px 45px rgba(39,55,114,.06);
}

.account-security-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  margin-bottom:20px;
}

.account-security-head h2{
  margin:6px 0 6px;
  color:#182545;
  font-size:28px;
}

.account-security-head p{
  margin:0;
  color:#77819a;
  font-size:12px;
}

.account-security-status{
  min-height:34px;
  display:flex;
  align-items:center;
  padding:0 12px;
  border-radius:999px;
  background:#e9f8ef;
  color:#17734b;
  font-size:10px;
  font-weight:900;
}

.account-security-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.account-security-panel{
  padding:18px;
  border:1px solid #e4e8f1;
  border-radius:18px;
  background:linear-gradient(145deg,#fff,#fbfcff);
}

.account-security-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#eef3ff;
  font-size:20px;
  margin-bottom:12px;
}

.account-security-copy h3{
  margin:0;
  color:#223052;
  font-size:16px;
}

.account-security-copy p{
  margin:6px 0 0;
  color:#76809a;
  font-size:11px;
  line-height:1.5;
}

.account-security-form{
  margin-top:16px;
  display:grid;
  gap:12px;
}

.account-security-form label{
  display:grid;
  gap:6px;
  color:#3a4664;
  font-size:10px;
  font-weight:900;
}

.account-password-field{
  min-height:46px;
  display:flex;
  align-items:center;
  border:1px solid #dce2ef;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.account-password-field input{
  min-width:0;
  flex:1;
  min-height:44px;
  border:0;
  outline:0;
  background:transparent;
  padding:0 12px;
  color:#233151;
  font:700 12px Nunito,sans-serif;
}

.account-password-toggle{
  width:44px;
  align-self:stretch;
  border:0;
  background:#f7f9fd;
  color:#62708d;
  cursor:pointer;
}

.account-security-primary,
.account-security-secondary,
.account-security-danger{
  min-height:42px;
  padding:0 14px;
  border-radius:11px;
  font:900 11px Nunito,sans-serif;
  cursor:pointer;
}

.account-security-primary{
  border:0;
  background:linear-gradient(135deg,#2f76ff,#6d4eff);
  color:#fff;
}

.account-security-secondary{
  margin-top:16px;
  border:1px solid #dce2ef;
  background:#fff;
  color:#315fd8;
}

.account-security-danger{
  margin-top:16px;
  border:1px solid rgba(200,67,92,.18);
  background:#fff4f6;
  color:#ad4056;
}

.account-security-primary:disabled,
.account-security-secondary:disabled,
.account-security-danger:disabled{
  opacity:.55;
  cursor:wait;
}

.account-security-email{
  margin-top:15px;
  padding:11px 12px;
  border-radius:11px;
  background:#f6f8fc;
  color:#43506e;
  font-size:11px;
  font-weight:800;
  word-break:break-word;
}

.account-security-message{
  padding:10px 12px;
  border-radius:10px;
  font-size:10px;
  font-weight:800;
}

.account-security-message[data-type="success"]{
  background:#eaf8ef;
  color:#17724b;
}

.account-security-message[data-type="error"]{
  background:#fff0f3;
  color:#a33f53;
}

.account-security-list{
  margin-top:15px;
  display:grid;
  gap:10px;
}

.account-security-list>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 12px;
  border-radius:11px;
  background:#f7f9fd;
}

.account-security-list span{
  color:#7b859e;
  font-size:10px;
  font-weight:800;
}

.account-security-list strong{
  color:#283656;
  font-size:11px;
  text-align:right;
}

@media(max-width:820px){
  .account-security-grid{
    grid-template-columns:1fr;
  }

  .account-security-head{
    flex-direction:column;
  }
}


/* =========================================================
   SEGURANÇA · AJUSTES VISUAIS FINAIS
========================================================= */

#security.account-tab-panel{
  width:100%;
}

#security .account-security-card{
  width:100%;
  max-width:none;
  padding:28px;
  border-radius:26px;
}

#security .account-security-head{
  margin-bottom:24px;
}

#security .account-security-head h2{
  font-size:32px;
  line-height:1.1;
}

#security .account-security-head p{
  font-size:13px;
  line-height:1.55;
}

#security .account-security-status{
  min-height:38px;
  padding:0 14px;
  font-size:11px;
}

#security .account-security-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

#security .account-security-panel{
  min-height:260px;
  padding:22px;
  border-radius:20px;
}

#security .account-security-icon{
  width:48px;
  height:48px;
  border-radius:14px;
  font-size:22px;
  margin-bottom:14px;
}

#security .account-security-copy h3{
  font-size:18px;
}

#security .account-security-copy p{
  font-size:12px;
  line-height:1.6;
}

#security .account-security-form{
  margin-top:18px;
  gap:14px;
}

#security .account-security-form label{
  gap:7px;
  font-size:11px;
}

#security .account-password-field{
  min-height:52px;
  border-radius:14px;
}

#security .account-password-field input{
  min-height:50px;
  padding:0 14px;
  font-size:13px;
}

#security .account-password-toggle{
  width:50px;
  font-size:15px;
}

#security .account-security-primary,
#security .account-security-secondary,
#security .account-security-danger{
  min-height:46px;
  padding:0 16px;
  border-radius:12px;
  font-size:12px;
}

#security .account-security-email{
  margin-top:17px;
  padding:13px 14px;
  border-radius:12px;
  font-size:12px;
}

#security .account-security-message{
  padding:11px 13px;
  border-radius:11px;
  font-size:11px;
}

#security .account-security-list{
  margin-top:17px;
  gap:12px;
}

#security .account-security-list>div{
  padding:13px 14px;
  border-radius:12px;
}

#security .account-security-list span{
  font-size:11px;
}

#security .account-security-list strong{
  font-size:12px;
}

@media (min-width: 1200px){
  #security .account-security-card{
    padding:30px 32px;
  }

  #security .account-security-panel{
    min-height:275px;
  }
}

@media (max-width: 900px){
  #security .account-security-grid{
    grid-template-columns:1fr;
  }

  #security .account-security-panel{
    min-height:0;
  }

  #security .account-security-head{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 560px){
  #security .account-security-card{
    padding:18px;
    border-radius:20px;
  }

  #security .account-security-head h2{
    font-size:26px;
  }

  #security .account-security-panel{
    padding:17px;
  }
}


/* =========================================================
   FAVORITOS · FEEDBACK AO ADICIONAR AO CARRINHO
========================================================= */
.account-favorite-cart.is-added{
  background:#e8f8ef !important;
  color:#17724b !important;
  border-color:rgba(23,114,75,.12) !important;
}


/* =========================================================
   MINHA CONTA · CARRINHO NO HEADER
========================================================= */
body.account-page .header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

body.account-page .cart-button{
  flex:0 0 auto;
}

@media(max-width:760px){
  body.account-page .header-actions{
    gap:7px;
  }

  body.account-page .cart-button{
    width:42px;
    height:42px;
  }
}

.account-address-country-note {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  opacity: .72;
}
