/* Trial Banner */
.trial-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 153, 204, 0.15));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  z-index: 1000;
  padding: 12px 20px;
}

.trial-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.trial-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trial-label {
  background: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trial-time {
  color: #00d4ff;
  font-size: 16px;
  font-weight: 700;
}

.trial-upgrade-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  border: none;
  border-radius: 20px;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trial-upgrade-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

/* Trial Offer Modal */
.trial-offer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.trial-offer-content {
  max-width: 500px;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border: 2px solid #00d4ff;
  border-radius: 24px;
  padding: 48px;
  text-align: center;
}

.trial-offer-title {
  font-size: 32px;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 16px;
}

.trial-offer-subtitle {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 32px;
  line-height: 1.5;
}

.trial-offer-features {
  text-align: left;
  margin-bottom: 32px;
}

.trial-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #aaa;
  font-size: 14px;
}

.trial-feature-icon {
  width: 24px;
  height: 24px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  flex-shrink: 0;
}

.trial-offer-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.trial-start-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  border: none;
  border-radius: 24px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trial-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.trial-skip-btn {
  padding: 14px 32px;
  background: transparent;
  border: 1px solid #444;
  border-radius: 24px;
  color: #888;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trial-skip-btn:hover {
  border-color: #666;
  color: #aaa;
}

/* Grace Period Banner */
.grace-period-banner {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 69, 0, 0.15));
  border-bottom: 1px solid rgba(255, 165, 0, 0.3);
}

.grace-period-banner .trial-label {
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
}

.grace-period-banner .trial-time {
  color: #ffa500;
}

/* Read-Only Mode Overlay */
.readonly-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  padding: 20px;
  border-top: 2px solid #ef4444;
  z-index: 999;
}

.readonly-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.readonly-title {
  color: #ef4444;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.readonly-message {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 16px;
}

.readonly-upgrade-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.readonly-upgrade-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

/* Success Modal */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease;
}

.success-content {
  max-width: 500px;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border: 2px solid #22c55e;
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 48px;
  color: #fff;
  font-weight: bold;
}

.success-title {
  font-size: 28px;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 12px;
}

.success-message {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 24px;
  line-height: 1.5;
}

.success-close-btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-close-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

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

/* Trial countdown animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.trial-time.warning {
  color: #ffa500;
  animation: pulse 2s infinite;
}

.trial-time.critical {
  color: #ef4444;
  animation: pulse 1s infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .trial-content {
    flex-direction: column;
    text-align: center;
  }
  
  .trial-info {
    flex-direction: column;
  }
  
  .trial-offer-content {
    padding: 32px 24px;
  }
  
  .trial-offer-title {
    font-size: 24px;
  }
  
  .trial-offer-subtitle {
    font-size: 16px;
  }
  
  .trial-offer-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .trial-start-btn,
  .trial-skip-btn {
    width: 100%;
  }
}
