* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin-bottom: 20px;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #2a2a2a;
    padding: 6px 12px;
    border-radius: 40px;
    transition: all 0.2s;
}

.user-info:hover {
    background: #3a3a3a;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background: #2a2a2a;
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    overflow: hidden;
}

.dropdown a {
    display: block;
    padding: 10px 16px;
    color: #ddd;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown a:hover {
    background: #4caf50;
    color: white;
}

.user-menu:hover .dropdown {
    display: block;
}

.nav-btn {
    background: transparent;
    color: #ddd;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    border-radius: 8px;
}

.nav-btn:hover {
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.171);
}

.auth-buttons .nav-btn {
    background: rgba(74, 236, 79, 0.082);
    border: 1px solid rgba(0, 255, 8, 0.466);
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
}

.auth-buttons .nav-btn:hover {
    background: #4caf4f81;
    color: white;
    border-color: #4caf4fcc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.header-container {
    background: #1a1a1a;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.header-right {
    display: flex;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 38px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-area span:first-child,
.logo-area span:last-child {
    font-size: 32px;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btn,
.logo-area,
.logo-area span,
.auth-buttons .nav-btn,
.user-info,
.user-info span {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

@media (max-width: 700px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 20px;
    }

    .header-left {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        justify-content: center;
    }

    .logo-area {
        font-size: 32px;
    }
}

.nav-btn:active {
    transform: scale(0.96);
}