.site-footer {
    position: relative;
    margin-top: 40px;
    padding: 0 0 26px;
    background: none;
    color: #fff;
    font-family: var(--main-font);
    font-size: 0.9rem;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 1;
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 34px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto auto;
    gap: 34px;
    align-items: center;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005)),
        rgba(7, 8, 11, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 14px 42px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255,255,255,0.025);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.footer-inner::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(65% 90% at 50% 0%, rgba(2, 207, 92, 0.08), rgba(2, 207, 92, 0) 60%);
    pointer-events: none;
}

.footer-inner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    width: 84%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.10), rgba(255,255,255,0));
    pointer-events: none;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    width: fit-content;
}

.footer-logo {
    height: 84px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.55));
    flex-shrink: 0;
}

.footer-divider {
    width: 1px;
    height: 62px;
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(2,207,92,0.34), rgba(255,255,255,0.08));
    margin: 0 16px;
    flex-shrink: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
    line-height: 1.1;
}

.footer-brand-main {
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: #fff;
}

.footer-brand-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.52);
}

.footer-copy {
    margin: 0;
    max-width: 520px;
    color: rgba(255,255,255,0.70);
    line-height: 1.75;
    font-size: 0.94rem;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.60);
    font-size: 0.9rem;
}

.footer-contact strong {
    color: rgba(255,255,255,0.86);
    font-weight: 800;
}

.footer-contact a {
    color: rgba(2, 207, 92, 0.95);
    text-decoration: none;
    font-weight: 700;
}

.footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(2, 207, 92, 0.55);
    text-underline-offset: 3px;
}

.footer-middle {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 26px;
}

.footer-middle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.16), rgba(255,255,255,0.04));
}

.footer-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 700;
    transition: color .16s ease, transform .16s ease;
}

.footer-link:hover {
    color: rgba(2, 207, 92, 0.95);
    transform: translateX(2px);
}

.footer-vline {
    display: none;
}

.footer-right {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 26px;
}

.footer-right::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.16), rgba(255,255,255,0.04));
}

.footer-discord-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 28px rgba(0,0,0,0.24);
    transition:
        transform .16s ease,
        background .16s ease,
        border-color .16s ease,
        box-shadow .16s ease,
        color .16s ease;
}

.footer-discord-link:hover {
    transform: translateY(-1px);
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-color: rgba(2,207,92,0.22);
    box-shadow: 0 18px 45px rgba(0,0,0,0.42);
}

.footer-right img {
    width: 22px;
    height: 22px;
    display: inline-block;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-discord-link span {
    font-weight: 800;
    letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px 20px;
    }

    .footer-middle,
    .footer-right {
        padding-left: 0;
    }

    .footer-middle::before,
    .footer-right::before {
        display: none;
    }

    .footer-middle {
        gap: 8px;
    }

    .footer-right {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding-bottom: 18px;
    }

    .footer-inner {
        width: min(100% - 24px, 1240px);
        border-radius: 22px;
    }

    .footer-logo-wrap {
        align-items: flex-start;
    }

    .footer-logo {
        height: 68px;
    }

    .footer-divider {
        height: 48px;
        margin: 0 12px;
    }

    .footer-brand-main {
        font-size: 1rem;
    }

    .footer-copy {
        font-size: 0.9rem;
    }

    .footer-contact {
        font-size: 0.86rem;
    }

    .footer-right {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-discord-link {
        width: 100%;
        justify-content: flex-start;
    }
}