/* ظ‚ط³ظ… ط­ظ…ظ„ ط§ظ„طھط·ط¨ظٹظ‚ (pre-footer-section) */
.pre-footer-section {
    background: transparent;
    position: relative;
    margin-top: 36px;
    margin-bottom: 36px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pre-footer-bg-pattern {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    z-index: 0;
    border-radius: 24px 24px 0 0;
}
.pre-footer-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 42px 24px;
}
.pre-footer-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.pre-footer-title .bee-yellow {
    color: #F4BC00;
}
.pre-footer-title-underline {
    display: block;
    margin: 12px auto 0 auto;
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, #f7d86a 20%, #F4BC00 50%, #f7d86a 80%, transparent 100%);
    border-radius: 3px;
    box-shadow: 0 2px 12px rgba(244, 188, 0, 0.27);
}
.pre-footer-subtitle {
    color: #444;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.pre-footer-grid {
    display: flex;
    flex-direction: row-reverse;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
}
.pre-footer-features {
    flex: 1 1 340px;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pre-footer-phones {
    flex: 1 1 340px;
    min-width: 320px;
    max-width: 500px;
    display: flex;
    flex-direction: row;
    gap: 22px;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}
.phone-mockup {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 35px;
    padding: 4px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    width: 250px;
    height: 430px;
    overflow: hidden;
}
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    z-index: 10;
}
.phone-mockup::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    z-index: 10;
}
.phone-screen {
    background: #000;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    border: 2px solid #333;
    width: 100%;
    height: 100%;
}
.app-interface {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    margin: 25px 8px 15px 8px;
    padding: 16px 12px;
    height: calc(100% - 50px);
    position: relative;
    overflow: hidden;
}
.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.mockup-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #F4BC00;
}
.mockup-icon.yellow { background: linear-gradient(135deg, #F4BC00, #F4BC00); }
.mockup-icon.purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.mockup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}
.mockup-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mockup-list-item {
    background: #fff;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #222;
    border: 1.5px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s;
}
.mockup-list-item.green { border-color: #4ade80; color: #16a34a; }
.mockup-list-item.blue { border-color: #60a5fa; color: #2563eb; }
.mockup-list-item.orange { border-color: #fdba74; color: #ea580c; }
.mockup-list-item.yellow { border-color: #fde047; color: #ca8a04; }
.mockup-list-item.pulse { animation: pulseGlow 2s infinite; }
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(244, 188, 0, 0.27); }
    50% { box-shadow: 0 0 30px rgba(244, 188, 0, 0.6); }
}
.pre-footer-floating {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    z-index: 0;
}
.pre-footer-floating.yellow {
    top: 10px; right: 10px; width: 80px; height: 80px; background: #F4BC00;
}
.pre-footer-floating.blue {
    bottom: 20px; left: 10px; width: 64px; height: 64px; background: #60a5fa;
    animation-delay: -2s;
}
.pre-footer-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 260px;
}
.feature-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 1rem 1rem 0.95rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    border: 1px solid #eee;
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}
.feature-card:hover {
    box-shadow: 0 8px 32px rgba(244,188,0,0.18), 0 2px 16px rgba(0,0,0,0.10);
    transform: translateY(-10px) scale(1.04);
    border-color: #F4BC00;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F4BC00;
    flex-shrink: 0;
}
.feature-icon.blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.feature-icon.green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.feature-icon.yellow { background: linear-gradient(135deg, #F4BC00, #F4BC00); }
.feature-icon.purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}
.feature-desc {
    color: #666;
    font-size: 0.98rem;
}
.pre-footer-downloads {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: center;
    margin-top: 28px;
}
.download-btn {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}
.download-btn.site {
    background: #F4BC00;
    color: #222;
}
.download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.phone-mockup.phone-float-1 {
    animation: phoneFloat1 7s ease-in-out infinite;
}
.phone-mockup.phone-float-2 {
    animation: phoneFloat2 8s ease-in-out infinite;
}
@keyframes phoneFloat1 {
    0%, 100% { transform: translateY(0px) rotate(-4deg) scale(1); }
    50% { transform: translateY(-22px) rotate(-7deg) scale(1.03); }
}
@keyframes phoneFloat2 {
    0%, 100% { transform: translateY(0px) rotate(6deg) scale(1); }
    50% { transform: translateY(-18px) rotate(9deg) scale(1.02); }
}
@media (max-width: 900px) {
    .pre-footer-container {
        padding: 40px 10px;
    }
    .pre-footer-title {
        font-size: 1.5rem;
    }
    .pre-footer-grid {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }
    .pre-footer-features, .pre-footer-phones {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        justify-content: center;
    }
    .pre-footer-phones {
        flex-direction: row;
        gap: 16px;
    }
}

/* Brand palette overrides */
.pre-footer-section {
    background-color: #FFF9EC;
}

.pre-footer-bg-pattern {
    background: rgba(255, 249, 236, 0.55);
}

.pre-footer-title {
    color: #111827;
}

.pre-footer-title .bee-yellow {
    color: #F4BC00;
}

.pre-footer-title-underline {
    background: linear-gradient(90deg, transparent 0%, #F4BC00 20%, #F4BC00 50%, #F4BC00 80%, transparent 100%);
    box-shadow: 0 2px 12px rgba(244, 188, 0, 0.22);
}

.pre-footer-subtitle,
.feature-desc {
    color: #6B7280;
}

.app-interface {
    background: linear-gradient(135deg, #FFF9EC 0%, #F7F1E4 100%);
}

.mockup-icon,
.feature-icon {
    background: #F4BC00;
}

.mockup-icon.yellow,
.feature-icon.yellow {
    background: linear-gradient(135deg, #F4BC00, #F4BC00);
}

.mockup-icon.purple,
.feature-icon.purple {
    background: linear-gradient(135deg, #F4BC00, #F4BC00);
}

.mockup-list-item,
.feature-card {
    border-color: #E8DCC2;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.mockup-list-item.blue,
.feature-icon.blue,
.pre-footer-floating.blue {
    border-color: #E8DCC2;
    color: #F4BC00;
    background: #111827;
}

.pre-footer-floating.yellow {
    background: #F4BC00;
}

.feature-card:hover {
    border-color: #F4BC00;
    box-shadow: 0 14px 30px rgba(244, 188, 0, 0.16);
}

.feature-title,
.mockup-title {
    color: #1F2937;
}

/* Responsive hardening for very small screens */
.pre-footer-section,
.pre-footer-container,
.pre-footer-grid,
.pre-footer-features,
.pre-footer-phones {
    max-width: 100%;
}

.phone-mockup,
.app-interface,
.feature-card,
.download-btn {
    min-width: 0;
}

@media (max-width: 640px) {
    .pre-footer-section {
        padding-block: 44px;
        overflow-x: clip;
    }

    .pre-footer-container {
        width: min(100% - 20px, 1200px);
        padding-inline: 0;
    }

    .pre-footer-title {
        font-size: clamp(1.75rem, 9vw, 2.35rem);
        line-height: 1.2;
    }

    .pre-footer-subtitle {
        font-size: 1rem;
        line-height: 1.8;
    }

    .pre-footer-features {
        gap: 14px;
    }

    .feature-card {
        padding: 16px;
        border-radius: 18px;
    }

    .pre-footer-downloads {
        width: 100%;
        justify-content: center;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .pre-footer-phones {
        transform: none;
        gap: 12px;
    }

    .phone-mockup {
        width: min(44vw, 180px);
    }
}

@media (max-width: 420px) {
    .pre-footer-grid {
        gap: 24px;
    }

    .pre-footer-phones {
        flex-direction: column;
        align-items: center;
    }

    .phone-mockup {
        width: min(70vw, 210px);
    }

    .phone-mockup.phone-float-1,
    .phone-mockup.phone-float-2 {
        animation: none;
    }
}
