/* English specific */
body[data-lang="en"] {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 18px;
}

/* Khmer specific */
body[data-lang="km"] {
  font-family: 'Khmer OS Battambang', 'Battambang', 'Noto Sans Khmer', serif;
  font-size: 18px;
  letter-spacing: 0.02em;
}

body[data-lang="km"] header nav a {
  font-size: 0.8rem;
  text-transform: none;
}

.section-label {
  color: #a78bfa;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  position: relative;
  overflow: visible;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(167, 139, 250, 0.3);
}

.pricing-card.popular {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(167, 139, 250, 0.08));
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.4), 0 8px 32px -8px rgba(139, 92, 246, 0.3);
}

.pricing-card.author {
  border-color: rgba(139, 92, 246, 0.3);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.card-content {
  padding: 2.5rem 1.75rem;
}

.popular .card-content {
  padding-top: 2.5rem;
}

.category-label {
  color: #a78bfa;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.plan-title {
  color: #f1f5f9;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.plan-subtitle {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.price-container {
  margin-bottom: 1.5rem;
}

.price-amount {
  color: #f1f5f9;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-currency {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 400;
}

.billing-option {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.billing-option:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

.billing-info h4 {
  color: #f1f5f9;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.billing-info p {
  color: #64748b;
  font-size: 0.75rem;
}

.billing-price {
  text-align: right;
}

.billing-price .amount {
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 700;
}

.billing-price .amount span {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 400;
}

.savings-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  color: #34d399;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pricing-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin: 1.5rem 0;
}

.btn-secondary {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.btn-author {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-author:hover {
  background: rgba(139, 92, 246, 0.25);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  gap: 0.875rem;
  padding: 0.5rem 0;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.6;
  align-items: flex-start;
}

/* Custom sparkle/star icon instead of checkmark */
.feature-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #a78bfa;
  margin-top: 2px;
}

/* Compare Plans Table */
.compare-section {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.compare-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 3rem;
  text-align: center;
}

.compare-table {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.compare-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: rgba(139, 92, 246, 0.08);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.compare-header-cell {
  padding: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: #94a3b8;
}

.compare-header-cell:first-child {
  text-align: left;
}

.compare-header-cell.highlight {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(167, 139, 250, 0.2));
  color: #e9d5ff;
  position: relative;
}

.compare-header-cell.highlight::after {
  content: '★';
  margin-left: 6px;
  font-size: 0.75rem;
}

.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.compare-row:hover {
  background: rgba(139, 92, 246, 0.04);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-cell {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.875rem;
}

.compare-cell:first-child {
  justify-content: flex-start;
  font-weight: 500;
  color: #e2e8f0;
}

.compare-row.category-row {
  background: rgba(139, 92, 246, 0.06);
}

.compare-row.category-row .compare-cell:first-child {
  font-size: 0.875rem;
  font-weight: 700;
  color: #a78bfa;
  padding: 1.25rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Diamond shape for available features */
.compare-available {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}

.compare-dash {
  width: 20px;
  height: 2px;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 1px;
}
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid #334155;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-cell {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.875rem;
}

.compare-cell:first-child {
  justify-content: flex-start;
  font-weight: 500;
  color: #e2e8f0;
}

.compare-row.category-row {
  background: rgba(255, 255, 255, 0.03);
}

.compare-row.category-row .compare-cell:first-child {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  padding: 1.25rem 1.5rem;
}

.compare-check {
  width: 20px;
  height: 20px;
  color: #0a0a1a;
  background: #a78bfa;
  border-radius: 50%;
}

.compare-dash {
  width: 16px;
  height: 2px;
  background: #475569;
}

/* ===== Light Mode Styles ===== */

/* Light mode body and text */
body[data-theme="light"] {
  background: #f8fafc;
  color: #0f172a;
}

/* Light mode pricing cards */
body[data-theme="light"] .pricing-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(203, 213, 225, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .pricing-card:hover {
  box-shadow: 0 20px 40px -20px rgba(139, 92, 246, 0.25);
}

body[data-theme="light"] .pricing-card.popular {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(167, 139, 250, 0.04));
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3), 0 8px 32px -8px rgba(139, 92, 246, 0.2);
}

body[data-theme="light"] .pricing-card.author {
  border-color: rgba(139, 92, 246, 0.25);
}

/* Light mode popular badge */
body[data-theme="light"] .popular-badge {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

/* Light mode text colors */
body[data-theme="light"] .category-label {
  color: #7c3aed;
}

body[data-theme="light"] .section-label {
  color: #7c3aed;
}

body[data-theme="light"] .plan-title,
body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3 {
  color: #0f172a;
  text-shadow: none;
}

body[data-theme="light"] .plan-subtitle {
  color: #64748b;
}

body[data-theme="light"] p {
  color: #475569;
}

body[data-theme="light"] .price-amount {
  color: #0f172a;
}

body[data-theme="light"] .price-currency {
  color: #64748b;
}

/* Light mode billing options */
body[data-theme="light"] .billing-option {
  background: rgba(139, 92, 246, 0.04);
  border-color: rgba(139, 92, 246, 0.12);
}

body[data-theme="light"] .billing-option:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
}

body[data-theme="light"] .billing-info h4 {
  color: #0f172a;
}

body[data-theme="light"] .billing-info p {
  color: #64748b;
}

body[data-theme="light"] .billing-price .amount {
  color: #0f172a;
}

body[data-theme="light"] .billing-price .amount span {
  color: #64748b;
}

/* Light mode buttons */
body[data-theme="light"] .btn-secondary {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
  color: #7c3aed;
}

body[data-theme="light"] .btn-secondary:hover {
  background: rgba(139, 92, 246, 0.15);
}

body[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

body[data-theme="light"] .btn-author {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
  border-color: rgba(139, 92, 246, 0.25);
}

/* Light mode feature list */
body[data-theme="light"] .feature-list li {
  color: #475569;
}

body[data-theme="light"] .feature-icon {
  color: #7c3aed;
}

/* Light mode compare section */
body[data-theme="light"] .compare-section {
  border-top-color: rgba(139, 92, 246, 0.15);
}

body[data-theme="light"] .compare-title {
  color: #0f172a;
}

body[data-theme="light"] .compare-table {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(203, 213, 225, 0.4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .compare-header {
  background: rgba(139, 92, 246, 0.06);
  border-bottom-color: rgba(139, 92, 246, 0.12);
}

body[data-theme="light"] .compare-header-cell {
  color: #64748b;
}

body[data-theme="light"] .compare-header-cell.highlight {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(139, 92, 246, 0.15));
  color: #7c3aed;
}

body[data-theme="light"] .compare-row {
  border-bottom-color: rgba(203, 213, 225, 0.3);
}

body[data-theme="light"] .compare-row:hover {
  background: rgba(139, 92, 246, 0.03);
}

body[data-theme="light"] .compare-cell {
  color: #475569;
}

body[data-theme="light"] .compare-cell:first-child {
  color: #0f172a;
}

body[data-theme="light"] .compare-row.category-row {
  background: rgba(139, 92, 246, 0.04);
}

body[data-theme="light"] .compare-row.category-row .compare-cell:first-child {
  color: #7c3aed;
}

body[data-theme="light"] .compare-available {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

body[data-theme="light"] .compare-dash {
  background: rgba(148, 163, 184, 0.4);
}
