@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}
a { text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(4, 8, 24, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-nav {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo a {
    color: #ff9db0;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-actions,
.guest-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ghost-link,
.primary-link,
.user-menu-trigger {
    color: #fff;
    border-radius: 999px;
    padding: 0.8rem 1.15rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
}

.ghost-link,
.user-menu-trigger {
    background: rgba(255,255,255,0.05);
}

.primary-link {
    background: linear-gradient(135deg, #ff8c7a 0%, #cf5bd9 100%);
    box-shadow: 0 12px 30px rgba(207, 91, 217, 0.18);
}

.user-menu { position: relative; }
.user-menu-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-menu-trigger .arrow {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}
.user-menu-trigger.active .arrow { transform: rotate(180deg); }

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 260px;
    background: rgba(9, 8, 25, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,0.36);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.24s ease;
}
.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown a {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #fff;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.user-dropdown a:last-child { border-bottom: 0; }
.user-dropdown a:hover { background: rgba(255,255,255,0.06); }
.user-dropdown .divider { height: 1px; background: rgba(255,255,255,0.08); }
.dropdown-overlay {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 80;
}
.dropdown-overlay.show { display: block; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    padding: 0.95rem 1.4rem;
    border-radius: 18px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff8d76 0%, #d45ae0 100%);
}
.btn-secondary {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
}

.glass-card,
.glass-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
}

.site-footer {
    width: min(1240px, calc(100% - 32px));
    margin: 40px auto 24px;
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-size: 0.95rem;
}
.site-footer p + p { margin-top: 8px; }

@media (max-width: 768px) {
    .site-nav {
        min-height: auto;
        padding: 14px 0;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-actions,
    .guest-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .user-menu { align-self: center; }
    .user-dropdown {
        position: fixed;
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 12px;
        min-width: 0;
        border-radius: 22px;
        transform: translateY(20px);
    }
}
