/* =================================== 
   PREMIUM PARALLAX FOOTER
   =================================== */

.goha-premium-footer {
    position: relative;
    margin-top: 80px;
    overflow: hidden;
    background-color: var(--color-text-dark, #0f172a);
    /* Dark Background Restored */
}

/* FORCE WHITE ICONS IN FOOTER - ELEGANT DUOTONE FIX */
.footer-newsletter h4 i,
.newsletter-form button i,
.tags-title i,
.contact-icon,
.contact-icon i,
.footer-contact-list li .contact-icon,
.footer-contact-list li .contact-icon i {
    color: #ffffff !important;
    /* Primary Layer: Solid White */
    --fa-primary-color: #ffffff !important;
    --fa-primary-opacity: 1 !important;

    /* Secondary Layer: Translucent White for Glassy/Raiq Effect */
    --fa-secondary-color: #ffffff !important;
    --fa-secondary-opacity: 0.4 !important;

    opacity: 1 !important;
}

/* FAB & Back to Top - Color Fix Only (Respect Opacity Transitions) */
.fab-main i,
.back-to-top i {
    color: #ffffff !important;
    --fa-primary-color: #ffffff !important;
    --fa-primary-opacity: 1 !important;
    --fa-secondary-color: #ffffff !important;
    --fa-secondary-opacity: 0.4 !important;
}

/* Ensure no other color overrides */
.contact-icon {
    color: #ffffff !important;
}

.fab-main:hover i,
.back-to-top:hover i {
    color: #ffffff !important;
}

/* Gradient Overlay Top - Smooth transition */
.footer-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent 0%, var(--color-text-dark, #0f172a) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Parallax Background */
.footer-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--color-text-dark, #0f172a) 0%, #000000 100%);
    /* Darker gradient */
    z-index: 0;
}

.footer-parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(var(--color-secondary-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(var(--color-primary-rgb), 0.05) 0%, transparent 40%);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* Floating Particles Effect */
.footer-parallax-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 100%),
        radial-gradient(2px 2px at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 100%),
        radial-gradient(2px 2px at 60% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 100%),
        radial-gradient(2px 2px at 80% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
}

/* Footer Content */
.footer-content {
    position: relative;
    z-index: 1;
    padding: 120px 0 60px;
}

/* Top Section */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    flex: 1;
}

.footer-logo-img {
    max-height: 55px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--color-soft-gray, #94a3b8);
    font-size: 16px;
    margin: 0;
    max-width: 350px;
    line-height: 1.7;
}

/* Newsletter */
.footer-newsletter {
    flex: 1;
    max-width: 420px;
}

.footer-newsletter h4 {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 15px;
}

.footer-newsletter h4 i {
    margin-left: 8px;
    color: #ffffff !important;
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #fff;
    font-size: 15px;
    outline: none;
    font-family: 'Tajawal', 'Cairo', 'Almarai', sans-serif;
    direction: rtl;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Tajawal', 'Cairo', 'Almarai', sans-serif;
    font-weight: 500;
}

.newsletter-form button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button i {
    color: #ffffff !important;
}

.newsletter-form button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 25px rgba(var(--color-primary-rgb), 0.5);
}

/* Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin-bottom: 50px;
}

/* Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.footer-col:nth-child(1) {
    --i: 1;
}

.footer-col:nth-child(2) {
    --i: 2;
}

.footer-col:nth-child(3) {
    --i: 3;
}

.footer-col:nth-child(4) {
    --i: 4;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Heading */
.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-heading span {
    position: relative;
    padding-bottom: 10px;
}

.footer-heading span::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-soft-gray, #94a3b8);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    right: -15px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-right: 20px;
}

.footer-links a:hover::before {
    width: 8px;
}

/* Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.footer-contact-list li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    /* Solid Primary Background */
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff !important;
    /* White Icon */
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
}

.footer-contact-list li:hover .contact-icon {
    background: var(--color-secondary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(var(--color-secondary-rgb), 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: var(--color-soft-gray, #64748b);
    margin-bottom: 3px;
}

.contact-info a,
.contact-info span {
    color: var(--color-soft-gray, #e2e8f0);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--color-primary, #6366f1);
}

/* Social Grid */
.footer-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    /* Unified dark transparent background */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-btn:hover::before {
    opacity: 0.6;
}

.social-btn:hover {
    background: var(--color-primary);
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.4);
}

.social-btn.facebook:hover {
    background: linear-gradient(135deg, #1877f2, #0d5bcc);
}

.social-btn.twitter:hover {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-btn.instagram:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.linkedin:hover {
    background: linear-gradient(135deg, #0077b5, #005582);
}

.social-btn.youtube:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-btn.whatsapp:hover {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Social Wrapper V2 - Improved Layout */
.footer-social-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.social-btn-v2 {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-btn-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-btn-v2.facebook {
    background: linear-gradient(135deg, #1877f2, #0d5bcc);
}

.social-btn-v2.twitter {
    background: linear-gradient(135deg, #000, #333);
}

.social-btn-v2.instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn-v2.linkedin {
    background: linear-gradient(135deg, #0077b5, #005582);
}

.social-btn-v2.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-btn-v2.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-btn-v2.tiktok {
    background: linear-gradient(135deg, #000, #ff0050);
}

.social-btn-v2.snapchat {
    background: linear-gradient(135deg, #fffc00, #f5c518);
    color: #000;
}

/* Footer Tags Section */
.footer-tags {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tags-title {
    color: var(--color-soft-gray, #e2e8f0);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-title i {
    color: #ffffff;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 25px;
    color: var(--color-soft-gray, #e2e8f0) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: default;
}

.tag-item:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.no-tags {
    color: #64748b;
    font-size: 13px;
    font-style: italic;
}

/* App Download & Location Section */
.footer-apps-section {
    position: relative;
    z-index: 1;
    padding: 20px 0;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.08), rgba(var(--color-secondary-rgb), 0.08));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.apps-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.app-download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #fff;
    min-width: 150px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.4);
    filter: brightness(1.15);
}

.app-download-btn i,
.app-download-btn .huawei-icon {
    font-size: 22px;
    width: 28px;
    text-align: center;
}

.huawei-icon {
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    font-size: 18px !important;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.app-btn-small {
    font-size: 10px;
    opacity: 0.8;
    font-weight: 400;
}

.app-btn-large {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Android Button */
.app-download-btn.android {
    background: linear-gradient(135deg, rgba(52, 168, 83, 0.9), rgba(30, 142, 62, 0.9));
}

.app-download-btn.android:hover {
    background: linear-gradient(135deg, #34a853, #1e8e3e);
}

/* iOS Button */
.app-download-btn.ios {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(51, 51, 51, 0.9));
}

.app-download-btn.ios:hover {
    background: linear-gradient(135deg, #000, #333);
}

/* Huawei Button */
.app-download-btn.huawei {
    background: linear-gradient(135deg, rgba(193, 13, 38, 0.9), rgba(255, 0, 40, 0.9));
}

.app-download-btn.huawei:hover {
    background: linear-gradient(135deg, #c10d26, #ff0028);
}

/* Location Button - Google Maps Colors */
.app-download-btn.location {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.9), rgba(52, 168, 83, 0.9));
}

.app-download-btn.location:hover {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

@media (max-width: 768px) {
    .apps-wrapper {
        gap: 10px;
    }

    .app-download-btn {
        min-width: calc(50% - 5px);
        padding: 8px 14px;
    }

    .app-btn-large {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .app-download-btn {
        min-width: 100%;
    }
}

.footer-bottom-bar {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
    /* Dark transparent for better blend */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-white) !important;
    padding: 25px 0;
}

.footer-bottom-bar .copyright,
.footer-bottom-bar .powered-by,
.footer-bottom-bar a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.copyright strong {
    color: #94a3b8;
}

.powered-by {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.powered-by i {
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* =================================== 
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-wave svg {
        height: 80px;
    }

    .footer-content {
        padding: 80px 0 40px;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-newsletter {
        max-width: 100%;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-heading span::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-contact-list li {
        flex-direction: column;
        text-align: center;
    }

    .footer-social-grid {
        justify-content: center;
        grid-template-columns: repeat(6, 1fr);
        max-width: 350px;
        margin: 0 auto;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-social-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 200px;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
    }

    .newsletter-form button {
        width: 100%;
        border-radius: 25px;
        margin-top: 10px;
    }
}

/* =================================== 
   EXPANDABLE FAB - SQUARE POPUP
   =================================== */

.fab-container {
    position: fixed;
    bottom: 40px;
    z-index: 999998;
}

/* Position Classes */
.fab-container.fab-right {
    right: 25px;
}

.fab-container.fab-left {
    left: 25px;
}

.fab-container.fab-left .fab-popup {
    left: 0;
    right: auto;
}

.fab-main {
    width: 55px;
    height: 55px;
    border-radius: 30px;
    /* Modern squircle */
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(var(--color-primary-rgb), 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.fab-main:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--color-secondary);
    box-shadow: 0 15px 40px rgba(var(--color-secondary-rgb), 0.5);
}

.fab-icon-open,
.fab-icon-close {
    position: absolute;
    transition: all 0.3s ease;
}

.fab-icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

.fab-container.active .fab-icon-open {
    opacity: 0;
    transform: rotate(90deg);
}

.fab-container.active .fab-icon-close {
    opacity: 1;
    transform: rotate(0);
}

.fab-container.active .fab-main {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
}

/* FAB Square Popup */
.fab-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
    overflow: hidden;
}

.fab-container.active .fab-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fab-popup-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 15px 20px;
    text-align: center;
}

.fab-popup-header h4 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

/* 2x2 Grid */
.fab-popup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.fab-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.fab-grid-item i {
    font-size: 28px;
    margin-bottom: 8px;
}

.fab-grid-item span {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.fab-grid-item.whatsapp {
    background: rgba(37, 211, 102, 0.1);
}

.fab-grid-item.whatsapp i {
    color: #25D366;
}

.fab-grid-item.whatsapp:hover {
    background: #25D366;
}

.fab-grid-item.phone {
    background: rgba(37, 99, 235, 0.1);
}

.fab-grid-item.phone i {
    color: var(--color-primary);
}

.fab-grid-item.phone:hover {
    background: var(--color-primary);
}

.fab-grid-item.email {
    background: rgba(249, 115, 22, 0.1);
}

.fab-grid-item.email i {
    color: var(--color-accent);
}

.fab-grid-item.email:hover {
    background: var(--color-accent);
}

.fab-grid-item.services {
    background: rgba(124, 58, 237, 0.1);
}

.fab-grid-item.services i {
    color: var(--color-secondary);
}

.fab-grid-item.services:hover {
    background: var(--color-secondary);
}

.fab-grid-item:hover i,
.fab-grid-item:hover span {
    color: #fff;
}

/* Working Hours */
.fab-popup-hours {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.fab-popup-hours i {
    color: var(--color-primary);
    font-size: 18px;
}

.fab-popup-hours span {
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

/* =================================== 
   BACK TO TOP BUTTON
   =================================== */

.back-to-top {
    position: fixed;
    left: 25px;
    bottom: 40px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    /* Solid Primary */
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999997;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(var(--color-secondary-rgb), 0.5);
}

/* Back to Top Position Classes */
.back-to-top.back-to-top-left {
    left: 25px;
    right: auto;
}

.back-to-top.back-to-top-right {
    right: 25px;
    left: auto;
}

@media (max-width: 768px) {
    .fab-container {
        right: 15px;
        bottom: 30px;
    }

    .fab-main {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .fab-popup {
        width: 260px;
        right: -5px;
    }

    .back-to-top {
        display: none !important;
    }

    /* Mobile: Side by side menu columns */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .footer-col:nth-child(3),
    .footer-col:nth-child(4) {
        grid-column: span 1;
    }
}

/* ===================================
   NEWSLETTER SUCCESS POPUP
   =================================== */
.newsletter-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.newsletter-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.newsletter-popup .popup-content {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 30px 50px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 25px 80px rgba(16, 185, 129, 0.4);
    animation: popup-pulse 2s ease-in-out infinite;
}

.newsletter-popup .popup-content i {
    font-size: 32px;
    color: #fff;
    --fa-primary-color: #fff;
    --fa-secondary-color: rgba(255, 255, 255, 0.5);
}

.newsletter-popup .popup-content span {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

@keyframes popup-pulse {

    0%,
    100% {
        box-shadow: 0 25px 80px rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 30px 100px rgba(16, 185, 129, 0.6);
    }
}

/* Overlay behind popup */
.newsletter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.newsletter-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Newsletter form loading state */
.newsletter-form.loading button {
    pointer-events: none;
    opacity: 0.7;
}

.newsletter-form.loading button i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}