/* =======================================================
   AUTH MODAL — BASE
======================================================= */
.authModal{ position:fixed; inset:0; display:none; z-index:9999; }
.authModal.is-open{ display:block; }

.authOverlay{
  position:absolute; inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px) saturate(110%);
}

/* Dialog (desktop default) */
.authDialog{
  position:relative;
  margin:10vh auto;
  width:min(520px,92vw);
  background:#fff;
  border-radius:16px;
  padding:1rem 1rem 1.2rem;
  box-shadow:0 20px 50px rgba(0,0,0,.25);
  animation:authIn .18s ease-out;
  display:flex;
  flex-direction:column;
  max-height:80vh;
  overflow:hidden;
}

/* Close (base) */
.authClose{
  position:absolute; top:10px; right:10px;
  border:0; background:transparent; font-size:22px; line-height:1;
  cursor:pointer; color:#9aa3af;
}
.authClose:hover{ color:#6b7280; }

/* Header + Títulos */
.authHeader{ padding:.25rem .4rem .6rem; }
.authHeader .authTitle{
  margin:0 0 .4rem;
  font-size:1.05rem; font-weight:700;
  color:var(--text-color-primary);
}
.authModal h3{ color:var(--text-color-primary); }
.authDivider{ height:1px; background:#eef2f7; margin:.6rem 0 1rem; }

/* Tabs */
.authTabs{ display:flex; gap:.4rem; margin:0 .2rem .2rem; }
.authTab{
  flex:1; padding:.5rem .4rem;
  border:0; background:transparent; cursor:pointer;
  color:#6b7280; font-weight:600; border-radius:10px;
}
.authTab.is-active{ color:#111827; background:transparent; position:relative; }
.authTab.is-active::after{
  content:""; position:absolute; left:10%; right:10%; bottom:0;
  height:2px; background:var(--color-primary, #e11d48); border-radius:2px;
}

/* Panels */
.authPanel{ display:none; padding:.2rem .2rem 0; }
.authPanel.is-active{ display:block; }

/* Fields */
.field{ display:flex; flex-direction:column; gap:.35rem; margin-bottom:.7rem; }
.field label{ font-size:.9rem; color:#374151; font-weight:700; }
.field input{
  height:44px; border:1px solid #e5e7eb; border-radius:10px;
  padding:0 .85rem; background:#f9fafb; color:#111827;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s;
}
.field input::placeholder{ color:#9ca3af; }
.field input:focus{
  outline:0; background:#fff;
  border-color:var(--color-primary, #e11d48);
  box-shadow:0 0 0 3px rgba(225,29,72,.15);
}

/* Grid */
.grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:.6rem; }
@media (max-width:640px){ .grid{ grid-template-columns:1fr; } } /* (consolida o mesmo ajuste do <=600) */

/* Buttons + Spinner */
.btnPrimary{
  width:100%; height:46px; border-radius:10px; border:0;
  background:var(--color-primary, #e11d48); color:#fff; font-weight:800;
  cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:.6rem;
  box-shadow:0 6px 16px rgba(225,29,72,.25);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btnPrimary:hover{ transform:translateY(-1px); box-shadow:0 10px 20px rgba(225,29,72,.28); filter:brightness(1.02); }
.btnPrimary:active{ transform:translateY(0); }
.btnPrimary:disabled{ opacity:.65; cursor:not-allowed; box-shadow:none; }

.btnSecondary{
  width:100%; height:46px; border-radius:10px; border:0;
  background:#6c757d; color:#fff; font-weight:600;
  cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:.6rem;
  box-shadow:0 4px 12px rgba(108,117,125,.25);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btnSecondary:hover{ transform:translateY(-1px); box-shadow:0 8px 16px rgba(108,117,125,.3); filter:brightness(1.05); }
.btnSecondary:active{ transform:translateY(0); }
.btnSecondary:disabled{ opacity:.65; cursor:not-allowed; box-shadow:none; }

/* ===== Account Modal Styles ===== */
.account-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 12px;
  overflow-x: auto;
}

.account-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #6c757d;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 60px;
}

.account-nav-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #495057;
}

.account-nav-item.active {
  background: linear-gradient(135deg, #000000 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.account-nav-item i {
  width: 20px;
  height: 20px;
}

.account-content {
  position: relative;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  /* scroll invisível por padrão */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

/* WebKit: esconder totalmente a barra */
.account-content::-webkit-scrollbar { width: 0; height: 0; background: transparent; }
.account-content::-webkit-scrollbar-track { background: transparent; }
.account-content::-webkit-scrollbar-thumb { background: transparent; }

/* Section headers with better contrast */
.account-section h4 {
  color: #1f2937 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  margin-bottom: 16px !important;
}

.account-section h4 i {
  margin-right: 8px;
  color: #dc2626;
}

.account-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.account-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Orders Section */
.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.orders-header h4 {
  margin: 0;
  color: #212529;
  font-size: 1.25rem;
  font-weight: 700;
}

.btn-refresh-orders {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh-orders:hover {
  background: #e9ecef;
  color: #495057;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loading-orders,
.loading-addresses {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  color: #6c757d;
  font-size: 0.9rem;
}

.loading-orders i,
.loading-addresses i {
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.order-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.order-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.order-id {
  font-weight: 700;
  color: #212529;
  font-size: 1.1rem;
}

.order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.order-status.pending {
  background: #fff3cd;
  color: #856404;
}

.order-status.approved {
  background: #d1edff;
  color: #0c5460;
}

.order-status.cancelled {
  background: #f8d7da;
  color: #721c24;
}

.order-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.order-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.order-detail-label {
  color: #6c757d;
  font-weight: 500;
}

.order-detail-value {
  color: #212529;
  font-weight: 600;
}

.order-actions {
  display: flex;
  gap: 8px;
}

.order-actions .btnPrimary {
  flex: 1;
  padding: 8px 16px;
  font-size: 0.85rem;
  height: 36px;
}

.order-actions .btnSecondary {
  flex: 1;
  padding: 8px 16px;
  font-size: 0.85rem;
  height: 36px;
}

.no-orders,
.no-addresses {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  text-align: center;
  color: #6c757d;
}

.no-orders i,
.no-addresses i {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.no-orders p,
.no-addresses p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

/* Addresses Section */
.addresses-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.addresses-header h4 {
  margin: 0;
  color: #212529;
  font-size: 1.25rem;
  font-weight: 700;
}

.btn-add-address,
.btn-add-first-address {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #000000 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-address:hover,
.btn-add-first-address:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

.addresses-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.address-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.address-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.address-name {
  font-weight: 700;
  color: #212529;
  font-size: 1rem;
}

.address-actions {
  display: flex;
  gap: 6px;
}

.address-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.address-action-btn:hover {
  background: #e9ecef;
  color: #495057;
}

.address-action-btn i {
  width: 16px;
  height: 16px;
}

.address-details {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Settings Section */
.settings-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.setting-item {
  display: flex;
  align-items: center;
}

.setting-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #495057;
}

.setting-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #dc2626;
}

/* ===== Saved Cards Section Styles ===== */
.cards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cards-header h4 {
  margin: 0;
  color: #212529;
  font-size: 1.2rem;
  font-weight: 700;
}

.btn-refresh-cards {
  width: 36px;
  height: 36px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-refresh-cards:hover {
  background: #e9ecef;
  color: #495057;
}

.btn-refresh-cards i {
  width: 18px;
  height: 18px;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loading-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  color: #6c757d;
  font-size: 0.95rem;
}

.loading-cards i {
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

.saved-card-item-modal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.saved-card-item-modal:hover {
  border-color: #dc2626;
  background: #fff5f5;
}

.saved-card-info-modal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-brand-icon-modal {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #000000 0%, #dc2626 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.card-brand-icon-modal i {
  width: 20px;
  height: 20px;
}

.card-details-modal {
  flex: 1;
}

.card-number-modal {
  font-size: 0.95rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 2px;
}

.card-meta-modal {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: #6c757d;
}

.card-name-modal {
  font-weight: 600;
}

.card-expiry-modal {
  font-weight: 500;
}

.card-actions-modal {
  display: flex;
  gap: 8px;
}

.card-action-btn-modal {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-delete-card {
  background: #dc2626;
  color: white;
}

.btn-delete-card:hover {
  background: #b91c1c;
}

.card-action-btn-modal i {
  width: 16px;
  height: 16px;
}

.no-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  color: #6c757d;
  text-align: center;
}

.no-cards i {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.no-cards p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
}

.no-cards small {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ===== Order Details Modal Styles ===== */
.order-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.order-details-modal.is-open {
  display: flex;
}

.order-details-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.order-details-dialog {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  outline: none; /* Remove outline padrão */
}

.order-details-dialog:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.order-details-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.order-details-close:hover {
  background: #e9ecef;
  color: #495057;
}

.order-details-close i {
  width: 20px;
  height: 20px;
}

.order-details-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e9ecef;
}

.order-details-header h3 {
  margin: 0 0 8px;
  color: #212529;
  font-size: 1.5rem;
  font-weight: 700;
}

.order-details-id {
  color: #6c757d;
  font-size: 0.95rem;
  font-weight: 600;
}

.order-details-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  max-height: 60vh;
}

.loading-order-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  color: #6c757d;
  font-size: 1rem;
}

.loading-order-details i {
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
}

.order-details-section {
  margin-bottom: 24px;
}

.order-details-section:last-child {
  margin-bottom: 0;
}

.order-details-section h4 {
  margin: 0 0 16px;
  color: #212529;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-details-section h4 i {
  width: 20px;
  height: 20px;
  color: #dc2626;
}

.order-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.order-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-info-label {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-info-value {
  font-size: 1rem;
  color: #212529;
  font-weight: 600;
}

.order-info-item-full {
  grid-column: 1 / -1;
}

.order-info-address {
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.shipping-method {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.shipping-method.pickup {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.shipping-method.delivery {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.order-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: #e9ecef;
}

.order-item-info {
  flex: 1;
}

.order-item-name {
  font-size: 1rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 4px;
}

.order-item-details {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.order-item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc2626;
}

.order-totals {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e9ecef;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-total-row:last-child {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px solid #dee2e6;
  font-size: 1.1rem;
  font-weight: 700;
  color: #212529;
}

.order-total-label {
  color: #6c757d;
  font-weight: 500;
}

.order-total-value {
  color: #212529;
  font-weight: 600;
}

.order-total-row:last-child .order-total-value {
  color: #dc2626;
  font-size: 1.2rem;
}

.order-details-actions {
  padding: 16px 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.order-details-actions .btnPrimary,
.order-details-actions .btnSecondary {
  min-width: 120px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .authDialog {
    width: 100dvw !important;
    margin: 0 !important;
    max-height: 100dvh !important;
  }
  /* UX mobile: navegação fixa e conteúdo com altura útil */
  .account-nav {
    position: sticky; top: 0; z-index: 2;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e9ecef;
  }
  .account-content {
    padding: 16px;
    max-height: max-content;
    padding-bottom: 16px;
  }
  
  .account-nav {
    gap: 4px;
    padding: 6px;
  }
  
  .account-nav-item {
    padding: 10px 6px;
    font-size: 0.75rem;
    min-width: 50px;
  }
  
  .account-nav-item i {
    width: 18px;
    height: 18px;
  }
  
  .order-actions {
    flex-direction: column;
  }
  
  .account-content {
    padding: 16px;
    max-height: 350px;
  }
  
  .order-card {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .order-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .order-detail-label {
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  .order-detail-value {
    font-size: 0.9rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .order-actions .btnPrimary,
  .order-actions .btnSecondary {
    width: 100%;
  }
  
  .order-details-modal {
    padding: 0;
    align-items: stretch;
  }
  
  .order-details-dialog {
    margin: 0;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    max-width: none;
    width: 100%;
  }
  
  .order-details-header {
    padding: 16px 20px 12px;
  }
  
  .order-details-content {
    padding: 16px 20px;
    flex: 1;
    overflow-y: auto;
  }
  
  .order-details-actions {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
  }
  
  .order-details-actions .btnPrimary,
  .order-details-actions .btnSecondary {
    width: 100%;
    padding: 12px 16px;
  }
}

/* Tablet adjustments */
@media (max-width: 768px) and (min-width: 481px) {
  .authDialog {
    width: 90vw !important;
    margin: 8vh auto !important;
    max-height: 85vh !important;
  }
  
  .account-content {
    padding: 18px;
    max-height: 380px;
  }
  
  .order-card {
    padding: 14px;
    margin-bottom: 14px;
  }
  
  .account-section h4 {
    font-size: 1rem !important;
  }
  
  .order-details-header {
    padding: 20px 20px 12px;
  }
  
  .order-details-content {
    padding: 20px;
  }
  
  .order-details-actions {
    padding: 12px 20px;
    flex-direction: column;
  }
  
  .order-details-actions .btnPrimary,
  .order-details-actions .btnSecondary {
    width: 100%;
  }
  
  .order-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .order-item-image {
    width: 100%;
    height: 120px;
  }
}

.btnSpinner{ width:18px; height:18px; border:2px solid #fff; border-right-color:transparent; border-radius:50%; animation:spin .8s linear infinite; }

/* Meta/Mensagens */
.authMeta{ margin-top:.5rem; display:flex; justify-content:space-between; font-size:.9rem; color:#6b7280; }
.authMeta a{ color:#6b7280; text-decoration:underline; }
.authMsg{ min-height:1.2rem; font-size:.92rem; margin-top:.4rem; }

/* Keyframes */
@keyframes authIn{ from{ transform:translateY(6px) scale(.98); opacity:0; } to{ transform:none; opacity:1; } }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* =======================================================
   AUTH MODAL — MOBILE <= 600px (mesmo padrão do menu/cart)
   (somente overrides/adições necessárias)
======================================================= */
@media (max-width:600px){
  /* Overlay como no menu/cart */
  .authOverlay{ background:rgba(2,6,23,.45); backdrop-filter:blur(6px); }

  /* Painel full-screen, slide-up, vidro escuro */
  .authDialog{
    position:absolute; inset:0; width:100vw; height:100dvh; margin:0; padding:0;
    border-radius:0; box-shadow:none;
    display:grid; grid-template-rows:auto 1fr;
    background:var(--menu-bg, rgba(22,22,24,.75));
    -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
    transform:translateY(100%); transition:transform .28s cubic-bezier(.2,.8,.2,1);
  }
  .authModal.is-open .authDialog{ transform:translateY(0); }

  /* Header no padrão do menu */
  .authHeader{
    padding:16px;
    border-bottom:1px solid var(--menu-border, rgba(255,255,255,.12));
    color:var(--menu-ink, #e9e9ea);
  }
  .authHeader .authTitle{
    margin:0;
    font:700 1rem/1 var(--font-heading, Poppins, system-ui);
    text-transform:uppercase; letter-spacing:.4px; color:inherit;
  }

  /* Botão fechar no estilo menu (Lucide) */
  .authClose{
    top:8px; right:8px; width:40px; height:40px;
    display:inline-grid; place-items:center;
    border-radius:10px; background:transparent; border:1px solid transparent;
    color:var(--menu-ink, #e9e9ea);
    font-size:1.1rem; line-height:1; cursor:pointer;
    transition:background .15s ease, border-color .15s ease, transform .1s ease;
  }
  .authClose:hover{
    background:rgba(255,255,255,.06);
    border-color:var(--menu-border, rgba(255,255,255,.12));
    transform:translateY(-1px);
  }

  /* Conteúdo rolável + contraste dark */
  .authPanels{
    padding:16px; overflow:auto;
    color:var(--menu-ink, #e9e9ea);
  }
  .authPanel{ padding:0; }
  .authModal h3{ color:var(--menu-ink, #e9e9ea); }
  .authDivider{ background:var(--menu-border, rgba(255,255,255,.12)); }

  /* Tabs no tema dark */
  .authTab{ color:var(--bc-muted, #b8b8bc); }
  .authTab.is-active{ color:var(--menu-ink, #e9e9ea); }
  .authTab.is-active::after{ background:var(--bc-red, #e11d48); }

  /* Campos “glass” como menu/cart */
  .field label{ color:var(--bc-muted, #b8b8bc); }
  .field input{
    background:rgba(255,255,255,.06);
    border:1px solid var(--menu-border, rgba(255,255,255,.12));
    color:var(--menu-ink, #e9e9ea);
  }
  .field input::placeholder{ color:var(--bc-muted, #b8b8bc); }
  .field input:focus{
    background:rgba(255,255,255,.09);
    border-color:color-mix(in srgb, var(--bc-red, #e11d48) 60%, transparent);
    box-shadow:0 0 0 2px color-mix(in srgb, var(--bc-red, #e11d48) 28%, transparent);
    outline:0;
  }

  /* Botão com sombra reforçada no dark */
  .btnPrimary{ box-shadow:0 10px 22px rgba(225,29,72,.35); }
}