/* Subscription styles */

/* Dropdown styles */
.subscription-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background-color: #1e293b;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 10px 0;
  margin-top: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
  display: block;
  padding: 8px 15px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Modal styles */
#subscriptionModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.8) !important;
  z-index: 9999 !important;
  display: none !important;
  justify-content: center !important;
  align-items: center !important;
}

#subscriptionModal.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.subscription-modal {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-content {
  background-color: #1e293b;
  color: #fff;
  border-radius: 20px;
  padding: 30px;
  width: 95%;
  max-width: 800px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 2.5rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 3rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #fff;
}

/* Subscription styles */
.subscription-options {
  margin: 20px 0;
}

.plan-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 15px 0;
}

.plan-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 4px solid transparent;
}

.plan-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.plan-card.current {
  border-color: #6200ee;
  background-color: rgba(98, 0, 238, 0.15);
  position: relative;
  overflow: hidden;
}

.plan-card.current::before {
  content: "Current Plan";
  position: absolute;
  top: 15px;
  right: -30px;
  background-color: #6200ee;
  color: white;
  padding: 5px 30px;
  font-size: 12px;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.plan-card.current h4 {
  color: #6200ee;
}

.plan-card h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.8rem;
  font-weight: 700;
}

.plan-card .price {
  font-weight: bold;
  margin-bottom: 5px;
  color: #6200ee;
  font-size: 1.8rem;
}

.plan-card .quota {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #aaa;
}

.plan-card ul {
  text-align: left;
  padding-left: 20px;
  margin-bottom: 15px;
  list-style-type: disc;
}

.plan-card li {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.plan-card button {
  width: 100%;
  padding: 12px;
  background-color: #6200ee;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 1.6rem;
}

.plan-card button:hover:not([disabled]) {
  background-color: #7722ff;
}

.plan-card button[disabled] {
  background-color: #444;
  cursor: not-allowed;
}

/* Loading indicator */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}