 :root {
        --primary: #d4a853;
        --primary-light: #e8c87a;
        --primary-dark: #b8923c;
        --bg-dark: #0f0f1a;
        --bg-card: #1a1a2e;
        --bg-card-hover: #252540;
        --text-light: #ffffff;
        --text-muted: #a0a0b8;
        --text-dark: #6b6b80;
        --accent: #e94560;
        --success: #2ecc71;
        --info: #3498db;
        --radius: 20px;
        --radius-sm: 12px;
        --shadow: 0 8px 32px rgba(0,0,0,0.3);
        --shadow-glow: 0 0 40px rgba(212,168,83,0.15);
        --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Cairo', 'Poppins', sans-serif;
        background: var(--bg-dark);
        color: var(--text-light);
        min-height: 100vh;
        overflow-x: hidden;
        transition: var(--transition);
    }

    body.light-theme {
        --bg-dark: #f5f5f7;
        --bg-card: #ffffff;
        --bg-card-hover: #f0f0f5;
        --text-light: #1a1a2e;
        --text-muted: #6b6b80;
        --text-dark: #9999a8;
        --shadow: 0 8px 32px rgba(0,0,0,0.1);
        --shadow-glow: 0 0 40px rgba(212,168,83,0.2);
    }

    .bg-animation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        overflow: hidden;
    }

    .bg-animation::before {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(212,168,83,0.08) 0%, transparent 70%);
        top: -200px;
        right: -200px;
        animation: float 20s infinite ease-in-out;
    }

    .bg-animation::after {
        content: '';
        position: absolute;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(233,69,96,0.06) 0%, transparent 70%);
        bottom: -100px;
        left: -100px;
        animation: float 25s infinite ease-in-out reverse;
    }

    @keyframes float {
        0%, 100% { transform: translate(0, 0) scale(1); }
        33% { transform: translate(30px, -30px) scale(1.1); }
        66% { transform: translate(-20px, 20px) scale(0.95); }
    }

    .particles {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
        overflow: hidden;
    }

    .particle {
        position: absolute;
        width: 4px;
        height: 4px;
        background: var(--primary);
        border-radius: 50%;
        opacity: 0.3;
        animation: particleFloat 15s infinite linear;
    }

    @keyframes particleFloat {
        0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
        10% { opacity: 0.3; }
        90% { opacity: 0.3; }
        100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 16px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        backdrop-filter: blur(20px);
        background: rgba(15, 15, 26, 0.8);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        transition: var(--transition);
    }

    body.light-theme .header {
        background: rgba(245, 245, 247, 0.9);
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .header-logo {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .header-logo img {
        width: 45px;
        height: 45px;
        object-fit: contain;
        filter: drop-shadow(0 0 10px rgba(212,168,83,0.3));
    }

    .header-logo-text {
        display: flex;
        flex-direction: column;
    }

    .header-logo-text span:first-child {
        font-size: 20px;
        font-weight: 900;
        color: var(--primary);
        letter-spacing: 2px;
        line-height: 1;
    }

    .header-logo-text span:last-child {
        font-size: 10px;
        color: var(--text-muted);
        letter-spacing: 3px;
        font-weight: 600;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .lang-btn {
        background: rgba(212,168,83,0.1);
        border: 1px solid rgba(212,168,83,0.2);
        color: var(--primary);
        padding: 8px 16px;
        border-radius: 30px;
        font-family: 'Cairo', sans-serif;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: var(--transition);
    }

    .lang-btn:hover {
        background: var(--primary);
        color: var(--bg-dark);
        transform: translateY(-2px);
    }

    .theme-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        color: var(--text-muted);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
        font-size: 16px;
    }

    .theme-btn:hover {
        background: var(--primary);
        color: var(--bg-dark);
        transform: rotate(180deg);
    }

    body.light-theme .theme-btn {
        background: rgba(0,0,0,0.05);
        border-color: rgba(0,0,0,0.1);
    }

    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 120px 24px 60px;
        position: relative;
        z-index: 1;
    }

    .hero-content {
        max-width: 900px;
        text-align: center;
        animation: fadeInUp 1s ease;
    }

    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(40px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(212,168,83,0.1);
        border: 1px solid rgba(212,168,83,0.2);
        color: var(--primary);
        padding: 10px 24px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 32px;
        animation: fadeInUp 1s ease 0.2s both;
        letter-spacing: 1px;
    }

    .hero-badge i {
        font-size: 12px;
    }

    .hero-title {
        font-size: clamp(36px, 8vw, 72px);
        font-weight: 900;
        line-height: 1.1;
        margin-bottom: 24px;
        background: linear-gradient(135deg, var(--text-light) 0%, var(--primary) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: fadeInUp 1s ease 0.3s both;
    }

    .hero-subtitle {
        font-size: clamp(16px, 3vw, 22px);
        color: var(--text-muted);
        line-height: 1.8;
        margin-bottom: 48px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        animation: fadeInUp 1s ease 0.4s both;
    }

    .hero-cta {
        display: flex;
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
        animation: fadeInUp 1s ease 0.5s both;
    }

    .btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: var(--bg-dark);
        padding: 16px 36px;
        border-radius: 50px;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 4px 20px rgba(212,168,83,0.3), var(--shadow-glow);
        font-family: 'Cairo', 'Poppins', sans-serif;
    }

    .btn-primary:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 30px rgba(212,168,83,0.4), 0 0 60px rgba(212,168,83,0.2);
    }

    .btn-secondary {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: transparent;
        color: var(--text-light);
        padding: 16px 36px;
        border-radius: 50px;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        border: 2px solid rgba(255,255,255,0.15);
        cursor: pointer;
        transition: var(--transition);
        font-family: 'Cairo', 'Poppins', sans-serif;
    }

    .btn-secondary:hover {
        border-color: var(--primary);
        color: var(--primary);
        transform: translateY(-3px);
    }

    body.light-theme .btn-secondary {
        border-color: rgba(0,0,0,0.15);
        color: var(--text-light);
    }

    body.light-theme .btn-secondary:hover {
        border-color: var(--primary);
    }

    .features {
        padding: 80px 24px;
        position: relative;
        z-index: 1;
    }

    .section-header {
        text-align: center;
        margin-bottom: 60px;
        animation: fadeInUp 0.8s ease both;
    }

    .section-title {
        font-size: clamp(28px, 5vw, 42px);
        font-weight: 900;
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .section-subtitle {
        color: var(--text-muted);
        font-size: 16px;
        max-width: 500px;
        margin: 0 auto;
        line-height: 1.7;
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .feature-card {
        background: var(--bg-card);
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: var(--radius);
        padding: 40px 30px;
        text-align: center;
        transition: var(--transition);
        position: relative;
        overflow: hidden;
        animation: fadeInUp 0.6s ease both;
    }

    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
    .feature-card:nth-child(4) { animation-delay: 0.4s; }
    .feature-card:nth-child(5) { animation-delay: 0.5s; }
    .feature-card:nth-child(6) { animation-delay: 0.6s; }
    .feature-card:nth-child(7) { animation-delay: 0.7s; }
    .feature-card:nth-child(8) { animation-delay: 0.8s; }

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--primary-light));
        transform: scaleX(0);
        transition: var(--transition);
    }

    .feature-card:hover {
        transform: translateY(-8px);
        background: var(--bg-card-hover);
        box-shadow: var(--shadow);
        border-color: rgba(212,168,83,0.15);
    }

    .feature-card:hover::before {
        transform: scaleX(1);
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        border-radius: 20px;
        background: rgba(212,168,83,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 24px;
        font-size: 28px;
        color: var(--primary);
        transition: var(--transition);
        border: 1px solid rgba(212,168,83,0.15);
    }

    .feature-card:hover .feature-icon {
        background: var(--primary);
        color: var(--bg-dark);
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 8px 25px rgba(212,168,83,0.3);
    }

    .feature-title {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .feature-desc {
        color: var(--text-muted);
        font-size: 14px;
        line-height: 1.8;
    }

    .how-it-works {
        padding: 80px 24px;
        position: relative;
        z-index: 1;
    }

    .steps-container {
        max-width: 1000px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .step {
        display: flex;
        align-items: center;
        gap: 32px;
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 32px;
        border: 1px solid rgba(255,255,255,0.05);
        transition: var(--transition);
        animation: fadeInUp 0.6s ease both;
    }

    .step:nth-child(1) { animation-delay: 0.1s; }
    .step:nth-child(2) { animation-delay: 0.2s; }
    .step:nth-child(3) { animation-delay: 0.3s; }
    .step:nth-child(4) { animation-delay: 0.4s; }

    .step:hover {
        transform: translateX(-8px);
        border-color: rgba(212,168,83,0.15);
        box-shadow: var(--shadow);
    }

    html[dir="ltr"] .step:hover {
        transform: translateX(8px);
    }

    .step-number {
        width: 60px;
        height: 60px;
        min-width: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: var(--bg-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: 900;
        box-shadow: 0 4px 20px rgba(212,168,83,0.3);
    }

    .step-content h3 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .step-content p {
        color: var(--text-muted);
        font-size: 15px;
        line-height: 1.7;
    }

    .stats {
        padding: 80px 24px;
        position: relative;
        z-index: 1;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 24px;
        max-width: 900px;
        margin: 0 auto;
    }

    .stat-card {
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 32px 24px;
        text-align: center;
        border: 1px solid rgba(255,255,255,0.05);
        transition: var(--transition);
        animation: fadeInUp 0.6s ease both;
    }

    .stat-card:nth-child(1) { animation-delay: 0.1s; }
    .stat-card:nth-child(2) { animation-delay: 0.2s; }
    .stat-card:nth-child(3) { animation-delay: 0.3s; }
    .stat-card:nth-child(4) { animation-delay: 0.4s; }

    .stat-card:hover {
        transform: translateY(-5px);
        border-color: rgba(212,168,83,0.15);
    }

    .stat-number {
        font-size: 42px;
        font-weight: 900;
        color: var(--primary);
        line-height: 1;
        margin-bottom: 8px;
        font-family: 'Poppins', sans-serif;
    }

    .stat-label {
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 600;
    }

    .cta-section {
        padding: 100px 24px;
        position: relative;
        z-index: 1;
        text-align: center;
    }

    .cta-box {
        max-width: 700px;
        margin: 0 auto;
        background: linear-gradient(135deg, rgba(212,168,83,0.1), rgba(233,69,96,0.05));
        border: 1px solid rgba(212,168,83,0.15);
        border-radius: var(--radius);
        padding: 60px 40px;
        position: relative;
        overflow: hidden;
    }

    .cta-box::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(212,168,83,0.05) 0%, transparent 60%);
        animation: rotate 30s linear infinite;
    }

    @keyframes rotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    .cta-box > * {
        position: relative;
        z-index: 1;
    }

    .cta-title {
        font-size: clamp(24px, 4vw, 36px);
        font-weight: 900;
        margin-bottom: 16px;
    }

    .cta-text {
        color: var(--text-muted);
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 32px;
    }

    .footer {
        padding: 40px 24px;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.05);
        position: relative;
        z-index: 1;
    }

    body.light-theme .footer {
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .footer-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .footer-logo img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

    .footer-logo span {
        font-size: 18px;
        font-weight: 900;
        color: var(--primary);
        letter-spacing: 2px;
    }

    .footer-copy {
        color: var(--text-dark);
        font-size: 13px;
    }

    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease;
    }

    .scroll-reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

    @media (max-width: 768px) {
        .hero {
            padding: 100px 20px 40px;
        }

        .step {
            flex-direction: column;
            text-align: center;
            gap: 20px;
        }

        .features-grid {
            grid-template-columns: 1fr;
        }

        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .cta-box {
            padding: 40px 24px;
        }
    }

    .logo-glow {
        animation: logoGlow 3s ease-in-out infinite;
    }

    @keyframes logoGlow {
        0%, 100% { filter: drop-shadow(0 0 10px rgba(212,168,83,0.3)); }
        50% { filter: drop-shadow(0 0 25px rgba(212,168,83,0.6)); }
    }

    .section-label {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--primary);
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 16px;
        
        background: rgba(212,168,83,0.08);
        padding: 8px 20px;
        border-radius: 50px;
        border: 1px solid rgba(212,168,83,0.15);
        text-transform: uppercase;
    }

    .section-label i {
        font-size: 12px;
    }

    /* ===== Subscription Section ===== */
    .subscribe-section {
        padding: 100px 24px;
        position: relative;
        z-index: 1;
    }

    .subscribe-box {
        max-width: 900px;
        margin: 0 auto;
        background: var(--bg-card);
        border: 1px solid rgba(212,168,83,0.1);
        border-radius: var(--radius);
        padding: 50px 40px;
        position: relative;
        overflow: hidden;
        transition: var(--transition);
    }

    .subscribe-box:hover {
        border-color: rgba(212,168,83,0.2);
        box-shadow: var(--shadow);
    }

    .subscribe-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    }

    .subscribe-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 32px;
    }

    .form-row-with-image {
        display: flex;
        gap: 30px;
         align-items: center;
    }

    .form-image-wrapper {
        flex: 0 0 35%;
        max-width: 35%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .form-menu-image {
        width: 100%;
        height: auto;
        
    }

 

    /* ===== الحقول ===== */
    .form-fields-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .form-group {
        position: relative;
    }

    .form-group label {
        display: block;
        color: var(--text-muted);
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 8px;
        text-align: right;
    }

    html[dir="ltr"] .form-group label {
        text-align: left;
    }

    .form-input,
    .form-select {
        width: 100%;
        padding: 14px 18px;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: var(--radius-sm);
        color: var(--text-light);
        font-family: 'Cairo', 'Poppins', sans-serif;
        font-size: 15px;
        transition: var(--transition);
        outline: none;
        appearance: none;
        -webkit-appearance: none;
    }

    .form-select {
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: left 18px center;
        padding-left: 45px;
    }

    html[dir="ltr"] .form-select {
        background-position: right 18px center;
        padding-right: 45px;
        padding-left: 18px;
    }

    body.light-theme .form-input,
    body.light-theme .form-select {
        background: rgba(0,0,0,0.03);
        border-color: rgba(0,0,0,0.08);
        color: var(--text-light);
    }

    body.light-theme .form-select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b80' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    }

    .form-input:focus,
    .form-select:focus {
        border-color: var(--primary);
        background: rgba(212,168,83,0.05);
        box-shadow: 0 0 0 3px rgba(212,168,83,0.1);
    }

    .form-input::placeholder {
        color: var(--text-dark);
    }

    .form-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .field-hint {
        display: block;
        color: var(--text-dark);
        font-size: 12px;
        margin-top: 4px;
        text-align: right;
    }

    html[dir="ltr"] .field-hint {
        text-align: left;
    }

    .btn-submit {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: var(--bg-dark);
        padding: 16px 36px;
        border-radius: 50px;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 4px 20px rgba(212,168,83,0.3);
        font-family: 'Cairo', 'Poppins', sans-serif;
        margin-top: 10px;
    }

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(212,168,83,0.4);
    }

    .btn-submit:active {
        transform: translateY(0);
    }

    /* ===== للشاشات المتوسطة ===== */
    @media (max-width: 992px) {
        .form-image-wrapper {
            flex: 0 0 30%;
            max-width: 30%;
        }
    }

    /* ===== للشاشات الصغيرة والهواتف ===== */
    @media (max-width: 768px) {
        .subscribe-box {
            padding: 30px 20px;
        }

        .form-row-with-image {
            flex-direction: column;
            gap: 20px;
            align-items: center;
        }

        .form-image-wrapper {
            flex: 0 0 auto;
            max-width: 220px;
            width: 100%;
            order: -1;
        }

        .form-fields-wrapper {
            width: 100%;
        }

        .success-modal {
            padding: 35px 24px;
        }
    }

    /* ===== للهواتف الصغيرة جداً ===== */
    @media (max-width: 480px) {
        .form-image-wrapper {
            max-width: 160px;
        }
    }

    /* ===== Success Modal ===== */
    .success-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(10px);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    body.light-theme .success-overlay {
        background: rgba(0,0,0,0.5);
    }

    .success-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .success-modal {
        background: var(--bg-card);
        border: 1px solid rgba(212,168,83,0.2);
        border-radius: var(--radius);
        padding: 50px 40px;
        text-align: center;
        max-width: 450px;
        margin: 20px;
        transform: scale(0.8) translateY(20px);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        position: relative;
        overflow: hidden;
    }

    .success-overlay.active .success-modal {
        transform: scale(1) translateY(0);
    }

    .success-modal::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--success), #27ae60);
    }

    .success-icon {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: rgba(46, 204, 113, 0.1);
        border: 2px solid var(--success);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 24px;
        font-size: 36px;
        color: var(--success);
        animation: successPop 0.5s ease 0.2s both;
    }

    @keyframes successPop {
        0% { transform: scale(0); }
        50% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }

    .success-title {
        font-size: 24px;
        font-weight: 900;
        margin-bottom: 12px;
        color: var(--text-light);
    }

    .success-text {
        color: var(--text-muted);
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 12px;
    }

    .success-link {
        display: inline-block;
        background: rgba(212,168,83,0.1);
        border: 1px solid rgba(212,168,83,0.2);
        padding: 10px 20px;
        border-radius: 50px;
        color: var(--primary);
        font-weight: 700;
        font-size: 14px;
        margin: 16px 0 8px;
        word-break: break-all;
        direction: ltr;
    }

    .success-email {
        display: inline-block;
        background: rgba(46, 204, 113, 0.1);
        border: 1px solid rgba(46, 204, 113, 0.2);
        padding: 10px 20px;
        border-radius: 50px;
        color: var(--success);
        font-weight: 700;
        font-size: 14px;
        margin-bottom: 24px;
        word-break: break-all;
    }

    /* ===== Fix for font rendering ===== */
    .feature-title,
    .step-content h3,
    .section-title,
    .hero-title,
    .cta-title {
        font-family: 'Cairo', 'Poppins', sans-serif;
        font-weight: 900;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    body,
    p,
    span,
    div,
    .feature-desc,
    .step-content p,
    .section-subtitle,
    .hero-subtitle,
    .stat-label,
    .footer-copy,
    .form-group label,
    .field-hint {
        font-family: 'Cairo', 'Poppins', sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }


/* ===== Success Modal Close Button ===== */
.success-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-muted);
    padding: 10px 28px;
    border-radius: 50px;
    font-family: 'Cairo', 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
    min-width: 120px;
}

.success-close-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(233,69,96,0.3);
}

.success-close-btn i {
    font-size: 14px;
}

body.light-theme .success-close-btn {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
    color: var(--text-light);
}

body.light-theme .success-close-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ===== Download Buttons ===== */
.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-family: 'Cairo', 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
}

.btn-download i {
    font-size: 22px;
}

.btn-download .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-download .btn-text small {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.8;
}

.btn-download .btn-text span {
    font-size: 16px;
    font-weight: 700;
}

.btn-download.android {
    background: linear-gradient(135deg, #3DDC84, #1A8D3C);
    color: #fff;
    box-shadow: 0 4px 20px rgba(61, 220, 132, 0.3);
}

.btn-download.android:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(61, 220, 132, 0.4);
}

.btn-download.windows {
    background: linear-gradient(135deg, #00A4EF, #005A9E);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 164, 239, 0.3);
}

.btn-download.windows:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 164, 239, 0.4);
}

.btn-download.ios {
    background: linear-gradient(135deg, #555555, #1a1a1a);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-download.ios:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

body.light-theme .btn-download.ios {
    background: linear-gradient(135deg, #777777, #333333);
}

@media (max-width: 600px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-download {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 20px;
    }

    .btn-download .btn-text span {
        font-size: 14px;
    }

    .btn-download i {
        font-size: 18px;
    }
}

/* ===== Download Section ===== */
.download-section {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.download-section .download-buttons {
    max-width: 600px;
    margin: 0 auto;
}

.download-section .section-subtitle {
    max-width: 600px;
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 20px rgba(212,168,83,0.3);
    border-radius: 0 4px 4px 0;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

body.light-theme ::-webkit-scrollbar-track {
    background: #e8e8ec;
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}

body.light-theme * {
    scrollbar-color: var(--primary) #e8e8ec;
}

/* ===== Error Modal (Duplicate Email) ===== */
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

body.light-theme .error-overlay {
    background: rgba(0,0,0,0.5);
}

.error-overlay.active {
    opacity: 1;
    visibility: visible;
}

.error-modal {
    background: var(--bg-card);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: var(--radius);
    padding: 50px 40px;
    text-align: center;
    max-width: 450px;
    margin: 20px;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.error-overlay.active .error-modal {
    transform: scale(1) translateY(0);
}

.error-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #c0392b);
}

.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(233, 69, 96, 0.1);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: var(--accent);
    animation: errorPop 0.5s ease 0.2s both;
}

@keyframes errorPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.error-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--text-light);
}

.error-text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.error-email {
    display: inline-block;
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
    word-break: break-all;
    direction: ltr;
}

.error-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-muted);
    padding: 10px 28px;
    border-radius: 50px;
    font-family: 'Cairo', 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
    min-width: 120px;
}

.error-close-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(233,69,96,0.3);
}

.error-close-btn i {
    font-size: 14px;
}

body.light-theme .error-close-btn {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
    color: var(--text-light);
}

body.light-theme .error-close-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .error-modal {
        padding: 35px 24px;
    }
}