/* ========================================
   FlipIQ - Premium Page CSS
   Minimalist SaaS Design System
   ======================================== */

/* === CSS Variables / Design System === */
:root {
  /* Primary Colors */
  --primary-purple: #7C3AED;
  --primary-purple-hover: #6D28D9;
  --primary-purple-light: #A78BFA;
  --purple-gradient: linear-gradient(135deg, #7C3AED, #6D28D9);

  /* Neutrals */
  --dark-charcoal: #1F2937;
  --medium-gray: #6B7280;
  --light-gray: #F3F4F6;
  --border-gray: #E5E7EB;
  --white: #FFFFFF;

  /* Success */
  --success-green: #10B981;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* === Reset & Base === */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--light-gray);
  color: var(--dark-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* === Premium Page === */
.premium-page {
  padding-bottom: 80px;
}

/* === Hero Section === */
.premium-hero {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  padding: 80px 24px;
  text-align: center;
  margin-bottom: 60px;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 16px 0;
  line-height: 1.1;
}

.hero-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
}

/* === Pricing Section === */
.pricing-section {
  padding: 0 24px;
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* === Pricing Cards === */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border-gray);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card-popular {
  border-color: var(--primary-purple);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.2);
  transform: scale(1.05);
}

.pricing-card-popular:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.3);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple-gradient);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* === Card Header === */
.card-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-gray);
  margin-bottom: 24px;
}

.plan-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-charcoal);
  margin: 0 0 16px 0;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 12px;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-purple);
}

.price-period {
  font-size: 16px;
  color: var(--medium-gray);
  margin-left: 4px;
}

.plan-description {
  font-size: 14px;
  color: var(--medium-gray);
  margin: 0;
}

/* === Card Features === */
.card-features {
  flex: 1;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--dark-charcoal);
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item.disabled {
  opacity: 0.4;
}

.feature-icon {
  flex-shrink: 0;
  color: var(--success-green);
}

.feature-item.disabled .feature-icon {
  color: var(--medium-gray);
}

/* === Plan Buttons === */
.plan-btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-btn-primary {
  background: var(--purple-gradient);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.plan-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.plan-btn-secondary {
  background: var(--light-gray);
  color: var(--medium-gray);
  cursor: not-allowed;
}

/* === Payment Modal === */
.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--medium-gray);
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--light-gray);
  color: var(--dark-charcoal);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-charcoal);
  margin: 0 0 8px 0;
}

.modal-subtitle {
  font-size: 16px;
  color: var(--medium-gray);
  margin: 0 0 32px 0;
}

/* === Payment Methods === */
.payment-methods {
  margin-bottom: 32px;
}

.payment-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-charcoal);
  margin: 0 0 16px 0;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid var(--border-gray);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option:hover {
  border-color: var(--primary-purple);
  background: #F5F3FF;
}

.payment-option:has(input:checked) {
  border-color: var(--primary-purple);
  background: #F5F3FF;
}

.payment-option input[type="radio"] {
  flex-shrink: 0;
  cursor: pointer;
}

.payment-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-charcoal);
}

.payment-provider {
  font-size: 13px;
  color: var(--medium-gray);
}

.payment-icon {
  flex-shrink: 0;
  color: var(--medium-gray);
}

/* === Modal Actions === */
.modal-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn-cancel {
  background: var(--white);
  color: var(--dark-charcoal);
  border: 1px solid var(--border-gray);
}

.modal-btn-cancel:hover {
  background: var(--light-gray);
}

.modal-btn-confirm {
  background: var(--purple-gradient);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.modal-btn-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.payment-note {
  font-size: 12px;
  color: var(--medium-gray);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

/* === Features Comparison === */
.features-comparison {
  padding: 80px 24px 0;
  background: var(--white);
  margin-top: 80px;
}

.comparison-container {
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-charcoal);
  text-align: center;
  margin: 0 0 40px 0;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-table thead {
  background: var(--light-gray);
}

.comparison-table th {
  padding: 20px 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-charcoal);
  border-bottom: 2px solid var(--border-gray);
}

.feature-column {
  text-align: left;
  width: 40%;
}

.popular-column {
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
  color: var(--primary-purple);
  position: relative;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--border-gray);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  padding: 16px;
  text-align: center;
  font-size: 15px;
  color: var(--dark-charcoal);
}

.feature-name {
  text-align: left;
  font-weight: 500;
}

.popular-cell {
  background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
  font-weight: 600;
  color: var(--primary-purple);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Tablet */
@media (max-width: 1024px) {
  .pricing-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .pricing-card-popular {
    transform: scale(1);
  }

  .pricing-card-popular:hover {
    transform: translateY(-8px);
  }
}

/* Tablet */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .comparison-title {
    font-size: 24px;
  }

  .modal-content {
    padding: 32px 24px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .premium-hero {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 15px;
  }

  .pricing-section {
    padding: 0 16px;
  }

  .pricing-card {
    padding: 24px;
  }

  .price-amount {
    font-size: 40px;
  }

  .comparison-title {
    font-size: 20px;
  }

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 8px;
    font-size: 13px;
  }

  .modal-content {
    padding: 24px 20px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-btn {
    width: 100%;
  }
}
