.footer {
    background: #1a0533;
    color: var(--gray-300);
}

.shared-footer {
    margin-top: 2rem;
}

.shared-footer .footer-intro {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    text-align: center;
}

.shared-footer .footer-intro p,
.footer-intro p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    line-height: 1.6;
}

.shared-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
}

.shared-footer .footer-logo .logo-icon {
    width: 30px;
    height: 30px;
}

.shared-footer .footer-logo .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shared-footer .footer-logo .accent {
    color: var(--primary-light);
}

.shared-footer .footer-logo .footer-brand-image {
    display: block;
    width: 150px;
    height: auto;
    object-fit: contain;
}

/* ── App Download Banner ───────────────────── */
.footer-app-banner {
    background: linear-gradient(135deg, #F07806 0%, #D96500 100%);
    padding: 1.5rem 0;
}

.footer-app-banner .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-app-text h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.footer-app-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-app-badges {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.125rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-fast);
}

.app-badge:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.app-badge i {
    font-size: 1.5rem;
}

.app-badge div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-badge span {
    font-size: 0.62rem;
    opacity: 0.85;
}

.app-badge strong {
    font-size: 0.9rem;
    font-weight: 700;
}

/* ── Footer Container ───────────────────── */
.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Footer Links Section ───────────────────── */
.footer-links {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-links .footer-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.footer-col ul a:hover {
    color: var(--primary-light);
}

/* ── Footer Bottom ───────────────────── */
.footer-bottom {
    padding: 1.25rem 0;
}

.footer-bottom .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-logo-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-mini .logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-mini .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo-mini .logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.footer-logo-mini .accent {
    color: var(--primary);
}

.footer-bottom-left p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-left p a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-left p a:hover {
    color: var(--primary-light);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-social-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    overflow: hidden;
}

.footer-social-item img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-social-image {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-support-link {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-support-link:hover {
    color: var(--primary-light);
}

.footer-payments {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-payments i {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.footer-payments i:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* ── Responsive ───────────────────── */
@media (max-width: 1100px) {
    .footer-links .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-app-banner .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-app-badges {
        width: 100%;
    }

    .app-badge {
        flex: 1;
        justify-content: center;
    }

    .footer-links {
        padding: 2rem 0 1.5rem;
    }

    .footer-links .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .shared-footer {
        margin-top: 1.25rem;
    }

    .footer-bottom .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .footer-bottom-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .footer-app-text h3 {
        font-size: 1rem;
    }

    .footer-links .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 1rem;
    }

    .footer-col h4 {
        font-size: 0.8rem;
    }

    .footer-col ul a {
        font-size: 0.78rem;
    }

    .footer-payments {
        gap: 0.4rem;
    }

    .footer-payments i {
        font-size: 1.4rem;
    }
}

/* ── Collapsible mobile footer ───────────────── */
.footer-mobile-bar {
    display: none;
}

.footer-expandable {
    display: block;
}

.footer-mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-mobile-brand .footer-brand-mark {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.footer-mobile-brand .footer-brand-mark:empty,
.footer-mobile-brand .footer-brand-mark.footer-brand-mark--empty {
    display: none !important;
    width: 0;
    height: 0;
    margin: 0;
}

.footer-mobile-brand .footer-brand-mark-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-mobile-brand .footer-brand-wordmark {
    display: block;
    width: 104px;
    max-height: 30px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.footer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    color: var(--white);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-toggle:hover,
.footer-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.48);
}

.footer-toggle svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .shared-footer {
        margin-top: 1.25rem;
        background: #6D28D9;
        color: var(--white);
    }

    .footer-mobile-bar {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .footer-mobile-bar .footer-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.65rem;
        min-height: 82px;
        padding: 0.8rem 1rem;
    }

    .footer-mobile-brand {
        min-width: 0;
    }

    .footer-expandable {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition:
            max-height 0.32s ease,
            opacity 0.24s ease,
            transform 0.32s ease,
            visibility 0s linear 0.32s;
    }

    .shared-footer[data-expanded="true"] .footer-expandable {
        max-height: 1400px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition:
            max-height 0.32s ease,
            opacity 0.24s ease,
            transform 0.32s ease,
            visibility 0s linear 0s;
    }

    .shared-footer[data-expanded="true"] .footer-toggle svg {
        transform: rotate(180deg);
    }

    .footer-links {
        padding: 1.5rem 0 1.1rem;
        border-bottom-color: rgba(255, 255, 255, 0.14);
    }

    .footer-links .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 0.9rem;
        padding: 0 1rem;
    }

    .footer-col h4 {
        margin-bottom: 0.45rem;
        color: var(--white);
        font-size: 0.78rem;
        letter-spacing: 0.02em;
        text-transform: none;
    }

    .footer-col ul {
        gap: 0;
    }

    .footer-col ul a {
        display: flex;
        align-items: center;
        min-height: 42px;
        color: rgba(255, 255, 255, 0.76);
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .footer-col ul a:hover,
    .footer-col ul a:focus-visible {
        color: var(--white);
    }

    .footer-bottom {
        padding: 1.35rem 0 1.5rem;
    }

    .footer-bottom .footer-container {
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
        text-align: center;
    }

    .footer-bottom-left {
        align-items: center;
        gap: 0.2rem;
        width: 100%;
    }

    .footer-bottom-left p {
        color: rgba(255, 255, 255, 0.68);
        font-size: 0.75rem;
    }

    .footer-bottom-right {
        align-items: center;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .footer-social {
        justify-content: center;
        gap: 0.25rem;
        width: 100%;
    }

    .footer-social-item {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
    }

    .footer-social-item img {
        width: 22px;
        height: 22px;
    }

    .footer-support-link {
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.75rem;
    }

}

@media (max-width: 360px) {
    .footer-mobile-bar .footer-container {
        gap: 0.45rem;
        padding-inline: 0.75rem;
    }

    .footer-mobile-brand .footer-brand-wordmark {
        width: 92px;
    }

    .footer-links .footer-container {
        column-gap: 0.65rem;
    }

    .footer-col ul a {
        font-size: 0.73rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-expandable,
    .footer-toggle svg,
    .footer-toggle {
        transition: none;
    }
}
