:root {
    --bg: #2b2d31;
    --nav-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
    --nav-border: rgba(255, 255, 255, 0.14);
    --text: #f2f3f5;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--bg);
    background-attachment: fixed;
    font-family: "Sora", system-ui, sans-serif;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
    width: 100%;
}

.site-footer {
    margin-top: auto;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.28) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding: 56px 32px 40px;
}

.footer-brand {
    max-width: 340px;
}

.footer-tagline {
    margin-top: 14px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #a3a6ad;
}

.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.footer-socials:empty {
    display: none;
}

.footer-social {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #c4c7cd;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: color 0.2s, background 0.2s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 130px;
}

.footer-heading {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #80848e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a {
    width: fit-content;
    font-size: 14px;
    color: #c4c7cd;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 20px 32px 24px;
    font-size: 12.5px;
    color: #6b6e75;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 640px) {
    .footer-inner {
        padding: 40px 16px 28px;
    }

    .footer-columns {
        gap: 32px;
    }

    .footer-bottom {
        padding: 18px 16px 22px;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    position: relative;
    height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
}

.navbar > * {
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-logo {
    transform: rotate(-8deg) scale(1.06);
}

.brand-name {
    font-family: "Sora", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.6px;
    background: linear-gradient(180deg, #ffffff 0%, #d4d6db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-accent {
    font-weight: 300;
    background: linear-gradient(180deg, #c9ccd3 0%, #8e929b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    height: 38px;
    padding: 0 18px 0 5px;
    overflow: hidden;
    font-family: "Sora", sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.2),
        inset -1px -1px 0 rgba(255, 255, 255, 0.07),
        inset 0 0 10px rgba(255, 255, 255, 0.04),
        0 6px 20px rgba(0, 0, 0, 0.28);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.25s,
        box-shadow 0.25s;
}

.login-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 55%),
        radial-gradient(90% 70% at 90% 110%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.login-btn > * {
    position: relative;
}

.login-btn:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.11);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.26),
        inset -1px -1px 0 rgba(255, 255, 255, 0.09),
        inset 0 0 12px rgba(255, 255, 255, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.32);
}

.login-btn:active {
    transform: scale(0.94);
    transition-duration: 0.12s;
}

.login-btn > .ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
    transform: scale(0);
    pointer-events: none;
    animation: ripple 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ripple {
    to {
        transform: scale(1);
        opacity: 0;
    }
}

.login-icon {
    width: 28px;
    height: 28px;
    padding: 6px;
    color: #ffffff;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 60%, rgba(255, 255, 255, 0.04) 100%);
    border-radius: 50%;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.22),
        inset -1px -1px 0 rgba(255, 255, 255, 0.06),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-left {
    gap: 18px;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 100%);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    position: relative;
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #a3a6ad;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    transform: translateX(-50%);
}

@media (max-width: 460px) {
    .navbar .brand-name {
        display: none;
    }
}

.nav-user {
    position: relative;
    display: flex;
    align-items: center;
}

.user-toggle {
    padding-right: 14px;
    cursor: pointer;
}

.user-avatar {
    padding: 0;
    object-fit: cover;
}

.pixelated {
    image-rendering: pixelated;
}

.navbar .user-chevron {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-user.open .user-chevron {
    transform: rotate(180deg);
}

.user-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 250px;
    padding: 8px;
    background: linear-gradient(145deg, rgba(48, 50, 55, 0.96) 0%, rgba(32, 33, 37, 0.97) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition:
        opacity 0.2s ease,
        transform 0.25s ease,
        visibility 0s linear 0.25s;
}

.nav-user.open .user-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
        opacity 0.25s ease,
        transform 0.45s cubic-bezier(0.34, 1.36, 0.64, 1),
        visibility 0s;
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 14px;
}

.user-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.user-menu-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-menu-name {
    font-size: 14px;
    font-weight: 600;
}

.user-menu-email {
    overflow: hidden;
    font-size: 12px;
    color: #a3a6ad;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.user-menu-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.user-menu-section:last-child {
    padding-bottom: 0;
}

.user-menu-label {
    padding: 4px 10px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #80848e;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.user-menu-item,
.user-menu-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.navbar .user-menu-item svg,
.navbar .user-menu-logout svg {
    width: 17px;
    height: 17px;
}

.user-menu-item {
    color: #d5d7dc;
}

.user-menu-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(2px);
}

.user-menu-logout {
    justify-content: center;
    color: #fca5a5;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.user-menu-logout:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 0.9);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.3);
}

.user-menu-logout:active {
    transform: scale(0.98);
}

@media (max-width: 640px) {
    .navbar {
        padding: 0 16px;
    }

    .nav-left {
        gap: 8px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .brand-name {
        font-size: 20px;
    }
}
