* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #F1F5F9;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn.active {
    background: #3B82F6;
    color: white;
}

.lang-btn:hover:not(.active) {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 40px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #FFFFFF, #94A3B8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo i {
    background: none;
    color: #3B82F6;
    font-size: 2.2rem;
}

.highlight {
    color: #3B82F6;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: #94A3B8;
    margin-bottom: 40px;
}

/* Auth Section */
.auth-section {
    margin: 40px auto;
    max-width: 500px;
}

.user-info {
    background: #1E293B;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details h4 {
    font-size: 1.1rem;
}

.user-details p {
    font-size: 0.85rem;
    color: #94A3B8;
}

.logout-btn {
    background: #EF4444;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #DC2626;
}

.google-login-card {
    background: #1E293B;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px solid #334155;
}

.google-login-card i.fa-google {
    font-size: 3rem;
    color: #3B82F6;
    margin-bottom: 20px;
}

.google-login-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.google-login-card p {
    color: #94A3B8;
    margin-bottom: 30px;
}

.google-btn {
    background: #3B82F6;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.google-btn:hover {
    background: #2563EB;
    transform: scale(1.02);
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 60px 0;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: #3B82F6;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
    border: 2px solid #3B82F6;
    transform: scale(1.02);
}

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

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3B82F6;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #3B82F6;
}

.features {
    list-style: none;
    margin: 24px 0;
}

.features li {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.features li i.fa-check-circle {
    color: #10B981;
}

.features li.not-included {
    opacity: 0.5;
}

.features li.not-included i {
    color: #EF4444;
}

.btn-buy {
    width: 100%;
    padding: 14px;
    background: #3B82F6;
    border: none;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-buy:hover {
    background: #2563EB;
    transform: scale(1.02);
}

/* How It Works */
.how-it-works {
    margin: 80px 0;
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 50px;
    font-size: 2.2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 20px;
    position: relative;
    transition: all 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #3B82F6;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.step i {
    font-size: 2.5rem;
    color: #3B82F6;
    margin: 20px 0 15px;
}

.step h4 {
    margin: 12px 0;
    font-size: 1.1rem;
}

.step p {
    font-size: 0.85rem;
    color: #94A3B8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content {
    background: #1E293B;
    border-radius: 24px;
    padding: 36px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid #3B82F6;
    animation: modalFadeIn 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
    color: #94A3B8;
}

.close-modal:hover {
    color: #EF4444;
}

.modal-icon {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.modal-icon i {
    color: #3B82F6;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #0F172A;
    border: 1px solid #334155;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3B82F6;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 0.7rem;
    color: #94A3B8;
}

.package-display {
    background: #0F172A;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: #3B82F6;
    border: 1px solid #334155;
    margin-bottom: 20px;
}

.modal-note {
    margin-top: 20px;
    font-size: 0.75rem;
    text-align: center;
    color: #94A3B8;
}

#paypal-button-container {
    margin: 20px 0;
}

/* RTL Support */
[dir="rtl"] body {
    font-family: 'Tajawal', 'Inter', sans-serif;
}

[dir="rtl"] .btn-buy i {
    transform: rotate(180deg);
}

[dir="rtl"] .step-number {
    left: auto;
    right: 20px;
}

[dir="rtl"] .close-modal {
    right: auto;
    left: 24px;
}

[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

[dir="rtl"] .features li {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 968px) {
    .pricing-grid, .steps {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 5px 12px;
    }
    
    [dir="rtl"] .language-switcher {
        right: auto;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 60px 0 30px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .pricing-card {
        padding: 24px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
}