/* ================================================
   CSS COMPLETO E ATUALIZADO - [Seu Site]
   Alterações:
   - Removido degradê/máscara do .cards-container
   - Transferido glow/degradê suave para borda inferior do #top-bar
   - Rodapé compacto mantido (linha única no iPhone)
   Última atualização: Março 2026
   ================================================ */

/* ========== 1. THEME / TOKENS / VARIÁVEIS ========== */
:root {
  --bg: #00a1de;
  --white: #fff;
  --black: #111;
  --glass-bg: rgba(255, 255, 255, 0.14);
  --glass-bg-hover: rgba(255, 255, 255, 0.20);
  --glass-border: 1px solid rgba(255, 255, 255, 0.28);
  --glass-blur: blur(1px);
  --r-8: 8px;
  --r-10: 10px;
  --r-12: 12px;
  --r-14: 14px;
  --r-16: 16px;
  --r-20: 20px;
  --r-22: 22px;
  --r-24: 24px;
  --r-26: 26px;
  --shadow-card: 0 0 25px rgba(0, 0, 0, 0.25);
  --shadow-modal: 0 30px 90px rgba(0, 0, 0, 0.4);
  --shadow-overlay: 0 20px 45px rgba(0, 0, 0, 0.35);
  --t-fast: 180ms ease;
  --t-med: 220ms ease;
  --t-slow: 240ms ease;
  --danger: #CD5C5C;
  --paid-red: #ff003c;
  --paid-pink: #ff2bd6;
  --paid-blue: #00e5ff;
  --top-clearance: clamp(220px, 45vw, 340px);
}

/* ========== 2. BASE / RESET ========== */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-family: "Roboto", sans-serif;
  min-height: 100vh;
  height: 100vh;
  overflow-x: hidden;
}

/* ========== 3. SCROLLBAR PERSONALIZADO ========== */
html,
.cards-container {
  scrollbar-width: thin;
  scrollbar-color: #0281b1 #00a1de;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #00a1de, #00e5ff);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 161, 222, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #0085b8, #00d4ff);
  box-shadow: 0 0 15px rgba(0, 161, 222, 0.9), inset 0 0 12px rgba(255, 255, 255, 0.5);
}

/* ========== 4. MODAIS (Login + Card/Promo) ========== */
#login-modal,
#card-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#login-modal { z-index: 10004; }
#card-modal { z-index: 10003; }
#login-modal.show,
#card-modal.show {
  display: flex;
}
.modal-content.login-modal-content,
.modal-content.promo-modal {
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  color: #111;
}
.modal-content.login-modal-content {
  width: min(420px, 92vw);
  text-align: center;
}
.modal-content.promo-modal {
  width: min(680px, 92vw);
}
.modal-content.login-modal-content p {
  margin: 10px 0 0;
  color: #444;
  line-height: 1.5;
}
.google-login-btn {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: #fff;
  color: #111;
  margin: 14px 0 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.google-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  background: #f8f8f8;
}
.form-header {
  margin-bottom: 16px;
}
.form-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}
#card-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#card-form input,
#card-form textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: #111;
}
#card-form textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row {
  display: flex;
  gap: 12px;
}
.form-row > * {
  flex: 1;
}
.promo-actions {
  margin-top: 6px;
}
.btn-primary,
.btn-danger {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.btn-primary { background: #111; color: #fff; }
.btn-danger { background: #ececec; color: #111; }
.success-message {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  align-items: center;
}
.success-message button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: #111;
  color: #fff;
}

/* ========== 5. HEADER / TOP BAR (com glow degradê na borda inferior) ========== */
#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(80px, 18vw, 140px);
  padding: 0 clamp(10px, 3vw, 20px);
  z-index: 5000;
  isolation: isolate;
  transition: height 0.3s ease;

  /* Novo: fundo sutil + degradê glow na borda inferior */
  background: linear-gradient(to bottom, #00a1de 0%, /* topo mais visível (cor do tema) */ #00a1de 70%, /* meio */ #00a1de 100% /* fade suave para transparente na borda inferior */);
  backdrop-filter: blur(12px);        /* efeito glass + glow */
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0px 10px 30px 20px #00a1de; /* profundidade extra */
}

/* Elementos internos do header */
#rope-canvas {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  z-index: 15;
}
#beta-tag {
  position: absolute;
  top: clamp(6px, 2vw, 10px);
  left: clamp(8px, 2.5vw, 14px);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 700;
  color: var(--white);
  opacity: 0.85;
  letter-spacing: 1px;
  pointer-events: none;
  user-select: none;
  z-index: 21;
}
#logo {
  position: absolute;
  width: clamp(110px, 35vw, 180px);
  pointer-events: auto;
  cursor: grab;
  user-drag: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  z-index: 20;
  will-change: transform;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(clamp(0deg, 2vw, 10deg));
}
#menu-container {
  position: absolute;
  right: clamp(10px, 3vw, 20px);
  top: clamp(10px, 2.5vw, 20px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
}
#hamburger {
  width: clamp(26px, 7vw, 32px);
  height: clamp(20px, 5.5vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 60;
}
#hamburger span {
  display: block;
  height: clamp(3px, 0.8vw, 4px);
  background: var(--white);
  border-radius: clamp(2px, 0.5vw, 4px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
#menu-container.active #hamburger span:nth-child(1) {
  transform: translateY(clamp(8px, 2.2vw, 10px)) rotate(45deg);
}
#menu-container.active #hamburger span:nth-child(2) {
  opacity: 0;
}
#menu-container.active #hamburger span:nth-child(3) {
  transform: translateY(clamp(-8px, -2.2vw, -10px)) rotate(-45deg);
}
#menu-items {
  position: absolute;
  top: clamp(38px, 10vw, 46px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.5vw, 10px);
  padding: clamp(8px, 2vw, 12px);
  border-radius: var(--r-16);
  background: var(--glass-bg);
  border: var(--glass-border);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--t-med), transform var(--t-med);
}
#menu-container.active #menu-items {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#menu-items a {
  color: var(--white);
  text-decoration: none;
  font-size: clamp(13px, 3.5vw, 15px);
  font-family: "Poppins", sans-serif;
  padding: clamp(8px, 2vw, 10px) clamp(10px, 2.5vw, 12px);
  border-radius: var(--r-12);
  transition: background var(--t-fast), transform var(--t-fast);
}
#menu-items a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(-2px);
}
.pill-glass {
  color: var(--white);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: clamp(11px, 3vw, 13px);
  padding: clamp(6px, 1.8vw, 8px) clamp(8px, 2.2vw, 11px);
  border-radius: var(--r-14);
  background: rgba(255, 255, 255, 0.12);
  border: var(--glass-border);
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
}
@supports (backdrop-filter: blur(10px)) {
  .pill-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
  }
}
.pill-glass:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-1px);
}

/* ========== 6. PARTICLES (fundo) ========== */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ========== 7. CONTAINER + GRID DOS CARDS (sem máscara degradê) ========== */
.cards-container {
  padding-top: clamp(105px, 20vw, 180px);
  padding-right: max(16px, env(safe-area-inset-left));
  padding-bottom: clamp(60px, 12vw, 120px);
  padding-left: max(16px, env(safe-area-inset-right));
  position: relative;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* REMOVIDO: -webkit-mask-image e mask-image → agora o glow vem do header */
}
body.about-open .cards-container {
  opacity: 0;
  transition: opacity var(--t-slow);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 237px));
  gap: clamp(16px, 3vw, 32px);
  justify-content: center;
  justify-items: center;
  width: 100%;
}

/* ========== 8. ESTILO BASE DOS CARDS ========== */
.grid-item,
.deal-card {
  aspect-ratio: 237 / 345;
  width: 100%;
  max-width: 237px;
  border-radius: var(--r-22);
  display: flex;
  flex-direction: column;
}
.grid-item {
  position: relative;
  display: flex;
}
.deal-card {
  position: relative;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.deal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-22);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center center;
  z-index: 2;
}
.deal-card > * {
  position: relative;
  z-index: 2;
}
.deal-card img {
  width: 100%;
  height: 55%;
  object-fit: contain;
  background: transparent;
  padding: 8px;
  flex-shrink: 0;
}

/* ========== 9. CONTEÚDO INTERNO DOS CARDS ========== */
.deal-info {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.deal-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 4px 0;
}
.deal-store {
  font-size: 13px;
  color: #555;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.deal-store .verified-icon {
  width: 16px;
  height: 16px;
}
.deal-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.deal-price {
  font-size: 20px;
  font-weight: 900;
  color: #000;
  line-height: 1;
}
.deal-old-price {
  font-size: 14px;
  color: #888;
  text-decoration: line-through;
  line-height: 1;
}
.deal-info .separator {
  height: 1px;
  background: #e0e0e0;
  margin: 2px 12px 0 12px;
  border-radius: 2px;
}
.deal-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  padding-bottom: 4px;
  font-size: 12px;
  color: #555;
  min-height: 42px;
}
.footer-counts-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}
.card-counts-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cc-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.cc-like,
.cc-comment {
  color: #333;
}
.cc-ico.like-icon,
.cc-ico.comment-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  fill: var(--bg);
  transition: transform 0.2s ease;
}
.cc-item:hover .cc-ico.like-icon,
.cc-item:hover .cc-ico.comment-icon {
  transform: scale(1.2);
}
.author-info-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}
.author-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}
.author-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.2;
  min-width: 0;
}
.author-name {
  font-weight: 600;
  color: #333;
  font-size: 12px;
}
.author-time {
  color: #777;
  font-size: 11px;
}

/* ========== 10. CARDS PATROCINADOS (NEON / PAID) ========== */
@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.paid-card {
  position: relative;
  border: none !important;
  overflow: visible;
  background: var(--white);
  isolation: isolate;
}
.paid-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--r-22) + 2px);
  background: conic-gradient(from var(--a),
    transparent 0deg 30deg,
    #ff69b4 30deg 90deg,
    #c71585 90deg 150deg,
    #8a2be2 150deg 210deg,
    #ff1493 210deg 270deg,
    #d81b60 270deg 330deg,
    transparent 330deg 360deg);
  animation: paidAround 4s linear infinite;
  pointer-events: none;
  z-index: -1;
  filter: blur(3px) saturate(1.2);
  opacity: 0.9;
}
.paid-card::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: calc(var(--r-22) + 5px);
  background: conic-gradient(from calc(var(--a) + 120deg),
    transparent 0deg 40deg,
    #ff69b4 40deg 100deg,
    #c71585 100deg 160deg,
    #8a2be2 160deg 220deg,
    #ff1493 220deg 280deg,
    #d81b60 280deg 340deg,
    transparent 340deg 360deg);
  animation: paidAround 5.5s linear infinite reverse;
  pointer-events: none;
  z-index: -2;
  filter: blur(8px) saturate(1.3);
  opacity: 0.7;
}
@keyframes paidAround {
  to { --a: 360deg; }
}
@supports not (@property --a) {
  .paid-card::before {
    background: linear-gradient(90deg, #ff69b4, #c71585, #8a2be2, #ff1493, #d81b60, #ff69b4);
    animation: fallbackGlow 5s linear infinite;
  }
  .paid-card::after {
    background: linear-gradient(90deg, rgba(255,105,180,0.7), rgba(199,21,133,0.7), rgba(138,43,226,0.7), rgba(255,20,147,0.7), rgba(216,27,96,0.7));
    animation: fallbackGlow 6s linear infinite reverse;
  }
}
@keyframes fallbackGlow {
  0% { filter: hue-rotate(0deg) blur(6px); }
  100% { filter: hue-rotate(360deg) blur(6px); }
}
.paid-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(255,105,180,0.9);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 0 0 7px 7px;
  font-family: "Poppins", sans-serif;
  text-align: center;
  letter-spacing: 0.6px;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 5;
  pointer-events: none;
  transition: transform 0.18s ease;
}

/* ========== 11. SKELETON LOADING ========== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.deal-card.skeleton {
  aspect-ratio: 237 / 345;
}

/* ========== 12. OVERLAY DE DETALHE DO PRODUTO ========== */
#overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  background: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#overlay.active {
  display: flex;
  opacity: 1;
}
#overlay-card {
  width: min(880px, 90vw);     /* Largura um pouco menor */
  height: 75vh;                /* Altura reduzida */
  max-height: 75vh;
  min-height: 460px;           /* Mantém mínimo confortável */
  display: flex;
  flex-direction: row;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
  padding: 0;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.28s ease, opacity 0.28s ease;
}
#overlay.active #overlay-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.overlay-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.overlay-left,
.overlay-right {
  flex: 1 1 50%;           /* Cada lado ocupa metade */
  width: 50%;
  min-width: 0;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.overlay-left {
  padding: 12px;
  gap: 8px;
  overflow: hidden;
}
#overlay-image {
  height: 50%;               /* Metade da altura do overlay-card */
  width: 100%;
  object-fit: contain;
  flex-shrink: 0;
}
.overlay-info {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0 8px 0 2px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
#overlay-title {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.08;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
#overlay-description {
  margin: 0;
  opacity: 0.9;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 14px;
  overflow: auto;
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding-right: 4px;
}
.overlay-author-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 auto;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}
.overlay-author-mini .author-avatar-mini {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 161, 222, 0.2);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.overlay-author-mini .author-name-time {
  color: #333;
}
.overlay-prices {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 2px 0 0;
  flex-wrap: wrap;
}
.overlay-old-price {
  text-decoration: line-through;
  opacity: 0.65;
  font-size: 14px;
}
.overlay-price {
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: #000;
}
.overlay-buy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.overlay-coupon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1.5px dashed var(--bg);
  border-radius: 999px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  background: rgba(0, 161, 222, 0.08);
  color: var(--bg);
  width: fit-content;
  gap: 6px;
  line-height: 1;
}
.overlay-coupon.visible {
  display: inline-flex;
}
.overlay-coupon::before {
  content: "🎟️";
  font-size: 15px;
}
.overlay-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #111, #2a2a2a);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  border-radius: 11px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  width: fit-content;
  min-height: 36px;
}
.overlay-buy-btn.visible {
  display: inline-flex;
}
.overlay-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  background: linear-gradient(135deg, #000, #1a1a1a);
}
.overlay-buy-btn::after {
  content: "→";
  font-size: 13px;
  font-weight: 900;
}
.overlay-right {
  width: 100%;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(248, 250, 252, 0.92);
  overflow: hidden;
}
.overlay-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 11px 0 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.overlay-actions--bottom {
  margin-top: auto;
  justify-content: flex-start;
  width: 100%;
}
.react-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.85);
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.react-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: var(--bg);
}
.react-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.16);
}
.react-btn:active {
  transform: translateY(0px);
}
.react-ico {
  font-size: 13px;
  line-height: 1;
}
.react-comments {
  cursor: default;
  user-select: none;
  opacity: 0.95;
}

/* ========== 13. COMENTÁRIOS NO OVERLAY ========== */
.comments-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.comments-top {
  flex: 1;
  min-height: 0;
  padding: 16px;
  overflow: auto;
}
.comments-title {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 11px;
  color: rgba(0, 0, 0, 0.85);
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-14);
  padding: 9px 11px;
}
.comment-meta {
  font-size: 11px;
  opacity: 0.65;
  margin-bottom: 6px;
}
.comment-text {
  font-size: 13px;
  line-height: 1.25;
  white-space: pre-wrap;
}
.comment-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
}
.comment-delete {
  background: transparent;
  border: 0;
  color: #d11;
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}
.comments-bottom {
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.35);
}
#comment-input {
  width: 100%;
  min-height: 76px;
  border-radius: var(--r-14);
  border: 2px solid rgba(0, 0, 0, 0.12);
  padding: 11px;
  resize: none;
  font-family: inherit;
  margin-bottom: 10px;
}
#comment-send {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--r-14);
  border: 0;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
}
.comments-login-hint {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.7);
}

/* ========== 14. DOTS DE NAVEGAÇÃO ========== */
.overlay-dots {
  display: none;
}
.overlay-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #00a1de;
  border: 1px solid rgb(6 3 3 / 65%);
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.overlay-dot.is-active {
  background: #ffffff;
  opacity: 1;
  transform: scale(1.2);
}

/* ========== 15. ABOUT OVERLAY ========== */
#about-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
}
#about-overlay.active {
  display: flex;
}
#about-card {
  width: min(980px, 92vw);
  min-height: 520px;
  max-height: 88vh;
  display: flex;
  flex-direction: row;
  background: #ffffff;
  color: #111;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}
.about-left {
  flex: 0 0 40%;
  min-width: 320px;
  background: #f3f3f3;
}
.about-left img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.about-right {
  flex: 1 1 auto;
  min-width: 0;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-right h2 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.1;
}
.about-right p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* ========== 16. BADGES / ÍCONES GERAIS ========== */
.site-badge {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.65);
  margin-left: 10px;
  vertical-align: middle;
  line-height: 1.2;
}
.verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  background: #1da1f2;
  color: white;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.verified-svg {
  width: 14px;
  height: 14px;
  fill: white;
}

/* ========== 17. HOVER APENAS EM DESKTOP ========== */
@media (hover:hover) and (pointer:fine) {
  .deal-card {
    transform-origin: center center;
    transition: transform 0.22s ease;
    will-change: transform;
  }
  .deal-card::before {
    transition: box-shadow 0.22s ease;
  }
  .grid-item:hover .deal-card {
    transform: scale(1.03);
  }
  .grid-item:hover .deal-card::before {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  }
  .paid-card:hover::before,
  .paid-card:hover::after {
    transform: scale(1.03);
    transition: transform 0.18s ease;
  }
  .grid-item:hover .paid-badge,
  .deal-card:hover .paid-badge {
    transform: translateX(-50%) scale(1.03);
  }
}

/* ========== 18. MOBILE PRINCIPAL (≤ 700px) – CARDS AINDA MENOR ========== */
@media (max-width: 700px) {
  .modal-content.promo-modal {
    width: 100%;
    max-height: 92vh;
    padding: 18px;
    border-radius: 20px;
  }
  .form-row {
    flex-direction: column;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 160px)); /* menor para 2 cards/linha */
    gap: 12px;
    padding: 0 12px;
    margin-top: 20px;
    justify-content: center;
  }

  .grid-item,
  .deal-card {
    max-width: 160px;                   /* menor que antes */
    aspect-ratio: 237 / 345;            /* mantém proporção */
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }

  .deal-card img {
    width: 100%;
    height: 55%;                         /* proporcional à altura do card */
    object-fit: contain;
    padding: 6px;                        /* padding menor */
    flex-shrink: 0;
  }

  .deal-info {
    flex: 0 0 auto;
    padding: 6px 8px;                    /* conteúdo ajustado */
  }

  .deal-title {
    line-height: 1.25;
    min-height: calc(1.25em * 2);
    font-size: 13px;                     /* texto menor */
  }

  .deal-store {
    font-size: 11px;
  }

  .deal-price {
    font-size: 15px;                     /* menor */
  }

  .deal-old-price {
    font-size: 11px;
  }

  .deal-info .separator {
    margin: 2px 10px 0 10px;
  }

  .deal-footer {
    display: none;
  }

  .author-avatar {
    display: none !important;
  }

  .author-info-right {
    gap: 0;
  }

  .author-text-wrap {
    align-items: flex-start;
  }

  .author-name {
    font-size: 11px;
  }

  .author-time {
    font-size: 10px;
  }

  .card-counts-inline {
    justify-content: flex-start;
    gap: 10px;
  }
}

/* ========== 19. MEDIA QUERIES – OVERLAY E ABOUT (ajuste imagem 50%) ========== */
@media (max-width: 900px) {
  #overlay {
    padding: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
  }
  #overlay-card {
    width: min(94vw, 520px);
    height: 72dvh;
    max-height: 72dvh;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }
  #overlay-card::-webkit-scrollbar {
    display: none;
  }
  .overlay-left,
  .overlay-right {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .overlay-left {
    padding: 12px;
    gap: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
  }
  .overlay-right {
    display: flex;               /* novo: flex para dividir espaço */
    flex-direction: row;         /* horizontal */
    border-left: none;
    border-top: none;
    min-height: 0;
    overflow: hidden;
    gap: 8px;
  }

  #overlay-image {
        flex: 0 0 50%;
        max-height: 100%;
        width: auto;
        /* height: auto; */
        object-fit: contain;
    }

  .overlay-info {
    flex: 1 1 50%;               /* restante do espaço para conteúdo */
    gap: 6px;
    min-width: 0;
    overflow-y: auto;
  }
  #overlay-title {
    font-size: 18px;
    line-height: 1.1;
  }
  #overlay-description {
    font-size: 13px;
  }
  .comments-top {
    padding: 12px;
  }
  .comments-bottom {
    padding: 10px 12px;
  }
  .overlay-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
    margin: 0;
    padding: 0;
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }
}
@media (max-width: 768px) {
  #about-card {
    flex-direction: column;
    height: min(720px, 90vh);
  }

  .about-left {
    height: 40vh;
  }
}/* ========== RODAPÉ CENTRALIZADO - ADAPTAÇÃO LOGADO / NÃO LOGADO ========== */
.footer-actions {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 0 20px rgba(255, 255, 255, 0.12),
    0 0 40px rgba(0, 161, 222, 0.25);
  pointer-events: auto;
  white-space: nowrap;
  flex-wrap: nowrap;
  max-width: 90vw;
}
.footer-actions::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 161, 222, 0.18) 0%, transparent 70%);
  opacity: 0.45;
  z-index: -1;
  animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.06); }
}
.footer-actions > * {
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: #00a1de47;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.footer-actions > *:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.footer-actions .add-promo-btn {
  background: linear-gradient(135deg, #00a1de, #00c8ff) !important;
  border: none !important;
  font-weight: 800 !important;
  box-shadow: 0 5px 16px rgba(0, 161, 222, 0.45) !important;
  padding: 8px 16px !important;
}
.footer-actions .add-promo-btn:hover {
  background: linear-gradient(135deg, #0085b8, #00aaff) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 161, 222, 0.65) !important;
}
.footer-actions .logout-btn {
  background: rgba(255, 80, 80, 0.18) !important;
  border-color: rgba(255, 100, 100, 0.4) !important;
}
.footer-actions .logout-btn:hover {
  background: rgba(255, 80, 80, 0.35) !important;
}
@media (max-width: 768px) {
  .footer-actions {
    bottom: 14px;
    padding: 8px 16px;
    gap: 8px;
    max-width: 92vw;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .footer-actions::-webkit-scrollbar {
    display: none;
  }
  .footer-actions > * {
    font-size: 12.5px;
    padding: 7px 12px;
    min-width: fit-content;
  }
  .footer-actions .add-promo-btn {
    padding: 7px 14px !important;
  }
}