/* Offer Modal Styles */
.offer-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: offerModalFadeIn 1s cubic-bezier(.4,0,.2,1);
}

.offer-modal-content {
  background: linear-gradient(135deg, #1c2c44 0%, #4a90e2 100%);
  margin: 2% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: offerModalSlideDown 1s cubic-bezier(.4,0,.2,1);
}

@keyframes offerModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes offerModalSlideDown {
  from { transform: translateY(-60px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.offer-modal-header {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
  color: #1c2c44;
  padding: 25px 30px;
  border-radius: 20px 20px 0 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer-modal-header h2 {
  margin: 0;
  color: #1c2c44;
  font-size: 28px;
  font-weight: 700;
}

.offer-modal-header h2 i {
  color: #1c2c44;
  margin-right: 10px;
  animation: bounce 2s infinite;
}

.offer-close {
  color: #1c2c44;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.offer-close:hover {
  color: #fff;
  transform: scale(1.2) rotate(90deg);
}

.offer-modal-body {
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 20px;
}

.offer-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
  transition: left 0.5s ease;
}

.offer-card:hover::before {
  left: 100%;
}

.offer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

.offer-icon {
  margin-bottom: 20px;
}

.offer-icon i {
  font-size: 40px;
  color: var(--secondary-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.offer-card h3 {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.offer-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.offer-highlight {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.offer-price {
  font-size: 24px;
  font-weight: 700;
  color: #ff6b6b;
}

.offer-original {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}

.offer-feature {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-color);
}

.offer-duration, .offer-bonus, .offer-validity {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.offer-save {
  font-size: 20px;
  font-weight: 700;
  color: #28a745;
}

.offer-btn {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.offer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.offer-btn:hover::before {
  left: 100%;
}

.offer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

.offer-modal-footer {
  background: rgba(28, 44, 68, 0.1);
  padding: 20px 30px;
  border-radius: 0 0 20px 20px;
  text-align: center;
}

.offer-modal-footer p {
  margin: 0;
  color: #666;
  font-size: 12px;
  font-style: italic;
}

.offer-modal-footer i {
  color: var(--secondary-color);
  margin-right: 5px;
}

/* Responsive Design for Offer Modal */
@media screen and (max-width: 768px) {
  .offer-modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 95vh;
  }
  
  .offer-modal-header {
    padding: 20px;
  }
  
  .offer-modal-header h2 {
    font-size: 24px;
  }
  
  .offer-modal-body {
    padding: 20px;
  }
  
  .offer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .offer-card {
    padding: 20px;
  }
  
  .offer-icon i {
    font-size: 35px;
  }
  
  .offer-card h3 {
    font-size: 18px;
  }
  
  .offer-price {
    font-size: 20px;
  }
  
  .offer-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .offer-modal-content {
    width: 98%;
    margin: 2% auto;
  }
  
  .offer-modal-header {
    padding: 15px;
  }
  
  .offer-modal-header h2 {
    font-size: 20px;
  }
  
  .offer-modal-body {
    padding: 15px;
  }
  
  .offer-card {
    padding: 15px;
  }
  
  .offer-icon i {
    font-size: 30px;
  }
  
  .offer-card h3 {
    font-size: 16px;
  }
  
  .offer-description {
    font-size: 13px;
  }
  
  .offer-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Offer Promo Card Styles */
.offer-promo-card {
  margin: 40px auto;
  background: #fff;
  box-shadow: 0 4px 32px rgba(44, 62, 80, 0.13);
  padding: 0 0 32px 0;
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  overflow: hidden;
  border: 1.5px solid #e0e0e0;
  animation: offerCardScaleIn 0.6s cubic-bezier(.4,0,.2,1);
}

.offer-promo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(90deg, #f7e6ff 0%, #e3f0ff 100%);
  padding: 18px 28px 10px 28px;
  border-radius: 18px 18px 0 0;
}

.offer-promo-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.new-users {
  color: #a12e8a;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}
.limited-offer {
  color: #e74c3c;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 2px;
}
.promo-logo {
  height: 38px;
  margin-left: 16px;
  margin-top: 2px;
}

.offer-promo-main {
  text-align: center;
  padding: 0 18px;
}
.offer-promo-main h2 {
  color: #2d2d7b;
  font-size: 1.45rem;
  font-weight: 800;
  margin: 18px 0 10px 0;
  line-height: 1.3;
  letter-spacing: 0.5px;
}
.promo-speeds {
  color: #1a237e;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.promo-features-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 22px 0 10px 0;
  flex-wrap: wrap;
}
.promo-feature {
  background: #f7fafd;
  border-radius: 12px;
  padding: 12px 14px 8px 14px;
  min-width: 90px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
  font-size: 0.98rem;
  font-weight: 500;
  color: #2d2d7b;
  position: relative;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: offerFeatureFadeIn 0.6s cubic-bezier(.4,0,.2,1) forwards;
}
.promo-feature:nth-child(1) { animation-delay: 0.15s; }
.promo-feature:nth-child(3) { animation-delay: 0.3s; }
.promo-feature:nth-child(5) { animation-delay: 0.45s; }
.promo-feature:nth-child(7) { animation-delay: 0.6s; }
.promo-feature:nth-child(9) { animation-delay: 0.75s; }
@keyframes offerFeatureFadeIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.promo-icon {
  font-size: 2rem;
  color: #a12e8a;
  margin-bottom: 4px;
}
.promo-label {
  font-size: 1rem;
  color: #2d2d7b;
  font-weight: 600;
}
.promo-bold {
  color: #1a237e;
  font-weight: 800;
  font-size: 1.5rem;
}
.promo-plus {
  font-size: 1.5rem;
  color: #a12e8a;
  font-weight: 700;
  margin: 0 2px;
  opacity: 0;
  animation: offerPlusFadeIn 0.5s cubic-bezier(.4,0,.2,1) forwards;
}
.promo-plus:nth-child(2) { animation-delay: 0.22s; }
.promo-plus:nth-child(4) { animation-delay: 0.37s; }
.promo-plus:nth-child(6) { animation-delay: 0.52s; }
.promo-plus:nth-child(8) { animation-delay: 0.67s; }
@keyframes offerPlusFadeIn {
  to { opacity: 1; }
}
.promo-ott-logos {
  flex-direction: row;
  background: transparent;
  box-shadow: none;
  min-width: 120px;
  min-height: 40px;
  padding: 0 6px;
  gap: 2px;
}
.ott-logo {
  height: 28px;
  width: auto;
  margin: 0 2px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(44, 62, 80, 0.10);
  background: #fff;
  object-fit: contain;
  animation: ottLogoPulse 1.5s infinite alternate cubic-bezier(.4,0,.2,1);
}
.promo-more {
  font-size: 0.95rem;
  color: #a12e8a;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}
.promo-note {
  color: #888;
  font-size: 0.85rem;
  margin-top: 8px;
  font-style: italic;
}
.promo-value {
  color: #222;
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 18px;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .offer-promo-card {
    max-width: 98vw;
    margin: 18px auto;
  }
}
@media (max-width: 600px) {
  .offer-promo-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px 8px 10px;
  }
  .promo-logo {
    margin: 10px 0 0 0;
    height: 32px;
  }
  .offer-promo-main {
    padding: 0 4px;
  }
  .promo-features-row {
    flex-direction: column;
    gap: 0.7rem;
  }
  .promo-feature, .promo-ott-logos {
    min-width: 80px;
    min-height: 40px;
    padding: 8px 6px 6px 6px;
    font-size: 0.93rem;
  }
  .ott-logo {
    height: 22px;
    border-radius: 4px;
  }
  .promo-value {
    font-size: 1rem;
    margin-top: 12px;
  }
}

/* Ensure animations only play when modal is opened */
.offer-modal[style*="display: block"] .offer-modal-content,
.offer-modal[style*="display: block"] .offer-promo-card,
.offer-modal[style*="display: block"] .promo-feature,
.offer-modal[style*="display: block"] .promo-plus {
  animation-play-state: running !important;
}

@keyframes ottLogoPulse {
  from { transform: scale(1); box-shadow: 0 1px 4px rgba(44,62,80,0.10); }
  to { transform: scale(1.12); box-shadow: 0 4px 12px rgba(44,62,80,0.18); }
} 