
/* ═══════════════════════════════════════════════════════
   PREMIUM POPUP & LGPD COOKIE CONSENT
═══════════════════════════════════════════════════════ */

/* Modal Promo */
.agy-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.agy-popup-overlay.active {
  opacity: 1; pointer-events: auto;
}
.agy-popup-box {
  background: var(--surf1);
  border: 1px solid var(--bdr);
  border-radius: 20px;
  width: 90%; max-width: 800px;
  display: flex; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.agy-popup-overlay.active .agy-popup-box {
  transform: translateY(0) scale(1);
}
.agy-popup-img {
  width: 45%;
  background-size: cover;
  background-position: center;
}
.agy-popup-content {
  width: 55%;
  padding: 3rem 2.5rem;
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
}
.agy-popup-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: rgba(0,0,0,0.5); /* fundo sutil para não se perder na imagem se ela for clara */
  border: none; color: #fff; width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer;
  transition: all 0.2s;
  z-index: 20;
}
.agy-popup-close:hover { background: var(--pri); transform: rotate(90deg) scale(1.1); }
.agy-popup-content h2 { margin-bottom: 0.5rem; font-size: 2.2rem; line-height: 1.1; }
.agy-popup-content p { color: var(--txt2); margin-bottom: 2rem; font-size: 1.1rem; }
.agy-popup-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.1rem 2.2rem; font-weight: 700; font-size: 1.1rem;
  border-radius: 12px; 
  background: linear-gradient(135deg, #FF3399 0%, #FF6600 100%);
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 51, 153, 0.4);
  text-decoration: none; align-self: flex-start;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.agy-popup-btn:hover { 
    transform: translateY(-3px) scale(1.02); 
    box-shadow: 0 12px 32px rgba(255, 102, 0, 0.5); 
    color: #fff;
}

@media (max-width: 768px) {
  .agy-popup-box { flex-direction: column; max-width: 400px; }
  .agy-popup-img { width: 100%; height: 200px; }
  .agy-popup-content { width: 100%; padding: 2rem 1.5rem; }
  .agy-popup-content h2 { font-size: 1.8rem; }
}/* LGPD Banner */
/* LGPD Banner Base */
.agy-lgpd-banner {
  position: fixed; z-index: 9998;
  max-width: 600px; width: calc(100% - 2rem);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bdr); border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 15px 50px rgba(0,0,0,0.6);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s;
  opacity: 0; pointer-events: none;
}
/* Themes */
.agy-lgpd-banner.theme-dark {
    background: rgba(18, 18, 20, 0.95);
    color: #fff;
}
.agy-lgpd-banner.theme-light {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    border-color: rgba(0,0,0,0.1);
}
/* Positions */
.agy-lgpd-banner.pos-center {
    bottom: 1.5rem; left: 50%;
    transform: translate(-50%, 150%);
}
.agy-lgpd-banner.pos-center.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

.agy-lgpd-banner.pos-left {
    bottom: 1.5rem; left: 1.5rem;
    transform: translateY(150%);
}
.agy-lgpd-banner.pos-left.show { transform: translateY(0); opacity: 1; pointer-events: auto; }

.agy-lgpd-banner.pos-right {
    bottom: 1.5rem; right: 1.5rem;
    transform: translateY(150%);
}
.agy-lgpd-banner.pos-right.show { transform: translateY(0); opacity: 1; pointer-events: auto; }

.lgpd-top { display: flex; gap: 1.2rem; align-items: center; }
.lgpd-dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.2rem;
  background: transparent;
  transition: all 0.3s;
  cursor: pointer;
  z-index: 10;
}
.lgpd-dismiss:hover { background: rgba(255,255,255,0.1); color: #fff; }
.lgpd-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center;
  color: var(--txt1); font-size: 1.3rem; border: 1px solid rgba(255,255,255,0.08);
}
.lgpd-text { flex: 1; }
.lgpd-text h4 { font-size: 0.95rem; margin-bottom: 0.3rem; margin-top: 0; }
.lgpd-text p { font-size: 0.8rem; color: var(--txt2); margin-bottom: 0; line-height: 1.4; }
.lgpd-text a { color: var(--orange); text-decoration: none; font-weight: 500; display: inline-block; margin-top: 4px; transition: color 0.3s; }
.lgpd-text a:hover { color: var(--pink); }
.lgpd-actions { display: flex; gap: 0.5rem; margin-top: 0.2rem; }
.lgpd-btn {
  flex: 1; padding: 0.6rem 0; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: none; text-align: center;
}
.lgpd-btn-accept { background: linear-gradient(135deg, #FF3399, #FF6600); color: #fff; border: none; font-weight: 700; letter-spacing: 0.5px;}
.lgpd-btn-accept:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255, 51, 153, 0.3); }
.lgpd-btn-reject { background: transparent; color: inherit; border: 1px solid var(--bdr2); opacity: 0.8; }
.lgpd-btn-reject:hover { background: rgba(128,128,128,0.1); opacity: 1; }

@media (max-width: 600px) {
  .agy-lgpd-banner.pos-center, .agy-lgpd-banner.pos-left, .agy-lgpd-banner.pos-right {
      bottom: 1rem; left: 1rem; right: 1rem; width: calc(100% - 2rem); max-width: none;
      transform: translateY(150%);
  }
  .agy-lgpd-banner.pos-center.show, .agy-lgpd-banner.pos-left.show, .agy-lgpd-banner.pos-right.show {
      transform: translateY(0);
  }
  .lgpd-top { flex-direction: column; align-items: center; text-align: center; }
  .lgpd-actions { flex-direction: column; width: 100%; }
  .lgpd-actions .lgpd-btn { width: 100%; padding: 0.8rem 0; }
}

/* LGPD Preferences Modal */
.lgpd-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lgpd-modal-overlay.active { opacity: 1; pointer-events: auto; }
.lgpd-modal-box {
  background: var(--surf1); border: 1px solid var(--bdr); border-radius: 16px;
  width: 90%; max-width: 500px; padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transform: translateY(20px); transition: transform 0.3s;
  max-height: 90vh; overflow-y: auto;
}
.lgpd-modal-overlay.active .lgpd-modal-box { transform: translateY(0); }
.lgpd-modal-header {
  display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--bdr);
  padding-bottom: 1rem; margin-bottom: 1.5rem;
}
.lgpd-modal-header h3 { font-size: 1.25rem; font-family: 'Clash Display', sans-serif; margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.lgpd-modal-close { background: none; border: none; color: var(--txt2); font-size: 1.2rem; cursor: pointer; }
.lgpd-modal-close:hover { color: var(--pri); }
.lgpd-cookie-type { margin-bottom: 1.2rem; background: var(--surf2); border: 1px solid var(--bdr2); padding: 1rem; border-radius: 12px; }
.lgpd-cookie-type-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.lgpd-cookie-type-head h4 { font-size: 1rem; margin: 0; color: var(--txt1); }
.lgpd-cookie-desc { font-size: 0.85rem; color: var(--txt2); margin: 0; line-height: 1.4; }

/* Toggle Switch specific for LGPD */
.lgpd-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.lgpd-toggle input { opacity: 0; width: 0; height: 0; }
.lgpd-toggle-slider { position: absolute; cursor: pointer; inset: 0; background-color: var(--bdr2); transition: .4s; border-radius: 24px; }
.lgpd-toggle-slider:before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: white; transition: .4s; border-radius: 50%;
}
.lgpd-toggle input:checked + .lgpd-toggle-slider { background-color: var(--pri); }
.lgpd-toggle input:checked + .lgpd-toggle-slider:before { transform: translateX(20px); }
.lgpd-toggle input:disabled + .lgpd-toggle-slider { opacity: 0.5; cursor: not-allowed; }

.lgpd-modal-footer { display: flex; justify-content: flex-end; gap: 1rem; border-top: 1px solid var(--bdr); padding-top: 1.5rem; margin-top: 1.5rem; }
.lgpd-modal-btn-safe { background: linear-gradient(135deg, #FF3399, #FF6600); color: #fff; padding: 0.8rem 1.5rem; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; transition: transform 0.2s; }
.lgpd-modal-btn-safe:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 51, 153, 0.3); }
