body {
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-page-leaving {
    opacity: 0;
}

.nav-panel {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
}

.connect-button {
    background-image: linear-gradient(135deg, #00ff66 0%, #43d67a 45%, #8bffb4 100%);
    background-size: 180% 180%;
    transition: background-position 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 12px 28px rgba(0, 255, 102, 0.18);
}

.connect-button:hover {
    background-position: 100% 50%;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(0, 255, 102, 0.28);
}

.connect-button.is-authenticated {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-image: none;
    background-color: #050505;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    letter-spacing: 0.04em;
    text-transform: none;
}

.connect-button.is-authenticated:hover {
    box-shadow: 0 18px 52px rgba(170, 180, 190, 0.18), 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-menu {
    backdrop-filter: blur(20px);
}

.mobile-nav-toggle {
    width: 42px;
    height: 42px;
    flex-direction: column;
    gap: 5px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.mobile-nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-toggle:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-menu {
    backdrop-filter: blur(20px);
}

@media (max-width: 1023px) {
    nav.fixed {
        top: 12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .nav-panel {
        height: 64px !important;
        border-radius: 18px !important;
        padding-left: 14px !important;
        padding-right: 12px !important;
    }

    .nav-panel img {
        max-height: 38px;
    }

    .auth-menu-wrap .connect-button {
        height: 48px;
        border-radius: 16px;
        padding-left: 16px;
        padding-right: 16px;
        letter-spacing: 0.14em;
    }

    .connect-button.is-authenticated {
        padding-left: 10px;
        padding-right: 10px;
    }

    .auth-menu {
        top: 58px;
        width: min(220px, calc(100vw - 24px));
    }

    footer {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

@media (max-width: 640px) {
    main.pt-48,
    section.pt-48 {
        padding-top: 7rem !important;
    }

    main.pb-24,
    section.pb-24 {
        padding-bottom: 4rem !important;
    }

    main.px-6,
    section.px-6,
    footer.px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .p-12 {
        padding: 2rem !important;
    }

    .p-10,
    .p-8,
    .p-7 {
        padding: 1.5rem !important;
    }

    .nav-panel {
        max-width: calc(100vw - 96px);
    }

    .nav-panel img {
        max-width: 148px;
    }

    .mobile-nav-toggle {
        width: 38px;
        height: 38px;
        margin-left: 12px;
    }

    .auth-menu-wrap .connect-button {
        min-width: 48px;
        padding-left: 12px;
        padding-right: 12px;
    }
}
