.report-popup {
  position: fixed;
  top: unset;
  bottom: 26px;
  right: 26px;
  width: 100%;
  max-width: 205px;
  z-index: 999;
}

.report-popup.minimized {
  position: fixed !important;
  top: unset !important;
  bottom: 26px !important;
  right: 26px !important;
  width: auto !important;
  max-width: auto !important;
  z-index: 999 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.report-popup.minimized .report-popup__content {
  position: relative;
  width: auto;
  height: auto;
  display: block;
}

.report-popup.minimized .report-popup__close {
  display: none;
}

.report-popup.minimized .report-popup__image-wrapper {
  display: none !important;
}

.report-popup.minimized .report-popup__button {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
  background: linear-gradient(0deg, rgba(46, 204, 113, 0.6), rgba(46, 204, 113, 0.6)) !important;
  border: 1px solid #2ECC71 !important;
  box-shadow: -1px 4px 9.3px 0px rgba(46, 204, 113, 0.65) !important;
  backdrop-filter: blur(10.399999618530273px) !important;
}

.report-popup.minimized .report-popup__button span {
  display: none;
}

.report-popup.minimized .report-popup__button-icon {
  display: none;
}

.report-popup.minimized .report-popup__minimized-icon {
  margin: 0;
  width: 24px;
  height: 24px;
  order: 0;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain;
  filter: drop-shadow(0px 2px 2.4px rgba(0, 0, 0, 0.25));
}

.report-popup__minimized-icon {
  display: none;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.report-popup__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 27px;
  height: 27px;
  border-radius: 450px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
              linear-gradient(0deg, rgba(157, 157, 157, 0.4), rgba(157, 157, 157, 0.4));
  border: 0.9px solid #CECECE;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transform: translate(50%, -50%);
  box-shadow: -0.9px 3.6px 8.37px 0px rgba(97, 97, 97, 0.65);
  backdrop-filter: blur(9.36px);
}

.report-popup__close svg {
  width: 12.6px;
  height: 12.6px;
  opacity: 1;
}

.report-popup__close svg path {
  stroke: #FFFFFF;
  fill: #FFFFFF;
}

.report-popup__content {
  position: relative;
}

.report-popup__documents {
  position: relative;
  height: 280px;
  margin-bottom: 20px;
  perspective: 1000px;
}

.report-popup__document {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f2a0f 0%, #0a1a0a 100%);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.report-popup__document--front {
  z-index: 3;
  transform: rotateY(0deg);
}

.report-popup__document--middle {
  z-index: 2;
  transform: rotateY(-5deg) translateX(8px) translateY(4px);
  opacity: 0.7;
}

.report-popup__document--back {
  z-index: 1;
  transform: rotateY(-10deg) translateX(16px) translateY(8px);
  opacity: 0.5;
}

.report-popup__document-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.report-popup__logo {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #2ECC71;
  letter-spacing: 0.5px;
}

.report-popup__document-title h3 {
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 8px 0;
}

.report-popup__document-subtitle {
  font-family: "Lexend", sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 16px 0;
}

.report-popup__document-faces {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.report-popup__face {
  aspect-ratio: 1;
  background: rgba(46, 204, 113, 0.2);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.report-popup__face::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 35%, rgba(46, 204, 113, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 35%, rgba(46, 204, 113, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, transparent 50%, rgba(46, 204, 113, 0.2) 50%);
  filter: blur(1px);
}

/* Some faces more blurred/pixelated */
.report-popup__face:nth-child(n+11)::after {
  filter: blur(2px);
  opacity: 0.6;
}

.report-popup__document-chart {
  width: 100%;
  height: 60px;
  margin-top: 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(46, 204, 113, 0.1) 100%);
  position: relative;
}

.report-popup__document-chart::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(46, 204, 113, 0.8) 0%, rgba(46, 204, 113, 0.2) 100%);
  transform: translateY(0) rotate(-5deg);
}

.report-popup__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 205px;
  margin-bottom: 7px;
  border: 1px solid #2ECC71;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: -1px 4px 9.3px 0px rgba(46, 204, 113, 0.65);
  backdrop-filter: blur(10.399999618530273px);
  padding-bottom: 0;
}

.report-popup__image-wrapper::before {
  content: '';
  display: block;
  padding-bottom: 53.17%; /* Aspect ratio 205:109 (109/205 * 100) */
}

.report-popup__image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.report-popup__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: row; /* Desktop: text, then icon */
  width: 100%;
  max-width: 205px;
  min-height: 40px;
  padding: 10px;
  background: linear-gradient(0deg, rgba(46, 204, 113, 0.6), rgba(46, 204, 113, 0.6));
  border: 1px solid #2ECC71;
  border-width: 1px;
  border-radius: 500px;
  color: #FFFFFF;
  font-family: Lexend, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  text-decoration: none;
  box-shadow: -1px 4px 9.3px 0px rgba(46, 204, 113, 0.65);
  backdrop-filter: blur(10.399999618530273px);
  position: relative;
  overflow: hidden;
  opacity: 1;
}

.report-popup__button:hover,
.report-popup__button:active,
.report-popup__button:focus {
  color: #FFFFFF !important;
}

.report-popup__button-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  order: 2; /* Desktop: icon on the right */
  display: block;
  object-fit: contain;
  filter: drop-shadow(0px 2px 2.4px rgba(0, 0, 0, 0.25));
}

.report-popup__button span {
  text-shadow: 0px 2px 2.4px rgba(0, 0, 0, 0.25);
  pointer-events: none; /* Prevent hover effects on text */
}


.report-popup__button svg {
  flex-shrink: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .report-popup {
    position: fixed !important;
    top: unset !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #2ECC71 !important;
  }
  
  .report-popup__content {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .report-popup__image-wrapper {
    display: none !important; /* Hide image on mobile */
  }
  
  .report-popup__documents {
    display: none; /* Hide documents on mobile */
  }
  
  .report-popup__button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 24px;
    font-size: 16px;
    border-radius: 0;
    flex-direction: row; /* Mobile: icon left, text right */
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  
  .report-popup__button-icon {
    order: 0; /* Mobile: icon on the left */
  }
  
  .report-popup__button span {
    order: 1; /* Mobile: text after icon */
  }
  
  .report-popup__close {
    display: none;
  }
  
  .report-popup.minimized {
    bottom: 0;
    left: 0;
    right: auto;
    top: unset;
  }
  
  .report-popup.minimized .report-popup__button {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    padding: 0;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .report-popup {
    position: fixed !important;
    top: unset !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #2ECC71 !important;
  }
  
  .report-popup__content {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .report-popup__button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 20px;
    font-size: 15px;
  }
}

