/**
 * TrackSharp Premium Pricing Page Styles
 * Custom CSS for Freemius pricing page integration
 */

:root {
  --ts-primary: #1ecc8c;
  --ts-primary-rgb: 30, 204, 140;
  --ts-primary-dark: #158a5f;
  --ts-primary-darker: #127a54;
  --ts-text-dark: #0f172a;
  --ts-text-muted: #64748b;
  --ts-text-light: #94a3b8;
  --ts-surface: #ffffff;
  --ts-surface-alt: #f8fafc;
  --ts-border: #e2e8f0;
  --ts-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --ts-shadow-sm: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
  --ts-radius: 16px;
  --ts-radius-sm: 12px;
}

.fs-upgrade-button {
place-self:center !important;
}

/* Base Wrapper & Navigation Layout */
#fs_pricing_wrapper,
.fs-app-main {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  background: var(--ts-surface-alt) !important;
  min-height: 100vh;
}

/* Header Tweaks */
.fs-app-header {
  padding: 40px 0 !important;
  border-bottom: 1px solid var(--ts-border) !important;
  background: #ffffff !important;
  margin-bottom: 0px !important;
}

.fs-app-header .fs-plugin-icon {
  width: 64px !important;
  height: 64px !important;
  border-radius: 12px !important;
}




/* Billing Cycles Toggle - Modernized */
.fs-section--billing-cycles {
  margin-bottom: 48px !important;
  display: flex !important;
  justify-content: center !important;
}

.fs-billing-cycles {
  display: flex !important;
  background: #ffffff !important;
  border: 1px solid var(--ts-border) !important;
  border-radius: 999px !important;
  padding: 6px !important;
  box-shadow: var(--ts-shadow-sm) !important;
  list-style: none !important;
  margin: 0 !important;
}

.fs-billing-cycles li {
  padding: 12px 32px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: var(--ts-text-muted) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: none !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}


.fs-billing-cycles li.fs-selected-billing-cycle {
  background: var(--ts-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(var(--ts-primary-rgb), 0.3) !important;
}

/* Annual Discount Badge */
.fs-section--annual-discount {
  text-align: center !important;
  margin-bottom: 24px !important;
}

.fs-section--annual-discount .fs-discount-badge {
  background: rgba(var(--ts-primary-rgb), 0.1) !important;
  color: var(--ts-primary-dark) !important;
  padding: 8px 24px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border: 1px solid rgba(var(--ts-primary-rgb), 0.2) !important;
}

/* Packages Grid */
.fs-packages {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 32px !important;
  margin-top: 40px !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

.fs-package {
  background: #ffffff !important;
  border: 1px solid var(--ts-border) !important;
  border-radius: var(--ts-radius) !important;
  padding: 48px 40px !important;
  width: 350px !important;
  max-width: 100% !important;
  text-align: center !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: var(--ts-shadow-sm) !important;
  position: relative !important;
  flex: 0 1 auto !important;
  margin: 0 !important;
}

.fs-package:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--ts-shadow) !important;
  border-color: var(--ts-primary) !important;
}

/* Most Popular Badge Override */
.fs-most-popular {
  position: absolute !important;
  top: -16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: var(--ts-primary) !important;
  color: #ffffff !important;
  padding: 8px 20px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  box-shadow: 0 4px 12px rgba(var(--ts-primary-rgb), 0.4) !important;
}

/* Pricing Display */
.fs-plan-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--ts-text-muted) !important;
  margin-bottom: 24px !important;
}

.fs-selected-pricing-amount {
  font-size: 64px !important;
  font-weight: 800 !important;
  color: var(--ts-text-dark) !important;
  margin: 16px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.fs-selected-pricing-amount sup {
  font-size: 24px !important;
  font-weight: 700 !important;
  margin: 0 2px !important;
  position: relative !important;
  top: -4px !important;
}

.fs-selected-pricing-amount .fs-period {
  font-size: 18px !important;
  color: var(--ts-text-muted) !important;
  font-weight: 600 !important;
  margin-left: 8px !important;
}

/* Undiscounted price (Normally $X / mo) */
.fs-undiscounted-price {
  font-size: 15px !important;
  color: var(--ts-text-light) !important;
  text-decoration: line-through !important;
  margin-bottom: 4px !important;
  opacity: 0.8 !important;
}

/* Features List */
.fs-plan-features {
  text-align: left !important;
  margin: 32px 0 !important;
  padding: 32px 0 !important;
  border-top: 1px solid var(--ts-border) !important;
  list-style: none !important;
}

.fs-plan-features li {
  margin-bottom: 16px !important;
  font-size: 14px !important;
  color: var(--ts-text-dark) !important;
  display: flex !important;
  align-items: center !important;
}

.fs-plan-features li::before {
  content: "✓" !important;
  color: var(--ts-primary) !important;
  font-weight: 900 !important;
  margin-right: 12px !important;
  font-size: 18px !important;
}

/* Upgrade Button - Massive Brand CTA */
.fs-upgrade-button-container .fs-button,
.fs-button-primary {
  background: var(--ts-primary) !important;
  border: none !important;
  color: #ffffff !important;
  padding: 18px 32px !important;
  border-radius: var(--ts-radius-sm) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(var(--ts-primary-rgb), 0.3) !important;
}

.fs-upgrade-button-container .fs-button:hover,
.fs-button-primary:hover {
  background: var(--ts-primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(var(--ts-primary-rgb), 0.4) !important;
}

/* Disabled/Current Plan Button Styles */
.fs-button[disabled],
.fs-button--outline[disabled],
.fs-upgrade-button[disabled] {
  background: var(--ts-surface-alt) !important;
  border: 2px solid var(--ts-border) !important;
  color: var(--ts-text-light) !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: none !important;
}

/* Ensure TrackSharp-converted upgrade links are never disabled */
.fs-upgrade-button-container a[href*="checkout.freemius.com"] {
  background: var(--ts-primary) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  text-decoration: none !important;
  display: block !important;
  text-align: center !important;
}

.fs-upgrade-button-container a[href*="checkout.freemius.com"]:hover {
  background: var(--ts-primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(var(--ts-primary-rgb), 0.4) !important;
}

/* Disable Unnecessary Elements */
.fs-currencies,
.fs-section--currencies,
.fs-section--badges,
.fs-section--faq,
.fs-powered-by {
  display: none !important;
}