/* Dark tint overlay masking the background page content */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

/* Centered Modal Content Card Cardboard block */
.modal-container {
  background-color: #1e1f22;
  border: 1px solid #2b2d31;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Tab Layout Selectors on top */
.modal-tabs {
  display: flex;
  justify-content: space-around;
  position: relative;
}

.tab-btn {
  background: none;
  border: none;
  color: #949ba4;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 0;
  cursor: pointer;
  width: 50%;
  text-align: center;
  transition: color 0.2s ease;
}

.tab-btn.active {
  color: #007aff;
}

/* Underline Slider Architecture */
.tab-underline-bar {
  position: relative;
  height: 2px;
  background-color: #2b2d31;
  margin-bottom: 24px;
  border-radius: 2px;
}

.tab-selector-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: #007aff;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Internal Body Text Layout elements */
.modal-body {
  text-align: center;
  margin-bottom: 32px;
}

#modal-plan-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.modal-price-display {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.modal-currency {
  font-size: 24px;
  vertical-align: super;
}

#modal-duration {
  font-size: 16px;
  color: #949ba4;
  font-weight: 400;
}

.modal-storage-info {
  font-size: 14px;
  color: #949ba4;
  margin: 0;
}

/* Footer Control Elements aligned horizontally */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-cancel {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #4e5058;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-cancel:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-continue {
  background-color: #007aff;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-continue:hover {
  background-color: #0062cc;
}
