/* Main Container */
.fn-pricing-table {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: #f8fafc;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

/* Header */
.fn-pricing-table-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}

.fn-pricing-table-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fn-pricing-table-subtitle {
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Incentives Banner */
.fn-pricing-table-incentives-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 0 auto;
  max-width: 42rem;
  backdrop-filter: blur(8px);
}

.fn-pricing-table-incentives-icon {
  background: rgba(16, 185, 129, 0.2);
  border-radius: 9999px;
  padding: 0.75rem;
  margin-right: 1rem;
}

.fn-pricing-table-incentives-icon-svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #10b981;
}

.fn-pricing-table-incentives-text {
  text-align: left;
}

.fn-pricing-table-incentives-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #f8fafc;
}

.fn-pricing-table-incentives-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Cards Container */
.fn-pricing-table-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .fn-pricing-table-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .fn-pricing-table-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card Wrapper */
.fn-pricing-card-wrapper {
  min-height: 600px;
  position: relative;
}

.fn-pricing-card-featured {
  z-index: 10;
}

@media (min-width: 640px) {
  .fn-pricing-card-featured {
    transform: scale(1.05);
  }
}

/* Card */
.fn-card {
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  transition: all 0.5s;
}

.fn-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.fn-pricing-card-basic {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.fn-pricing-card-popular {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.2) 0%, rgba(30, 64, 175, 0.3) 25%, rgba(59, 130, 246, 0.3) 75%, rgba(96, 165, 250, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 32px 64px rgba(30, 58, 138, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(8px);
}

.fn-pricing-card-lifetime {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.2) 0%, rgba(30, 64, 175, 0.3) 25%, rgba(59, 130, 246, 0.3) 75%, rgba(96, 165, 250, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 32px 64px rgba(30, 58, 138, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(8px);
}

/* Card Header */
.fn-card-header {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .fn-card-header {
    padding: 1.5rem 1.5rem 1.5rem;
  }
}

/* Background Pattern */
.fn-pricing-card-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.fn-pricing-card-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, transparent, white, transparent);
}

/* Badge */
.fn-pricing-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .fn-pricing-card-badge {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
  }
}

.fn-pricing-card-badge-basic {
  background: linear-gradient(to right, #f1f5f9, #e2e8f0);
  color: #334155;
}

.fn-pricing-card-badge-featured {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(4px);
}

.fn-pricing-card-badge-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

/* Price Container */
.fn-pricing-card-price-container {
  position: relative;
  z-index: 10;
  margin-bottom: 0.5rem;
}

/* Price */
.fn-pricing-card-price {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .fn-pricing-card-price {
    font-size: 3rem;
  }
}

.fn-pricing-card-price-featured {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Period */
.fn-pricing-card-period {
  font-size: 1.25rem;
  font-weight: 400;
  margin-left: 0.25rem;
  color: #64748b;
  -webkit-text-fill-color: #64748b;
}

@media (min-width: 768px) {
  .fn-pricing-card-period {
    font-size: 1.5rem;
  }
}

.fn-pricing-card-period-featured {
  color: #e2e8f0;
  -webkit-text-fill-color: #e2e8f0;
}

/* Fee */
.fn-pricing-card-fee {
  font-size: 0.875rem;
  color: #64748b;
}

.fn-pricing-card-fee-featured {
  color: rgba(255, 255, 255, 0.7);
}

.fn-pricing-card-fee-waived {
  font-size: 0.875rem;
  font-weight: 500;
  color: #10b981;
  background: rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
  animation: pulse 2s infinite;
}

.fn-pricing-card-no-fees {
  font-size: 0.875rem;
  color: #64748b;
}

/* Performance Fee */
.fn-pricing-card-performance-fee {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}

.fn-pricing-card-performance-fee-featured {
  color: rgba(255, 255, 255, 0.8);
}

.fn-pricing-card-performance-fee-reduced {
  font-size: 0.875rem;
  font-weight: 500;
  color: #10b981;
  background: rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
  animation: pulse 2s infinite;
}

/* Description */
.fn-card-description {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #475569;
  height: 72px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.fn-pricing-card-description-featured {
  color: rgba(255, 255, 255, 0.8);
}

/* Toggle Container */
.fn-pricing-card-toggle-container {
  margin-top: 1rem;
  height: 88px;
}

@media (min-width: 768px) {
  .fn-pricing-card-toggle-container {
    margin-top: 1.5rem;
  }
}

/* Toggle Wrapper */
.fn-pricing-card-toggle-wrapper {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .fn-pricing-card-toggle-wrapper {
    padding: 1rem;
  }
}

.fn-pricing-card-toggle-inactive {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.fn-pricing-card-toggle-active {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
}

/* Toggle Content */
.fn-pricing-card-toggle-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Toggle Icon Wrapper */
.fn-pricing-card-toggle-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .fn-pricing-card-toggle-icon-wrapper {
    gap: 0.75rem;
  }
}

/* Toggle Icon Background */
.fn-pricing-card-toggle-icon-bg {
  padding: 0.375rem 0.5rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2);
}

@media (min-width: 768px) {
  .fn-pricing-card-toggle-icon-bg {
    padding: 0.5rem;
  }
}

/* Toggle Icon */
.fn-pricing-card-toggle-icon {
  width: 0.75rem;
  height: 0.75rem;
  color: #10b981;
}

@media (min-width: 768px) {
  .fn-pricing-card-toggle-icon {
    width: 1rem;
    height: 1rem;
  }
}

/* Toggle Text */
.fn-pricing-card-toggle-text {
  text-align: left;
}

/* Toggle Title */
.fn-pricing-card-toggle-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
}

@media (min-width: 768px) {
  .fn-pricing-card-toggle-title {
    font-size: 0.875rem;
  }
}

.fn-pricing-card-toggle-title-featured {
  color: #10b981;
}

/* Toggle Subtitle */
.fn-pricing-card-toggle-subtitle {
  font-size: 0.75rem;
  color: #64748b;
}

.fn-pricing-card-toggle-subtitle-featured {
  color: rgba(255, 255, 255, 0.6);
}

/* Toggle Button */
.fn-pricing-card-toggle-button {
  transition: all 0.3s;
  padding: 0.25rem;
}

.fn-pricing-card-toggle-button:hover {
  transform: scale(1.1);
}

/* Toggle On/Off */
.fn-pricing-card-toggle-on {
  width: 1.75rem;
  height: 1.75rem;
  color: #10b981;
}

@media (min-width: 768px) {
  .fn-pricing-card-toggle-on {
    width: 2rem;
    height: 2rem;
  }
}

.fn-pricing-card-toggle-off {
  width: 1.75rem;
  height: 1.75rem;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .fn-pricing-card-toggle-off {
    width: 2rem;
    height: 2rem;
  }
}

.fn-pricing-card-toggle-off-featured {
  color: rgba(255, 255, 255, 0.4);
}

/* Card Content */
.fn-card-content {
  padding: 1rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .fn-card-content {
    padding: 1.5rem;
    padding-bottom: 2rem;
  }
}

/* Features */
.fn-pricing-card-features {
  min-height: 280px;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .fn-pricing-card-features {
    margin-bottom: 1.5rem;
  }
}

/* Feature */
.fn-pricing-card-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .fn-pricing-card-feature {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
}

/* Feature Icon Wrapper */
.fn-pricing-card-feature-icon-wrapper {
  margin-top: 0.125rem;
  padding: 0.25rem;
  border-radius: 9999px;
  background: #dcfce7;
  color: #10b981;
}

@media (min-width: 768px) {
  .fn-pricing-card-feature-icon-wrapper {
    margin-top: 0.25rem;
  }
}

.fn-pricing-card-feature-icon-wrapper-featured {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Feature Text */
.fn-pricing-card-feature-text {
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
  color: #334155;
}

.fn-pricing-card-feature-text-featured {
  color: rgba(255, 255, 255, 0.9);
}

/* Button Wrapper */
.fn-pricing-card-button-wrapper {
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .fn-pricing-card-button-wrapper {
    padding-top: 1.5rem;
  }
}

/* Button */
.fn-button {
  width: 100%;
  padding: 2rem 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.3s;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, #334155, #1e293b, #0f172a);
  color: white;
  border: 2px solid rgba(71, 85, 105, 0.5);
  box-shadow: 0 8px 32px rgba(71, 85, 105, 0.4), 0 4px 16px rgba(71, 85, 105, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .fn-button {
    padding: 2.5rem 2rem;
    font-size: 1rem;
  }
}

.fn-button:hover {
  background: linear-gradient(to bottom right, #475569, #334155, #1e293b);
}

/* Button Shine */
.fn-pricing-card-button-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%) skewX(-12deg);
  transition: transform 1s ease-out;
}

.fn-button:hover .fn-pricing-card-button-shine {
  transform: translateX(100%) skewX(-12deg);
}

/* Button Content */
.fn-pricing-card-button-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .fn-pricing-card-button-content {
    gap: 0.75rem;
  }
}

/* Button Text */
.fn-pricing-card-button-text {
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Button Arrow */
.fn-pricing-card-button-arrow {
  width: 1.25rem;
  height: 1.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

@media (min-width: 768px) {
  .fn-pricing-card-button-arrow {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.fn-button:hover .fn-pricing-card-button-arrow {
  transform: translateX(0.25rem);
}

/* Button Shadow */
.fn-pricing-card-button-shadow {
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 0.25rem;
  border-radius: 9999px;
  filter: blur(4px);
}

.fn-pricing-card-button-shadow-basic {
  background: rgba(71, 85, 105, 0.6);
}

.fn-pricing-card-button-shadow-popular {
  background: rgba(59, 130, 246, 0.6);
}

.fn-pricing-card-button-shadow-lifetime {
  background: rgba(99, 102, 241, 0.6);
}

.fn-pricing-card-button-shadow-incentive {
  background: rgba(16, 185, 129, 0.6);
}

/* Footer */
.fn-pricing-table-footer {
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Trust Indicators */
.fn-pricing-table-trust-indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Trust Item */
.fn-pricing-table-trust-item {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Trust Icon */
.fn-pricing-table-trust-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

/* Animations */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .fn-pricing-table-title {
    font-size: 4.5rem;
  }
  
  .fn-pricing-table-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 639px) {
  .fn-pricing-card-wrapper {
    margin-bottom: 1.5rem;
  }
}

