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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

/* Header Styles */
.sales-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-outline {
    background: transparent;
    border-color: #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Auth Section Styles */
.auth-section {
    padding: 120px 0 80px;
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
    margin-top: 70px;
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.auth-card h1 {
    margin-bottom: 10px;
    color: #333;
    font-size: 2rem;
}

.auth-card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #363;
}

.auth-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Pricing Section Styles */
.pricing-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    margin-top: 70px;
}

.pricing-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.pricing-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-plans {
    padding: 80px 0;
    background: #f8f9fa;
}

.billing-toggle {
    text-align: center;
    margin-bottom: 3rem;
}

.toggle-container {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 50px;
    gap: 1rem;
    border: 2px solid #e9ecef;
}

.toggle-option {
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.toggle-option.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #667eea;
}

.save-badge {
    background: #4cd964;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 5px;
    font-weight: 600;
}

/* FIXED: 4-column grid for pricing plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch;
}

.plan-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.plan-card.popular {
    border-color: #667eea;
    transform: scale(1.02);
}

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

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.plan-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.plan-price {
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    display: block;
}

.period {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.yearly-price {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

.plan-features {
    margin-bottom: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.platforms {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    color: #555;
    position: relative;
    padding-left: 2rem;
    font-size: 0.9rem;
    line-height: 1.4;
    border-bottom: 1px solid #f8f9fa;
}

.plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0.5rem;
    color: #4cd964;
    font-weight: bold;
    font-size: 1rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-actions {
    margin-top: auto;
}

/* Plan-specific styling */
.plan-card:nth-child(1) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.plan-card:nth-child(1) .price {
    color: #666;
}

.plan-card:nth-child(2) {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.plan-card:nth-child(3) {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.plan-card:nth-child(4) {
    background: linear-gradient(135deg, #fffaf0 0%, #fff5e6 100%);
}

.plan-card:nth-child(4) .price {
    color: #d4af37;
}

/* Pricing FAQ */
.pricing-faq {
    padding: 80px 0;
    background: white;
}

.pricing-faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.faq-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.faq-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 800px;
    }
    
    .plan-card.popular {
        transform: none;
    }
    
    .plan-card.popular:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .pricing-hero h1 {
        font-size: 2rem;
    }
    
    .pricing-hero p {
        font-size: 1rem;
    }
    
    .plan-card {
        padding: 2rem 1.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .toggle-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-section {
        padding: 100px 0 60px;
    }
    
    .auth-card {
        margin: 0 20px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .pricing-hero {
        padding: 100px 0 40px;
    }
    
    .pricing-plans {
        padding: 60px 0;
    }
    
    .plan-card {
        padding: 1.5rem 1rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .plan-header h3 {
        font-size: 1.3rem;
    }
    
    .auth-card h1 {
        font-size: 1.5rem;
    }
}