/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF3B5C;
    --secondary-color: #6C63FF;
    --text-primary: #1A1A1A;
    --text-secondary: #6B6B6B;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
    --border-radius: 16px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #FF6B6B 0%, #FF3B5C 100%);
    --gradient-secondary: linear-gradient(135deg, #6C63FF 0%, #4C63D2 100%);
    --gradient-success: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: linear-gradient(135deg, 
        #FF6B6B 0%, 
        #6C63FF 30%, 
        #FFFFFF 100%
    );
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 32px;
    height: 32px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 4rem 0 2rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 59, 92, 0.2) 0%, 
        rgba(108, 99, 255, 0.2) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Billing Toggle - Enhanced from subscribe page */
.billing-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 3rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.toggle-btn.active {
    background: var(--white);
    color: var(--primary-color);
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-btn.active:hover {
    background: var(--white);
}

/* Pricing Section */
.pricing {
    padding: 2rem 0 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Pricing Cards - Enhanced from subscribe page */
.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.popular {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid transparent;
    background-clip: padding-box;
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #FF3B5C, #6C63FF);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

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

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Header */
.card-header {
    margin-bottom: 2rem;
}

.tier-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #6C63FF, #9C63FF);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
    border-radius: 16px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s;
}

.tier-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.pricing-card[data-tier="basic"] .tier-icon {
    background: linear-gradient(135deg, #FFD93D, #FFA726);
    box-shadow: 0 8px 20px rgba(255, 215, 61, 0.3);
}

.pricing-card[data-tier="pro"] .tier-icon {
    background: linear-gradient(135deg, #FF3B5C, #FF6B6B);
    box-shadow: 0 8px 20px rgba(255, 59, 92, 0.3);
}

.pricing-card[data-tier="unlimited"] .tier-icon {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.3);
}

.tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Price Section - Enhanced from subscribe page */
.price-section {
    margin-bottom: 2rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.period {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
    line-height: 1.4;
}

.original-price {
    font-size: 1.125rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.savings {
    display: inline-block;
    background: var(--gradient-success);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Features - Enhanced from subscribe page */
.features {
    margin-bottom: 2rem;
    text-align: left;
}

.feature-item {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.feature-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Subscribe Button - Enhanced from subscribe page */
.subscribe-btn {
    width: 100%;
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #4C63D2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

.subscribe-btn.popular-btn {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(255, 59, 92, 0.3);
}

.subscribe-btn.popular-btn:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979);
    box-shadow: 0 8px 30px rgba(255, 59, 92, 0.5);
}

/* FAQ Section */
.faq {
    background: linear-gradient(135deg,
        rgba(108, 99, 255, 0.05) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer - Using landing page style */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-brand .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.footer-description {
    color: #ccc;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

.disclaimer {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Loading Overlay - Enhanced from subscribe page */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: var(--white);
    text-align: center;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design - Enhanced from subscribe page */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .current-price {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .tier-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
}

/* Annual Pricing Styles - Enhanced from subscribe page */
.annual-pricing .current-price {
    color: #4CAF50;
}

.annual-pricing .savings {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
}

/* Animation Classes - Enhanced from subscribe page */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Error Notification Styles */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    max-width: 300px;
    border-left: 4px solid var(--primary-color);
}

.error-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.error-content button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.error-content button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}