* {
    scroll-behavior: smooth;
}

.slide-hidden {
    display: none;
}

.site-footer {
    background-color: #031534;
    color: #ffffff;
    padding: 40px 60px 25px 60px;
    direction: rtl;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo Styling */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

/* Navigation Links */
.footer-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #3b82f6;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer Secondary Row */
.footer-secondary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.sub-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    flex-wrap: wrap;
    margin-right: calc(32px + 12px + 140px);
    /* Align with primary nav area */
}

.sub-nav li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.sub-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.sub-nav a:hover {
    color: #ffffff;
}

/* Payment Badges */
.payment-methods {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-badge {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-badge.tabby {
    background-color: #39e4a3;
    color: #000000;
    font-style: italic;
}

/* Copyright Row */
.footer-bottom {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .sub-nav {
        margin-right: 0;
    }

    .footer-top,
    .footer-secondary {
        flex-direction: column;
        align-items: flex-start;
    }
}

#global-loader {
    position: fixed;
    inset: 0;
    background-color: rgb(255, 255, 255,0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

#global-loader.active {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #E0E7FF;
    border-bottom-color: #4F46E5;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
