:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #dcfce7;
    --secondary: #f97316;
    --secondary-dark: #ea580c;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    direction: rtl;
    line-height: 1.7;
    font-size: 0.95rem;
    /* Reduced to make text slightly smaller */
    overflow-x: hidden;
}

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

/* Typography & Global Styles */
h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.5px;
    /* Makes Tajawal headings look much more unified and modern */
}

span {
    color: var(--primary);
}

.w-full {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    /* Reduced padding */
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    /* Reduced font size */
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    gap: 8px;
}

.btn-lg {
    padding: 12px 28px;
    /* Reduced for lg */
    font-size: 1.05rem;
}

.btn-sm {
    padding: 6px 16px;
    /* Reduced for sm */
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* Moved to left to avoid text overlap in RTL */
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float i {
    font-size: 1.8rem;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px;
        /* Lift above the sticky CTA on mobile */
        left: 20px;
        padding: 8px 15px;
    }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Trust Features Fix */
.trust-features {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.t-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.t-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.t-item:hover {
    transform: translateY(-5px);
}

.t-item i {
    font-size: 2.2rem;
    color: var(--primary);
    background: var(--primary-light);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 5px;
}

.t-item span {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .t-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .t-item {
        padding: 10px;
    }

    .t-item i {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .t-item span {
        font-size: 0.95rem;
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo i {
    font-size: 1.8rem;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: radial-gradient(circle at top right, #dcfce7 0%, transparent 40%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 600px;
}

.badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: -15px;
}

.trust-badge p {
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.card-morph {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    border-radius: 20px;
}

.promo-box {
    position: absolute;
    bottom: 20px;
    right: -20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.benefit-card:hover,
.benefit-card.active {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-10px);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 25px;
}

.benefit-card.active .icon-circle {
    background: var(--primary);
    color: var(--white);
}

/* Integrated System */
.system-details {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--white), var(--bg-light));
}

.system-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.label {
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.system-info h3 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.check-list {
    list-style: none;
    margin-bottom: 35px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.check-list i {
    color: var(--primary);
    font-size: 1.4rem;
}

.system-visual img {
    width: 100%;
    border-radius: 30px;
    transform: rotate(2deg);
}

/* Pricing / Offers */
.offers {
    padding: 80px 0;
    background-color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.ribbon {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

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

.target {
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-light);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-price {
    margin-bottom: 30px;
}

.old-price {
    display: block;
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.current-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
}

.current-price span {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.card-features {
    list-style: none;
    text-align: right;
    margin-bottom: 35px;
}

.card-features li {
    margin-bottom: 15px;
    font-weight: 600;
}

.card-features i {
    color: var(--primary);
    margin-left: 10px;
}

/* Maintenance Grid */
.maintenance-section {
    background: var(--gray-100);
    padding: 40px;
    border-radius: 40px;
    text-align: center;
}

.maintenance-section h3 {
    margin-bottom: 30px;
}

.maintenance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.m-card {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
}

.m-card.highlight {
    border: 2px solid var(--secondary);
}

.m-card h4 {
    margin-bottom: 10px;
}

.m-card .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.stars {
    color: #fbbf24;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.user-info {
    border-top: 1px solid var(--gray-100);
    padding-top: 15px;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: var(--bg-light);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
    border-top: 1px solid var(--gray-200);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Modal */
/* Modal & Checkout Form */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    width: 95%;
    max-width: 500px;
    border-radius: 24px;
    position: relative;
    max-height: 92vh;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#order-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.modal-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--white);
    z-index: 12;
    border-bottom: 1px solid var(--gray-100);
}

.modal-body {
    padding: 20px 25px;
    overflow-y: auto;
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
    /* Smooth momentum scrolling on iOS */
    scrollbar-width: thin;
}

.modal-footer {
    padding: 16px 24px 24px;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    z-index: 100;
    position: relative;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
}

.close-modal {
    font-size: 1rem;
    cursor: pointer;
    color: var(--primary);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-handle {
    display: none;
}

@media (max-width: 768px) {
    .modal-handle {
        display: block;
        width: 35px;
        height: 5px;
        background: var(--gray-200);
        border-radius: 10px;
        margin: 10px auto 5px;
        flex-shrink: 0;
    }
}

.modal-body::-webkit-scrollbar {
    width: 5px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 10px;
}
.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.form-instruction {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.95rem;
    background: var(--primary-light);
    padding: 15px;
    border-radius: 12px;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group textarea {
    height: 80px;
    resize: none;
}

.form-note-badge {
    background: #f0fdf4;
    padding: 10px;
    border-radius: 8px;
    color: #16a34a;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 24px 24px 0 0;
        animation: slideUpMobile 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .modal-header {
        padding: 10px 20px;
    }

    .modal-header h3 {
        font-size: 1.15rem;
    }

    .modal-body {
        padding: 10px 20px;
    }

    .modal-footer {
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
        background: #fff;
    }

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

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 12px;
    }

    .form-group textarea {
        height: 70px;
    }

    .form-instruction {
        padding: 12px;
        font-size: 0.85rem;
        margin-bottom: 15px;
        border-radius: 14px;
    }
}

@keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideDownMobile {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

.modal.closing .modal-content {
    animation: slideDownMobile 0.4s ease-in forwards;
}

.modal.closing-desktop .modal-content {
    animation: slideDownDesktop 0.4s ease-in forwards;
}

@keyframes slideDownDesktop {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100px); opacity: 0; }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-top {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer .logo {
    color: var(--white);
    justify-content: center;
    margin-bottom: 15px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: var(--white);
    font-size: 1.5rem;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive */
@media (max-width: 991px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .system-wrapper {
        grid-template-columns: 1fr;
    }

    .system-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .pricing-card.popular {
        transform: scale(1);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* Creative Integrated System */
.integrated-system-pro {
    padding: 100px 0;
    background: radial-gradient(circle at bottom left, #f0fdf4 0%, var(--white) 50%);
    position: relative;
    overflow: hidden;
}

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-center {
    text-align: center;
}

.system-journey {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.journey-tile {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 30px;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--gray-100);
}

.journey-tile:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.journey-tile.highlight {
    background: linear-gradient(135deg, var(--white) 0%, #f0fdf4 100%);
    border: 2px solid var(--primary-light);
}

.tile-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gray-100);
    line-height: 1;
    z-index: 1;
}

.tile-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

.journey-tile h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.journey-tile p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.tile-benefit {
    display: inline-block;
    background: var(--gray-100);
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Trust Bar */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 30px;
    margin: 60px 0;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--primary-light);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

.cta-mini {
    margin-top: 40px;
}

.cta-mini p {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.text-warning {
    color: #fbbf24;
}

.fa-shield-check {
    color: var(--primary);
}

@media (max-width: 768px) {
    .trust-bar {
        flex-direction: column;
        gap: 20px;
    }

    .trust-divider {
        width: 80%;
        height: 1px;
    }
}

/* Improved Hero Image for Real Photos */
.hero-image {
    position: relative;
    padding: 20px;
}

.hero-image img {
    border-radius: 40px;
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
    border: 8px solid var(--white);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(-5deg) translateY(-10px);
}

/* --- TRENDY CONVERSION FEATURES --- */

/* Sticky Mobile CTA Bar */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--gray-200);
    padding: 15px 20px;
    z-index: 999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

.sticky-cta.visible {
    display: flex !important;
}

@media (max-width: 768px) {
    .sticky-cta {
        padding: 12px 15px;
    }
}

.sticky-info {
    display: flex;
    flex-direction: column;
}

.s-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.s-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Social Proof Notification */
.social-proof {
    position: fixed;
    bottom: 40px;
    right: 20px;
    background: var(--white);
    padding: 10px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateY(150px);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.social-proof.show {
    transform: translateY(0);
}

.sp-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.sp-text {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.sp-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-dark);
}

.sp-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Countdown Timer */
.countdown-timer {
    margin: 25px 0;
    text-align: center;
    background: rgba(34, 197, 94, 0.05);
    padding: 15px;
    border-radius: 20px;
    border: 1px dashed var(--primary);
}

.timer-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.timer-item {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.timer-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

/* WhatsApp Pulse Animation */
.whatsapp-float {
    animation: whatsapp-pulse 2s infinite ease-in-out;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Modern Gradient Text for Egypt */
.section-title h2 span {
    background: linear-gradient(135deg, var(--primary) 0%, #166534 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Scroll Animation Classes */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* High Converting Egyptian Trust Stamp */
.hero::after {
    content: "منتج مصري أصيل 🇪🇬";
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    border: 1px solid var(--gray-200);
    z-index: 2;
}

/* Fix for Hero on very small screens */
@media (max-width: 400px) {
    .timer-grid {
        gap: 10px;
    }

    .timer-item span {
        font-size: 1.2rem;
    }
}

/* --- SUCCESS GALLERY STYLES --- */
.success-gallery {
    padding: 100px 0;
    background: radial-gradient(circle at top right, #fcfcfc 0%, #f0fdf4 100%);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.story-card {
    background: var(--white);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--gray-100);
}

.story-card:hover {
    transform: translateY(-20px) rotate(-1deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.story-image {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.story-image img {
    width: 500px;
    height: 500px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    /* Adjusted border radius to flow with the card */
}

.transformation-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.4);
    z-index: 2;
    animation: bounce 2s infinite;
}

.story-info {
    padding: 30px;
    text-align: right;
}

.story-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.story-meta {
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 15px;
}

.story-quote {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
    background: var(--gray-100);
    padding: 20px;
    border-radius: 20px;
}

.cta-center {
    text-align: center;
    margin-top: 50px;
}

@media (max-width: 480px) {
    .stories-grid {
        gap: 25px;
    }

    .story-card {
        border-radius: 30px;
    }

    .story-info {
        padding: 20px;
    }
}

/* --- CAROUSEL STYLES --- */
.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    overflow: hidden;
    padding: 20px 0;
}

.stories-carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    gap: 30px;
    padding: 10px;
}

.stories-carousel .story-card {
    flex: 0 0 100%;
    /* Single card on mobile */
    min-width: 0;
}

@media (min-width: 769px) {
    .stories-carousel .story-card {
        flex: 0 0 calc(50% - 15px);
        /* Two cards on desktop */
    }
}

/* Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.carousel-btn.prev {
    right: 0;
}

.carousel-btn.next {
    left: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

/* --- STOCK SCARCITY INDICATOR --- */
.stock-indicator {
    margin: 15px 0 25px;
    text-align: right;
}

.stock-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.stock-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.stock-fill {
    width: 85%;
    height: 100%;
    background: #ef4444;
    /* Red color to show urgency */
    border-radius: 10px;
    animation: shrink-stock 15s ease-out forwards;
}

@keyframes shrink-stock {
    0% {
        width: 85%;
    }

    50% {
        width: 45%;
    }

    100% {
        width: 12%;
    }

    /* Simulates rapid purchasing */
}

/* --- CONFETTI EFFECT --- */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #f2d74e;
    opacity: 0;
    z-index: 9999;
    animation: confetti-fall 3s ease-in-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* --- COMPARISON SLIDER STYLES --- */
.before-after-pro {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

.comparison-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 40px auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--white);
}

.img-before,
.img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.img-before {
    width: 50%;
    border-left: 2px solid var(--white);
    z-index: 2;
}

.slider {
    position: absolute;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    cursor: ew-resize;
    margin: 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 500px;
    width: 4px;
    background: var(--white);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: 4px solid var(--white);
    border-radius: 50%;
    z-index: 11;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.slider-button::before,
.slider-button::after {
    content: "";
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.slider-button::before {
    transform: rotate(135deg);
    margin-left: 5px;
}

.slider-button::after {
    transform: rotate(-45deg);
    margin-right: 5px;
}

.label-before,
.label-after {
    position: absolute;
    bottom: 20px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 10px;
    font-weight: 800;
    z-index: 5;
    pointer-events: none;
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}

.comparison-note {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 700;
}

@media (max-width: 768px) {
    .comparison-container {
        height: 350px;
        border-radius: 20px;
    }

    .slider-button {
        width: 40px;
        height: 40px;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Social Proof Notification Polish */
.social-proof {
    position: fixed;
    bottom: 40px;
    right: 20px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(150px);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border: 1.5px solid var(--primary-light);
}

.sp-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 10px rgba(34, 197, 94, 0.3);
}

.sp-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.sp-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .social-proof {
        bottom: 90px;
        left: 20px;
        right: 20px;
        justify-content: center;
    }
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--gray-200);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}