/* ================================================
   PACKAGES PAGE - Modern Interactive Design
   ================================================ */

/* Theme Colors - Complete Color System */
:root {
  /* Primary Colors */
  --primary-teal: #14b8a6;
  --primary-cyan: #06b6d4;
  --teal-dark: #0d9488;
  --teal-darker: #0a7468;
  --cyan-dark: #0284c7;
  --cyan-darker: #0369a1;
  
  /* Accent Colors */
  --purple-accent: #a855f7;
  --purple-dark: #9333ea;
  --purple-darker: #7e22ce;
  --success: #10b981;
  --warning: #fbbf24;
  --error: #ef4444;
  --warning-dark: #f59e0b;
  
  /* Dark Theme Background */
  --dark-bg: #0f1419;
  --dark-bg-light: #1a1f2e;
  --dark-card: #111827;
  --dark-secondary: #1f2937;
  --dark-tertiary: #374151;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --text-light: #e5e7eb;
  
  /* Borders */
  --border-light: rgba(20, 184, 166, 0.1);
  --border-medium: rgba(20, 184, 166, 0.2);
}

/* ================================================
   MAIN CONTENT
   ================================================ */

.main-content {
  padding: 40px 32px;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
  min-height: 100vh;
}

/* ================================================
   PACKAGES HEADER
   ================================================ */

.packages-header {
  text-align: center;
  margin-bottom: 48px;
}

.packages-header h1 {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
}

.subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 32px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================
   BILLING TOGGLE
   ================================================ */

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.toggle-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

.toggle-label.active {
  color: var(--primary-teal);
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  width: 56px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 184, 166, 0.2);
  border: 2px solid var(--border-light);
  border-radius: 15px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background: var(--primary-teal);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(20, 184, 166, 0.3);
  border-color: var(--primary-teal);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(26px);
}

.save-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================================================
   PACKAGES GRID
   ================================================ */

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.package-card {
  padding: 0;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  border-color: var(--primary-teal);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12) 0%, rgba(6, 182, 212, 0.06) 100%);
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(20, 184, 166, 0.25);
}

.package-card.featured {
  grid-column: 2 / 3;
  border: 2px solid var(--primary-teal);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
}

.package-card.featured:hover {
  box-shadow: 0 24px 48px rgba(20, 184, 166, 0.35);
}

.popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--teal-dark) 100%);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.package-header {
  padding: 28px 24px;
  border-bottom: 1px solid var(--border-light);
}

.package-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.package-description {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
}

.package-pricing {
  padding: 24px;
  text-align: center;
}

.currency {
  font-size: 18px;
  color: var(--primary-teal);
  font-weight: 700;
}

.price {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-teal);
  margin: 0 4px;
  transition: all 0.3s ease;
}

.package-card:hover .price {
  font-size: 52px;
}

.period {
  font-size: 14px;
  color: var(--text-secondary);
}

.package-button {
  margin: 0 24px 24px 24px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--teal-dark) 100%);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.package-button:hover {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-darker) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}

.package-card.featured .package-button {
  margin-bottom: 24px;
}

.package-features {
  padding: 24px;
  flex: 1;
}

.package-features h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0 0 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.package-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-features li {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 14px;
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

/* ================================================
   FEATURES COMPARISON
   ================================================ */

.features-comparison {
  margin-bottom: 64px;
  margin-top: 64px;
}

.features-comparison h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.features-comparison::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-teal) 0%, var(--primary-cyan) 100%);
  border-radius: 2px;
  margin: 0 auto 24px;
}

.comparison-table-wrapper {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(6, 182, 212, 0.03) 100%);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(20, 184, 166, 0.08);
  backdrop-filter: blur(10px);
}

.comparison-table-wrapper:hover {
  border-color: var(--primary-teal);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12) 0%, rgba(6, 182, 212, 0.05) 100%);
  box-shadow: 0 16px 48px rgba(20, 184, 166, 0.15);
  transform: translateY(-2px);
}

.comparison-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.comparison-table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(20, 184, 166, 0.3);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(20, 184, 166, 0.6);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  overflow-x: auto;
}

.comparison-table thead {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
  border-bottom: 2px solid var(--primary-teal);
  position: sticky;
  top: 0;
  z-index: 10;
}

.comparison-table th {
  padding: 20px 18px;
  text-align: left;
  color: var(--primary-teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  backdrop-filter: blur(5px);
  border-right: 1px solid rgba(20, 184, 166, 0.1);
}

.comparison-table th:last-child {
  border-right: none;
}

.comparison-table tbody tr {
  border-bottom: 1px solid rgba(20, 184, 166, 0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.comparison-table tbody tr:nth-child(odd) {
  background: rgba(20, 184, 166, 0.02);
}

.comparison-table tbody tr:hover {
  background: rgba(20, 184, 166, 0.12);
  box-shadow: inset 0 0 20px rgba(20, 184, 166, 0.1);
}

.comparison-table tbody tr:hover td {
  color: var(--text-primary);
}

.comparison-table td {
  padding: 20px 18px;
  color: var(--text-secondary);
  border-right: 1px solid rgba(20, 184, 166, 0.05);
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 500;
}

.comparison-table td:first-child {
  text-align: left;
  padding-left: 24px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(20, 184, 166, 0.04);
  border-right: 2px solid var(--primary-teal);
  position: sticky;
  left: 0;
  z-index: 5;
}

.comparison-table tbody tr:hover td:first-child {
  background: rgba(20, 184, 166, 0.08);
}

.comparison-table td:last-child {
  border-right: none;
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

/* Feature name styling */
.feature-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.feature-name::before {
  content: '';
  display: inline-flex;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-teal);
  flex-shrink: 0;
}

/* Value cell styling - Base styles */
.comparison-table td:not(:first-child) {
  position: relative;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Highlight Professional (middle) column */
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  background: rgba(168, 85, 247, 0.06);
  border-left: 1px solid var(--purple-accent);
  border-right: 1px solid var(--purple-accent);
}

.comparison-table th:nth-child(3) {
  background: rgba(168, 85, 247, 0.12);
  border-left: 2px solid var(--purple-accent);
  border-right: 2px solid var(--purple-accent);
  color: var(--primary-teal);
}

.comparison-table tbody tr:hover td:nth-child(3) {
  background: rgba(168, 85, 247, 0.12);
  color: var(--text-primary);
  box-shadow: inset -8px 0 16px rgba(168, 85, 247, 0.1), inset 8px 0 16px rgba(168, 85, 247, 0.1);
}

/* Unlimited value styling */
.comparison-value.value-unlimited {
  color: var(--success);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 13px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 6px auto;
  
  box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.1);
}

.comparison-table tbody tr:hover .comparison-value.value-unlimited {
  background: rgba(16, 185, 129, 0.15);
  box-shadow: inset 0 0 16px rgba(16, 185, 129, 0.15), 0 0 12px rgba(16, 185, 129, 0.2);
  transform: scale(1.05);
}

/* Limited value styling */
.comparison-value.value-limited {
  color: var(--primary-cyan);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 12px;
}

.comparison-table tbody tr:hover .comparison-value.value-limited {
  color: var(--text-primary);
  background: rgba(20, 184, 166, 0.08);
  border-radius: 6px;
  transform: scale(1.08);
}

/* Value text wrapper */
.value-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ================================================
   FAQ SECTION
   ================================================ */

.faq-section {
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.faq-section:hover {
  border-color: var(--primary-teal);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
}

.faq-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 32px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.faq-item {
  padding: 24px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.03) 0%, rgba(6, 182, 212, 0.01) 100%);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item:hover {
  border-color: var(--primary-teal);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.15);
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px 0;
}

.faq-item p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* 1024px Breakpoint - Tablet */
@media (max-width: 1023.98px) {
  .comparison-table th {
    padding: 16px 14px;
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .comparison-table td {
    padding: 16px 14px;
    font-size: 13px;
  }

  .comparison-table td:first-child {
    padding-left: 18px;
  }

  .feature-name {
    font-size: 13px;
  }

  .comparison-value.value-unlimited {
    padding: 6px 10px;
    font-size: 12px;
    margin: 4px auto;
  }

  .comparison-value.value-limited {
    font-size: 13px;
    padding: 4px 10px;
  }
}

/* 768px Breakpoint - Mobile */
@media (max-width: 767.98px) {
  .main-content {
    padding: 16px 12px;
  }

  .packages-header {
    margin-bottom: 24px;
  }

  .packages-header h1 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .subtitle {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .billing-toggle {
    gap: 10px;
    margin-top: 16px;
  }

  .toggle-label {
    font-size: 11px;
  }

  .toggle-switch {
    width: 45px;
    height: 26px;
  }

  .toggle-slider::before {
    height: 18px;
    width: 18px;
  }

  .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
  }

  .save-badge {
    font-size: 9px;
    padding: 2px 5px;
    margin-left: 4px;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .package-card.featured {
    grid-column: 1;
  }

  .popular-badge {
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 10px;
  }

  .package-header {
    padding: 16px;
  }

  .package-name {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .package-description {
    font-size: 11px;
  }

  .package-pricing {
    padding: 16px;
  }

  .currency {
    font-size: 16px;
  }

  .price {
    font-size: 32px;
  }

  .package-card:hover .price {
    font-size: 36px;
  }

  .period {
    font-size: 12px;
  }

  .package-button {
    margin: 0 16px 16px 16px;
    padding: 10px 16px;
    font-size: 11px;
  }

  .package-features {
    padding: 16px;
  }

  .package-features h4 {
    font-size: 10px;
    margin-bottom: 10px;
  }

 

 

  .check-icon {
    width: 16px;
    height: 16px;
  }

  .features-comparison {
    margin-bottom: 24px;
    margin-top: 32px;
  }

  .features-comparison h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .features-comparison::before {
    width: 40px;
    height: 3px;
    margin-bottom: 16px;
  }

  .comparison-table-wrapper {
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.06);
  }

  .comparison-table-wrapper::-webkit-scrollbar {
    height: 6px;
  }

  .comparison-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(20, 184, 166, 0.4);
  }

  .comparison-table {
    min-width: 650px;
    font-size: 12px;
  }

  .comparison-table th {
    padding: 12px 10px;
    font-size: 10px;
    letter-spacing: 0.3px;
    font-weight: 700;
    white-space: nowrap;
  }

  .comparison-table td {
    padding: 12px 10px;
    font-size: 11px;
  }

  .comparison-table td:first-child {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 12px;
    font-weight: 600;
    min-width: 140px;
  }

  .feature-name {
    font-size: 12px;
  }

  .feature-name::before {
    width: 5px;
    height: 5px;
  }

  .comparison-value.value-unlimited {
    padding: 5px 8px;
    font-size: 10px;
    margin: 2px auto;
    border-radius: 4px;
    display: inline-block;
  }

  .comparison-value.value-limited {
    font-size: 12px;
    padding: 4px 8px;
  }

  .comparison-table tbody tr:hover .comparison-value.value-unlimited {
    transform: scale(1.03);
  }

  .comparison-table tbody tr:hover .comparison-value.value-limited {
    transform: scale(1.05);
  }

  .faq-section {
    padding: 16px;
    margin-top: 24px;
  }

  .faq-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .faq-grid {
    gap: 12px;
    grid-template-columns: repeat(1, 1fr);
  }

  .faq-item {
    padding: 16px;
  }

  .faq-item h3 {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .faq-item p {
    font-size: 11px;
  }
}

/* 480px Breakpoint - Small Mobile */
@media (max-width: 479.98px) {
  .comparison-table-wrapper {
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 600px;
    font-size: 11px;
  }

  .comparison-table th {
    padding: 10px 8px;
    font-size: 9px;
    letter-spacing: 0px;
  }

  .comparison-table td {
    padding: 10px 8px;
    font-size: 10px;
  }

  .comparison-table td:first-child {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 11px;
    min-width: 120px;
  }

  .feature-name {
    font-size: 11px;
  }

  .feature-name::before {
    width: 4px;
    height: 4px;
    margin-right: 6px;
  }

  .comparison-value.value-unlimited {
    padding: 4px 6px;
    font-size: 9px;
    margin: 2px auto;
  }

  .comparison-value.value-limited {
    font-size: 10px;
    padding: 3px 6px;
  }

  .comparison-table tbody tr:hover .comparison-value.value-unlimited {
    transform: scale(1.02);
  }

  .comparison-table tbody tr:hover .comparison-value.value-limited {
    transform: scale(1.03);
  }

  .comparison-table td:first-child {
    background: rgba(20, 184, 166, 0.06);
  }

  .comparison-table tbody tr:hover td:first-child {
    background: rgba(20, 184, 166, 0.1);
  }
}
