/**
 * Pricing Page - Bloomberg-Grade Fintech Design
 * ZenitLab AI Trading Intelligence
 */

/* ========================================
   CSS Variables (inherits from theme)
   ======================================== */
.pricing-page {
    --pricing-bg: #0a0e17;
    --pricing-card: #111827;
    --pricing-card-hover: #1a2332;
    --pricing-border: #1f2937;
    --pricing-accent: #10b981;
    --pricing-accent-hover: #059669;
    --pricing-gold: #f59e0b;
    --pricing-blue: #3b82f6;
    --pricing-purple: #8b5cf6;
    --pricing-text: #f8fafc;
    --pricing-text-muted: #94a3b8;
    --pricing-gradient: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --pricing-glow: 0 0 30px rgba(16, 185, 129, 0.3);
    
    background: var(--pricing-bg);
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* ========================================
   Container
   ======================================== */
.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Hero Section
   ======================================== */
.pricing-hero {
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    background: linear-gradient(180deg, #0f1729 0%, var(--pricing-bg) 100%);
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--pricing-accent);
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1rem;
}

.badge-icon-svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.category-icon-svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: var(--pricing-accent);
}

.pricing-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--pricing-text);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--pricing-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-hero-subtitle {
    font-size: 1.125rem;
    color: var(--pricing-text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.pricing-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--pricing-text-muted);
}

.trust-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--pricing-accent);
}

/* ========================================
   Duration Toggle
   ======================================== */
.pricing-toggle-section {
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
}

.pricing-toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--pricing-card);
    border: 1px solid var(--pricing-border);
    border-radius: 9999px;
}

.toggle-label {
    font-size: 0.9375rem;
    color: var(--pricing-text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-label.active {
    color: var(--pricing-text);
    font-weight: 500;
}

.toggle-savings {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--pricing-accent);
    border-radius: 9999px;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
    background: var(--pricing-border);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-switch.active {
    background: var(--pricing-accent);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(28px);
}

/* ========================================
   Products Section
   ======================================== */
.pricing-products {
    padding: 2rem 0 4rem;
}

.pricing-category {
    margin-bottom: 3rem;
}

.pricing-category-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pricing-category-half {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .pricing-category-split {
        grid-template-columns: 1fr;
    }
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pricing-text);
    margin-bottom: 0.5rem;
}

.category-icon {
    font-size: 1.75rem;
}


.category-subtitle {
    font-size: 0.9375rem;
    color: var(--pricing-text-muted);
    margin-bottom: 1.5rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    gap: 1.5rem;
}

.products-grid-single {
    grid-template-columns: 1fr;
    max-width: 500px;
}

.products-grid-double {
    grid-template-columns: repeat(2, 1fr);
}

.products-grid-triple {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .products-grid-double {
        grid-template-columns: 1fr;
    }
    .products-grid-triple {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .products-grid-triple {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Product Card
   ======================================== */
.product-card {
    position: relative;
    background: var(--pricing-card);
    border: 1px solid var(--pricing-border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    background: var(--pricing-card-hover);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--pricing-glow);
}

/* Product Name Link */
.product-name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-name-link:hover {
    color: var(--pricing-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Learn More Link */
.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.learn-more-link:hover {
    color: var(--pricing-accent);
}

.learn-more-link .arrow {
    transition: transform 0.2s ease;
}

.learn-more-link:hover .arrow {
    transform: translateX(4px);
}

.product-card.featured {
    border-color: var(--pricing-accent);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
}

.product-card.featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--pricing-gradient);
    border-radius: 17px;
    z-index: -1;
    opacity: 0.5;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--pricing-accent);
    color: #0a0e17;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 9999px;
}

.badge-best-value {
    background: var(--pricing-gold);
}

.badge-premium {
    background: var(--pricing-purple);
    color: white;
}

.badge-specialized {
    background: var(--pricing-blue);
    color: white;
}

.badge-education {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.badge-education svg {
    flex-shrink: 0;
}

.badge-crypto {
    background: linear-gradient(135deg, #f7931a 0%, #ff9500 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.badge-crypto svg {
    flex-shrink: 0;
}

/* Product Header */
.product-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.product-icon {
    font-size: 2rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pricing-text);
}

.product-description {
    font-size: 0.9375rem;
    color: var(--pricing-text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Product Pricing */
.product-pricing {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--pricing-border);
}

.price-display {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.price-amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--pricing-text);
    font-family: 'JetBrains Mono', monospace;
}

.price-period {
    font-size: 1rem;
    color: var(--pricing-text-muted);
}

.price-monthly {
    font-size: 0.875rem;
    color: var(--pricing-text-muted);
    margin-left: 0.5rem;
}

.price-savings {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--pricing-accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-left: auto;
}

/* Product Features */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--pricing-text-muted);
}

.feature-check {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--pricing-accent);
    margin-top: 0.125rem;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto; /* Push buttons to bottom - aligned across cards */
    padding-top: 1rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--pricing-accent);
    color: #0a0e17;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--pricing-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary.btn-xl {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Configure button - for products requiring selection */
.btn-primary.btn-configure {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary.btn-configure:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary.btn-configure .btn-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: var(--pricing-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--pricing-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    color: var(--pricing-text);
    border-color: var(--pricing-text-muted);
}

/* ========================================
   Comparison Table
   ======================================== */
.pricing-comparison {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--pricing-bg) 0%, #0f1729 50%, var(--pricing-bg) 100%);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--pricing-text);
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: var(--pricing-card);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--pricing-border);
}

.comparison-table th {
    background: rgba(16, 185, 129, 0.05);
    color: var(--pricing-text);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    padding-left: 1.5rem;
}

.comparison-table td {
    color: var(--pricing-text-muted);
    font-size: 0.9375rem;
}

.comparison-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.03);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table .check {
    color: var(--pricing-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.comparison-table .check svg {
    width: 1.25rem;
    height: 1.25rem;
}

.comparison-table .dash {
    color: var(--pricing-border);
}

.comparison-table .price-row {
    background: rgba(16, 185, 129, 0.05);
}

.comparison-table .price-row td {
    color: var(--pricing-text);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

/* ========================================
   FAQ Section
   ======================================== */
.pricing-faq {
    padding: 4rem 0;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--pricing-card);
    border: 1px solid var(--pricing-border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--pricing-text);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(16, 185, 129, 0.03);
}

.faq-question.active {
    background: rgba(16, 185, 129, 0.05);
}

.faq-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--pricing-text-muted);
    transition: transform 0.2s;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--pricing-text-muted);
    line-height: 1.6;
}

/* ========================================
   Trust Section
   ======================================== */
.pricing-trust {
    padding: 3rem 0;
    border-top: 1px solid var(--pricing-border);
}

.trust-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.trust-payments {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.trust-label {
    font-size: 0.875rem;
    color: var(--pricing-text-muted);
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    background: var(--pricing-card);
    border: 1px solid var(--pricing-border);
    border-radius: 6px;
    color: var(--pricing-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.payment-icon svg {
    width: 24px;
    height: 24px;
}

.trust-badges {
    display: flex;
    gap: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--pricing-text-muted);
}

.trust-badge svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--pricing-accent);
}

/* ========================================
   Final CTA Section
   ======================================== */
.pricing-cta {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--pricing-bg) 0%, #0f1729 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pricing-text);
    margin-bottom: 0.75rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--pricing-text-muted);
    margin-bottom: 2rem;
}

/* ========================================
   Bundle Discount Banner
   ======================================== */
.bundle-discount-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--pricing-accent);
}

.bundle-discount-banner .bundle-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--pricing-accent);
}

/* ========================================
   Add-on Card Section
   ======================================== */
.addon-card-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.addon-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px dashed rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.addon-card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
}

.addon-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.addon-icon svg {
    width: 100%;
    height: 100%;
    color: var(--pricing-blue);
}

.addon-content {
    flex: 1;
}

.addon-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pricing-text);
    margin: 0 0 0.25rem 0;
}

.addon-description {
    font-size: 0.875rem;
    color: var(--pricing-text-muted);
    margin: 0;
}

.addon-pricing {
    text-align: right;
    flex-shrink: 0;
}

.addon-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pricing-blue);
}

.addon-price .period {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--pricing-text-muted);
}

/* ========================================
   Digital Products Section
   ======================================== */
.digital-products-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
}

.digital-products-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pricing-gold);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.digital-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.digital-product {
    padding: 1rem;
    background: rgba(17, 24, 39, 0.5);
    border-radius: 8px;
    text-align: center;
}

.digital-product-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pricing-text);
    margin: 0 0 0.5rem 0;
}

.digital-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pricing-gold);
}

.digital-product-price .original {
    font-size: 0.875rem;
    color: var(--pricing-text-muted);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

@media (max-width: 640px) {
    .addon-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .addon-pricing {
        text-align: center;
    }
    
    .digital-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 3rem 1rem 2rem;
    }
    
    .pricing-hero-trust {
        gap: 1rem;
    }
    
    .trust-item {
        font-size: 0.8125rem;
    }
    
    .pricing-toggle-container {
        padding: 0.375rem 1rem;
    }
    
    .toggle-label {
        font-size: 0.875rem;
    }
    
    .toggle-savings {
        display: none;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .price-amount {
        font-size: 1.875rem;
    }
    
    .trust-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .trust-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .pricing-hero-title {
        font-size: 1.75rem;
    }
    
    .pricing-hero-subtitle {
        font-size: 1rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
    
    .product-name {
        font-size: 1.125rem;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ========================================
   Alpine.js Collapse Animation
   ======================================== */
[x-cloak] {
    display: none !important;
}

/* ========================================
   LIGHT MODE OVERRIDES
   ======================================== */
:root:not(.dark) .pricing-page,
.light-mode .pricing-page {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

:root:not(.dark) .pricing-hero-title,
.light-mode .pricing-hero-title {
    color: #111827;
}

:root:not(.dark) .pricing-hero-subtitle,
.light-mode .pricing-hero-subtitle {
    color: #6b7280;
}

:root:not(.dark) .category-title,
.light-mode .category-title {
    color: #111827;
}

:root:not(.dark) .product-card,
.light-mode .product-card {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

:root:not(.dark) .product-card:hover,
.light-mode .product-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

:root:not(.dark) .product-card.featured,
.light-mode .product-card.featured {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

:root:not(.dark) .product-name,
:root:not(.dark) .product-name-link,
.light-mode .product-name,
.light-mode .product-name-link {
    color: #111827;
}

:root:not(.dark) .product-description,
.light-mode .product-description {
    color: #6b7280;
}

:root:not(.dark) .product-features li,
.light-mode .product-features li {
    color: #374151;
}

:root:not(.dark) .feature-icon,
.light-mode .feature-icon {
    color: #10b981;
}

:root:not(.dark) .price-amount,
.light-mode .price-amount {
    color: #111827;
}

:root:not(.dark) .price-period,
.light-mode .price-period {
    color: #6b7280;
}

:root:not(.dark) .duration-toggle,
.light-mode .duration-toggle {
    background: #e5e7eb;
}

:root:not(.dark) .duration-toggle .toggle-option,
.light-mode .duration-toggle .toggle-option {
    color: #6b7280;
}

:root:not(.dark) .duration-toggle .toggle-option.active,
.light-mode .duration-toggle .toggle-option.active {
    color: #111827;
}

:root:not(.dark) .duration-toggle .toggle-slider,
.light-mode .duration-toggle .toggle-slider {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

:root:not(.dark) .comparison-table,
.light-mode .comparison-table {
    background: #fff;
    border-color: #e5e7eb;
}

:root:not(.dark) .comparison-table th,
.light-mode .comparison-table th {
    background: #f3f4f6;
    color: #111827;
    border-color: #e5e7eb;
}

:root:not(.dark) .comparison-table td,
.light-mode .comparison-table td {
    color: #374151;
    border-color: #e5e7eb;
}

:root:not(.dark) .comparison-table tbody tr:hover,
.light-mode .comparison-table tbody tr:hover {
    background: #f9fafb;
}

:root:not(.dark) .faq-item,
.light-mode .faq-item {
    background: #fff;
    border-color: #e5e7eb;
}

:root:not(.dark) .faq-question,
.light-mode .faq-question {
    color: #111827;
}

:root:not(.dark) .faq-answer,
.light-mode .faq-answer {
    color: #6b7280;
}

:root:not(.dark) .trust-signals,
.light-mode .trust-signals {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

:root:not(.dark) .trust-signal,
.light-mode .trust-signal {
    color: #374151;
}

:root:not(.dark) .learn-more-link,
.light-mode .learn-more-link {
    color: #6b7280;
}

:root:not(.dark) .learn-more-link:hover,
.light-mode .learn-more-link:hover {
    color: #10b981;
}

/* Buttons in light mode - ensure proper contrast */
:root:not(.dark) .btn-primary,
.light-mode .btn-primary {
    background: #10b981;
    color: #ffffff;
    font-weight: 600;
}

:root:not(.dark) .btn-primary:hover,
.light-mode .btn-primary:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

:root:not(.dark) .btn-secondary,
.light-mode .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

:root:not(.dark) .btn-secondary:hover,
.light-mode .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Product badge in light mode */
:root:not(.dark) .product-badge,
.light-mode .product-badge {
    background: #10b981;
    color: #ffffff;
}

/* Icon colors in light mode */
:root:not(.dark) .product-icon,
.light-mode .product-icon {
    color: #10b981;
    opacity: 0.9;
}

/* Price highlight in light mode */
:root:not(.dark) .price-highlight,
.light-mode .price-highlight {
    background: #ecfdf5;
    border-color: #10b981;
}

/* ========================================
   MOBILE ENHANCEMENTS (Light Mode)
   ======================================== */

/* Ensure touch targets are large enough on mobile (44x44px minimum) */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }
    
    .duration-toggle .toggle-option {
        min-height: 44px;
        padding: 0.625rem 1rem;
    }
    
    .faq-question {
        min-height: 44px;
        padding: 1rem;
    }
    
    /* Improve readability on small screens */
    :root:not(.dark) .product-description,
    .light-mode .product-description {
        color: #4b5563;
    }
    
    :root:not(.dark) .product-features li,
    .light-mode .product-features li {
        color: #111827;
    }
}

/* Extra small screens - further adjustments */
@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary {
        font-size: 0.9375rem;
        padding: 0.875rem 1.5rem;
    }
    
    /* Stack pricing toggle vertically on very small screens if needed */
    .pricing-toggle-container {
        flex-wrap: wrap;
    }
}

/* ========================================
   Price Original (crossed out)
   ======================================== */
.price-original {
    font-size: 1rem;
    color: var(--pricing-text-muted);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

:root:not(.dark) .price-original,
.light-mode .price-original {
    color: #9ca3af;
}

