/* ========== THEME / TOKENS ========== */
: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 neon */
  --paid-red: #ff003c;
  --paid-pink: #ff2bd6;
  --paid-blue: #00e5ff;
  /* Variável única para espaço livre acima dos cards (header + buffer grande) */
  --top-clearance: clamp(220px, 45vw, 340px); /* mínimo alto para garantir visibilidade total */
}

/* BASE */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  overflow: hidden;
  font-family: "Roboto", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;  /* só horizontal */
  height: 100vh;       /* altura viewport */
}

/* ========== TOP BAR / CABEÇALHO RESPONSIVO AUTOMÁTICO ========== */
#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;
  background: transparent;
  transition: height 0.3s ease;
}

#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);
}

#welcome-user {
  position: absolute;
  top: clamp(10px, 2.5vw, 18px);
  right: clamp(50px, 14vw, 80px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 10px);
}

/* PARTICLES */
#particles {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* ========== CARDS GRID ========== */
.cards-container {
  padding-top: clamp(100px, 20vw, 160px);  /* ← ESPAÇO HEADER */
  padding-right: max(var(--main-pad-x), env(safe-area-inset-left));
  padding-bottom: clamp(40px, 10vw, 80px);
  padding-left: max(var(--main-pad-x), env(safe-area-inset-right));
  position: relative;
  height: 100vh;                           /* ← ALTURA TOTAL viewport */
  overflow-y: auto;                        /* ← SCROLL AQUI */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  
  /* FADE HEADER igual ao antigo (SEM variáveis) */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 100px,                   /* ← fade inicia em 100px */
    #000 160px,                          /* ← fade termina em 160px */
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 140px,
    #000 160px,
    #000 100%
  );
}



body.about-open .cards-container {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow);
}

/* SCROLLBAR */
html, .cards-container {
  scrollbar-width: thin;
  scrollbar-color: #0085b8 #001f33;
}

::-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),    /* glow azul */
    inset 0 0 8px rgba(255,255,255,0.3); /* luz interna */
  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),   /* glow mais forte */
    inset 0 0 12px rgba(255,255,255,0.5);
  transform: scale(1.05);
}

/* Firefox também */
html, .cards-container, .comments-top {
  scrollbar-width: thin;
  scrollbar-color: #00a1de transparent;
}

/* Grid automático */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  justify-content: center;
  justify-items: center;
  gap: clamp(12px, 3vw, 32px);
  padding: 0 clamp(8px, 2vw, 24px);
}

/* Card base */
.grid-item,
.deal-card {
  aspect-ratio: 198 / 288;
  width: 100%;
  height: auto;
  max-width: clamp(180px, 45vw, 320px);
  border-radius: var(--r-22);
  overflow: hidden;
}

/* Hover destaque */
@media (hover:hover) and (pointer:fine) {
  .grid-item:hover {
    transform: translateY(-6px) scale(1.03);
    filter: saturate(1.05) contrast(1.03);
    transition: transform var(--t-med), filter var(--t-med);
  }
  
  .grid-item:hover .paid-badge {
    transform: translate(-50%, -6px) scale(1.03);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
  }
}

/* FIX overlay e z-index */
body.overlay-open .grid-item {
  z-index: auto !important;
}
body.overlay-open .grid-item .deal-card {
  transform: none !important;
  filter: none !important;
}
body.overlay-open #top-bar {
  z-index: 95 !important;
}

/* Ajustes extras para telas muito pequenas */
@media (max-width: 380px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }
  .grid-item {
    max-width: 90vw;
  }
}

/* Telas grandes: cards um pouco maiores */
@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(198px, 240px));
    gap: 32px;
    padding: 0 24px;
  }
}

/* ========== ABOUT OVERLAY ========== */
#about-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 92;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-slow), visibility 0ms linear 240ms;
}

body.about-open #about-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--t-slow), visibility 0ms linear 0ms;
}

#about-card {
  width: min(1100px, 92vw);
  height: min(620px, 85vh);
  background: rgba(255,255,255,0.95);
  border-radius: var(--r-26);
  overflow: hidden;
  box-shadow: var(--shadow-overlay);
  display: flex;
}

.about-left, .about-right { flex: 1; min-width: 0; }
.about-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-right {
  padding: 20px;
  overflow: auto;
  text-align: left;
}

.about-right h2 { margin-top: 0; }

@media (max-width: 700px) {
  #about-card {
    flex-direction: column;
    height: min(720px, 90vh);
  }
  .about-left { height: 40vh; }
}

/* ========== PROMO OVERLAY ========== */
/* ========== PROMO OVERLAY ========== (4:3 TODAS telas exceto mobile) */
#overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}

#overlay.active { display: flex; }

#overlay-card {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: var(--r-26);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-overlay);
  display: flex;
  justify-content: center;
  align-items: stretch;
  animation: zoomIn 0.35s ease forwards;
}

/* DESKTOP/TABLET: 4:3 fixo */
@media (min-width: 701px) {
  #overlay-card {
    aspect-ratio: 4 / 3;
    max-width: min(90vw, 1200px);
    width: min(90vw, 1200px);
    height: min(75vh, 900px);
  }
  .overlay-grid {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
  }
}

/* MOBILE: flexível (mantém original) */
@media (max-width: 700px) {
  .overlay-grid { 
    flex-direction: column;
    width: 92vw;
    height: 80vh;
  }
}

/* BASE (desktop padrão) */
.overlay-grid {
  width: 90vw;
  max-width: 1000px;
  height: 75vh;
  max-height: 75vh;
  display: flex;
  gap: 0;
}

.overlay-left, .overlay-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.overlay-left {
  padding: 12px;
  gap: 8px;
}

#overlay-image {
  height: 32vh !important;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--r-16);
}

.overlay-info {
  padding-right: 4px;
  overflow: visible;
  flex: 1;
  gap: 6px;
}

.overlay-right {
  border-left: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
}

/* ========== REACTIONS UI ========== */
.overlay-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 11px 0 0 0;
  padding: 9px 9px;
  border-radius: var(--r-16);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
}

.overlay-actions--bottom {
  margin-top: auto;
  justify-content: center;
}

.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: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;
}

/* comments */
.comments-panel { 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); }

#overlay-image {
  width: 100%;
  height: 46vh;
  max-height: 420px;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--r-16);
}

.overlay-info {
  overflow: auto;
  padding-right: 6px;
  text-align: left;
}

#overlay-title { margin: 0 0 10px 0; font-size: 20px; line-height: 1.1; }
#overlay-description { margin: 0 0 12px 0; opacity: 0.9; line-height: 1.35; white-space: pre-wrap; }

.overlay-prices { display: flex; gap: 11px; align-items: baseline; margin: 10px 0; }
.overlay-old-price { text-decoration: line-through; opacity: 0.7; }
.overlay-price { font-weight: 800; font-size: 16px; }

.overlay-coupon {
  display: none;
  padding: 6px 10px;
  border: 1px dashed #666;
  border-radius: 999px;
  margin: 6px 0 12px 0;
  font-size: 12px;
  width: fit-content;
}

.overlay-buy-btn {
  display: none;
  padding: 9px 13px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--r-10);
  text-decoration: none;
  width: fit-content;
}

@media (max-width: 700px) {
  .overlay-grid { flex-direction: column; width: 92vw; height: 92vh; }
  .overlay-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-left: none;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  .overlay-left { min-height: 0; }
  #overlay-image { height: 28vh; max-height: none; }
  .overlay-info { max-height: 24vh; overflow: auto; }
  .comments-panel { flex: 1; min-height: 0; }
  .comments-top { flex: 1; min-height: 0; overflow: auto; }
  .comments-bottom { padding: 12px 14px; }
  #comment-input { min-height: 66px; }
}

/* overlay animation */
#overlay.closing #overlay-card { animation: zoomOut 0.3s ease forwards; }

@keyframes zoomIn {
  0% { transform: scale(0.75); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes zoomOut {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.75); opacity: 0; }
}

/* ADD button */
#add-promo-btn {
  position: fixed;
  bottom: 23px;
  right: 23px;
  width: 61px;
  height: 61px;
  border-radius: 50%;
  background: var(--white);
  color: var(--bg);
  font-size: 25px;
  font-weight: 700;
  cursor: pointer;
  z-index: 80;
  border: none;
  box-shadow: 0 8px 30px rgba(0,161,222,.3);
  animation: pulseFloat 2.5s ease-in-out infinite;
}

@keyframes pulseFloat {
  0%,100% { transform: translateY(0) }
  50% { transform: translateY(-6px) }
}

/* ========== MODALS ========== */
#login-modal, #card-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(15px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

#login-modal.show, #card-modal.show { display: flex; }

.modal-content {
  background: var(--white);
  border-radius: var(--r-24);
  padding: 29px;
  max-width: 520px;
  width: 90vw;
  box-shadow: var(--shadow-modal);
  text-align: center;
}

/* promo modal */
.modal-content.promo-modal {
  max-width: 460px;
  width: min(460px, 92vw);
  padding: 16px 18px;
  max-height: none;
  overflow: visible;
}

.modal-content.promo-modal .form-header { margin: 0 0 10px 0; }

.modal-content.promo-modal .form-header h2 {
  margin: 0 0 6px 0;
  font-size: 18px;
  line-height: 1.15;
}

.modal-content.promo-modal #card-form input,
.modal-content.promo-modal #card-form textarea {
  padding: 13px;
  border-radius: var(--r-14);
  margin-bottom: 11px;
}

.modal-content.promo-modal .promo-row-2 {
  display: flex;
  gap: 11px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-content.promo-modal .promo-row-2 > * {
  flex: 1 1 220px;
  min-width: 0;
}

.modal-content.promo-modal input[type="file"] {
  padding: 11px;
  background: var(--white);
}

.modal-content.promo-modal .promo-actions {
  display: flex;
  gap: 11px;
  margin-top: 6px;
  flex-wrap: nowrap;
}

.modal-content.promo-modal .promo-actions button {
  width: auto !important;
  flex: 1 1 0;
  min-width: 0;
}

.modal-content.promo-modal .btn-primary,
.modal-content.promo-modal .btn-danger {
  padding: 11px 13px;
  border-radius: var(--r-14);
  font-size: 13px;
  cursor: pointer;
  font-weight: 900;
  border: none;
}

.modal-content.promo-modal .btn-primary {
  background: var(--bg);
  color: var(--white);
}

.modal-content.promo-modal .btn-danger {
  background: var(--danger);
  color: var(--white);
}

.modal-content.promo-modal .btn-primary:hover,
.modal-content.promo-modal .btn-danger:hover { filter: brightness(1.03); }

@media (max-width: 480px), (max-height: 700px) {
  .modal-content.promo-modal {
    max-width: 420px;
    width: 92vw;
    max-height: 82vh;
    overflow: auto;
  }
  .modal-content.promo-modal .promo-actions {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

.google-login-btn {
  display: flex;                    /* ← flex pro ícone */
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--r-16);
  margin-bottom: 18px;
  font-weight: 600;
  position: relative;               /* pro ::before */
  overflow: hidden;
}
.google-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(66,133,244,0.6),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

.google-login-btn::before {
  content: '';
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 3px;
  box-shadow: 
    inset 0 0 0 18px #4285f4,    /* G Google */
    inset 0 0 0 32px #34a853,
    inset 0 0 0 46px #fbbc05,
    inset 0 0 0 60px #ea4335,
    0 0 10px rgba(255,255,255,0.8); /* glow */
  flex-shrink: 0;
}
#card-form input, #card-form textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--r-16);
  margin-bottom: 18px;
}

.form-row { display: flex; gap: 13px; }

#card-form button {
  padding: 18px;
  width: 100%;
  background: var(--bg);
  color: var(--white);
  border: none;
  border-radius: var(--r-16);
  font-size: 16px;
  cursor: pointer;
}

.success-message {
  background: #4caf50;
  color: var(--white);
  padding: 25px;
  border-radius: var(--r-20);
}

/* FOOTER */
footer {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: var(--white);
  pointer-events: none;
  z-index: 20;
}

footer span {
  position: relative;
  z-index: 21;
  background: rgba(255,255,255,0.15);    /* pílula glass sutil */
  padding: 6px 16px;
  border-radius: 25px;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
}




/* ========== PAID CARD ========== */
@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.paid-card {
  position: relative;
  border: none !important;
}

.paid-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 3;
  pointer-events: none;
  background: conic-gradient(
    from var(--a),
    rgba(0,0,0,0) 0deg,
    rgba(0,0,0,0) 235deg,
    var(--paid-red) 255deg,
    var(--paid-pink) 275deg,
    var(--paid-blue) 290deg,
    rgba(0,0,0,0) 315deg,
    rgba(0,0,0,0) 360deg
  );
  padding: 4px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: saturate(1.25) contrast(1.05);
  animation: paidAround 1.8s linear infinite;
}

@keyframes paidAround {
  to { --a: 360deg; }
}

@supports not (@property --a) {
  animation: paidFallback 2s linear infinite !important;
  background: linear-gradient(45deg, transparent 0%, var(--paid-red) 20%, var(--paid-pink) 40%, var(--paid-blue) 60%, transparent 80%);
}

@keyframes paidFallback {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.paid-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(255,0,0,0.85);
  color: var(--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;
}

/* deal card */
.deal-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: var(--white);
  box-shadow: var(--shadow-overlay);  /* ← mesma do overlay (0 20px 45px rgba(0,0,0,0.35)) */
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  transition: transform var(--t-med), filter var(--t-med), box-shadow var(--t-med);
}


.deal-card img {
  width: 100%;
  height: 70%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  display: block;
  border-radius: calc(var(--r-22) - 2px);  /* ← borda interna branca */
  padding: 4px;                            /* ← espaço interno */
  box-sizing: border-box;
}

/* CARD BOTTOM */
.deal-info {
  height: 30%;
  padding: 11px 11px 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.08), rgba(0,0,0,0.02));
  border-top: 1px solid rgba(0,0,0,0.06);
}

.deal-title-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.deal-title {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  color: rgba(0,0,0,0.88);
}

.deal-prices {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px;
}

.deal-old-price {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 11px;
  color: rgba(0,0,0,0.70);
}

.deal-price {
  font-weight: 950;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(0,0,0,0.92);
}

.card-counts-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
  backdrop-filter: blur(8px);
}

.card-counts-inline .cc-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 10px;
  line-height: 1;
  color: rgba(0,0,0,0.78);
  white-space: nowrap;
}

.card-counts-inline .cc-ico {
  font-size: 11px;
  line-height: 1;
}

@media (max-width: 600px) {
  .deal-info {
    padding: 9px 9px 8px 9px;
    gap: 6px;
  }
  .deal-price { font-size: 14px; }
  .card-counts-inline {
    padding: 6px 9px;
    gap: 8px;
  }
  .card-counts-inline .cc-item { font-size: 10px; }
}

/* ========== ADMIN PAGE ========== */
.admin-page {
  background: var(--bg);
  color: var(--white);
  font-family: "Roboto", sans-serif;
}

.admin-wrap {
  width: min(1100px, 92vw);
  margin: 22px auto 60px auto;
}

.admin-top {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--r-16);
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}

.admin-title {
  margin: 0 0 6px 0;
  font-size: 20px;
}

.admin-meta {
  font-size: 13px;
  opacity: 0.92;
}

.admin-link {
  color: var(--white);
}

.admin-empty {
  margin-top: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-16);
  padding: 14px 16px;
}

.admin-card {
  margin-top: 14px;
  background: rgba(255,255,255,0.95);
  color: rgba(0,0,0,0.85);
  border-radius: var(--r-16);
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.admin-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--r-12);
  flex: 0 0 auto;
}

.admin-content { flex: 1; min-width: 0; }

.admin-h3 { margin: 0 0 8px 0; }

.admin-desc {
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  font-size: 13px;
}

.admin-break { grid-column: 1 / -1; word-break: break-word; }

.admin-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.admin-btn {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: var(--r-12);
  color: var(--white);
}

.admin-btn--ok { background: #4caf50; }
.admin-btn--no { background: #f44336; }

@media (max-width: 700px) {
  .admin-card { flex-direction: column; }
  .admin-img { width: 100%; height: 220px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-actions { flex-direction: column; }
}

/* 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 {
  height: 100%;
}

.deal-card.skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
}

@media (max-width: 600px) {
  .cards-container {
    padding-top: clamp(140px, 28vw, 210px) !important;
  }
}