/* Modern Pricing Page Styling */

/* Color Variables */
:root {
  --primary-blue: #3b82f6;
  --primary-blue-dark: #1d4ed8;
  --secondary-blue: #6366f1;
  --accent-purple: #8b5cf6;
  --success-green: #10b981;
  --warning-yellow: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-white: #ffffff;
  --bg-gray-50: #f9fafb;
  --bg-gray-100: #f3f4f6;
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Container and Layout */
.pricing-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
  background: linear-gradient(
    181deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

.pricing-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards Grid */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual Cards */
.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

/* Popular Plan Highlight */
.pricing-card.popular {
  border: 2px solid var(--primary-blue);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.pricing-card.popular::before {
  content: "Most Popular";
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.7rem 1rem 0.3rem 1rem;
  text-align: center;
  letter-spacing: 0.05em;
  border-radius: 0 0 0.8rem 0.8rem;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-8px);
}

/* Card Header */
.card-header {
  padding: 1.5rem 1rem 1rem;
  border-bottom: 1px solid var(--border-light);
  background: #f9fafb;
}

.pricing-card.popular .card-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1rem 0 0.75rem;
  color: var(--text-primary);
}

.pricing-card.popular .card-header h2 {
  color: white;
}

/* Price Styling */
.price {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.pricing-card.popular .price {
  color: white;
}

.price .amount {
  font-size: 2rem;
  line-height: 1;
}

.price .period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.pricing-card.popular .price .period {
  color: rgba(255, 255, 255, 0.8);
}

/* Features List */
.features {
  list-style: none;
  padding: 1rem;
  margin: 0;
  flex: 1;
  background: #ffffff;
}

.features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 1.25rem;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
  font-size: 1.1rem;
}

.pricing-card.popular .features li::before {
  color: var(--primary-blue);
}

/* Call-to-Action Buttons */
.btn-select {
  display: block;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  text-align: center;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  background-color: #3b82f6;
}

.btn-select::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-select:hover::before {
  left: 100%;
}

.btn-select:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
  box-shadow: var(--shadow-lg);
}

/* Disabled State */
.btn-select.is-disabled {
  background: var(--bg-gray-100);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
  border: 1px solid var(--border-light);
}

.btn-select.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Token Card Specific Styles */
.token-card {
  position: relative;
}

.token-form {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #ffffff;
}

.token-form label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.token-form select {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.token-form select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.token-form .btn-select {
  margin-top: 0.5rem;
  border-radius: var(--radius-md);
}

/* Responsive Design */
@media (min-width: 1200px) {
  .pricing-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  
  .pricing-card.popular {
    transform: scale(1.02);
  }
  
  .pricing-card.popular:hover {
    transform: scale(1.02) translateY(-8px);
  }
}

@media (max-width: 768px) {
  .pricing-container {
    padding: 2rem 1rem;
  }
  
  .pricing-title {
    font-size: 2rem;
  }
  
  .pricing-subtitle {
    font-size: 1rem;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .pricing-card.popular {
    transform: none;
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-8px);
  }
  
  .card-header {
    padding: 1rem;
  }
  
  .price {
    font-size: 1.75rem;
  }
  
  .price .amount {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .pricing-title {
    font-size: 1.75rem;
  }
  
  .pricing-subtitle {
    font-size: 0.9rem;
  }
  
  .pricing-cards {
    gap: 0.75rem;
  }
  
  .card-header {
    padding: 0.75rem;
  }
  
  .features {
    padding: 0.75rem;
  }
  
  .token-form {
    padding: 0.75rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-white: #1f2937;
    --bg-gray-50: #111827;
    --bg-gray-100: #374151;
    --border-light: #374151;
    --border-medium: #4b5563;
  }
  
  .pricing-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }
  
  .pricing-card {
    background: #1f2937;
    border-color: #374151;
  }
  
  .card-header {
    background: #111827;
    border-bottom-color: #374151;
  }
  
  .features {
    background: #1f2937;
  }
  
  .features li {
    color: #d1d5db;
  }
  
  .token-form {
    background: #1f2937;
  }
  
  .token-form select {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }
  
  .btn-select.is-disabled {
    background: #374151;
    color: #9ca3af;
    border-color: #374151;
  }
}

/* Free Trial Notice Styling */
.trial-notice {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #0ea5e9;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px auto 32px auto;
  max-width: 800px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.trial-notice-content {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #0c4a6e;
  font-size: 0.95rem;
  line-height: 1.5;
}

.trial-notice-content i {
  color: #0ea5e9;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trial-notice-content strong {
  color: #075985;
  font-weight: 600;
}

@media (max-width: 768px) {
  .trial-notice {
    margin: 20px 16px 28px 16px;
    padding: 14px 16px;
  }
  
  .trial-notice-content {
    font-size: 0.9rem;
    gap: 10px;
  }
  
  .trial-notice-content i {
    font-size: 1.1rem;
  }
}

/* Trial Badge Styling */
.trial-badge {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #d4d1cd;
  border-radius: 0;
  padding: 10px 14px;
  margin: 12px 0;
  font-weight: 600;
  color: #92400e;
  font-size: 0.9rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
  border-left: 0;
  border-right: 0;
}

.trial-badge i {
  color: #f59e0b;
  font-size: 1rem;
}

.trial-badge span {
  font-weight: 600;
}