.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    margin: 0;
    padding: 0;
}

.modal-content {
    background-color: var(--bg-modal, #fefefe);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--border-color, #888);
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    color: var(--text-primary, #333);
}

/* Remember Me Checkbox Styles */
.remember-me-group {
    margin-bottom: 15px;
}

.remember-me-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary, #666);
    user-select: none;
}

.remember-me-checkbox {
    display: none;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: var(--bg-form, #fff);
    border: 2px solid var(--border-color, #ddd);
    border-radius: 3px;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.remember-me-checkbox:checked + .checkmark {
    background-color: var(--text-brand, #1f42cf);
    border-color: var(--text-brand, #1f42cf);
}

.remember-me-checkbox:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me-label:hover .checkmark {
    border-color: var(--text-brand, #1f42cf);
}

/* Override base modal styles for pricing modal */
.modal-content.pricing-modal-content {
    width: 95% !important;
    max-width: 1600px !important;
    min-width: 800px !important;
    margin: 2% auto !important;
    padding: 0 !important;
}

/* Responsive pricing modal */
@media (max-width: 1024px) {
    .modal-content.pricing-modal-content {
        width: 95% !important;
        min-width: 300px !important;
        margin: 2% auto !important;
        max-width: 900px !important;
    }
}

@media (max-width: 768px) {
    .modal-content.pricing-modal-content {
        width: 95% !important;
        min-width: 280px !important;
        margin: 2% auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        max-width: 700px !important;
    }
}

@media (max-width: 425px) {
    .modal-content.pricing-modal-content {
        width: 98% !important;
        min-width: 280px !important;
        margin: 1% auto !important;
        max-height: 95vh !important;
        overflow-y: auto !important;
    }
}

/* Fix modal scrolling issues on smaller screens */
@media (max-width: 768px) {
    .modal-content {
        max-height: 90vh !important;
        overflow-y: auto !important;
        margin: 2% auto !important;
    }
}

@media (max-width: 425px) {
    .modal-content {
        max-height: 95vh !important;
        overflow-y: auto !important;
        margin: 1% auto !important;
        width: 95% !important;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-secondary, #666);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary, #333);
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 15px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-group a {
    color: var(--text-brand, #4CAF50);
    text-decoration: none;
}

.form-group a:hover {
    text-decoration: underline;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    background: var(--bg-form, #fff);
    color: var(--text-primary, #333);
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-secondary, #666);
    font-style: italic;
}

.tier-options {
    margin: 20px 0;
}

.tier-options h3 {
    margin-bottom: 15px;
    color: var(--text-primary, #333);
}

.tier-card {
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bg-card, #fff);
}

.tier-card:hover {
    border-color: var(--text-brand, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color, rgba(0, 0, 0, 0.1));
}

.tier-card.selected {
    border-color: var(--text-brand, #4CAF50);
    background-color: var(--bg-card-hover, #f0f9f0);
    box-shadow: 0 4px 8px var(--shadow-accent, rgba(76, 175, 80, 0.2));
}

.tier-card h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary, #333);
}

.tier-card p {
    margin: 0;
    color: var(--text-secondary, #666);
    font-size: 0.9em;
}

.billing-options {
    margin: 15px 0 5px 0;
}

.billing-options h3 {
    margin: 0 0 10px 0;
}

.billing-group {
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.billing-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
}

.billing-option input[type="radio"] {
    width: auto;
}

.forgot-password {
    text-align: right;
    margin-bottom: 15px;
}

.forgot-password a {
    color: var(--text-brand, #007bff);
    text-decoration: none;
    cursor: pointer;
}

.error-container {
    color: #ef4444;
    margin-bottom: 10px;
}

.error-message {
    padding: 10px;
    background-color: var(--bg-form, #ffebee);
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    margin-bottom: 10px;
    color: var(--text-primary, #333);
}

/* Enhanced Pricing Modal Styles */
.pricing-modal-content {
    max-width: 1600px !important;
    width: 95% !important;
    max-height: 85vh !important;
    overflow-y: auto;
    padding: 0 !important;
    margin: 2% auto !important;
    min-width: 1200px !important;
}

.pricing-modal-header {
    text-align: center;
    padding: 1.5rem 2rem 1rem;
    background: linear-gradient(135deg, var(--text-brand, #1f42cf) 0%, var(--text-accent, #18a1dc) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.pricing-modal-header h2 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
    color: white;
}

.pricing-subtitle {
    font-size: 1rem;
    margin: 0 0 1rem 0;
    opacity: 0.9;
    color: white;
}

.pricing-toggle {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    min-width: 140px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.toggle-btn.active {
    background: white;
    color: var(--text-brand, #1f42cf);
    border-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-modal, #ffffff);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
}

/* Slightly wider cards when viewing influencer pricing */
.pricing-grid.influencer {
    max-width: 1500px;
}

.pricing-card {
    background: var(--bg-card, #ffffff);
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 400px;
    width: 100%;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--shadow-color, rgba(0, 0, 0, 0.1));
    border-color: var(--text-brand, #1f42cf);
}

.pricing-card.popular {
    border-color: var(--text-brand, #1f42cf);
    box-shadow: 0 8px 24px var(--shadow-accent, rgba(31, 66, 207, 0.2));
    transform: scale(1.02);
}

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-brand, #1f42cf);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1rem;
}

.pricing-name {
    padding-top: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0 0 0.25rem 0;
}

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

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-brand, #1f42cf);
}

.period {
    font-size: 1rem;
    color: var(--text-secondary, #475569);
    font-weight: 500;
}

.yearly-pricing {
    margin: 0.5rem 0;
    text-align: center;
}

.yearly-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    margin-bottom: 0.25rem;
}

.savings {
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
    background: #d1fae5;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-tertiary, #64748b);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.pricing-description {
    color: var(--text-secondary, #475569);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.pricing-features {
    flex: 1;
    margin-bottom: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0;
}

.feature-icon {
    padding-top: 20px;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.feature-content {
    padding-top: 20px;
    flex: 1;
}

.feature-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    margin: 0 0 0.125rem 0;
}

.feature-description {
    font-size: 0.75rem;
    color: var(--text-secondary, #475569);
    margin: 0;
    line-height: 1.3;
}

.pricing-footer {
    margin-top: auto;
}

.pricing-cta {
    width: 100%;
    background: var(--text-brand, #1f42cf);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-cta:hover {
    background: var(--text-accent, #18a1dc);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-accent, rgba(31, 66, 207, 0.3));
}

.cta-popular {
    background: linear-gradient(135deg, var(--text-brand, #1f42cf) 0%, var(--text-accent, #18a1dc) 100%);
    box-shadow: 0 4px 12px var(--shadow-accent, rgba(31, 66, 207, 0.3));
}

.cta-popular:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-accent, rgba(31, 66, 207, 0.4));
}

.pricing-footer {
    text-align: center;
    padding: 0.75rem 1.5rem 1.5rem;
    background: var(--bg-modal, #ffffff);
    border-radius: 0 0 12px 12px;
}

.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary, #475569);
    font-size: 0.8rem;
    margin: 0;
}

.pricing-guarantee i {
    color: var(--text-brand, #1f42cf);
}

/* Dark mode adjustments */
[data-theme="dark"] .pricing-modal-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

[data-theme="dark"] .pricing-card {
    background: var(--bg-card, #374151);
    border-color: var(--border-color, rgba(96, 165, 250, 0.3));
}

[data-theme="dark"] .pricing-card:hover {
    border-color: var(--text-brand, #60a5fa);
    box-shadow: 0 12px 24px var(--shadow-color, rgba(0, 0, 0, 0.3));
}

[data-theme="dark"] .pricing-card.popular {
    border-color: var(--text-brand, #60a5fa);
    box-shadow: 0 8px 24px var(--shadow-accent, rgba(96, 165, 250, 0.3));
}

[data-theme="dark"] .pricing-name {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] .price {
    color: var(--text-brand, #60a5fa);
}

[data-theme="dark"] .feature-title {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] .feature-description {
    color: var(--text-secondary, #e2e8f0);
}

[data-theme="dark"] .pricing-guarantee {
    color: var(--text-secondary, #e2e8f0);
}

[data-theme="dark"] .pricing-guarantee i {
    color: var(--text-brand, #60a5fa);
}

[data-theme="dark"] .yearly-price {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] .savings {
    color: #34d399;
    background: #064e3b;
}

/* Responsive design */
@media (max-width: 1600px) {
    .pricing-modal-content {
        max-width: 2000px;
        width: 98%;
    }
    .pricing-grid {
        max-width: 1800px;
    }
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 1000px;
    }
    .pricing-card {
        min-width: 300px;
    }
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 500px;
        margin: 0 auto;
    }
    .pricing-card {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .pricing-modal-content {
        width: 98%;
        max-height: 95vh;
        margin: 2% auto;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
        max-width: none;
    }
    
    .pricing-modal-header {
        padding: 2rem 1rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    .pricing-modal-header h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .pricing-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .toggle-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .pricing-card {
        padding: 1rem;
    }
    
    .pricing-name {
        margin-top: 1.5rem !important;
        margin-bottom: 1rem !important;
        padding-top: 1rem !important;
    }
    
    .price {
        font-size: 1.75rem;
    }
    
    .pricing-footer {
        padding: 0.75rem 1rem 1rem;
    }
}

/* Modal button styling */
.modal-content button {
    background: var(--text-brand, #1f42cf);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.modal-content button:hover {
    background: var(--text-accent, #18a1dc);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-accent, rgba(31, 66, 207, 0.3));
}

/* Success message styling */
.success-message {
    background-color: #efe;
    color: #363;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #cfc;
}

/* Secondary button styling */
.secondary-btn {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: background-color 0.3s;
    width: auto;
    margin-top: 0;
}

.secondary-btn:hover {
    background-color: #5a6268;
    transform: none;
    box-shadow: none;
} 