.global-header {
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: opacity 0.2s;
}

.header-logo-link:hover {
    opacity: 0.8;
}

.header-logo-link span {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-header-primary {
    background: var(--primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-header-primary:hover {
    background: var(--primary-hover);
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.dropdown-trigger:hover {
    background: #e0e7ff;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 240px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInDropdown 0.2s ease;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-user-info {
    padding: 16px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
}

.user-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.logout-form {
    margin: 0;
    padding: 10px;
    width: 100%;
    display: block;
}

.dropdown-menu .btn-logout {
    width: 100%;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #ef4444;
}

.dropdown-menu .btn-logout:hover {
    background: #fef2f2;
}

.dropdown-link {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-link.btn-logout {
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #ef4444;
}

.dropdown-link.btn-logout:hover {
    background: #fef2f2;
    color: #ef4444;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin: 4px 10px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.dropdown-balance svg {
    flex-shrink: 0;
}
