
.sub-page-container {
    max-width: 1080px; margin: 0 auto; padding: 110px 20px 60px;
}


.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 10px 0;
    background: rgba(251, 245, 255, 0.62);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 20px rgba(159, 128, 218, 0.07);
}

.nav-container {
    max-width: var(--container-max); margin: 0 auto; padding: 0 28px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
    position: relative;
}

.logo {
    font-weight: 800; font-size: 1.35rem; color: var(--text-main);
    text-decoration: none; display: flex; align-items: center; gap: 10px;
    letter-spacing: -0.6px; flex-shrink: 0; white-space: nowrap;
}

.mobile-menu-btn {
    display: none;
    visibility: hidden;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
    flex: 1;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.nav-link:hover { color: var(--accent-primary); background: rgba(159, 128, 218, 0.08); }
.nav-link.active { color: var(--accent-primary); background: rgba(159, 128, 218, 0.12); }

.btn-login,
#auth-ui button,
.btn-contribute,
[class*="btn-login"] {
    background: rgba(255, 255, 255, 0.38) !important;
    backdrop-filter: blur(20px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 -1px 0 rgba(159, 128, 218, 0.15) inset,
        0 4px 16px rgba(159, 128, 218, 0.12) !important;
    color: var(--text-main) !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.01em !important;
    text-decoration: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    z-index: 5 !important;
}

.btn-login::before,
.btn-contribute::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.4) 0%,
        rgba(255,255,255,0.05) 50%,
        rgba(255,255,255,0.15) 100%
    );
    border-radius: inherit;
    pointer-events: none !important;
}

.btn-login:hover,
#auth-ui button:hover,
.btn-contribute:hover {
    background: rgba(159, 128, 218, 0.18) !important;
    border-color: rgba(159, 128, 218, 0.5) !important;
    color: var(--accent-success) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 6px 24px rgba(159, 128, 218, 0.22) !important;
    transform: translateY(-1px) !important;
}

.mobile-nav-overlay {
    display: none;
    pointer-events: none; 
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(251, 245, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 20px;
    flex-direction: column;
    gap: 4px;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(159, 128, 218, 0.12);
}


.mobile-nav-overlay.active {   
    display: flex;
    pointer-events: auto;
}

.site-footer {
    padding: 60px 0 30px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}
.social-links { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.social-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.social-icon:hover {
    background: var(--accent-primary); color: white;
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(159, 128, 218, 0.35);
    border-color: transparent;
}