/* 
 * License page component styles — scoped entirely to .license-v2
 * This file is loaded ONLY on license.html and has zero effect on any other page.
 *
 * Dark mode follows the existing app pattern: [data-bs-theme="dark"] selector
 * set by scripts.js on document.documentElement.
 */

/* =====================================================================
   SECTION — Background, spacing, navbar clearance
   ===================================================================== */

.license-v2 {
  background: linear-gradient(135deg, #6A82FB 1%, #FC5C7D 100%);
  padding-top: 96px;   /* clears the fixed navbar (~65-70px) safely */
  padding-bottom: 80px;
  /* min-height: 100vh; */
  /* Override the flat color from .bg-secondary */
  background-color: transparent;
}

[data-bs-theme="dark"] .license-v2 {
  background: linear-gradient(135deg, rgba(53, 28, 96, 0.9) 0%, rgba(34, 34, 34, 0.9) 100%);
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */

.license-v2 .lp-hero {
  text-align: center;
  padding-bottom: 40px;
}

.license-v2 .lp-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.license-v2 .lp-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 14px;
}

.license-v2 .lp-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin: 0 auto;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 767px) {
  .license-v2 {
    padding-top: 80px;
    padding-bottom: 48px;
  }

  .license-v2 .lp-title {
    font-size: 32px;
  }
}

/* =============================================================
   License page — inline styles extracted from license.html
   These were originally in a <style> block; moved here so they
   apply both on the standalone license.html and via the SPA router.
   ============================================================= */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Form section fade-in animation */
.form-section {
  animation: licensePageFadeIn 0.3s ease;
}

@keyframes licensePageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Error message shake animation */
.error-message.show {
  animation: licensePageShake 0.5s ease;
}

@keyframes licensePageShake {
  0%,  100% { transform: translateX(0); }
  25%        { transform: translateX(-10px); }
  75%        { transform: translateX(10px); }
}

/* Tab hover state */
.license-v2 .tab:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Input placeholder colour */
.license-v2 input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Hide reCAPTCHA badge (invisible widget) */
.grecaptcha-badge {
  display: none !important;
}

/* License form positioning */
.license-form {
  position: relative;
}

/* =============================================================
   Payment modals — used by license page (position: fixed)
   ============================================================= */

.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.payment-modal.show {
  opacity: 1;
  visibility: visible;
}

.payment-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: -1;
}

.payment-modal-content {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 650px;
  width: 95%;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.3s ease;
  z-index: 1;
  margin: 0;
  flex-shrink: 0;
}

.payment-modal.show .payment-modal-content {
  transform: translateY(0);
}

.payment-modal-header {
  padding: 30px 30px 20px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  padding: 5px;
  line-height: 1;
}

.payment-modal-close:hover {
  opacity: 1;
}

.payment-success-icon {
  font-size: 60px;
  color: #4ade80;
  margin-bottom: 15px;
  display: block;
  animation: paymentSuccessPulse 2s ease-in-out;
}

.payment-error-icon {
  font-size: 60px;
  color: #f87171;
  margin-bottom: 15px;
  display: block;
  animation: paymentErrorShake 0.6s ease-in-out;
}

@keyframes paymentSuccessPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

@keyframes paymentErrorShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

.payment-modal-title {
  color: white;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.payment-modal-body {
  padding: 20px 30px;
}

.payment-modal-message {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.payment-details {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.payment-detail-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.payment-detail-item:last-child {
  margin-bottom: 0;
}

.payment-detail-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.payment-detail-value {
  color: white;
  font-weight: 600;
  display: block;
  max-width: 90vw;
  overflow-x: auto;
  white-space: pre-line;
  word-break: break-all;
  padding-bottom: 2px;
}

.payment-modal-footer {
  padding: 20px 30px 30px;
  text-align: center;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.payment-modal-footer .btn {
  min-width: 120px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-modal-footer .btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.payment-modal-footer .btn-primary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.payment-modal-footer .btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.payment-modal-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

@media (max-width: 768px) {
  .payment-modal-content {
    width: 95%;
    max-width: 95%;
    margin: 10px;
  }

  .payment-modal-header,
  .payment-modal-body,
  .payment-modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .payment-modal-title {
    font-size: 24px;
  }

  .payment-success-icon,
  .payment-error-icon {
    font-size: 50px;
  }

  .payment-modal-footer {
    flex-direction: column;
  }

  .payment-modal-footer .btn {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .payment-modal-content {
    width: 90%;
    max-width: 650px;
  }
}

