/* Footer Styles - مشابه لموقع shwerni.sa */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #16213e 75%, #1a1a2e 100%);
    color: #ffffff;
    font-family: 'Tajawal', sans-serif;
    width: 100%;
    padding: 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* تنسيق خاص للفوتر في صفحات الإدارة */
.dashboard-container + .footer {
    margin-right: 280px; /* عرض القائمة الجانبية */
    width: calc(100% - 280px);
    position: relative;
    left: 0;
}

/* تنسيق للفوتر في صفحات الإدارة مع القائمة الجانبية */
.dashboard-container ~ .footer {
    margin-right: 280px;
    width: calc(100% - 280px);
    position: relative;
    left: 0;
}

/* تنسيق عام للفوتر في صفحات الإدارة */
body:has(.dashboard-container) .footer {
    margin-right: 280px;
    width: calc(100% - 280px);
}

/* تنسيق بديل للمتصفحات التي لا تدعم :has() */
.dashboard-container ~ .footer {
    margin-right: 280px;
    width: calc(100% - 280px);
}

/* تنسيق بديل للفوتر في صفحات الإدارة */
.footer[data-admin="true"] {
    margin-right: 280px;
    width: calc(100% - 280px);
    position: relative;
    left: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .dashboard-container + .footer,
    .dashboard-container ~ .footer,
    body:has(.dashboard-container) .footer,
    .footer[data-admin="true"] {
        margin-right: 0;
        width: 100%;
    }
}

/* إضافة تأثير متدرج إضافي للخلفية */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(96, 165, 250, 0.05) 0%, 
        rgba(59, 130, 246, 0.03) 25%, 
        rgba(147, 51, 234, 0.05) 50%, 
        rgba(59, 130, 246, 0.03) 75%, 
        rgba(96, 165, 250, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

/* التأكد من أن المحتوى يظهر فوق التدرج */
.footer > * {
    position: relative;
    z-index: 2;
}

/* Override styles from style.css */
.footer .footer-main {
    padding: 2.5rem 1.5rem;
}

.footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer .footer-column {
    display: flex;
    flex-direction: column;
}

.footer-main {
    padding: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
    .footer-main {
        padding: 2.5rem 4rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer .footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    margin-top: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer .footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.footer .footer-link:hover {
    color: #60a5fa;
}

.footer .footer-description {
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.5;
    margin: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #ffffff;
    background: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.footer .contact-item i {
    color: #a0aec0;
    width: 16px;
}

.footer .contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer .contact-item a:hover {
    color: #60a5fa;
}

.legal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer .follow-us {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer .follow-us .footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
}

.footer .follow-us .social-icons {
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.7rem;
    position: relative;
    overflow: hidden;
}

.footer .social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.2) 0%, 
        rgba(147, 51, 234, 0.2) 50%, 
        rgba(96, 165, 250, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.footer .social-icon:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(96, 165, 250, 0.3) 100%);
    border-color: rgba(96, 165, 250, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3);
}

.footer .social-icon:hover::before {
    opacity: 1;
}

.social-icon-img {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.footer .social-icon:hover .social-icon-img {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

/* تنسيق خاص لصورة Snapchat */
.social-icon[aria-label="Snapchat"] .social-icon-img {
    filter: none;
    background: #FFFC00;
    border-radius: 50%;
    padding: 2px;
}

.social-icon[aria-label="Snapchat"]:hover .social-icon-img {
    filter: none;
    transform: scale(1.1);
}

/* تنسيق خاص لصورة WhatsApp */
.social-icon[aria-label="WhatsApp"] .social-icon-img {
    filter: none;
    background: #25D366;
    border-radius: 50%;
    padding: 2px;
}

.social-icon[aria-label="WhatsApp"]:hover .social-icon-img {
    filter: none;
    transform: scale(1.1);
}

/* تنسيق خاص لصورة Instagram */
.social-icon[aria-label="Instagram"] .social-icon-img {
    filter: none;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-radius: 50%;
    padding: 2px;
}

.social-icon[aria-label="Instagram"]:hover .social-icon-img {
    filter: none;
    transform: scale(1.1);
}

/* تنسيق خاص لصورة TikTok */
.social-icon[aria-label="TikTok"] .social-icon-img {
    filter: none;
    background: #000000;
    border-radius: 50%;
    padding: 2px;
}

.social-icon[aria-label="TikTok"]:hover .social-icon-img {
    filter: none;
    transform: scale(1.1);
}

/* تنسيق خاص لصورة Twitter */
.social-icon[aria-label="X (Twitter)"] .social-icon-img {
    filter: none;
    background: #000000;
    border-radius: 50%;
    padding: 2px;
}

.social-icon[aria-label="X (Twitter)"]:hover .social-icon-img {
    filter: none;
    transform: scale(1.1);
}

.footer .footer-bottom {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* إضافة تأثير متدرج إضافي للشريط السفلي */
.footer .footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(96, 165, 250, 0.1) 0%, 
        rgba(59, 130, 246, 0.05) 25%, 
        rgba(147, 51, 234, 0.1) 50%, 
        rgba(59, 130, 246, 0.05) 75%, 
        rgba(96, 165, 250, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* التأكد من أن محتوى الشريط السفلي يظهر فوق التدرج */
.footer .footer-bottom > * {
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding: 1rem 4rem;
    }
}

.footer .footer-copyright {
    text-align: center;
    font-size: 0.875rem;
    color: #ffffff;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-main {
        padding: 2rem 1rem;
    }

    .footer-bottom {
        padding: 1rem;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer .follow-us {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer .follow-us .social-icons {
        justify-content: flex-start;
    }
    
    .footer .social-icon {
        width: 3rem;
        height: 3rem;
        padding: 0.6rem;
    }
    
    .social-icon-img {
        width: 1.5rem;
        height: 1.5rem;
    }

    /* تنسيقات contact-item في وضع الجوال */
    .footer .contact-info {
        gap: 0.25rem;
    }

    .footer .contact-item {
        font-size: 0.875rem;
        gap: 0.5rem;
        align-items: flex-start;
        margin-bottom: 0;
        padding: 0;
    }

    .footer .contact-item i {
        width: 16px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .footer .contact-item span,
    .footer .contact-item a {
        font-size: 0.875rem;
        line-height: 1.5;
        word-wrap: break-word;
    }
}

/* قسم التوثيقات في الفوتر */
.footer-documentation {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2d3748;
    text-align: center;
}

.footer-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    margin-top: 0;
    text-align: center;
    position: relative;
}

.footer-main-title::after {
    display: none;
}

.footer-docs-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-doc-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    position: relative;
    overflow: hidden;
}

.footer-doc-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.1) 0%, 
        rgba(147, 51, 234, 0.1) 50%, 
        rgba(96, 165, 250, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.footer-doc-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(96, 165, 250, 0.15) 100%);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.2);
}

.footer-doc-item:hover::before {
    opacity: 1;
}

.doc-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    text-align: center;
}

.footer-payment-methods {
    margin-top: 1.5rem;
}

.payment-methods-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.payment-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-payment-icon {
    width: 60px;
    height: 38px;
    object-fit: contain;
    filter: grayscale(0.3) brightness(0.8);
    transition: all 0.3s ease;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
    padding: 4px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-payment-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.1) 0%, 
        rgba(147, 51, 234, 0.1) 50%, 
        rgba(96, 165, 250, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}

.footer-payment-icon:hover {
    filter: grayscale(0) brightness(1);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.4);
}

.footer-payment-icon:hover::before {
    opacity: 1;
}

/* شعار مدى */
.mada-icon {
    width: 60px;
    height: 38px;
    filter: none;
    background: white;
    border-radius: 4px;
    padding: 2px;
}

.mada-icon:hover {
    filter: none;
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* شعار Tabby */
.tabby-icon {
    filter: none;
    background: white;
    border-radius: 4px;
    padding: 2px;
}

.tabby-icon:hover {
    filter: none;
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* شعار PayPal */
.paypal-icon {
    width: 60px;
    height: 38px;
    background: linear-gradient(135deg, #0070ba, #1546a0);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 4px;
}

.paypal-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #005ea6, #0f3a8a);
}

.paypal-text {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* العناوين أسفل طرق الدفع */
.footer-legal-titles {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal-title {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(96, 165, 250, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-legal-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.1) 0%, 
        rgba(147, 51, 234, 0.1) 50%, 
        rgba(96, 165, 250, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}

.footer-legal-title:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(96, 165, 250, 0.2) 100%);
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
    text-decoration: none;
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.3);
}

.footer-legal-title:hover::before {
    opacity: 1;
}

/* Responsive for footer documentation */
@media (max-width: 767px) {
    .footer-documentation {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .footer-main-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .footer-docs-row {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-doc-item {
        padding: 0.75rem 1rem;
        min-width: auto;
        max-width: none;
    }
    
    .doc-title {
        font-size: 0.85rem;
    }
    
    .payment-methods-grid {
        gap: 1rem;
        max-width: 400px;
    }
    

    
    .footer-payment-icon {
        width: 45px;
        height: 28px;
    }
    
    .mada-icon {
        width: 45px;
        height: 28px;
        background: white;
        border-radius: 3px;
        padding: 1px;
    }
    
    .tabby-icon {
        width: 45px;
        height: 28px;
        background: white;
        border-radius: 3px;
        padding: 1px;
    }
    
    .paypal-icon {
        width: 45px;
        height: 28px;
    }
    
    .paypal-text {
        font-size: 0.7rem;
    }
    
    .footer-legal-titles {
        margin-top: 0.75rem;
        gap: 0.75rem;
    }
    
    .footer-legal-title {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .footer-main-title {
        font-size: 1.2rem;
    }
    
    .footer-docs-row {
        gap: 0.5rem;
    }
    
    .footer-doc-item {
        padding: 0.5rem 0.75rem;
    }
    
    .doc-title {
        font-size: 0.8rem;
    }
    
    .payment-methods-grid {
        gap: 0.75rem;
        max-width: 300px;
    }
    

    
    .footer-payment-icon {
        width: 40px;
        height: 25px;
    }
    
    .mada-icon {
        width: 40px;
        height: 25px;
        background: white;
        border-radius: 2px;
        padding: 1px;
    }
    
    .tabby-icon {
        width: 40px;
        height: 25px;
        background: white;
        border-radius: 2px;
        padding: 1px;
    }
    
    .paypal-icon {
        width: 40px;
        height: 25px;
    }
    
    .paypal-text {
        font-size: 0.65rem;
    }
    
    .footer-legal-titles {
        margin-top: 0.5rem;
        gap: 0.5rem;
    }
    
    .footer-legal-title {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .footer .social-icon {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.5rem;
    }
    
    .social-icon-img {
        width: 1.2rem;
        height: 1.2rem;
    }
}

/* =============================================================================
   هيكل الفوتر المعاد تصميمه — لوحات فوق التدرج (نفس البيانات والروابط)
   يُستخدم مع .footer-shell داخل .container (المكوّن + index)
   ============================================================================= */

.footer .footer-shell {
    display: flex;
    flex-direction: column;
    gap: clamp(1.1rem, 2.5vw, 1.65rem);
}

.footer .footer-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: clamp(1.1rem, 2.8vw, 1.45rem) clamp(1rem, 3vw, 1.5rem);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer .footer-intro .footer-description {
    max-width: 42rem;
    margin: 0;
    line-height: 1.65;
}

.footer .footer-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.5vw, 1.35rem);
    align-items: stretch;
}

@media (min-width: 900px) {
    .footer .footer-split {
        grid-template-columns: 1.08fr 0.92fr;
    }
}

.footer .footer-panel .footer-title {
    margin-bottom: 0.75rem;
}

.footer .footer-panel .contact-info {
    gap: 0.65rem;
}

.footer .footer-panel .social-icons {
    margin-top: 0.35rem;
    flex-wrap: wrap;
    gap: 0.65rem;
}

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

.footer .footer-trust-title {
    font-size: clamp(1.15rem, 2.4vw, 1.35rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}

.footer .footer-trust .footer-docs-row {
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    margin-bottom: 1.25rem;
}

.footer .footer-doc-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: start;
    direction: rtl;
    flex: 0 1 280px;
    max-width: 320px;
    min-width: min(100%, 200px);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.footer .footer-doc-card:hover {
    border-color: rgba(111, 215, 214, 0.45);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.footer .footer-doc-thumb {
    width: 90px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.footer .footer-doc-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.footer .footer-doc-meta .doc-title {
    text-align: start;
    font-size: 0.88rem;
    line-height: 1.45;
}

.footer .doc-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.footer .footer-trust .footer-payment-methods {
    margin-top: 0.25rem;
}

.footer .footer-trust .footer-legal-titles {
    margin-top: 1.15rem;
}

@media (max-width: 767px) {
    .footer .footer-trust .footer-docs-row {
        flex-direction: column;
        align-items: stretch;
    }

    .footer .footer-doc-card {
        max-width: none;
        flex: 1 1 100%;
    }

    .footer .footer-doc-meta .doc-title {
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer .footer-doc-card:hover {
        transform: none;
    }
}

/* =============================================================================
   Nafs footer identity - matches the homepage footer structure
   ============================================================================= */

.footer {
    background: linear-gradient(135deg, #171d1c 0%, #2c3131 28%, #1f3a52 62%, #0d4f4e 100%);
    color: #f2fffe;
    overflow: visible;
    padding-top: clamp(22px, 3.5vw, 34px);
}

.footer::before {
    background: linear-gradient(
        45deg,
        rgba(0, 103, 103, 0.12) 0%,
        rgba(0, 130, 130, 0.06) 35%,
        rgba(111, 215, 214, 0.08) 70%,
        rgba(0, 103, 103, 0.1) 100%
    );
}

.footer:not(.footer--home-wavy)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: clamp(-8px, -1.2vw, -3px);
    height: clamp(26px, 4vw, 36px);
    background: #0f1f1e;
    clip-path: polygon(0 56%, 12% 28%, 25% 70%, 38% 48%, 50% 60%, 62% 18%, 75% 46%, 88% 68%, 100% 34%, 100% 100%, 0 100%);
    pointer-events: none;
    z-index: 1;
}

.footer .footer-main {
    position: relative;
    z-index: 2;
    padding: clamp(0.35rem, 1vw, 0.55rem) 0 clamp(0.75rem, 1.8vw, 1rem);
}

.footer .container {
    width: min(100% - 1.4rem, 1180px);
    margin-inline: auto;
}

.footer .footer-grid,
.footer .footer-shell {
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 2vw, 1.25rem);
    max-width: 68rem;
    margin-inline: auto;
    padding-block: 0 0.15rem;
}

.footer .footer-column,
.footer .footer-panel {
    min-width: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.footer .footer-grid > .footer-column:first-child,
.footer .footer-intro {
    text-align: center;
    padding-bottom: clamp(0.65rem, 1.6vw, 0.95rem);
    border-bottom: 1px solid rgba(111, 215, 214, 0.28);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.footer .footer-grid > .footer-column:first-child .footer-title,
.footer .footer-intro .footer-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.28rem, 3.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: #f2fffe;
}

.footer .footer-description {
    margin: 0 auto;
    max-width: 36rem;
    font-size: clamp(0.86rem, 1.75vw, 0.98rem);
    line-height: 1.55;
    color: rgba(240, 252, 250, 0.82);
}

.footer .footer-grid > .footer-column:nth-child(2),
.footer .footer-grid > .footer-column:nth-child(3),
.footer .footer-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.85rem, 2vw, 1.25rem);
    align-items: start;
}

.footer .footer-split {
    grid-template-columns: 1fr;
}

.footer .footer-grid > .footer-column:nth-child(2),
.footer .footer-grid > .footer-column:nth-child(3) {
    display: block;
}

.footer .footer-grid > .footer-column:nth-child(2) {
    order: 2;
}

.footer .footer-grid > .footer-column:nth-child(3) {
    order: 1;
}

.footer .footer-grid > .footer-column:nth-child(4),
.footer .footer-trust {
    order: 3;
    padding: clamp(0.65rem, 1.6vw, 0.9rem) clamp(0.65rem, 1.8vw, 1rem);
    border-radius: 3px;
    border: 1px dashed rgba(111, 215, 214, 0.42);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.footer .footer-title,
.footer-main-title,
.footer .footer-trust-title {
    margin: 0 0 0.55rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.35;
    text-transform: uppercase;
    color: #6fd7d6;
}

.footer-main-title,
.footer .footer-trust-title {
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: #dffdfb;
}

.footer .footer-title::after,
.footer-main-title::after {
    display: none;
}

.footer .contact-info,
.footer .footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.84rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
}

.footer .contact-item i {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    border: 1px solid rgba(111, 215, 214, 0.45);
    color: #9cf4f0;
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.2);
}

.footer .contact-item a,
.footer .footer-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(111, 215, 214, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer .contact-item a:hover,
.footer .footer-link:hover,
.footer-legal-title:hover {
    color: #ffffff;
    border-bottom-color: #bffffc;
}

.footer .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
}

.footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer .social-icon::before {
    display: none;
}

.footer .social-icon:hover {
    border-color: rgba(111, 215, 214, 0.65);
    background: rgba(111, 215, 214, 0.12);
    transform: translateY(-1px);
    box-shadow: none;
}

.social-icon-img,
.footer .social-icon img {
    width: 1.12rem;
    height: 1.12rem;
    object-fit: contain;
}

.social-icon[aria-label="Snapchat"] .social-icon-img,
.social-icon[aria-label="WhatsApp"] .social-icon-img,
.social-icon[aria-label="Instagram"] .social-icon-img,
.social-icon[aria-label="TikTok"] .social-icon-img,
.social-icon[aria-label="X (Twitter)"] .social-icon-img {
    filter: none;
    border-radius: 3px;
    padding: 2px;
}

.social-icon[aria-label="Snapchat"] .social-icon-img {
    background: #fffc00;
}

.social-icon[aria-label="WhatsApp"] .social-icon-img {
    background: #25d366;
}

.social-icon[aria-label="Instagram"] .social-icon-img {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon[aria-label="TikTok"] .social-icon-img,
.social-icon[aria-label="X (Twitter)"] .social-icon-img {
    background: #000;
}

.footer-documentation {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
}

.footer-docs-row,
.footer .footer-trust .footer-docs-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.45rem, 1.2vw, 0.65rem);
    margin-bottom: 0.65rem;
}

.footer-doc-item,
.footer .footer-doc-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 1 auto;
    max-width: 100%;
    min-width: 0;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    text-align: start;
}

.footer-doc-item::before {
    display: none;
}

.footer-doc-item:hover,
.footer .footer-doc-card:hover {
    border-color: rgba(111, 215, 214, 0.28);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transform: none;
}

.footer-doc-item img,
.footer .footer-doc-thumb {
    width: 58px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}

.footer .footer-doc-meta {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    text-align: start;
    min-width: 0;
}

.doc-title,
.footer .footer-doc-meta .doc-title {
    font-size: 0.74rem;
    line-height: 1.35;
    text-align: start;
    color: rgba(255, 255, 255, 0.9);
}

.doc-subtitle {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6fd7d6;
}

.footer-payment-methods {
    margin-top: 0;
}

.payment-methods-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    max-width: none;
    margin: 0 0 0.55rem;
}

.payment-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.4rem;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-payment-icon,
.paypal-icon {
    display: block;
    width: auto;
    height: 20px;
    max-width: 44px;
    object-fit: contain;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
}

.mada-icon {
    max-width: 42px;
}

.tabby-icon {
    background: transparent;
}

.paypal-icon {
    display: inline-flex;
    min-width: 3.6rem;
    height: 20px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0070ba, #1546a0);
    border-radius: 2px;
}

.paypal-text {
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.footer-payment-icon:hover,
.mada-icon:hover,
.tabby-icon:hover,
.paypal-icon:hover {
    transform: none;
    box-shadow: none;
}

.footer-legal-titles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem 0.35rem;
    margin-top: 0;
}

.footer-legal-title {
    padding: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-legal-title::before {
    display: none;
}

.footer-legal-title:hover {
    border-bottom-color: #6fd7d6;
    background: transparent;
    transform: none;
    box-shadow: none;
}

.footer .footer-bottom {
    padding-block: 0.55rem;
    border-top: 2px solid rgba(111, 215, 214, 0.22);
    background: rgba(0, 0, 0, 0.55);
}

.footer .footer-bottom::before {
    opacity: 0.35;
}

.footer .footer-copyright {
    color: rgba(226, 245, 243, 0.65);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.footer.footer--home-wavy > .footer-wave-top {
    position: absolute;
    left: 0;
    right: 0;
    top: clamp(-8px, -1.2vw, -3px);
    width: 100%;
    height: clamp(26px, 4vw, 36px);
    line-height: 0;
    pointer-events: none;
    z-index: 1;
}

.footer.footer--home-wavy .footer-wave-top__svg {
    display: block;
    width: 100%;
    height: 100%;
}

.footer.footer--home-wavy .footer-wave-top__fill {
    fill: #0f1f1e;
}

.footer .home-footer {
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 2vw, 1.25rem);
    max-width: 68rem;
    margin-inline: auto;
    padding-block: 0 0.15rem;
}

.footer .home-footer__masthead {
    text-align: center;
    padding-bottom: clamp(0.65rem, 1.6vw, 0.95rem);
    border-bottom: 1px solid rgba(111, 215, 214, 0.28);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.footer .home-footer__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.28rem, 3.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: #f2fffe;
}

.footer .home-footer__lede {
    margin: 0 auto;
    max-width: 36rem;
    font-size: clamp(0.86rem, 1.75vw, 0.98rem);
    line-height: 1.55;
    color: rgba(240, 252, 250, 0.82);
}

.footer .home-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.85rem, 2vw, 1.25rem);
    align-items: start;
}

.footer .home-footer__h {
    margin: 0 0 0.55rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6fd7d6;
}

.footer .home-footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer .home-footer__contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.84rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
}

.footer .home-footer__contact-row a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(111, 215, 214, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer .home-footer__contact-row a:hover {
    color: #ffffff;
    border-bottom-color: #bffffc;
}

.footer .home-footer__glyph {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    border: 1px solid rgba(111, 215, 214, 0.45);
    color: #9cf4f0;
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.2);
}

.footer .home-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.footer .home-footer__soc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.28);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer .home-footer__soc:hover {
    border-color: rgba(111, 215, 214, 0.65);
    background: rgba(111, 215, 214, 0.12);
    transform: translateY(-1px);
}

.footer .home-footer__soc img {
    width: 1.12rem;
    height: 1.12rem;
    object-fit: contain;
}

.footer .home-footer__soc[aria-label='Snapchat'] img {
    filter: none;
    background: #fffc00;
    border-radius: 3px;
    padding: 2px;
}

.footer .home-footer__soc[aria-label='WhatsApp'] img {
    filter: none;
    background: #25d366;
    border-radius: 3px;
    padding: 2px;
}

.footer .home-footer__soc[aria-label='Instagram'] img {
    filter: none;
    border-radius: 3px;
    padding: 2px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer .home-footer__soc[aria-label='TikTok'] img,
.footer .home-footer__soc[aria-label='X (Twitter)'] img {
    filter: none;
    background: #000;
    border-radius: 3px;
    padding: 2px;
}

.footer .home-footer__vault {
    padding: clamp(0.65rem, 1.6vw, 0.9rem) clamp(0.65rem, 1.8vw, 1rem);
    border-radius: 3px;
    border: 1px dashed rgba(111, 215, 214, 0.42);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.footer .home-footer__vault-title {
    margin: 0 0 0.55rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #dffdfb;
}

.footer .home-footer__badges,
.footer .home-footer__pays,
.footer .home-footer__legals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer .home-footer__badges {
    gap: clamp(0.45rem, 1.2vw, 0.65rem);
    margin-bottom: 0.65rem;
}

.footer .home-footer__badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    max-width: 100%;
}

.footer .home-footer__badge-img {
    width: 58px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}

.footer .home-footer__badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    text-align: start;
    min-width: 0;
}

.footer .home-footer__badge-line {
    font-size: 0.74rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
}

.footer .home-footer__badge-sub {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6fd7d6;
}

.footer .home-footer__pays {
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.footer .home-footer__pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.4rem;
    background: #f8fafc;
    border-radius: 2px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.footer .home-footer__pay-img {
    display: block;
    height: 20px;
    width: auto;
    max-width: 44px;
    object-fit: contain;
}

.footer .home-footer__pay-img--mada {
    max-width: 42px;
}

.footer .home-footer__pay--paypal {
    background: linear-gradient(135deg, #0070ba, #1546a0);
    border-color: rgba(255, 255, 255, 0.12);
    min-width: 3.6rem;
}

.footer .home-footer__paypal-txt {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
}

.footer .home-footer__legals {
    gap: 0.25rem 0.35rem;
}

.footer .home-footer__legal {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer .home-footer__legal:hover {
    color: #ffffff;
    border-bottom-color: #6fd7d6;
}

.footer .home-footer__legal-sep {
    color: rgba(255, 255, 255, 0.35);
    user-select: none;
}

.footer .home-footer__copyright-bar.footer-bottom {
    background: rgba(0, 0, 0, 0.55);
    border-top: 2px solid rgba(111, 215, 214, 0.22);
    padding-block: 0.55rem;
}

.footer .home-footer__copyright-bar.footer-bottom::before {
    opacity: 0.35;
}

.footer .home-footer__copy.footer-copyright {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: rgba(226, 245, 243, 0.65);
}

@media (min-width: 768px) {
    .footer .footer-grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: clamp(1rem, 2.5vw, 1.5rem);
    }

    .footer .footer-grid > .footer-column:first-child,
    .footer .footer-grid > .footer-column:nth-child(4) {
        grid-column: 1 / -1;
    }

    .footer .footer-grid > .footer-column:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }

    .footer .footer-grid > .footer-column:nth-child(2) {
        grid-column: 2;
        grid-row: 2;
        border-inline-start: 2px solid rgba(111, 215, 214, 0.38);
        padding-inline-start: clamp(0.85rem, 2vw, 1.35rem);
    }

    .footer .footer-grid {
        display: grid;
    }

    .footer .footer-split {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: clamp(1rem, 2.5vw, 1.5rem);
    }

    .footer .footer-split > .footer-panel:nth-child(2) {
        border-inline-start: 2px solid rgba(111, 215, 214, 0.38);
        padding-inline-start: clamp(0.85rem, 2vw, 1.35rem);
    }

    .footer .home-footer__grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: clamp(1rem, 2.5vw, 1.5rem);
    }

    .footer .home-footer__col--social {
        border-inline-start: 2px solid rgba(111, 215, 214, 0.38);
        padding-inline-start: clamp(0.85rem, 2vw, 1.35rem);
    }
}

@media (max-width: 767px) {
    .footer .container {
        width: min(100% - 1rem, 1180px);
    }

    .footer-doc-item,
    .footer .footer-doc-card {
        flex: 1 1 100%;
    }

    .footer-doc-item img,
    .footer .footer-doc-thumb {
        width: 52px;
        max-height: 36px;
    }

    .footer .home-footer__badge {
        flex: 1 1 100%;
    }

    .footer .home-footer__badge-img {
        width: 52px;
        max-height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer .social-icon:hover,
    .footer .home-footer__soc:hover {
        transform: none;
    }
}

/* Performance guard: keep the homepage look without expensive repaint effects. */
.footer {
    contain: layout paint style;
}

.footer,
.footer *,
.footer *::before,
.footer *::after {
    animation: none;
    backface-visibility: hidden;
}

.footer .footer-panel,
.footer .footer-doc-card,
.footer .footer-doc-item,
.footer .footer-payment-icon,
.footer .social-icon,
.footer .home-footer__soc,
.footer .home-footer__badge,
.footer .home-footer__pay,
.footer .home-footer__vault {
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.footer .social-icon,
.footer .social-icon-img,
.footer .footer-doc-item,
.footer .footer-doc-card,
.footer .footer-payment-icon,
.footer .mada-icon,
.footer .tabby-icon,
.footer .paypal-icon,
.footer .footer-legal-title,
.footer .home-footer__soc,
.footer .home-footer__soc img,
.footer .home-footer__legal {
    transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.footer .social-icon:hover,
.footer .social-icon:hover .social-icon-img,
.footer .footer-doc-item:hover,
.footer .footer-doc-card:hover,
.footer .footer-payment-icon:hover,
.footer .mada-icon:hover,
.footer .tabby-icon:hover,
.footer .paypal-icon:hover,
.footer .footer-legal-title:hover,
.footer .home-footer__soc:hover {
    transform: none;
}

.footer .social-icon-img,
.footer .footer-payment-icon,
.footer .mada-icon,
.footer .tabby-icon,
.footer .home-footer__soc img {
    filter: none;
}
